try{
H("sy412");var jyb=function(){Ld.call(this)};t(jyb,Ld);q=jyb.prototype;q.DN=0;q.zL=0;q.iE=100;q.YH=0;q.KB=1;q.HI=!1;q.gba=!1;var sN=function(a,b){b=uJ(a,b);a.DN!=b&&(a.DN=b+a.YH>a.iE?a.iE-a.YH:b<a.zL?a.zL:b,a.HI||a.gba||a.dispatchEvent("change"))};jyb.prototype.getValue=function(){return uJ(this,this.DN)};
var lyb=function(a,b){b=uJ(a,b);a.YH!=b&&(a.YH=0>b?0:a.DN+b>a.iE?a.iE-a.DN:b,a.HI||a.gba||a.dispatchEvent("change"))},vJ=function(a){var b=a.YH;return null==a.KB?b:Math.round(b/a.KB)*a.KB},kyb=function(a,b){if(a.zL!=b){var c=a.HI;a.HI=!0;a.zL=b;b+a.YH>a.iE&&(a.YH=a.iE-a.zL);b>a.DN&&sN(a,b);b>a.iE&&(a.YH=0,tJ(a,b),sN(a,b));a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},Eic=function(a){return uJ(a,a.zL)},tJ=function(a,b){b=uJ(a,b);if(a.iE!=b){var c=a.HI;a.HI=!0;a.iE=b;b<a.DN+a.YH&&sN(a,b-a.YH);b<a.zL&&
(a.YH=0,kyb(a,b),sN(a,a.iE));b<a.zL+a.YH&&(a.YH=a.iE-a.zL);a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},Fic=function(a){return uJ(a,a.iE)},myb=function(a,b){if(a.KB!=b){a.KB=b;var c=a.HI;a.HI=!0;tJ(a,Fic(a));lyb(a,vJ(a));sN(a,a.getValue());a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},uJ=function(a,b){return null==a.KB?b:a.zL+Math.round((b-a.zL)/a.KB)*a.KB};

G("sy412");I();
}catch(e){_DumpException(e)}
try{
H("sy195");
G("sy195");I();
}catch(e){_DumpException(e)}
try{
H("sy853");var lQ=function(a){C.call(this,a);this.Ab=new jyb;ud(this.Ab,"change",this.$b,!1,this)};t(lQ,C);var pdc={vertical:"la-ba-ih",horizontal:"la-ba-jb"};lQ.prototype.Pa=function(){this.Sa=this.Ea().Pa("DIV","la-ba-na");var a=pdc[this.mL];this.Kb(this.Ea().Pa("DIV",a,this.Sa));ldc(this);mdc(this);odc(this)};lQ.prototype.Na=function(){lQ.ya.Na.call(this);xc&&7>nf&&ud(this.ta(),"resize",this.Qb,!1,this);this.Qb();var a=this.ta();po(a,"progressbar");qo(a,"live","polite")};
lQ.prototype.Ib=function(){lQ.ya.Ib.call(this);kdc(this)};var kdc=function(a){xc&&7>nf&&zd(a.ta(),"resize",a.Qb,!1,a)};lQ.prototype.ra=function(a){lQ.ya.ra.call(this,a);Qn(this.ta(),pdc[this.mL]);a=nc(null,"la-ba-na",this.ta())[0];a||(a=this.Ea().Pa("DIV","la-ba-na"),this.ta().appendChild(a));this.Sa=a};lQ.prototype.getValue=function(){return this.Ab.getValue()};lQ.prototype.$=function(a){sN(this.Ab,a);this.ta()&&ldc(this)};
var ldc=function(a){var b=a.ta();qo(b,"valuenow",a.getValue())},EQd=function(a){kyb(a.Ab,0);a.ta()&&mdc(a)},mdc=function(a){var b=a.ta();qo(b,"valuemin",Eic(a.Ab))},ndc=function(a,b){tJ(a.Ab,b);a.ta()&&odc(a)},odc=function(a){var b=a.ta();qo(b,"valuemax",Fic(a.Ab))};lQ.prototype.mL="horizontal";lQ.prototype.$b=function(){this.Qb();this.dispatchEvent("change")};
lQ.prototype.Qb=function(){if(this.Sa){var a=Eic(this.Ab),b=Fic(this.Ab),a=(this.getValue()-a)/(b-a),b=Math.round(100*a);"vertical"==this.mL?xc&&7>nf?(this.Sa.style.top=0,this.Sa.style.height="100%",b=this.Sa.offsetHeight,a=Math.round(a*b),this.Sa.style.top=b-a+"px",this.Sa.style.height=a+"px"):(this.Sa.style.top=100-b+"%",this.Sa.style.height=b+"%"):this.Sa.style.width=b+"%"}};lQ.prototype.qb=function(){kdc(this);lQ.ya.qb.call(this);this.Sa=null;this.Ab.Ma()};

G("sy853");I();
}catch(e){_DumpException(e)}
try{
H("sy859");var XEa=function(a){this.$=a};XEa.prototype.W_=function(a){return 1023==a&&this.$!=a?!1:!!(this.$&a)};
G("sy859");I();
}catch(e){_DumpException(e)}
try{
H("sy862");var BM=function(a,b,c){vp.call(this,a,b||Dp.ia(),c)};t(BM,vp);uo("d-td-c",function(){return new BM(null)});
G("sy862");I();
}catch(e){_DumpException(e)}
try{
H("sy413");var Ncg=function(a,b,c,d,f){A.call(this,a,b);this.request=c;this.response=d||null;this.wbb=f||null};t(Ncg,A);
G("sy413");I();
}catch(e){_DumpException(e)}
try{
var wg=function(a){return a.$},FQd=function(a){switch(a){case "all":case "docs-images":case "docs-images-and-videos":case "docs-videos":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "sites":case "spreadsheets":case "tables":return!0}return!1},Tyf=function(a){switch(a){case "docs":case "DoclistBlob":case "doc":case "drawing":case "drive":case "drive-select":case "form":case "freebird":case "kix":case "pres":case "punch":case "ritz":case "spread":return!0; default:return!1}};H("sy855");
var My=null;var QEa=function(a){this.Ab=a.actionCategory;this.$=a.url;(a=a.supportedMimeTypes)&&new df(a)};QEa.prototype.Eh=function(){return this.Ab};QEa.prototype.getUrl=function(){return this.$};var REa=function(a){this.Sa=a.r};var Uw=function(a,b,c,d,f){this.Ab=a;this.Qf=b;this.Xg=c;this.Sa=!!d;this.dh=f},iKa=RegExp("{size}","g"),jKa=RegExp("/{size}/","g"),kKa=RegExp("={size}","g");q=Uw.prototype;q.getUrl=function(){return this.Ab};q.wc=function(){return this.Qf};q.Ic=function(){return this.Xg};q.Ra=function(){return this.dh};
q.Qs=function(a,b,c,d){var f=this.getUrl();if(!ia(a))return b=f.replace(jKa,"/"),b=b.replace(kKa,""),b.replace(iKa,"");if(a instanceof Kb)return a&&2<=ha.devicePixelRatio&&!d&&(a=new Kb(2*a.width,2*a.height)),f.replace(iKa,"h"+a.height+"-w"+a.width+(b&&b.length?"-"+b.join("-"):""));a&&2<=ha.devicePixelRatio&&!d&&(a*=2);return f.replace(iKa,(c||"s")+a+(b&&b.length?"-"+b.join("-"):""))};q.ifa=e(622);q.ll=e(623);
var uAf=function(a,b,c){var d=My.Ab;if(!d)throw Error("Oc");this.$=Hf(Jf(a),"access_token",d);Uw.call(this,this.$.toString(),b,c,!0)};t(uAf,Uw);uAf.prototype.Qs=function(a,b,c,d){if(a){var f=0,h=0,k=0;a instanceof Kb?(f=a.width,h=a.height):"h"==c?h=a:"w"==c?f=a:k=a;!d&&2<=ha.devicePixelRatio&&(f*=2,h*=2,k*=2);k&&(k=Math.min(k,2048),Hf(this.$,"size",k));h&&(h=Math.min(h,2048),Hf(this.$,"height",h));f&&(f=Math.min(f,2048),Hf(this.$,"width",f));b&&eb(b,"p")&&Hf(this.$,"crop",!0)}return this.$.toString()}; uAf.prototype.ifa=e(621);
var SEa=function(a){this.Fs=a.id;this.hE=a.name};SEa.prototype.getId=function(){return this.Fs};SEa.prototype.getName=function(){return this.hE};var TEa=function(a,b,c){this.Ab=a;this.$=b;this.Sa=c};TEa.prototype.getUrl=function(){return this.Ab};TEa.prototype.tf=function(){return this.Sa};var UEa=function(a,b,c,d,f){this.mL=a;this.$=b;this.Sa=d;this.Ab=f},ljc=function(a){var b=a.cid,c=a.d,d=a.ar;a=a.s;var f;if(a){f=[];for(var h=0;h<a.length;h++){var k=a[h];f.push(new TEa(k.u,k.f,new Kb(k.w,k.h)))}}if(b||c||f)return new UEa(b,c,0,f,d)};UEa.prototype.gQ=function(){return this.mL};UEa.prototype.QD=function(){return this.Sa};UEa.prototype.zKa=function(a){a&&(this.mL=a.gQ()||this.mL,this.$=a.$||this.$,this.Qb=a.Qb,this.Sa=a.QD()||this.Sa,this.Ab=a.Ab||this.Ab)};
var Vw=function(a){kd.call(this);this.$=a.serviceId;this.Ag=a.sourceId||"0";this.Qb=a.id;this.y2=a.url;this.lp=a.embedUrl;this.dh=a.type;this.DU=a.mimeType;this.hE=a.name;this.Op=VEa(this,a.thumbs);this.TVa=VEa(this,a.childThumbs);this.Zta=a.lastEditedUtc||null;var b={},c=a.actions;if(c)for(var d=0;d<c.length;d++){var f=new QEa(c[d]);b[f.Eh()]=f}this.iu=b;b=null;(c=a.owners)&&c.length&&(b=zg(c,function(a){return new SEa(a)}));this.Qja=b;this.Vk=null;this.$b=a.nChildren;this.Ko=a.description||"";this.zi=
a.parent;this.dw=(b=a.imageData)?new REa(b):null;this.Km=(b=a.videoData)&&ljc(b)||null;this.Vb=a.kansasVersionInfo;this.Sa=a.sortIndex||0;this.Ab=a.sizeBytes;this.Db=!!a.isNew;this.uh=a.attrs||{}};t(Vw,kd);
var WEa=function(a){return a?zg(a,function(a){return new Vw(a)}):[]},Mcg=function(a){return zg(a,function(a){var c={};c.serviceId=a.p2a();c.sourceId=a.d9a();c.id=a.Qe();c.url=a.getUrl();c.embedUrl=a.MJ();c.type=a.Ra();c.name=a.getName();c.parent=a.vt();c=new Vw(c);c.setAttribute("visibility",a.getAttribute("visibility"));a=Mcg(a.$n());c.jg=a;return c})},VEa=function(a,b){if(!b)return null;var c=[];if(My.Ab&&Tyf(a.$))for(var d=0;d<b.length;d++){var f=b[d];c.push(new uAf(f.u,f.w,f.h))}else for(d=0;d<
b.length;d++)f=b[d],c.push(new Uw(f.u,f.w,f.h,f.r,f.t));return c};Vw.prototype.Fs=null;Vw.prototype.jg=null;var HLg=function(a,b,c){return qa(c)&&-1!=c.indexOf(".")?c:Na(a,".",b,".",c)};q=Vw.prototype;q.getId=function(){return this.Fs||(this.Fs=HLg(this.$,this.Ag,this.Qe()))};q.Ra=function(){return this.dh};q.hd=function(a){this.dh=a};q.rI=function(){return this.DU};q.Qe=function(){return this.Qb};q.getUrl=function(){return this.y2};q.MJ=function(){return this.lp};q.getName=function(){return this.hE};
q.Wb=function(a){this.hE=a};q.getIcon=function(){var a=this.getAttribute("ico");return a?a:"application/vnd.google-apps.calendar"==this.DU?"//ssl.gstatic.com/docs/picker/images/icon_calendar_small-v1.gif":"//ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"};q.Yh=function(){return this.Op};q.ZE=function(a){this.Op=a};q.Tm=function(){return this.$b};q.Jd=function(){return this.Ko};q.Ee=function(a){this.Ko=a};q.vt=function(){return this.zi};q.getImageData=function(){return this.dw};
q.getVideoData=function(){return this.Km};q.Kn=function(){return this.Db};q.zJ=function(a){this.Db=a};q.getAttribute=function(a){return this.uh[a]};q.setAttribute=function(a,b){this.uh[a]=b};
q.zKa=function(a){this.$=a.$||this.$;this.Ag=a.Ag||this.Ag;this.Qb=a.Qe()||this.Qb;this.y2=a.getUrl()||this.y2;this.lp=a.MJ()||this.lp;this.dh=a.Ra()||this.dh;this.DU=a.rI()||this.DU;this.hE=a.getName()||this.hE;this.Op=a.Yh()||this.Op;this.TVa=a.TVa||this.TVa;this.Zta=a.Zta||this.Zta;if(a.mL||this.mL)this.mL=a.mL||this.mL;Zb(this.iu,a.iu);this.Qja=a.Qja||this.Qja;var b=a.getAttribute("shu");!a.Vk&&ua(b)&&(a.Vk=new SEa(b));this.Vk=a.Vk||this.Vk;this.$b=ia(a.Tm())?a.Tm():this.$b;this.Ko=a.Jd()||this.Ko;
this.zi=a.vt()||this.zi;this.dw=a.getImageData()||this.dw;this.Km=a.getVideoData()||this.Km;this.Vb=a.Vb||this.Vb;this.Ab=ia(a.Ab)?a.Ab:this.Ab;this.Db=a.Kn();Zb(this.uh,a.uh);this.jg=a.jg||this.jg;if(a.Ii||this.Ii)this.Ii=a.Ii||this.Ii};q.toString=function(){return this.getName()};q.qb=function(){Vw.ya.qb.call(this);delete this.uh};
var JEa=function(a){kd.call(this);this.$=new Ze;this.Sa=a};t(JEa,kd);JEa.prototype.set=function(a,b){this.$.set(a,b)};JEa.prototype.Hf=function(a,b){var c=this.$.get(a)||this.Sa;if(c)return c.apply(void 0,Array.prototype.slice.call(arguments,1))};JEa.prototype.qb=function(){JEa.ya.qb.call(this);this.$.clear();this.Sa=this.$=null};
var Qw=function(a){kd.call(this);this.Ab=(this.$=null!=a&&null!=a.response)?a.response:null;this.Ag=!!a.error;this.DU=a.errorMessage;this.$b=a.errorCode;this.Fs=KEa++;this.Sa=[]};t(Qw,kd);var KEa=0;q=Qw.prototype;q.getError=function(){return this.Ag};q.Ug=function(){return this.$b};q.getId=function(){return this.Fs};q.Ae=function(){return this.Sa};q.qb=function(){Qw.ya.qb.call(this);this.Sa=[]};var Tw=new JEa(function(a){return new Qw(a)}),$S=function(a,b){Tw.set(a,b)};
var GQd=function(a){Qw.call(this,a);this.$&&(this.Sa=WEa(this.Ab.docs||[]))};t(GQd,Qw);$S(3,function(a){return new GQd(a)});var Mw=function(){kd.call(this);this.Fs=Nw++};t(Mw,kd);Mw.prototype.mL=null;Mw.prototype.Qb=!1;var Nw=0,gKa=null,hKa=null;q=Mw.prototype;q.PD=pg(new Af("stat"));q.Dga=e(626);q.getId=function(){return this.Fs};q.Sq=function(){return 9};q.xv=function(){return 100};q.xE=function(){return new Ze};q.getContent=function(){return this.Iwa().toString()};q.N_a=function(){return null}; q.Iwa=function(){var a=new Ff,b=this.xE();b&&Ve(b,function(b,c){a.set(c,b)});(b=gKa)&&a.set("token",b);a.set("version",4);if(b=hKa)for(var c in b)a.set(c,b[c]);return a};q.aD=e(628);q.ora=e(631);var Pw=function(a,b,c){null!=c&&void 0!=c&&a.set(b,c)};
var u3=function(a,b,c){Mw.call(this);this.DU=a;this.$b=b;this.Ab=c};t(u3,Mw);u3.prototype.PD=pg(new Af("fetch"));u3.prototype.Sq=function(){return 3};u3.prototype.getOptions=function(){return this.Ab};u3.prototype.xE=function(){var a=new Ze;Pw(a,"ids",Rf(this.$b));Pw(a,"service",this.DU);Pw(a,"options",Rf(this.Ab));return a};
var Kw=function(){};la(Kw);Kw.prototype.U3b=0;Kw.prototype.W3b=0;Kw.prototype.eWa=0;Kw.prototype.lva=function(){this.Ba.Ma()};var PEa=function(a){Mw.call(this);this.DU=a.start||0;this.Xb=a.sort||3;this.nA=void 0==a.desc||!!a.desc;this.Ko=a.query||a.q;this.$b=a.cursor;this.Wu=a.continuationToken||"";this.yH=a.queryNameOnly};t(PEa,Mw);q=PEa.prototype;q.Oo=function(){return this.DU};q.setStart=function(a){this.DU=a};q.getQuery=function(){return this.Ko};q.Dfa=e(633);q.getCursor=e(637);q.Xh=function(){return this.Wu};q.Tva=e(638); q.xE=function(){var a=new Ze;Pw(a,"start",this.DU);Pw(a,"numResults",50);Pw(a,"sort",this.Xb);Pw(a,"desc",this.nA);Pw(a,"q",this.Ko);Pw(a,"qNameOnly",this.yH);Pw(a,"cursor",this.$b);this.Wu&&Pw(a,"cToken",this.Wu);return a};q.ora=e(630);
var vRd=function(a){Qw.call(this,a);this.$&&(this.Sa=WEa(this.Ab.docs||[]))};t(vRd,Qw);$S(5,function(a){return new vRd(a)});var K3=function(a,b,c,d){Mw.call(this);this.Ab=a;this.$b=b;this.DU=c;this.Ag=d};t(K3,Mw);q=K3.prototype;q.PD=pg(new Af("mutate"));q.Sq=function(){return 5};q.getOptions=function(){return this.Ag};q.xE=function(){var a=new Ze;Pw(a,"ids",Rf(this.DU));Pw(a,"service",this.$b);Pw(a,"operation",this.Ab);Pw(a,"options",Rf(this.Ag));return a};q.ora=e(629);
var Ww=function(a){Qw.call(this,a);this.$&&(a=this.Ab,this.Sa=WEa(a.docs||[]),this.Qb=a.cursor,this.Wu=a.cToken)};t(Ww,Qw);Ww.prototype.yW=e(640);Ww.prototype.getCursor=e(636);Ww.prototype.Xh=function(){return this.Wu};Ww.prototype.mL=e(641);$S(10,function(a){return new Ww(a)});
var Xw=function(a){Qw.call(this,a);a=this.Ab||{};this.Sa=WEa(a.docs||[]);this.Qb=a.cursor};t(Xw,Qw);Xw.prototype.yW=e(639);Xw.prototype.getCursor=e(635);$S(13,function(a){return new Xw(a)});var Yw=function(a,b,c,d,f){Mw.call(this);this.$=a;"c"==a&&(this.Qb=!0);this.$b=b;this.Ab=c;this.DU=0;this.Sa=d||new XEa(1023);this.Sx=!!f};t(Yw,Mw);q=Yw.prototype;q.PD=pg(new Af("ppl"));q.Sq=function(){return 13};q.getQuery=function(){return this.$b};q.getParent=function(){return this.Ab};q.xE=function(){var a=new Ze;Pw(a,"d",this.$);Pw(a,"q",this.$b);Pw(a,"p",this.Ab);return a};q.Oo=function(){return this.DU};q.setStart=function(a){this.DU=a};q.getCursor=e(634);q.Dfa=e(632);
var Zw=function(a){PEa.call(this,a);this.zF=a.mimeTypes;this.jv=a.mine;this.Ag=a.parent;this.dw=a.email;var b={};b.opts=a;this.iu=b};t(Zw,PEa);Zw.prototype.PD=pg(new Af("vr"));Zw.prototype.Sq=function(){return 10};var eFa=function(a,b){var c=a.iu.opts;if(!c)return b||{};c=Xb(c);if(b)for(var d in b)c[d]=b[d];return c};q=Zw.prototype;q.clone=function(a){return new Zw(eFa(this,a))};q.le=function(){return Rf(this.iu)};q.getParent=function(){return this.Ag};q.yc=function(){return this.dw}; q.xE=function(){var a=Zw.ya.xE.call(this);Pw(a,"mimeTypes",this.zF);Pw(a,"parent",this.Ag);Pw(a,"email",this.dw);Pw(a,"mine",this.jv);return a};
var $w=function(a){Zw.call(this,a);this.jg=a.service;this.dh=a.type;this.uh=a.username;this.Ab=a.options};t($w,Zw);$w.prototype.PD=pg(new Af("pvr"));$w.prototype.xE=function(){var a=$w.ya.xE.call(this);Pw(a,"service",this.jg);Pw(a,"type",this.dh);this.uh&&Pw(a,"userName",this.uh);Pw(a,"options",Rf(this.Ab));return a};$w.prototype.Ra=function(){return this.dh};$w.prototype.getOptions=function(){return this.Ab};var oZd=function(a,b,c){a.Ab||(a.Ab={});c?a.Ab[b]=c:delete a.Ab[b]};
var s3=function(a,b){C.call(this,b);this.$=a};t(s3,C);s3.prototype.getContext=function(){return this.$};s3.prototype.ra=function(a){s3.ya.ra.call(this,a);a.id&&this.Dc(a.id)};var t3=function(a,b){s3.call(this,a,b);this.getHandler().Ja(a.mL,"visibility",this.r2a)};t(t3,s3);q=t3.prototype;q.g3=!1;q.setActive=function(a){this.g3!=a&&(this.g3=a,this.Nb()&&this.setVisible(a))};q.setVisible=function(a){On(this.ta(),a)};q.Di=function(){return!1};q.vB=function(){};q.zq=e(643);q.hJ=e(646);q.kt=function(){return!1};q.r2a=function(a){a.data.visible&&this.g3&&this.kt()};q.cka=e(647);q.p_a=ka;q.TP=Hx;
var HQd=function(a,b){Mw.call(this);this.$b=a;this.Ab=b};t(HQd,Mw);HQd.prototype.PD=pg(new Af("pick"));HQd.prototype.Sq=function(){return 6};HQd.prototype.xE=function(){var a=new Ze;Pw(a,"docs",Rf(this.$b));this.Ab&&Pw(a,"viewToken",Rf(this.Ab.le()));return a};
var QQd=function(a,b){Mw.call(this);this.Ab=a;this.$b=b};t(QQd,Mw);QQd.prototype.PD=pg(new Af("imageuploadstats"));QQd.prototype.Sq=function(){return 11};QQd.prototype.xE=function(){var a=QQd.ya.xE.call(this);Pw(a,"mechanism",this.Ab);Pw(a,"data",Rf(zg(this.$b,function(a){return a.le()})));return a};
var IQd=function(){kd.call(this);var a={},b=new JQd(function(a){var b=a.Tf(),f=a.getPath();if("youtube.com"==b||"www.youtube.com"==b||"m.youtube.com"==b){if("/"==f||"/watch"==f)return a.Pg("v")}else if("youtu.be"==b&&ya(f,"/"))return f.substr(1)},(ya(window.location.href,"https")?"https":"http")+"://www.youtube.com/v/{$VIDEO_ID}?fs=1");a["www.youtube.com"]=b;a["youtube.com"]=b;a["m.youtube.com"]=b;a["youtu.be"]=b;b=new JQd(function(a){var b=a.Tf();if("https"==a.Au()&&"/video/video.php"==a.getPath()&&
("www.facebook.com"==b||"facebook.com"==b))return a.Pg("v")},"https://www.facebook.com/v/{$VIDEO_ID}");a["www.facebook.com"]=b;a["facebook.com"]=b;b=new JQd(function(a){var b=a.getPath(),f=a.Tf();if("https"==a.Au()&&ya(b,"/")&&("www.vimeo.com"==f||"vimeo.com"==f)&&(a=b.split("/")[1],!isNaN(parseInt(a,10))))return a},"https://vimeo.com/moogaloop.swf?clip_id={$VIDEO_ID}");a["www.vimeo.com"]=b;a["vimeo.com"]=b;a["video.google.com"]=new JQd(function(a){if("http"==a.Au()&&"/videoplay"==a.getPath()&&"video.google.com"==
a.Tf())return a.Pg("docid")},"http://video.google.com/googleplayer.swf?docid={$VIDEO_ID}&fs=true");b=new JQd(function(a){var b=a.getPath(),f=a.Tf();if("http"==a.Au()&&("www.metacafe.com"==f||"metacafe.com"==f)&&ya(b,"/watch/"))return"/"==b[b.length-1]?b.substr(7,b.length-7-1):b.substr(7)},"http://www.metacafe.com/fplayer/{$VIDEO_ID}.swf");a["www.metacafe.com"]=b;a["metacafe.com"]=b;this.$=a};t(IQd,kd);la(IQd); var xVd=function(a,b,c){return(a=a.$[c])&&!!a.$(b)},KQd=function(a,b){try{var c=Jf(b);return a.$["www.youtube.com"].$(c)}catch(d){}},JQd=function(a,b){this.$=a;this.Sa=b};
var LQd=function(a){this.Op=ya(window.location.href,"https");var b=new Ze;a=(a.responseData||{}).results||[];var c=MQd(this,a,b),d={},f=d.response={};f.docs=c;a.length&&(f.cursor=a.length);Ww.call(this,d);a=this.Ae();for(c=0;c<a.length;c++)(d=b.get(a[c].Qe()))&&a[c].ZE(d)};t(LQd,Ww);
var MQd=function(a,b,c){var d=[];v(b,function(a){var b={};b.name=a.titleNoFormatting;b.description=a.content;b.serviceId="search-api";var k;k=a.originalContextUrl||a.unescapedUrl||a.url||a.postUrl;k=k.match("^https?://www.google.com/url")?Jf(k).Pg("q"):k;b.url=k;k=Jf(k);b.id=KQd(IQd.ia(),k)||va(b).toString();switch(a.GsearchResultClass){case "GblogSearch":b.type="url";k={};k.vu=a.blogUrl;b.attrs=k;b.lastEditedUtc=a.blogUrl;break;case "GbookSearch":b.type="book";b.id=k.Pg("id");k={};k.au=a.authors;
k.pc=a.pageCount;k.py=a.publishedYear;b.attrs=k;c.set(b.id,NQd(this,a));break;case "GimageSearch":b.type="photo";k=a.titleNoFormatting;var m=a.contentNoFormatting;0==k.indexOf("http://")&&m?(b.name=m,b.description=void 0):(b.name=k,b.description=m);b.id=a.imageId||b.id;b.mimeType="image/jpeg";c.set(b.id,NQd(this,a));break;case "GvideoSearch":b.type="video";m=ada(Jf(a.playUrl),"autoPlay").toString().replace(/&autoplay=\d+/,"");this.Op&&(ya(m,"http://www.youtube.com/v/")||ya(m,"http://youtube.googleapis.com/v/"))&&
(m=m.replace(/^http:\/\//,"https://"));b.embedUrl=m;b.mimeType="application/x-shockwave-flash";b.lastEditedUtc=a.published;var m={},p=a.duration;p&&"null"!=p&&(m.d=p);b.videoData=m;xVd(IQd.ia(),k,"www.youtube.com")&&(m.ar="16:9");c.set(b.id,NQd(this,a));break;case "GwebSearch":b.type="url",k={},k.vu=a.visibleUrl,b.attrs=k}d.push(b)},a);return d},NQd=function(a,b){var c=b.tbUrl,d=c.match(/^(http(?:s)?:\/\/[0-9]+\.gvt[0-9]+\.com\/vi\/[^\/]+\/).*/)||c.match(/^(http(?:s)?:\/\/img\.youtube\.com\/vi\/[^\/]+\/).*/);
if(d)return c=d[1],a.Op&&(c=Bf(Jf(c),"https").Zy("ytimg.googleusercontent.com").toString()),[new Uw(c+"default.jpg",120,90),new Uw(c+"hqdefault.jpg",480,360)];d=[];d.push(new Uw(c,parseInt(b.tbWidth,10),parseInt(b.tbHeight,10)));"GimageSearch"==b.GsearchResultClass&&d.push(new Uw(b.unescapedUrl,parseInt(b.width,10),parseInt(b.height,10)));return d};$S(7,function(a){return new LQd(a)});
var v3=function(a,b){Zw.call(this,b);this.y2=a;var c=b.site;c&&/[^a-zA-Z0-9\.]/.test(c)&&(c=null);this.lp=c;this.Km=b.inUrl;this.Tx=b.license;this.Vk=b.imgsz;this.jg=b.cse;this.Ab=b.cseLabel;this.uh=b.imgcolor;this.Vb=b.imgc;this.Op=b.imgtype;this.Db=b.safe||"active"};t(v3,Zw);q=v3.prototype;q.PD=pg(Cf((new Af).Zy("ajax.googleapis.com"),"/ajax/services/search/"));q.Sq=function(){return 7};q.Dga=e(625);
q.Iwa=function(){var a=new Ff,b=v3.ya.Iwa.call(this);b.get("hl")&&a.set("hl",b.get("hl"));(b=this.xE())&&Ve(b,function(b,d){a.set(d,b)});return a};
q.xE=function(){var a=new li(this.getQuery());this.lp&&a.fc(" site:"+this.lp);this.Km&&a.fc(" inurl:"+this.Km);this.Ab&&a.fc(" more:"+this.Ab);var b=new Ze;b.set("q",a.toString());b.set("v","1.0");b.set("key","internal-onepick");b.set("start",this.Oo());b.set("rsz","large");this.uh&&b.set("imgcolor",this.uh);this.Vb&&b.set("imgc",this.Vb);this.Op&&b.set("imgtype",this.Op);this.Vk&&b.set("imgsz",this.Vk);this.Db&&b.set("safe",this.Db);this.jg&&b.set("cx",this.jg);var c;switch(this.Tx){case "r":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial|cc_nonderived)";
break;case "cr":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_nonderived).-(cc_noncommercial)";break;case "rwm":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial).-(cc_nonderived)";break;case "crwm":c="(cc_publicdomain|cc_attribute|cc_sharealike).-(cc_noncommercial|cc_nonderived)"}c&&b.set("as_rights",c);return b};q.clone=function(a){return new v3(this.y2,eFa(this,a))};
var w3=function(a,b,c){kd.call(this);this.$=a;this.oh=b;this.Ab=c||{}},jRd;t(w3,kd);
var jJe=["application/vnd.oasis.opendocument.graphics","image/vnd.adobe.photoshop","image/x-photoshop","application/illustrator","application/vnd.google-apps.drawing"],kJe=["application/vnd.google-apps.form","application/vnd.google-apps.freebird"],BJe=["image/jpeg","image/gif","image/png","image/tiff","image/bmp"],SKe=["application/pdf"],TKe="application/mspowerpoint application/vnd.ms-powerpoint application/vnd.oasis.opendocument.presentation application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.google-apps.presentation application/vnd.google-apps.punch".split(" "),UKe=
["application/vnd.google-apps.script"],eLe=["application/vnd.google-apps.sites"],pLe="application/msexcel application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.oasis.opendocument.spreadsheet application/vnd.google-apps.spreadsheet application/vnd.google-apps.ritz application/vnd.google-apps.form".split(" "),ELe=["application/vnd.google-apps.fusiontable"],FLe="text/plain application/msword application/vnd.ms-word application/vnd.oasis.opendocument.text application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.google-apps.document application/vnd.google-apps.kix".split(" "),
KLe="application/vnd.google-apps.video video/3gpp video/3gpp2 video/avi video/flv video/mp2t video/mp4 video/mp4v-es video/mpeg video/ogg video/quicktime video/webm video/x-flv video/x-m4v video/x-ms-asf video/x-ms-wm video/x-ms-wmv video/x-ms-wvx video/x-msvideo video/x-quicktime video/vnd.mts".split(" "),mjc=["flat","highlights","mediacollection"];w3.prototype.mL=null;w3.prototype.Sa=null;w3.prototype.Qb=null;
var r0d=!1,nhg=!1,psg=!1,OQd=function(a){var b=a.getOption("query");return"upload"==a.$&&("cultural"==b||"photo"==b||"photos"==b||"profile"==b||"videos"==b||"youtubebanner"==b)},NAg=function(a){var b=a.getOption("ownedByMe"),c=a.getOption("parent");return FQd(a.$)&&ra(b)&&!b&&!c&&!a.getQuery()};
w3.prototype.or=function(){var a=this.mL;if(a)return a;a:{var b=this.getOption("ids");if(b&&FQd(this.$))a=new u3("docs",b.split(","),{});else{var b={},a={service:"docs",query:this.getQuery(),options:b},c=this.getOption("ownedByMe");c?b.ownedByMe=!0:0==c&&(b.ownedByMe=!1);a.mine=jRd?0:0==jRd?1:2;psg&&(b.edbe=!0);var c=this.getOption("parent"),d="EVERYTHING",f=!1,h=[];switch(this.$){case "docs-images":case "docs-images-and-videos":case "docs-videos":if("docs-images"==this.$||"docs-images-and-videos"==
this.$)h=h.concat(BJe);if("docs-videos"==this.$||"docs-images-and-videos"==this.$)h=h.concat(KLe);"docs-videos"==this.$&&(f=!0);if(!this.getQuery()&&!NAg(this)){b.sortKey=8;b.ascending=!0;break}case "all":d="NOT_COLLECTION";break;case "documents":h=FLe;break;case "drawings":h=jJe;break;case "folders":c||(h=["application/vnd.google-apps.folder"]);break;case "forms":h=kJe;break;case "pdfs":h=SKe;break;case "presentations":h=TKe;break;case "scripts":h=UKe;break;case "sites":h=eLe;break;case "spreadsheets":h=
pLe;break;case "tables":h=ELe;break;default:a=null;break a}var k=this.getOption("mimeTypes");k&&k&&qa(k)&&(k=k.split(","));var m=[];h.length&&k&&k.length?m=(new df(h)).M4(k).Rc():m=k||h;this.getOption("includeFolders")&&!f&&(d="EVERYTHING",m.length&&!eb(m,"application/vnd.google-apps.folder")&&(m=m.concat(["application/vnd.google-apps.folder"])),b.notInFolder=!0);this.getOption("starred")&&(b.starred=!0);(f=this.getOption("containingCosmoId"))&&(b.containingCosmoId=f);m.length&&(b.mimeTypes=m.join(","),
d="EVERYTHING");a.type=d;c&&(a.parent=c);if(c=this.getOption("sortKey"))b.sortKey=c,8==c||7==c?b.ascending=!0:delete b.ascending;c=this.getOption("ff");ra(c)||(c=nhg);c&&(b.ff=c);a=new $w(a)}}if(!a)switch(b=this.getQuery(),c=this.Ra(),this.$){case "blog-search":a=new v3("blogs",{query:b,safe:this.getOption("safe"),site:this.getOption("site")});break;case "blog-templates":a=new $w({service:"blogger"});break;case "book-search":a=new v3("books",{query:b});break;case "calendars":d={service:"calendar"};
jRd&&(d.mine=0);a=new $w(d);break;case "contacts":a={service:"contacts"};c=this.getOption("parent");b?a.query=b:c&&(a.parent=c);a=new $w(a);break;case "events":a={service:"party",type:"events"};a=new $w(a);break;case "et":a={service:"party",type:"themes"};(b=this.getOption("category")||this.Ra())&&(a.options={category:b});a=new $w(a);break;case "fonts":a={options:{sortOrder:this.getOption("sortOrder")||"p"},service:"fonts",type:this.Ra()};b&&(a.query=b);a=new $w(a);break;case "groups":a={service:"groups"};
(c=this.getOption("parent"))&&(a.parent=c);a=new $w(a);break;case "image-search":if("getty"==c){a=PQd(this);break}a=BJg(this);break;case "my-maps":a=new $w({service:"mapshop"});break;case "maps-pro":a=new $w({type:this.Ra(),service:"mapspro"});break;case "circle":(c=this.getOption("parent"))&&"hem"!=this.getOption("mode")&&(a=new Yw("p",void 0,c));break;case "people":switch(this.Ra()){case "all":a="a";break;case "circles":a="c";break;case "frequent":a="f";break;case "gmail":a=this.getQuery()?"p":
"g";break;case "selected":a=this.getQuery()?"p":"s";break;default:a="p"}c=this.getOption("peopleFilter");a=new Yw(a,b||void 0,this.getOption("parent"),c?new XEa(c):void 0,!!this.getOption("noEmailInput"));break;case "photos":case "photo-tagging":a=PQd(this);break;case "video-albums":case "photo-albums":a="mediacollections"==c?vxg(this,"your_collections"):PQd(this);break;case "photo-curation":this.getOption("parent")&&!this.getOption("che")&&(a=PQd(this));break;case "play-edu":a=new $w({type:c,query:b,
service:"play-edu"});break;case "recently-picked":a=new $w({service:"recent"});break;case "video-search":c=this.getOption("site");"youtube.com"==c?a=new $w({service:"youtube",type:"search",query:b}):a=new v3("video",{site:c,query:b});break;case "videos":this.getOption("rdv")&&"uploaded"==c?a=vxg(this,"your_videos"):(d={},a=new $w({service:"picasa",parent:this.getOption("parent"),safe:this.getOption("safe"),type:"videos-"+(c||"uploaded"),options:d}),ia(this.getOption("visibilityFilter"))&&(d.visibilityFilter=
this.getOption("visibilityFilter")));break;case "web":a=BJg(this);break;case "youtube":d={service:"youtube"},b?(d.query=b,d.type="search"):d.type="uploads",a=new $w(d)}return this.mL=a};
var PQd=function(a){var b=a.Ra();if("gmail_themes"==b){var c=new $w({service:"static_themes"});return c}if("moment"==b)return c=new $w({parent:a.getOption("parent"),query:a.getQuery(),service:"stories",type:b}),a.getOption("allowedItemTypes")&&oZd(c,"allowedItemTypes",a.getOption("allowedItemTypes")),c;c=!!a.getOption("rdv");if(eb(mjc,b))return vxg(a,"flat"==b?"your_photos":b);if(c&&"videos-uploaded"==b)return vxg(a,"your_videos");var d=a.getOption("ids");if(d)return c={},(b=a.getOption("username"))&&
(c.username=b),"photo-albums"==a.$&&(c.type="album"),new u3("picasa",d.split(","),c);c={};d=c.options={};switch(a.$){case "photo-tagging":b="faces";a.getOption("eid")&&(d.eid=a.getOption("eid"));break;case "photo-curation":b="tpp"}var f=a.getQuery();c.service="picasa";c.type=b;c.username=a.getOption("username");d.excludeLabels=a.getOption("excludeLabels");"localalbum"==b&&(d.localAlbum=a.getOption("localalbum"),d.localUser=a.getOption("localuser"));var h=a.getOption("parent");f?c.query=f:(h&&(c.parent=
h),a.getOption("allowedItemTypes")?d.allowedItemTypes=a.getOption("allowedItemTypes"):h&&"video-albums"==a.$&&(d.allowedItemTypes="video"));"photo-albums"==a.$&&(d.snippets="12");if("ofuser"==b||"photo-tagging"==a.$)b=a.getOption("userId"),null!=b&&(d.userId=b);(b=a.getOption("shapeType"))&&(d.shapeType=b);a.getOption("excludeEvAlbums")&&(d.excludeEvAlbums=!0);ia(a.getOption("visibilityFilter"))&&(d.visibilityFilter=a.getOption("visibilityFilter"));return new $w(c)},vxg=function(a,b){var c={query:a.getQuery(),
service:"media",type:b},d=a.getOption("ownedByMe");if(jRd||d)c.mine=0;c=new $w(c);a.getOption("allowedItemTypes")?oZd(c,"allowedItemTypes",a.getOption("allowedItemTypes")):"your_photos"!=b&&oZd(c,"allowedItemTypes","photo");r0d&&oZd(c,"enableSizeEstimation","true");if(d=a.getOption("parent"))c.Ag=d,c.mL=null;(d=a.getOption("ipl"))&&oZd(c,"ipl",d);(d=a.getOption("username"))&&oZd(c,"username",d);(d=a.getOption("userId"))&&oZd(c,"userId",d);return c},BJg=function(a){var b={service:"web"},c={};c.safe=
a.getOption("safe")||"active";switch(a.$){case "web":var d=new li(a.getQuery());a.getOption("site")&&d.fc(" site:"+a.getOption("site"));a.getOption("inUrl")&&d.fc(" inurl:"+a.getOption("inUrl"));a.getOption("cseLabel")&&d.fc(" more:"+a.getOption("cseLabel"));IHg(a,c,"cse","cse");b.query=d.toString();b.options=c;break;case "image-search":b.type="photo","life"==a.Ra()?b.query=a.getQuery()+" source:life":(b.query=a.getQuery(),IHg(a,c,"imgsz","imgsz"),IHg(a,c,"license","license"),IHg(a,c,"site","site"),
IHg(a,c,"imgc","imgc"),IHg(a,c,"imgcolor","imgcolor"),IHg(a,c,"imgtype","imgtype"),b.options=c)}return new $w(b)};q=w3.prototype;q.Ra=function(){return this.getOption("type")};
q.getName=function(){if(this.oh)return this.oh;if("all"==this.$||"docs-images"==this.$||"docs-images-and-videos"==this.$||"docs-videos"==this.$){var a=this.getOption("ownedByMe");if(!0===a)return"My Drive";if(!1===a)return"Shared with Me"}a=this.Ra();switch(this.$){case "blog-search":return"Blog search";case "blog-templates":return"Blog templates";case "book-search":return"Book search";case "calendars":return"Calendars";case "circle":return this.getOption("parent")?"Edit your circle":"Create a circle";
case "contacts":return"Contacts";case "create-event":return"Create";case "crop":return"Photo crop";case "all":return"Google Drive";case "docs-images":return"Images";case "docs-images-and-videos":return"Images and videos";case "docs-videos":return"Videos";case "documents":return"Documents";case "drawings":return"Drawings";case "events":return"Events";case "folders":return"Folders";case "fonts":return"Fonts";case "forms":return"Forms";case "groups":return"Groups";case "icon":return"homepage"==a?"No background":
"Icon";case "image-search":return this.getOption("comboTypes")?"Image search":"life"==a?"LIFE Photo Archive":"getty"==a?"Stock photos":"Google Image Search";case "maps":return"Maps";case "my-maps":return"My Maps";case "maps-pro":return"Maps Engine Lite";case "pdfs":return"PDFs";case "people":switch(this.Ra()){case "circles":return"Circles";default:return"People"}case "photo-caption":return"Add text to photo";case "photo-curation":return"Organize photos";case "photo-tagging":return"Tag people";case "photos":return"banner"==
a?"Cover photos":"featured"==a?"Featured photos":"getty"==a?"Stock photos":"camerasync"==a?"Photos from phone":"flat"==a?"Your photos":"ofuser"==a?"Photos of you":"uploaded"==a?"Uploaded photos":"Your photos";case "photo-albums":return"Photo albums";case "play-edu":return"Play for Education";case "presentations":return"Presentations";case "profile":return"np"==a?"No photo":"Profile photo";case "quota":return"Quota";case "recently-picked":return"Previously selected";case "scripts":return"Scripts";
case "spreadsheets":return"Spreadsheets";case "sites":return"Sites";case "tables":return"Tables";case "photo-upload":case "upload":var b;return"photo-upload"==this.$||(b=OQd(this))&&"videos"!=this.getQuery()&&"cultural"!=this.getQuery()?"Upload photos":b&&"cultural"!=this.getQuery()?"Upload videos":"Upload";case "video-search":return"Video search";case "video-albums":return"Albums";case "videos":return"camerasync"==a?"Videos from phone":"Videos";case "webcam":switch(this.Ra()){case "standard":return"Take a snapshot";
case "video":return"Record a video";default:return"Web camera"}case "web":return"Web search";case "url":return"URL";case "youtube":return"Your YouTube videos";case "youtube-banner-preview":return"YouTube banner preview"}return""};q.getTitle=function(){return this.oh};q.getOptions=function(){return this.Ab};q.getOption=function(a){return this.Ab[a]};
q.equals=function(a){return!!a&&a.$==this.$&&this.getQuery()==a.getQuery()&&Qb(this.getOptions())==Qb(a.getOptions())&&this.getOption("parent")==a.getOption("parent")&&this.Ra()==a.Ra()&&this.getOption("id")==a.getOption("id")&&this.getOption("ownedByMe")==a.getOption("ownedByMe")};q.clone=function(){var a=new w3(this.$,this.oh,Xb(this.Ab));a.Sa=this.Sa;a.Qb=this.Qb||this;return a};q.getQuery=function(){return this.getOption("query")};q.setOptions=function(a){this.Ab=a;this.mL=null}; var BN=function(a,b,c){a.Ab[b]=c;a.mL=null},IHg=function(a,b,c,d){a=a.getOption(d);ia(a)&&(b[c]=a)};w3.prototype.le=function(){return[this.$,this.oh,this.Ab]};w3.prototype.qb=function(){w3.ya.qb.call(this);delete this.$;delete this.oh;delete this.Ab};
var x3=function(){kd.call(this)};t(x3,ug);x3.prototype.uj=Hx;x3.prototype.K9=Hx;var y3=function(a,b,c,d,f,h){t3.call(this,a,h);this.Mma=b;this.Be=c;this.swa=d;this.Sx=f;My.Bo()&&("left"==f?f="right":"right"==f&&(f="left"));this.y2=f;this.lN=[];this.Op=[];this.lp=this.Sa=null;this.p_=!0;this.jv=null;this.Xb="0"};t(y3,t3);y3.prototype.cb=function(){return this.lp};
y3.prototype.Pa=function(){var a=this.Ea(),b=this.Sa=a.Pa("div",{className:function(a){switch(a){case "top":return"a-be-Zb";case "bottom":return"a-be-Qe";case "left":return"a-be-ya";case "right":return"a-be-Ja"}return""}(this.Sx)+" "+this.Be}),c=this.lp=a.Pa("div",{className:"a-be-B "+this.swa});v(this.Op,function(a){a.Pa();c.appendChild(a.ta())});var d="bottom"==this.Sx||"right"==this.Sx,a=a.Pa("div",{className:"a-be-Cc "+this.Mma},d?c:b,d?b:c);this.Kb(a)};y3.prototype.Na=function(){this.Bgb();y3.ya.Na.call(this)};
var TQd=function(a,b){a.ib(b);a.lN.push(b)};q=y3.prototype;q.removeChild=function(a,b){var c=y3.ya.removeChild.call(this,a,b);mb(this.Op,a);return c};q.qRc=e(649);q.setSize=function(a){this.jv=a;this.Nb()&&this.Bgb()};q.tf=function(){return this.jv};
q.Bgb=function(){var a=this.jv,b=this.y2,c="top"==b||"bottom"==b,d=xc&&!Gf(7),f=this.Sa,h=ye(f);if(isNaN(h.top))Uf(Lp(this.Bgb,this),200);else{h=c?h.top+h.bottom:h.left+h.right;if(0<a||this.getContext().rd().mL&&0==a){var k=(d?a+h:a)+"px";c?f.style.height=k:f.style.width=k}else 0==a&&Pd(f,"padding",0);k=0;a&&(k=a+h,d||(a=de(f),k+=c?a.top+a.bottom:a.left+a.right));this.Xb=k+="px";d?Pd(this.ta(),"padding-"+b,k):Pd(this.lp,b,k)}};q.qb=function(){y3.ya.qb.call(this);this.Op=this.lN=null};
var PAg=function(a,b){s3.call(this,a,b);this.Sa=null;this.Ab=OAg(a.rd())};t(PAg,s3);PAg.prototype.Pa=function(){if(this.Ab){var a=this.Ea(),b=a.Pa("div","a-yC",a.Pa("span","a-n-JX"));this.Kb(b);this.Sa=new BM("Learn more",OF.ia(),a);this.ib(this.Sa,!0)}else PAg.ya.Pa.call(this)};PAg.prototype.Na=function(){PAg.ya.Na.call(this);this.Sa&&this.getHandler().Ja(this.Sa,"action",this.mL)};PAg.prototype.getUrl=function(){return this.Ab};PAg.prototype.mL=function(){this.Ab&&rp(this.Ab,{target:"_blank"})};
var OAg=function(a){a=a.mBa;var b="&hl="+My.$;if(!isNaN(parseInt(a,10)))return"https://www.google.com/support/websearch/bin/answer.py?answer="+a+b;if(qa(a)){var c=/\/support\/\w+\?p=\w+$/;if(c.test(a))return"https://www.google.com"+a+b;c=/^[a-z]+\/\?p=[a-z_]+$/;if(c.test(a))return"https://support.google.com/"+a+b}return null};
var A3=function(a,b){lQ.call(this,b);this.Ag=xc&&!wZb?"a-la-ba-Hd":a};t(A3,lQ);A3.prototype.Na=function(){A3.ya.Na.call(this);Qn(this.ta(),this.Ag);po(this.ta(),"status")};A3.prototype.Pa=function(){A3.ya.Pa.call(this);var a=this.ta();a&&(IUa(a,"valuenow"),qo(a,"atomic",!0),qo(a,"live","polite"),ey(a,"Progress Started"))}; A3.prototype.$=function(a){A3.ya.$.call(this,a);var b=this.ta();if(b)switch(IUa(b,"valuenow"),qo(b,"atomic",!0),qo(b,"live","polite"),a){case 0:ey(b,"Progress Started");break;case 100:ey(b,"Progress Completed")}};
var UV=function(a){this.$=void 0;this.Sa=a};t(UV,Go);UV.prototype.Pa=function(a){return a.Ea().Pa("div",this.ZGa(a))};UV.prototype.E$=function(a){UV.ya.E$.call(this,a);a=a.Qb.wu();if(!this.Sa){a[0].TE(2);for(var b=1;b<a.length-1;++b)a[b].TE(3);a[a.length-1].TE(1)}};UV.prototype.Pc=function(){return"a-ULu6Y"};
var RW=function(a,b,c,d){Ho.call(this,"horizontal",d||new UV,c);Io(this,!1);this.gUa=!0;this.Qb=new hz;v(a,this.$,this);b?t0d(this,b):GQe(this,this.Qb.$[0])};t(RW,Ho);RW.prototype.Na=function(){RW.ya.Na.call(this);this.getHandler().Ja(this.Qb,"select",Lp(this.dispatchEvent,this,"change"))};RW.prototype.$=function(a){a.Bm(8,!0);EI(this.Qb,a);this.getHandler().Ja(a,"action",this.Ab);this.ib(a,!0)};
var GQe=function(a,b){a.Qb.jn(b);var c=a.fL,d=a.Qb.wu();if(c.Sa){for(var f,c=0;c<d.length;c++){var h=d[c];h.setVisible(!h.Sf());h.Sf()||(f=h)}f.zt(!0)}},t0d=function(a,b){var c=cb(a.Qb.wu(),function(a){return b==a.getValue()},a);c&&GQe(a,c)};RW.prototype.Ab=function(a){GQe(this,a.target)};
var B3=function(a,b,c,d){y3.call(this,a,"a-Za-Cc","a-Za-Bb","a-Za-B","bottom",d);this.Pt=VQd(this,this.getContext().rd().Hwa(),!0);x(this,this.Pt);this.iaa=b;this.mL=this.kN();x(this,this.mL);this.Ko=new C;TQd(this,this.Ko);this.Qb=null;this.nA=c;this.Naa=this.yja=this.Km=this.uh=this.Ab=this.Tx=this.Vk=this.$b=null;this.Vb=new PAg(a,d);x(this,this.Vb);a.rd().ana&&a.Ab.addCallback(Lp(function(a){ia(a.kcc)&&WQd(this,a.kcc,a.jcc)},this));this.getHandler().Ja(this.getContext().We(),"ui",this.update)};
t(B3,y3);var kRd=0;B3.prototype.kN=function(){return VQd(this,"Cancel")};
var VQd=function(a,b,c){return c?St(a.getContext().rd().Hwa(),a.Ea()):new Ot(b,a.Ea())},WQd=function(a,b,c,d){var f=a.Ea();a.$b?(f.hb(a.Vk),f.appendChild(a.Vk,cd(f,b))):(a.Vk=f.Pa("td","a-Za-lm-Ws",cd(f,b)),a.$b=f.Pa("table",d?d:"a-Za-lm",f.Pa("tbody",null,f.Pa("tr",null,a.Vk))),a.Sa&&(f.Hy(a.$b,a.Sa.lastChild),a.dVa()));b=a.Vk.getElementsByTagName("a");if(b.length&&c){c=Hua(c);if(!a.Tx){var h=a.Tx=new gD(f);h.setContent(c);h.Fg(b[0]);h.IA(!1);h.setPosition(2,0);h.render(a.getContext().rd().fG());
Qn(h.ta(),"a-Za-lm-ni");a.getHandler().Ja(b[0],"mousedown",function(a){h.setVisible(!0);a.stopPropagation();a.preventDefault()})}a.Tx.setContent(c)}};q=B3.prototype;
q.dVa=function(){Uf(function(){if(this.$b){var a=xe(this.Sa).width,b=this.Tc("a-Za-zu-sc");v(b,function(b){var c=Ae(b);c&&(a-=c.right?c.right:0,a-=c.left?c.left:0);(b=xe(b))&&b.width&&(a-=b.width)});0<a&&Pd(this.$b,"max-width",a+"px")}if(this.Ab){this.Ea();var b=zy(this.Sa).height,c=ze(this.Ab).height;b>c?Pd(this.Ab,"margin-top",(b-c)/2+"px"):Pd(this.Ab,"margin-top","0px")}},0,this)};
q.Pa=function(){B3.ya.Pa.call(this);var a=this.Ea(),b=this.Sa,c=this.Ko;c.Pa();b.appendChild(a.Pa("div","a-Za-zu-sc",c.ta()));c=this.Ko.ta();this.Pt.render(c);this.Pt.ta().id="picker:ap:"+kRd++;this.Pt.ta().setAttribute("guidedhelpid","ghid-psc");this.mL&&(this.mL.render(c),this.mL.ta().id="picker:ap:"+kRd++,On(this.mL.ta(),!this.Ye));this.Qb&&(this.Qb.Pa(),b.appendChild(this.Qb.ta()));this.uh&&(c=a.Pa("div","a-Za-v-c-zu-sc"),b.appendChild(c),this.uh.render(c),this.uh.ta().id="picker:ap:"+kRd++,Qn(this.uh.ta(),
"a-Za-v-c"));this.Vb.getUrl()&&(this.Vb.Pa(),TQd(this,this.Vb),b.appendChild(this.Vb.ta()));(c=this.getContext().rd().Zma)&&b.appendChild(a.Pa("div","a-Za-Sja",a.createTextNode(c)));this.Ab=a.Pa("div","a-Za-lm-wa");On(this.Ab,!1);po(this.Ab,"status");qo(this.Ab,"live","polite");b.appendChild(this.Ab);this.$b&&(b.appendChild(this.$b),this.dVa());this.update();this.setSize(xc?72:69)};q.setActive=function(a,b){B3.ya.setActive.call(this,a,b);this.Qb&&this.Qb.setActive(a,b)};
q.Na=function(){B3.ya.Na.call(this);var a=this.getHandler();a.Ja(this.Pt,"action",this.GDb);this.mL&&a.Ja(this.mL,"action",this.Fvc);a.Ja(this.Ea().getWindow(),"resize",this.dVa)};q.focus=function(){try{return this.Db||!this.mL?this.Pt.ta().focus():this.mL.ta().focus(),!0}catch(a){return!1}};q.GDb=function(){this.iaa?this.iaa():this.getContext().Sa.b2b()};q.Fvc=function(){this.nA?this.nA():this.getContext().Sa.oD()};q.qh=function(a){this.Db=a;this.Nb()&&this.update()};
q.update=function(){var a=this.getContext(),b=a.We().Aia();this.yQ=this.yQ||b;this.Pt.Ta(this.Db&&(!b||a.rd().Ye));this.Db?this.Pt.Ab("a-Qb-e-D6"):moa(this.Pt,"a-Qb-e-D6");this.uh&&(a=this.yQ&&!b,On(this.uh.ta(),a),this.uh.ta().style.visibility=a?"":"hidden");this.$b&&On(this.$b,!b);this.V2b()};
q.V2b=function(){var a=this.Ea(),b=this.getContext().We(),c=b.Aia(),d=this.Km;if(!c||this.ima)d&&(On(d,!1),d.style.visibility="hidden");else{var c=this.yja,f=this.Naa;if(!d){var h;this.Sa.appendChild(d=this.Km=a.Pa("div","a-Za-v-Qd",c=this.yja=a.Pa("div","a-Za-v-Qd-E"),h=a.Pa("div","d-k-l")));f=this.Naa=new A3("a-la-ba",a);EQd(f);ndc(f,100);f.$(0);f.yb(h);On(d,!1);h=oe(this.Ko.ta()).width;Pd(this.Km,My.Bo()?"right":"left",h+30+"px")}h=b.mL;var k=b.hW();h="Uploading "+((h<k?h+1:h)+(" of "+k));a.hb(c); a.appendChild(c,cd(a,h+"&nbsp;&nbsp;&nbsp;"));f.$(100*b.BGa());On(d,!0);d.style.visibility=""}};
var C3=function(a,b,c,d){yo.call(this,null,c,d);this.$=a;this.p_=b;this.Bm(16,!0);Co(this,16,!0)};t(C3,yo);q=C3.prototype;q.La=function(){return this.p_};q.getContext=function(){return this.$};q.Na=function(){C3.ya.Na.call(this);this.getHandler().Ja(this.ta(),"dblclick",this.Vva)};q.update=function(){this.$.od.La(this.p_.getId())&&this.xZ(this.p_.getId())};q.xZ=function(a){this.p_=this.$.od.La(a)};q.Vva=function(){this.dispatchEvent("dblclick")};q.vHa=ka;

G("sy855");I();
}catch(e){_DumpException(e)}
try{
Wf.prototype.RK=g(0,function(){return this.Ag});H("sy861");var BEa=function(a,b){kd.call(this);this.Ag=a||0;this.Ab=b||10;if(this.Ag>this.Ab)throw Error("Gc");this.$=new Rh;this.Sa=new df;this.sV=0;this.$b=null;this.iCa()};t(BEa,kd);BEa.prototype.wy=function(){var a=Wa();if(!(null!=this.$b&&a-this.$b<this.sV)){for(var b;0<this.$.Fc()&&(b=oo(this.$),!this.K7a(b));)this.iCa();!b&&this.Fc()<this.Ab&&(b=this.Qb());b&&(this.$b=a,this.Sa.add(b));return b}};BEa.prototype.MTa=function(a){this.Sa.remove(a);this.K7a(a)&&this.Fc()<this.Ab?Sh(this.$,a):CEa(a)};
BEa.prototype.iCa=function(){for(var a=this.$;this.Fc()<this.Ag;)Sh(a,this.Qb());for(;this.Fc()>this.Ab&&0<this.$.Fc();)CEa(oo(a))};BEa.prototype.Qb=function(){return{}};var CEa=function(a){if("function"==typeof a.Ma)a.Ma();else for(var b in a)a[b]=null};q=BEa.prototype;q.K7a=function(a){return"function"==typeof a.cgc?a.cgc():!0};q.contains=function(a){return this.$.contains(a)||this.Sa.contains(a)};q.Fc=function(){return this.$.Fc()+this.Sa.Fc()};q.isEmpty=function(){return this.$.isEmpty()&&this.Sa.isEmpty()}; q.qb=function(){BEa.ya.qb.call(this);if(0<this.Sa.Fc())throw Error("Hc");delete this.Sa;for(var a=this.$;!a.isEmpty();)CEa(oo(a));delete this.$};
var Lw=function(a,b){this.DU=void 0;this.mL=new nza;BEa.call(this,a,b)};t(Lw,BEa);q=Lw.prototype;q.wy=function(a,b){if(!a){var c=Lw.ya.wy.call(this);c&&this.sV&&(this.DU=ha.setTimeout(Lp(this.NHa,this),this.sV));return c}Hv(this.mL,ia(b)?b:100,a);this.NHa()};q.NHa=function(){for(var a=this.mL;0<a.Fc();){var b=this.wy();if(b)a.remove().apply(this,[b]);else break}};q.MTa=function(a){Lw.ya.MTa.call(this,a);this.NHa()};q.iCa=function(){Lw.ya.iCa.call(this);this.NHa()}; q.qb=function(){Lw.ya.qb.call(this);ha.clearTimeout(this.DU);this.mL.clear();this.mL=null};
var DEa=function(a,b,c){Lw.call(this,b,c);this.jg=a};t(DEa,Lw);DEa.prototype.Qb=function(){var a=new Wf,b=this.jg;b&&b.forEach(function(b,d){a.lp.set(d,b)});return a};DEa.prototype.K7a=function(a){return!a.isDisposed()&&!a.Ad()};var EEa=function(a,b,c,d,f){Ld.call(this);this.Ab=ia(a)?a:1;this.mL=ia(f)?Math.max(0,f):0;this.Sa=new DEa(b,c,d);this.$=new Ze;this.Ba=new Hd(this)};t(EEa,Ld);var GEa="ready complete success error abort timeout".split(" ");EEa.prototype.send=function(a,b,c,d,f,h,k,m,p){if(this.$.get(a))throw Error("Ic");b=new IEa(b,Lp(this.Qb,this,a),c,d,f,k,ia(m)?m:this.Ab,p);this.$.set(a,b);a=Lp(this.$b,this,a);this.Sa.wy(a,h);return b};
EEa.prototype.abort=function(a,b){var c=this.$.get(a);if(c){var d=c.AAa;c.kmb=!0;b&&(d&&(this.Ba.nb(d,GEa,c.HRa),yd(d,"ready",function(){var a=this.Sa;a.Sa.remove(d)&&a.MTa(d)},!1,this)),this.$.remove(a));d&&d.abort()}};EEa.prototype.$b=function(a,b){var c=this.$.get(a);if(c&&!c.AAa){this.Ba.Ja(b,GEa,c.HRa);b.Ab=Math.max(0,this.mL);var d=c.RK();b.Ag=d;c.AAa=b;this.dispatchEvent(new HEa("ready",this,a,b));sjc(this,a,b);c.kmb&&b.abort()}else c=this.Sa,c.Sa.remove(b)&&c.MTa(b)};
EEa.prototype.Qb=function(a,b){var c=b.target;switch(b.type){case "ready":sjc(this,a,c);break;case "complete":a:{var d=this.$.get(a);if(7==c.D_()||c.Cod()||d.HCa>d.L0a)if(this.dispatchEvent(new HEa("complete",this,a,c)),d&&(d.Gqb=!0,d.rWa)){c=d.rWa.call(c,b);break a}c=null}return c;case "success":this.dispatchEvent(new HEa("success",this,a,c));break;case "timeout":case "error":d=this.$.get(a);d.HCa>d.L0a&&this.dispatchEvent(new HEa("error",this,a,c));break;case "abort":this.dispatchEvent(new HEa("abort",
this,a,c))}return null};var sjc=function(a,b,c){var d=a.$.get(b);!d||d.Gqb||d.HCa>d.L0a?(d&&(a.Ba.nb(c,GEa,d.HRa),a.$.remove(b)),a=a.Sa,a.Sa.remove(c)&&a.MTa(c)):(d.HCa++,c.send(d.getUrl(),d.qGa(),d.getContent(),d.N_a()))};EEa.prototype.qb=function(){EEa.ya.qb.call(this);this.Sa.Ma();this.Sa=null;this.Ba.Ma();this.Ba=null;this.$.clear();this.$=null};var HEa=function(a,b,c,d){A.call(this,a,b);this.id=c;this.AAa=d};t(HEa,A);
var IEa=function(a,b,c,d,f,h,k,m){this.Qb=a;this.Ab=c||"GET";this.$=d;this.Sa=f||null;this.L0a=ia(k)?k:1;this.HCa=0;this.kmb=this.Gqb=!1;this.HRa=b;this.rWa=h;this.mL=m||"";this.AAa=null};q=IEa.prototype;q.getUrl=function(){return this.Qb};q.qGa=function(){return this.Ab};q.getContent=function(){return this.$};q.N_a=function(){return this.Sa};q.RK=function(){return this.mL};

G("sy861");I();
}catch(e){_DumpException(e)}
try{
var z3=function(a,b){a.ib(b);a.Op.push(b)};H("sy860");var YEa=function(a){Mw.call(this);this.Ab=a};t(YEa,Mw);YEa.prototype.PD=pg(new Af("stat"));YEa.prototype.Dga=e(624);YEa.prototype.Sq=function(){return 8};YEa.prototype.aD=e(627);var RQd=function(a){Qw.call(this,a);this.Qb=a.response&&a.response.displayname};t(RQd,Qw);RQd.prototype.Ob=function(){return this.Qb};$S(20,function(a){return new RQd(a)});var SQd=function(){Mw.call(this)};t(SQd,Mw);SQd.prototype.PD=pg(new Af("displayname"));SQd.prototype.Sq=function(){return 20};var Glg=function(a,b){A.call(this,"fm",a);this.$=b||0};t(Glg,A);var E3=function(a,b,c,d){C3.call(this,a,b,c,d);this.Op=!1};t(E3,C3);q=E3.prototype;q.Na=function(){E3.ya.Na.call(this);this.getHandler().Ja(ahb(this),"key",this.Dnb)};q.Oz=e(650);q.y6a=e(651);q.TGb=e(652);q.Dnb=function(a){switch(a.keyCode){case 38:case 40:case 37:case 39:return this.hT(a),!0;case 32:return this.Dha(a),!0;case 27:if(!this.Kmb(a))return a.preventDefault(),a.stopPropagation(),!0;break;case 13:if(!this.S$(a))return a.preventDefault(),a.stopPropagation(),!0}return!1};
q.hT=function(a){this.dispatchEvent(new Glg(this,a.keyCode));a.preventDefault();a.stopPropagation()};q.Dha=function(a){this.isEnabled()&&Q3b(this);a.preventDefault()};q.Kmb=function(){return!0};q.S$=function(){return xo(this,64)?(this.hm(!0),this.hm(!1),!1):!0};var Q3b=function(a){if(xo(a,16)){var b=a.getContext();b.$.HP(a.La().getId(),b.rd().$b?"cb":"cl")}};E3.prototype.xt=function(a){return 13!=a.keyCode?E3.ya.xt.call(this,a):!1};
var F3=function(a){this.Km=a;this.uh=null};t(F3,vo);F3.prototype.h_=function(){return!1};F3.prototype.Pc=function(){return this.Km};F3.prototype.tq=function(a){F3.ya.tq.call(this,a);xo(a,16)&&qo(a.ta(),"checked",!1)};F3.prototype.uI=function(){return"option"};

G("sy860");I();
}catch(e){_DumpException(e)}
try{
H("sy681");var kR=function(a){C.call(this,a)};t(kR,C);kR.prototype.Yg=null;kR.prototype.ra=function(a){kR.ya.ra.call(this,a);lke(this)};kR.prototype.Pa=function(){this.Kb(this.Ea().Pa("INPUT",{type:"text"}));lke(this)};var lke=function(a){a.$();a.Yg=new rw(a.ta());ud(a.Yg,"input",a.$,!1,a)};kR.prototype.$=function(){var a=this.ta();if(a){var b=this.getValue();Rpa(a,b)}};kR.prototype.xm=function(){var a=this.ta().dir;""==a&&(a=null);return a};
var EX=function(a,b){var c=a.ta();null!=c.value?c.value=b:Rc(c,b);a.$()};kR.prototype.getValue=function(){var a=this.ta();return null!=a.value?a.value:Vc(a)};kR.prototype.qb=function(){this.Yg&&(Bd(this.Yg),this.Yg.Ma(),this.Yg=null,kR.ya.qb.call(this))};

G("sy681");I();
}catch(e){_DumpException(e)}
try{
H("sy878");var SGd=function(){Ld.call(this);this.Sb="none"};t(SGd,Ld);SGd.prototype.setState=function(a){this.Sb!=a&&(this.Sb=a,this.dispatchEvent("change"))};SGd.prototype.getState=function(){return this.Sb};var TGd=function(a,b){C.call(this,b);this.$="#fff";this.mL=0;this.Sa=a};t(TGd,C);q=TGd.prototype;q.setSize=function(a){this.mL=a};q.Pa=function(){TGd.ya.Pa.call(this);var a=this.Ea();this.$b=a.Pa("DIV");this.Qb=a.Pa("DIV","b-b4-m");var b=["b-b4"];1==this.mL&&b.push("b-b4-ib");this.Kb(a.Pa("DIV",b,this.$b,this.Qb))};q.cb=function(){return this.$b};q.Na=function(){TGd.ya.Na.call(this);this.getHandler().Ja(this.Sa,"change",this.TXb)};
q.TXb=function(){if(!this.Ab||this.Ab.uh){this.hb(!0);var a,b=a=this.$,c=2,d=this.Ab;d&&(a=d.NT,b=d.Vk,c=(d.direction+1)%4);var d=this.Sa.getState(),f,h;switch(d){case "loading":h=LHd[c];f=h[0];h=h[1];break;case "none":h=f=this.$;break;case "offline":f="#999",h="#777"}a=new WGd(d,c,f,a,a,b,f,h,this.mL,this.Ea());this.ib(a,!0);this.getHandler().yj(a,"Qe",this.Mfb);Uf(wa(this.Tra,a),0,this);y(this.Ab);this.Ab=a;VGd(this)}};
q.Tra=function(a){this.Nb()&&(a.play(),Uf(function(){!this.isDisposed()&&this.Nb()&&this.Ab&&!this.uh&&this.Km()},500,a))};q.Mfb=function(a){a=a.target;var b=this.Sa.getState();b==a.state&&"loading"!=b||this.TXb();VGd(this)};
var VGd=function(a){a.Qb.style.opacity="offline"==a.Sa.getState()?1:0},LHd={0:["#00B15F","#008948"],1:["#3C78F8","#2159bd"],2:["#FA2424","#9e1212"],3:["#FFD34B","#dea11a"]},WGd=function(a,b,c,d,f,h,k,m,p,u){C.call(this,u);this.state=a;this.uh=!1;this.direction=b;this.Op=c;this.Ko=d;this.Bma=f;this.lp=h;this.NT=k;this.Vk=m;this.$b=1==p?16:19};t(WGd,C);
WGd.prototype.Pa=function(){WGd.ya.Pa.call(this);var a=this.ta(),b=this.Ea();Qn(a,"b-b4-Wb-LO");var c=b.Pa("DIV","b-b4-os"),d=b.Pa("DIV","b-b4-os");b.uv(a,c,d);var f=b.Pa("DIV","b-b4-Wb");b.appendChild(c,f);Pd(f,"backgroundColor",this.Op);var h=b.Pa("DIV","b-b4-Wb");b.appendChild(d,h);Pd(h,"backgroundColor",this.Ko);var a=b.Pa("DIV","b-b4-Wb"),k=b.Pa("DIV","b-b4-Wb");b.appendChild(c,a);b.appendChild(d,k);Pd(a,"backgroundColor",this.Bma);Pd(k,"backgroundColor",this.Vk);this.Sa=a;this.$=k;this.Ag=f;
this.Vb=h;this.mL=c;this.Qb=d;d=this.direction;b=this.$b+"px";c=Math.ceil(this.$b/2)+"px";f="-"+c;switch(d){case 1:Pd(this.mL,{left:0,top:0});Pd(this.Qb,{left:c,top:0});Pd(this.Sa,{left:0,top:0});Pd(this.$,{width:0,left:0});Pd(this.Ag,{left:0,top:0});Pd(this.Vb,{left:f});break;case 3:Pd(this.mL,{left:c,top:0});Pd(this.Qb,{left:0,top:0});Pd(this.Sa,{left:f,top:0});Pd(this.$,{width:0,left:c});Pd(this.Ag,{left:f,top:0});break;case 0:Pd(this.mL,{left:0,top:c});Pd(this.Qb,{left:0,top:0});Pd(this.Sa,{left:0,
top:f});Pd(this.$,{top:c,height:0});Pd(this.Ag,{left:0,top:f});break;case 2:Pd(this.mL,{left:0,top:0}),Pd(this.Qb,{left:0,top:c}),Pd(this.Sa,{left:0,top:0}),Pd(this.$,{left:0,height:0}),Pd(this.Ag,{left:0,top:0}),Pd(this.Vb,{top:f})}d=this.direction;b=0==d||2==d?{width:b,height:c}:{width:c,height:b};Pd(this.mL,b);Pd(this.Qb,b);Qn(a,"b-b4-LO");Qn(k,"b-b4-LO-j0")};
WGd.prototype.play=function(){wd&&oe(this.ta());this.Ab=!0;Pd(this.Sa,"backgroundColor",this.lp);Pd(this.$,"backgroundColor",this.NT);var a=this.direction,b=this.$b+"px",c=Math.ceil(this.$b/2)+"px",d="-"+c;switch(a){case 1:Pd(this.Sa,{width:0,left:c});Pd(this.$,{left:d,width:b});break;case 3:Pd(this.Sa,{width:0,left:0});Pd(this.$,{width:b,left:0});break;case 0:Pd(this.Sa,{top:0,height:0});Pd(this.$,{top:0,height:b});break;case 2:Pd(this.Sa,{top:c,height:0}),Pd(this.$,{top:d,height:b})}XGd(this,this.$, this.Km)};var XGd=function(a,b,c){var d=!1;a.getHandler().yj(b,["webkitTransitionEnd","transitionend"],function(){d||(d=!0,c.call(a))})};WGd.prototype.Km=function(){this.uh=!0;this.dispatchEvent("Qe");On(this.Vb,!1)};

G("sy878");I();
}catch(e){_DumpException(e)}
try{
var m4=function(a,b){kd.call(this);this.options=a;this.context=b;this.$=b.od;this.config=b.rd();this.$b=b.Ab;this.Ab=b.Mh};t(m4,kd);m4.prototype.hp=e(648);m4.prototype.reset=function(){};Ww.prototype.yW=g(640,function(){return void 0!=this.Qb});Xw.prototype.yW=g(639,function(){return void 0!=this.Qb});PEa.prototype.Tva=g(638,function(a){this.Wu=a||""});PEa.prototype.getCursor=g(637,function(){return this.$b});Ww.prototype.getCursor=g(636,function(){return this.Qb});Xw.prototype.getCursor=g(635,function(){return this.Qb});
Yw.prototype.getCursor=g(634,function(){return this.Ag});PEa.prototype.Dfa=g(633,function(a){this.$b=a});Yw.prototype.Dfa=g(632,function(a){this.Ag=a});var S$g=function(a,b){var c=a.getContext().Qb,d=a.TP();c&&d&&c.dCa(d,b)},T$g=function(a,b){var c=a.getContext().Qb,d=a.TP();c&&d&&c.YJa(d,b)};H("sy877");
var n4=function(a,b,c){t3.call(this,a,c);this.$b=(this.mL=b)?a.od.Rd(b):a.od.EHb();this.yQ=Lp(this.r6c,this);this.Ko=[];this.Xb=[];this.getHandler().Ja(a.$,"si",this.qid);this.KBa=!1;this.Naa=!0;this.nA=this.ana=!1;this.kN=null};t(n4,t3);q=n4.prototype;q.Rd=function(){return this.$b};q.Na=function(){n4.ya.Na.call(this);if(!this.KBa){this.KBa=!0;var a=this.$b;a&&a.addListener(this.yQ);this.Naa&&this.RD()}};q.bC=function(a){var b=this.getContext().rd().oXa;return ec(a,function(a){return!b.contains(a.Qe())})};
q.gR=function(){this.getContext().od.xk(53)};q.I$b=function(){this.gR();this.getContext().od.xk(51)};q.meb=ka;q.iRa=ka;q.vB=function(a){!this.nA&&this.$b&&(a&&(this.$b.gVa(),this.$b.fVa()),this.$b.Hi()||this.RD())};
q.RD=function(a){var b=this.mL;if(b&&!this.nA){var c=this.$b;c.Hi()&&!c.yW()?this.iO(a):(b.setStart&&(b=c.Hi()&&c.yW()?c.getCursor():"",parseInt(b,10)?this.mL.setStart(parseInt(b,10)):this.mL.setStart(0),this.mL.Dfa(b),this.mL.Tva&&(c=c.Hi()&&c.IHb()?c.Xh():"",this.mL.Tva(c))),this.nA=!0,this.g3&&this.meb(!0),c=Lp(this.iO,this,a),a=Lp(this.pab,this,a),T$g(this,"vdl"),(b=this.getContext().Qb)&&b.WXa("lfdls"),this.getContext().od.Vd(this.mL,c,a,!0))}};
q.iO=function(a){S$g(this,"vdl");var b=this.getContext().Qb;b&&(b.WXa("lfdle"),b.Qb());if(this.g3){this.Zc(a);if(this.isDisposed())return;this.getContext().Sa.gY()}else this.ana=!0;this.nA=!1;this.meb(!1)};q.pab=function(a){this.nA=!1;this.meb(!1);this.Fma(a);!this.isDisposed()&&this.getContext().Sa.gY()};q.Fma=function(a){this.iO(a)};
q.setActive=function(a,b){n4.ya.setActive.call(this,a,b);if(this.g3){var c=this.$b;c&&c.gVa();c&&!c.Hi()?this.vB():this.ana?this.Zc(!0):this.dispatchEvent("change");this.nA&&this.meb(!0)}else this.meb(!1)};
q.Zc=function(a){this.ana=!1;var b=this.kN;null!==b&&(Vf(b),this.kN=null);var b=this.bC(this.$b.Ae()),c=this.Ko,d=c.length,f=!a&&0<d&&d<=b.length&&Ye(b,function(a,b){return!!(b>=d||a.getId()==c[b].getId()||a.getAttribute("oid")==c[b].getId())});this.Xb.length&&$Sd(this);this.Ko=b;f?(a=b.slice(d),a.length?this.Hr(a):this.vBb()):(a||b.length)&&this.Ik(b);b.length||(this.$b.Hi()?f||!this.$b.IHb()&&!this.$b.yW()?this.gR():this.vBb():this.I$b());this.Xb=[];this.dispatchEvent("$e");this.dispatchEvent("change")};
q.vBb=ka;var $Sd=function(a){var b=a.Xb;vb(b);v(b,function(a){Cd(this.Ko,function(b){return b.getId()==a})&&this.zbb(a)},a);a.Xb=[]};q=n4.prototype;q.zq=e(642);q.hJ=e(645);q.r6c=function(a,b,c){var d=zg(this.Ko,function(a){return a.getId()});this.Xb=rb(this.Xb,ec(c,function(a){return eb(d,a)},this));this.g3?!b.length||a.length||c.length?null===this.kN&&(this.kN=Uf(Lp(this.Zc,this,!1),0,this)):v(b,function(a){this.jOa(a);pb(this.Ko,function(b){return b.getId()==a})},this):this.ana=!0};
q.qid=function(a){v(a.ur,this.iRa,this)};q.Eca=function(a){this.mL=a;this.nA=!1;this.$b.removeListener(this.yQ);this.$b=this.getContext().od.Rd(a);this.$b.addListener(this.yQ)};q.qb=function(){n4.ya.qb.call(this);var a=this.$b;a&&a.removeListener(this.yQ);this.mL=this.$b=null;delete this.yQ;delete this.Ko;null!==this.kN&&Vf(this.kN)};

G("sy877");I();
}catch(e){_DumpException(e)}
try{
H("sy91");var ncd=function(a,b){this.Sa=a;this.$=null;if(xc&&!(9<=yia)){ocd||(ocd=new Ze);this.$=ocd.get(a);this.$||(b?this.$=document.getElementById(b):(this.$=document.createElement("userdata"),this.$.addBehavior("#default#userData"),document.body.appendChild(this.$)),ocd.set(a,this.$));try{this.$.load(this.Sa)}catch(c){this.$=null}}};t(ncd,wAa);
var qcd={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},ocd=null,pcd=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return qcd[a]})};q=ncd.prototype;q.isAvailable=function(){return!!this.$};q.set=function(a,b){this.$.setAttribute(pcd(a),b);rcd(this)};q.get=function(a){a=this.$.getAttribute(pcd(a));if(!qa(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};q.remove=function(a){this.$.removeAttribute(pcd(a));rcd(this)};
q.Fc=function(){return scd(this).attributes.length};q.fw=function(a){var b=0,c=scd(this).attributes,d=new Me;d.next=function(){if(b>=c.length)throw Oe;var d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!qa(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};q.clear=function(){for(var a=scd(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);rcd(this)}; var rcd=function(a){try{a.$.save(a.Sa)}catch(b){throw"Storage mechanism: Quota exceeded";}},scd=function(a){return a.$.XMLDocument.documentElement};
var tcd=function(a,b){this.Sa=a;this.$=b+"::"};t(tcd,wAa);tcd.prototype.set=function(a,b){this.Sa.set(this.$+a,b)};tcd.prototype.get=function(a){return this.Sa.get(this.$+a)};tcd.prototype.remove=function(a){this.Sa.remove(this.$+a)};tcd.prototype.fw=function(a){var b=this.Sa.fw(!0),c=this,d=new Me;d.next=function(){for(var d=b.next();d.substr(0,c.$.length)!=c.$;)d=b.next();return a?d.substr(c.$.length):c.Sa.get(d)};return d};
var eVb=function(a){var b;(b=ucd(a))||(a=new ncd(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);return b},ucd=function(a){var b=new zAa;return b.isAvailable()?a?new tcd(b,a):b:null};
G("sy91");I();
}catch(e){_DumpException(e)}
try{
H("sy812");var uOa=function(a){return(a=a.exec(fa))?a[1]:""},vOa=function(){if(pOa)return uOa(/Firefox\/([0-9.]+)/);if(xc||gc)return nf;if(Zq)return uOa(/Chrome\/([0-9.]+)/);if(kr&&!ria())return uOa(/Version\/([0-9.]+)/);if(rOa||sOa){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(fa))return a[1]+"."+a[2]}else if(tOa)return(a=uOa(/Android\s+([0-9.]+)/))?a:uOa(/Version\/([0-9.]+)/);return""}();

G("sy812");I();
}catch(e){_DumpException(e)}
try{
var Lb=function(a){return Math.max(a.width,a.height)},UEc=function(a){var b="";ia(!1)||(b="B");return nma(a,qHa,b,void 0)};H("sy850");var yY=function(a){this.o5=a};yY.prototype.set=function(a,b){ia(b)?this.o5.set(a,Rf(b)):this.o5.remove(a)};yY.prototype.get=function(a){var b;try{b=this.o5.get(a)}catch(c){return}if(null!==b)try{return Nf(b)}catch(d){throw"Storage: Invalid value was encountered";}};yY.prototype.remove=function(a){this.o5.remove(a)};
var BY=function(a){this.o5=a};t(BY,yY);var Acd=function(a){this.data=a},Bcd=function(a){return!ia(a)||a instanceof Acd?a:new Acd(a)},Ccd=function(a){a=a.data;if(!ia(a))throw"Storage: Invalid value was encountered";return a};BY.prototype.set=function(a,b){BY.ya.set.call(this,a,Bcd(b))};BY.prototype.$=function(a){a=BY.ya.get.call(this,a);if(!ia(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};BY.prototype.get=function(a){return(a=this.$(a))?Ccd(a):void 0};
var CY=function(a){this.o5=a};t(CY,BY);var Dcd=function(a){var b=a.creation;a=a.expiration;return!!a&&a<Wa()||!!b&&b>Wa()};CY.prototype.set=function(a,b,c){if(b=Bcd(b)){if(c){if(c<Wa()){CY.prototype.remove.call(this,a);return}b.expiration=c}b.creation=Wa()}CY.ya.set.call(this,a,b)};CY.prototype.$=function(a,b){var c=CY.ya.$.call(this,a);if(c)if(!b&&Dcd(c))CY.prototype.remove.call(this,a);else return c};
var Ecd=function(a){this.o5=a};t(Ecd,CY);
var s0e=function(a,b,c){var d=[];Pe(b,function(a){var b;try{b=Ecd.prototype.$.call(this,a,!0)}catch(k){if("Storage: Invalid value was encountered"==k){c&&d.push(a);return}throw k;}if(!ia(b))d.push(a);else if(Dcd(b))d.push(a);else if(c)try{Ccd(b)}catch(m){if("Storage: Invalid value was encountered"==m)d.push(a);else throw m;}},a);return d},t0e=function(a,b,c){b=s0e(a,b,c);v(b,function(a){Ecd.prototype.remove.call(this,a)},a)},Fcd=function(a,b){t0e(a,a.o5.fw(!0),b)};

G("sy850");I();
}catch(e){_DumpException(e)}
try{
var M3=function(a){return a.Ii};H("sy864");var N3=function(a,b){A.call(this,"QE");this.Sa=a;this.$=b};t(N3,A);N3.prototype.La=function(){return this.Sa};var O3=function(a,b,c,d){E3.call(this,a,b,c,d);this.Sx=this.fBa=null};t(O3,E3);var wRd={canceled:"a-v-e-Ama","default":"a-v-e-Ba",error:"a-v-e-wa",running:"a-v-e-E1",scheduled:"a-v-e-fN",success:"a-v-e-eu"};O3.prototype.Na=function(){O3.ya.Na.call(this);this.Sx&&this.Sx.Na()};var F9f=function(a){return a.Sx||(a.Sx=new A3("a-la-ba",a.Ea()))};
O3.prototype.update=function(){O3.ya.update.call(this);var a=this.La(),b=this.fBa;if((a=(a=a.Ii)&&a.getState())&&b!=a){var c=this.Sa;b&&c.eO(this,wRd[b],!1);c.eO(this,wRd[a],!0);this.fBa=a;"error"==a&&(this.Ld(!1),this.Bm(16,!1),this.zt(!1),this.Bm(32,!1),this.Sx.$(0))}this.Sx&&(a=(b=M3(this.La()))&&b.tf())&&(b=Math.round(100*b.dNa/a),isNaN(b)||this.Sx.$(b))};

G("sy864");I();
}catch(e){_DumpException(e)}
try{
H("sy856");var G3=function(a,b,c,d){y3.call(this,a,"a-kd-Cc","a-kd-Bb","a-kd-B","top",d);this.Bc=b;this.Ab=c};t(G3,y3);q=G3.prototype;
q.Pa=function(){G3.ya.Pa.call(this);for(var a=this.Ea(),b,c=a.Pa("table",{"class":"a-kd-wf",cellSpacing:"0",cellPadding:"0"},a.Pa("tbody",null,b=a.Pa("tr"))),d=[],f=this.getContext().od,h=this.Bc.Sa;h;){var k=h.getName(),m=h.getOption("parent");m&&(m=f.La(m))&&(k=m.getName());d.unshift([k,h]);h=h.Sa}d.push([this.Ab.getName(),null]);f=d.pop();for(h=0;h<d.length;h++){var p=d[h],k=b,m=p[0],p=p[1],u=0==h,z=h==d.length-1,F=this.Ea(),u=F.Pa("td","a-kd-Ng"+(u?" a-kd-l0-Ng":"")+(p?" a-kd-Dq":""),m);u.Y6a=
p;z&&(this.mL=u);Sc(u,!!p);ey(u,this.s$(m));po(u,"link");k.appendChild(u);k.appendChild(F.Pa("td","a-kd-kE"+(z?" a-kd-ln-kE":""),F.Pa("div","a-kd-v7 d-k-l"),F.Pa("div","a-kd-uma d-k-l")))}a=a.Pa("td",{"class":"a-kd-Hp"},f[0]);ey(a,this.p$(f[0]));Sc(a,!0);b.appendChild(a);this.Sa.appendChild(c);this.setSize(40)};q.Na=function(){G3.ya.Na.call(this);this.getHandler().Ja(this.Sa,"keydown",this.pvc).Ja(this.Sa,"click",this.VAb)};q.focus=function(){return this.mL?(this.mL.focus(),!0):!1};
q.VAb=function(a){(a=a.target.Y6a)&&this.getContext().Mh.On(a)};q.pvc=function(a){if(32==a.keyCode||13==a.keyCode)this.VAb(a),a.preventDefault(),a.stopPropagation()};q.qb=function(){G3.ya.qb.call(this);delete this.Bc;delete this.Ab};q.s$=function(a){return"Switch to folder "+a};q.p$=function(a){return"Selected folder "+a};

G("sy856");I();
}catch(e){_DumpException(e)}
try{
var SSd=function(a,b){var c=BMc(a),d=bca(a,c);ao.call(this,[0,c.scrollTop],[0,d.y],b||200,co);this.$=c};t(SSd,ao);SSd.prototype.vk=function(){SSd.ya.vk.call(this);this.$.scrollTop=this.coords[1]};
var sRd=function(a,b){var c=a.Qf,d=a.Xg,f;b instanceof Kb?f=b:(b=b||512,f=new Kb(b,b));var h=c/d;c>d?(c=Math.min(f.width,c),d=Math.ceil(c/h),d>f.height&&(d=f.height,c=Math.ceil(d*h))):(d=Math.min(f.height,d),c=Math.ceil(d*h),c>f.width&&(c=f.width,d=Math.ceil(c/h)));return new Kb(c,d)},tRd=function(a){if(!a.Qf||!a.Xg)return new Uw(a.Ab,a.Qf,a.Xg,!1,a.dh);var b=new Kb(a.Qf,a.Xg);if(2048<a.Qf||2048<a.Xg)b=b.Cr(new Kb(2048,2048));return new Uw(a.Ab,Math.ceil(b.width),Math.ceil(b.height),!1,a.dh)};
E3.prototype.TGb=g(652,function(){return this.Op});E3.prototype.y6a=g(651,function(){this.Op=!1});E3.prototype.Oz=g(650,function(){this.Op=!0});y3.prototype.qRc=g(649,function(a){On(this.Sa,a)});t3.prototype.zq=g(643,function(){return new df});n4.prototype.zq=g(642,function(){return new df(zg(this.Ko,function(a){return a.getId()}))});
Mw.prototype.ora=g(631,function(){var a=this.Dga(),b=this.Iwa();Df(a,b);b.remove("token");b.remove("version");b.remove("tzo");b.remove("tzfp");var c=hKa;if(c)for(var d in c)b.remove(d);return a});PEa.prototype.ora=g(630,function(){var a=PEa.ya.ora.call(this),b=a.$;b.remove("start");b.remove("numResults");b.remove("cursor");b.remove("cToken");return a});K3.prototype.ora=g(629,function(){var a=K3.ya.ora.call(this);Hf(a,"requestid",this.getId());return a});
Mw.prototype.aD=g(628,function(){this.mL||(this.mL=this.ora().toString());return this.mL});YEa.prototype.aD=g(627,function(){return YEa.ya.aD.call(this)+"/"+this.getId()});Mw.prototype.Dga=g(626,function(){var a=this.PD().clone(),b=My,c=b.Qb;c&&Cf(a,c+a.getPath());Hf(a,"hl",b.$);b.Sa&&Hf(a,"native",1);(b=b.Ab)&&Hf(a,"oauth_token",b);return a});v3.prototype.Dga=g(625,function(){var a=this.PD().clone();Cf(a,Na(a.getPath(),this.y2));return a});
YEa.prototype.Dga=g(624,function(){var a=YEa.ya.Dga.call(this);v(this.Ab,function(b){a.$.add("stat",b)});return a});
Uw.prototype.ll=g(623,function(a,b,c){var d=this.Qf,f=this.Xg,h=this.dh;if(this.Sa){if(a instanceof Kb)return new Uw(this.Qs(a,b,void 0,c),d,f,!1,h);2048<a&&(a=2048);if(b&&b.length)return new Uw(this.Qs(a,b,void 0,c),a,a,!1,h);if(!d||!f)return new Uw(this.Qs(a,b,void 0,c),void 0,void 0,!1,h);if(!ia(a)||0<a)b=sRd(this,a),d=b.width,f=b.height;return new Uw(this.Qs(a,void 0,void 0,c),d,f,!1,h)}return tRd(this)});
var bTd=function(a){a.uh||(a.uh=new fn(My.Bo()));return a.uh},TSd=function(a){a.dispatchEvent(new Glg(a));(new SSd(a.ta())).play()},nEg=function(a,b,c,d){if(b&&c)switch(a.Ea().uq(a.Ab,c),Sx(a.Ab,["a-Za-lm-wa","a-Za-lm-Ec"]),d){case 1:Qn(a.Ab,"a-Za-lm-Ec");break;default:Qn(a.Ab,"a-Za-lm-wa")}On(a.Ab,b);c=!b;a.$b&&On(a.$b,c);a.Qb&&a.Qb.Qb(c);a.Vb.ta()&&On(a.Vb.ta(),c);b&&a.dVa()},oEg=function(a,b){a.Qb=b;TQd(a,a.Qb)},N3e=function(a,b){var c=a.Ea();c.Ep(c=c.Pa("span"),a.mL.ta());b.render(c)},cTd=function(a,
b){var c=a.ta();c&&Pn(c,"a-be-Bd",!b);a.Sa&&a.p_!=b&&(a.p_=b,a.qRc(b),c=b?a.Xb:0,xc&&!Gf(7)?Pd(a.ta(),"padding-"+a.y2,c):Pd(a.lp,a.y2,c))},dTd=function(a){switch(a.$){case "blog-search":return"No results found.";case "blog-templates":return"No templates found.";case "book-search":return"No books found.";case "calendars":return"No calendars found.";case "contacts":return a.getQuery()?"No contacts matched your search.":"No contacts found.";case "all":case "documents":return a.getQuery()?"No items matched your search.":
0==a.getOption("ownedByMe")?"No one's shared any files with you yet!":"No documents.";case "docs-images":return"No images.";case "docs-images-and-videos":return"No images or videos.";case "docs-videos":return"No videos.";case "drawings":return"No drawings.";case "events":return"No events found.";case "folders":return a.getOption("parent")?"No items in this folder.":"No folders.";case "fonts":return"No fonts found.";case "forms":return"No forms.";case "groups":return a.getOption("parent")?"No contacts in this group. Please ensure that you are allowed to view group members.":
"No groups found.";case "image-search":return"No images found.";case "maps":case "my-maps":case "maps-pro":return"No maps found.";case "pdfs":return"No PDFs.";case "circle":case "people":switch(a.Ra()){case "circles":return"No circles found.";default:return a.getOption("parent")?a.getOption("peopleFilter")?"No matching people found in this circle.":"There's no one in this circle.":"No people found."}case "photos":case "photo-albums":case "photo-curation":return a.getQuery()||a.Ra()||a.getOption("parent")?
"mediacollections"==a.Ra()?"No albums.":"No photos.":"No photo albums.";case "play-edu":return"No Play for Education content.";case "presentations":return"No presentations.";case "recently-picked":return"You haven't recently picked anything!";case "scripts":return"No scripts.";case "spreadsheets":return"No spreadsheets.";case "sites":return"No sites.";case "tables":return"No tables.";case "video-search":case "videos":case "video-albums":case "youtube":return"No videos found.";case "web":return"No results found.";
default:return"No items matched your criteria."}},l4f=function(a,b){na(a.getOption(b))&&(delete a.Ab[b],a.mL=null)},o4=function(a,b){a.mL=null;BN(a,"query",b)},E1e=function(a){return"people"==a.$||"fonts"==a.$},I2d=function(a,b){a.$b=b},oTf=function(a){a=a.DU;return"application/chromium-bookmark-folder"==a||"application/chromium-root-folder"==a||"application/vnd.google-apps.folder"==a||"application/vnd.google-apps.photoalbum"==a||"application/vnd.google-apps.rollupphotoalbum"==a},uma=function(a,b){var c=
Hua(b);return I7a(lea(a,null,c,void 0))},Ag=function(a,b,c,d,f,h,k){var m=a.$[b];m.CKb()?(b=new $da(c,d),k?b.Hf(a.$b):window.setTimeout(Lp(b.Hf,b),0)):iea(a,b)?(bea(m.Sa,c,d),h&&(kea(a,b),yg(a))):(bea(m.Sa,c,d),f||(h&&kea(a,b),jea(a,[b])))},LEa=function(a,b,c,d,f,h,k){A.call(this,a,b);this.request=c;this.response=d;this.wbb=f;this.$=k};t(LEa,Ncg);
var Vyg=function(a,b){window.gapi&&window.gapi.load?window.gapi.load(a,{callback:b}):Uf(Lp(Vyg,void 0,a,b),100)},Wyg,Rw=function(){Ld.call(this);this.cM=!1;this.Vk=0;this.DU=new Ze;this.jg=new Ze;this.uh=new Ze;this.Ba=new Hd(this);this.nA=new Sf(6E4);this.Ba.Ja(this.nA,"tick",this.kN)};t(Rw,Ld);Rw.prototype.Qb=e(492);Rw.prototype.initialize=function(){this.cM=!0;for(var a=this.uh,b=a.Rc(),c=0;c<b.length;c++)this.Yy(b[c]);a.clear();this.nA.start()};
Rw.prototype.Yy=function(a){this.cM?(this.jg.set(a.getId(),a),this.Ko(a),this.Vk++):this.uh.set(a.getId(),a)};var MEa=function(a,b){var c=a.jg,d=c.get(b);d&&(a.dispatchEvent(new LEa("ready",a,d)),c.remove(b),a.DU.set(b,d))},Sw=function(a,b,c){var d=a.DU,f=d.get(b);f&&(d.remove(b),b=Tw.Hf(f.Sq(),c),a.dispatchEvent(new LEa("success",a,f,b||void 0,c)))};Rw.prototype.iu=function(){return 45};Rw.prototype.kN=function(){this.Vk>this.iu()&&window.location.reload(!0);this.Vk=0};
Rw.prototype.qb=function(){this.jg.clear();this.jg=null;this.DU.clear();this.DU=null;this.uh.clear();this.uh=null;this.Ba.Ma();this.Ba=null;Rw.ya.qb.call(this)};
var Xyg=function(a,b){if(!Wyg){var c=wc("script");c.src="https://apis.google.com/js/api.js";c.type="text/javascript";c.async=!0;document.body.appendChild(c);Wyg=!0}Vyg(a,b)},xUd={X5b:"all",HCd:"docs-images",ICd:"docs-images-and-videos",JCd:"docs-videos",LCd:"documents",WCd:"drawings",vEd:"folders",CEd:"forms",IJd:"pdfs",WKd:"presentations",mMd:"scripts",$Md:"sites",CNd:"spreadsheets",FOd:"tables",TBd:"crop",XFd:"image-search",qKd:"photo-albums",rKd:"photo-caption",sKd:"photo-curation",AKd:"photo-upload",
yKd:"photo-tagging",zna:"photos",pQd:"webcam",JQd:"youtube-banner-preview",eQd:"video-search",Bbc:"videos",VDb:"video-albums",Ona:"youtube",$7b:"maps",ZHd:"maps-pro",tId:"my-maps",CIRCLE:"circle",$Ra:"contacts",Zda:"people",God:"groups",sD:"events",VDd:"et",I4b:"attachments",Xzd:"blog-search",P7b:"blog-templates",aAd:"book-search",nAd:"calendars",H6b:"fonts",QFd:"icon",uyb:"play-edu",Jbd:"promo",qBa:"profile",tLd:"recently-picked",GPd:"upload",URL:"url",uQd:"web",QBd:"create-event",oLd:"quota"},wUd=
function(a,b,c){a=a.split("/");var d=a[0];return Tb(xUd,d)?(c=c||{},c.query=a[1]?Ka(a[1]):c.query,new w3(d,b,c)):null},p4=function(a,b){if(qa(a)){var c=a;a=vc("img");a.src=c;le(a,21,21)}Qn(a,"b-c-W");c=[];c.push(a);if(b){var d=vc("span","b-c-ka",b);c.push(d)}return c};H("sy869");
var QSd=function(a,b){Mw.call(this);this.Ab=a;this.$b=b};t(QSd,Mw);QSd.prototype.PD=pg(new Af("setuserpref"));QSd.prototype.Sq=function(){return 16};QSd.prototype.xE=function(){var a=new Ze;a.set("key",this.Ab);a.set("value",this.$b);return a};var tJg=function(a,b){if(b.iu)return"vmd";if(b.mL)return null;if(FQd(a.$))return"vd";var c=a.getOption("parent"),d=a.getQuery();switch(a.$){case "contacts":return"vco";case "image-search":return"vis";case "photos":var f=a.getOption("mode"),h=a.getOption("type");if(a.getOption("upload")||"getty"==h||"moment"==h&&c)break;return"camerasync"==h?"vpcs":"highlights"==h?"vph":"localalbum"==h&&!c||!h&&(!c&&!d||"rollupAlbum"==f)?"vpa":"vpf";case "photo-albums":return a.getOption("enableAlbumNavigation")&& c?"vph":"vpa";case "upload":return OQd(a)?null:"vup";case "url":return"vurl";case "video-search":return"vvs";case "video-albums":return c||d?"vv":"vva";case "videos":return"vv";case "youtube":return"vyt"}return null};
var yUd=function(a,b,c){a=nc(a,b,c);return 0<a.length?a[0]:null};var q4=function(a,b){C.call(this,b);this.$=a};t(q4,C);q4.prototype.getContext=function(){return this.$};q4.prototype.Pa=function(){var a=this.Ea(),b,c=a.Pa("table",null,a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td",null,this.Sa()),a.Pa("td",null,b=a.Pa("span","a-zb-E"))))),d=this.getMessage();Lc(d)?b.appendChild(d):a.appendChild(b,cd(a,d));a=a.Pa("table","a-zb-wf",a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td",{align:"center"},c))));this.Kb(a)}; q4.prototype.setActive=function(){var a=this.ta();On(a,!0);if(a=yUd("a",void 0,a))try{a.focus()}catch(b){}};
var Xee=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Very few items selected. Please select more.}male{Very few items selected. Please select more.}other{Very few items selected. Please select more.}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))};
var D3=function(){this.$=void 0};t(D3,Go);la(D3);D3.prototype.Pc=function(){return"a-Lc"};D3.prototype.Pa=function(a){a=a.Ea();return a.Pa("div",this.Pc()+"-B",a.Pa("span"))};D3.prototype.cb=function(a){return a.firstChild};D3.prototype.Ab=function(){return"listbox"};
var k4=function(a,b,c){Ho.call(this,a,b||D3.ia(),c);this.gUa=!0;Io(this,!1);this.mmb=!1;this.Sa=-1;this.Ab=null};t(k4,Ho);var USd=function(a,b){a.Ab=b;var c=b.ta();a.mL=he(c,a.ta()).x;a.$b=a.mL+c.offsetWidth/2};k4.prototype.Zj=function(a,b,c){k4.ya.Zj.call(this,a,b,c);if(a instanceof C3&&(a.vHa(this.Af(a)),b<Ge(this)-1))for(c=b+1;c<Ge(this);c++){var d=kw(this,c);d instanceof C3&&d.vHa(c)}xo(a,32)&&(a=a.jh(),-1==this.Sa?(this.Sa=b,a.tabIndex=0):(b<=this.Sa&&this.Sa++,a.tabIndex=-1))};
k4.prototype.removeChild=function(a,b){var c=qa(a)?this.Ge(a):a,d=0;if(c){var f=this.Af(c);if(c instanceof C3&&f<Ge(this)-1)for(c=f+1;c<Ge(this);c++)d=kw(this,c),d instanceof C3&&d.vHa(c-1);f==this.Sa?((d=VSd(this,f,!0))||(d=VSd(this,f,!1)),d?(l4(this,d,!1),0<d&&this.Sa--):this.Sa=-1):f<this.Sa&&this.Sa--}return k4.ya.removeChild.call(this,a,b)};k4.prototype.Na=function(){k4.ya.Na.call(this);this.getHandler().Ja(this,"fm",this.$)};
k4.prototype.$=function(a){var b=a.target;switch(a.$){case 0:a=this.Af(b);var c=this.Sa;a==c&&b.j0()||l4(this,a-c,!0);break;case 38:if("vertical"==this.tI)l4(this,-1,!1);else{a:{b=this.Af(b);if(-1!=b&&(a=WSd(this,b),0!=a&&(c=VSd(this,a,!1)))){c=a+c;a=WSd(this,c);b=YSd(this,a,c)-b;break a}b=0}b&&l4(this,b,!1)}break;case 40:if("vertical"==this.tI)l4(this,1,!1);else{a:{b=this.Af(b);if(-1!=b&&(a=XSd(this,b),a!=Ge(this)-1&&(c=VSd(this,a,!0)))){c=a+c;a=XSd(this,c);b=YSd(this,c,a)-b;break a}b=0}b&&l4(this,
b,!1)}break;case 37:"horizontal"==this.tI&&l4(this,VSd(this,b,My.Bo()),!0);break;case 39:"horizontal"==this.tI&&l4(this,VSd(this,b,!My.Bo()),!0)}};
var VSd=function(a,b,c){b="number"==typeof b?b:a.Af(b);var d=c?Ge(a):-1;c=c?1:-1;for(var f=b+c;f!=d;f+=c){var h=kw(a,f);if(h.isEnabled()&&xo(h,32))return f-b}return 0},WSd=function(a,b){for(var c=kw(a,b).ta(),c=ie(c).y,d=b-1;0<=d;d--){var f=kw(a,d);if(f.isEnabled()&&(f=f.ta(),ie(f).y+f.offsetHeight<=c))return d+1}return 0},XSd=function(a,b){for(var c=Ge(a),d=kw(a,b).ta(),d=ie(d).y+d.offsetHeight,f=b+1;f<c;f++){var h=kw(a,f);if(h.isEnabled()&&(h=h.ta(),ie(h).y>=d))return f-1}return c-1},YSd=function(a,
b,c){var d=ie(a.ta()),f=Number.MAX_VALUE,h=b,k;a:{if(0<=a.Af(a.Ab)&&(k=a.Ab.ta(),he(k,a.ta()).x==a.mL)){k=a.$b;break a}(k=kw(a,a.Sa))&&USd(a,k);k=a.$b}for(;b<=c;b++){var m=kw(a,b);if(m.isEnabled())if(m=m.ta(),m=ie(m).x-d.x+m.offsetWidth/2,m=Math.abs(k-m),m<f)f=m,h=b;else if(m>f)break}return h},l4=function(a,b,c){try{if(!Oc(a.ta(),yba(a.Ea().La())))return}catch(d){return}var f=a.Sa;if(0<=f){var h=f+b;if(b=kw(a,h)){a.Sa=h;f=kw(a,f);f=f.Sa.jh(f);Sc(f,!1);f=b.Sa.jh(b);Sc(f,!0);try{f.focus(),c&&USd(a, b)}catch(k){}}}};k4.prototype.kt=function(){var a=kw(this,this.Sa);if(a){a=a.Sa.jh(a);try{return a.focus(),!0}catch(b){}}return!1};
var ZUd=new gn("EEEE, "+vz.vna+", HH:mm a"),$Ud=new gn("EEEE, "+vz.vna+", HH:mm a "+vz.fmb),aVd=new gn(2),FUd=new gn(3),h2e=new gn(1),DUd=new gn(7),EUd=new gn(vz.Yda),r4=function(a,b,c){return a?b.format(a,c):""},BUd=function(a){if(a){var b=new bn;b.setTime(a);return b}return null},CUd=function(a){var b=BUd(a);return 432E5>Wa()-a?r4(b,DUd):dma(b)?r4(b,EUd):r4(b,FUd)};
var Fcf=function(a,b){var c=a.getOption("mode"),d=b.rd().Xb,f=!1;b.Ab.addCallback(function(a){f=!a.M_b.jc("dl")});return"grid"==c||null==c&&!d&&("docs-images"==a.$||"docs-images-and-videos"==a.$)||null==c&&d&&f},I1e=function(a){var b=wUd(a).getName();switch(a){case "all":b="All file types"}return b},J1e=function(a,b){for(var c=b||a.$,d=new w3(c,a.getTitle(),Xb(a.getOptions())),f=d,h=a.Sa;h;)var k=new w3(c,h.getTitle(),Xb(h.getOptions())),f=f.Sa=k,h=h.Sa;return d},$6e=function(a){switch(a){case 10:return"Last modified by me";
case 3:return"Last modified";case 2:return"Last opened by me";case 8:return"Name";case 5:return"Relevance";case 9:return"Share date"}return""},K1e=function(a){a=a.rI();return"application/vnd.google-apps.folder"==a?"Folder":eb(BJe,a)?"Image":eb(KLe,a)?"Video":eb(FLe,a)?"Document":eb(TKe,a)?"Presentation":eb(pLe,a)?"Spreadsheet":eb(jJe,a)?"Drawing":eb(SKe,a)?"PDF":eb(kJe,a)?"Form":eb(ELe,a)?"Table":eb(eLe,a)?"Site":eb(UKe,a)?"Script":""},Llg=function(a){if(a.getOption("sortKey"))return a.getOption("sortKey");
if(a.getQuery())return 5;if(NAg(a))return 9;switch(a.$){case "all":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "sites":case "spreadsheets":case "tables":return 3;case "docs-images":case "docs-images-and-videos":case "docs-videos":return 8;default:return 3}};
var C7e=function(a,b,c,d){Bp.call(this,d);this.$=a;this.Bc=b;this.$b=Llg(b);this.mL=c;this.Ab=null};t(C7e,Bp);C7e.prototype.Pa=function(){C7e.ya.Pa.call(this);var a;a=this.Bc;a=a.getQuery()?[3,5]:NAg(a)?[3,10,2,8,9]:[3,10,2,8];for(var b=0;b<a.length;b++){var c=a[b],d=new yp($6e(a[b]),c);c==this.$b&&(d.Bm(8,!0),d.qj(!0));this.ib(d,!0);8==c&&(this.Ab=d,sMe(this,this.mL))}Qn(this.ta(),"a-Qa-r");Qn(this.ta(),"a-Bpn8Yb-Qa-r")};
C7e.prototype.Na=function(){C7e.ya.Na.call(this);this.getHandler().Ja(this,"action",this.Ag)};var sMe=function(a,b){a.mL=b;a.Ab&&(a.Ab.setVisible(!b),a.Ab.Ta(!b))};C7e.prototype.Ag=function(a){var b=this.Bc.clone();BN(b,"sortKey",a.target.kc());this.$.Mh.On(b)};
var M1e=function(a,b,c,d,f){C.call(this,f);this.Bc=a;this.$=b;this.mL=c;this.Ab=!!d;this.Sa=null};t(M1e,C);M1e.prototype.Pa=function(){M1e.ya.Pa.call(this);var a=this.ta();a.id=Ce(Be.ia());var b=this.Ea();Qn(a,"a-Dv-za");var c=I1e(this.Bc.$);b.appendChild(a,b.Pa("div","a-Dv-za-ka",c));ey(a,"Filter by "+(c+" on"));this.Ab&&(this.Sa=new yo(b.Pa("div","a-n-ab-z-wt-jf")),this.Sa.Ab("a-Dv-za-Yd"),this.ib(this.Sa,!0),po(this.Sa.ta(),"button"),a="Remove filter: "+c,ey(this.Sa.ta(),a))}; M1e.prototype.Na=function(){M1e.ya.Na.call(this);this.Sa&&this.getHandler().Ja(this.Sa,"action",this.Qb)};M1e.prototype.Qb=function(){var a=J1e(this.Bc,"all");o4(a,this.mL.value);BN(a,"docTypesDropDown",!0);this.$.Mh.On(a)};
var u4=function(a,b,c){ow.call(this,c);this.$=a;this.Ab=b};t(u4,ow);
u4.prototype.Pa=function(){u4.ya.Pa.call(this);var a=new yp("File type");this.ib(a,!0);a.Bm(2,!1);a.Bm(4,!1);Qn(a.ta(),"a-Qa-A-Nb");E3a(a.ta());a=this.$.rd().Vk?"all folders documents spreadsheets presentations pdfs docs-images docs-videos".split(" "):"all folders drawings docs-images pdfs presentations spreadsheets forms documents docs-videos tables".split(" ");v(a,function(a){var c=I1e(a);a=new yp(c,a);this.ib(a,!0)},this);this.mL=!0;Qn(this.ta(),"a-Qa-r");Qn(this.ta(),"a-cka-Qa-r")}; u4.prototype.Na=function(){u4.ya.Na.call(this);this.getHandler().Ja(this,"action",this.$b)};u4.prototype.$b=function(a){a=J1e(this.$.Mh.FH,a.target.kc());o4(a,this.Ab.value);BN(a,"docTypesDropDown",!0);this.$.Mh.On(a)};
var AUd=function(a,b){q4.call(this,a,b)};t(AUd,q4);AUd.prototype.getMessage=function(){var a=this.Ea(),b=this.getContext().rd().kN();return a.Pa("div",void 0,a.Pa("div","a-zb-O",b?"Share photos from Google Drive on Google+":"Goodbye attachments. Hello Google Drive."),a.Pa("div","a-zb-E",b?"Google Drive is the single place to keep all your files so you can access them from anywhere, any device.  Once you have photos in Google Drive, you can instantly share them with your circles here.":"With Google Drive, you never have to send another email attachment again.  Just share a link to any file you store in Google Drive.  That way everyone has access to the same file, same version - automatically."))}; AUd.prototype.Sa=function(){return this.Ea().Pa("img",{"class":"a-zb-Cd",width:"64",height:"64",src:"//ssl.gstatic.com/docs/picker/images/db07825265y.png"})};
var GUd=function(a,b){C.call(this,b);this.Bc=a};t(GUd,C);var HUd=function(a){if("getty"==a.Bc.Ra())return"Results shown are available for personal or commercial use only in Google Drive, and may not be independently redistributed or sold.";switch(a.Bc.getOption("license")){case "r":return"Results shown are labeled for reuse.";case "cr":return"Results shown are labeled commercial for reuse.";case "rwm":return"Results shown are labeled for reuse with modification.";case "crwm":return"Results shown are labeled for commercial reuse with modification."}return null};
GUd.prototype.Pa=function(){GUd.ya.Pa.call(this);var a=this.Ea(),b=Ce(Be.ia()),c=this.Bc.getOption("learnmoreurl")||"https://support.google.com/drive/?p=docs_image_search&hl="+My.$;this.Kb(a.Pa("div","a-pka",a.Pa("label",{id:b},a.createTextNode(HUd(this)+" ")),a=a.Pa("a",{target:"_blank",href:c},"Learn more")));qo(a,"labelledby",b)};
var s4=function(a){F3.call(this,"a-Hb-e");this.Vb=a};t(s4,F3);
s4.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=c.Pa("tr","a-Hb-e-cy");Pn(d,"a-Hb-e-ak",!xo(a,16)&&!xo(a,64));Sc(d,!0);var f=c.Pa("td","a-Hb-e-P-xd a-Hb-e-xd");if(xo(a,16)){var h=new nD(void 0,c);h.Bm(32,!1);h.render(f);a.nA(h);Sc(h.ta(),!1);Qn(d,"a-Hb-e-cy-lE-P")}a=c.Pa("td","a-Hb-e-m-xd a-Hb-e-xd");(h=b.getIcon())?(h=c.Pa("img",{"class":"a-Hb-e-m-W",src:h}),a.appendChild(c.Pa("span","a-Hb-e-m",h))):a.appendChild(c.createTextNode("\u00a0"));ey(a,K1e(b));var h=c.Pa("td","a-Hb-e-kb-xd a-Hb-e-xd",
cd(c,uma(bTd(this),b.getName()||"")+"\u00a0")),k=c.Pa("td","a-Hb-e-oka-xd a-Hb-e-xd");(b=b.Zta)?c.uq(k,CUd(b)):c.appendChild(k,cd(c,"&ndash;"));c.uv(d,f,a,h,k);return d};s4.prototype.setState=function(a,b,c){s4.ya.setState.call(this,a,b,c);if(16==b){var d=a.Pma;d&&Uf(function(){d.Ld(c)})}};s4.prototype.Sa=ka;
s4.prototype.Op=function(a){var b=a.ta(),c=a.La();a=a.Ea();if(c.getName()){var d=a.fb("a-Hb-e-kb-xd",b);a.fb("a-Hb-e-cy");d&&(a.hb(d),a.appendChild(d,cd(a,uma(bTd(this),c.getName()||"")+"\u00a0")))}var d=a.fb("a-Hb-e-oka-xd",b),f=c.Zta;f?a.uq(d,CUd(f)):d&&(a.hb(d),a.appendChild(d,cd(a,"&ndash;")));(b=a.fb("a-Hb-e-m-xd",b))&&ey(b,K1e(c))};
var t4=function(a,b,c,d){E3.call(this,a,b,c,d);this.Pma=null};t(t4,E3);t4.prototype.Um=function(a){!xo(this,64)||!this.isEnabled()||this.Pma&&"b-P-Tb"==a.target.className?t4.ya.Um.call(this,a):(this.hm(!0),this.hm(!1))};t4.prototype.nA=function(a){this.Pma=a};t4.prototype.xZ=function(a){t4.ya.xZ.call(this,a);this.Sa.Op(this)};
var L3=function(){this.$=void 0};t(L3,D3);L3.prototype.Pa=function(a){a=a.Ea();return a.Pa("table",this.Pc()+"-B a-SX-wf",a.Pa("tbody"))};var V0d=function(a){C.call(this,a);this.$=new SGd;x(this,this.$);this.Sa=new TGd(this.$,a);x(this,this.Sa)};t(V0d,C);V0d.prototype.Pa=function(){V0d.ya.Pa.call(this);var a=this.Ab=this.Ea().Pa("div","a-iu");this.$.setState("none");this.Sa.render(a);this.ta().appendChild(this.Ab);On(this.Ab,!1);ey(this.Ab,"Loading data");po(this.ta(),"status");qo(this.ta(),"live","polite")};V0d.prototype.setVisible=function(a){this.$.setState(a?"loading":"none");On(this.Ab,a)};
var IUd=function(a,b,c){s3.call(this,b,c);this.$b=a;this.vLb=this.mBa=null;this.Sa=""};t(IUd,s3);var QUd="red orange yellow green teal blue purple pink white gray black brown".split(" ");IUd.prototype.Pa=function(){var a=this.Ea().Pa("div","a-mz");JUd(this,a);KUd(this,a);this.Kb(a)};
var JUd=function(a,b){var c=a.Ea(),d=a.mBa=new Bp(c),f=function(a,b){d.ib(new yp(b,a,c),!0)};f("","Any type");f("face","Face");f("photo","Photo");f("clipart","Clip art");f("lineart","Line drawing");f=c.Pa("div","a-r-Z");c.appendChild(c.La().body,f);d.render(f);f=a.vLb=new Fp("Any type",d,Hp.ia());f.U4=!0;f.render(b);f=f.ta();c.Sa(f,{title:"Image filter"});Qn(f,"a-mz-Foa-c")},KUd=function(a,b){var c=a.Ea(),d=function(a,b){var d=c.Pa("div","a-mz-Go d-k-l",c.Pa("div",a));po(d,"button");qo(d,"label",
b);qo(d,"selected",!1);return d},f=function(a,b){return d({"class":"a-mz-Go-aa "+b,title:a},a)};b.appendChild(f("Full color","a-n-MA-Ed-B6"));b.appendChild(f("Monochrome","a-n-MA-E6"));f=function(a,b){return d({"class":"a-mz-Go-aa",title:a,style:"background-color: "+b},a)};b.appendChild(f("Red","#c00"));b.appendChild(f("Orange","#fb940b"));b.appendChild(f("Yellow","yellow"));b.appendChild(f("Green","#0c0"));b.appendChild(f("Teal","#03c0c6"));b.appendChild(f("Blue","blue"));b.appendChild(f("Purple",
"#762ca7"));b.appendChild(f("Pink","#ff98bf"));b.appendChild(f("White","white"));b.appendChild(f("Gray","#999"));b.appendChild(f("Black","black"));b.appendChild(f("Brown","#885418"))};q=IUd.prototype;
q.eb=function(a){var b=this.ta().childNodes,c;c=a.getOption("imgtype");for(var d=this.mBa,f,h=Ge(d);0<h&&(f=kw(d,--h),f.kc()!=c););c=f;this.Sa=c.kc();this.vLb.setContent(c.Cg());c=1;d=a.getOption("imgcolor");"mono"==a.getOption("imgc")?c=2:d&&(c=fb(QUd,d)+3);for(a=1;a<b.length;a++)d=a==c,qo(b[a],"selected",d),NUd(b[a],d),Sc(b[a],d)};
q.Na=function(){s3.ya.Na.call(this);var a=this.getHandler(),b=this.ta();a.Ja(this.mBa,"action",this.AZc);a.Ja(b,"mouseover",this.sQd);a.Ja(b,"mouseout",this.kjd);a.Ja(b,"mouseup",this.Qb);a.Ja(b,"keypress",this.mL);a.Ja(b,"keydown",this.Ab)};q.AZc=function(a){var b=this.Sa;this.Sa=a=a.target.kc();b!=a&&PUd(this)};q.sQd=function(a){LUd(a,!0)};q.kjd=function(a){LUd(a,!1)};var LUd=function(a,b){var c=MUd(a);!c||a.relatedTarget&&Oc(c,a.relatedTarget)||"true"==zUd(c,"selected")||NUd(c,b)};
IUd.prototype.Qb=function(a){(a=MUd(a))&&OUd(this,a)};var OUd=function(a,b){for(var c=a.ta().childNodes,d=!1,f=1;f<c.length;f++){var h=c[f],k=h==b,m="true"==zUd(h,"selected");k!=m&&(qo(h,"selected",k),NUd(h,k),Sc(h,k),d=!0)}d&&PUd(a)},MUd=function(a){return Sn(a.target,"a-mz-Go-aa")?a.target.parentNode:Sn(a.target,"a-mz-Go")?a.target:null};IUd.prototype.mL=function(a){var b=MUd(a);return b?13==a.keyCode||32==a.keyCode?(OUd(this,b),a.cancelBubble=!0,a.returnValue=!1):!0:!0};
IUd.prototype.Ab=function(a){var b=a.keyCode;if(37==b||39==b){var c=MUd(a);if(c){var b=37==b,d=My.Bo();(b=b^d?c.previousSibling:c.nextSibling)&&Sn(b,"a-mz-Go")&&(Sc(b,!0),b.focus(),Sc(c,!1));a.preventDefault();a.stopPropagation()}}};
var NUd=function(a,b){a.style.opacity=b?1:.5;a.style.filter=b?"alpha(opacity=100)":"alpha(opacity=50)"},PUd=function(a){var b=a.ta().childNodes,c=null,d=null;if("true"!=zUd(b[1],"selected"))if("true"==zUd(b[2],"selected"))c="mono";else for(var f=3;f<b.length;f++)if("true"==zUd(b[f],"selected")){d=QUd[f-3];break}a.$b(a.Sa,c,d)};
var x4=function(a,b,c){C.call(this,c);this.$=a;this.Bc=b;this.y2=new kR;this.ib(this.y2);this.Vk=!b.getQuery()||"image-search"!=b.$||b.Ra()&&"gis"!=b.Ra()?null:new IUd(Lp(this.Sx,this),a,c);this.mL=this.Qb=this.uh=this.Ko=this.Op=this.lp=this.Sa=this.Km=this.Db=null;this.Vb=!0;this.$b=this.Ab=this.Ag=null};t(x4,C);
var RUd=function(a){return"blog-search"==a.Bc.$||"book-search"==a.Bc.$||"image-search"==a.Bc.$||"video-search"==a.Bc.$||"web"==a.Bc.$},Q1e=function(a){a=a.Bc;return!!a.getOption("docTypesDropDown")||!a.getOption("mimeTypes")&&"all"==a.$},SUd=function(a,b){a.Ea();var c=a.Bc,d=c.getOption("site"),f=c.getOption("comboTypes");f&&qa(f)&&(f=f.split(","));d=TUd(a,c.Ra(),d);if("image-search"!=c.$||!f||2>f.length)return d;Qn(b,"a-pb-lv");a.mL=new Fp(d,null,Hp.ia());a.mL.Exa=!0;v(f,function(a){var b=new yp(TUd(this,
a));b.Ab("a-pb-A");this.mL.dg(b);this.getHandler().Ja(b,"action",function(){var b=c.clone();BN(b,"type",a);this.$.$.lJ();this.$.Mh.On(b)})},a);a.mL.Ab("a-pb-lv-Qa");a.mL.Pa();return a.mL.ta()},TUd=function(a,b,c){var d="a-n-gq-Cd",f="Google search images";switch(b){case "getty":d="a-pb-HB-D";f="Stock images";break;case "life":d="a-n-hq-J-cq",f="Life images"}c&&-1!=c.indexOf("youtube.com")&&(d="a-n-tb",f=void 0);a=a.Ea().Pa("span",d+" d-k-l a-pb-N-sc");"getty"==b&&Rc(a,"Stock");f&&ey(a,f);return a};
x4.prototype.Tx=function(a){this.Km=wg(xg(E.ia(),"opd")).Ab(this.$,Lp(this.mjd,this),this.Bc,My.Bo(),this.Db,a);this.Km.OUa(this.Sa)};var S1e=function(a){qo(a,"autocomplete","list");qo(a,"haspopup",!0)};q=x4.prototype;
q.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-pb"+(RUd(this)?" a-pb-Cd":""));this.Kb(b);var c=this.Bc,d=c.getQuery(),d=this.Sa=a.Pa("input",{type:"text","class":"a-pb-N-z b-hb",value:d?d:""});qo(d,"label","Search terms");var f=new Ot(p4("//ssl.gstatic.com/docs/picker/images/search-black.png"),a);f.Pa();f.Xb=!0;f.Sn("Search");this.Qb=f;var h=null;if(RUd(this)){var k=SUd(this,b),h=a.Pa("div","a-pb-N-Cd",k,d,f.ta());this.Op=k}else Q1e(this)?(Pn(d,"a-pb-C6-g3",!0),h=a.Pa("div","a-pb-N-Cd",d),this.Ab=
Ejc(a.Pa("div","a-n-ia-En-Rf-Ev"),a),this.Ab.render(h),Pn(this.Ab.ta(),"a-y-r-c",!0),Fw(this.Ab.ta(),"Advanced Search options"),qo(this.Ab.ta(),"haspopup",!0),this.Ag=new u4(this.$,d),this.ib(this.Ag,!1),pw(this.Ag,this.Ab.ta(),7,6),this.Ag.render(this.$.rd().fG()),h.appendChild(f.ta())):h=a.Pa("div","a-pb-N",d,f.ta());b.appendChild(h);this.lp=h;FQd(this.Bc.$)&&"all"!=this.Bc.$&&(this.$b=new M1e(this.Bc,this.$,d,Q1e(this),a),this.ib(this.$b,!1),this.$b.Pa(),f=this.$b.ta(),Dc(f,d),qo(d,"describedby",
f.id));switch(c.$){case "all":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "spreadsheets":d.setAttribute("autocomplete","off");S1e(d);Ag(E.ia(),"opd",Lp(this.Tx,this,!1));break;case "image-search":var m=!1;this.$.Ab.addCallback(function(a){m=a.e$a});m&&na(c.getOption("containingCosmoId"))&&(d.setAttribute("autocomplete","off"),S1e(d),Ag(E.ia(),"opd",Lp(this.Tx,this,m)))}(f=this.Vk)&&f.render(b);c.getOption("license")&&(new GUd(c,a)).render(b);
this.y2.yb(d)};q.Na=function(){x4.ya.Na.call(this);this.Qb.Na();this.mL&&this.mL.Na();var a=this.getHandler();a.Ja(this.Ea().getWindow(),"resize",this.LHa).Ja(this.Qb,"action",this.cUb).Ja(this.Sa,"keypress",this.njd).Ja(this.Sa,"focus",Lp(function(){this.dispatchEvent("Eo")},this)).Ja(this.Sa,"blur",Lp(function(){this.dispatchEvent("Fo")},this));this.Ab&&a.Ja(this.Ab,"action",this.vcb);this.uh=FLg(ye(this.Sa));this.Ko=KEf(this.Sa).width;this.LHa();var b=new rw(this.Sa);x(this,b);a.Ja(b,"input",this.ZIc)};
q.LHa=function(){if(!(0>KEf(this.Sa).width)){var a=FLg(de(this.Sa)),a=a.left+a.right,b=this.uh.left+this.uh.right,c=KEf(this.lp).width-100-100-FJf(this.Qb.ta()).width;this.Op&&(c-=FJf(this.Op).width);c=c-b-a;c>this.Ko&&(c=this.Ko);var d=null;this.$b&&(d=FJf(this.$b.ta()).width,c-=d,b+=d);0>c&&(c=0);me(this.Sa,c);if(this.$b){var f=My.Bo();Pd(this.Sa,f?"padding-right":"padding-left",d+(f?this.uh.right:this.uh.left)+"px")}this.Ab&&(a=c+b+a-FJf(this.Ab.ta()).width,Vd(this.Ab.ta(),a))}};
q.vcb=function(){this.Ag.rz(this.Ab.ta(),7,6)};q.isEmpty=function(){return!this.Sa.value};q.ZIc=function(){var a=Ia(this.Sa.value),b=this.Qb,c=b.getStyle();a&&2!=c?b.zf(2):a||0==c||(b.zf(0),b.setContent(p4("//ssl.gstatic.com/docs/picker/images/search-black.png")));this.dispatchEvent(new VUd(a))};q.njd=function(a){if(13==a.keyCode)return E1e(this.Bc)||this.cUb(),a.preventDefault(),a.stopPropagation(),!1};
q.cUb=function(){var a=Ia(this.Sa.value);a!=(this.Bc.getQuery()||"")&&(this.Sa.value="",a?(this.Qb.zf(0),this.Qb.setContent(p4("//ssl.gstatic.com/docs/picker/images/search-black.png")),UUd(this,a)):this.Sx(null,null,null))};q.mjd=function(){UUd(this,Ia(this.Sa.value))};var UUd=function(a,b){var c=a.Bc.clone();o4(c,b);l4f(c,"sortKey");a.Vb&&a.$.$.lJ();a.$.Mh.On(c)};
x4.prototype.Sx=function(a,b,c){var d=this.Bc.clone();o4(d,Ia(this.Sa.value));l4f(d,"sortKey");BN(d,"imgtype",a);BN(d,"imgc",b);BN(d,"imgcolor",c);this.$.$.lJ();this.$.Mh.On(d)};x4.prototype.setActive=function(a){a&&Ia(this.Sa.value)!=this.Bc.getQuery()&&(this.Sa.value=this.Bc.getQuery()||"",this.dispatchEvent(new VUd(Ia(this.Sa.value))))};x4.prototype.focus=function(){try{return this.Sa.focus(),!0}catch(a){return!1}};
x4.prototype.qb=function(){y(this.Bc);y(this.Km);y(this.Sa);y(this.Qb);y(this.Vk);y(this.mL);x4.ya.qb.call(this)};var VUd=function(a){A.call(this,"Go");this.$=a};t(VUd,A);VUd.prototype.Ns=function(){return this.$};var FJf=function(a){a=xe(a);a.width||(a.width=0);a.height||(a.height=0);return a},KEf=function(a){a=ze(a);a.width||(a.width=0);a.height||(a.height=0);return a},FLg=function(a){a.top=a.top||0;a.bottom=a.bottom||0;a.right=a.right||0;a.left=a.left||0;return a};
var MLe=function(a,b){if(ia(b)){switch(b){case 3:return"Too many items selected. Please deselect one or more.";case 5:return"Maximum file size exceeded. Please deselect one or more.";case 4:return"Maximum file size exceeded.";case 1:return"Invalid file type selected.";case 7:return"Invalid file type selected.";case 2:return JC(a.ef(),Xee);case 6:return"The owner of one or more of these files has disabled downloading."}return"An error occurred. Please try again."}return""},Lxg=function(a){var b=a.rd(), c=b.jv,d=b.p_,b=b.y2,f=[];a=a.$;var h=a.fjb();b&&a.Vjb()>b&&f.push(5);c&&h>c&&f.push(3);d&&h<d&&f.push(2);return f};
var Mlg=function(a,b,c){s3.call(this,a,c);this.Bc=b;this.Ab=new x4(a,b,c);x(this,this.Ab);this.Qb=this.mL=this.Sa=null};t(Mlg,s3);
Mlg.prototype.Pa=function(){var a=this.Ea().Pa("div","a-F");this.Kb(a);this.Ab.Db=a;this.ib(this.Ab,!0);this.getContext().rd().Xb&&FQd(this.Bc.$)&&"docs-videos"!=this.Bc.$&&!this.Bc.getOption("mode")&&(a=Fcf(this.Bc,this.getContext())?"grid":"list",this.Sa=new RW([t9e(this,"List view","list","a-n-Hb-Ra"),t9e(this,"Grid view","grid","a-n-Te-Ra")],a,this.Ea(),new UV(!0)),x(this,this.Sa),this.ib(this.Sa,!0),Qn(this.Sa.ta(),"a-gc-Ra-kI"));a=this.getContext().rd();a.Vk&&a.zF&&FQd(this.Bc.$)&&(a=this.Ea(),
this.Qb=new C7e(this.getContext(),this.Bc,!1,a),x(this,this.Qb),this.Qb.render(this.ta()),this.mL=new Fp(a.Pa("div","a-n-Bpn8Yb a-Ye-r-c-B"),this.Qb,Hp.ia(),a),x(this,this.mL),this.ib(this.mL,!0),Fw(this.mL.ta(),"Sort options"),Pn(this.mL.ta(),"a-Ye-r-c",!0),this.Sa&&Qn(this.Sa.ta(),"a-gc-Ra-kI-lE-gc-Bpn8Yb"))};Mlg.prototype.Na=function(){Mlg.ya.Na.call(this);this.Sa&&this.getHandler().Ja(this.Sa,"change",Lp(this.$b,this))};
Mlg.prototype.$b=function(){var a="grid"==this.Sa.Qb.$e().getValue();this.getContext().Ab.addCallback(function(b){b.M_b.Ab(!a)});this.getContext().Km.Sa(a?"Changed to grid view.":"Changed to list view.","polite")};var t9e=function(a,b,c,d){a=a.Ea();d=a.Pa("div",{"class":d+" a-gc-Ra-kI-c"},"\u00a0");d=new Ot([d],a);d.Wj(c);d.xg(1);d.Pa();d.Xb=!0;d.Sn(b);return d};Mlg.prototype.setActive=function(a,b){this.Ab.setActive(a,b);this.Sa&&t0d(this.Sa,Fcf(this.Bc,this.getContext())?"grid":"list")}; Mlg.prototype.focus=function(){return this.Ab.focus()};
var y4=function(a,b,c,d,f){this.tjb=tJg(b,a.rd());n4.call(this,a,b.or(),f);this.Bc=b.clone();var h;h=this.Bc;if("photos"==h.$){var k=h.Ra();h="getty"==k?!0:!k&&!h.getOption("parent")&&!h.getOption("ids")}else h=h.getOption("ids")?!1:"blog-search"==h.$||"book-search"==h.$||"all"==h.$||"docs-images"==h.$||"docs-images-and-videos"==h.$||"docs-videos"==h.$||"documents"==h.$||"drawings"==h.$||"folders"==h.$||"forms"==h.$||"image-search"==h.$||"pdfs"==h.$||"people"==h.$||"presentations"==h.$||"spreadsheets"==
h.$||"sites"==h.$||"tables"==h.$||"video-search"==h.$||"video-albums"==h.$||"web"==h.$;(this.uh=h?new Mlg(a,b,f):null)&&this.ib(this.uh);this.lN=this.Brb(d,c,f);this.sA=null;this.dTa={};this.Ab=new TC(this.x6a,400,this);this.y5a=this.Vb=this.lp=this.Ag=this.ona=this.Xw=null;this.Be="";this.qSa=this.Op=!1;this.Zma=null};t(y4,n4);
y4.prototype.Pa=function(){var a=this.Ea(),b=this.lN;b.Pa();this.Xw||this.Ysa();this.sA=a.Pa("div","a-B-Z",b.ta());b=a.Pa("div","a-B a-Lc",this.sA);this.Kb(b);if(b=this.uh)b.Pa(),a.Ep(b.ta(),this.sA);this.setVisible(this.g3)};y4.prototype.Ysa=function(){this.Xw=new V0d(this.Ea());x(this,this.Xw);this.Xw.Pa()};
y4.prototype.Na=function(){this.Vb=this.Vb||BMc(this.ta());y4.ya.Na.call(this);this.Xw&&this.ta().parentNode.appendChild(this.Xw.ta());E1e(this.Bc)&&(this.y5a=new Un(this.$yb,200,this),this.uh&&WUd(this,this.uh.Ab));var a=this.lN;a.Na();this.getHandler().Ja(a,["check","uncheck"],this.m2a).Ja(a,"open",this.oXa).Ja(a,"dblclick",this.cD);this.Vb&&this.getHandler().Ja(this.Vb,"scroll",Lp(this.Ab.Il,this.Ab))};
var WUd=function(a,b){a.getHandler().Ja(b,"Go",function(a){((this.Be=a.Ns())||this.Bc.getQuery())&&this.Be!=this.Bc.getQuery()&&(this.qSa=!0,this.y5a.start())})};q=y4.prototype;q.Ib=function(){y4.ya.Ib.call(this);this.lN.Ib()};q.Gya=function(){var a=this.Ea();try{if(this.uh&&a.contains(this.uh.ta(),yba(a.$)))return!1}catch(b){}return!0};q.pja=function(){this.Op||this.kt()};
q.kt=function(){var a=this.Bc;return this.Gya()?!this.uh||a.getQuery()||"web"!=a.$&&"blog-search"!=a.$&&"book-search"!=a.$&&"image-search"!=a.$&&"video-search"!=a.$?this.Op=this.getContainer().kt():(this.Op=!0,Uf(function(){this.uh.focus()},0,this),!0):this.Op=!0};q.setActive=function(a,b){y4.ya.setActive.call(this,a,b);this.uh&&this.uh.setActive(a,b);a&&(this.qSa&&(this.Be="",this.$yb()),this.qSa=!1)};
q.setVisible=function(a){var b=this.ta();b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px";this.uh&&(b=this.uh.Ab,a&&b.Vk&&b.Vk.eb(b.Bc));xc&&Gf("7")};q.Gf=function(){return this.Bc};q.Brb=function(a,b,c){return new k4(a,b||D3.ia(),c)};q.getContainer=function(){return this.lN};q.gJ=function(){return this.dTa};q.KYa=function(a){this.dTa=a};
q.Ik=function(a){T$g(this,"vdr");this.lp&&(Fc(this.lp),delete this.lp);this.Zma&&(this.removeChild(this.Zma,!0),delete this.Zma);for(var b=this.gJ(),c={},d,f=0;f<a.length;f++)d=a[f].getId(),c[d]=b[d],c[d]&&c[d].y6a&&c[d].y6a(),delete b[d];this.KYa(c);U1e(this,b);this.Uga(a);S$g(this,"vdr")};var U1e=function(a,b){var c=a.getContainer();Pb(b,function(a){a&&a.Ma&&(c.removeChild(a,!0),a.Ma())})};q=y4.prototype;q.Uga=function(a){this.getContainer().hb(!0);this.ta().scrollTop=0;this.Hr(a)};
q.zbb=function(a){var b=x5(this,a),c=this.getContext().$;if(b){var d=b.La();if(this.Rd().vC(a))b.update();else for(var f=this.bC(this.Rd().Ae()),h=0;h<f.length;h++){var k=f[h];if(k.getAttribute("oid")==d.getId()){Wb(this.gJ(),a);k.getId()in this.gJ()?(this.getContainer().removeChild(b,!0),b&&b.Ma&&b.Ma()):(Saa(this.gJ(),k.getId(),b),b.xZ(k.getId()),this.PX(b)&&b.Oz&&b.Oz(),b.update());c.Sf(d.getId())&&(c.WT([d.getId()],!1),c.WT([k.getId()],!0));break}}}};
q.Hr=function(a){var b=this.getContext(),c=b.$,d=this.gJ();v(a,function(a){var h=a.getId(),k=d[h]=d[h]||this.ED(a);oTf(a)||b.rd().lN(a.rI())||k.Bm(16,!1);this.Zba(k);k.Ld(c.Sf(h))},this);b.rd().yH("received")&&b.Sa.Sl(a,"received");this.lKa();this.pja();a=Ge(this.getContainer());(0==a||this.PX(kw(this.getContainer(),a-1))&&this.Rd().yW())&&Uf(this.RD,0,this);this.dispatchEvent("dataAppended")};q.vB=function(a){y4.ya.vB.call(this,a);Z1e(this)};q.Zba=function(a){this.getContainer().ib(a,!a.Nb())};
q.jOa=function(a){var b=x5(this,a);b&&(this.lN.removeChild(b,!0),b.Ma(),delete this.gJ()[a],this.lKa())};q.meb=function(a){this.Xw&&this.Xw.setVisible(a)};q.iO=function(a){y4.ya.iO.call(this,a);Z1e(this)};var Z1e=function(a){if(a.g3&&a.getContext().rd().Ko&&a.Rd()&&a.Rd().Hi()){var b=a.Gf().getOption("maxPrefetchCollections")||0;if(!(0>=b))for(var c=a.bC(a.Rd().Ae()),d=a.getContext().od,f=0,h=0;h<c.length&&f<b;h++)if(oTf(c[h])){f++;var k=$1e(a,c[h]).or();d.Rd(k).mL||d.Vd(k,ka,ka,!0)}}};
y4.prototype.ED=function(a){var b=this.ona;b||(b=this.ona=new s4(this.getContext().rd().$b));b=new t4(this.getContext(),a,b,this.Ea());oTf(a)&&"recently-picked"!=this.Bc.$&&(b.Bm(64,!0),b.Bm(16,!1),Bo(b,64));return b};
y4.prototype.gR=function(){this.EFa(dTd(this.Bc));if(("all"==this.Bc.$||"docs-images"==this.Bc.$||"docs-images-and-videos"==this.Bc.$||"docs-videos"==this.Bc.$)&&iWa(this.Bc.getOptions(),function(a,c){return"ownedByMe"==c?!1!==a:"includeFolders"==c?!0:null==a})){var a=this.getContext();a.Ab.addCallback(Lp(function(b){b.Kkc&&this.ib(this.Zma=new AUd(a,this.Ea()),!0)},this))}y4.ya.gR.call(this)};
y4.prototype.EFa=function(a){var b=this.Ea();this.lp||(this.getContainer().cb().appendChild(this.lp=b.Pa("tr",null,b.Pa("td",null,this.Ag=b.Pa("div","a-Lc-nc")))),po(this.Ag,"status"),qo(this.Ag,"live","assertive"));qa(a)?b.uq(this.Ag,a):(b.hb(this.Ag),this.Ag.appendChild(a))};y4.prototype.iRa=function(a){var b=x5(this,a);b&&b.Ld(this.getContext().$.Sf(a))};var x5=function(a,b){return a.gJ()[b]};
y4.prototype.m2a=function(a){var b=a.target.La(),c=this.getContext(),b=b.getId(),d=c.$;if(d.Sf(b)!=("check"==a.type)){if(!d.HP(b,c.rd().$b?"cb":"cl"))return!1;(a=x5(this,b))&&TSd(a)}return!0};y4.prototype.oXa=function(a){a=a.target.La();a=$1e(this,a);this.getContext().Mh.On(a)};
var $1e=function(a,b){var c=a.Bc.clone();a.getContext().rd().iu?BN(c,"parent",b.Qe()):BN(c,"parent",b.getId());o4(c,null);c.Sa=a.Bc;"application/vnd.google-apps.rollupphotoalbum"==b.rI()?BN(c,"mode","rollupAlbum"):"rollupAlbum"==c.getOption("mode")&&BN(c,"mode",void 0);return c};q=y4.prototype;q.cD=function(a){a=a.target;if(xo(a,16)&&a.isEnabled()){a=a.La();var b=this.getContext(),c=b.$;c.Sf(a.getId())&&c.lJ();c.HP(a.getId(),"cl")&&(c=Lxg(b),gb(c)&&b.Sa.Sl([a]))}};
q.lKa=function(a){a=a||1;5<a||(this.Vb&&!this.Vb.offsetHeight?Uf(Lp(this.lKa,this,a+1),20):this.x6a())};q.x6a=function(){for(var a=this.getContainer(),b=Ge(a),c=this.Vna();c<b;c++){var d=kw(a,c);d&&this.PX(d)&&d.Oz&&d.TGb&&!d.Op&&(d.Oz(),c==b-1&&this.RD())}};
q.Vna=function(){if(!this.Vb)return 0;for(var a=this.Vb,b=a.scrollTop+a.offsetHeight,c=this.getContainer(),d=0,f=Ge(c)-1;d<f;){var h=d+f>>1,k=kw(c,h),k=k.ta();if(k.offsetTop+k.offsetHeight<a.scrollTop)d=h+1;else if(k.offsetTop>b)f=h-1;else{for(k=kw(c,h-1);0<h&&k&&this.PX(k);)h--,k=kw(c,h-1);return h}}return 0};
q.PX=function(a){if(!this.g3)return!1;if(!this.Vb)return!0;var b=this.Vb,c=b.scrollTop-b.offsetHeight,b=b.scrollTop+2*b.offsetHeight;a=a.ta();return a.offsetTop<b&&a.offsetTop+a.offsetHeight>=c};q.$yb=function(){o4(this.Bc,this.Be);this.Eca(this.Bc.or());this.getContext().Mh.jUb(this.getContext().Mh.Hd(),this.Bc);this.RD(!0)};q.r2a=function(a){a.data.visible&&this.g3&&(this.Op=!1);y4.ya.r2a.call(this,a);Z1e(this)};q.qb=function(){y4.ya.qb.call(this);this.Bc.Ma();this.lN.Ma();this.ona=null};q.TP=function(){return this.tjb};

G("sy869");I();
}catch(e){_DumpException(e)}
try{
H("sy872");var cVd=function(a,b,c){y3.call(this,a,"a-Cq-Cc","a-Cq-Bb","a-Cq-B","top",c);this.Ab=b};t(cVd,y3);cVd.prototype.Pa=function(){cVd.ya.Pa.call(this);var a=this.Sa,b=this.Ea();a.appendChild(b.Pa("div","a-Cq",this.Ab));this.setSize(20)};var dVd=function(a,b){return new cVd(a,"Upload problems?  We're doing maintenance, but things should be back to normal soon.",b)};
var z4=function(a,b,c,d){B3.call(this,a,b,c,d);this.Ag=null};t(z4,B3);z4.prototype.Pa=function(){z4.ya.Pa.call(this);var a=this.Ea(),b=this.Ag=a.Pa("table","a-Za-tS-E",a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td","a-Za-tS-E-Ws","Only select images that you have confirmed that you have the license to use."))));a.Hy(b,this.Sa.lastChild)};z4.prototype.update=function(){z4.ya.update.call(this);var a=this.Ag;if(a){var b=this.getContext().We();On(a,!b.Aia())}}; z4.prototype.qb=function(){z4.ya.qb.call(this);this.Ag=null};

G("sy872");I();
}catch(e){_DumpException(e)}
try{
KHb.prototype.file=g(498,function(){var a=new ag;this.Ab.file(function(b){a.By(b)},Lp(function(b){a.jd(new Qbd(b,"getting file for "+this.$.fullPath))},this));return a});Wf.prototype.sra=g(8,function(){return qa(this.mL)?this.mL:String(this.mL)});Wf.prototype.getAllResponseHeaders=g(7,function(){return this.$&&this.rl()?this.$.getAllResponseHeaders():""});yBb.prototype.getAllResponseHeaders=g(6,function(){return"content-type: "+this.$.contentType});
var $cd={DEFAULT:"default",E7b:"inqueue",vLd:"recovery",mac:"start",aTa:"transfer",nlb:"success",ERROR:"error",W8b:"partial-error",CANCEL:"cancel"},gcd=function(a){switch(a){case "abort":return"Canceled";case "networkerror":return"Lost connection to server";case "ioerror":return"Unable to read file";case "securityerror":return"Security error";case "serverrejected":return"Server rejected";case "serverinvalidresponse":return"Server returned invalid response";default:return"Unexpected error"}},hcd=function(a){switch(a){case 6:case 9:case 8:case 1:return"networkerror"; case 2:return"ioerror";case 7:return"abort";case 5:return"exception";case 0:return"noerror";default:return"unknownerror"}};H("sy849");
for(var TPb=Array(256),eQb=0;256>eQb;eQb++)TPb[eQb]=Math.pow(eQb/255,1.6);var hQb=Array(24576),JB;for(JB=-8192;0>JB;++JB)hQb[8192+JB]=0;for(var CSb=1/8191;8191>=JB;++JB){var DSb=Math.pow(CSb*JB,.625);hQb[8192+JB]=1<=DSb?255:Math.round(255*DSb)}for(;16384>JB;++JB)hQb[8192+JB]=255;
var wcd=function(a){this.Ab=a;this.fx={};this.Sa={};this.$=null;this.Ba=new Hd;x(this,this.Ba);if(a=eVb("google-upload"))if(this.$=new yY(a))try{if(this.fx=this.$.get("stats"))if(this.fx instanceof Object)for(var b in this.fx)if(this.fx[b]instanceof Object){var c=this.fx[b],d;for(d in c)c[d].t7||delete c[d]}else delete this.fx[b];else this.fx={};this.fx?this.$.remove("stats"):this.fx={}}catch(f){this.fx={}}};t(wcd,kd);
var xcd=function(){this.t7=[];this.$ka=null},ycd=function(a,b,c,d,f,h){b&&c&&(d={time:h||Wa(),type:d},f&&(d.details=f),a.fx[b]||(a.fx[b]={}),a.fx[b][c]||(a.fx[b][c]=new xcd),a.fx[b][c].t7.push(d))};
wcd.prototype.report=function(){if(!Ub(this.fx))for(var a in this.fx)if(!Ub(this.fx[a])){var b=this.fx[a],c=[],d=[],f=void 0;for(f in b)b[f].t7&&0<b[f].t7.length&&c.push({upload_id:f,events:b[f].t7,client_version:this.Ab}),b[f].$ka&&d.push(b[f].$ka);b={};0<c.length&&(b.upload_events=c);0<d.length&&(b.related_uploads=d);c=Rf(b);this.Sa[a]=this.fx[a];this.fx[a]={};d=new Wf;this.Ba.Ja(d,"success",Lp(this.Qb,this,a));this.Ba.Ja(d,"error",Lp(this.mL,this,a));d.send(a,"POST",c)}};
var zcd=function(a,b){for(var c in b)a[c]?(a[c].t7=a[c].t7.concat(b[c].t7),b[c].$ka&&(a[c].$ka=b[c].$ka)):a[c]=b[c]};wcd.prototype.Qb=function(a){this.Sa[a]={}};wcd.prototype.mL=function(a){zcd(this.Sa[a],this.fx[a]);this.fx[a]=this.Sa[a];this.Sa[a]={}};wcd.prototype.clear=function(){this.$&&this.$.set("stats",{})};
var tY=function(a,b,c){A.call(this,a,c);this.file=b};t(tY,A);var Ybd=function(a,b,c){tY.call(this,"uploadmessagechanged",a,c);this.message=b};t(Ybd,tY);var Jcd=function(a){this.file=a};q=Jcd.prototype;q.yB=null;q.yR=null;q.xxa=null;q.blob=null;q.BPc=!1;q.state="default";var zY=function(a){Ld.call(this);this.Qb=a;this.$b=this.DU="";this.Ba=new Hd(this)};t(zY,Ld);q=zY.prototype;q.dispatchEvent=function(a){try{return zY.ya.dispatchEvent.call(this,a)}catch(b){}};q.getFile=function(){return this.Qb};q.Lq=function(){return this.$b};q.send=function(a){this.DU=a;this.Sa(a)};q.yS=e(609);q.aQ=e(610);q.tWa=function(){throw Error("fg");};q.getHandler=function(){return this.Ba};q.qb=function(){zY.ya.qb.call(this);y(this.Ba)};
var Lcd=function(a,b){Ld.call(this);this.Sa=a.file;this.Ag=a.yR;this.mL=b;this.$b=this.Ab=this.DU=this.Qb=null;this.$=!1};t(Lcd,Ld);
Lcd.prototype.start=function(){if(!this.$){this.$=!0;var a=new Wf;ud(a,"complete",Lp(function(){if(this.$){if(308==a.getStatus()){var b=a.getResponseHeader("Range");this.Qb=a.getResponseHeader("X-Range-MD5")||null;var c=a.Lq(),d=null,f=null;try{d=Qf(c).sessionStatus,f=d.externalFieldTransfers[0].formPostInfo||d.externalFieldTransfers[0].putInfo}catch(h){}if(b&&this.Qb&&d&&f&&(b=/^bytes=(\d+)-(\d+)$/.exec(b))&&(this.DU=Number(b[1]),this.Ab=Number(b[2])+1,0==this.DU&&0<this.Ab)){this.Ag.tWa(this.Ab,
Lp(function(a){this.$&&(this.$b=a,this.$b==this.Qb?(this.Sa.UYa(f.url||this.mL),this.Sa.JYa(f.cross_domain_url),this.Sa.bxa(this.Ab),this.Sa.oxa(d.upload_id||wf(this.mL,"upload_id")),this.Sa.gxa(d.correlation_id),this.$=!1,this.dispatchEvent("success")):(this.$=!1,this.dispatchEvent("error_hashing")))},this));this.dispatchEvent("hashing");return}}this.$=!1;this.dispatchEvent("error_querying")}},this));a.send(this.mL,"POST","",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.Sa.kf}); this.dispatchEvent("querying")}};Lcd.prototype.cancel=function(){this.$=!1;this.dispatchEvent("canceled")};
var Mcd=function(a,b){Ld.call(this);this.Ab=a;this.Sb="INITIALIZING";this.Sa=this.mL=this.Qb=null;this.$b=b;this.Ba=new Hd(this)};t(Mcd,Ld);q=Mcd.prototype;q.gob=!1;q.getFile=function(){return this.Ab};q.setState=function(a){this.Sb=a};q.getState=function(){return this.Sb};q.dG=function(){return this.mL};
q.start=function(a){var b=Lp(this.DU,this),c=Lp(this.$,this),d=new Wf;d.Vb=!0;this.Ba.Ja(d,"success",b).Ja(d,"error",c);var b={protocolVersion:"0.8",createSessionRequest:{fields:[]}},c=this.getFile(),f=b.createSessionRequest,h={external:{name:"file",filename:c.uaa()}},k;switch(this.$b){case 0:k="formPost";break;case 1:k="put";break;default:k="formPost"}h.external[k]={};k=c.kf;null==k||c.e4a||(h.external.size=k);f.fields.push(h);Qcd(b,c.Oi());try{c={};Zb(c,this.getFile().Ag);Zb(c,Ncd(this.Sa));var m=
Rf(b);d.send(a,"POST",m,c)}catch(p){throw p;}};var Ncd=function(a){var b={};b["X-GUploader-Client-Info"]="mechanism="+a+"; clientVersion=96583793";return b};
Mcd.prototype.DU=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){var c=b.sessionStatus,d;switch(this.$b){case 0:d="formPostInfo";break;case 1:d="putInfo";break;default:d="formPostInfo"}this.setState(c.state);var f=c.upload_id,h=c.correlation_id,k=c.externalFieldTransfers[0],m=k[d].url;this.gob&&(m=Bf(Jf(m),"").Zy("").toString());var p=k[d].cross_domain_url,u=k.content_type,z=this.getFile();z.UYa(m);z.JYa(p);z.oxa(f);z.gxa(h);z.M6a(u);z.dNb(a.target.getResponseHeader("X-GUploader-Stats-URL"));
z.TMb(a.target.getAllResponseHeaders());this.dispatchEvent("startsuccess",a.target)}else if(void 0!=b.errorMessage){var F=b.errorMessage,f=F.upload_id,z=this.getFile();z.oxa(f);Pcd(this,F);this.$(a,"serverrejected")}else this.$(a,"serverinvalidresponse")}catch(M){this.$(a,"serverinvalidresponse")}};
var Ocd=function(a,b){var c=Qf(b);void 0!=c.sessionStatus?(a.setState(c.sessionStatus.state),Pcd(a,c.sessionStatus)):void 0!=c.errorMessage&&(a.setState("FAILED"),Pcd(a,c.errorMessage))},Pcd=function(a,b){var c=b.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"];a.Qb=c.completionInfo.status;a.mL=c.completionInfo.customerSpecificInfo};Mcd.prototype.$=function(a,b,c){this.setState("FAILED");b||(b=hcd(a.target.D_()),c=a.target.sra());this.Ab.fq(b,c);this.dispatchEvent("starterror",a.target)};
Mcd.prototype.dispatchEvent=function(a,b){qa(a)?a=new Rcd(a,this,b):a.request=b;try{return Mcd.ya.dispatchEvent.call(this,a)}catch(c){}};var Qcd=function(a,b){Ve(b,function(b,d){a.createSessionRequest.fields.push({inlined:{name:d,content:b,contentType:"text/plain"}})})};Mcd.prototype.toString=function(){return"Session(state:"+this.getState()+")"};Mcd.prototype.qb=function(){Mcd.ya.qb.call(this);y(this.Ba)};var Rcd=function(a,b,c){A.call(this,a,b);this.request=c||null};t(Rcd,A);
var EY=function(){Ld.call(this);this.$=[];this.Ag=new Ze;this.Tx={};this.Km={};this.jv={};this.DU=new Rh;this.Ba=new Hd(this);x(this,this.Ba);this.Qb=new wcd("96583793");x(this,this.Qb);try{this.Ba.Ja(window,"unload",this.zMc)}catch(a){}this.Qb.report()};t(EY,Ld);q=EY.prototype;q.d8=!0;q.pCa=!1;q.jmd=wa(function(){return jg(!0)});q.h8="";q.Jpa=0;q.H6a=1;q.p8=!0;q.kX=!0;q.onb=!1;q.doa=!1;q.roa=!1;var Scd=function(a,b){a.H6a=Math.max(1,b);Tcd(a)};q=EY.prototype;q.L1=e(611);q.cya=e(612);
q.getHandler=function(){return this.Ba};q.dispatchEvent=function(a){try{return EY.ya.dispatchEvent.call(this,a)}catch(b){}};q.getFile=function(a){return(a=this.Ag.get(a))?a.file:null};var GY=function(a,b){var c=a.Ag.get(b.getId());c||(c=a.QWa(b),a.Ag.set(b.getId(),c));return c};q=EY.prototype;q.O$=function(a){this.DU.contains(a)||this.zx(a)||"default"!=HY(this,a)||("undefined"!=typeof xY&&a instanceof xY||Sh(this.DU,a),IY(this,a,"inqueue"),Tcd(this))};q.zx=function(a){return GY(this,a).yB};
q.Qda=function(a,b){switch(HY(this,a)){case "success":case "error":case "cancel":return}var c=GY(this,a).yR,d=this.zx(a),f=GY(this,a).xxa,h=Wa(),k=b||!1;d&&this.Ba.nb(d,"startsuccess",this.zMb,!1,this);c&&(c.abort(),GY(this,a).yR=null,k||(c=a.i8)&&(new Wf).send(c,"DELETE"));f&&(f.cancel(),GY(this,a).xxa=null);this.DU.remove(a);Xcd(this,a,"cancel");Ycd(this,a,h);GY(this,a).yB=null;a.fq("abort",void 0);IY(this,a,"cancel");if("undefined"!=typeof xY&&a instanceof xY)for(f=a.S2,h=0;h<f.length;h++)this.Qda(f[h],
k)};q.hW=function(){return this.$.length};q.tca=function(a){if(!a.cQ())return!1;var b=GY(this,a);y(b.yB);b.yB=null;y(b.yR);b.yR=null;y(b.xxa);b.xxa=null;b.state="default";a.L6a();this.O$(a);return!0};var Zcd=function(a){v(sb(a.$),function(a){switch(HY(this,a)){case "default":case "success":case "partial-error":case "error":case "cancel":this.Tu(a)}},a)};
EY.prototype.dE=function(a){var b=a||!1;v(sb(this.$),function(a){switch(HY(this,a)){case "default":case "inqueue":this.Qda(a,b)}},this);v(sb(this.$),function(a){this.Qda(a,b)},this)};
var IY=function(a,b,c){var d=HY(a,b);if(c!=d&&Tb($cd,c)){GY(a,b).state=c;b.GMb(a.jra()&&!("undefined"!=typeof xY&&b instanceof xY)&&("error"==c||"cancel"==c));var f="";if("error"==c||"cancel"==c)f=gcd(b.D_());a.dispatchEvent(new Ybd(b,f));a.dispatchEvent(new tY("uploadstatechanged",b));add(d)&&!add(c)&&(b.CYa(void 0),a.Jpa--,a.QKa())}},HY=function(a,b){return GY(a,b).state};q=EY.prototype;q.reset=function(){v(sb(this.$),this.Tu,this)};q.$$=function(){return this.DU.isEmpty()&&0==this.Jpa};q.o4a=e(613);
q.JI=function(){return!1};q.Jaa=e(614);q.d5a=e(615);q.VNa=e(617);q.Lt=function(){return sb(this.$)};q.Tu=function(a){this.Qda(a);this.Ag.remove(a.getId());mb(this.$,a);this.dispatchEvent(new tY("fileremoved",a))};q.Lr=function(){};q.VM=function(){};q.lza=function(){return!1};q.W4a=e(619);var add=function(a){return eb(["recovery","start","transfer"],a)};q=EY.prototype;q.sxa=e(618);q.QWa=function(a){return new Jcd(a)};
q.QKa=function(){this.$$()&&this.dispatchEvent("allfilescompleted");if(!(this.Jpa>=this.H6a||this.DU.isEmpty())){if(Ea(this.h8))throw Error("hg");var a=oo(this.DU);if(!("undefined"!=typeof xY&&a instanceof xY)){this.Jpa++;if(this.mL){var b=this.h8+":"+a.Eaa(),c=null,d=null;try{d=(c=this.mL.$(b))?Ccd(c):void 0}catch(f){}if(c&&qa(d)){var h=d;if(b=wf(d,"upload_id")){cg(this.jmd(b),function(b){b?bdd(this,a,h):this.yD(a)},function(){this.yD(a)},this);return}}}this.yD(a)}}};
q.yD=function(a){var b=new Mcd(a,this.z0a());b.Sa=this.poa();this.roa&&(b.gob=!0);this.Ba.Ja(b,"startsuccess",this.zMb).Ja(b,"starterror",this.WYc);GY(this,a).yB=b;var c=a.c2();c&&b.setState("OPEN");this.dispatchEvent(new tY("filesessioncreated",a,this));c?A0e(this,a,c):(b.start(this.h8),IY(this,a,"start"))};q.W8=function(a){return new zY(a)};
q.j8a=function(a){a=a.target;var b=a.getFile(),c=this.zx(b),d=Wa();try{Ocd(c,a.Lq());var f=c.getState(),h=c.Qb;"FINALIZED"!=f||"SUCCESS"!=h&&"QUEUED"!=h?(b.fq("serverrejected",void 0),IY(this,b,"error")):IY(this,b,"success")}catch(k){b.fq("serverinvalidresponse",void 0),IY(this,b,"error")}this.mL&&(this.mL.remove(this.h8+":"+b.Eaa()),this.mL instanceof Ecd&&"success"==HY(this,b)&&Fcd(this.mL));Xcd(this,b,"success");Ycd(this,b,d)};q.LTa=e(620);q.jra=function(){return!1};q.z0a=function(){return 0};
q.zMc=function(){Zcd(this);for(var a=0;a<this.$.length;a++){var b=this.$[a];b&&b.Yla&&b.Cu()&&ycd(this.Qb,b.Yla,b.Cu(),"unload","",Wa())}a:if(a=this.Qb,a.$){b=null;try{b=a.$.get("stats")}catch(c){break a}b||(b={});for(var d in a.Sa){var f=b[d]||{};zcd(f,a.Sa[d]);b[d]=f}for(d in a.fx)f=b[d]||{},zcd(f,a.fx[d]),b[d]=f;a.$.set("stats",b);a.Sa={};a.fx={}}};
var Tcd=function(a){for(;!(a.Jpa>=a.H6a||a.DU.isEmpty());)a.QKa()},bdd=function(a,b,c){var d=GY(a,b);d.yR||(d.yR=a.W8(b));c=new Lcd(d,c);a.Ba.Ja(c,"success",Lp(a.yD,a,b)).Ja(c,"error_querying",Lp(a.yD,a,b)).Ja(c,"error_hashing",Lp(a.yD,a,b)).Ja(c,"hashing",function(){a.dispatchEvent(new tY("filehashingstarted",b,a))});d.xxa=c;c.start();IY(a,b,"recovery")},A0e=function(a,b,c){if("abort"!=b.D_()){if(a.mL){var d=a.h8+":"+b.Eaa();try{a.mL.set(d,b.i8,Wa()+864E6)}catch(f){}}d=GY(a,b);d.yR||(d.yR=a.W8(b));
d=d.yR;IY(a,b,"transfer");a.Ba.Ja(d,"success",a.j8a).Ja(d,"error",a.FZc).Ja(d,"progress",a.Uec).Ja(d,"backoff",a.EZc);if(!a.Km[b.getId()]){var h=b.Cu(),k=[];a.jv[h]=Wa();for(var m=0;m<a.$.length;m++){var p=a.$[m];p&&!a.Km[p.getId()]&&(a.Km[p.getId()]=h,k.push(p))}a.Tx[h]=k}Xcd(a,b,"select",""+(b.dob||""),b.DU);Xcd(a,b,"start");a.dispatchEvent(new tY("fileiocreated",b,a));d.send(c)}},Xcd=function(a,b,c,d,f){f=f||Wa();var h=b.Yla;b=b.Cu();h&&b&&(ycd(a.Qb,h,b,c,d,f),a.Qb.report())},Ycd=function(a,b,
c){var d=a.Km[b.getId()];if(d){var f=a.Tx[d];if(!(2>f.length||f[f.length-1]!=b)){b=f[0].Yla;var h=0;if(b){var k=[],m;for(m in f)null!=f[m]&&null!=f[m].Cu()&&(k.push(f[m].Cu()),h+=f[m].kf);f=a.Qb;c=parseInt(c-a.jv[d],10);d=h;!k||1>=k.length||(h=k[0],k={upload_id:k},c&&(k.latency_ms=c),d&&(k.total_size=d),f.fx[b]||(f.fx[b]={}),f.fx[b][h]||(f.fx[b][h]=new xcd),f.fx[b][h].$ka=k);a.Qb.report()}}}};q=EY.prototype;
q.zMb=function(a){a=a.target.getFile();var b=a.c2();if(b)A0e(this,a,b);else throw Error("ig`"+a);};q.WYc=function(a){a=a.target.getFile();IY(this,a,"error")};q.Uec=function(a){a=a.target.getFile();this.dispatchEvent(new tY("uploadprogress",a))};q.FZc=function(a){a=a.target;var b=a.getFile(),c=Wa(),d=this.zx(b);try{Ocd(d,a.Lq())}catch(f){}IY(this,b,"error");Xcd(this,b,"error",b.F5a,Wa());Ycd(this,b,c);this.mL&&this.mL.remove(this.h8+":"+b.Eaa())}; q.EZc=function(a){a=a.target.getFile();this.dispatchEvent(new tY("uploadbackoff",a))};
var jdd=DSa(S4a("static/uploaderapi.swf")),idd=new Ze;var QY=function(){};QY.prototype.mL=90;QY.prototype.Ab=!0;QY.prototype.tf=function(){return this.$};QY.prototype.setSize=function(a,b){if(this.Sa)throw Error();this.$=sa(a)?new Kb(a,b||a):a;return this};
G("sy849");I();
}catch(e){_DumpException(e)}
try{
H("sy854");
G("sy854");I();
}catch(e){_DumpException(e)}
try{
H("sy422");var nK=function(a,b,c,d,f){function h(a){a&&(a.tabIndex=0,po(a,"tab"),Qn(a,"d-Jd-Nb"),a&&k.jg.Ja(a,"click",k.Km),a&&k.Ag.Ja(a,"keydown",k.Ko))}Ld.call(this);this.Kf=f||jc();this.Sa=this.Kf.ta(a)||null;this.Qb=this.Kf.ta(d||null);this.mL=(this.DU=ta(b)?b:null)||!b?null:this.Kf.ta(b);this.Ab=1==c;ia(c)||this.DU||(this.Qb?this.Ab=ve(this.Qb):this.Sa&&(this.Ab=Sn(this.Sa,"d-Jd-gu")));this.Ag=new Hd(this);this.jg=new Hd(this);var k=this;h(this.Sa);h(this.Qb);this.uba(this.Ab)};t(nK,Ld);q=nK.prototype;
q.Xnb=!0;q.itb=!0;q.qb=function(){nK.ya.qb.call(this);y(this.Ag);y(this.jg)};q.cb=function(){return this.mL};q.expand=function(){this.uba(!0)};q.collapse=function(){this.uba(!1)};q.toggle=function(){this.uba(!this.Ab)};q.uba=function(a){this.mL?On(this.mL,a):a&&this.DU&&(this.mL=this.DU());this.mL&&Qn(this.mL,"d-Jd-B");this.Qb?(On(this.Sa,!a),On(this.Qb,a)):SHb(this,a);this.Ab=a;this.dispatchEvent(new THb("toggle",this,this.Ab))};q.Zk=function(){return this.Ab};
var SHb=function(a,b){a.Sa&&(Pn(a.Sa,"d-Jd-gu",b),Pn(a.Sa,"d-Jd-Fl",!b),qo(a.Sa,"expanded",b))};nK.prototype.Ko=function(a){if(13==a.keyCode||32==a.keyCode)this.toggle(),this.dispatchEvent(new A("action",this)),a.preventDefault(),a.stopPropagation()};nK.prototype.Km=function(){this.toggle();this.dispatchEvent(new A("action",this))};var THb=function(a,b,c){A.call(this,a,b);this.cga=c};t(THb,A);

G("sy422");I();
}catch(e){_DumpException(e)}
try{
var Dkg=function(a,b){var c={},d;for(d in b)c[d]=lh(a,b[d]);return c};H("sy807");var mCc=function(a,b){kd.call(this);this.Ab=this.Sa=0;this.Fp=a;this.Bb=b;this.$=new Un(Lp(this.vsc,this),0,this)};t(mCc,kd);q=mCc.prototype;q.qb=function(){this.$.Ma();delete this.Fp;delete this.Bb;mCc.ya.qb.call(this)};q.start=function(a,b){this.stop();var c=b||0;this.Sa=Math.max(a||0,0);this.Ab=0>c?-1:Wa()+c;this.$.start(0>c?this.Sa:Math.min(this.Sa,c))};q.stop=function(){this.$.stop()};q.Ad=function(){return this.$.Ad()}; q.vsc=function(){if(!this.Fp.call(this.Bb))if(0>this.Ab)this.$.start(this.Sa);else{var a=this.Ab-Wa();0>=a||this.$.start(Math.min(this.Sa,a))}};

G("sy807");I();
}catch(e){_DumpException(e)}
try{
H("sy863");var e0=function(){};t(e0,Eo);la(e0);e0.prototype.Pa=function(a){return a.Ea().Pa("DIV",this.qr(a).join(" ")+" d-k-l","\u00a0")};e0.prototype.yb=function(a,b){b=e0.ya.yb.call(this,a,b);Qn(b,"d-k-l");return b};e0.prototype.Pc=function(){return"d-F-dd"};var f0=function(){this.$="toolbar"};t(f0,Go);la(f0);f0.prototype.hra=function(a){return"HR"==a.tagName?new Fo(e0.ia()):f0.ya.hra.call(this,a)};f0.prototype.Pc=function(){return"d-F"};f0.prototype.Fxb=function(){return"horizontal"};var std=function(a,b,c){Ho.call(this,b,a||f0.ia(),c)};t(std,Ho);std.prototype.$Ga=function(a){std.ya.$Ga.call(this,a);this.VS||yoa(this)};var ttd=function(){};t(ttd,Dp);la(ttd);ttd.prototype.Pc=function(){return"d-F-c"};var utd=function(a,b,c){vp.call(this,a,b||ttd.ia(),c)};t(utd,vp);uo("d-F-c",function(){return new utd(null)});
G("sy863");I();
}catch(e){_DumpException(e)}
try{
H("sy858");var zid=new Kb(480,360),ykd=new Kb(320,240);var Q3=function(){F3.call(this,"a-J-e")};t(Q3,F3);la(Q3);
Q3.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d,f;c.Ii?f=b.Pa("div","a-J-e-Tc"):(f=b.Pa("div","a-J-e-cj"),xc&&!Gf(9)||qe(f,0));le(f,new Kb(360,270));var h,k,m,p,u,z=b.Pa("div",this.qr(a).join(" ")+" d-k-l",b.Pa("div","d-k-l a-Ca-v-e-B",h=b.Pa("div","a-n-ab-z-ib-zf"),u=b.Pa("div","a-Ca-zc",b.Pa("img","a-Ca-zc-W")),m=b.Pa("div","a-J-e-qa",b.Pa("div",{"class":"a-J-e-qa-B",id:"imageContent"+va(a)},f)),d=b.Pa("div","a-J-e-Qe-Hj"),b.Pa("div","a-fy-lz-nb",k=b.Pa("video","a-fy-Ca"),p=b.Pa("div","a-a4-nb",
b.Pa("div","a-a4","preview")))));Qn(m,"a-Ca-lz");c=m.appendChild(b.Pa("div","a-Ca-v-kj",b.Pa("div","a-Ca-kj-E",b.createTextNode("Processing video...")),b.Pa("div","a-Ca-v-sf",b.createTextNode(c.getName())),b.Pa("div","a-Ca-v-Hd d-k-l")));On(c,!1);On(u,!1);On(h,!1);Qn(z,"Ca-v-z");a.Gdb(f);h=F9f(a);h.Pa();f.appendChild(h.ta());d.appendChild(b.Pa("div",{id:a.yw().getId(),"class":"a-J-e-jc"}));k.canPlayType&&!xc?qe(z,0):(On(k,!1),On(p,!1));return z};
Q3.prototype.tq=function(a){Q3.ya.tq.call(this,a);var b=a.La(),c=a.yw();c.yb(a.Ea().ta(c.getId()));b=b.Jd()||"";c.setContent(b);c.ta().title=b;yRd(a)};var xRd=function(a,b,c){(a=a.Ea().fb("a-D-v-sf",a.ta()))&&le(a,b,c)};Q3.prototype.$ca=e(653);
Q3.prototype.setSize=function(a,b,c){var d=a.Qb,f=a.ta();le(a.ta(),b,c);d&&d.ta()&&le(d.ta(),b,c);var h=a.Ea();v("a-fy-Ca a-J-e-Tc a-Ca-v-kj a-Ca-v-e-B a-D-v-qa a-Ca-zc-W".split(" "),function(a){(a=h.fb(a,f))&&le(a,b,c)});(d=h.fb("a-v-sf-aa",f))&&me(d,b);(d=h.fb("a-Ca-v-sf",f))&&me(d,b);xRd(a,b,c);yRd(a);Pd(h.fb("a-J-e-jc",f),"top",c+"px")}; var yRd=function(a){var b=a.yw().ta();if(b){var c=oe(a.ta());b.style.top=c.height+"px";My.Bo()?b.style.right="0":b.style.left="0";c=a.Ea();b=c.fb("a-J-e-jc",a.ta());a=oe(c.fb("a-J-e-qa",a.ta()));b.style.top=a.height+"px"}};
var CRd=0<=Xa(OJ,"9.0.0");var ARd=["transform","WebkitTransform","msTransform","OTransform","MozTransform"],zRd=function(a,b){if(!(a&&b&&a.parentNode&&b.parentNode)||1!=a.parentNode.nodeType||1!=b.parentNode.nodeType)return new Nd(0,0,0,0);var c=zy(a),d=ie(a),f=ie(b),h=R3(a,!0,!1);if(90==h||270==h)if(h=c.height,c.height=c.width,c.width=h,wd&&!Gf("12")){var h=Math.round(c.width/2),k=Math.round(c.height/2);d.x=d.x+k-h;d.y=d.y-k+h}d=new Gb(d.x-f.x,d.y-f.y);f=b.clientWidth;My.Bo()&&(d.x=f-d.x-c.width);104>c.width&&(d.x+104>f&&
(d.x=d.x+c.width-104),d.x-=(104-c.width)/2,c.width=104);return new Nd(d.x,d.y,c.width,c.height)},R3=function(a,b,c){var d,f=!1;v(ARd,function(b){d||c&&"MozTransform"==b||(d=a.style[b])});d||b||(d=a.style.filter,f=!0);if(d&&(b=d.search("rotat"),0<=b)){b=d.substr(b);var h=b.search("[)]"),f=f?90:1,f=b.substr(0,h).replace(/\D/g,"")*f;return BRd(f)}return 0},S3=function(a){var b=BMc(a);if(b){var c=zRd(a,b);a=Ae(a);c.height+=a.top+a.bottom;c.top+c.height>b.offsetHeight&&(b.scrollTop+=c.top+c.height-b.offsetHeight+
5);0>c.top&&(b.scrollTop+=c.top)}},ERd=function(a,b){if(xc&&!Gf(9))a.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.floor(b/90)+")";else{var c="rotate("+b+"deg)";v(ARd,function(b){a.style[b]=c})}},BRd=function(a){0>a?a+=360:360<=a&&(a-=360);return a};

G("sy858");I();
}catch(e){_DumpException(e)}
try{
H("sy866");var VRd="https:"==window.location.protocol,URd=function(a){return Fu(a)?VRd?a.replace(/^http:/i,"https:"):a:za(Zpa(a),".gstatic.com")&&("https"==HZ(1,a)||!VRd)||ya(a,"https://googledrive.com/thumb/")?a:"//images-onepick-opensocial.googleusercontent.com/gadgets/proxy?container=onepick&gadget=a&rewriteMime=image%2F*&url="+Ja(a)},WRd=function(a){a=zRb(krc(new Au(a))).setSize(288).Le();if(Oa(a,"=s288"))return a.replace("=s288","={size}");var b=a.lastIndexOf("/");if(0>b)return"";var c=a.lastIndexOf("/",
b-1);return 0>c?"":a.substring(0,c+1)+"{size}"+a.substring(b)},XRd=function(a,b){var c=a&&a.vt();return!!c&&YRd(b.od.La(c))},YRd=function(a){a=a&&a.getAttribute("la");return!!a&&eb(a,"profile_photos.active")},ZRd=function(a,b,c){var d=new w3("youtube-banner-preview");d.Sa=b;BN(d,"id",a.getId());c.Mh.On(d)};

G("sy866");I();
}catch(e){_DumpException(e)}
try{
H("sy868");var X3=function(){this.$=new Cx;this.Sa={};this.Ab={}};la(X3);X3.prototype.load=function(a,b,c){Ub(this.Sa)&&ud(this.$,["load","error"],this.mL,!1,this);var d=Ce(Be.ia());this.Sa[d]=b;this.Ab[d]=c;Dx(this.$,d,a);xc&&!Gf("9")?Uf(Lp(this.$.start,this.$)):this.$.start();return d};X3.prototype.mL=function(a){var b=a.target.id;if("load"==a.type)this.Sa[b](a);else{var c=this.Ab[b];c&&c(a)}PFa(this.$,b);delete this.Sa[b];delete this.Ab[b];Ub(this.Sa)&&zd(this.$,["load","error"],this.mL,!1,this)};

G("sy868");I();
}catch(e){_DumpException(e)}
try{
var pVd=[void 0,"ownerOnly","limited","extendedCircles","domainPublic","public","allPersonalCircles"],xXd=["32-c","64-c","72-c","400","default"],pTf=function(a){var b=a;0<a.length&&(b=a.substr(0,0)+a.substr(1,a.length-0-1));return b},rXd=function(a){kd.call(this);this.$=a};t(rXd,kd);rXd.prototype.Sa=e(657);
var NLe=function(a,b){var c=[];if(b[0]&&b[0].Sa)for(var d={},f=a.$.rd().Nma||xXd,h=0;h<f.length;h++){var k=f[h],m;if("default"==k)m=b[0].ll(void 0,void 0,!0);else if("orig"==k)m=b[0].ll(0,void 0,!0);else{var p,u,z;m=[];for(var k=k.split("-"),F=0;F<k.length;F++){var M=k[F],X=parseInt(M,10);X?p=X:ya(M,"h")&&1<M.length?u=parseInt(pTf(M),10):ya(M,"w")&&1<M.length?z=parseInt(pTf(M),10):m.push(M)}var da;z&&u?da=new Kb(z,u):p&&(da=p);m=b[0].ll(da,m,!0)}F=m.wc()+"x"+m.Ic();if(a.$.rd().Nma||!d[F])k={},k.url= m.getUrl(),k.width=m.wc(),k.height=m.Ic(),c.push(k),d[F]=!0}else for(h=0;h<b.length;h++)k={},m=b[h],d=m.getUrl(),d&&ya(d,"data:")||(k.url=m.getUrl(),k.width=m.wc(),k.height=m.Ic(),c.push(k));return c};H("sy870");
var fVd=function(a,b,c){y3.call(this,a,"a-Av-Cc","a-Av-Bb","a-Av-B","bottom",c);this.mL=b};t(fVd,y3);fVd.prototype.Pa=function(){fVd.ya.Pa.call(this);var a=this.Ea(),b=this.Sa,c=Ce(Be.ia());b.appendChild(a.Pa("div",void 0,this.$b=a.Pa("div",{"class":"a-Av-mA",id:c},a.createTextNode("The image you highlighted was found by Google Image Search on this page:")),a.Pa("div","a-Av-mA",this.Ab=a.Pa("a",{href:"#",target:"_blank"}))));qo(this.Ab,"labelledby",c);this.setSize(0)};
fVd.prototype.Na=function(){fVd.ya.Na.call(this);this.getHandler().Ja(this.getContext().$,"si",this.Qb)};var j2e=function(a){a.Ea();var b=a.getContext().$.Sk(),b=b&&b.length?a.getContext().od.La(b[0]):null;"getty"==a.mL.Gf().getOption("type")&&(b=null);if(b){var c=a.Ab,d=b.getUrl();La(d);c.href=d;Rc(c,d);ey(a.$b,"The image you highlighted was found by Google Image Search on this page: "+d)}On(a.Sa,!!b);a.setSize(b?29:0)};fVd.prototype.setActive=function(a,b){fVd.ya.setActive.call(this,a,b);a&&j2e(this)}; fVd.prototype.Qb=function(){this.mL.g3&&j2e(this)};
var gVd=function(a,b){y3.call(this,a,"a-PH-Cc","a-PH-Bb","a-PH-B","top",b)};t(gVd,y3);gVd.prototype.Pa=function(){gVd.ya.Pa.call(this);var a="These images are also available to view and share in "+('<a href="https://picasaweb.google.com/home?hl='+My.$+'" target="_blank">Picasa Web Albums</a>, Google\'s free photo hosting service.'),b=this.Ea(),a=b.Pa("div","a-PH-E",cd(b,a));this.Sa.appendChild(a);this.setSize(42)};
var B4=function(a,b,c,d){B3.call(this,a,b,c,d);this.Ag=null};t(B4,B3);B4.prototype.Pa=function(){B4.ya.Pa.call(this);var a=this.Ea(),b=this.Ag=a.Pa("div","d-k-l a-Za-Xm-nc");qe(this.Ag,0);a.Hy(b,this.Sa.lastChild);a=new $w({service:"party",type:"audience",options:{evid:this.getContext().rd().Tx,maxSize:22}});b=this.getContext().od.Rd(a);b.Hi()&&b.tf()?iVd(this,b.Ae(),!1):this.getContext().od.Vd(a,Lp(function(a){iVd(this,a.Ae(),!0)},this),ka,!0)};
var hVd=function(a,b,c){b="public"==b?"Photos will be visible to anyone (public on the web).":"wide"==b?"Photos will be shared with a wide audience.":(new Z("{audienceCount, plural, =0 {Photos will be shared with all event guests} =1 {Photos will be shared with {startTag}one person{endTag}.}other {Photos will be shared with {startTag}{audienceCount} people{endTag}.}}")).format({audienceCount:c,startTag:'<span class="a-Xm-Yr-s">',endTag:"</span>"});return cd(a.Ea(),b)},iVd=function(a,b,c){var d=b[0];
a.Ag.appendChild(hVd(a,d.getAttribute("visibility"),d.Tm()));c?(new bF(a.Ag,218)).play():qe(a.Ag,1);if(c=a.Ea().fb("a-Xm-Yr-s",a.Ag)){var f=new gD(a.Ea());x(a,f);f.setPosition(2);iD(f,!0);f.render(a.getContext().rd().fG());f.setContent(jVd(a,b.slice(1),d.Tm()));Qn(f.ta(),"a-Xm-id-b-i");f.Fg(c);Jd(a.getHandler(),c,vw,Lp(f.setVisible,f,!0))}},jVd=function(a,b,c){a=a.Ea();for(var d=Math.min(b.length,22),f=(c-=d)?(new Z("{moreCount, plural, =0 {unused plural form}=1 {+ 1 more}other {+ {moreCount} more}}")).format({moreCount:c}):
void 0,f=a.Pa("div","a-Za-Xm-id",a.Pa("div","a-Za-Xm-id-O","Visible to:"),c=a.Pa("div"),f),h=0;h<d;h++){var k=b[h],m=a.Pa("img",{src:k.Yh()[0].Qs(24,["c"]),"class":"a-Za-Xm-id-W"});m.setAttribute("oid",k.Qe());c.appendChild(k.getUrl()?a.Pa("a",{href:k.getUrl(),target:"_blank"},m):m)}return f};B4.prototype.update=function(){B4.ya.update.call(this);this.Ag&&On(this.Ag,!this.getContext().We().Aia())};B4.prototype.qb=function(){B4.ya.qb.call(this);this.Ag=null};
var kVd=function(a,b,c){y3.call(this,a,"a-qe-N-Cc","a-qe-N-Bb","a-qe-N-B","bottom",c);this.Ag=b;this.Qb=new kR;this.ib(this.Qb);this.mL=null;this.Ab=!1;this.Yg=null};t(kVd,y3);kVd.prototype.Pa=function(){kVd.ya.Pa.call(this);var a=this.Ea(),b=this.Sa;b.appendChild(a.Pa("div","a-qe-N-E",this.Ag||"Or paste a web address here:"));b.appendChild(a.Pa("div",null,this.mL=a.Pa("input",{type:"text","class":"a-qe-N-z"})));this.setSize(46);this.Qb.yb(this.mL)};
kVd.prototype.Na=function(){kVd.ya.Na.call(this);this.Yg=new rw(this.mL);this.getHandler().Ja(this.Yg,"input",this.$b)};var l2e=function(a,b){var c=a.mL;c.value!=b&&(c.value=b);a.Ab=0<b.length;Pn(c,"a-qe-N-z-L",a.Ab);a.Ab||c.blur()};kVd.prototype.$b=function(){var a=this.getContext(),b=this.mL,c=b.value;this.getContext().$b.$(c);!this.Ab&&0<c.length?(a.$.lJ(),this.Ab=!0,this.dispatchEvent(new lVd)):this.Ab&&0==c.length&&(this.Ab=!1,this.dispatchEvent(new lVd));Pn(b,"a-qe-N-z-L",this.Ab)}; var lVd=function(){A.call(this,"ZE")};t(lVd,A);
var C4=function(a,b,c,d,f){t3.call(this,a,f);this.Km=tJg(b,a.rd());T$g(this,"vc");this.Bc=b;this.Ig=c;var h=null;My.DU&&"photos"==b.$&&b.getOption("upload")&&(h=dVd(a,f),z3(h,c),c=h);this.Vk=h;h=null;eb(d,"bi")&&(h=new gVd(a,f),z3(h,c),c=h);this.Ag=h;var h=a.rd(),k=null,m=b.getOption("parent"),p=b.getOption("hideBc")||eb(d,"dbbimv");m&&!b.getQuery()&&!p&&(m=a.od.La(m))&&(k=new G3(a,b,m,f),z3(k,c),c=k);this.mL=k;b=null;eb(d,"at")&&(b=new fVd(a,this,f),z3(b,c),c=b);this.$b=b;d=null;h.Pma&&(d=new kVd(a,
void 0,f),z3(d,c),c=d);this.Ab=d;f=this.zab();z3(f,c);this.ib(f);this.Sa=f;qr(this.getHandler().Ja(a.$,"si",this.Aab),this.Ig,"change",this.Aab,!1,this)};t(C4,t3);q=C4.prototype;q.j2a=function(){this.Sa.getContext().Sa.b2b()};q.zab=function(){var a=this.getContext(),b=this.Ea(),c=Lp(this.j2a,this),d=a.rd().Tx;return"image-search"!=this.Bc.$||this.Bc.getOption("type")&&"gis"!=this.Bc.getOption("type")?"photos"==this.Bc.$&&d?new B4(a,c,void 0,b):new B3(a,c,void 0,b):new z4(a,c,void 0,b)};
q.Pa=function(){this.Sa.Pa();this.Kb(this.Sa.ta())};q.Na=function(){C4.ya.Na.call(this);var a=this.Ab;a&&this.getHandler().Ja(a,"ZE",this.Aab);this.getHandler().Ja(this.getContext().$,"ti",this.C5);S$g(this,"vc")};q.setVisible=function(a){var b=this.ta();b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px"};q.Gf=function(){return this.Bc};q.zq=function(){return this.Ig.zq()};q.hJ=e(644);
q.setActive=function(a,b){C4.ya.setActive.call(this,a,b);var c=function(c){c&&c.setActive(a,b)};c(this.Ig);c(this.$b);c(this.Vk);c(this.mL);c(this.Ab);c(this.Sa);a&&(this.Ab&&l2e(this.Ab,this.getContext().$b.getValue()),this.C5(),xc&&"video-search"==this.Bc.$&&0==Xa(nf,"7")&&Uf(function(){Pd(this.ta(),"zoom","1")},0,this))};q.vB=function(a){this.Ig.vB(a)};q.Aab=function(a){if(this.g3){var b=this.getContext().$b,c=this.Ab;c&&"si"==a.type&&E5d(this)&&(l2e(c,""),b.$(""));this.C5()}};
q.C5=function(){var a=this.Qb(),a=E5d(this)&&a||!!this.getContext().$b.getValue(),b=this.Sa;b.qh(a);b.Qb&&b.Qb.$b()};var E5d=function(a){var b=a.zq();a=a.getContext().$.Sk(!0);return Cd(a,b.contains,b)};C4.prototype.Qb=function(){var a=Lxg(this.getContext()),b;gb(a)||(b=a[0]);nEg(this.Sa,!!b,MLe(this.getContext(),b),0);return!b};C4.prototype.qb=function(){C4.ya.qb.call(this);delete this.Sa;delete this.$b;delete this.Ag;delete this.mL;delete this.Ig;delete this.Ab}; C4.prototype.kt=function(){var a=this.Ig.kt();!a&&this.mL&&(a=this.mL.focus());a||this.Sa.focus();return!0};C4.prototype.TP=function(){return this.Km};

G("sy870");I();
}catch(e){_DumpException(e)}
try{
H("sy886");var I4e=function(a,b){kd.call(this);this.xb=a;this.Kf=b;this.Bb=new Hd(this);x(this,this.Bb);this.Ab=new Sf(24);x(this,this.Ab);this.$=0;this.Sa=null};t(I4e,kd);q=I4e.prototype;q.ta=function(){return this.xb};q.stop=function(){this.Ab.stop();this.Bb.removeAll();this.Sa=null};q.start=function(){qr(qr(this.Bb,this.xb,["touchmove","mousemove"],this.ZHb,void 0,this),this.Ab,"tick",this.YHb,void 0,this);this.Ab.start()};
q.YHb=function(){if(!this.isDisposed()){if(this.Sa){var a=fd(this.Kf).y+this.Sa.y,b=pe(this.xb),c=a-b.top,a=b.top+b.height-a,b=0;-48<c&&48>c?b=-1.2:-48<a&&48>a&&(b=1.2);this.$=0==this.$?b:0>this.$?this.$*-b:this.$*b;this.$=Math.max(Math.min(this.$,96),-96)}this.xb.scrollTop+=this.$}};q.ZHb=function(a){this.isDisposed()||(this.Sa=new Gb(a.clientX,a.clientY))};
var lW=function(a){C.call(this,a);this.$b=!1;this.$=null;this.Ag=new TC(this.fPb,50,this);x(this,this.Ag);this.uh=new TC(this.gPb,250,this);x(this,this.uh);this.Vb=this.Sa=this.Qb=this.Ab=this.Td=this.mL=null};t(lW,C);lW.prototype.Pa=function(){lW.ya.Pa.call(this);this.ra(this.ta())};lW.prototype.ra=function(){var a=this.ta();Qn(a,"j-D-yNa");On(a,!1)};lW.prototype.Na=function(){lW.ya.Na.call(this);var a=this.Ea().La();this.getHandler().Ja(a,"mousedown",this.mud)};
var J4e=function(a){var b=Od(a.Td.GHa());Vd(a.ta(),Math.max(a.Sa.left-b.left,0)+"px",Math.max(a.Sa.top-b.top,0)+"px");var c=0;a.Sa.left<b.left?c=b.left-a.Sa.left:a.Sa.left+a.Sa.width>b.right&&(c=a.Sa.left+a.Sa.width-b.right);le(a.ta(),a.Sa.width-c+"px",a.Sa.height-Math.max(b.top-a.Sa.top,0)+"px")},K4e=function(a){if(a.$){var b=fd(a.Kf);return new Gb(a.$.scrollLeft+b.x,a.$.scrollTop+b.y)}return fd(a.Ea())};q=lW.prototype;
q.mud=function(a){if(this.Td.Eqa(a.target)&&td(a)){this.$b&&L4e(this);var b=K4e(this);this.Ab=new Gb(a.clientX+b.x,a.clientY+b.y);this.Qb=this.Ab.clone();this.$b=!0;b=this.Ea().La();this.getHandler().Ja(b,"mousemove",this.W0b).Ja(b,"mouseup",this.Y0b).Ja(b,"mouseout",this.Vk);this.Sa=new Nd(this.Ab.x,this.Ab.y,0,0);this.Td.lya(!0,!!a.shiftKey);J4e(this);this.ta();On(this.ta(),!0);"IMG"==a.target.nodeName&&a.preventDefault()}};q.W0b=function(a){this.mL=a;this.Ag.Il()};
q.fPb=function(){if(this.mL){var a=this.mL,b=this.Ea().getWindow(),c=$c(this.Ea()).height,c=50-Math.min(c-a.clientY,a.clientY);0<c&&(50>a.clientY?b.scrollBy(0,-Math.sqrt(c)):b.scrollBy(0,Math.sqrt(c)));a=K4e(this);this.Qb=new Gb(this.mL.clientX+a.x,this.mL.clientY+a.y);this.Vb=this.Sa;this.Sa=ugb(new Nd(this.Ab.x,this.Ab.y,1,1),new Nd(this.Qb.x,this.Qb.y,1,1));J4e(this);this.uh.Il()}};q.gPb=function(){this.Td.Yia(this.Sa,this.Vb)};q.Y0b=function(){L4e(this)};
var L4e=function(a){a.Ag.stop();a.uh.stop();a.$b=!1;a.Td.lya(!1);var b=a.Ea().La();a.getHandler().nb(b,"mousemove",a.W0b).nb(b,"mouseup",a.Y0b).nb(b,"mouseout",a.Vk);On(a.ta(),!1)};lW.prototype.Vk=function(a){var b=this.Ea().La();a.target==b&&L4e(this)};

G("sy886");I();
}catch(e){_DumpException(e)}
try{
H("sy889");var D_d=function(a){Qw.call(this,a);this.$&&(this.Qb=a.response.st)};t(D_d,Qw);$S(17,function(a){return new D_d(a)});var E_d=function(){Mw.call(this)};t(E_d,Mw);E_d.prototype.PD=pg(new Af("photoquota"));E_d.prototype.Sq=function(){return 17};var pwg=function(a,b){s3.call(this,a,b)};t(pwg,s3);pwg.prototype.setActive=ka;pwg.prototype.Qb=ka;pwg.prototype.$b=ka;var XX=function(a,b,c){s3.call(this,a,c);this.Sa=this.mL();this.ib(this.Sa);this.Ab=null;this.Ag=b};t(XX,pwg);XX.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-Za-QYEU7c-Foa-zu-sc");this.Kb(b);this.Ab=a.Pa("div","a-Za-QYEU7c-ka",this.Ag);b.appendChild(this.Ab);this.Sa.render(b)};XX.prototype.Na=function(){XX.ya.Na.call(this);this.getHandler().Ja(this.Sa,"change",this.uh)};XX.prototype.uh=function(){var a="attach"==this.Sa.Qb.$e().getValue();this.getContext().$.Eyb(a)};
XX.prototype.mL=function(){return new RW([tEg(this,"Inline","inline","a-WNq8W-k-cb"),tEg(this,"As attachment","attach","a-WNq8W-eyIFUe-ltEGzf")],"inline",this.Ea())};var tEg=function(a,b,c,d){a=a.Ea();d=a.Pa("div",d+" a-Za-Dy4iJc-m","\u00a0");b=a.Pa("div","a-Za-Dy4iJc-E",b);b=new Ot([d,b],a);b.Wj(c);b.Pa();return b};XX.prototype.setActive=function(){var a=this.getContext().$,b=a.uYb();null!=b||a.Eyb(!1);t0d(this.Sa,b?"attach":"inline")};XX.prototype.Qb=function(a){this.Ab&&On(this.Ab,a)}; XX.prototype.isEnabled=function(){return this.Sa.isEnabled()};XX.prototype.Ta=function(a){this.Sa.Ta(a)};
var F_d=function(a){return"https://www.google.com/settings/u/{authuser}/storage/?hl={locale}".replace("{authuser}",a.rd().Km||"0").replace("{locale}",My.$)};var G_d=function(a,b){C.call(this,b);this.$=a};t(G_d,C);G_d.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-gpa");this.Sa?a.appendChild(b,cd(a,this.Sa)):On(b,!1);this.Kb(b)};
G_d.prototype.display=function(a,b){var c=this.Ea(),d=void 0;if("r"==a&&b)d="Photos you're uploading will be resized to "+(b.pixels+(' pixels. <a href="'+(F_d(this.$)+'" target="_blank">Upgrade storage</a>')));else if("v"==a)d="Your video has finished uploading and you can attach it now.  You will be able to watch it once it has finished processing.";else if("s"==a)var f=this.$.rd(),d=f.Db,f=f.DU,d=d&&f?1>=f.width||1>=d.width?"You can only select images between "+(f.height+(" and "+(d.height+" pixels tall."))):
1>=f.height||1>=d.height?"You can only select images between "+(f.width+(" and "+(d.width+" pixels wide."))):"You can only select images between "+(f.width+("x"+(f.height+(" and "+(d.width+("x"+(d.height+" pixels in size."))))))):d?"You can only select images less than "+(d.width+(" by "+(d.height+" pixels in size."))):1>=f.width?"You can only select images at least "+(f.height+" pixels tall."):1>=f.height?"You can only select images at least "+(f.width+" pixels wide."):"You can only select images at least "+
(f.width+(" by "+(f.height+" pixels in size.")));else"p"==a&&(d="By selecting a photo from another user you represent that you have the photo owner's permission to use the photo as your profile photo.");(this.Sa=d)&&this.Nb()&&(f=this.ta(),c.hb(f),c.appendChild(f,cd(c,d)),On(f,!0))};G_d.prototype.Oe=function(){this.Sa=void 0;this.Nb()&&On(this.ta(),!1)};

G("sy889");I();
}catch(e){_DumpException(e)}
try{
H("sy891");var ac=function(a){a=a.className;return qa(a)&&a.match(/\S+/g)||[]},cc=function(a,b){for(var c=ac(a),d=c,f=ub(arguments,1),h=0;h<f.length;h++)eb(d,f[h])||d.push(f[h]);c=c.join(" ");a.className=c};
G("sy891");I();
}catch(e){_DumpException(e)}
try{
H("sy852");var hZ=function(){this.$=void 0;if(xc&&0==Xa(nf,"6"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}};t(hZ,Go);la(hZ);hZ.prototype.VWa=function(){return!1};hZ.prototype.E$=function(a){hZ.ya.E$.call(this,a);we(a.ta(),!1,wd)};hZ.prototype.Pc=function(){return"v-ff"};
var TY=function(a){this.$=a||!1};t(TY,vo);var Ped=null,UY=function(a){return a.$?"div":"td"};q=TY.prototype;q.Pa=function(a){var b=this.qr(a),b=a.Ea().Pa(this.$?"div":"tr",b?{"class":b.join(" ")}:null);this.lK(a,b);return b};q.lK=function(){};q.h_=function(a){return a.tagName.toLowerCase()==(this.$?"div":"tr")};q.yb=function(a,b){this.lK(a,b);return TY.ya.yb.call(this,a,b)};
q.bGa=function(a){switch(a){case "default":return"v-Xg-Ba";case "inqueue":return"v-Xg-C5";case "start":return"v-Xg-Vb";case "transfer":return"v-Xg-v";case "pause":return"v-Xg-Qdb";case "backoff":return"v-Xg-Z9";case "success":return"v-Xg-mv";case "error":return"v-Xg-wa";case "cancel":return"v-Xg-xe";default:return"hza"}};q.tq=function(a){TY.ya.tq.call(this,a);we(a.ta(),!1,wd);a.Bq("");ZY(a).setVisible(!1);$Y(a).setVisible(!1)};q.tJa=function(){return!1};q.E6=function(){};
q.r3=function(a){var b=a.getMessage();a=aZ(a);b?(a.setContent(" ("+b+")"),a.setVisible(!0)):(a.setContent(""),a.setVisible(!1))};q.Vw=function(a,b,c){moa(a,this.bGa(b));a.Ab(this.bGa(c));YY(a).setVisible("default"==c||"inqueue"==c);ZY(a).setVisible("start"==c||"transfer"==c||"backoff"==c);b=a.getValue();$Y(a).setVisible(b.cQ())};
var Oed=function(a){var b,c;1073741824<=a?(a/=1073741824,c="GB"):1048576<=a?(a/=1048576,c="MB"):1024<=a?(a/=1024,c="KB"):c="B";b=Math.max(0,(b||3)-(""+Math.floor(a)).length);b=Math.pow(10,b);return Math.round(a*b)/b+" "+c};TY.prototype.Pc=function(){return"v-We"};
var VY=function(a,b,c){yo.call(this,a,b||Ped||(Ped=new TY),c);this.mL=new Ze;ooa(this,!0)};t(VY,yo);VY.prototype.dispatchEvent=function(a){try{return VY.ya.dispatchEvent.call(this,a)}catch(b){}};var ufd={DEFAULT:"default",E7b:"inqueue",mac:"start",aTa:"transfer",PAUSE:"pause",Jzd:"backoff",nlb:"success",W8b:"partial-error",ERROR:"error",CANCEL:"cancel"};q=VY.prototype;q.lZ="default";q.v0b=null;q.pKb=null;q.lob=null;q.job=null;q.hob=null;q.FXb=null;q.iob=null;q.Anb=null;q.KUa="";q.sUa=null;
var Qed=function(a){return a.v0b||(a.v0b=new yo("",void 0,a.Ea()))},WY=function(a){return a.pKb||(a.pKb=new yo("",void 0,a.Ea()))},XY=function(a){return a.lob||(a.lob=new yo("",void 0,a.Ea()))},YY=function(a){return a.job||(a.job=new vp(null,wp.ia(),a.Ea()))},ZY=function(a){return a.hob||(a.hob=new vp(null,wp.ia(),a.Ea()))},$Y=function(a){return a.FXb||(a.FXb=new vp(null,wp.ia(),a.Ea()))},aZ=function(a){return a.iob||(a.iob=new yo("",void 0,a.Ea()))};
VY.prototype.yw=function(){return this.Anb||(this.Anb=new yo("",void 0,this.Ea()))};VY.prototype.Qb=function(a){this.Xo(a);UAf(this)};VY.prototype.getValue=function(){return this.kc()};var UAf=function(a){a.Sa.r3(a)};q=VY.prototype;q.Vw=function(a){if(a!=this.lZ){if(Tb(ufd,a)){var b=this.lZ;this.lZ=a;this.Sa.Vw(this,b,a);return!0}throw Error("vg`"+a);}return!1};q.getMessage=function(){return this.KUa};q.Bq=function(a){a!=this.KUa&&(this.KUa=a,UAf(this))};q.kob=function(){};
q.E6=function(a,b){this.Sa.E6(this,a,b)};q.cPa=function(a){a!=this.sUa&&(this.sUa=a,UAf(this))};q.fn=function(a){if(a.target!=this.ta()){var b=a.target.id;ba(this.mL,b)&&this.mL.get(b)(a)}return VY.ya.fn.call(this,a)};q.Na=function(){VY.ya.Na.call(this);this.ta().id=lh(this,"file");this.Sa.Vw(this,this.lZ,this.lZ);var a=YY(this),b=Lp(this.eHc,this);this.mL.set(a.getId(),b);a=ZY(this);b=Lp(this.Cvc,this);this.mL.set(a.getId(),b);a=$Y(this);b=Lp(this.$Hc,this);this.mL.set(a.getId(),b)};q.eHc=function(){this.dispatchEvent("removeclicked")}; q.Cvc=function(){this.dispatchEvent("cancelclicked")};q.$Hc=function(){this.dispatchEvent("retryclicked")};uo("v-We",function(){return new VY(null)});
var eZ=function(a){this.$=a||!1};t(eZ,TY);var dfd=null;
eZ.prototype.lK=function(a,b){var c=a.Ea(),d=this.Pc(),f=d+"-L7";this.$&&(f=d+"-ep");f=[c.Pa(UY(this),{"class":f+" "+(d+"-Qd")},c.Pa("div",{"class":d+"-Qd g-v-j3",id:Qed(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-kb")},c.Pa("span",{id:WY(a).getId()}),c.Pa("span",{id:aZ(a).getId(),"class":d+"-nc"})),c.Pa(UY(this),{"class":f+" "+(d+"-im")},c.Pa("span",{id:XY(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-la")},c.Pa("div",{id:gZ(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-wC")},c.Pa("div",
{id:$Y(a).getId(),"class":d+"-uf"},"Retry"),c.Pa("div",{id:YY(a).getId(),"class":d+"-Ce"},"Remove"),c.Pa("div",{id:ZY(a).getId(),"class":d+"-xe"},"Cancel"))];this.$&&f.push(c.Pa("div",{"class":d+"-da"}));v(f,function(a){b.appendChild(a)})};eZ.prototype.tq=function(a){var b=[Qed(a),WY(a),XY(a),gZ(a),aZ(a),YY(a),ZY(a),$Y(a)],c=a.Ea();v(b,function(a){a.yb(c.ta(a.getId()))});eZ.ya.tq.call(this,a)};
eZ.prototype.r3=function(a){eZ.ya.r3.call(this,a);var b=a.getValue();b&&(WY(a).Lb(b.getName()),O0e(dfd||(dfd=new eZ),a))};var O0e=function(a,b){var c=b.getValue();if(c){var d=0,f=c.kf,c=c.PB;null==f?XY(b).Lb(Oed(c)):(d=eb(["success","partial-error","error","cancel"],b.lZ)?Oed(f):Oed(c)+" / "+Oed(f),XY(b).Lb(d),d=Math.round(c/f*100));b instanceof fZ&&gZ(b).$(d)}};eZ.prototype.Vw=function(a,b,c){eZ.ya.Vw.call(this,a,b,c);"error"==c&&moa($Y(a),this.Pc()+"-Bd");O0e(0,a)};
var dZ=function(a){this.$=a||!1};t(dZ,eZ);var efd=null,Zed=null;dZ.prototype.bGa=function(a){switch(a){case "default":return"v-Xg-Ba-rz";case "inqueue":return"v-Xg-C5-rz";case "start":return"v-Xg-Vb-rz";case "transfer":return"v-Xg-v-rz";case "partial-error":return"v-Xg-Pdb-wa-rz";case "success":return"v-Xg-mv-rz";case "backoff":return"v-Xg-Z9-rz";default:return dZ.ya.bGa.call(this,a)}};
dZ.prototype.lK=function(a,b){var c=a.Ea(),d=this.Pc(),f=d+"-ep",f=[c.Pa(UY(this),{"class":f+" "+(d+"-Qd")},c.Pa("div",{"class":d+"-Qd g-v-j3",id:Qed(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-kb")},c.Pa("span",{id:WY(a).getId()}),c.Pa("span",{id:ffd(a).getId(),"class":d+"-w2a"}),c.Pa("span",{id:aZ(a).getId(),"class":d+"-nc"})),c.Pa(UY(this),{"class":f+" "+(d+"-im")},c.Pa("span",{id:XY(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-la")},c.Pa("div",{id:gZ(a).getId()})),c.Pa(UY(this),{"class":f+
" "+(d+"-wC")},c.Pa("div",{id:$Y(a).getId()},"Retry"),c.Pa("div",{id:YY(a).getId()},"Remove"),c.Pa("div",{id:ZY(a).getId()},"Cancel"))];this.$&&f.push(c.Pa("div",{"class":d+"-da"}));v(f,function(a){b.appendChild(a)})};dZ.prototype.tq=function(a){var b=ffd(a);b.yb(a.Ea().ta(b.getId()));dZ.ya.tq.call(this,a)};dZ.prototype.r3=function(a){eZ.ya.r3.call(this,a);var b=a.getValue();b&&(WY(a).Lb(b.getName()),O0e(dfd||(dfd=new eZ),a),b=gfd(a),a=ffd(a),a.setContent(b?b:""),a.setVisible(!!b))};
var fZ=function(a,b,c){VY.call(this,a,b||dfd||(dfd=new eZ),c)};t(fZ,VY);fZ.prototype.iaa=null;var gZ=function(a){return a.iaa||(a.iaa=new lQ(a.Ea()))};var Yed=function(a,b,c,d,f){fZ.call(this,c,d||efd||(efd=new dZ),f);this.Sx=a;this.$=b;this.yQ=new Ze;this.Naa=new Ze;this.lp=this.Km=0};t(Yed,fZ);var ffd=function(a){return a.p_||(a.p_=new yo("",void 0,a.Ea()))},gfd=function(a){switch(a.lZ){case "default":case "success":case "cancel":case "error":return"("+(a.$.mL+" files)");case "partial-error":return"("+(a.Km-a.lp+(" succeeded, "+(a.lp+" failed)")));case "inqueue":case "start":case "transfer":return"("+(a.Km+(" of "+(a.$.mL+")")));default:return null}}; Yed.prototype.kob=function(a,b){this.Naa.set(a,b)};Yed.prototype.Oxb=function(){return this.lp};
var bZ=function(){};t(bZ,vo);la(bZ);bZ.prototype.Pc=function(){return"v-t2a"};bZ.prototype.h_=function(a){return"div"==a.tagName.toLowerCase()};bZ.prototype.yb=function(a,b){Sed(this,a,b);return bZ.ya.yb.call(this,a,b)};bZ.prototype.Pa=function(a){var b=this.Pc(),b=a.Ea().Pa("div",{"class":b+"-Z"});Sed(this,a,b);return b};var Sed=function(a,b,c){var d=b.Ea();a=a.Pc();c.appendChild(d.Pa("div",{"class":a+"-XIa",id:Ted(b).getId()}));c.appendChild(d.Pa("div",{"class":a+"-lia",id:Ued(b).getId()}))}; bZ.prototype.tq=function(a){var b=[Ted(a),Ued(a)],c=a.Ea();v(b,function(a){a.yb(c.ta(a.getId()))});bZ.ya.tq.call(this,a)};bZ.prototype.cb=function(a){return nc("div",this.Pc()+"-lia",a)[0]||null};bZ.prototype.tJa=function(){return!1};
var cZ=function(a){this.$=a||!1};t(cZ,eZ);var ofd=null,Wed=null;cZ.prototype.lK=function(a,b){var c=a.Ea();cZ.ya.lK.call(this,a,b);var d=c.Pa("div",{id:pfd(a).getId()},"Pause"),f=c.Pa("div",{id:qfd(a).getId()},"Resume"),c=Zc(c,"div","",b),h=ZY(a).getId(),c=cb(c,function(a){return a.getAttribute("id")==h});Ac(d,c);Dc(f,d)};cZ.prototype.tq=function(a){var b=a.Ea();v([pfd(a),qfd(a)],function(a){a.yb(b.ta(a.getId()))});pfd(a).setVisible(!1);qfd(a).setVisible(!1);cZ.ya.tq.call(this,a)}; cZ.prototype.Vw=function(a,b,c){cZ.ya.Vw.call(this,a,b,c)};
var cfd=function(a,b,c){fZ.call(this,a,b||ofd||(ofd=new cZ),c)};t(cfd,fZ);cfd.prototype.p_=null;cfd.prototype.Naa=null;var pfd=function(a){return a.p_||(a.p_=new vp(null,wp.ia(),a.Ea()))},qfd=function(a){return a.Naa||(a.Naa=new vp(null,wp.ia(),a.Ea()))};cfd.prototype.Na=function(){cfd.ya.Na.call(this);var a=pfd(this),b=Lp(this.Be,this);this.mL.set(a.getId(),b);a=qfd(this);b=Lp(this.ima,this);this.mL.set(a.getId(),b)};cfd.prototype.Be=function(){this.dispatchEvent("pauseclicked")}; cfd.prototype.ima=function(){this.dispatchEvent("resumeclicked")};
var Ved=function(a,b,c,d,f,h){yo.call(this,null,c||bZ.ia(),f);this.$=new Ze;this.Sx=a;this.lp=b;this.p_=d||Wed||(Wed=new cZ(!0));this.Qb=new Ze;h&&Xed(this,b)};t(Ved,yo);
var Ted=function(a){if(!a.mL){a.mL=new Yed(a.Sx,a.lp,null,Zed||(Zed=new dZ(!0)),a.Ea());var b=a.getHandler();b.Ja(a.mL,"removeclicked",function(){this.dispatchEvent("removeclicked")});b.Ja(a.mL,"cancelclicked",function(){this.dispatchEvent("cancelclicked")})}return a.mL},$ed=function(a){a.Km||(a.Km=new vp(null,wp.ia(),a.Ea()));return a.Km},Ued=function(a){a.yQ||(a.yQ=new yo("",void 0,a.Ea()));return a.yQ};
Ved.prototype.Na=function(){Ved.ya.Na.call(this);var a=this.Ea(),b=a.Pa("div",{id:$ed(this).getId()},"Details"),a=Zc(a,"div","",this.ta()),c=ZY(Ted(this)).getId(),a=cb(a,function(a){return a.getAttribute("id")==c});Dc(b,a);$ed(this).yb(b);afd(this,$ed(this),Lp(this.iaa,this))};Ved.prototype.iaa=function(){Xed(this,this.lp);var a=this.lp;this.Xo(a);Ted(this).Qb(a);bfd(this,a);$ed(this).setVisible(!1)};
Ved.prototype.fn=function(a){if(a.target!=this.ta()){var b=a.target.id;ba(this.Qb,b)&&this.Qb.get(b)(a)}return Ved.ya.fn.call(this,a)};var afd=function(a,b,c){a.Qb.set(b.getId(),c)},bfd=function(a,b){for(var c=b.S2,d=0;d<c.length;d++){var f=c[d];if("undefined"!=typeof xY&&f instanceof xY)bfd(a,f);else{var h=a.$.get(f.getId());h&&h.Qb(f)}}};Ved.prototype.getValue=function(){return this.kc()};Ved.prototype.Vw=function(a){return Ted(this).Vw(a)};
var Xed=function(a,b){for(var c=b.S2,d=0;d<c.length;d++){var f=c[d];if("undefined"!=typeof xY&&f instanceof xY)Xed(a,f);else{var h=a;if(ba(h.$,f.getId()))h.$.get(f.getId());else{var k=new cfd(null,h.p_,h.Ea()),m=HY(h.Sx,f);k.Vw(m);h.ib(k,!0);k.Qb(f);h.$.set(f.getId(),k)}}}};Ved.prototype.Bq=function(a){Ted(this).Bq(a)};
var iZ=function(){hZ.call(this)};t(iZ,hZ);la(iZ);iZ.prototype.Pa=function(a){var b=a.Ea(),c=this.Pc();return b.Pa("div",{"class":c},b.Pa("div",{"class":c+"-aa"},b.Pa("div",{"class":c+"-We-Hb"},b.Pa("table",{"class":c+"-wf"},b.Pa("tbody"))),b.Pa("div",{"class":c+"-QX",id:tfd(a).getId()})))};iZ.prototype.cb=function(a){return nc("tbody",null,a)[0]};iZ.prototype.E$=function(a){iZ.ya.E$.call(this,a);var b=tfd(a);b.yb(a.Ea().ta(b.getId()))};
var jZ=function(a){this.$=a||!1};t(jZ,eZ);var jfd=null;jZ.prototype.lK=function(a,b){var c=a.Ea();jZ.ya.lK.call(this,a,b);var d=c.Pa("span",{"class":this.Pc()+"-RX",id:kfd(a).getId()}),f=Zc(c,"span","",b),c=cb(f,function(b){return b.getAttribute("id")==WY(a).getId()}),f=cb(f,function(b){return b.getAttribute("id")==XY(a).getId()});Ac(d,c);On(c,!1);On(f,!1)};jZ.prototype.tq=function(a){var b=kfd(a);b.yb(a.Ea().ta(b.getId()));jZ.ya.tq.call(this,a)}; jZ.prototype.Vw=function(a,b,c){jZ.ya.Vw.call(this,a,b,c);switch(c){case "start":On(kfd(a).ta(),!1),On(WY(a).ta(),!0),On(XY(a).ta(),!0)}};
var ifd=function(a,b,c,d){fZ.call(this,b,c||jfd||(jfd=new jZ),d);this.Naa=a};t(ifd,fZ);ifd.prototype.p_=null;var kfd=function(a){return a.p_||(a.p_=new C(a.Ea()))};ifd.prototype.Mqc=function(){return Zc(this.Kf,"form",null,kfd(this).ta())[0]};ifd.prototype.mI=function(){return Zc(this.Kf,"input",null,kfd(this).ta())[0]};ifd.prototype.Qb=function(a){ifd.ya.Qb.call(this,a);this.Naa.mla(kfd(this).ta(),this.getValue());a=this.getHandler();var b=this.mI(),c=Lp(this.Be,this);a.Ja(b,"change",function(){Uf(c)})}; ifd.prototype.Be=function(){this.Nb()&&(UAf(this),this.dispatchEvent("change"))};
var mfd=function(a,b,c){fZ.call(this,a,b,c)};t(mfd,fZ);var rfd=function(a,b,c,d,f,h){Ho.call(this,null,b||iZ.ia(),d);this.mL=new Ze;if(f)this.Ab=f;else if("undefined"!=typeof Hdd&&a instanceof Hdd)this.Ab=function(b,c,f){return"undefined"!=typeof xY&&b instanceof xY?f instanceof bZ?new Ved(a,b,f,c,d):new Yed(a,b,null,f,d):new cfd(null,c,d)};else if("undefined"!=typeof KY&&a instanceof KY)this.Ab=function(a,b){return new mfd(null,b,d)};else if("undefined"!=typeof RY&&a instanceof RY)this.Ab=function(b,c,f){return"undefined"!=typeof xY&&b instanceof xY?
f instanceof bZ?new Ved(a,b,f,c,d):new Yed(a,b,null,f,d):new mfd(null,c,d)};else if("undefined"!=typeof NY&&a instanceof NY)this.Ab=a.Bia?function(a,b){return new fZ(null,b,d)}:function(b,c){return new ifd(a,null,c,d)};else if(a instanceof EY)this.Ab=function(a,b){return new VY(null,b,d)};else throw Error("wg");this.$=a;this.Ag=c||null;this.Km=h||null;Io(this,!1);b=this.getHandler();b.Ja(this.$,"fileadded",function(a){a=a.file;var b=this.Ab(a,this.Ag,this.Km);b.Xo(a);this.ib(b,!0);b.Qb(a);this.mL.set(a.getId(),
b);var c=this.getHandler();c.Ja(b,"removeclicked",this.Op);c.Ja(b,"cancelclicked",this.Ko);c.Ja(b,"retryclicked",this.lp);b=b.Sa;b.tJa()&&this.$.lza(a,b.Tx(),b.Sx(),90,!1);sfd(this)});b.Ja(this.$,"fileremoved",function(a){a=a.file;var b=kZ(this,a);b&&(this.removeChild(b,!0),b.Ma());this.mL.remove(a.getId());sfd(this)});b.Ja(this.$,"uploadstatechanged",this.y2);b.Ja(this.$,"uploadprogress",this.uh);b.Ja(this.$,"uploadmessagechanged",this.Sx);b.Ja(this.$,"filepreviewready",this.Db)};t(rfd,Ho);
rfd.prototype.$b=null;rfd.prototype.mha=ka;var tfd=function(a){return a.$b||(a.$b=new yo("",void 0,a.Ea()))};rfd.prototype.uh=function(a){a=a.file;var b=kZ(this,a.Sa);if(b){var c=b.$,d=b.yQ.get(a.getId(),0),f=a.PB;b.yQ.set(a.getId(),f);c.bxa(c.PB+(f-d));O0e(0,b)}(a=kZ(this,a))&&O0e(0,a)};rfd.prototype.Sx=function(a){var b=a.file,c=kZ(this,b);c?c.Bq(a.message):""!=a.message&&"cancel"!=GY(this.$,b).state&&(c=kZ(this,b.Sa))&&c.kob(b,a.message)};
rfd.prototype.Db=function(a){var b=kZ(this,a.file);b&&b.E6(a.Sa,a.$)};
rfd.prototype.y2=function(a){var b=a.file;a=HY(this.$,b);var c=kZ(this,b);c&&c.Vw(a);if(b=kZ(this,b.Sa)){switch(a){case "inqueue":case "start":case "transfer":b.Vw(a);break;case "success":b.Km++;break;case "cancel":b.lZ!=a&&b.Vw(a);break;case "error":b.Km++,b.lp++}b.Km>=b.$.mL&&(0==b.lp?(b.Vw("success"),IY(b.Sx,b.$,"success")):b.lp==b.Km?(b.Vw("error"),IY(b.Sx,b.$,"error")):(b.Vw("partial-error"),IY(b.Sx,b.$,"partial-error")));UAf(b)}};
var kZ=function(a,b){if(!b)return null;var c=qa(b)?b:b.getId();return a.mL.get(c)};rfd.prototype.Lt=function(){var a=[];He(this,function(b){a.push(b.getValue())});return a};var sfd=function(a){if("undefined"!=typeof NY&&a.$ instanceof NY&&!a.$.Bia){var b=Ge(a);b&&YY(kw(a,0)).eO(a.fL.Pc()+"-hidden",1==b)}};rfd.prototype.Op=function(a){a=a.target.getValue();this.$.Tu(a)};rfd.prototype.Ko=function(a){this.$.Qda(a.target.getValue())};rfd.prototype.lp=function(a){this.$.tca(a.target.getValue())};

G("sy852");I();
}catch(e){_DumpException(e)}
try{
H("sy867");var kX=function(a,b){C.call(this,b);this.Sa=a};t(kX,C);kX.prototype.dh="info";kX.prototype.Ab=!1;var b3c={info:"b-Ff-ee",error:"b-Ff-wa",warning:"b-Ff-Ec",promo:"b-Ff-zb"};q=kX.prototype;q.Ra=function(){return this.dh};q.hd=function(a){this.cb()&&Tn(this.ta(),b3c[this.dh],b3c[a]);this.dh=a};q.setContent=function(a){this.Sa=a;if(a=this.ta()){var b=this.Ea();b.hb(a);b.uv(a,this.Sa)}};q.dc=function(){var a=this.ta();return null!=a&&Sn(a,"b-Ff-Pi")};q.setVisible=function(a){Pn(this.ta(),"b-Ff-Pi",a)};
var Xhg=function(a,b){a.Ab=b;var c=a.ta();c&&Pn(c,"b-Ff-bb",a.Ab)};kX.prototype.Pa=function(){this.Kb(this.Ea().Pa("div","b-Ff"));var a=this.ta();a&&(qo(a,"live","assertive"),qo(a,"atomic","true"));this.setContent(this.Sa);Xhg(this,this.Ab);this.hd(this.dh)};

G("sy867");I();
}catch(e){_DumpException(e)}
try{
var UKd=/^data:image\/(?:bmp|gif|jpe?g|png|tiff|webp);base64,[a-z0-9+\/]+=*$/i;H("sy713");var tH=function(a,b,c){pH.call(this,a,b,c)};t(tH,pH);tH.prototype.Ag=-1;tH.prototype.Zha=function(){var a=tH.ya.Zha.call(this);Pqb(this);return a};tH.prototype.rIa=function(){var a=tH.ya.rIa.call(this);Pqb(this);return a};tH.prototype.oo=function(a,b){tH.ya.oo.call(this,a,b);Pqb(this)};var Pqb=function(a){if(a.Ag!=a.mL){a.Ag=a.mL;var b=qH(a,a.Ag);-1!=b&&a.dispatchEvent({type:"hilite",row:a.$[b]})}};
var Lqb=function(a,b,c){kd.call(this);this.Ab=a;this.mL=!b;this.Sa=new Wf(c)};t(Lqb,kd);q=Lqb.prototype;q.fAb=void 0;q.$0a=null;q.setContent=function(a){this.fAb=a};q.spb=function(a,b,c,d){a=new Af(a);Hf(a,"token",b);Hf(a,"max_matches",String(c));Hf(a,"use_similar",String(Number(d)));return a.toString()};q.PZb=function(){return!0};var Mqb=function(a){var b=[];if(a)try{b=Qf(a)}catch(c){}return b};Lqb.prototype.T3b=function(a,b,c){b(a,Mqb(c.target.Lq()))};
Lqb.prototype.nM=function(a,b,c,d){this.PZb(this.Ab,a,b,this.mL,d)&&(b=this.spb(this.Ab,a,b,this.mL,d))&&(a=Lp(this.T3b,this,a,c),this.Sa.Ad()&&this.Sa.abort(),this.$0a&&Ad(this.$0a),this.$0a=yd(this.Sa,"success",a),this.Sa.send(b,"GET",this.fAb,null))};Lqb.prototype.qb=function(){this.Sa.Ma();Lqb.ya.qb.call(this)};
var Nqb=function(a){Lqb.call(this,"/complete/search");this.DU=a+"-2";this.$b=!1;this.Qb="";this.nn=null};t(Nqb,Lqb);q=Nqb.prototype;q.R$a=20;q.J3a=!1;q.spb=function(a,b,c){this.R$a=c;a=new Af(a);Hf(a,"q",b);Hf(a,"hl","en-US");Hf(a,"ds","cse");Hf(a,"client","partner");Hf(a,"hjson","t");Hf(a,"partnerid",this.DU+"+qptype:3");return a.toString()};q.PZb=function(){return!0};
q.T3b=function(a,b,c){var d=Mqb(c.target.Lq());if(d){c=[];for(var f=d[1],h=this.R$a<f.length?this.R$a:f.length,k=0;k<h;++k)c.push(f[k][2]);f={};d=d[0];d=this.J3a&&d?[new Oqb("",d,"","",!0)]:[];h=0;for(k=c.length;h<k;++h){var m,p=c[h];m=p.a.replace("/","/");var u=p.b,z=p.c,p=p.d.replace("/","/");m=new Oqb(m,u,z,p);m.id in f||(f[m.id]=!0,m&&d.push(m))}this.$=d;this.Qb=a;this.$b&&null!=this.nn&&(this.nn(this.$,this.Qb),this.$b=!1);return b(a,this.$)}};
q.nM=function(a,b,c,d){this.J3a&&this.$&&a&&0<this.$.length&&this.$[0].$&&(this.$[0].name=a,c(a,this.$));Nqb.ya.nM.call(this,a,b,c,d)};q.jY=function(a){this.nn=a};var Oqb=function(a,b,c,d,f){this.id=a;this.name=b;this.pEa=c;this.Rh=d;this.$=!!f};Oqb.prototype.toString=function(){return Ga(this.name)};
var Qqb=function(a){var b=Y,c;a.Rh?(c=String(a.Rh),c=UKd.test(c)?c:"data:image/gif;base64,zSoyz",c='<img class="o-ld-z5" src="'+R(S(Jp(c)))+'" />'):c='<div class="o-ld-z5 o-ld-hka"></div>';return b('<div class="V-x6">'+c+'<div class="o-ld-A5">'+Dn(r(a.name))+"</div>"+(a.pEa?'<div class="Eja">'+Dn(r(a.pEa))+"</div>":"")+'<div style="clear: both"></div></div>')},Rqb=function(a){var b="",c='Search for "'+(Dn(r(a.query))+'"'),b=b+('<div class="V-x6'+(a.className?" "+R(a.className):"")+'"><div class="o-ld-A5">'+ c+"</div></div>");return Y(b)};
var Sqb=function(a){this.ha=V(a)};Sqb.prototype.$=null;Sqb.prototype.UX=function(a,b,c){a=a.data;b=a.pEa;a.$?this.ha.uc(c,Rqb,{query:a.name,className:this.$}):this.ha.uc(c,Qqb,{name:a.name,Rh:0<a.Rh.length?a.Rh:void 0,pEa:b})};var uH=function(a,b,c,d,f){var h=T(a).Ea();C.call(this,h);b=b||"entities";this.Yg=new rH(null,null,f||!1);this.Ab=new Sqb(a);this.Sa=new sH(c||h.La().body,this.Ab);this.Sa.DU=!0;this.Sa.className="o-ld-Su-ld-Uj";this.$=new Nqb(b);x(this,this.$);this.mL=new tH(this.$,this.Sa,this.Yg);this.mL.O_=d||10;x(this,this.mL)};t(uH,C);q=uH.prototype;q.Pa=function(){this.ra(this.Ea().Pa("input"))};q.Di=function(a){return"INPUT"==a.nodeName||"TEXTAREA"==a.nodeName};
q.ra=function(a){uH.ya.ra.call(this,a);Qn(a,"o-ld");this.Yg.jg(a);this.Yg.$=this.mL};q.Na=function(){uH.ya.Na.call(this);var a=this.getHandler();a.Ja(this.mL,"hilite",this.vBc);a.Ja(this.mL,"update",this.dhd)};q.vBc=function(a){this.dispatchEvent({type:"hilite",row:a.row})};q.dhd=function(a){this.dispatchEvent({type:"select",row:a.row})};q.jY=function(a){this.$.jY(a)};q.Wd=function(){this.mL.Ab.Wd()};

G("sy713");I();
}catch(e){_DumpException(e)}
try{
H("sy423");var dIc=function(a,b,c,d){d=d||jc();var f=d.Pa("DIV",{style:"overflow:hidden"});b=d.ta(b);b.parentNode.replaceChild(f,b);f.appendChild(b);this.$b=f;this.$=null;nK.call(this,a,b,c,void 0,d);a=this.Zk();this.$b.style.display=a?"":"none";SHb(this,a)};t(dIc,nK);dIc.prototype.uh=co;
dIc.prototype.uba=function(a){if(this.Zk()!=a||this.$){"none"==this.$b.style.display&&(this.$b.style.display="");var b=this.cb().offsetHeight,c=0;this.$?(a=this.Zk(),Bd(this.$),this.$.stop(!1),c=parseInt(this.cb().style.marginTop,10),c=b-Math.abs(c)):c=a?0:b;SHb(this,a);this.$=new ao([0,c],[0,a?b:0],500,this.uh);ud(this.$,["begin","animate","end"],this.Vb,!1,this);ud(this.$,"end",Lp(this.Vk,this,a));this.$.play(!1)}};
dIc.prototype.Vb=function(a){var b=this.cb();b.style.marginTop=a.y-b.offsetHeight+"px"};dIc.prototype.Vk=function(a){a&&(this.cb().style.marginTop="0");Bd(this.$);this.Ab=a;this.$=null;a||(this.$b.style.display="none");this.dispatchEvent(new THb("toggle",this,a))};

G("sy423");I();
}catch(e){_DumpException(e)}
try{
H("sy805");var rWd=function(a){kd.call(this);this.wb=a||jc();this.$={}};t(rWd,kd);rWd.prototype.qb=function(){Pb(this.$,this.wb.removeNode,this.wb);this.wb=this.$=null;rWd.ya.qb.call(this)};rWd.prototype.Sa=function(a,b){var c=A1e(this,b||"polite");Rc(c,"");Uf(function(){Rc(c,a)},1)};
var A1e=function(a,b){var c=a.$[b];if(c)return IUa(c,"hidden"),c;c=a.wb.createElement("DIV");c.style.position="absolute";c.style.top="-1000px";c.style.height="1px";c.style.overflow="hidden";qo(c,"live",b);qo(c,"atomic","true");a.wb.La().body.appendChild(c);return a.$[b]=c};

G("sy805");I();
}catch(e){_DumpException(e)}
try{
H("sy876");var e4=function(a,b,c){C.call(this,c);this.Sa=b||ohg;this.Qb=a instanceof y7a?a:tk(a,null)};t(e4,C);var RSd={};q=e4.prototype;q.Zd=!1;q.qsa=!1;q.pCb=M7a;q.b5=!0;q.eEa=-1;q.qb=function(){e4.ya.qb.call(this);this.mL&&(this.mL.removeNode(this),this.mL=null);this.Kb(null)};
q.IIa=function(){var a=this.ta();if(a){var b=ESd(this);b&&!b.id&&(b.id=this.getId()+".label");po(a,"treeitem");qo(a,"selected",!1);qo(a,"expanded",!1);qo(a,"level",this.f4());b&&qo(a,"labelledby",b.id);(a=this.iHa())&&po(a,"presentation");(a=this.gGa())&&po(a,"presentation");if(a=g4(this))if(po(a,"group"),a.hasChildNodes())for(a=Ge(this),b=1;b<=a;b++){var c=kw(this,b-1).ta();qo(c,"setsize",a);qo(c,"posinset",b)}}};
q.Pa=function(){var a,b=this.Ea();a=this.Yqa();var b=b.$,c=b.createElement("DIV");xc?(oNa(c,ydg(Bdg("br"),a)),c.removeChild(c.firstChild)):oNa(c,a);a=J6a(b,c);this.Kb(a)};q.Na=function(){e4.ya.Na.call(this);RSd[this.getId()]=this;this.IIa()};q.Ib=function(){e4.ya.Ib.call(this);delete RSd[this.getId()]};
q.Zj=function(a,b){var c=kw(this,b-1),d=kw(this,b);e4.ya.Zj.call(this,a,b);a.Ab=c;a.yH=d;c?c.yH=a:this.Km=a;d?d.Ab=a:this.Op=a;var f=this.jx();f&&FSd(a,f);wSd(a,this.f4()+1);if(this.ta()&&(this.Fda(),this.WA())){f=g4(this);a.ta()||a.Pa();var h=a.ta(),k=d&&d.ta();f.insertBefore(h,k);this.Nb()&&a.Na();d||(c?c.Fda():(On(f,!0),this.bX(this.WA())))}};q.add=function(a,b){a.getParent()&&a.getParent().removeChild(a);this.Zj(a,b?this.Af(b):Ge(this));return a};
q.removeChild=function(a){var b=this.jx(),c=b?b.$e():null;if(c==a||a.contains(c))b.hasFocus()?(this.select(),Uf(this.sZc,10,this)):this.select();e4.ya.removeChild.call(this,a);this.Op==a&&(this.Op=a.Ab);this.Km==a&&(this.Km=a.yH);a.Ab&&(a.Ab.yH=a.yH);a.yH&&(a.yH.Ab=a.Ab);c=!a.yH;a.mL=null;a.eEa=-1;if(b&&(b.removeNode(this),this.Nb())){b=g4(this);if(a.Nb()){var d=a.ta();b.removeChild(d);a.Ib()}c&&(c=kw(this,Ge(this)-1))&&c.Fda();Fe(this)||(b.style.display="none",this.Fda(),this.iHa().className=this.Zqa())}return a};
q.remove=e4.prototype.removeChild;q.sZc=function(){this.select()};q.f4=function(){var a=this.eEa;0>a&&(a=(a=this.getParent())?a.f4()+1:0,wSd(this,a));return a};var wSd=function(a,b){if(b!=a.eEa){a.eEa=b;var c=f4(a);if(c){var d=s2e(a)+"px";ph(a)?c.style.paddingRight=d:c.style.paddingLeft=d}He(a,function(a){wSd(a,b+1)})}};e4.prototype.contains=function(a){for(;a;){if(a==this)return!0;a=a.getParent()}return!1};var $lg=function(a){var b=[];He(a,function(a){b.push(a)});return b};e4.prototype.Sf=function(){return this.Zd};
e4.prototype.select=function(){var a=this.jx();a&&a.jn(this)};var xSd=function(a,b){if(a.Zd!=b){a.Zd=b;ySd(a);var c=a.ta();c&&(qo(c,"selected",b),b&&(c=a.jx().ta(),qo(c,"activedescendant",a.getId())))}};q=e4.prototype;q.WA=function(){return this.qsa};
q.bX=function(a){var b=a!=this.qsa;if(!b||this.dispatchEvent(a?"beforeexpand":"beforecollapse")){var c;this.qsa=a;c=this.jx();var d=this.ta();if(Fe(this)){if(!a&&c&&this.contains(c.$e())&&this.select(),d){if(c=g4(this))if(On(c,a),a&&this.Nb()&&!c.hasChildNodes()){var f=[];He(this,function(a){f.push(a.Yqa())});oNa(c,ydg(f));He(this,function(a){a.Na()})}this.Fda()}}else(c=g4(this))&&On(c,!1);d&&(this.iHa().className=this.Zqa(),qo(d,"expanded",a));b&&this.dispatchEvent(a?"expand":"collapse")}};
q.toggle=function(){this.bX(!this.WA())};q.expand=function(){this.bX(!0)};q.collapse=function(){this.bX(!1)};q.jcb=function(){var a=this.getParent();a&&(a.bX(!0),a.jcb())};q.Yqa=function(){var a=this.jx(),b=!a.Pya||a==this.getParent()&&!a.Wya?this.Sa.bsb:this.Sa.asb,a=this.WA()&&Fe(this),b={"class":b,style:Ipg(this)},c=[];a&&He(this,function(a){c.push(a.Yqa())});a=Bdg("div",b,c);return Bdg("div",{"class":this.Sa.dXa,id:this.getId()},[this.jBb(),a])};
var s2e=function(a){return Math.max(0,(a.f4()-1)*a.Sa.FIa)};e4.prototype.jBb=function(){var a={};a["padding-"+(ph(this)?"right":"left")]=s2e(this)+"px";var a={"class":this.u4(),style:a},b=[this.O0a(),Mdg(this),Ndg(this)];return Bdg("div",a,b)};e4.prototype.u4=function(){var a;a=this.Sf()?" "+this.Sa.Mic:"";return this.Sa.Nic+a};
var Ndg=function(a){var b=Bdg("span",{"class":a.Sa.eXa,title:null},a.Qb);return ydg(b,Bdg("span",{},a.pCb))},Mdg=function(a){return Bdg("span",{style:{display:"inline-block"},"class":a.Zqa()})};e4.prototype.O0a=function(){return Bdg("span",{type:"expand",style:{display:"inline-block"},"class":DSd(this)})};
var DSd=function(a){var b=a.jx(),b=!b.Pya||b==a.getParent()&&!b.Wya,c=a.Sa,d=new li;d.fc(c.wfa," ",c.Eic," ");if(Fe(a)){var f=0;a.b5&&(f=a.WA()?2:1);b||(f=a.yH?f+8:f+4);switch(f){case 1:d.fc(c.hsb);break;case 2:d.fc(c.gsb);break;case 4:d.fc(c.fsb);break;case 5:d.fc(c.Gic);break;case 6:d.fc(c.Fic);break;case 8:d.fc(c.isb);break;case 9:d.fc(c.Iic);break;case 10:d.fc(c.Hic);break;default:d.fc(c.KDa)}}else b?d.fc(c.KDa):a.yH?d.fc(c.isb):d.fc(c.fsb);return d.toString()},Ipg=function(a){var b=a.WA()&&Fe(a);
return Zlg({"background-position":amg(a),display:b?null:"none"})},amg=function(a){return(a.yH?(a.f4()-1)*a.Sa.FIa:"-100")+"px 0"};e4.prototype.ta=function(){var a=e4.ya.ta.call(this);a||(a=this.Ea().ta(this.getId()),this.Kb(a));return a};var f4=function(a){return(a=a.ta())?a.firstChild:null};e4.prototype.gGa=function(){var a=f4(this);return a?a.firstChild:null};e4.prototype.iHa=function(){var a=f4(this);return a?a.childNodes[1]:null};
var ESd=function(a){return(a=f4(a))&&a.lastChild?a.lastChild.previousSibling:null},g4=function(a){return(a=a.ta())?a.lastChild:null};e4.prototype.Iq=function(){return this.Sx};e4.prototype.Lo=function(a){DGg(this,Hua(a))};var DGg=function(a,b){a.Qb=b;var c=ESd(a);c&&oNa(c,b);(c=a.jx())&&VPb(c.Sza,a)};e4.prototype.IK=function(){return I7a(this.Qb)};var ySd=function(a){var b=f4(a);b&&(b.className=a.u4())};q=e4.prototype;
q.Fda=function(){var a=this.gGa();a&&(a.className=DSd(this));if(a=g4(this))a.style.backgroundPosition=amg(this)};q.yda=function(a){"expand"==a.target.getAttribute("type")&&Fe(this)?this.b5&&this.toggle():(this.select(),ySd(this))};q.xtc=Hba;q.$7a=function(a){"expand"==a.target.getAttribute("type")&&Fe(this)||this.b5&&this.toggle()};q.Fga=function(){return this.WA()&&Fe(this)?kw(this,Ge(this)-1).Fga():this};
q.tGa=function(){if(Fe(this)&&this.WA())return kw(this,0);for(var a=this,b;a!=this.jx();){b=a.yH;if(null!=b)return b;a=a.getParent()}return null};q.xGa=function(){var a=this.Ab;if(null!=a)return a.Fga();var a=this.getParent(),b=this.jx();return!b.S1&&a==b||this==b?null:a};q.hB=e4.prototype.kc;q.rd=function(){return this.Sa};
var FSd=function(a,b){a.mL!=b&&(a.mL=b,VPb(b.Sza,a),He(a,function(a){FSd(a,b)}))},ohg={FIa:19,Kic:"d-rb-Cc d-rb-sc",Jic:"d-rb-Ge-Cc",dXa:"d-rb-sc",asb:"d-rb-aka",bsb:"d-rb-aka-BVa",Nic:"d-rb-fd",eXa:"d-rb-sc-ka",wfa:"d-rb-m",Eic:"d-rb-bg-m",hsb:"d-rb-bg-m-Bk",gsb:"d-rb-bg-m-Ema",Iic:"d-rb-bg-m-Coa",Hic:"d-rb-bg-m-Boa",Gic:"d-rb-bg-m-Dma",Fic:"d-rb-bg-m-Cma",isb:"d-rb-bg-m-N1a",fsb:"d-rb-bg-m-wVa",KDa:"d-rb-bg-m-wr",jsb:"d-rb-gu-pk-m",dsb:"d-rb-Fl-pk-m",LDa:"d-rb-We-m",ksb:"d-rb-gu-pk-m",esb:"d-rb-Fl-pk-m", Mic:"L"};
var h4=function(a,b,c){e4.call(this,a,b,c)};t(h4,e4);h4.prototype.jx=function(){if(this.mL)return this.mL;var a=this.getParent();return a&&(a=a.jx())?(FSd(this,a),a):null};h4.prototype.Zqa=function(){var a=this.WA(),b=this.lp;if(a&&b)return b;b=this.Iq();if(!a&&b)return b;b=this.rd();if(Fe(this)){if(a&&b.jsb)return b.wfa+" "+b.jsb;if(!a&&b.dsb)return b.wfa+" "+b.dsb}else if(b.LDa)return b.wfa+" "+b.LDa;return""};
var KSd=function(){this.$=new GSd};q=KSd.prototype;q.fS="";q.F6a=null;q.mKa=null;q.uua=0;q.fja=0;var VPb=function(a,b){var c=si(I7a(b.Qb));if(c&&!Ea(Ga(c))){var c=c.toLowerCase(),d=a.$.get(c);d?d.push(b):a.$.set(c,[b])}},LSd=function(a,b){var c=!1,d=a.$.ii(b);d&&d.length&&(a.fja=0,a.uua=0,c=a.$.get(d[0]),c=MSd(a,c))&&(a.F6a=d);return c},MSd=function(a,b){var c;b&&(a.fja<b.length&&(c=b[a.fja],a.mKa=b),c&&(c.jcb(),c.select()));return!!c};KSd.prototype.clear=function(){this.fS=""};
var i4=function(a,b,c){e4.call(this,a,b,c);this.qsa=!0;xSd(this,!0);this.$=this;this.Sza=new KSd;if(xc)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}};t(i4,e4);q=i4.prototype;q.d1a=null;q.QQ=null;q.BZa=!1;q.Pya=!0;q.S1=!0;q.Wya=!0;q.jx=function(){return this};q.f4=function(){return 0};q.jcb=function(){};q.ztc=function(){this.BZa=!0;Qn(this.ta(),"eb");this.$&&this.$.select()};q.ytc=function(){this.BZa=!1;Rn(this.ta(),"eb")};q.hasFocus=function(){return this.BZa};
q.WA=function(){return!this.S1||i4.ya.WA.call(this)};q.bX=function(a){this.S1?i4.ya.bX.call(this,a):this.qsa=a};q.O0a=function(){return M7a};q.iHa=function(){var a=f4(this);return a?a.firstChild:null};q.gGa=function(){return null};q.Fda=function(){};q.u4=function(){return i4.ya.u4.call(this)+(this.S1?"":" "+this.rd().Jic)};q.Zqa=function(){var a=this.WA(),b=this.lp;if(a&&b)return b;b=this.Iq();if(!a&&b)return b;b=this.rd();return a&&b.ksb?b.wfa+" "+b.ksb:!a&&b.esb?b.wfa+" "+b.esb:""};
q.jn=function(a){if(this.$!=a){var b=!1;this.$&&(b=null==this.$,xSd(this.$,!1));if(this.$=a)xSd(a,!0),b&&a.select();this.dispatchEvent("change")}};q.$e=function(){return this.$};var NSd=function(a){if(0!=a.S1){a.S1=!1;if(a.Nb()){var b=f4(a);b&&(b.className=a.u4())}a.$e()==a&&kw(a,0)&&a.jn(kw(a,0))}};q=i4.prototype;q.IIa=function(){i4.ya.IIa.call(this);var a=this.ta();po(a,"tree");qo(a,"labelledby",ESd(this).id)};
q.Na=function(){i4.ya.Na.call(this);var a=this.ta();a.className=this.rd().Kic;a.setAttribute("hideFocus","true");a=this.ta();a.tabIndex=0;var b=this.d1a=new ro(a),c=this.QQ=new hx(a);this.getHandler().Ja(c,"focusout",this.ytc).Ja(c,"focusin",this.ztc).Ja(b,"key",this.Qo).Ja(a,"mousedown",this.c1a).Ja(a,"click",this.c1a).Ja(a,"dblclick",this.c1a);this.IIa()};q.Ib=function(){i4.ya.Ib.call(this);this.d1a.Ma();this.d1a=null;this.QQ.Ma();this.QQ=null};
q.c1a=function(a){var b;a:{b=null;for(var c=a.target;null!=c;){if(b=RSd[c.id])break a;if(c==this.ta())break;c=c.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.yda(a);break;case "click":b.xtc(a);break;case "dblclick":b.$7a(a)}};
q.Qo=function(a){var b=!1,b=this.Sza,c=!1;switch(a.keyCode){case 40:case 38:if(a.ctrlKey){var c=40==a.keyCode?1:-1,d=b.F6a;if(d){var f=null,h=!1;if(b.mKa){var k=b.fja+c;0<=k&&k<b.mKa.length?(b.fja=k,f=b.mKa):h=!0}f||(k=b.uua+c,0<=k&&k<d.length&&(b.uua=k),d.length>b.uua&&(f=b.$.get(d[b.uua])),f&&f.length&&h&&(b.fja=-1==c?f.length-1:0));MSd(b,f)&&(b.F6a=d)}c=!0}break;case 8:d=b.fS.length-1;c=!0;0<d?(b.fS=b.fS.substring(0,d),LSd(b,b.fS)):0==d?b.fS="":c=!1;break;case 27:b.fS="",c=!0}if(!(b=c)&&(b=this.$)){b=
this.$;c=!0;switch(a.keyCode){case 39:if(a.altKey)break;Fe(b)&&(b.WA()?kw(b,0).select():b.bX(!0));break;case 37:if(a.altKey)break;Fe(b)&&b.WA()&&b.b5?b.bX(!1):(d=b.getParent(),f=b.jx(),d&&(f.S1||d!=f)&&d.select());break;case 40:(d=b.tGa())&&d.select();break;case 38:(d=b.xGa())&&d.select();break;default:c=!1}c&&(a.preventDefault(),(f=b.jx())&&f.Sza.clear());b=c}b||(b=this.Sza,c=!1,a.ctrlKey||a.altKey||(d=String.fromCharCode(a.charCode||a.keyCode).toLowerCase(),(1==d.length&&" "<=d&&"~">=d||"\u0080"<= d&&"\ufffd">=d)&&(" "!=d||b.fS)&&(b.fS+=d,c=LSd(b,b.fS))),b=c);b&&a.preventDefault();return b};q.removeNode=function(a){var b=this.Sza,c=si(I7a(a.Qb));if(c&&!Ea(Ga(c))){var c=c.toLowerCase(),d=b.$.get(c);d&&(mb(d,a),d.length&&b.$.remove(c))}};

G("sy876");I();
}catch(e){_DumpException(e)}
try{
H("sy873");var bVd=function(a,b,c,d){C3.call(this,a,b,c,d)};t(bVd,C3);bVd.prototype.Na=function(){bVd.ya.Na.call(this);var a=this.Sa.Ag(this);this.getHandler().Ja(a,"mouseover",Lp(this.mL,this,!0)).Ja(a,"mouseout",Lp(this.mL,this,!1))};bVd.prototype.mL=function(a,b){qe(b.target,a?.8:.5)};

G("sy873");I();
}catch(e){_DumpException(e)}
try{
H("sy879");var mVd=function(a,b,c,d,f,h){h=h||{};b={id:b,width:d,height:f};xc?h.movie=a:b.data=a;a=mc(c);c=jc(a);if(xc&&Gf("9")){d=new li("<object ");for(var k in b)d.fc(La(k),'="',La(b[k]),'" ');d.fc(">");for(k in h)d.fc('<param name="',La(k),'" value="',La(h[k]),'">');d.fc("</object>");k=c.Pa("div");c.appendChild(a,k);k.outerHTML=d.toString()}else{b=c.Pa("object",b);for(k in h)c.appendChild(b,c.Pa("param",{name:k,value:h[k]}));c.appendChild(a,b)}},nVd=function(a,b){var c=b.ta(a);xc&&ea?(On(c,!1),(new mCc(Lp(oVd, void 0,c,b))).start(50,1E4)):b.removeNode(c)},oVd=function(a,b){return 4==a.readyState?(Pb(a,function(b){try{ta(a[b])&&(a[b]=null)}catch(d){}}),b.removeNode(a),!0):!1};

G("sy879");I();
}catch(e){_DumpException(e)}
try{
E.prototype.dw=g(186,function(a,b){var c=this.$[a];c.CKb()?b.By(this.$b):(hea(this,a,c,!1,b),iea(this,a)||jea(this,[a]))});var eVd=function(a,b){var c=new ag;window.setTimeout(Lp(a.dw,a,b,c),0)};H("sy880");var A4=function(a,b,c,d){y4.call(this,a,b,void 0,void 0,d);this.Naa=!1;this.message=c};t(A4,y4);A4.prototype.Pa=function(){A4.ya.Pa.call(this);this.EFa(this.message)};A4.prototype.Na=function(){A4.ya.Na.call(this);Qn(this.ta(),"a-qka")};A4.prototype.vB=function(){};

G("sy880");I();
}catch(e){_DumpException(e)}
try{
var AHc=function(a){a.Ck()?(a=Rs(a.$),a=w(a,2)):a=null;return a},P7b=function(a){a=a||{};return Y("<span>"+Dn(r(a.match))+"</span>")};H("sy742");var XO=function(a,b,c,d,f,h,k,m,p,u){kd.call(this);this.Ab=new YO(Q7b(a,b,c,u||(d?"es-people-picker":f?"es-invite":"es-sharebox-search"),"es_profiles",h,m),p);x(this,this.Ab);this.Sa=new YO(Q7b(a,b,c,"es-plusprefix","",h,m),p);x(this,this.Sa);a=new Af(a);Hf(a,"news","t");Hf(a,"fresh","o");Hf(a,"hl","en-US");Hf(a,"types","f");Hf(a,"nolabels","t");Hf(a,"nav","f");Hf(a,"ids","f");Hf(a,"hjson","t");Hf(a,"spell","t");Hf(a,"client","sparks");this.$=new YO(a,p);x(this,this.$);this.mL=!!k};t(XO,kd);
var U7b={wF:"a",Ana:"b",LOCATION:"c",DQ:"d",yBa:"e",vF:"f",hN:"g",kna:"h",g9b:"i",Nna:"j",pSa:"k",c8b:"l",N2b:"r",AHa:"s"},V7b={wF:"a",Ana:"b",LOCATION:"c",DQ:"d",yBa:"e",vF:"f",hN:"g",L9b:"h",JSa:"i",kna:"j",Nac:"k",hna:"l",Nna:"m",pSa:"n",c8b:"o"};
XO.prototype.vx=function(a,b,c){var d;d="+"!=a.charAt(0)?S7b(this.Ab,a,b):S7b(this.Sa,"+"+a,b);b=this.mL?S7b(this.$,a,b):jg([]);bg(fq([d,b]).addCallback(function(b){var d=zg(b[0],Lp(this.$b,this,a),this),d=a4c(d);b=zg(b[1],Lp(this.Qb,this,a),this);d=ec(rb(d,b),na);c(a,d)},this),function(){c(a,[])})};
var a4c=function(a){var b=[],c={};v(a,function(a){if(a){var f=a.Oc(),h=f&&f.getId()&&f.getId().P9();if(h){var k=c[h],m=sa(k)&&b[k]&&b[k].Oc();if(!m||!m.nj()&&f.nj())f=c[h]=sa(k)?k:b.length,b[f]=a}else b.push(a)}});return b};
XO.prototype.$b=function(a,b){var c;if(!b[3])return null;var d=b[1],f;switch(d){case 44:f=U7b;break;case 45:f=V7b;break;default:return hh(Error("je`"+d)),null}c=b[3];c[f.hna]||(c[f.hna]=b[0]);"0"==c[f.wF]&&delete c[f.wF];var h=c[f.N2b],k=c[f.AHa];if(null==h&&!k&&!c[f.wF]&&!c[f.vF])return c=Error("qd`"+Rf(b)),hh(c),null;var m;m=c[f.wF]||c[f.vF]?ss(c[f.wF],c[f.vF]):new yk;var p=new Ck;Py(p,8,null!=h);Py(p,18,[h]);m.wla(h);Py(m,6,k);k=c[f.Ana];!k&&h&&(k="//ssl.gstatic.com/s2/oz/images/sge/grey_silhouette.png");
Py(p,9,k);h=si(c[f.hna]);tB(p,h);Py(p,11,"1"==c[f.kna]);Py(p,12,c[f.LOCATION]);"student"==c[f.yBa]?Py(p,13,c[f.DQ]):Py(p,14,c[f.DQ]);Py(p,17,!!c[f.hN]);45==d&&(d=new Dk,c[f.JSa]&&Py(d,5,c[f.JSa]),Lg(p,19,d));Py(p,30,!!c[f.pSa]&&"1"==c[f.pSa]);4==c[f.Nna]&&Py(p,21,!0);c=new yB(m,p);f=eb(b[2],39);c.Nea=f?"p":"g";return new aN(a,c)};XO.prototype.Qb=function(a,b,c){a=b[0];if(!a)return null;a=si(a);c=0==c;b=Y("Searches").toString();return MYb(new aN(a,null,null,P7b,!1),c,b)};
var Q7b=function(a,b,c,d,f,h,k){a=new Af(a);Hf(a,"client",d);"es-sharebox-search"!=d&&"es-people-picker"!=d&&"es-webmentions"!=d&&(Hf(a,"ds",f),Hf(a,"partnerid","es-profiles"));Hf(a,"tok",b());Hf(a,"authuser",c);Hf(a,"xhr","t");h&&Hf(a,"dtok",h);k&&Hf(a,"sugexp",k);return a},YO=function(a,b){kd.call(this);this.DU=a;this.mL=b||250;this.Ab=new Wf};t(YO,kd);YO.prototype.Sa="";YO.prototype.Qb=0;YO.prototype.$=null;YO.prototype.$b=0;
var R7b=function(a){a.Ab.Ad()&&a.Ab.abort();null!=a.$&&(Ad(a.$),a.$=null)},S7b=function(a,b,c,d){a.Sa=b;ia(d)||(a.Qb=0);a.$b=c;b=new ag;d=d||a.mL;R7b(a);Uf(Lp(a.jg,a,a.Sa,b),d);return b};YO.prototype.jg=function(a,b){if(a!=this.Sa)b.cancel();else{R7b(this);this.Qb++;this.$=yd(this.Ab,["success","error","timeout"],Lp(this.Ag,this,this.Sa,b));var c=Hf(this.DU.clone(),"q",PYb(this.Sa));this.Ab.send(c,"GET")}};
YO.prototype.Ag=function(a,b,c){if("success"!=c.type)b.jl||b.By([]);else if(a==this.Sa){a=c.target.Lq();try{var d=Qf(a),f=d[2];this.mL=parseInt(f.p,10)||this.mL;if(ia(f.l)&&5>this.Qb){var h=this.mL*Math.min(this.Qb,3);eg(S7b(this,this.Sa,this.$b,h),b)}else b.By(d[1])}catch(k){Qda("le`"+a,k),b.By([])}}};YO.prototype.qb=function(){this.Ab.Ma();this.$&&(Ad(this.$),this.$=null);YO.ya.qb.call(this)};

G("sy742");I();
}catch(e){_DumpException(e)}
try{
H("sy881");var n8b=function(a){var b="";a='Add "'+(Dn(r(a.q))+'" by email.');return Y(b+a)},o8b=function(){return Y("Or add a new person by email address.")},p8b=function(){return Y("Please enter a valid email address.")},q8b=function(){return Y("Find by name or email.")},r8b=function(){return Y("No matching people found.")},s8b=function(){return Y("Enter an email address instead.")};
var ZO=function(){};ZO.prototype.$=function(a,b){a=PYb(a);var c,d;if(yE(a)){a:{c=Ia(a.toLowerCase());for(d=0;d<b.length;d++){var f=b[d].Oc();if(f&&f.yc().toLowerCase()==c){c=!0;break a}}c=!1}if(c)return[];c=n8b;d=!1}else if(0<b.length)c=o8b,d=!0;else if(Ea(Ga(a)))c=q8b,d=!0;else if(0<=a.indexOf("@"))c=p8b,d=!0;else return c=new aN(a,null,null,r8b,!0),d=new aN(a,null,null,s8b,!0),MYb(d,!0),[c,d];return[new aN(a,null,null,c,d)]};

G("sy881");I();
}catch(e){_DumpException(e)}
try{
H("sy419");var rJ=function(){Wn.call(this);this.queue=[]};t(rJ,Wn);rJ.prototype.add=function(a){eb(this.queue,a)||(this.queue.push(a),ud(a,"finish",this.Sa,!1,this))};rJ.prototype.remove=function(a){mb(this.queue,a)&&zd(a,"finish",this.Sa,!1,this)};rJ.prototype.qb=function(){v(this.queue,function(a){a.Ma()});this.queue.length=0;rJ.ya.qb.call(this)};var sJ=function(){rJ.call(this);this.$=0};t(sJ,rJ);
sJ.prototype.play=function(a){if(0==this.queue.length)return!1;if(a||0==this.Sb)this.$=0,this.Mv();else if(this.rB())return!1;this.VH("play");-1==this.Sb&&this.VH("resume");var b=-1==this.Sb&&!a;this.startTime=Wa();this.endTime=null;this.Sb=1;v(this.queue,function(c){b&&-1!=c.Sb||c.play(a)});return!0};sJ.prototype.pause=function(){this.rB()&&(v(this.queue,function(a){a.rB()&&a.pause()}),this.Sb=-1,this.VH("pause"))}; sJ.prototype.stop=function(a){v(this.queue,function(b){0==b.Sb||b.stop(a)});this.Sb=0;this.endTime=Wa();this.iva();this.Pj()};sJ.prototype.Sa=function(){this.$++;this.$==this.queue.length&&(this.endTime=Wa(),this.Sb=0,this.YQ(),this.Pj())};

G("sy419");I();
}catch(e){_DumpException(e)}
try{
H("sy686");var mR=function(a){kd.call(this);this.$=a;this.Ba=new Hd(this);this.Ba.Ja(a,"highlight",this.wXc);this.Ba.Ja(a,"enter",this.SWc);this.Ba.Ja(a,"aftershow",this.IMb);this.Ba.Ja(a,"hide",this.Ysc);Sjc(this,!0)};t(mR,kd);q=mR.prototype;q.$ta=null;q.Gcb=null;q.VW=!1;q.SWc=function(a){this.VW?a.preventDefault():this.$ta=a.target};q.wXc=function(){Sjc(this)};q.IMb=function(){null!=this.Gcb?(this.$.ta().scrollTop=this.Gcb,Sjc(this,!1)):Sjc(this,!0)};
q.Ysc=function(a){a.target==this.$&&(this.$ta=null,this.Gcb=this.$.ta().scrollTop)};var Sjc=function(a,b){var c=Jo(a.$);if(a.$.dc()&&c&&c!=a.$ta){var d=a.$.ta();fe(c.ta(),d,b);Tjc(a);a.$ta=null}},Tjc=function(a){a.VW=!0;Uf(function(){this.VW=!1},0,a)};mR.prototype.qb=function(){mR.ya.qb.call(this);this.Ba.Ma();this.$ta=null};

G("sy686");I();
}catch(e){_DumpException(e)}
try{
var G2d=function(a){!a.mL&&a.getAttribute("tpp")&&(a.mL=new yr(Qf(a.getAttribute("tpp"))));return a.mL};H("sy857");var T3=function(a,b){var c=b;c||(c=a?jc(a):jc());C.call(this,c);this.wb=c;this.$=null;a&&this.yN(a)};t(T3,C);q=T3.prototype;q.yN=function(a){this.$&&this.Owa();this.$=a};q.Owa=function(){this.$=null};q.Ea=function(){return this.wb};q.pT=ka;q.jL=ka;q.cJa=Gx;q.reset=ka;
var FRd=function(a,b,c){A.call(this,"Di",c);this.Sa=b;this.$=a};t(FRd,A);FRd.prototype.Cg=function(){return this.Sa};var HRd=function(){f0.call(this)};t(HRd,f0);la(HRd);HRd.prototype.Pa=function(a){var b=a.Ea();a=b.Pa("div",this.ZGa(a).join(" "));var c=b.Pa("div","a-ga-F-Ab-OG-Ta");a.appendChild(c);b=b.Pa("div","a-ga-F-Ab-Z");a.appendChild(b);a.container=b;return a};HRd.prototype.cb=function(a){return a.container};HRd.prototype.Pc=function(){return"a-ga-F-Ab"};
var IRd=function(){f0.call(this)};t(IRd,f0);la(IRd);IRd.prototype.Pc=function(){return"a-ga-F"};var U3=function(a,b,c){A.call(this,"Ei",c);this.Sa=a;this.$=b};t(U3,A);var NRd=function(a,b,c){A.call(this,"Fi",c);this.Sa=a;this.$=b};t(NRd,A);var V3=function(a,b){T3.call(this,a,b);this.Ba=new Hd(this);x(this,this.Ba);this.Sa=new Sf(10);this.Ba.Ja(this.Sa,"tick",this.Njd)};t(V3,T3);q=V3.prototype;q.Cab=!0;q.xH=0;q.rO=0;q.yN=function(a){V3.ya.yN.call(this,a);this.xH=this.rO=a=R3(a,!1,!1)};q.Owa=function(){var a=this.$;R3(a,!1,!1);this.Sa.enabled&&(ERd(a,this.xH),this.Sa.stop(),this.dispatchEvent(new U3(this.rO,this.xH)));V3.ya.Owa.call(this)};q.cJa=function(){return xc&&Gf("6")||gc&&Gf("10.5")||xd&&Gf("525")||wd&&Gf("1.9.1")};
q.pT=function(a){V3.ya.pT.call(this,a);if(!this.Sa.enabled){var b=0,c=R3(this.$,!1,!1);"editbar-rotate-left"==a?(this.Cab=!0,b=c-90):(b=c+90,this.Cab=!1);this.xH=BRd(b);xc&&!Gf(9)?(this.rO=c,ERd(this.$,this.xH),a=new U3(this.rO,this.xH),this.dispatchEvent(a)):(this.rO=c,a=new NRd(this.rO,this.xH),this.dispatchEvent(a),this.Sa.start())}};q.jL=function(a){V3.ya.jL.call(this,a);a.setAttribute("r",this.xH/90)}; q.Njd=function(){var a=this.$,b=R3(a,!1,!1)+(this.Cab?-5:5),b=BRd(b);ERd(a,b);b==this.xH&&(this.Sa.stop(),this.dispatchEvent(new U3(this.rO,b)))};q.reset=function(){ERd(this.$,0);this.xH=this.rO=0};
var ORd=function(a,b,c){std.call(this,c?HRd.ia():IRd.ia(),b?"vertical":"horizontal",a);this.Ab=!!c;this.$b=My.Bo();this.mL=new df};t(ORd,std);var TRd=new Kb(25,22),Jlg=function(a,b,c){if(c.cJa()&&!a.Ge(b)){var d=a.uh(b);a.ib(d,!0);d.Dc(b);d.setVisible(a.dc());d.Ta(!0);a.getHandler().Ja(d,"action",Lp(c.pT,c,b));a.mL.add(c)}};
ORd.prototype.uh=function(a){var b,c,d;switch(a){case "editbar-delete":b="Delete";c=this.Ab?"a-n-F-Zc-Gj":"a-n-F-ji-Gj";d="a-n-m-D-Ah-Zc";break;case "editbar-rotate-left":b="Rotate left";c=this.Ab?"a-n-F-Zc-hc-gk":"a-n-F-ji-hc-gk";d="a-n-m-hc-ya-Zc";break;case "editbar-rotate-right":b="Rotate right",c=this.Ab?"a-n-F-Zc-hc-hk":"a-n-F-ji-hc-hk",d="a-n-m-hc-Ja-Zc"}a=this.Ea();c=new utd(a.Pa("div","u2a",a.Pa("div",c,void 0),a.Pa("div",d,void 0)),void 0,a);c.Sn(b);return c};
var QRd=function(a){var b=new V3(a.$,a.Ea());Jlg(a,"editbar-rotate-left",b);Jlg(a,"editbar-rotate-right",b);a.getHandler().Ja(b,"Fi",a.Ag);a.getHandler().Ja(b,"Ei",a.Ag)};ORd.prototype.yN=function(a,b){this.$!=a&&(this.$&&RRd(this),this.$=a,Pe(this.mL.Rc(),function(b){b.yN(a)},this),He(this,function(a){var d=a.getId();a.setVisible(!("editbar-rotate-left"==d||"editbar-rotate-right"==d)||b)},this),this.getHandler().Ja(this.$,"load",this.resize),this.resize(),this.setVisible(!0))};
var RRd=function(a){a.$&&a.getHandler().nb(a.$,"load",a.resize);He(a,function(a){a.setVisible(!1)},a);a.$=void 0;a.setVisible(!1)};ORd.prototype.Na=function(){ORd.ya.Na.call(this);Qn(this.ta(),"a-ga-F");this.$b?this.cb().align="left":this.cb().align="right"};ORd.prototype.jL=function(a){Pe(this.mL.Rc(),function(b){b.jL(a)},this)};ORd.prototype.Ag=function(a){switch(a.type){case "Ei":this.setVisible(!0);this.resize();break;case "TE":case "Fi":this.setVisible(!1)}this.dispatchEvent(a)};
ORd.prototype.resize=function(){this.ta()&&("horizontal"==this.tI?le(this.ta(),SRd(this).width,TRd.height):me(this.ta(),TRd.width),this.Wd())};var SRd=function(a){var b;(b=a.Ea().Rm(a.$,"a-J-e-hh"))||(b=a.$);return zRd(b,a.ta().parentNode)};
ORd.prototype.Wd=function(){var a=this.ta(),b=zy(a),c=SRd(this);"horizontal"==this.tI?(this.$b?a.style.right=c.left+"px":a.style.left=c.left+"px",a.style.top=this.Ab?c.top+c.height-b.height+"px":c.top+c.height+"px"):(a.style.top=c.top+"px",this.$b?a.style.right=c.left+c.width+"px":a.style.left=c.left+c.width+"px")};ORd.prototype.wc=function(){return TRd.width};ORd.prototype.reset=function(){Pe(this.mL.Rc(),function(a){a.reset()},this);this.resize()};
var W3=function(a,b){C.call(this,b);this.Qb=new kR;this.ib(this.Qb);this.$b=a};t(W3,C);q=W3.prototype;q.dc=!0;q.zqb="";
q.Pa=function(){W3.ya.Pa.call(this);var a=this.ta(),b=this.Ea();Qn(a,"a-ga-ha");var c=b.Pa("div","a-ga-ha-ni"),a=this.Ab=b.Pa("input",{id:"captionInputBox"+va(this),"class":"a-ga-ha-N b-hb",maxlength:1E3});b.appendChild(c,b.Pa("span",void 0,a));a.style.MozUserSelect="text";var d=b.Pa("div",{"class":"a-ga-ha-jaa"},"Press Enter to apply or Esc to cancel");b.appendChild(c,d);b=this.Ec=new gD(b);this.ib(b,!1);iD(b,!0);b.IA(!1);b.setPosition(1);b.$b.push("a-ha-i");this.$b&&b.render(this.$b);b.setContent(c);
b=this.ta();c=this.Ea();this.Sa=c.Pa("div",{"class":"a-ga-ha-Th"});c.appendChild(b,this.Sa);this.Qb.yb(a)};q.Aoa=e(654);q.yN=function(a,b){this.Lb(b);this.mL=a;this.resize();Uf(function(){On(this.Sa,!0)},0,this)};q.h9=e(655);q.qb=function(){W3.ya.qb.call(this)};
q.Na=function(){W3.ya.Na.call(this);this.setVisible(!1);this.getHandler().Ja(this.Ab,"keydown",this.Qo).Ja(this.Ab,"blur",wa(this.setVisible,!1)).Ja(this.Sa,"mouseup",this.P$).Ja(this.ta(),"mouseout",Lp(this.hNa,this,!1)).Ja(this.ta(),"mouseover",Lp(this.hNa,this,!0)).Ja(this.ta(),"blur",Lp(this.hNa,this,!1)).Ja(this.ta(),"focus",Lp(this.hNa,this,!0))};q.P$=function(){this.Ec.Fg(this.mL);this.setVisible(!0)};q.hNa=function(a){Pn(this.ta(),"a-ga-ha-u",a)};
q.Qo=function(a){13==a.keyCode?(this.setVisible(!1),a.stopPropagation(),a.preventDefault()):27==a.keyCode&&(this.Ab.value=this.zqb,this.setVisible(!1),a.stopPropagation(),a.preventDefault())};q.kJa=e(656);
q.resize=function(){if(this.mL){var a=this.ta(),b=zRd(this.mL,this.ta().parentNode),c=this.Ea().Rm(this.mL,"a-J-e-qa");c&&(c=zRd(c,this.ta().parentNode),b.width=c.width-12,b.left=c.left+6);b.width=Math.max(b.width,this.Ag);me(a,b.width);a.style.top=b.top+b.height+"px";My.Bo()?a.style.right=b.left+"px":a.style.left=b.left+"px"}};q.Lb=function(a){this.zqb=a;this.Ab.value=a;b1e(this)};
q.setVisible=function(a){if(a!=this.dc){this.dc=a;this.Ec.setVisible(a);if(a)this.Ab.focus(),this.Ab.select();else{var b=Ia(this.Ab.value);b!=this.zqb&&(this.$&&("function"==typeof this.$.cPa?this.$.cPa(b):"function"==typeof this.$.yw&&this.$.yw().setContent(b)),this.zqb=b,b1e(this),this.dispatchEvent(new FRd(this.$,b)))}this.mL?On(this.Sa,!a):On(this.Sa,!1)}}; var b1e=function(a){var b=a.Ea(),c=a.Sa;""==a.zqb?(a.Ea(),Rc(c,"Add Caption"),a.Sa.style.width="auto",a.Ag=zy(c).width,a.Sa.style.width="100%"):(b.hb(c),b.appendChild(c,cd(b,La(a.zqb))))};

G("sy857");I();
}catch(e){_DumpException(e)}
try{
H("sy884");
G("sy884");I();
}catch(e){_DumpException(e)}
try{
var N_d=function(a){var b=a.ta();if(b&&!("undefined"!=typeof d5&&a instanceof d5))for(var b=b.getElementsByTagName("img"),c=0;c<b.length;c++)if(ve(b[c]))return b[c];if("function"==typeof a.BBa){if(a.BBa()&&(b=a.Ea().fb("a-Tq-v-lR",a.ta()))&&ve(b))return b}else{b=a.Ea().fb("a-Ca-lz",a.ta());a=a.Ea().fb("a-fy-Ca",a.ta());if(b&&ve(b))return b;if(a&&ve(a))return a}return null},rRd=[5,18,34,35,22,37],O_d=function(a,b){if(!a.Qf||!a.Xg)return new Kb(b,b);var c=b,d=b/a.Xg*a.Qf,f=Math.min(3*b,2048);d>f&&(f/=
d,c*=f,d*=f);return new Kb(d,c)},Med=function(a){var b=a.ta(),c=a.Qf,d=a.Xg;c&&d?le(b,c,d):(b.style.height="auto",b.style.width="auto");var f=a.voa;if(f.match(/^data:/)&&xc&&0>Xa(nf,"8")){c=a.Ea();b=a.ta();d=a.Nwb;if(!d){a.clear();var h="uploader_image_frame_"+a.getId(),d=c.Pa("iframe",{src:'javascript:"<html><body></body></html>"',name:h,id:h,"class":"v-zc-Bb",frameBorder:"0",scrolling:"no",allowtransparency:"true"}),f=c.Pa("div",null,d);b.appendChild(f)}var f=a.Qf,k=a.Xg;f&&k&&le(d,f+20,k+15);Pd(d,
"margin","-15px -10px 0");a=a.voa.replace(/^data:.*?,/,"");a=c.Pa("form",{method:"post",action:"//uploaded-thumbnails.googleusercontent.com/processimage"},c.Pa("input",{type:"hidden",name:"image",value:a}));b.appendChild(a);a.target=h;a.submit()}else(h=a.C3a)?h.src=f:(a.clear(),h=a.C3a=a.Ea().Pa("img",{src:f,"class":"ff-na-W",alt:""}),b.appendChild(h)),c&&d&&le(h,c,d),xc&&Gf(7)&&(b.style.height="auto",b.style.width="auto")};
Q3.prototype.$ca=g(653,function(a,b){var c=a.Ea().fb("a-Ca-v-kj",a.ta());c&&On(c,b)});Uw.prototype.ifa=g(622,function(a,b){if(this.Sa){a=Math.min(a,2048);b=Math.min(b,2048);var c;c=2<=ha.devicePixelRatio?this.getUrl().replace(iKa,"w"+2*a+"-h"+2*b+"-p"):this.getUrl().replace(iKa,"w"+a+"-h"+b+"-p");return new Uw(c,a,b)}return tRd(this)});uAf.prototype.ifa=g(621,function(a,b){var c=this.Qs(new Kb(a,b),["p"]);return new Uw(c,a,b)});er.prototype.Jca=g(67,function(a){Lg(this,23,a)});
rj.prototype.Jca=g(66,function(a){Lg(this,1,a)});Tl.prototype.Jca=g(65,function(a){Lg(this,2,a)});
var P_d=function(a){return pVd[a]},oig=function(a){return!!a.getOption("hito")},a1e={E6b:5,xJb:6,ZKb:48,ENb:40,BNb:33,G6b:34,F6b:35,AMb:120,nLb:121,Ccc:49,Fcc:50,nac:51,Zfc:7,HGc:117,p8b:18,eEc:78,jEc:59,uDc:89,Czc:191,o8b:22,jDc:86,kyc:187,q8b:37,Hrc:189,TFc:38,Oic:152,Cjc:153,fkc:154,mkc:155,okc:156,xkc:157,ykc:158,apc:173,epc:174,hpc:175,zpc:176,Bpc:177,Spc:178,Aqc:179,PBc:104,ZBc:105,ICc:106,TCc:107,hDc:115,Etc:181,Evc:182,Tvc:183,oxc:184,Uxc:185,Gmc:108,Jmc:109,Kmc:110,Qnc:111,$nc:112,mHc:52,
hEc:79,AGc:60,iDc:53,nDc:87,Akc:54,nGc:55,PGc:119,QHc:81,iEc:193,UIc:239,aIc:240,oIc:241,psc:70,JBc:71,aoc:72,pBc:73,DHc:82,DGc:83,vDc:84,clc:85},S_d=function(a,b,c){b=Math.min(Math.ceil(b),2048);return a.Sa?c&&0<c.length?new Uw(a.Qs(b,c),b,b,!1,a.dh):a.Qf&&a.Xg?(b=O_d(a,b),new Uw(a.Qs(Math.floor(b.height),void 0,"h"),Math.ceil(b.width),Math.ceil(b.height),!1,a.dh)):new Uw(a.Qs(b,void 0,"h"),void 0,void 0,!1,a.dh):tRd(a)},Led=function(a){C.call(this,a)};t(Led,C);q=Led.prototype;q.voa=null;q.Qf=null;
q.Xg=null;q.C3a=null;q.Nwb=null;q.Na=function(){Led.ya.Na.call(this);this.voa&&Med(this)};q.Ic=function(){return this.Xg};q.wc=function(){return this.Qf};q.Jca=function(a,b,c){a!=this.voa&&(this.voa=a,this.Qf=b||null,this.Xg=c||null,this.Nb()&&Med(this))};q.clear=function(){zc(this.ta());this.Nwb=this.C3a=null};var nRd={allowFullScreen:"true",allowScriptAccess:"always",bgcolor:"#fff",scale:"noScale",wmode:"opaque"},H3=function(a){C.call(this,a);this.Sa=!0};t(H3,C);
H3.prototype.Na=function(){H3.ya.Na.call(this);this.uh&&mRd(this);this.getHandler().Ja(this.ta(),"mousedown",this.$b,!0)};H3.prototype.$=function(a){zc(this.ta());this.Qb=a;this.Nb()&&mRd(this)};H3.prototype.Jca=function(a){this.Ab=a};var mRd=function(a){var b=a.Ea().Pa("embed",{height:"100%",src:"//www.youtube.com/get_player?enablejsapi=1",type:"application/x-shockwave-flash",width:"100%"});Pb(nRd,function(a,d){b.setAttribute(d,a)});b.setAttribute("FlashVars",oRd(a,a.Qb));a.ta().appendChild(b)};
H3.prototype.$b=function(a){a.target&&"EMBED"==a.target.tagName&&a.stopPropagation()};
var pRd=function(a){var b=a.tf();b||(b=5==a.$?ykd:zid);return a.$+"/"+b.width+"x"+b.height+"/7/0/0"},oRd=function(a,b){var c=[],d=[],f=ec(b,function(a){return Tb(a1e,a.$)&&!!a.getUrl()});cb(f,function(a){return 5!=a.$&&18!=a.$})&&pb(f,function(a){return 18==a.$});wb(f,function(a,b){return fb(rRd,a.$)-fb(rRd,b.$)});for(var h=0;h<f.length;++h){var k=f[h];c.push(pRd(k));d.push(k.$+"|"+Ka(k.getUrl()).replace(/,/g,"%2C"))}c=Ja(c.reverse().join(","));d=Ja(d.reverse().join(","));d="fs=1&hl="+My.$+"&autoplay="+
(a.Sa?"1":"0")+"&ps=picasaweb&fmt_list="+c+"&fmt_stream_map="+d+"&auth_timeout=86400000000&playerapiid=uniquePlayerId&video_id=picasacid&t=1&vq=large";a.Ab&&(d+="&endscreen_module=https://s.ytimg.com/swf/yt/endscreen.swf&thumbnail_num_shards=1&iurlsd="+a.Ab);xc&&!Gf("7")&&(d+="&avoidgeturl=true");return d};H3.prototype.mL=e(658);var c5=function(a,b){C.call(this,b);this.Sa=a;this.Ab=this.mL=this.$=null};t(c5,C);
c5.prototype.Pa=function(){var a=this.Ea(),b=this.Sa.getName();this.mL=a.Pa("div","a-n-J-v-xe");this.Ab=a.Pa("div","a-n-v-uf",a.Pa("div","a-D-v-uf-E","Retry"));this.$=a.Pa("div","a-D-wa-E");var c;this.Kb(a.Pa("div","XY-Tc",a.Pa("div","a-D-v-qa",c=a.Pa("span","a-n-J-m"),a.Pa("div","a-D-v-sf",a.Pa("div",{"class":"a-v-sf-aa",title:b},b,a.Pa("div","a-D-v-Tc-m")))),a.Pa("div","a-n-v-wa"),this.$,a.Pa("div","a-D-v-Hj",this.Ab,this.mL)));On(this.$,!1);On(this.Ab,!1);a=this.Sa.Ra();"file"!=a&&"document"!=
a||Pd(c,"visibility","hidden")};c5.prototype.Na=function(){c5.ya.Na.call(this);this.getHandler().Ja(this.mL,"click",Lp(this.Qb,this)).Ja(this.Ab,"click",Lp(this.$b,this)).Ja(this.ta(),"mouseover",Lp(On,void 0,this.$,!0)).Ja(this.ta(),"mouseout",Lp(On,void 0,this.$,!1))};c5.prototype.$b=function(){this.dispatchEvent(new N3(this.Sa,"t"))};c5.prototype.Qb=function(){Sn(this.ta(),"Lb-v-z-wa")?this.dispatchEvent(new N3(this.Sa,"r")):this.dispatchEvent(new N3(this.Sa,"c"))};
var I_d=function(a,b){var c=a.Ea(),d=b.$,f=b.dG()?b.dG().status:null;f&&"QUOTA_EXCEEDED"!=f&&"ERR_ALBUM_LIMIT"!=f&&"ERR_PHOTO_PER_ALBUM_LIMIT"!=f&&"IMAGE_TOO_BIG"!=f&&"INSUFFICIENT_PERMISSION"!=f&&"NOT_IMAGE"!=f&&"BAD_IMAGE"!=f&&"INVALID_REQUEST"!=f&&On(a.Ab,!0);a.ta().className="Lb-v-z-wa";d="Upload failed: "+('<div class="a-D-wa-VL">'+La(d)+"</div>");c.hb(a.$);c.appendChild(a.$,cd(c,d))};H("sy887");
var h5=function(a,b,c){E3.call(this,a,b,i5.ia(),c);a=a.Mh.FH;switch(a.$){case "photos":this.Bm(64,!0);b=!!a.getOption("selectAlbum");this.Bm(8,b);this.Bm(16,b);break;case "photo-albums":this.Bm(8,!0);this.Bm(16,!0);b=!!a.getOption("enableAlbumNavigation");this.Bm(64,b);break;default:this.Bm(8,!1),this.Bm(16,!1),this.Bm(64,!0)}Bo(this,64);this.mna=!(a&&a.getOption("hideAa"))};t(h5,E3);h5.prototype.KBa=function(){return this.mna};
h5.prototype.vHa=function(a){this.Ea();var b=this.La().getName()||"",c=this.fb("a-Da-e-O");ey(c,a+1+(": "+b))};h5.prototype.Vva=function(a){xo(this,64)?(m7e(this),a.preventDefault(),a.stopPropagation()):h5.ya.Vva.call(this,a)};h5.prototype.Um=function(a){xo(this,8)?h5.ya.Um.call(this,a):xo(this,64)&&(m7e(this),a.preventDefault(),a.stopPropagation())};
var m7e=function(a){var b=a.La(),c=b.getAttribute("la")||[];eb(c,"camera_sync")?(b=new w3("photos",void 0,{parent:b.getId(),type:"camerasync"}),a=a.getContext().Mh,b.Sa=a.FH,a.On(b)):(a.hm(!0),a.hm(!1),Pn(a.ta(),"a-Da-e-M",!1),Pn(a.ta(),"a-Da-e-eb",!1))};h5.prototype.Oz=function(){h5.ya.Oz.call(this);x0d(this)};h5.prototype.update=function(){h5.ya.update.call(this);this.Op&&x0d(this)};
var x0d=function(a){var b=a.La().Yh();b&&b.length?X3.ia().load(b[0].ifa(163,110).getUrl(),Lp(function(a){var b=this.Sa;b&&b instanceof i5&&(a=a.target.src,b=D9g(this),this.La(),b.src=a,ey(b,"Album"),xc&&!Gf(9)||(new bF(b,450)).play(),Rn(b,"a-Da-e-Vi-Oc-na"))},a)):C$g(a)};
var i5=function(a){F3.call(this,a||"a-Da-e")};t(i5,F3);la(i5);
i5.prototype.Pa=function(a){var b=a.Ea().Pa("div",this.qr(a).join(" ")+" d-k-l"),c=a.Ea(),d=a.La(),f=c.Pa("img","a-Da-e-na"),h=c.Pa("div","a-Da-e-jA",f),k=c.Pa("div","a-Da-e-Da-ma");c.appendChild(b,k);c.appendChild(k,h);var m=d.getName()||"",m=c.Pa("div","a-Da-e-O",m);c.appendChild(k,m);xo(a,8)&&c.pC(h,c.Pa("div","a-Da-e-r2a",c.Pa("div","a-n-dc-Tb-X"),c.Pa("div","a-n-dc-Tb-L")),1);h=d.getAttribute("la")||[];eb(h,"photos_from_posts")||eb(h,"camera_sync")||c.appendChild(k,c.Pa("div","a-Da-e-J-Gg",(new Z("{NUMCHILDREN, plural, =1 {1 photo}other {{NUMCHILDREN} photos}}")).format({NUMCHILDREN:d.Tm()})));
a.KBa&&!a.mna||c.appendChild(k,c.Pa("div","a-Da-e-mI",c.Pa("span",n7e(a),void 0)));xc&&!Gf(9)||qe(f,0);return b};
var n7e=function(a){a=a.La();switch(P_d(a.getAttribute("aa"))){case "public":return"a-n-yc-uc-ib-hg";case "domainPublic":return"a-n-yc-uc-ib-md-hg";case "extendedCircles":return"a-n-yc-uc-ib-de-uo";case "allPersonalCircles":return"a-n-yc-uc-ib-ns";case "limited":return"a-n-yc-uc-ib-ns";case "ownerOnly":return"a-n-yc-uc-ib-By-Ay"}return""},D9g=function(a){a=a.ta();return pc("a-Da-e-na",a)},C$g=function(a){a=D9g(a);Qn(a,"a-Da-e-Vi-Oc-na")};
var z7e=function(a){var b;b='<table class="a-zb-wf"><tbody><tr><td align="center"><table><tbody><tr><td><div class="a-n-xC a-zb-Cd"></div></td><td>You don\'t have any photos yet! <br />';""!=a.eAa&&(a="Click <b>"+(r(a.eAa)+"</b> on the left to start uploading, sharing and organizing your photos on Google+."),b+=a);return b+"</td></tr></tbody></table></td></tr></tbody></table>"};
var j5=function(a,b,c,d){y4.call(this,a,b,d,"horizontal",c);this.Pma=new lW(this.Ea());this.ib(this.Pma);this.qna=[]};t(j5,y4);q=j5.prototype;q.nHa=function(){return this.ta()};q.Na=function(){j5.ya.Na.call(this);this.Sx=new I4e(this.nHa(),this.Ea())};q.Pa=function(){j5.ya.Pa.call(this);this.Pma.Td=this;var a=this.ta();this.Pma.$=a;this.Pma.render(this.ta());if(kr){var a=this.Ea(),b=this.getContainer().cb().parentNode;b.appendChild(a.Pa("br"));b.appendChild(a.Pa("br"))}};
q.Hr=function(a){j5.ya.Hr.call(this,a);this.fBa=null};q.lya=function(a,b){a?(b?this.qna=this.getContext().$.Sk():(this.getContext().$.lJ(),this.qna=[]),this.Sx.start()):this.Sx.stop();Pn(this.ta(),"a-S1-R1",a)};q.GHa=function(){this.fBa||(this.fBa=pe(this.ta()));return this.fBa};q.Yia=function(){this.getContext().$.WT(this.qna,!0)};q.Eqa=Fx;
var k5=function(a,b,c){j5.call(this,a,b,c)};t(k5,j5);k5.prototype.ED=function(a){return new h5(this.getContext(),a,this.Ea())};k5.prototype.Pa=function(){k5.ya.Pa.call(this);Qn(this.ta(),"a-J7")};k5.prototype.bC=function(a){a=k5.ya.bC.call(this,a);return ec(a,function(a){return 0!=a.Tm()&&!!a.Yh()&&!!a.Yh().length})}; k5.prototype.gR=function(){if("photos"!=this.Gf().$)k5.ya.gR.call(this);else{var a={},b=this.getContext(),c=b.rd().iTa;oa(c)?(c=new w3(c[0],c[1],c[2]),a.eAa=c.getName()):a.eAa="";this.EFa(U(b.ef(),z7e,a))}};
var Nlg=function(a,b,c){a=a||{};b="";a=wA(new Z("{VIEWER_GENDER,select,female{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}male{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}other{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}}"),
{VIEWER_GENDER:c.Aa,START_BREAK:"<br>",START_LINK_1:'<a href="'+a.M2c+'" target="_blank">',END_LINK:"</a>",START_LINK_2:'<a href="'+a.L2c+'" target="_blank">'});return P(b+(""+a))},Olg=function(a,b,c){a=a||{};b="";a=wA(new Z("{VIEWER_GENDER,select,female{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}male{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}other{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}}"), {VIEWER_GENDER:c.Aa,START_BREAK:"<br>",START_LINK_1:'<a href="'+a.M2c+'" target="_blank">',END_LINK:"</a>",START_LINK_2:'<a href="'+a.L2c+'" target="_blank">'});return P(b+(""+a))};
var C_d=function(a,b,c){q4.call(this,a,c);this.zl=b};t(C_d,q4);C_d.prototype.getMessage=function(){var a={M2c:"http://google.com/intl/"+My.$+"/mobile/+/",L2c:"https://support.google.com/picasa/answer/4392268?hl="+My.$};return JC(this.getContext().ef(),"v"==this.zl?Olg:Nlg,a)};C_d.prototype.Sa=function(){return this.Ea().Pa("div",["a-n-xC","a-zb-Cd"])};
var Tne=function(a,b,c){C.call(this,c);this.$b=a;this.Sa=Rne(b);this.mL=this.Ab=null};t(Tne,C);var Une=new Kb(280,210),Vne={18:"medium",22:"hd720",37:"hd1080"},Wne=new Kb(480,360),Xne=!1,Rne=function(a){a=ec(a,function(a){return Tb(a1e,a.$)});wb(a,function(a,c){return fb(rRd,a.$)-fb(rRd,c.$)});return a};Tne.prototype.Pa=function(){Tne.ya.Pa.call(this);this.Ea();Xne?this.Qb():jXb("https://youtube.googleapis.com/iframe_api").addCallback(Lp(function(){Xne=!0;YT.ready(Lp(this.Qb,this))},this))};
Tne.prototype.Qb=function(){var a;a=Une.clone();if(this.Ab&&this.Ab.width>=a.width&&this.Ab.height>=a.height)a=this.Ab.clone();else{for(var b,c=0,d=this.Sa.length;c<d;c++){var f=this.Sa[c].tf(),h=f&&this.mL&&(f.width>this.mL.width||f.height>this.mL.height);f&&(!b||f.width>b.width)&&!h&&(b=f)}b&&(b.width>=a.width||b.height>=a.height)&&(a=b.clone())}a=new Kb(a.width,a.height+38);this.$=new YT.Player(this.$b,{width:a.width,height:a.height,playerVars:{autohide:"1",ps:"picasaweb",enablecastapi:"0",html5:"1",
hl:My.$},events:{onStateChange:Lp(this.Ag,this),onReady:Lp(this.uh,this)}})};Tne.prototype.Ag=function(a){this.dispatchEvent(new Yne("li",a.data))};
Tne.prototype.uh=function(){for(var a=[],b=0;b<this.Sa.length;++b)a.push(Zne(this.Sa[b]));for(var a=a.reverse().join(","),b=[],c=0;c<this.Sa.length;++c){var d=this.Sa[c],f=d.$,d="url="+Ja(d.getUrl())+"&itag="+f+"&type="+Ja("video/mp4;")+"&quality="+Vne[f];b.push(d)}b=b.reverse().join(",");this.$.loadVideoByPlayerVars({fmt_list:a,url_encoded_fmt_stream_map:b,video_id:"picasacid"})}; var Zne=function(a){var b=a.tf();b||(b=Wne);return a.$+"/"+b.width+"x"+b.height},Yne=function(a,b){A.call(this,a);this.playerState=b};t(Yne,A);
var $ne=function(){if(!My.Vk)return!1;try{var a=document.createElement("video"),b=!!("canPlayType"in a),c=!!a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/no/,"");return b&&c}catch(d){}return!1};var m5=function(a,b,c){F3.call(this,this.Pc());this.$=a||120;this.Ko=b;this.Vb=c};t(m5,F3);var G1d=0,aoe=new Kb(280,210),J0d=null;q=m5.prototype;q.fN=function(a,b){var c=[];this.Ko&&c.push("c");b&&"video"==b&&c.push("no");return S_d(a,this.$,c)};q.Uaa=function(a){return(a=a&&this.fN(a[0]))?O_d(a,this.$):new Kb(this.$,this.$)};
q.Pa=function(a){var b=a.La(),c=a.Ea(),d,f,h;b.Ii?h=c.Pa("div",this.Pc()+"-Tc"):(h=c.Pa("div",this.Pc()+"-cj"),qe(h,0));le(h,this.Uaa(b.Yh()));f=c.Pa("div",{id:"picker:pcp:"+G1d++,"class":this.Pc()+"-qa"},c.Pa("div",{"class":this.Pc()+"-qa-B",id:"imageContent"+va(a)},h),d=c.Pa("div",this.Pc()+"-Qe-Hj"));var k=c.Pa("div",this.qr(a).join(" ")+" d-k-l",c.Pa("div",this.Pc()+"-sd d-k-l",f)),m=f.appendChild(c.Pa("div","a-Ca-kj-z",c.Pa("div","a-Ca-e-na-wf",c.createTextNode("Processing video...")),c.Pa("div",
"a-Ca-sf",c.createTextNode(b.getName())),c.Pa("div","a-Ca-Hd d-k-l")));On(m,!1);m=f.appendChild(c.Pa("div","a-n-Ca-vk-Ab a-Ca-vk-m"));On(m,!1);($ne()||0<=Xa(OJ,"9.0.0"))&&Pd(m,"cursor","pointer");Qn(k,"Lb-v-z");a.Gdb(h);this.Vb?d.appendChild(c.Pa("div",{id:a.yw().getId(),"class":this.Pc()+"-jc"})):(c=b.Jd(),Ea(Ga(c))&&(c=b.getName()),Ea(Ga(c))||(k.title=c));b.Ii&&(h.className=this.Pc()+"-ii",a=F9f(a),a.Pa(),f.appendChild(a.ta()));return k};
q.tq=function(a){m5.ya.tq.call(this,a);var b=a.La();if(this.Vb){var c=a.yw();c.yb(a.Ea().ta(c.getId()));b=b.Jd()||"";c.setContent(b);c.ta().title=b}this.l0(a)};q.h_=function(){return!1};q.Pc=function(){return"a-J-e"};
var F0d=function(a){var b=a.yw().ta();b&&(a=N_d(a))&&(a=zy(a.parentNode),b.style.top=a.height+"px",My.Bo()?b.style.right="0px":b.style.left="0px")},G0d=function(a,b){var c=b.yja||(b.yja=new Led(b.Ea())),c=new Kb(c.wc(),c.Ic());if(c.width&&c.height){var d=new Gb(0,0),f=new Kb(c.width,c.height),h=N_d(b);if(h){var k=R3(h,!1,!1);if(90==k||270==k)if(k=f.width/f.height,f.height=a.$,f.width=Math.round(f.height/k),k=Math.min(3*f.height,1600),f.width>k&&(k/=f.width,f.height*=k,f.width*=k),c.width=f.height,
c.height=f.width,k=R3(h,!0,!0),90==k||270==k)d.y+=Math.floor((f.height-c.height)/2),d.x+=Math.floor((f.width-c.width)/2);k=de(h);f.width+=k.left+k.right;f.height+=k.top+k.bottom;le(h.parentNode,f);le(h,c);h.style.top=d.y+"px";My.Bo()?h.style.right=d.x+"px":h.style.left=d.x+"px";F0d(b)}}};q=m5.prototype;q.upa=ka;
q.l0=function(a){var b=a.La(),c=b.Yh(),c=c&&this.fN(c[0],b.Ra());if(a.Op&&(c?(this.E6(a,URd(c.getUrl()),c.wc(),c.Ic()),F0d(a)):(c=yUd("div",this.Pc()+"-cj",a.ta()))&&qe(c,1),c=b.Jd()||b.getName(),this.Vb&&c)){var d=a.Ea().Tc(this.Pc()+"-jc")[0];""==Uc(d)&&Rc(d,c)}(b=b.Ii)&&On(F9f(a).ta(),!0);b&&"error"==b.getState()&&a.yZ();this.eO(a,this.Pc()+"-ak",!xo(a,16))};
q.E6=function(a,b,c,d){c&&d&&(d=this.Uaa(a.La().Yh()),c=d.width,d=d.height);var f=a.yja||(a.yja=new Led(a.Ea()));if(!f.Nb()){var h=this.lO(a);a.Ea().hb(h);(new bF(h,450)).play();f.yb(h)}f.Jca(b,c,d)};q.lO=function(a){return Zc(a.Ea(),"div",this.Pc()+"-qa-B",a.ta())[0]};q.jh=function(a){return this.lO(a)};
q.$ca=function(a,b){if(b){var c=a.Ea().fb(this.Pc()+"-ii",a.ta());c&&On(c,!1);Qn(a.Ea().fb(this.Pc()+"-qa",a.ta()),"a-kj-Ca");On(a.Ea().fb("a-Ca-kj-z",a.ta()),!0)}else On(a.Ea().fb("a-Ca-kj-z",a.ta()),!1),me(a.Ea().fb(this.Pc()+"-qa",a.ta()),"auto"),ne(a.Ea().fb(this.Pc()+"-qa",a.ta()),120)};q.Sxa=function(a,b){var c=a.Ea().fb("a-n-Ca-vk-Ab",a.ta());c&&On(c,b)};
var boe=function(a,b){var c=new gD(a.Ea());iD(c,!0);c.Fg(a.ta());c.IA(!0);c.setPosition(1,2,void 0,35);if(b){c.render(a.getContext().rd().fG());var d=new Tne(c.cb(),a.La().getVideoData().QD(),a.Ea()),f=d;f.mL=aoe.clone();f.Ab=null;c.ib(d);d.render(c.ta())}else d=new H3,d.Pa(),c.ib(d),c.render(a.getContext().rd().fG()),c.setContent(d.ta()),d.$(a.La().getVideoData().QD()),le(d.ta(),aoe.width,aoe.height);vbg(a,c);c.setVisible(!0);Qn(c.ta(),"a-Ca-i")};
var n5=function(a,b,c,d,f){O3.call(this,a,b,c||J0d||(J0d=new m5),d);ooa(this,!0);this.Km=!ia(f)||f?new c5(this.La(),d):null;this.Qb=null;this.yQ="";this.lp=0;this.yja=this.iaa=null};t(n5,O3);n5.prototype.Gdb=function(a){this.iaa=a};n5.prototype.Oz=function(){n5.ya.Oz.call(this);this.update()};n5.prototype.yw=function(){var a=this.Qb;a||(a=this.Qb=new yo(""),a.Bm(32,!1));return a};
n5.prototype.update=function(){n5.ya.update.call(this);var a;var b=this.getContext();a=b.rd();var c=this.La();a=a.jg&&XRd(c,b)?!0:(b=c.Ii)&&"success"!=b.getState()||a.jg&&"photo"!=c.Ra()||!a.lN(c.rI())?!1:L0d(a.Db,a.DU,c);Tv(this,16)||this.Bm(16,a);this.setState(32,Tv(this,32)&&a);Tv(this,32)||this.Bm(32,a);a=this.La();b=a.Yh();c=this.Sa;b=b&&c.fN(b[0]);"video"==a.Ra()&&"picasa"==a.$?(b&&a.getVideoData()&&c.Sxa(this,!0),b&&a.getVideoData()?(c.$ca(this,!1),K0d(this,b)):c.$ca(this,!0)):b?(K0d(this,
b),"video"==a.Ra()&&c.Sxa(this,!0)):c.l0(this);this.Qb&&""==this.Qb.getContent()&&this.Qb.setContent(a.Jd())};var K0d=function(a,b){var c=N_d(a);a.lp=c?R3(c,!1,!1):0;c=b.getUrl();c=URd(c);a.yQ=X3.ia().load(c,Lp(a.Nid,a))};q=n5.prototype;
q.Nid=function(a){if(!this.isDisposed()&&a.target.id==this.yQ){var b=N_d(this);if(b){if(R3(b,!1,!1)!=this.lp)return;ERd(b,0)}!(b=this.La().Yh())||!b.length||b[0].wc()&&b[0].Ic()||(b[0]=b[0]instanceof uAf?new uAf(b[0].getUrl(),a.target.width,a.target.height):new Uw(b[0].getUrl(),a.target.width,a.target.height,b[0].Sa,b[0].Ra()),this.La().ZE(b));this.Sa.l0(this,0!=this.lp);G0d(this.Sa,this)}};
q.Na=function(){n5.ya.Na.call(this);this.Km&&(this.Km.Nb()||this.Km.render(this.iaa),this.getHandler().Ja(this.Km,"QE",this.Oid))};q.Oid=function(a){this.dispatchEvent(a)};q.yZ=function(){this.Km&&I_d(this.Km,M3(this.La()))};q.Ib=function(){n5.ya.Ib.call(this);this.Qb&&this.Qb.Ib()};var L0d=function(a,b,c){if(!a&&!b)return!0;c=c.Yh();if(!c||!c.length)return!1;c=c[c.length-1];var d=c.wc(),f=c.Ic();if(!a||c.Sa||d<=a.width&&f<=a.height)if(!b||d>=b.width&&f>=b.height)return!0;return!1};
n5.prototype.E6=function(a,b,c){this.Sa.E6(this,a,b,c)};n5.prototype.Um=function(a){"A"!=a.target.tagName&&(Sn(a.target,"a-n-Ca-vk-Ab")?$ne()?(boe(this,!0),n5.ya.Um.call(this,a)):0<=Xa(OJ,"9.0.0")&&(boe(this),n5.ya.Um.call(this,a)):n5.ya.Um.call(this,a))};var vbg=function(a,b){a.getHandler().yj(b,"hide",function(){b.Ma()})};
var o5=function(a,b,c,d){j5.call(this,a,b,c);this.Db=d||J0d||(J0d=new m5);this.y2=new G_d(a,c);this.ib(this.y2);this.Tx=!1;this.Vk=null};t(o5,j5);q=o5.prototype;q.ED=function(a){a=new n5(this.getContext(),a,this.Db,this.Ea());oig(this.Gf())&&a.Bm(255,!1);this.getHandler().Ja(a,"QE",this.Zid);return a};q.Pa=function(){o5.ya.Pa.call(this);var a=this.Pc();Qn(this.ta(),a);"edit"==this.Gf().getOption("mode")&&Qn(this.ta(),a+"-ga");this.y2.render(this.ta())};q.Pc=function(){return"a-Vg"};
q.Zid=function(a){if("r"==a.$){var b=a.La().getId();if(b=x5(this,b))this.getContainer().removeChild(b,!0),b.Ma()}this.dispatchEvent(a)};q.bC=function(a){var b=this.getContext().rd(),c=b.Db,b=b.DU,d=this.Gf();!c&&!b||"image-search"!=d.$&&"featured"!=d.Ra()||(a=ec(a,wa(L0d,c,b)));return o5.ya.bC.call(this,a)};q.Hr=function(a){o5.ya.Hr.call(this,a);var b=this.getContext().rd(),c=b.Db,d=b.DU;if(c||d)Ye(a,wa(L0d,c,d))||this.y2.display("s");a=this.Gf();b.jg&&"photos"==a.$&&"ofuser"==a.Ra()&&this.y2.display("p")};
q.m2a=function(a){var b=a.target,c=b.La(),d=this.getContext().rd();if("check"==a.type&&d.Ag&&xo(b,16)){if("ytcb"==d.Ag)return ZRd(c,this.Gf(),this.getContext()),!1;if(!P0d(this))return d.jg&&"picasa"==c.$?N0d(this,b):O0d(this,c),!1}return o5.ya.m2a.call(this,a)};
var N0d=function(a,b){if(!a.Tx){a.Tx=!0;Uf(Lp(b.Ld,b,!1));var c=a.getContext();c.$.lJ();var d={label:"profile_photos.draft"},f=b.La(),h=f.Qja;h&&(d.srcOwnerId=h[0].getId());c.Mh.dya(!0);c.od.Vd(new K3("copy","picasa",[f.getId()],d),Lp(function(a){c.Mh.dya(!1);a=a.Ae()[0];O0d(this,a)},a),Lp(a.iaa,a),!0)}};o5.prototype.iaa=function(){alert("There was an error while preparing your selected profile photo.  Please try again.");this.getContext().Mh.dya(!1)};
var O0d=function(a,b){var c=new w3("crop");BN(c,"id",b.Qe());BN(c,"service",b.$);var d=a.Gf();c.Sa=d;(d=b.vt())&&BN(c,"parent",d.split(".").pop());P0d(a)&&BN(c,"mode","none");a.getContext().Mh.On(c);a.Tx=!1};o5.prototype.cD=function(a){this.getContext().rd().Ag||oig(this.Gf())||o5.ya.cD.call(this,a)};var P0d=function(a){var b=a.Gf(),c=b.getOption("parent");return c&&YRd(a.getContext().od.La(c))?!0:"streamid"==b.Ra()&&"profile_photos"==b.getQuery()};
o5.prototype.Eqa=function(a){var b=this.fb("a-Lc-B");return this.getContext().rd().$b&&this.g3&&"IMG"!=a.tagName&&(b==a||Oc(b,a))&&!Sn(a,"a-nf-e-lf")};o5.prototype.Yia=function(a,b){if(a&&!this.isDisposed()){var c=this.ta().scrollTop,d=[],f=[];He(this.getContainer(),function(b){if(b instanceof n5){var k=pe(b.ta());k.top+=c;xo(b,16)&&(Vba(a,k)?d.push(b.La().getId()):f.push(b.La().getId()))}},this);this.getContext().$.WT(f,!1);this.getContext().$.WT(d,!0);o5.ya.Yia.call(this,a,b)}};
o5.prototype.Ik=function(a){this.Vk&&(this.removeChild(this.Vk,!0),this.Vk=null);o5.ya.Ik.call(this,a)};o5.prototype.gR=function(){var a=this.Gf().getOption("type");"camerasync"==a?(this.Vk=new C_d(this.getContext(),"p",this.Ea()),x(this,this.Vk)):"videos-camerasync"==a&&(this.Vk=new C_d(this.getContext(),"v",this.Ea()),x(this,this.Vk));this.Vk?this.ib(this.Vk,!0):o5.ya.gR.call(this)};
var e8e=function(a,b,c,d,f){this.Ab=a||a8e;this.lp=!!d;this.Vk=null;this.iu=!!f;m5.call(this,this.Ab.height,b,c)};t(e8e,m5);la(e8e);var a8e=new Kb(140,140);q=e8e.prototype;q.Pa=function(a){var b=a.Ea(),c=b.Pa("div",this.Pc()+"-nb",b.Pa("div",this.Pc()+"-sd",b.Pa("div",[this.Pc()+"-lf","a-n-dc-Tb-X"]),b.Pa("img",this.Pc()+"-zc")));a=a.La().Jd();this.lp&&!qC(a)&&(Qn(c,this.Pc()+"-nb-lE-jc"),this.Vk=b.Pa("div",this.Pc()+"-jc",a),c.appendChild(this.Vk));le(c,this.Ab.width+10,this.Ab.height+10);return c};
q.Pc=function(){return"a-nf-e"};q.lO=function(a){return a.fb(this.Pc()+"-sd")};q.jh=function(a){return a.ta()};q.upa=function(a,b){var c=b.fb(this.Pc()+"-lf");c&&(Pn(c,"a-n-dc-Tb-L",a),Pn(c,"a-n-dc-Tb-X",!a))};q.fN=function(a){var b;b=a.wc()&&a.Ic()?(new Kb(a.wc(),a.Ic())).Cr(this.Ab).floor():this.Ab;return a.ifa(b.width,b.height)};q.Uaa=function(){return new Kb(this.Ab.width+18,this.Ab.height+48)};q.cXa=function(a){var b=a.getName()||a.Jd();"web"==a.$&&(b=b.replace(/<\/?b>/g,""));return b};
q.l0=function(a){a.Ea();var b=a.fb(this.Pc()+"-zc"),c=a.La(),d=this.ryb(c);if(d){var f=d.getUrl();b.src=this.iu?URd(f):f}c=this.cXa(c);b.title=c;b.alt=c;var c=this.lO(a),h=f=this.Ab;d&&d.wc()<=f.width&&d.Ic()<=f.height?h=new Kb(d.wc(),d.Ic()):d&&(h=sRd(d,f));le(c,h);le(b,h);this.zDa(c.parentElement,c);qe(c,1);this.eO(a,this.Pc()+"-ak",!xo(a,16))};q.ryb=function(a){return(a=a.Yh())&&this.fN(a[0])}; q.zDa=function(a,b){var c=ze(a),d=xe(b),f=My.Bo(),h=Math.round((c.width-d.width)/2);f?b.style.right=h+"px":b.style.left=h+"px";b.style.top=Math.round((c.height-d.height)/2)+"px"};q.Sxa=ka;q.$ca=ka;
var Z3=function(a,b,c,d){o5.call(this,a,b,c,d||eef(b))};t(Z3,o5);var eef=function(a){var b=!!a.getOption("sdsc");a="recently-picked"==a.$;return b||a?new e8e(void 0,void 0,void 0,b,a):e8e.ia()};q=Z3.prototype;q.Pa=function(){Z3.ya.Pa.call(this)};q.Pc=function(){return"a-Ho"};q.ED=function(a){return new n5(this.getContext(),a,this.Db,this.Ea(),!1)};q.EFa=function(a){Z3.ya.EFa.call(this,a);cc(this.lp,"a-nf-nc")}; q.m2a=function(a){var b=Z3.ya.m2a.call(this,a),c=x5(this,a.target.La().getId());b&&c&&this.Db.upa("check"==a.type,c);return b};

G("sy887");I();
}catch(e){_DumpException(e)}
try{
Nr.prototype.Q9=g(226,function(){return null!=w(this,5)?w(this,5):1});RWb.prototype.Q9=g(225,function(){return null!=w(this,3)?w(this,3):0});var I1d=function(a){a.getHandler().nb(a.getContext().We(),"ui",a.update);a.Km&&On(a.Km,!1);a.ima=!0},D7g=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0},E7g=function(a,b,c){this.$=a;x(this,this.$);this.Sa=b||null;this.Ab=!!c};t(E7g,kd);E7g.prototype.qb=function(){this.Sa.cancel()};
var F7g=function(a){this.$=[];this.mL=a.od;this.Sa=new TC(this.Qb,1E4,this);x(this,this.Sa);this.Ab=My.jic()};t(F7g,kd);F7g.prototype.OZa=function(a,b,c,d){a=new E7g(a,b,d);x(this,a);c&&this.Ab?(this.$.push(a),this.Sa.Il()):G7g(this,a)};
F7g.prototype.Qb=function(){if(0!=this.$.length){var a=this.$.shift();if(a.Ab)for(var b=this.$.length-1;0<=b;b--){var c=this.$[b],d=c.$,f=a.$;if(d=c.Ab&&a.Ab&&d.$b==f.$b&&d.Ab==f.Ab)f=f.getOptions(),d=(d=c.$.getOptions())&&f?D7g(d,f):d==f;d&&(f=a,f.Sa?c.Sa&&eg(f.Sa,c.Sa):f.Sa=c.Sa,f.$=new K3(f.$.Ab,f.$.$b,rb(f.$.DU,c.$.DU),f.$.getOptions()),nb(this.$,b))}G7g(this,a);0<this.$.length&&this.Sa.Il()}};
var G7g=function(a,b){a.mL.Vd(b.$,function(a){var d=b.Sa;d&&d.By(a)},function(a){var d=b.Sa;d&&d.jd(a)})},GLg=function(a){return(new Z("{filesCount, plural, =0 {unused plural form}=1 {Selected file [{file}] is not supported for upload.}other {Selected files [{files}] are not supported for upload.}}")).format({filesCount:a.length,files:Baa(a.toString(),30,!0),file:a[0]})},M1d=function(a,b,c){this.Fs=a;this.Sa=c};q=M1d.prototype;q.Sb="default";q.dNa=0;q.KTb=null;q.getId=function(){return this.Fs};
q.tf=function(){return this.Sa};q.setSize=function(a){this.Sa=a};q.getState=function(){return this.Sb};q.setState=function(a){this.Sb=a};q.gQ=function(){return this.Ab};q.dG=function(){return this.KTb};
var L1d=function(a){return eb(["success","error","cancel"],a)},z2d={Upd:"blogger",$zd:"books",mib:"calendar",$Ra:"contacts",rTb:"gready",dSb:"cportal",NFc:"cultural",X5b:"docs",PCd:"photo",DSb:"dragonflyphotos",ISb:"drive",KSb:"drive-select",oGd:"feag",H6b:"fonts",WDd:"et",WEd:"geodiscussion",God:"groups",$7b:"maps",fUb:"mapshop",YHd:"mapspro",dId:"media",Y8b:"party",zna:"picasa",CKd:"places",uyb:"play-edu",aVb:"relatedcontent",bBd:"static_themes",rTc:"stories",Ona:"youtube",ird:"web",Zda:"people", nMd:"search-api",URL:"url",sLd:"recent",NBd:"cosmo",GCd:"DoclistBlob",KCd:"doc",VCd:"drawing",FORM:"form",ivd:"freebird",lHd:"kix",VKd:"pres",fLd:"punch",Xqd:"ritz",BNd:"spread"};H("sy888");
var F5=function(a,b,c,d,f){Ld.call(this);this.$=a;a.We().Qcc(this);this.$b=a.F2a(b);this.Bc=c;this.Sa=d;this.DU=f;this.Ab={};this.Vk={};(b=My.Ab)&&(this.Vk.Authorization="Bearer "+b);this.jg=new TC(Lp(function(){this.$.Sa.Sl(this.Ae(),"uploadProgress")},this),2E3);this.Bb=new Hd(this);this.Sa.addCallback(function(b){this.Bb.Ja(b,"filedownsamplingstarted",this.jAc).Ja(b,"filedownsamplingcompleted",this.iAc).Ja(b,"fileremoved",this.pjd).Ja(b,"filesselected",this.uIb).Ja(b,"uploadstatechanged",this.C2a).Ja(b,
"uploadprogress",this.qjd).Ja(b,"uploadmessagechanged",this.B2a).Ja(b,"filepreviewready",this.nAc).Ja(b,"allfilescompleted",this.tIb).Ja(a.mL,"cancel-upload",this.Mvc)},this)};t(F5,Ld);var g2d={"default":"default",inqueue:"scheduled",start:"running",success:"success",error:"error",cancel:"canceled"};q=F5.prototype;q.getContext=function(){return this.$};q.Gf=function(){return this.Bc};q.getHandler=function(){return this.Bb};
q.La=function(a){return qa(this.Ab[a])?this.getContext().od.La(this.Ab[a]):null};q.Ae=function(){var a=this.getContext().od;return zg(Rb(this.Ab),function(b){return a.La(b)})};
var G5=function(a){return ec(a.Ae(),function(a){return(a=a.Ii&&a.Ii.getState())&&"success"!=a?!1:!0})},G$g=function(a){return ec(a.Ae(),function(a){a=a.Ii&&a.Ii.getState();return!(a&&("error"==a||"canceled"==a))})},H5=function(a,b){var c=a.getContext().od;return N2a(a.Ab,Lp(function(a){a=c.La(a);return b==(a.Ii&&a.Ii.getState())},a))},$1d=function(a){return 0==a.indexOf("image/")?"photo":0==a.indexOf("video/")?"video":"document"},a2d=function(a,b){var c=a.Ab[b];c&&(a.DU&&a.DU.dL([c]),delete a.Ab[b])},
b2d=function(a){return!!a.Bc.getOption("notifications")};F5.prototype.kda=function(){this.getContext().od.xk(34);this.Sa.addCallback(function(a){var b=[],c=[];v(a.Lt(),function(d){"default"==HY(a,d)&&(b.push(d),c.push(this.La(d.getId())))},this);v(b,function(a){a.Oi().addAll(this.Aga(a));a.jxa(this.Vk)},this);v(c,function(a){a.Ii.setState("scheduled")});b2d(this)&&this.$.Sa.Sl(c,"uploadScheduled");wb(b,function(a,b){return yb(a.getName(),b.getName())});v(b,function(b){a.O$(b)})},this)};
F5.prototype.Aga=function(a){var b=Xb(this.$b.getMetadata()||{});Zb(b,this.Bc.getOption("data")||{});b=Paa(b,function(a,b,f){return null!=f[b]&&!ya(b,"closure_uid")});b.title=a.getName();b.addtime=String(Wa());return b};var c2d=function(a,b){a.Sa.addCallback(function(a){var d=a.getFile(b);d&&a.Qda(d)},a)};q=F5.prototype;q.dE=function(a){this.Sa.addCallback(function(b){b.dE();a&&v(b.Lt(),function(a){"success"!=HY(b,a)&&b.Tu(a)})},this)};q.Mvc=function(a){(a=a.data.id)?c2d(this,a):this.dE()};
q.jAc=function(a){a=this.La(a.file.getId()).getId();this.$.We().Ywd(a)};q.iAc=function(a){var b=this.La(a.file.getId()),c=b.getId();a=a.file.kf;b.Ii.setSize(a||void 0);this.$.We().Xwd(c,a)};q.pjd=function(a){var b=a.file;a=b.getId();var c=this.La(a);a2d(this,a);wag(this,[]);this.Sa.addCallback(function(a){a=HY(a,b);"default"!=a&&(a=L1d(a),this.$.We().$wd(c.getId(),a))},this)};q.uIb=function(a){d2d(this,a.files)};
var d2d=function(a,b){if(b&&b.length)if(wag(a,b)){var c=[];v(b,function(a){var b=a.getId(),h={};h.name=a.getName();h.serviceId=this.$b.$b;h.id=String(va(h));h.isNew=!0;h.description=a["p-pc"];h.sizeBytes=a.kf||void 0;h.mimeType=a.rI()||a.Q9()||void 0;h=new Vw(h);a=new M1d(a.getId(),a.getName(),a.kf||void 0);h.Ii=a;this.Ab[b]=h.getId();c.push(h)},a);a.dispatchEvent(new e2d("sm",c));a.DU&&a.DU.QK(c);a.$.od.Xp(c)}else v(b,function(a){c2d(this,a.getId())},a)},wag=function(a,b){var c=!0,d,f,h,k=G$g(a),
m=a.$.rd().y2,p=a.$.rd().dTa,u=a.$.rd().jv,z=a.$.rd().p_,F=k.length+b.length;if(m||p){var M=0,X=0;v(k,function(a){a&&a.Ab&&(M+=a.Ab)},a);v(b,function(a){a=a.kf;M+=a||0;a&&a>X&&(X=a)},a);m&&M>m&&(a.$.rd().Vb?f=1:(c=!1,d=5));p&&X>p&&(c=!1,d=4)}if(u&&F>u)a:switch(c=!1,d=3,jpb(a)){case "photo":h="Try again with fewer photos. Uploads up to "+(u+" photos are allowed.");break a;case "video":h="Try again with fewer videos. Uploads up to "+(u+" videos are allowed.");break a;default:h="Try again with fewer items. Uploads up to "+
(u+" items are allowed.")}z&&F<z&&(c=!1,d=2,h=JC(a.$.ef(),Xee));var da=new df,k=a.Gf().getOption("mimeTypes"),m=a.Gf().getOption("fileExts");if(k){var Aa=k.split(",");v(b,function(a){a.rI()&&eb(Aa,a.rI())||da.add(a.getName())},a);da.isEmpty()||(c=!1,d=1,h=GLg(da.Rc()))}else if(m){var Fa=m.toLowerCase().split(",");v(b,function(a){if(a.getExtension()){var b="."+a.getExtension().toLowerCase();eb(Fa,b)||da.add(a.getName())}else da.add(a.getName())},a);da.isEmpty()||(c=!1,d=7,h=GLg(da.Rc()))}a.dispatchEvent(new Zfe(a.$,
c,d,h,f));return c},jpb=function(a){return(a=a.$b.Sa)&&1==a.length?a[0]:null};F5.prototype.C2a=function(a){f2d(this,a.file)};
var f2d=function(a,b){a.Sa.addCallback(function(a){var d=b.getId(),f=this.La(d),h=HY(a,b),k=g2d[h];if(k&&f){var m=f.Ii,p=m.getState();m.setState(k);"success"===k&&(m.dNa=b.PB);if(L1d(h)){"default"!=p&&(f.hd($1d(b.Q9()||"")),this.$.We().Wwd(f.getId()));if("success"==h){if(h=a.zx(b).dG())a=f.getId(),f=this.E9(f,h),f.setAttribute("oid",a),h=this.$.od,h.$Ua(a,f),(a=f.vt())&&(a=h.La(a))&&ia(a.Tm())&&I2d(a,a.Tm()+1),b.gxa(f.getId()),this.Ab[d]=f.getId();var u=this.$.$;this.$.rd().$b&&Uf(function(){u.isDisposed()||
u.Sf(f.getId())||u.HP(f.getId(),"cb")});this.getContext().od.xk(35)}else"error"==h&&this.getContext().od.xk(32);this.dispatchEvent(new h2d("Nn",f))}else"inqueue"==h?this.$.We().Xgb(f.getId(),b.kf,i2d(a)):"start"==h&&(this.$.We().c3b(f.getId()),this.dispatchEvent(new h2d("zm",f)));b2d(this)&&"default"!=k&&"scheduled"!=k&&this.$.Sa.Sl([f],"uploadStateChange");j2d(this,f)}},a)};q=F5.prototype;q.E9=function(a,b){a.Ii.Ab=b.contentId||b.photo_id;var c=a.Ii.tf()||0;a.Ab=c;return a};
q.qjd=function(a){var b=a.file;if(a=this.La(b.getId())){var c=b.PB,b=b.kf;a.Ii.dNa=c;j2d(this,a);b&&this.$.We().Zwd(a.getId(),c,b);b2d(this)&&this.jg.Il()}};q.B2a=function(a){this.Sa.addCallback(function(b){var c=a.file,d=this.La(c.getId());if(d){var f=d.Ii;f.$=a.message;b=b.zx(c);f.KTb=b&&b.dG()||null;j2d(this,d)}},this)};q.nAc=function(a){var b=this.La(a.file.getId());if(b){var c=b.Yh();c&&c.length||(b.ZE([new Uw(a.Sa,a.$&&a.$.resultWidth,a.$&&a.$.resultHeight)]),j2d(this,b))}};
q.tIb=function(){var a=G5(this);wb(a,function(a,b){return a.Sa-b.Sa});var b=this.$.$;v(a,function(a){b.Fca(a.getId(),!1,"cb");b.Fca(a.getId(),!0,"cb")});this.getContext().od.xk(33)};var j2d=function(a,b){a.$.od.Xp([b])};F5.prototype.reset=function(){this.Ab={}};F5.prototype.qb=function(){F5.ya.qb.call(this);delete this.$b;delete this.Ab;this.jg.Ma();delete this.jg;this.Bb.Ma();delete this.Bb};
var i2d=function(a){return"undefined"!=typeof KY&&a instanceof KY?"flash":"undefined"!=typeof NY&&a instanceof NY?"html_form":"undefined"!=typeof RY&&a instanceof RY?"xhr":"other"},h2d=function(a,b){A.call(this,a);this.$=b};t(h2d,A);var e2d=function(a,b){A.call(this,a);this.$=b};t(e2d,A);var Zfe=function(a,b,c,d,f){A.call(this,"lo");this.Sa=b;this.mL=c;this.$=f;this.jg=d?d:MLe(a,this.mL)};t(Zfe,A);
var xag=function(a,b,c,d,f){F5.call(this,a,b,c,d,f);this.uh=UJ(a.ka())};t(xag,F5);xag.prototype.E9=function(a,b){xag.ya.E9.call(this,a,b);if(b.url){var c=this.uh.getImageUrl(b.url,new kB(120,120));a.ZE([new Uw(c)])}a.Wb(b.title||"");a.Ii.Ab=b.assetId;return a};
var k2d=function(a,b,c,d,f){F5.call(this,a,b,c,d,f)};t(k2d,F5);k2d.prototype.Aga=function(a){a=k2d.ya.Aga.call(this,a);var b=this.Ag;b&&(a.parentId=b);b=this.uh;void 0!==b&&(a.gdConvert=b?"true":"false");a.protocol="4";return a};
k2d.prototype.E9=function(a,b){k2d.ya.E9.call(this,a,b);var c=a.Ii,d={},f;a:{f=Qf(b.actions||"[]");for(var h=0;h<f.length;h++){var k=f[h];if("open"==k.actionCategory){f=k.url;break a}}f=void 0}d.url=f;d.id=b.id;f=b.serviceId;d.serviceId="photo"!=f&&Tb(z2d,f)?f:"docs";d.sourceId="0";d.mimeType=b.mimeType;d.name=b.name;h=$1d(b.mimeType);d.type=h;d.description=b.description;d.lastEditedUtc=parseInt(b.lastEditedUtc,10);d.isNew=!0;if(f=b.thumb){f=Qf(f);f.r=!0;if("photo"==h){a:{if(h=b.attributes)if(k=Qf(h))if(h= k.w,k=k.h,h&&k){h=new Kb(h,k);break a}h=void 0}h&&(f.w=h.width,f.h=h.height)}d.thumbs=[f]}a=new Vw(d);a.Ii=c;var m;(c=b.blobRevisions)&&(m=Qf(c));m&&!gb(m)&&(m=m[0].downloadUrl)&&a.setAttribute("downloadUrl",m);return a};
var l2d=function(a,b,c,d){F5.call(this,a,b,c,d)};t(l2d,F5);l2d.prototype.E9=function(a,b){a.Qb=b.id;a.Fs=null;a.$="photo";a.setAttribute("dw",b.width);a.setAttribute("dh",b.height);a.ZE([new Uw("",Number(b.width),Number(b.height),!1)]);return a};var m2d=function(a,b,c,d,f){this.$=a;this.Ag=b;this.Ab=c;this.jg=d;this.$b=f||Gx;this.Ba=new Hd(this);this.Qb=new TC(this.J4a,218,this);this.Sa=[];a=jc(this.Ab);this.Sa.push(this.Ab.appendChild(a.Pa("div","a-Db-ri-Zb")));this.Sa.push(this.Ab.appendChild(a.Pa("div","a-Db-ri-ya")));this.Sa.push(this.Ab.appendChild(a.Pa("div","a-Db-ri-Ja")));this.Sa.push(this.Ab.appendChild(a.Pa("div","a-Db-ri-Qe")));this.mL=a.Pa("div","a-Db-p",a.Pa("div","a-Db-p-aa",this.jg));for(a=0;a<this.Sa.length;a++)On(this.Sa[a],
!1);On(this.mL,!1);this.Ab.insertBefore(this.mL,this.Ab.firstChild)};t(m2d,kd);q=m2d.prototype;q.$fb=!0;q.Ja=function(a){var b=this.Ab;a?this.Ba.Ja(b,"dragenter",this.uka).Ja(b,"dragover",this.uka).Ja(b,"dragleave",this.uka).Ja(b,"drop",this.OTb):this.Ba.nb(b,"dragenter",this.uka).nb(b,"dragover",this.uka).nb(b,"dragleave",this.uka).nb(b,"drop",this.OTb)};q.uka=function(a){this.$b(a)&&(a.Ak().dataTransfer.dropEffect=wd?"move":"copy",this.DU=a.type,this.Qb.Il(),a.preventDefault())};
q.J4a=function(){switch(this.DU){case "dragenter":case "dragover":if(!ve(this.Sa[0]))for(var a=0;a<this.Sa.length;a++)(new dF(this.Sa[a],218)).play();this.$fb&&!ve(this.mL)&&(new dF(this.mL,218)).play();Qn(this.Ab,"a-Db-X");break;case "dragleave":case "drop":if(ve(this.Sa[0]))for(a=0;a<this.Sa.length;a++)(new cF(this.Sa[a],218)).play();this.$fb&&ve(this.mL)&&(new cF(this.mL,218)).play();Rn(this.Ab,"a-Db-X")}}; q.OTb=function(a){this.DU="drop";this.J4a();this.Qb.stop();this.$b(a)&&(this.Ag.Db(a),this.$.od.xk(36));a.preventDefault()};q.qb=function(){y(this.Ba);this.Ba=null;y(this.Qb);this.Qb=null};
var F6e=function(a){return a=""+('<div id="'+r(a.$Tc)+'" class="a-Mi-Fi-ba"></div><table id="'+r(a.l3)+'" cellpadding="0" cellspacing="0" class="a-D-v-ec-Ng"><tr><td class="a-D-v-ec-xd"><table id="'+r(a.FEa)+'" cellpadding="0" cellspacing="0" class="a-D-v-ec"><tbody><tr><td><div class="a-D-v-Bg-Gva">'+yn(a.ZXa)+'</div><div class="a-D-v-Bg-JCa">'+yn(a.YXa)+'</div><div id="'+r(a.UOa)+'"></div></td></tr></tbody></table><div id="'+r(a.jld)+'" style="display:none" class="b-xm a-Mi-la-Ng"><div class="a-Mi-jm">Uploading...</div></div></td></tr></table><div class="a-D-v-Bd-c"><button id="'+ r(a.B6)+'" style="display:none"></button></div>')};
var QAg=function(a,b,c,d,f){F5.call(this,a,b,c,d,f)};t(QAg,F5);QAg.prototype.Aga=function(a){a=QAg.ya.Aga.call(this,a);var b=this.getContext().rd(),c=b.nk(),b=b.ik();c?a.effective_id=c:b&&(a.entity_type="2",a.effective_id=b);return a};QAg.prototype.E9=function(a,b){QAg.ya.E9.call(this,a,b);var c={};c.id=b.photo_id;c.isNew=!0;c.parent=b.albumid;var d={},f=d.r=b.rotation;c.imageData=d;a.zKa(new Vw(c));var c=b.image_url,d=b.width,h=b.height;if(c){if(1==f||3==f)f=d,d=h,h=f;a.ZE([new Uw(WRd(c),d,h,!0)])}return a};
var I5=function(a,b,c){t3.call(this,a,c);this.qSa=tJg(b,a.rd());T$g(this,"vc");this.Xd=b;this.Qr=a.F2a(this.YK());(this.cj=this.p1(c))&&this.ib(this.cj);var d=null;My.DU&&OQd(b)&&(d=dVd(a,c),this.ib(d));this.Naa=d;b=new G_d(a,c);this.ib(b);this.cSa=b;this.getHandler().Ja(a.Sa,"reset",Lp(this.reset,this,0))};t(I5,t3);q=I5.prototype;q.XM=null;q.Pf=null;q.e6=null;q.bQ=null;q.iga=null;var J5=function(a,b){a.jv&&(a.jv.$fb=b)};I5.prototype.YK=function(){return this.Xd.getQuery()};
I5.prototype.p1=function(a){a=new B3(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);a.Pt.setContent("Upload");a.qh(!1);return a};I5.prototype.Xb=function(){return this.getContext().rd().$b};
var K5=function(a,b){var c=a.YK();c||"picasa"!=a.Qr.$b||(c="photo");switch(c){case "docs":c=new k2d(a.getContext(),c,a.Xd,a.Sa,b);a.Xd.getOption("enableUploadConversion")&&(c.uh=!0);break;case "drawings":case "forms":case "document":case "presentation":case "spreadsheet":c=new l2d(a.getContext(),c,a.Xd,a.Sa);break;case "photo":case "photos":case "profile":case "videos":case "youtubebanner":c=new (wg(xg(E.ia(),"oppu")).Sa())(a.getContext(),c,a.Xd,a.Sa,b);break;case "cultural":c=new xag(a.getContext(),
c,a.Xd,a.Sa,b);break;case "dragonflyphotos":c=new QAg(a.getContext(),c,a.Xd,a.Sa,b);break;default:c=new F5(a.getContext(),c,a.Xd,a.Sa,b)}return c};q=I5.prototype;q.Pa=function(){var a=this.cj;a.Pa();var b=this.oT();a.cb().appendChild(b);var c=this.Naa;c&&(c.Pa(),c.cb().appendChild(b),c.ta());this.Kb(a.ta())};q.setActive=function(a,b){I5.ya.setActive.call(this,a,b);this.cj.setActive(a,b);this.Naa&&this.Naa.setActive(a,b);this.jv&&this.jv.Ja(a)};
q.Na=function(){I5.ya.Na.call(this);this.OW();this.Sa.addCallback(this.Lcb,this);this.getHandler().Ja(this.Pf,"lo",this.a8b);S$g(this,"vc");this.dispatchEvent("$e")};
q.Lcb=function(a){if(a){var b=this.Xd.getOption("mimeTypes"),c=this.Xd.getOption("fileExts");a.mI&&(qa(b)&&b?a.mI().accept=b.split(","):qa(c)&&c&&(c=c.toLowerCase(),a.mI().accept=c.split(",")));this.getHandler().Ja(a,"fileremoved",this.yha,!1).Ja(a,"filesselected",this.S_,!1).Ja(a,"allfilescompleted",this.hS,!1).Ja(this.getContext().Mh,"Vn",this.Tub,!1);b=this.getContext().rd().fG();a.JI()&&(this.jv=new m2d(this.getContext(),a,b,"Drop your files to upload here.",Lp(this.b6a,this)),this.jv.Ja(this.g3))}};
q.b6a=function(a){return!this.Xb()&&(a=(a=a.Ak().dataTransfer)&&a.files)&&1<a.length?(this.M1a(),!1):!0};q.M1a=ka;q.yha=function(){W6e(this)};q.S_=function(a,b){!1!==b&&this.cj.qh(!0)};var W6e=function(a){a.Pf.Sa.addCallback(function(a){a=a.Lt();Cd(a,function(a){return""!=a.getPath()})||this.cj.qh(!1)},a)};q=I5.prototype;q.hS=function(){this.WC()};q.ihb=function(){return!0};
q.start=function(){this.bQ.disabled=!0;this.cj.qh(!1);this.Sa.addCallback(function(a){"undefined"!=typeof NY&&a instanceof NY&&a.Q7a();this.Pf.kda();this.ihb()&&a.VM(this.bQ)},this)};q.WC=function(){if(this.getContext().Mh.Hd()==this){var a=G5(this.Pf);a.length?this.getContext().Sa.Sl(a):this.getContext().Sa.oD()}};q.XD=function(){this.start()};q.iL=function(){this.Pf&&this.Pf.dE();this.getContext().Sa.oD()};q.Tub=function(){this.Pf&&(H5(this.Pf,"running")||H5(this.Pf,"scheduled"))&&this.Pf.dE()};
q.a8b=function(a){var b=a.Sa;this.cj.qh(b);nEg(this.cj,!b,a.jg,0)};q.reset=function(a){if(a)Uf(Lp(this.reset,this,0),a,this);else if(this.Sa||this.Pf)this.Sa.addCallback(function(a){a.reset();this.ihb()&&a.Lr(this.bQ)},this),this.bQ.disabled=!1,this.cj.qh(!1),nEg(this.cj,!1),this.Pf.reset(),this.cSa.Oe(),this.getContext().Mh.Cca(!0),this.lWa(!1)};q.lWa=function(a){Pn(this.e6,"a-Fl",a)}; q.qb=function(){I5.ya.qb.call(this);delete this.Qr;this.Pf&&(this.Pf.Ma(),delete this.Pf);this.jv&&(this.jv.Ma(),delete this.jv);delete this.cj;delete this.bQ};q.kt=function(){return this.cj.focus()};q.TP=function(){return this.qSa};
var M5=function(a,b,c){I5.call(this,a,b,c);this.uh=new Un(this.start,500,this);x(this,this.uh);this.$b={};this.mL={Sib:Ce(Be.ia()),Zaa:Ce(Be.ia()),rBa:Ce(Be.ia()),Wkb:Ce(Be.ia())};this.Vb=new F7g(a)};t(M5,I5);M5.prototype.p1=function(a){var b=this.getContext(),c=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);I1d(c);c.qh(!1);b.rd().Vb&&oEg(c,new XX(b,"Insert images",a));return c};
var X6e=function(a,b){b.l3=lh(a,"upload-container");b.B6=lh(a,"select-files-btn");b.FEa=a.mL.Sib;b.UOa=a.mL.Wkb;b.jld=a.mL.rBa;b.$Tc=a.mL.Zaa;b.ZXa=a.Qr.q5;b.YXa=a.Qr.Ab};q=M5.prototype;q.oT=function(){X6e(this,this.$b);var a=this.Ea(),b=a.Pa("div","a-B a-v a-Mi",Uo(this.getContext().ef(),this.kVa(),this.$b));this.Qb=new A3("a-b-xu-xm",a);x(this,this.Qb);EQd(this.Qb);ndc(this.Qb,100);this.Qb.$(0);this.Lh=new kX("",a);x(this,this.Lh);this.Lh.hd("error");return b};q.kVa=function(){return F6e};
q.OW=function(){var a=this.Ea();this.e6=a.ta(this.$b.l3);this.iA=St(this.Qr.$,a);this.iA.render(a.ta(this.mL.Wkb));this.bQ=a=a.ta(this.$b.B6);this.Sa=this.getContext().We().$b(this.YK(),a);this.Pf=K5(this)};
q.Na=function(){M5.ya.Na.call(this);this.Sa.addCallback(function(a){a.Lr(this.iA,!0);a.JI()?(Qn(this.e6,"a-Db-Bg-Cl"),J5(this,!1)):Qn(this.e6,"a-Db-Bg-H2a")},this);Qn(this.ta(),"a-v-c-Fg");this.getHandler().Ja(this.getContext().We(),"ui",this.Ko).Ja(this.Pf,"sm",this.Km);this.iA&&this.getHandler().Ja(this.iA,"action",this.nyd);this.Vk=this.Ea().ta(this.mL.Sib);var a=this.Ea(),b=a.ta(this.mL.rBa),c=a.Pa("div","d-k-l");a.appendChild(b,c);this.Qb.yb(c);this.Lh.render(a.ta(this.mL.Zaa));this.getHandler().Ja(this.Lh.ta(),
"click",this.wid);this.Lh.setVisible(!1)};q.nyd=function(){nEg(this.cj,!1)};q.wid=function(a){if(Sn(a.target,"a-Yd")){if(a=this.fb("a-Mi-Fi-ba"))E3a(a),IUa(a,"live");this.Lh.setVisible(!1);this.kt()}};q.setActive=function(a,b){M5.ya.setActive.call(this,a,b);a&&this.reset()};q.kt=function(){if(this.iA)try{return this.iA.ta().focus(),this.iA.zt(!0),!0}catch(a){}return!1};q.lWa=function(){};
q.hS=function(){var a=this.Pf.Ae()[0],b=this.Qr.Sa;if("success"!=a.Ii.getState())this.reset(),s2d(this,this.Qr.DU);else if(pa(b)&&!eb(b,a.Ra()))this.reset(),s2d(this,"The file you uploaded is not the right type.  Please upload a different file."),"picasa"==a.$&&t2d(this,[a.getId()]);else{a:{if((b=a.Yh())&&b.length){var b=$a(b),c=this.getContext().rd().DU;if(c){b=b.wc()>=c.width&&b.Ic()>=c.height;break a}}b=!0}b?(this.Qb.$(100),b=this.getContext().rd(),b.Ag?"ytcb"==b.Ag?ZRd(a,this.Xd,this.getContext()):
(b=this.getContext(),c=new w3("crop"),BN(c,"id",a.Qe()),BN(c,"parent",a.vt().split(".").pop()),BN(c,"service",a.$),c.Sa=this.Xd,b.Mh.On(c)):this.WC()):(this.reset(),b=this.getContext().rd().DU,s2d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+(" pixels wide and "+(b.height+" pixels tall.")))),t2d(this,[a.getId()]))}};
var s2d=function(a,b){var c=a.Ea(),d=c.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss"),f=Ce(Be.ia()),h="An error occurred. Please try again.";b&&(h=cd(c,b+" "));h=c.Pa("span",{id:f},h);qo(d,"describedby",f);a.Lh.setContent(h);c.appendChild(a.Lh.ta(),d);if(c=a.fb("a-Mi-Fi-ba"))ey(c,h.textContent),po(c,"alert"),qo(c,"live","assertive"),qo(c,"atomic",!0);a.Lh.setVisible(!0);try{d.focus()}catch(k){}},t2d=function(a,b){var c=new ag(void 0,a);c.addCallback(Lp(function(){},a));bg(c,Lp(function(){},
a));var d=new K3("delete","picasa",b,{});a.Vb.OZa(d,c,!0,!0)};M5.prototype.S_=function(){};M5.prototype.Km=function(){u2d(this,!1);this.Lh.setVisible(!1);On(this.Ea().ta(this.mL.rBa),!0);this.uh.start()};M5.prototype.Ko=function(){var a=this.getContext().We().BGa();0<a&&this.Qb.$(100*a)};M5.prototype.iL=function(){this.getContext().Sa.oD()};
var u2d=function(a,b){var c=a.Vk;b?(TB(a.ta(),"a-v-c-Bd","a-v-c-Fg"),Pd(c,"position","relative"),Pd(c,My.Bo()?"right":"left","0")):(TB(a.ta(),"a-v-c-Fg","a-v-c-Bd"),Pd(c,My.Bo()?"right":"left","-10000px"))};M5.prototype.M1a=function(){this.reset();s2d(this,this.Qr.mL)};M5.prototype.reset=function(a){M5.ya.reset.call(this,a);a||(u2d(this,!0),this.Lh.setVisible(!1),On(this.Ea().ta(this.mL.rBa),!1),this.Qb.$(0))};M5.prototype.qb=function(){M5.ya.qb.call(this);delete this.$b};M5.prototype.xna=e(659);

G("sy888");I();
}catch(e){_DumpException(e)}
try{
H("sy892");new Ze("camera_sync",2,"profile_photos",1,"profiles_scrapbook",4,"updates",0);var BVc=new Ze(2,function(){return P("Photos from Auto Backup")},1,UFa,4,VFa,0,function(){return P("Photos from posts")}),DVc=new Ze(5,WFa,4,XFa,3,YFa,6,ZFa,2,$Fa,1,aGa);
G("sy892");I();
}catch(e){_DumpException(e)}
try{
var Gcd=function(){this.Sb=[];this.Sa=this.$=0},Icd=function(a,b,c,d){if(!(0<b.length))throw Error("gg");var f=new Ov;f.update(Mv(c));f.update(b);f.update(a.Sa);a=new Gcd;var f=f.digest(),h;h||(h=f.length);b=a.Sb;for(c=0;256>c;++c)b[c]=c;var k=0;for(c=0;256>c;++c){var k=k+b[c]+f[c%h]&255,m=b[c];b[c]=b[k];b[k]=m}a.$=0;a.Sa=0;h=a.$;f=a.Sa;b=a.Sb;for(c=0;1536>c;++c)h=h+1&255,f=f+b[h]&255,k=b[h],b[h]=b[f],b[f]=k;a.$=h;a.Sa=f;d=Mv(d);var p;p||(p=d.length);h=a.$;f=a.Sa;b=a.Sb;for(c=0;c<p;++c)h=h+1&255,
f=f+b[h]&255,k=b[h],b[h]=b[f],b[f]=k,d[c]^=b[b[h]+b[f]&255];a.$=h;a.Sa=f;if(8192>=d.length)p=String.fromCharCode.apply(null,d);else for(p="",a=0;a<d.length;a+=8192)p+=String.fromCharCode.apply(null,ub(d,a,a+8192));return p},Hcd=function(a,b){var c=new Ov;c.update(Mv(b));c.update(a.Sa);return Yza(c.digest(),!0)},AY=function(a,b){a.Qb.bxa(b);a.dispatchEvent("progress")};q=EY.prototype;q.LTa=g(620,function(a){this.p8&&this.sxa(a)});q.W4a=g(619,function(){return!1});
q.sxa=g(618,function(a){this.O$(a);if("undefined"!=typeof xY&&a instanceof xY){a=a.S2;for(var b=0;b<a.length;b++)this.sxa(a[b])}});q.d5a=g(615,function(){return!1});q.Jaa=g(614,function(){return!1});q.o4a=g(613,function(){return!1});q.cya=g(612,function(a){this.onb=a});q.L1=g(611,function(a){this.kX=a});zY.prototype.aQ=g(610,function(a,b){this.Qb.fq(a,qa(b)?b:b.message);this.dispatchEvent("error")});
zY.prototype.yS=g(609,function(a){this.$b=a||"";var b;try{b=Qf(this.$b)}catch(c){this.aQ("serverinvalidresponse","Invalid response from server.");return}void 0!=b.sessionStatus?(null!=this.Qb.kf&&AY(this,this.Qb.kf),this.dispatchEvent("success")):void 0!=b.errorMessage?this.aQ("serverrejected","Server rejected upload."):this.aQ("serverinvalidresponse","Invalid response from server.")});
var B0e=function(a){return a.tagName?a:a.ta()},JY=function(a,b){a.$.push(b);a.Ag.get(b.getId())||a.Ag.set(b.getId(),a.QWa(b));a.dispatchEvent(new tY("fileadded",b));a.LTa(b)},Ucd=function(a){return a.onb&&a.o4a()},DY=function(a,b){this.o5=a;this.Sa=Mv(b);this.Ab=new oda};t(DY,Ecd);
DY.prototype.set=function(a,b,c){if(ia(b)){for(var d=[],f=0;8>f;++f)d[f]=Math.floor(256*Math.random());b=new Acd(Icd(this,d,a,this.Ab.le(b)));b.salt=d;DY.ya.set.call(this,Hcd(this,a),b,c)}else DY.prototype.remove.call(this,a)};DY.prototype.$=function(a,b){var c=DY.ya.$.call(this,Hcd(this,a),b);if(c){var d=Ccd(c),f=c.salt;if(!qa(d)||!oa(f)||!f.length)throw"Storage: Invalid value was encountered";d=Icd(this,f,a,d);try{c.data=Nf(d)}catch(h){throw"Storage: The value could not be decrypted";}return c}};
DY.prototype.remove=function(a){DY.ya.remove.call(this,Hcd(this,a))};
var ged=function(a,b,c,d){d=d?1:0;a[b+3-3*d]=c&255;a[b+2-d]=c>>8&255;a[b+1+d]=c>>16&255;a[b+3*d]=c>>24&255},eed=function(a,b,c){c=c?1:0;return(a[b+3*c]<<24)+(a[b+1+c]<<16)+(a[b+2-c]<<8)+a[b+3-3*c]},fed=function(a,b,c){c=c?1:0;return(a[b+c]<<8)+a[b+1-c]},ndd=0,MY,ded=function(a){var b=[];if(2>a.byteLength||255!=a[0]||216!=a[1])return[];for(var c=2;c<a.byteLength;){var d=a[c++];if(255!=d)return[];var d=a[c++],f=(a[c]<<8)+a[c+1];switch(d){case 225:var h=a[c+8];b.push({WSc:d,offset:c-2,length:f+2,vPc:69==
a[c+2]&&120==a[c+3]&&105==a[c+4]&&102==a[c+5]&&0==a[c+6]&&0==a[c+7]&&h==a[c+9]&&(73==h||77==h)&&42==fed(a,c+10,73==h)});break;case 236:b.push({WSc:d,offset:c-2,length:f+2});break;case 218:return b;case 216:return[];case 217:return[]}c+=f}return b},Vbd=function(){Ld.call(this);this.$=new FileReader;this.$.onloadstart=Lp(this.fha,this);this.$.onprogress=Lp(this.fha,this);this.$.onload=Lp(this.fha,this);this.$.onabort=Lp(this.fha,this);this.$.onerror=Lp(this.fha,this);this.$.onloadend=Lp(this.fha,this)};
t(Vbd,Ld);q=Vbd.prototype;q.abort=function(){try{this.$.abort()}catch(a){throw new Qbd(a,"aborting read");}};q.YA=function(){return this.$.result};q.getError=function(){return this.$.error&&new Qbd(this.$.error,"reading file")};q.fha=function(a){this.dispatchEvent(new Rbd(a,this))};q.qb=function(){Vbd.ya.qb.call(this);delete this.$};
var Ubd=function(a){var b=new ag;a.Ja("loadend",wa(function(a,b){var f=b.YA(),h=b.getError();null==f||h?a.jd(h):a.By(f);b.Ma()},b,a));return b},Zbd=0,Sbd=function(a){if(!a)return a;ea&&(a=a.replace(/\\/g,"/"));za(a,"/")&&(a=a.substring(0,a.length-1));return a},Gdd=function(a){if(!navigator.plugins||!navigator.plugins.length)return!1;for(var b=0;b<navigator.plugins.length;++b){var c=navigator.plugins[b].description;if(-1!=c.search(/^Java Switchable Plug-in (Cocoa)/)){if(0<=Xa("1.5.0",a))return!0}else if(-1!=
c.search(/^Java/)&&ea&&0<=Xa("1.5.0",a))return!0}return Xa("1.5.0",a)?!0:!1},Fdd=function(a){if(!navigator.mimeTypes)return!1;for(var b=/^application\/x-java-applet\x3Bversion=(1\.8|1\.7|1\.6|1\.5|1\.4\.2)$/,c=0;c<navigator.mimeTypes.length;++c){var d=navigator.mimeTypes[c].type.match(b);if(null!=d&&0<=Xa(d[1],a))return!0}return!1},Edd=function(a){if(!ActiveXObject)return!1;try{return null!=new ActiveXObject("JavaWebStart.isInstalled."+a+".0")}catch(b){return!1}},med=0,hed=function(a,b){A.call(this,
a);this.$=b};t(hed,A);hed.prototype.getItem=function(){return this.$};
var pdd=function(a,b){var c=jc(a);Ve(b,function(b,f){var h=c.Pa("INPUT",{type:"hidden",name:f,value:b});a.appendChild(h)})},odd={},ced=function(a,b,c,d,f){var h=new Uint8Array(a);a=ded(h);if(0==a.length)return null;var k=0;v(a,function(a){k+=a.length});var m=0,p=new Uint8Array(k);v(a,function(a){p.set(h.subarray(a.offset,a.offset+a.length),m);if(a.vPc){for(var k,F=73==p[m+10],M=eed(p,m+14,F)+10,X=2+M,M=X+12*fed(p,M,F);X<M;X+=12){var da=fed(p,X,F);switch(da){case 256:ged(p,X+8,d,F);break;case 257:ged(p,
X+8,f,F);break;case 282:case 283:var Aa=eed(p,X+8,F)+10,Fa=p,Ua=Aa,Va=F;da=eed(p,Aa,F)/eed(p,Aa+4,F)*(282==da?d/b:f/c);if(osa(da))da=[da,1];else{for(var Aa=0>da,da=Math.abs(da),Ma=1,Ya=1,Eb=0,Ob=0,bc=void 0;1E7>=Ob*(bc=Math.floor(da))+Ya;){var Fb=Ma*bc+Eb,Eb=Ma,Ma=Fb,Fb=Ob*bc+Ya,Ya=Ob,Ob=Fb,bc=da-bc;if(1E-6>bc)break;da=1/bc;if(2147483647<bc)break}da=[Aa?-Ma:Ma,Ob]}ged(Fa,Ua,da[0],Va);ged(Fa,Ua+4,da[1],Va);break;case 34665:k=eed(p,X+8,F)+10}}if(k)for(F=73==p[m+10],X=2+k,k=X+12*fed(p,k,F);X<k;X+=12)switch(fed(p,
X,F)){case 40962:ged(p,X+8,d,F);break;case 40963:ged(p,X+8,f,F)}}m+=a.length});return p},n_e=function(){};n_e.prototype.$=function(a,b){var c=b.getContext("2d");c.drawImage(a,0,0,b.width,b.height);if(Zq&&0<=Xa(vOa,18)){for(var d=!1,f=0;100>f;f++){var h;try{h=c.getImageData(Kaa(b.width),Kaa(b.height),1,1).data}catch(k){break}if(h&&(0!=h[0]||0!=h[1]||0!=h[2])){d=!0;break}}c=d}else c=!0;return c?jg():Oda(Error("pj"))};
var kcd=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}},jcd=function(a){var b=new Vbd,c=Ubd(b);
b.$.readAsArrayBuffer(a);return c},cYa=function(a,b,c){ia(c)||(c=a.size);return a.webkitSlice?a.webkitSlice(b,c):a.mozSlice?a.mozSlice(b,c):a.slice?wd&&!Gf("13.0")||xd&&!Gf("537.1")?(0>b&&(b+=a.size),0>b&&(b=0),0>c&&(c+=a.size),c<b&&(c=b),a.slice(b,c-b)):a.slice(b,c):null},wY=function(a,b,c,d,f,h){Ld.call(this);this.Fs=Zbd++;this.DU=Wa();this.Ab=Sbd(a)||"";this.kf=null!=b?b:null;this.$b=new Ze;this.Qb=Sbd(c);this.$=d;this.Sa=null;this.Ag={};new Ze;this.Vb=h||null};t(wY,Ld);q=wY.prototype;q.PB=0;
q.HUa="noerror";q.F5a="";q.i8=null;q.Yla=null;q.Epa=null;q.toa=null;q.Zka=null;q.GUa=null;q.e4a=!1;q.dob=0;q.Uoa=!1;q.L6a=function(){this.PB=0;this.HUa="noerror";this.F5a="";this.GUa=this.Zka=this.toa=this.Epa=this.Yla=this.i8=null;this.dob++};q.getId=function(){return String(this.Fs)};var $bd=function(a){return a.$};q=wY.prototype;q.getName=function(){var a=this.uaa();return this.Qb?this.Qb+"/"+a:a};q.getExtension=function(){var a=this.getName(),b=a.lastIndexOf(".");return 0>b?null:a.substr(b+1)};
q.Eaa=function(){if(!this.kf)return null;var a=new Ov;a.update(Mv(this.Ab+"|"+this.kf));return Wbd(a.digest())};q.uaa=function(){return this.Ab.split("/").pop()};q.getPath=function(){return this.Ab};q.bxa=function(a){this.PB=a};q.fq=function(a,b){this.HUa=a;this.F5a=b||""};q.D_=function(){return this.HUa};q.Oi=function(){return this.$b};q.UYa=function(a){this.i8=a};q.dNb=function(a){this.Yla=a};q.JYa=function(a){this.Epa=a};q.c2=function(){return this.Epa?this.Epa:this.i8};
q.oxa=function(a){this.toa=a};q.Cu=function(){return this.toa};q.gxa=function(a){this.Zka=a};q.M6a=function(a){this.GUa=a};q.Q9=function(){return this.GUa};q.jxa=function(a){this.Ag=a};q.TMb=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],f=d.indexOf(":");0>f||(b[d.substring(0,f)]=d.substring(f+2,d.length))}new Ze(b)};q.CYa=function(a){if(this.uh=a)this.kf=a.size};q.GMb=function(a){this.Uoa=a};q.cQ=function(){return this.Uoa};
q.toString=function(){return["File(id:",this.Fs,", path:",this.Ab,", relativeDirectoryPath:",this.Qb,", selectionId:",this.$,", bytesTransferred:",this.PB,", bytesTotal:",this.kf,")"].join("")};q.rI=function(){return this.Vb};var Mdd=function(){this.$=-1;this.$=64;this.Sa=Array(4);this.Qb=Array(this.$);this.mL=this.Ab=0;this.reset()};t(Mdd,eAa);Mdd.prototype.reset=function(){this.Sa[0]=1732584193;this.Sa[1]=4023233417;this.Sa[2]=2562383102;this.Sa[3]=271733878;this.mL=this.Ab=0};
var Ndd=function(a,b,c){c||(c=0);var d=Array(16);if(qa(b))for(var f=0;16>f;++f)d[f]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(f=0;16>f;++f)d[f]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.Sa[0];c=a.Sa[1];var f=a.Sa[2],h=a.Sa[3],k=0,k=b+(h^c&(f^h))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[1]+3905402710&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[2]+606105819&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+
(b^f&(h^b))+d[3]+3250441966&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[5]+1200080426&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[6]+2821735955&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[7]+4249261313&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[9]+2336552879&4294967295;h=b+(k<<12&4294967295|k>>>
20);k=f+(c^h&(b^c))+d[10]+4294925233&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[11]+2304563134&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[13]+4254626195&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[14]+2792965006&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[15]+1236535329&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(f^h&(c^f))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=h+(c^f&(b^c))+d[6]+3225465664&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[11]+643717713&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[0]+3921069994&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(f^h&(c^f))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[10]+38016083&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[15]+3634488961&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[4]+3889429448&4294967295;c=f+(k<<20&4294967295|
k>>>12);k=b+(f^h&(c^f))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[14]+3275163606&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[3]+4107603335&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[8]+1163531501&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(f^h&(c^f))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[2]+4243563512&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[7]+1735328473&4294967295;f=h+(k<<14&4294967295|
k>>>18);k=c+(h^b&(f^h))+d[12]+2368359562&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(c^f^h)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[8]+2272392833&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[11]+1839030562&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[14]+4259657740&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[4]+1272893353&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^
b^c)+d[7]+4139469664&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[10]+3200236656&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[0]+3936430074&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[3]+3572445317&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[6]+76029189&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[12]+3873151461&4294967295;
h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[15]+530742520&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[2]+3299628645&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(f^(c|~h))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[7]+1126891415&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[14]+2878612391&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[5]+4237533241&4294967295;c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[3]+2399980690&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[10]+4293915773&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[1]+2240044497&4294967295;c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[15]+4264355552&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[6]+2734768916&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[13]+1309151649&4294967295;
c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[11]+3174756917&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[2]+718787259&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[9]+3951481745&4294967295;a.Sa[0]=a.Sa[0]+b&4294967295;a.Sa[1]=a.Sa[1]+(f+(k<<21&4294967295|k>>>11))&4294967295;a.Sa[2]=a.Sa[2]+f&4294967295;a.Sa[3]=a.Sa[3]+h&4294967295};
Mdd.prototype.update=function(a,b){ia(b)||(b=a.length);for(var c=b-this.$,d=this.Qb,f=this.Ab,h=0;h<b;){if(0==f)for(;h<=c;)Ndd(this,a,h),h+=this.$;if(qa(a))for(;h<b;){if(d[f++]=a.charCodeAt(h++),f==this.$){Ndd(this,d);f=0;break}}else for(;h<b;)if(d[f++]=a[h++],f==this.$){Ndd(this,d);f=0;break}}this.Ab=f;this.mL+=b};
Mdd.prototype.digest=function(){var a=Array((56>this.Ab?this.$:2*this.$)-this.Ab);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.mL,b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.Sa[b]>>>d&255;return a};var Kdd=function(a,b){Ld.call(this);this.Qb=a;this.$b=this.Ab=null;this.Sa=0;this.DU=b||5E6;this.$=null};t(Kdd,Ld);
Kdd.prototype.hash=function(a){this.abort();this.Qb.reset();this.Ab=a;this.$b=null;this.Sa=0;this.dispatchEvent("started");Ldd(this)};Kdd.prototype.abort=function(){this.$&&(this.$.abort(),this.$=null);this.Ab&&(this.Ab=null,this.dispatchEvent("abort"))};
var Ldd=function(a){if(a.Sa<a.Ab.size)if(Infinity<=a.Sa)a.dispatchEvent("throttled");else{a.$=new FileReader;a.$.onload=Lp(a.Ag,a);a.$.onerror=Lp(a.mL,a);var b=Math.min(Infinity,a.Ab.size),b=Math.min(b-a.Sa,a.DU),c=cYa(a.Ab,a.Sa,a.Sa+b);c&&c.size==b?a.$.readAsArrayBuffer?a.$.readAsArrayBuffer(c):a.$.readAsBinaryString?a.$.readAsBinaryString(c):a.mL():a.mL()}else a.$b=a.Qb.digest(),a.Ab=null,a.dispatchEvent("complete")};
Kdd.prototype.Ag=function(){var a=null;this.$.result instanceof Array||qa(this.$.result)?a=this.$.result:ha.ArrayBuffer&&ha.Uint8Array&&this.$.result instanceof ArrayBuffer&&(a=new Uint8Array(this.$.result));a?(this.Qb.update(a),this.Sa+=a.length,this.$=null,this.dispatchEvent("progress"),Ldd(this)):this.mL()};Kdd.prototype.mL=function(){this.Ab=this.$=null;this.dispatchEvent("error")};var OY=function(){Wf.call(this);this.Ba=new Hd(this)};t(OY,Wf);
OY.prototype.Ko=function(){var a=OY.ya.Ko.call(this);this.Ba.Ja(a.upload,"progress",this.dispatchEvent);return a};OY.prototype.qb=function(){OY.ya.qb.call(this);y(this.Ba)};var Odd=function(a){zY.call(this,a);this.request=null;this.Vk=0;this.Sb="default";this.$=null;this.jg=!1;this.mL=null};t(Odd,zY);Odd.prototype.abort=function(){C0e(this);this.Sb="default"};var C0e=function(a){Qdd(a);a.request&&(a.request.abort(),a.request=null)};
Odd.prototype.Sa=function(a){var b=new Ze;b.set("X-HTTP-Method-Override","PUT");b.set("Content-Type","application/octet-stream");b.set("X-GUploader-No-308","yes");var c=this.getFile().kf,d=this.getFile().PB,f=Math.min(d+104857600,c)-1,h=c?new QG(d,f):null;d<=f&&(0==d&&f==c-1||b.set("Content-Range","bytes "+d+"-"+f+"/"+c));this.Yy(a,b,h);this.Sb="transfer"};Odd.prototype.pause=function(){if("default"==this.Sb)throw Error("lg");C0e(this);this.Sb="paused"};
var PLd=function(a,b,c){Qdd(a);a.mL=Uf(function(){this.mL=null;b.call(this)},c,a)},Qdd=function(a){null!=a.mL&&(Vf(a.mL),a.mL=null)};Odd.prototype.Vb=function(){this.request=new Wf;this.getHandler().Ja(this.request,"readystatechange",this.Km);this.Sb="query";this.request.send(this.getFile().i8,"POST","",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.getFile().kf})};
Odd.prototype.Km=function(){switch(Zf(this.request)){case 1:case 2:case 3:case 0:break;case 4:this.uh();break;default:this.aQ("exception","Unknown request state")}};
Odd.prototype.uh=function(){var a=this.request.Lq();this.$b=a;var b=Vdd(this),c=Fda(this.request);switch(b){case 308:a:{a=!1;if(b=this.request.getResponseHeader("Range")||null)(c=/^bytes=(\d+)-(\d+)$/.exec(b))||this.aQ("serverinvalidresponse","Illegal Range header: "+b),b=Number(c[2]),b>=this.Vk&&(this.$=null,a=!0),this.Vk=b+1,AY(this,b+1);else if("query"==this.Sb)this.Vk=0,AY(this,0);else{this.Vb();break a}a?this.Sa(this.DU):R$g(this,Lp(this.Sa,this,this.DU))}break;case 200:this.yS(a);break;case 408:case 500:case 502:case 503:case 504:this.jg?
Sdd(this):this.aQ("networkerror",c);break;default:this.aQ("networkerror",c)}};var Sdd=function(a){switch(a.Sb){case "transfer":a.Vb();break;case "query":R$g(a,Lp(a.Vb,a));break;default:a.aQ("exception","Illegal state while handling retryable error")}},R$g=function(a,b){null==a.$?(a.$=5E3,a.dispatchEvent("backoff")):(a.$*=2,6E4<=a.$&&(a.$=6E4));PLd(a,b,a.$)};Odd.prototype.yS=function(a){Odd.ya.yS.call(this,a);this.Sb="default";this.$=null};
Odd.prototype.aQ=function(a,b){Odd.ya.aQ.call(this,a,b);this.Sb="default";this.$=null};
var Vdd=function(a){var b;try{b=a.request.getResponseHeader("X-HTTP-Status-Code-Override")||null}catch(c){b=null}b=parseInt(b,10);return isFinite(b)?b:a.request.getStatus()},Ddd=function(){if(xc){if(Edd("1.7.0"))return"1.7.0";if(Edd("1.6.0"))return"1.6.0";if(Edd("1.5.0"))return"1.5.0";if(Edd("1.4.2"))return"1.4.2"}else if(wd||gc||xd){var a;a:{for(a=0;a<navigator.mimeTypes.length;++a){var b=navigator.mimeTypes[a].type.match(/^application\/x-java-applet;jpi-version=(.*)$/);if(null!=b){a=b[1];break a}}a=
null}if(null!=a)return a;if(Fdd("1.7"))return"1.7.0";if(Fdd("1.6"))return"1.6.0";if(Fdd("1.5"))return"1.5.0";if(Fdd("1.4.2"))return"1.4.2";if(xd){if(Gdd("1.7.0"))return"1.7.0";if(Gdd("1.6"))return"1.6.0";if(Gdd("1.5"))return"1.5.0";if(Gdd("1.4.2"))return"1.4.2"}}return null},led=function(a,b){Ld.call(this);this.mL=a;this.Sa=b;this.Fs=med++};t(led,Ld);q=led.prototype;q.Wpa=!1;q.K9b=void 0;
q.start=function(){this.dispatchEvent(new hed("Rl",this));var a=this.Ab=document.createElement("img");a.onload=Lp(this.Fub,this);a.onerror=Lp(this.Vec,this);a.src=Wrd(this.mL)};q.Fub=function(){bg(ned(this),this.Zxa,this).addCallback(this.Ptb,this)};q.Ptb=function(){if(this.Sa.Ab&&this.Wpa){var a=jcd(this.mL);a.addCallback(function(a){var c;try{var d=this.tf();this.Qb=(c=ced(a,this.Ab.width,this.Ab.height,d.width,d.height))?c:void 0}catch(f){}this.Zxa()},this);bg(a,this.Zxa,this)}else this.Zxa()};
q.Vec=function(){this.dispatchEvent(new hed("Tl",this))};q.Zxa=function(){this.mL=null;this.dispatchEvent(new hed("Sl",this))};
var ned=function(a){var b=new Kb(a.Ab.width,a.Ab.height);a.Sa.$&&!Mb(b,a.Sa.tf())&&(b.Cr(a.Sa.tf()).round(),a.Wpa=!0);if(a.Sa.Sa){var c=(0,a.Sa.Sa)(b);a.Wpa=!Naa(c,b);b=c}var d=document.createElement("canvas");d.width=b.width;d.height=b.height;c=(new n_e).$(a.Ab,d);c.addCallback(function(){this.$=d.toDataURL("image/jpeg",this.Sa.mL/100);this.K9b=b},a);bg(c,function(){this.Wpa=!1},a);return c};led.prototype.tf=function(){return this.K9b};
var D0e=function(a){if(a.$&&"data:"==a.$.substr(0,5)){var b=a.$.indexOf(",");if(0<b){var c=a.$.substr(5,b-5).split(";"),b=a.$.substr(b+1);"base64"===c[c.length-1]&&(b=window.atob(b));try{var d;a:{var c=b,f=a.Qb,b=a=0,h;if(f){for(h=0;h<c.length;){var k=c.charCodeAt(h++);if(255!=k)break;k=c.charCodeAt(h++);if(216==k)a=b=h;else if(224==k)a=b=h+=((c.charCodeAt(h)&255)<<8)+(c.charCodeAt(h+1)&255);else{225==k&&(a=h-2,b=h+((c.charCodeAt(h)&255)<<8)+(c.charCodeAt(h+1)&255));break}}if(0==a){d=null;break a}}var m=
f?f.length:0,p=new Uint8Array(c.length+m);h=0;var u;for(u=0;u<a;u++,h++)p[h]=c.charCodeAt(u)&255;for(u=0;u<m;u++,h++)p[h]=f[u]&255;for(u=b;u<c.length;u++,h++)p[h]=c.charCodeAt(u)&255;d=icd(p.buffer)}return d}catch(z){}}}return null};led.prototype.qb=function(){var a=this.Ab,b=a.src;a.onload=a.onerror=null;lhd().revokeObjectURL(b);delete this.Sa;delete this.Ab;delete this.$;delete this.Qb};var ked,mdd=function(){Ld.call(this);this.hE="closure_frame"+ndd++;this.Ab=[];odd[this.hE]=this};t(mdd,Ld);
q=mdd.prototype;q.Du=null;q.bB=null;q.maa=null;q.tUc=0;q.rG=!1;q.m2=!1;q.VGa=!1;q.LJa=null;q.z$=0;q.laa=null;
q.send=function(a,b,c,d){if(this.rG)throw Error("kg");a=new Af(a);b=b?b.toUpperCase():"GET";c&&$ca(a);MY||(MY=vc("FORM"),MY.acceptCharset="utf-8",c=MY.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(MY));this.Du=MY;"GET"==b&&pdd(this.Du,a.$);d&&pdd(this.Du,d);this.Du.action=a.toString();this.Du.method=b;rdd(this);E0e(this)};
var qdd=function(a,b,c){if(a.rG)throw Error("kg");c=new Af(c||b.action);a.Du=b;a.Du.action=c.toString();rdd(a)};q=mdd.prototype;q.abort=function(a){if(this.rG){var b=BEe(this);Bd(b);this.VGa=this.rG=this.m2=!1;this.z$=a||7;this.dispatchEvent("abort");tdd(this)}};q.qb=function(){this.rG&&this.abort();mdd.ya.qb.call(this);this.bB&&udd(this);E0e(this);this.Du=null;delete this.$b;this.LJa=this.Du=null;this.z$=0;delete odd[this.hE]};q.rl=function(){return this.m2};q.Cod=function(){return this.VGa};
q.Ad=function(){return this.rG};q.Lq=function(){return this.LJa};q.GGa=function(){return Nf(this.LJa)};q.D_=function(){return this.z$};q.sra=function(){return kcd(this.z$)};
var rdd=function(a){a.rG=!0;a.m2=!1;a.z$=0;a.maa=a.hE+"_"+(a.tUc++).toString(36);var b={name:a.maa,id:a.maa};xc&&7>nf&&(b.src='javascript:""');a.bB=jc(a.Du).Pa("IFRAME",b);b=a.bB.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";xd?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if(xc&&!Gf("11")){a.Du.target=a.maa||"";jc(a.Du).La().body.appendChild(a.bB);ud(a.bB,"readystatechange",a.mL,!1,a);try{a.Sa=!1,a.Du.submit()}catch(c){zd(a.bB,"readystatechange",
a.mL,!1,a),F0e(a,1)}}else{jc(a.Du).La().body.appendChild(a.bB);var b=a.maa+"_inner",d=Pc(a.bB),f;document.baseURI?(f=La(b),f=FSa(S4a("Short HTML snippet, input escaped, safe URL, for performance"),'<head><base href="'+La(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>')):(f=La(b),f=FSa(S4a("Short HTML snippet, input escaped, for performance"),'<body><iframe id="'+f+'" name="'+f+'"></iframe>'));gc?oNa(d.documentElement,f):d.write(I7a(f));ud(d.getElementById(b),"load",a.$,
!1,a);var h=a.Du.getElementsByTagName("TEXTAREA");f=0;for(var k=h.length;f<k;f++){var m=h[f].value;Vc(h[f])!=m&&(Rc(h[f],m),h[f].value=m)}h=d.importNode(a.Du,!0);h.target=b;h.action=a.Du.action;d.body.appendChild(h);var m=a.Du.getElementsByTagName("SELECT"),p=h.getElementsByTagName("SELECT");f=0;for(k=m.length;f<k;f++)for(var u=m[f].getElementsByTagName("OPTION"),z=p[f].getElementsByTagName("OPTION"),F=0,M=u.length;F<M;F++)z[F].selected=u[F].selected;m=a.Du.getElementsByTagName("INPUT");p=h.getElementsByTagName("INPUT");
f=0;for(k=m.length;f<k;f++)if("file"==m[f].type&&m[f].value!=p[f].value){a.Du.target=b;h=a.Du;break}try{a.Sa=!1,h.submit(),d.close(),wd&&Uf(a.DU,250,a)}catch(X){zd(d.getElementById(b),"load",a.$,!1,a),d.close(),F0e(a,2)}}};mdd.prototype.mL=function(){if("complete"==this.bB.readyState){zd(this.bB,"readystatechange",this.mL,!1,this);var a;try{if(a=Pc(this.bB),xc&&"about:blank"==a.location&&!navigator.onLine){F0e(this,9);return}}catch(b){F0e(this,1);return}sdd(this,a)}};
mdd.prototype.$=function(){if(!gc||"about:blank"!=(this.bB?Pc(BEe(this)):null).location){zd(BEe(this),"load",this.$,!1,this);try{sdd(this,this.bB?Pc(BEe(this)):null)}catch(a){F0e(this,1)}}};
var sdd=function(a,b){a.m2=!0;a.rG=!1;var c;try{var d=b.body;a.LJa=d.textContent||d.innerText}catch(f){c=1}c||"function"!=typeof a.$b||(d=a.$b(b))&&(c=4);c?F0e(a,c):(a.VGa=!0,a.z$=0,a.dispatchEvent("complete"),a.dispatchEvent("success"),tdd(a))},F0e=function(a,b){a.Sa||(a.VGa=!1,a.rG=!1,a.m2=!0,a.z$=b,a.dispatchEvent("complete"),a.dispatchEvent("error"),tdd(a),a.Sa=!0)},tdd=function(a){udd(a);E0e(a);a.Du=null;a.dispatchEvent("ready")},udd=function(a){var b=a.bB;b&&(b.onreadystatechange=null,b.onload=
null,b.onerror=null,a.Ab.push(b));a.laa&&(Vf(a.laa),a.laa=null);wd||gc?a.laa=Uf(a.Qb,2E3,a):a.Qb();a.bB=null;a.maa=null};mdd.prototype.Qb=function(){this.laa&&(Vf(this.laa),this.laa=null);for(;0!=this.Ab.length;){var a=this.Ab.pop();Fc(a)}};var E0e=function(a){a.Du&&a.Du==MY&&zc(a.Du)},BEe=function(a){return a.bB?xc&&!Gf("11")?a.bB:Pc(a.bB).getElementById(a.maa+"_inner"):null};
mdd.prototype.DU=function(){if(this.rG){var a=this.bB?Pc(BEe(this)):null;a&&!Gba(a,"documentUri")?(zd(BEe(this),"load",this.$,!1,this),navigator.onLine?F0e(this,3):F0e(this,9)):Uf(this.DU,250,this)}};var xY=function(a,b,c,d,f,h,k){wY.call(this,a,b,c,d);this.mL=f;this.jg=k;this.S2=[];this.Yub={};this.Vk=[]};t(xY,wY);
var lcd=function(a,b){"."==b.uaa()?a.Vk.push(b):(a.S2.push(b),a.Yub[b.uaa()]=a.S2.length-1)},mcd=function(a){for(var b=0,c=1,d=0,f=a.S2,h=0;h<f.length;h++){var k=f[h];if("undefined"!=typeof xY&&k instanceof xY){var m=k;mcd(m);b+=m.mL;c+=m.jg}else b+=1;d+=k.kf}a.kf=d;a.mL=b;a.jg=c},CMg=["classid","data","movie","type","typemustmatch"],EMg=function(a,b){var c={},d;for(d in a)c[d]=a[d];for(d in b){var f=d.toLowerCase();f in a&&delete c[f];c[d]=b[d]}f=[];for(d in c)f.push(tNa("param",{name:d,value:c[d]}));
return f},DMg=function(a,b,c){var d=function(a,b,c){for(var d in b)for(var p=d.toLowerCase(),u=0;u<a.length;u++){var z=a[u];if(p==z)throw Error("xd`"+z+"`"+c+"`"+d+"`"+b[d]);}};d(a,b,"attribute");d(a,c,"param")},PY=function(a,b){Odd.call(this,a);this.Ag=b;this.Ab=null};t(PY,Odd);
PY.prototype.Yy=function(a,b,c){this.request=new OY;var d=c?c.start:0;this.getHandler().Ja(this.request,"readystatechange",this.Km).Ja(this.request,"progress",function(a){AY(this,d+a.Ak().loaded)});var f=this.Ag;c&&(f=cYa(this.Ag,c.start,c.end+1));this.request.send(a,"POST",f,b)};PY.prototype.uh=function(){0==Vdd(this)?this.jg?Sdd(this):this.aQ("networkerror","network error"):PY.ya.uh.call(this)};PY.prototype.abort=function(){this.Ab&&this.Ab.abort();PY.ya.abort.call(this)};
PY.prototype.tWa=function(a,b){var c=new Mdd;this.Ab=new Kdd(c);var d=this;ud(this.Ab,"complete",function(){var a=d.Ab.$b;d.Ab=null;b(Wbd(a))});c=cYa(this.Ag,0,a);this.Ab.hash(c)};var Wdd=function(a,b){zY.call(this,a);this.$=b};t(Wdd,zY);Wdd.prototype.mL=null;
Wdd.prototype.Sa=function(a){var b=new OY;this.mL=b;this.getHandler().Ja(b,"success",function(){this.yS(b.Lq())}).Ja(b,"error",function(){this.aQ(hcd(b.D_()),b.sra())}).Ja(b,"progress",function(a){AY(this,a.Ak().loaded)});b.send(a,"POST",this.$,{"Content-Type":this.$.type||"application/octet-stream"})};Wdd.prototype.abort=function(){this.mL.abort()};var Ked=1,Cdd=function(a,b){zY.call(this,a);this.$=b;this.mL=!1;this.Ab=null};t(Cdd,zY);
Cdd.prototype.abort=function(){this.mL&&(this.$.abortUpload($bd(this.getFile())),window.clearInterval(this.Ab))};Cdd.prototype.Sa=function(a){switch(String(this.$.startUpload(a,$bd(this.getFile()),5242880))){case "SUCCESS":this.Ab=window.setInterval(Lp(Cdd.prototype.Ag,this),50);this.mL=!0;break;case "INVALID_URL":this.aQ("exception","A Url with an invalid domain was detected: "+a);break;case "UNKNOWN_ERROR":case "MISSING_SELECTION":this.aQ("exception","There was a client error with the upload.")}};
Cdd.prototype.Ag=function(){var a=this.getFile(),b=Nf(this.$.getProgress(a.$));b||(window.clearTimeout(this.Ab),this.aQ("exception","Unable to obtain file upload progress from java plugin."),this.$.freeResources(a.$));var c=b.state,d=b.bytesTransfered;b.bytesTotal&&(a.kf=b.bytesTotal);switch(c){case "COMPLETE":window.clearTimeout(this.Ab);AY(this,d);this.yS(this.$.readServerResponse(a.$));this.$.freeResources(a.$);break;case "IN_PROGRESS":AY(this,d);break;case "CLIENT_ERROR":window.clearTimeout(this.Ab),
this.aQ("exception","There was a client error with the upload."),this.$.freeResources(a.$)}};var jed=function(){if(!ia(ked)){ked=!1;try{if(fYa()&&document.createElement("canvas").getContext)return lhd().revokeObjectURL(""),ked=!0}catch(a){}}return ked},ied=function(){kd.call(this);this.Sa=0;this.$=new Rh;this.Ba=new Hd(this);x(this,this.Ba)};t(ied,kd);ied.prototype.start=function(a,b){var c=new led(a,b);Sh(this.$,c);v_e(this);return c};
var v_e=function(a){if(!a.$.isEmpty()&&1>a.Sa){var b=oo(a.$);a.Ba.Ja(b,["Rl","Sl","Tl"],a.Ab);a.Sa++;Uf(Lp(b.start,b),0)}};ied.prototype.Ab=function(a){if("Sl"==a.type||"Tl"==a.type)this.Sa--,this.Ba.removeAll(),Uf(function(){a.getItem().Ma();v_e(this)},0,this)};var ydd=function(a,b,c){zY.call(this,a);this.Vk=b;this.$=this.mL=null;this.uoa=c||0;this.Ag=this.jg=0};t(ydd,zY);ydd.prototype.abort=function(){this.mL.abort()};
ydd.prototype.Sa=function(a){var b=new mdd;this.mL=b;this.getHandler().Ja(b,"success",this.Vb).Ja(b,"error",function(b){var d;var f=window.location.href;d=HZ(1,a);var h=Zpa(a),k=Hca(a);if(d||h||k){var m=HZ(1,f),p=Zpa(f),f=Hca(f);d=m||p||f?d==m&&h==p&&k==f:!0}else d=!0;d?this.uh(b):zdd(this,Lp(this.Vb,this),Lp(this.uh,this))});qdd(b,this.Vk,a);Uf(this.Ab,5E3,this);this.Ag=(new Date).getTime()};
ydd.prototype.Vb=function(a){try{var b=a.target.Lq(),c=(b&&Qf(b)).sessionStatus;if(c){var d=c.externalFieldTransfers[0],f=this.getFile();null==f.kf&&(f.kf=d.bytesTotal,f.e4a=!1)}}catch(h){}this.yS(a.target.Lq()||"")};ydd.prototype.uh=function(a){this.aQ(hcd(a.target.D_()),a.target.sra())};var zdd=function(a,b,c){var d=new Wf;a.getHandler().Ja(d,"success",b).Ja(d,"error",c);try{var f=a.getFile().i8;d.send(f,"GET")}catch(h){}};
ydd.prototype.Ab=function(){this.mL.Ad()&&zdd(this,Lp(this.Ko,this),Lp(this.Km,this))};
ydd.prototype.Ko=function(a){if(this.mL.Ad()){try{var b=Qf(a.target.Lq()).sessionStatus.externalFieldTransfers[0],c=b.bytesTransferred,d=this.getFile();if(null==d.kf)if(0<b.bytesTotal)d.kf=b.bytesTotal,d.e4a=!0;else{Uf(this.Ab,15E3,this);return}var f=d.kf;null!=this.$&&this.$.stop(!1);var h=(new Date).getTime();if(0<this.jg||0==this.uoa)this.uoa=Math.round((c-this.jg)/(h-this.Ag));this.jg=c;this.Ag=h;a=15500;var k=d.PB,m=Math.round(c+a*this.uoa);m>f&&(m=f,a=Math.round((f-c)/this.uoa)+500);this.$=
new ao([k],[m],a,eo);this.getHandler().Ja(this.$,"animate",Lp(function(a){AY(this,Math.round(a.x))},this));this.$.play()}catch(p){}this.mL.Ad()&&Uf(this.Ab,15E3,this)}};ydd.prototype.Km=function(){this.mL.Ad()&&Uf(this.Ab,15E3,this)};ydd.prototype.qb=function(){ydd.ya.qb.call(this);y(this.$)};var hdd=function(a){idd.get(a)(a)},gdd=1,cdd=function(a,b,c){zY.call(this,a);this.mL=b;this.$=c;this.Ab=!1};t(cdd,zY);cdd.prototype.abort=function(){this.Ab&&ta(this.$.cancelUpload)&&this.$.cancelUpload(this.mL.id)};
cdd.prototype.Sa=function(a){this.$.startUpload(this.mL.id,a);this.Ab=!0};var zN=function(a,b){this.nn=b;this.Qb=[];this.$b=[];this.Sa=[];this.Ab=this.$=0;this.mL=!1;for(var c=0;c<a.length;c++){var d=a[c];if("file"==d.kind){var f=d.webkitGetAsEntry();f.isFile?this.Qb.push(d.getAsFile()):(this.Sa.push(f),this.$b.push(qwe(f)))}}};zN.prototype.start=function(){this.mL=!1;lwe(this)};zN.prototype.stop=function(){this.mL=!0};
var lwe=function(a){if(!a.mL){for(;1>a.$&&0<a.Sa.length;){a.$++;var b=a.Sa.shift().createReader();b.readEntries(Lp(a.Ag,a,b),Lp(a.DU,a))}Sze(a)}};zN.prototype.Ag=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.isFile?(this.Ab++,d.file(Lp(this.uh,this,d.fullPath),Lp(this.jg,this))):(this.Sa.push(d),this.$b.push(qwe(d)))}0==b.length||this.mL?(this.$--,lwe(this)):a.readEntries(Lp(this.Ag,this,a),Lp(this.DU,this))};var qwe=function(a){a=a.fullPath;za(a,"/")||(a+="/");return hJe(a)};
zN.prototype.DU=function(){this.$--;lwe(this)};zN.prototype.uh=function(a,b){this.Ab--;a=hJe(a);b.relativePath=a;this.Qb.push(b);Sze(this)};var hJe=function(a){a&&ya(a,"/")&&(a=a.substring(1));return a};zN.prototype.jg=function(){this.Ab--;Sze(this)};
var Sze=function(a){0==a.$&&0==a.Ab&&0==a.Sa.length&&a.nn(a.Qb,a.$b)},Xdd=function(a){if(0==a.length)return null;for(var b={},c=[],d=[],f=0;f<a.length;f++){var h=a[f],k=h.getPath(),m=k.substring(0,k.indexOf("/"));if(0==m.length)d.push(h);else{var p=b[m];p||(p=new xY(m),b[m]=p,c.push(p));k=k.substring(0,k.lastIndexOf("/"));h.Qb=Sbd(k);h.Sa=p;for(var k=k.split("/"),m=p,u=1;u<k.length;u++){var z=k[u],F;F=m.Yub[z];F=void 0!=F?m.S2[F]:null;F||(F=new xY(z,void 0,k.slice(0,u).join("/")),F.Sa=p,lcd(m,F));
m=F}lcd(m,h)}}for(f=0;f<c.length;f++)mcd(c[f]);return c.concat(d)},Kcd=function(a){this.file=a};t(Kcd,Jcd);Kcd.prototype.$=null;Kcd.prototype.Sa="";var uY=function(a,b,c){A.call(this,a,c);this.XM=b};t(uY,A);var Xbd=function(a,b,c,d){tY.call(this,"filepreviewready",a,d);this.Sa=b;this.$=c||null};t(Xbd,tY);var vY=function(a,b,c){A.call(this,a,c);this.files=b};t(vY,A);
var RY=function(a,b){EY.call(this);this.Sa=new Ze;this.dw=new Ze;this.Vb=new df;this.Vk=wa(this.KQ,!1);this.uh=new ied;x(this,this.uh);this.lp=a||!1;this.Ab=b||!1};t(RY,EY);RY.prototype.$b=!1;RY.prototype.L1=function(a){RY.ya.L1.call(this,a);this.Sa.forEach(function(a){a&&(this.kX?a.multiple="true":a.removeAttribute("multiple"))},this)};RY.prototype.cya=function(a){RY.ya.cya.call(this,a);this.Sa.forEach(function(a){a&&(Ucd(this)?a.webkitdirectory="true":a.removeAttribute("webkitdirectory"))},this)};
RY.prototype.Db=function(a){this.dispatchEvent(new A("filesscanstarted"));var b=a.Ak().dataTransfer,c=b&&b.items,d=b&&b.files,f=this,h=[],k=[];if(c&&c[0]&&c[0].webkitGetAsEntry)(new zN(c,function(a,b){for(var c=0;c<a.length;c++){var d=a[c];0!=(d.size||d.fileSize)?f.kX||1!=h.length?h.push(d):k.push(d):k.push(d)}CGg(f,h,void 0,!0,b)})).start();else if("undefined"==typeof FileReader)G0e(this,a);else if(d&&d.length)for(a=0;a<d.length;a++){var b=d[a],m=function(){h.length+k.length==d.length&&CGg(f,h,void 0,
!0)},c=new Vbd;this.getHandler().Ja(c,["progress","load","error"],function(a){return function(b){var c=b.target;Bd(c);"error"==b.type?k.push(a):("progress"==b.type&&c.abort(),0!=(a.size||a.fileSize)?f.kX||1!=h.length?h.push(a):k.push(a):k.push(a));m()}}(b));try{c.$.readAsBinaryString(b)}catch(p){try{c.$.readAsArrayBuffer(b)}catch(u){k.push(b),m()}}}};
var CGg=function(a,b,c,d,f){if(gb(b))c||a.dispatchEvent(new A("filesscanfinished"));else{a.$b&&Zcd(a);var h=zg(b,function(a){var b=Ucd(this)?a.webkitRelativePath||a.relativePath||a.name:a.name||a.fileName;return new wY(b,a.size||a.fileSize,void 0,void 0,a.lastModifiedDate&&a.lastModifiedDate.getTime(),a.type)},a);f&&Ucd(a)&&v(f,function(a){h.push(new wY(a+"."))});v(h,function(a,c){var f=GY(this,a);f.blob=b[c];d&&(f.BPc=!0)},a);Ucd(a)&&(h=Xdd(h));a.doa&&wb(h,function(a,b){return MZa(a.getName(),b.getName())});
if(!c&&(a.dispatchEvent(new A("filesscanfinished")),!a.dispatchEvent(new vY("filesselected",h))))return;v(h,function(a){JY(this,a)},a);c||a.dispatchEvent(new vY("allfilesadded",h))}};q=RY.prototype;q.mI=function(){return this.Sa.Rc()[0]};q.install=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderinstalling",this));ted(this,a,this.lp,this.Ab)};q.qoa=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderuninstalling",this));this.VM(a)};
q.poa=function(){return this.Jaa()?"scotty xhr resumable":"scotty xhr non-resumable"};q.o4a=function(){return void 0!=(this.Sa.Rc()[0]||vc("input",{type:"file"})).webkitdirectory};q.Jaa=function(){return!!File.prototype.slice||!!File.prototype.webkitSlice&&!Ie||!!File.prototype.mozSlice};q.d5a=function(){return this.Jaa()};q.JI=function(){return wd?Gf("1.9.2"):xd?!(kr&&ea):xc?Gf(10):!1};q.W8=function(a){var b=a.uh||GY(this,a).blob;return this.Jaa()?(a=new PY(a,b),a.jg=!0,a):new Wdd(a,b)};
q.KQ=function(a){this.d8&&(this.$b=a||this.$b,this.Sa.Rc()[0].click())};q.Lr=function(a,b){ted(this,a,!0,b)};q.VM=function(a){var b=va(B0e(a));ta(this.nY)&&this.nY()?(this.getHandler().nb(a,a.tagName?"click":"action",this.Vk),this.Vb.remove(b)):(a=this.Sa.get(b))&&On(a.parentNode,!1);this.Sa.remove(b)};
q.yD=function(a){var b=Lp(RY.ya.yD,this,a),c=this.jg?this.jg(a):this.Op;if(jed()&&c&&51200<=a.kf){var d=GY(this,a).blob,c=this.uh.start(d,c);this.getHandler().Ja(c,["Rl","Sl","Tl"],Lp(this.y2,this,a,b))}else b()};q.lza=function(a,b,c,d){b=(new QY).setSize(new Kb(b,c));b.Ab=!1;d&&(b.mL=d);d=GY(this,a).blob;d=this.uh.start(d,b);this.getHandler().Ja(d,["Rl","Sl","Tl"],Lp(this.iu,this,a));return!0};q.W4a=function(a){return jed()&&"default"==HY(this,a)&&20971520>a.kf};q.jra=function(){return!0};
q.qb=function(){RY.ya.qb.call(this);Vf(this.Ko)};q.z0a=function(){return this.Jaa()?1:0};q.nY=function(){return xd||xc&&Gf(10)||wd&&Gf(12)};
var sed=function(a,b,c){b=mc(b);a.dw.set(va(b),b);var d={},f=null,h=jc(b);if(ta(a.nY)&&a.nY()&&!a.Sa.Rc()[0])d={type:"file",style:"height:0;visibility:hidden;position:absolute"},f=h.Pa("input",d),h.Hy(f,b);else{Qn(b,"uploader-overlay-visible");var k=zy(b),d={type:"file",style:"opacity:0;font-size:"+k.height+"px;height:"+k.height+"px;position:absolute;right:0px;top:0px",tabIndex:c?-1:0},f=h.Pa("input",d);c=h.Pa("div",{style:"overflow:hidden;width:"+k.width+"px;height:"+k.height+"px"},f);h.Hy(c,b);
Pd(c,"position","absolute");Pd(b.parentNode,"position","relative");Vd(c,Wd(b))}f&&(a.Sa.set(va(b),f),a.getHandler().Ja(f,"change",function(){this.dispatchEvent(new A("filesscanstarted"));CGg(this,f.files);f.value=""}))},G0e=function(a,b){var c=b.Ak().dataTransfer,c=c&&c.files,d=[],f=[];if(c)for(var h=0;h<c.length;h++){var k=c[h];0!=(k.size||k.fileSize)&&(""==k.type?/\.flv$/.test(k.name||k.fileName):1)&&(a.kX||0==d.length)?d.push(k):f.push(k)}CGg(a,d,void 0,!0)},ted=function(a,b,c,d){var f=B0e(b),
h=va(f);if(ta(a.nY)&&a.nY()&&(!a.Vb.contains(h)&&c&&(a.getHandler().Ja(b,b.tagName?"click":"action",a.Vk),a.Vb.add(h)),a.Sa.Rc()[0]))return;(b=a.Sa.get(h))?On(b.parentNode,!0):a.Ko=Uf(function(){sed(this,f,d);this.L1(this.kX);this.cya(Ucd(this));this.dispatchEvent(new uY("uploaderready",this))},void 0,a)};
RY.prototype.y2=function(a,b,c){var d=c.getItem();switch(c.type){case "Rl":this.dispatchEvent(new tY("filedownsamplingstarted",a));break;case "Sl":case "Tl":"Sl"==c.type&&(d.Wpa&&a.CYa(D0e(d)),this.dispatchEvent(new tY("filedownsamplingcompleted",a))),ued(this,d),b()}};var ued=function(a,b){a.getHandler().nb(b,["Rl","Sl","Tl"])};
RY.prototype.iu=function(a,b){switch(b.type){case "Sl":var c=b.getItem();ued(this,c);var d=c.tf();this.dispatchEvent(new Xbd(a,c.$,{resultWidth:d.width,resultHeight:d.height}));break;case "Tl":ued(this,b.getItem()),this.dispatchEvent(new tY("filepreviewerror",a))}};var Hdd=function(a,b){EY.call(this);this.Vb=a;this.Ko=b||"en_US";this.Sa=null;this.$b=!1;this.Ab=null;this.Vk=!1;this.uh=0;this.lp=!pda;this.cya(!0)};t(Hdd,EY);q=Hdd.prototype;
q.install=function(){this.dispatchEvent(new uY("uploaderinstalling",this));var a="JAVA_UPLOADER_"+Ked++,b=jc(document.body),a=b.Pa("applet",{id:a,archive:this.Vb,code:"com.google.uploader.service.client.applet.UploaderApplet",width:"1",height:"1",style:"position: absolute; top: -1px; left: -1px;"});b.appendChild(document.body,a);this.Sa=a;this.dispatchEvent(new uY("appletinsertedindom",this));this.Ab=window.setInterval(Lp(function(){var a=!1;try{this.Sa&&this.Sa.isActive()?(this.Vk=this.Sa.isLoaded())?
(this.dispatchEvent(new uY("uploaderready",this)),window.clearTimeout(this.Ab)):a=!0:this.uh++}catch(b){this.uh++}a?(this.dispatchEvent(new uY("uploaderwithoutpermission",this)),window.clearTimeout(this.Ab)):10<=this.uh&&(this.dispatchEvent(new uY("appletfailedtoload",this)),window.clearTimeout(this.Ab))},this),50)};q.qoa=function(){this.dispatchEvent(new uY("uploaderuninstalling",this));Fc(this.Sa)};
q.KQ=function(a){this.$b=a||this.$b;this.Vk&&this.d8&&(this.d8=!1,Pd(this.Sa,{top:"50%",left:"50%"}),window.setTimeout(Lp(function(){this.Sa.setLocale(this.Ko);var a=this.Sa.selectFiles("Upload","Select",this.kX,[],Ucd(this),this.lp);Pd(this.Sa,{top:"-1px",left:"-1px"});l_e(this,a);this.d8=!0},this),50))};q.Tu=function(a){Hdd.ya.Tu.call(this,a);this.Sa.freeResources(a.$)};q.poa=function(){return"scotty java"};q.Jaa=function(){return!0};q.o4a=function(){return!0};q.VNa=e(616);
q.W8=function(a){return new Cdd(a,this.Sa)};q.z0a=function(){return 1};
var l_e=function(a,b){a.dispatchEvent(new A("filesscanstarted"));a.$b&&Zcd(a);var c=Nf(b),c=zg(c,Lp(function(a){var b=Jdd(a);b instanceof xY&&Idd(this,a.c,b,b);return b},a));a.dispatchEvent(new A("filesscanfinished"));a.dispatchEvent(new vY("filesselected",c))&&(v(c,function(a){JY(this,a)},a),a.dispatchEvent(new vY("allfilesadded",c)))},Idd=function(a,b,c,d){for(var f=0;f<b.length;f++){var h=b[f],k=Jdd(h);k.Sa=d;k instanceof xY&&((h=h.c)?Idd(a,h,k,d):(h=k.getName()+"/",h=new wY(h+".",0,h),lcd(k,h)));
lcd(c,k)}},Jdd=function(a){var b=a.r;return null!=a.f?new xY(a.n,a.s,b,a.i,a.f):new wY(a.n,a.s,b,a.i)},NY=function(a){EY.call(this);this.$b=new Ze;this.uh=new Ze;this.Sa=new Ze;this.Vb=new Ze;this.Ab=a||!1};t(NY,EY);q=NY.prototype;q.sia=!1;q.fob=0;q.Bia=!1;
q.mla=function(a,b){var c=jc(a),d=c.Pa("input",{type:"file",name:"Filedata",size:20,"class":"ff-v-N"}),c=c.Pa("form",{method:"POST",enctype:"multipart/form-data",encoding:"multipart/form-data"},d);a.appendChild(c);this.$b.set(b.getId(),c);this.getHandler().Ja(d,"change",function(a){a=Bdd(a.target.value);b.Ab=Sbd(a);this.dispatchEvent(new A("filesscanstarted"));a=Wa();b.DU=a;this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",[b]))&&(this.p8&&this.sxa(b),this.kX&&
!Cd(this.$,this.A4a,this)&&this.KQ(!1),this.dispatchEvent(new vY("allfilesadded",[b])))})};q.Q7a=function(){v(sb(this.$),function(a){this.A4a(a)&&this.Tu(a)},this)};q.install=function(a){a&&(this.Bia=!0);this.dispatchEvent(new uY("uploaderinstalling",this));a&&Add(this,a,this.Ab);this.sia=!0;this.dispatchEvent(new uY("uploaderready",this));a||Uf(function(){this.KQ(!1)},1,this)};q.qoa=function(a){this.dispatchEvent(new uY("uploaderuninstalling",this));a&&(a=this.Sa.get(va(a)))&&On(a,!1)};q.poa=function(){return"scotty html form"};
q.Lt=function(){var a=NY.ya.Lt.call(this);return ec(a,function(a){return!this.A4a(a)},this)};q.Lr=function(a){a=B0e(a);var b=this.Sa.get(va(a));b?On(b,!0):Add(this,a)};q.VM=function(a){a=va(B0e(a));(a=this.Sa.get(a))&&On(a,!1)};q.j8a=function(a){this.fob=a.target.uoa;NY.ya.j8a.call(this,a)};q.KQ=function(a){this.d8&&!this.Bia&&(a?Zcd(this):JY(this,new wY))};q.Tu=function(a){NY.ya.Tu.call(this,a);this.$b.remove(a.getId());0!=this.$.length||this.Bia||this.KQ(!1)};q.jra=function(){return!0};
q.LTa=function(a){this.Bia&&NY.ya.LTa.call(this,a)};q.W8=function(a){var b=this.$b.get(a.getId());return new ydd(a,b,this.fob)};q.A4a=function(a){return""==a.getPath()};
var Add=function(a,b,c){var d=va(b);a.Vb.set(d,b);var f=jc(b);Qn(b,"uploader-overlay-visible");var h=zy(b);c={type:"file",name:"Filedata",size:20,"class":"ff-v-N",style:["opacity:0;filter:alpha(opacity=0)","font-size:"+h.height+"px","height:"+h.height+"px","position:absolute",ce(b)?"left:0px":"right:0px","top:0px"].join(";"),tabIndex:c?-1:0};c=f.Pa("input",c);var k=f.Pa("form",{method:"POST",enctype:"multipart/form-data",encoding:"multipart/form-data"},c);a.uh.set(d,k);var m=a.Sa.get(d);m||(m=f.Pa("div",
{style:"overflow:hidden;width:"+h.width+"px;height:"+h.height+"px"}),a.Sa.set(d,m),f.Hy(m,b),Pd(m,"position","absolute"),b.parentNode&&Pd(b.parentNode,"position","relative"),Vd(m,Wd(b)));f.uv(m,k);a.getHandler().Ja(c,"change",function(a){a=Bdd(a.target.value);this.dispatchEvent(new A("filesscanstarted"));a=new wY(a);var c=this.uh.get(d);this.$b.set(a.getId(),c);le(c.childNodes[0],0,0);Add(this,b);this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",[a]))&&(JY(this,
a),this.dispatchEvent(new vY("allfilesadded",[a])))})},Bdd=function(a){a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12));return a},KY=function(){EY.call(this);this.Vk=new Ze;this.lp=new Ze;this.Sx=new Ze;this.iu=new Ze;this.dw=new Ze;this.Ab=new df;this.$b=new df;this.Vb=[]};t(KY,EY);KY.prototype.Sa="";KY.prototype.Ko=!1;KY.prototype.y2=!1;KY.prototype.L1=function(a){KY.ya.L1.call(this,a);a=this.iZb;v(this.dw.ii(),a,this)};var LY=function(a,b){return J0e(a,b).ta(b||a.Sa)};q=KY.prototype;
q.install=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderinstalling",this));fdd(this,a)};q.qoa=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderuninstalling",this));this.VM(a)};q.poa=function(){return"scotty flash"};q.QWa=function(a){return new Kcd(a)};q.lza=function(a,b,c,d,f){var h=edd(this,a);return this.W4a(a)?(this.Ab.add(a.getId()),a=GY(this,a).$.id,h.startPreview(a,{id:"preview",width:b,height:c,quality:d||90,allowCropping:f||!1}),!0):!1};
q.W4a=function(a){return 0<=Xa(OJ,"10")&&!this.Ab.contains(a.getId())&&!eb(["inqueue","recovery","start","transfer"],HY(this,a))};q.KQ=function(a){this.Ko=a||this.Ko;ba(this.dw,this.Sa)&&this.d8&&LY(this,this.Sa).browse(this.kX,ldd())};q.Lr=function(a){fdd(this,a)};q.VM=function(a){a=B0e(a);var b=va(a),c=this.lp.get(b);c&&c!=this.Sa&&(this.$$()?J0e(this,c).removeNode(LY(this,c||this.Sa).parentNode):this.Vb.push(c),this.lp.remove(b),this.Vk.remove(a))};
q.QKa=function(){KY.ya.QKa.call(this);if(this.$$()){for(var a=0;a<this.Vb.length;a++)J0e(this,this.Vb[a]).removeNode(LY(this,this.Vb[a]||this.Sa).parentNode);this.Vb=[]}};q.Qda=function(a,b){this.$b.remove(a.getId());KY.ya.Qda.call(this,a,b)};q.O$=function(a){this.Ab.contains(a.getId())?this.$b.add(a.getId()):KY.ya.O$.call(this,a)};
q.yD=function(a){if(!this.Ab.contains(a.getId())){var b=this.jg?this.jg(a):this.Op;if(b){this.dispatchEvent(new tY("filedownsamplingstarted",a));var c=edd(this,a);c.setMaxPixelDimension(Math.min(b.tf().width,b.tf().height));c.setMinImageByteCountForRescale(51200);c.resizeImage(GY(this,a).$.id,a.c2())}else KY.ya.yD.call(this,a)}};q.W8=function(a){var b=GY(this,a).$;a=new cdd(a,b,edd(this,a));this.Sx.set(b.id,a);return a};q.$$=function(){return this.$b.isEmpty()&&KY.ya.$$.call(this)};
q.iZb=function(a){LY(this,a).setMultiSelect(this.kX)};
var edd=function(a,b){var c=GY(a,b).Sa;return LY(a,c)},J0e=function(a,b){var c=a.Vk.get(b||a.Sa);return jc(c)},fdd=function(a,b){var c=B0e(b),d="FLASH_UPLOADER_"+gdd++;a.Vk.set(d,c);a.lp.set(va(c),d);var f=J0e(a,d);a.Sa||(a.Sa=d,f.getWindow().onUploaderApiReady=hdd);idd.set(d,Lp(a.WLb,a));Qn(c,"uploader-overlay-visible");var h=zy(c),k=f.Pa("div",{"class":"upload-uploader-flash-content"});f.Hy(k,c);Pd(k,"position","absolute");Pd(k,"visibility","visible");c.parentNode&&Pd(c.parentNode,"position","relative");
Vd(k,Wd(c));f={allowscriptaccess:"always",allownetworking:"all",wmode:a.y2?"window":"transparent",flashvars:"apiId="+d+(a.uh?"&"+a.uh:"")};c=jdd;h={id:d,width:h.width,height:h.height};d=J0e(a,d).ta(k);xc?(DMg(CMg,h,f),k=EMg({allownetworking:"none",allowscriptaccess:"never",movie:c},f),c=Lea({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},h)):(DMg(CMg,h,f),k=EMg({allownetworking:"none",allowscriptaccess:"never"},f),c=Lea({data:c,type:"application/x-shockwave-flash",typemustmatch:""},{},h));
k=tNa("object",c,k);oNa(d,k);a.dispatchEvent(new uY("appletinsertedindom",a))};q=KY.prototype;
q.WLb=function(a){var b=J0e(this,a),c=LY(this,a);if(c.addListener){this.dw.set(a,!0);var d=a+"flashFileSelection",b=b.getWindow();b[d]=Lp(this.zrb,this);c.addListener("onSelected",d);d=a+"flashMouseEvent";b[d]=Lp(this.fXc,this);c.addListener("onMouseOver",d);c.addListener("onMouseOut",d);c.addListener("onMouseClick",d);d=a+"flashToFileIo";b[d]=Lp(this.Ioc,this);c.addListener("onOpen",d);c.addListener("onProgress",d);c.addListener("onCompleteData",d);c.addListener("onHttpError",d);c.addListener("onSecurityError",
d);c.addListener("onIoError",d);d=a+"flashImageEvent";b[d]=Lp(this.CXc,this);c.addListener("onPreviewReady",d);c.addListener("onResizeReady",d);c.addListener("onLoadError",d);this.iZb(a);LY(this,a).setAllowedFileTypes(ldd());c=this.d8;a=LY(this,a);a.setAllowAddingFiles(c);Pn(a,"uploader-overlay-hidden",!c);this.dispatchEvent(new uY("uploaderready",this))}else Uf(Lp(this.WLb,this,a))};
q.zrb=function(a){this.dispatchEvent(new A("filesscanstarted"));var b=a.apiId;LY(this,b);this.Ko&&Zcd(this);var c=a.files;this.doa&&wb(c,function(a,b){return MZa(a.name,b.name)});a=zg(c,function(a){return new wY(a.name,a.size,void 0,void 0)});v(a,function(a,f){var h=GY(this,a);h.Sa=b;h.$=c[f];this.iu.set(c[f].id,a)},this);this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",a))&&(v(a,function(a){JY(this,a)},this),this.dispatchEvent(new vY("allfilesadded",a)))};
q.CXc=function(a){var b=this.iu.get(a.file);switch(a.type){case "onPreviewReady":this.Ab.remove(b.getId());this.dispatchEvent(new Xbd(b,"data:image/jpg;base64,"+a.data,a.version));this.$b.contains(b.getId())&&(this.$b.remove(b.getId()),this.O$(b));break;case "onResizeReady":b.kf=a.fileSize;this.dispatchEvent(new tY("filedownsamplingcompleted",b));KY.ya.yD.call(this,b);break;case "onLoadError":this.Ab.contains(b.getId())?(this.Ab.remove(b.getId()),this.dispatchEvent(new tY("filepreviewerror",b)),this.$b.contains(b.getId())&&
(this.$b.remove(b.getId()),this.O$(b))):(this.dispatchEvent(new tY("filedownsamplingcompleted",b)),KY.ya.yD.call(this,b))}};q.Ioc=function(a){var b=this.Sx.get(a.file);switch(a.type){case "onProgress":AY(b,a.bytesLoaded);break;case "onCompleteData":b.yS(a.data);break;case "onHttpError":b.aQ("networkerror","HTTP Error "+a.code);break;case "onSecurityError":b.aQ("securityerror",a.error);break;case "onIoError":b.aQ("ioerror","An error occured while reading the file.")}};
q.fXc=function(a){var b;switch(a.type){case "onMouseOver":b="flashmouseover";break;case "onMouseOut":b="flashmouseout";break;case "onMouseClick":b="flashmouseclick"}a=this.Vk.get(a.apiId);this.dispatchEvent({type:b,sourceOverlay:a})};var ldd=function(){if(oa(null)&&null.length)return[{description:"Allowed files",extension:"*"+null.join(";*")}]};H("sy851");
var wed=function(a,b){zY.call(this,a);this.$=b};t(wed,zY);wed.prototype.Sa=function(a){this.$.HintedUpload($bd(this.getFile()),a,this.getFile().PB)};wed.prototype.abort=function(){this.$.Abort($bd(this.getFile()))};wed.prototype.tWa=function(a,b){this.$.ComputeMd5($bd(this.getFile()),a,b)};
var M0e=function(){if("undefined"==typeof ActiveXObject)return null;try{return(new ActiveXObject("AgControl.AgControl")).IsVersionSupported("3.0")}catch(a){return null}};var XMg=["data","source","type","typemustmatch"];var xed=function(a,b){EY.call(this);this.Fs=b||"silverlightObject";var c;a instanceof yKa?c=a:(c=Bia(a),c=PKa(c),c=vMg(c));this.uh=c;this.Sa=this.Ab=null;this.$b=new Ze;yed||(yed=new Ze)};t(xed,EY);var yed=null;q=xed.prototype;
q.install=function(){var a=yed;if(ba(a,this.Fs))throw Error("og");this.dispatchEvent(new uY("uploaderinstalling",this));var b={id:this.Fs,width:128,height:32},c=document,d=jc(c.body);ha.silverlightOnLoad=Bed;ha.silverlightOnError=Ded;var f=d.Pa("div");Pd(f,{position:"absolute",top:"-32px",left:"-128px",width:128,height:32});d.appendChild(c.body,f);var c=this.uh,h={onload:"silverlightOnLoad",onerror:"silverlightOnError"};DMg(XMg,b,h);c=EMg({source:c},h);h={data:DSa(S4a("data:application/x-silverlight-2,")),
type:"application/x-silverlight-2",typemustmatch:""};b=Lea(h,{},b);b=tNa("object",b,c);oNa(f,b);this.dispatchEvent(new uY("appletinsertedindom",this));this.Ab=d.ta(this.Fs);a.set(this.Fs,this)};q.qoa=function(){var a=yed;this.dispatchEvent(new uY("uploaderuninstalling",this));Fc(this.Ab);a.remove(this.Fs)};q.poa=function(){return"scotty silverlight"};q.Jaa=function(){return!0};q.d5a=function(){return!0};
q.KQ=function(){if(yid(this)){var a=this.Sa.Browse();if(a&&a.length){this.dispatchEvent(new A("filesscanstarted"));for(var b=[],c=0;c<a.length;++c){var d=a[c];b[c]=new wY(d.FileName,Number(d.SizeBytesAsString),"",d.FileId)}this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",b));v(b,function(a){JY(this,a)},this);this.dispatchEvent(new vY("allfilesadded",b))}}};q.Tu=function(a){var b=a.$;xed.ya.Tu.call(this,a);this.Sa.Discard(b);this.$b.remove(b)};
q.W8=function(a){if(!this.Sa)throw Error("pg");var b=new wed(a,this.Sa);this.$b.set(a.$,b);return b};
var yid=function(a){if(a.Sa)return!0;var b=a.Ab.Content;if(!b)return a.dispatchEvent(new uY("appletfailedtoinitialize",a)),!1;try{a.Sa=b.Uploader}catch(c){}if(!a.Sa)return a.dispatchEvent(new uY("appletfailedtoinitialize",a)),!1;a.Sa.OnStateUpdate=Ced;a.dispatchEvent(new uY("uploaderready",a));return!0},zed=function(a,b){a.Sa||a.dispatchEvent(new uY("appletfailedtoload",a));v(a.$,function(a){"transfer"==HY(this,a)&&GY(this,a).yR.aQ("exception",b)},a)},Aed=function(a){var b=yed;try{var c=a.Id;if(c)return b.get(c)}catch(d){}try{var f=
a.GetHost();return b.get(f.id)}catch(h){}throw Error("qg");},Bed=function(a){(a=Aed(a))&&yid(a)},Ced=function(a,b){var c=Aed(a).$b.get(b.FileId);switch(b.StatusAsString){case "UPLOADING":case "RECOVERABLE_ERROR":case "SEVERE_ERROR":var d=b.UploadedBytesAsString;d&&AY(c,Number(d));break;case "SUCCEEDED":c.yS(b.ResponseString);break;case "FAILED":var d=b.LastErrorAsString,f="unknownerror";switch(d){case "NETWORK_ERROR":f="networkerror";break;case "IO_ERROR":f="ioerror";break;case "RESOURCE_ERROR":f=
"exception";break;case "SECURITY_ERROR":f="securityerror";break;case "SERVER_REJECTED":f="serverrejected";break;case "INVALID_RESPONSE":case "SERVER_ERROR":f="serverinvalidresponse";break;case "UNKNOWN_ERROR":f="unknownerror"}c.aQ(f,d)}},Ded=function(a,b){var c=b.errorMessage||b.Message||"",d=null;if(a)try{d=Aed(a)}catch(f){}d?zed(d,c):v(yed.Rc(),function(a){zed(a,c)})};
var SY=function(a,b,c,d){Ld.call(this);if(Ea(Ga(a)))throw Error("rg");this.jg=a;this.Sa=[];this.$=null;this.mL=void 0;this.Ag=c?!0:!1;0<=fa.indexOf("Firefox/2.")&&bda(window.location,a).Au();!sGa.$().upload||wd&&!Gf("1.9.2")||this.Sa.push("XHR");if(a=d)a=M0e(),ra(a)||(a=navigator.plugins?(a=navigator.plugins["Silverlight Plug-In"])?a.description:"":null,a=qa(a)?3<=parseInt(a,10):!1);a&&this.Sa.push("Silverlight");b&&(!navigator.javaEnabled()||Zq&&!ea||kr&&ea||gc?b=!1:(b=Ddd(),b=!!b&&0<=Xa(b,"1.5.0_0")));
b&&this.Sa.push("JAVA");wZb&&(!pda&&0<=Xa(OJ,"10")||0<=Xa(OJ,"11"))&&this.Sa.push("FLASH");this.Sa.push("HTML_FORM")};t(SY,Ld);
var Eed=function(a,b,c){if(!b)throw Error("sg");oa(b)||(b=[b]);if(gb(b))throw Error("tg");v(b,function(a){if(!Tb(Fed,a))throw Error("ug`"+a);},a);var d;c?d=ec(b,function(a){return eb(this.Sa,a)},a):d=ec(a.Sa,function(a){return eb(b,a)});if(gb(d))throw new Ged;a.Sa=d},Hed=function(a,b,c,d,f){a.Km=b;a.Vk=c;a.uh=d;ia(f)&&(a.Ag=f)},Ied=function(a,b){var c=null,d=a.Sa[0];switch(d){case "JAVA":a.$=new Hdd(a.Vb,a.dw);break;case "XHR":a.$=new RY(a.$b,a.Ab);c=a.DU;break;case "Silverlight":a.$=new xed(a.Db);
break;case "FLASH":a.Vk&&(c=a.Vk,c instanceof yKa?jdd=c:(c=PKa(Bia(c)),jdd=vMg(c)));a.$=new KY;a.uh&&(a.$.uh=a.uh);a.$.y2=a.Ag;c=a.Km;break;case "HTML_FORM":a.$=new NY(a.Ab);c=a.Qb;break;default:a.$=null}if(!a.$)return b&&b(null),null;a.$.hf(a);c=mc(c);b&&(a.mL=b,ud(a.$,["appletfailedtoload","uploaderwithoutpermission","applettimedout","appletfailedtoinitialize"],Lp(a.Ko,a,d,c)),ud(a.$,"uploaderready",Lp(a.Op,a,d,c)));a.$.install(c);a.$.h8=a.jg;ra(a.pCa)&&(a.$.pCa=a.pCa);if(a.lp&&(d=a.$,c=a.lp,d.pCa&&
d.d5a())){var f=eVb("google-upload-recovery");f&&(d.mL=new DY(f,c))}return b?null:a.$};SY.prototype.Op=function(a,b,c){c.XM==this.$&&this.mL&&(this.mL(this.$),this.mL=void 0)};SY.prototype.Ko=function(a,b,c){c.XM==this.$&&(this.$.qoa(b),mb(this.Sa,a),Ied(this,this.mL))};var Fed={TGd:"JAVA",D6b:"FLASH",MFd:"HTML_FORM",FQd:"XHR",YMd:"Silverlight"},Ged=function(){};t(Ged,Error);Da("apps.uploader.showDebugWindow",function(){null.Ta(!0)},void 0);

G("sy851");I();
}catch(e){_DumpException(e)}
try{
H("sy893");var Fpd=new Kb(2048,2048),Epd=function(a){if(2<=Lb(a)/Math.min(a.width,a.height)){if(3145728<a.MUa()){var b=Math.sqrt(3145728/a.MUa()),c=1>a.height*b?1:Math.floor(a.height*b),b=1>a.width*b?1:Math.floor(a.width*b);return a.clone().Cr(new Kb(b,c)).round()}}else if(!Mb(a,Fpd))return a.clone().Cr(Fpd).round();return a};
var I2e=function(a,b,c,d){kd.call(this);this.Qb=a;this.Kf=b||jc();this.$b=!!c;this.DU=!!d;this.Ab=new gv(1);IVa(this.Ab,1);this.Ab.Sa=1;this.mL=new ag;J2e(this);this.mL.addCallback(function(a){K2e(this,a.$)},this);this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a,"filesselected",this.uh).Ja(a,"uploadstatechanged",this.Vb)};t(I2e,kd);
var q1={p7:"user/enable_original_resolution_uploads",Iua:"/quota/limit",Fua:"/quota/current",E8:"user/original_resolution_uploads_quota_warning"},K2e=function(a,b){var c=a.Qb;if(b||!a.DU){if(c.jg)throw Error();c.Op=void 0}else{var d=new QY;if("undefined"!=typeof RY&&c instanceof RY){if(d.$)throw Error();d.Sa=Epd;a.Xya()}else d.setSize(2048);if(c.jg)throw Error();c.Op=d}},J2e=function(a){a.VYc(Rb(q1),Lp(function(a){a=new M2e(a);this.Sa=a.vbb;this.mL.By(a)},a))};
I2e.prototype.uh=function(a){this.mL.addCallback(function(b){b.$&&this.Sa>b.XNa-52428800&&N2e(this,b);b.$||v(a.files,function(a){HY(this.Qb,a);a.Oi().set("use_upload_size_pref","true")},this)},this)};
I2e.prototype.Vb=function(a){this.mL.addCallback(function(b){if("success"==HY(this.Qb,a.file)&&b.$&&(this.Sa+=a.file.kf,!this.$b))if(this.Sa>b.XNa-52428800)N2e(this,b);else if(this.Sa>b.XNa-1073741824&&b.Sa!=b.XNa&&(b.Sa=b.XNa,b.$)){var c=C9e(this),d,f=this.Ab.format(b.vbb/1073741824),h=this.Ab.format(b.XNa/1073741824);d="";f="You chose to upload your photos at full size, but you are getting close to using all of your storage space. You are using "+(r(f)+(" GB of your "+(r(h)+" GB available space.<p>Would you like to turn off full size uploads?</p>")));
d=Y(d+f);r7a(c,d.Yqa());c.Qd(zFa());c.setVisible(!0);this.Bb.yj(c,"dialogselect",Lp(this.jg,this,b))}},this)};var N2e=function(a,b){b.$=!1;K2e(a,!1);var c="You chose to upload your photos at full size, but your storage space is now full.  You have "+(a.Ab.format(b.XNa/1073741824)+" GB of storage space.  You can continue to upload photos and videos, but they will no longer be stored at full size."),d=C9e(a);r7a(d,Hua(c));d.Qd(yFa());d.setVisible(!0);a.Bb.yj(d,"dialogselect",Lp(a.Ag,a,b))};
I2e.prototype.Ag=function(){this.Nvb({"user/enable_original_resolution_uploads":"false"})};I2e.prototype.jg=function(a,b){if("yes"==b.key){a.$=!1;K2e(this,!1);var c={"user/enable_original_resolution_uploads":"false"};c["user/original_resolution_uploads_quota_warning"]=a.XNa.toString();this.Nvb(c)}else c={},c["user/original_resolution_uploads_quota_warning"]=a.XNa.toString(),this.Nvb(c)};
var C9e=function(a){a=new jx(void 0,void 0,a.Kf);a.setTitle("Upload my photos at full size");a.cb().style.fontSize="13px";a.cb().style.maxWidth="450px";a.ta().style.zIndex=2201;a.Bf().style.zIndex=2200;return a};I2e.prototype.Xya=function(){return!1};
var M2e=function(a){this.$="true"==a["user/enable_original_resolution_uploads"];this.XNa=a["/quota/limit"]?Faa(a["/quota/limit"]):void 0;this.vbb=a["/quota/current"]?Faa(a["/quota/current"]):void 0;this.Sa=a["user/original_resolution_uploads_quota_warning"]?Faa(a["user/original_resolution_uploads_quota_warning"]):void 0};

G("sy893");I();
}catch(e){_DumpException(e)}
try{
var uEg=function(a){var b=a.rd().y2,c=a.$,d=c.Sk(),f=a.od,h;v(d,function(a){a=f.La(a);var b=a.Ra();a.getAttribute("rd")&&(h=3);if("document"==b||"folder"==b)h=2});a=c.Vjb();b&&a>b&&(h=1);return h},VFg=function(a){if(ia(a))switch(a){case 2:return"Google Docs, Sheets and Slides documents will be shared via a link.";case 3:return"The owner of one or more of the selected files disabled downloading. All attachments will be shared via a Drive link.";case 1:return"Because you selected more than 25 MB to attach to this email, the selected attachments will be shared via a Drive link."}return""}; H("sy894");
var vEg=function(a,b,c){XX.call(this,a,b,c)};t(vEg,XX);vEg.prototype.$b=function(){this.Ta(!uEg(this.getContext()));this.isEnabled()||t0d(this.Sa,"inline")};vEg.prototype.mL=function(){return new RW([tEg(this,"Drive link","inline","a-WNq8W-gc-Cd-jf"),tEg(this,"Attachment","attach","a-WNq8W-eyIFUe-ltEGzf")],"inline",this.Ea())};

G("sy894");I();
}catch(e){_DumpException(e)}
try{
H("sy895");var a5c=["transform","WebkitTransform","msTransform","OTransform","MozTransform"],$4c=function(a){var b=cb(a5c,function(b){return!!a.style[b]});return b?a.style[b]:""},b5c=function(a,b){v(a5c,function(c){a.style[c]=b})},tX=function(a){var b=$4c(a),c=!1;b||(b=a.style.filter,c=!0);return b&&(a=b.search("rotat"),0<=a)?(b=b.substr(a),a=b.search("[)]"),c=c?90:1,b.substr(0,a).replace(/[^-0-9]/g,"")*c):0},c5c=function(a,b){if(xc&&!Gf(9)){b=Math.floor(b/90)%4;0>b&&(b+=4);var c=Qd(a,"filter"),c=c.replace(/progid:DXImageTransform.Microsoft.BasicImage\([^)]+\)/i,
""),c=Ia(c);a.style.filter=Ia(c+(" progid:DXImageTransform.Microsoft.BasicImage(rotation="+b+")"))}else c=$4c(a),c=Ia(c.replace(/rotate\([^)]+\)/i,"")),c=Ia(c+(" rotate("+b+"deg)")),b5c(a,c)},d5c=function(a,b,c){var d=tX(a),f=zy(a);0!=d%180&&(d=f.width,f.width=f.height,f.height=d);b=Xb(f).Cr(b).width/f.width;f=zy(a);xc&&!Gf(9)?(c=d=0,0==tX(a)%180?(d=f.width-Math.floor(f.width*b),c=f.height-Math.floor(f.height*b)):(d=Math.floor((f.height*b-f.width)/2),c=Math.floor(f.width*b)-f.height),c=""+c+"px",
Pd(a,"margin-left",""+d+"px"),Pd(a,"margin-top",c),c=Qd(a,"filter")||"",c=c.replace(/progid:DXImageTransform.Microsoft.Matrix\([^)]+\)/i,""),c=Ia(c),c=Ia("progid:DXImageTransform.Microsoft.Matrix(M11="+b+",M22="+b+",sizingMethod='auto expand') "+c),Pd(a,"filter",c)):(d=$4c(a),d=Ia(d.replace(/scale\([^)]+\)/i,"")),d+=" scale("+b+","+b+")",c&&1>b&&(d=Ia(d.replace(/translate\([^)]+\)/i,"")),c=0-Math.floor(f.height*(1-b)/2),d=" translate(0px,"+c+"px) "+d),d=Ia(d),b5c(a,d))};
var pZ=function(a,b){A.call(this,a);this.data=b||new qZ};t(pZ,A);var qZ=function(){this.Sa=this.tag=this.ue=null;this.index=0;this.mL=this.Ab=this.Qb=this.$=!1},rZ=function(){};
G("sy895");I();
}catch(e){_DumpException(e)}
try{
var vfd=function(a){return w(a,9)};H("sy897");var wfd=function(a,b,c){a="";b=wA(new Z("{VIEWER_GENDER,select,male{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}female{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}other{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}}"),{VIEWER_GENDER:c.Aa});var d=wA(new Z("{VIEWER_GENDER,select,male{Learn more}female{Learn more}other{Learn more}}"), {VIEWER_GENDER:c.Aa});a+='<div class="j-D-Ua-uc-Fi">'+b+' <a href="http://support.google.com/plus/?p=lightbox_nametag&hl='+vn(c.locale)+'" target="_blank">'+d+"</a></div>";return Y(a)};
var Bfd=function(a){this.$=a?a.$:0;this.Sa=a?a.Sa:0;this.radius=a?a.radius:0};Bfd.prototype.clone=function(){var a=new Bfd;a.$=this.$;a.Sa=this.Sa;a.radius=this.radius;return a};Bfd.prototype.scale=function(a){this.$*=a;this.Sa*=a;this.radius*=a};Bfd.prototype.setBounds=function(a,b,c){this.$=a;this.Sa=b;this.radius=c};
var xfd=function(a){this.Ab=a;this.$={};this.Sa={}},zfd=1,lZ=function(a,b){if(!b)return null;var c=a.Ab(b),d=yfd(b)||zfd++;c.jmb=b.jmb=d;a.$[d]=c;a.Sa[d]=b;return c},Afd=function(a,b){if(!b)return null;var c=yfd(b),d=c&&a.$[c];d&&(delete a.$[c],delete a.Sa[c]);return d};xfd.prototype.removeAll=function(a){Pb(this.$,function(b){a&&a.removeChild(b,!0);y(b)},this);Pb(this.Sa,function(a){y(a)},this);this.$={};this.Sa={}}; var mZ=function(a,b){return b?a.$[yfd(b)]:null},yfd=function(a){return a.jmb||(ta(a.getId)?a.getId():null)};
var nZ=function(a){this.$=a||null;this.Sa=new Bfd;if(a){var b=N(a,Ir,4);a=this.Sa;var c=Lr(b).wP(),d=Lr(b).XEa(),f=Mr(b).wP(),b=Mr(b).XEa(),c=new Md(d,f,b,c),d=Math.max(c.right-c.left,c.bottom-c.top)/2;a.radius=d;c=new Gb((c.right+c.left)/2,(c.bottom+c.top)/2);d=c.y;a.$=c.x;a.Sa=d}this.iF=null};q=nZ.prototype;q.getId=function(){return this.$?this.$.getId():""};q.getName=function(){return this.Ah()&&this.Ah().Ob()};
q.Ah=function(){if(this.$&&!Dfd(this)){var a=this.$.Vg();if(a)return a;if((a=this.$.ql())&&0<a.length)return a[0]}return null};q.getShape=function(){return this.$};q.Voa=function(){var a=null!==this.$&&this.$.getStatus();return 2!=a&&5!=a&&!Dfd(this)};q.Un=function(){return!!this.$&&0==this.$.getStatus()};q.zRa=function(){return this.Un()&&!(!this.getShape()||!vfd(this.getShape()))};q.B3b=function(){var a;(a=!this.getShape())||(a=this.getShape(),a=!w(a,13));return!a}; q.Y4=function(){return!!this.$&&(!!w(this.$,8)||!!vfd(this.$))};q.nP=function(){return!!this.$&&3==this.$.getStatus()};var Dfd=function(a){return!((null!==a.$&&a.$.Vg()&&a.$.Vg().Ob()||0<a.$.ql().length&&a.$.ql()[0].Ob())&&4!=a.$.getStatus())};

G("sy897");I();
}catch(e){_DumpException(e)}
try{
var jze=function(a,b){var c=new hs;Py(c,3,a);sa(b)&&Py(c,2,b);return c};H("sy715");var GJ=function(a,b,c,d,f,h){var k=new ls;Mg(k,4,d);if(qa(f)||sa(h))d=new ks,qa(f)&&Py(d,2,f),sa(h)&&Py(d,1,h),Lg(k,6,d);f=new zs;NSa(f,k);f.Fm(c);qp(a).Ha({Ub:b,qd:f})},jzb=function(a,b,c){var d=new is;Mg(d,5,[a]);Lg(d,6,b);c&&Mg(d,4,[c]);return d};
G("sy715");I();
}catch(e){_DumpException(e)}
try{
H("sy725");
G("sy725");I();
}catch(e){_DumpException(e)}
try{
H("sy847");
G("sy847");I();
}catch(e){_DumpException(e)}
try{
H("sy848");new W(ry,23);new W(ry,24);var t6f=new W(ry,25),x6f=new W(ry,26),J7f=new W(ry,199),K7f=new W(ry,200);
G("sy848");I();
}catch(e){_DumpException(e)}
try{
H("sy865");var c1e=function(a){C.call(this,a)};t(c1e,C);var Q2=function(a){A.call(this,"UE",a)};t(Q2,A);Q2.prototype.top=null;Q2.prototype.right=null;Q2.prototype.bottom=null;Q2.prototype.left=null;var d1e=function(a,b,c,d,f,h){C.call(this,h);this.Qf=Math.max(0,Math.round(a));this.Xg=Math.max(0,Math.round(b));this.$=new Kb(Math.max(0,Math.min(this.Qf,Math.round(d.width))),Math.max(0,Math.min(this.Xg,Math.round(d.height))));this.Ba=new Hd(this);a=Math.max(0,Math.min(this.Qf,Math.round(c.left)));b=Math.max(a,Math.min(this.Qf,Math.round(c.right)));d=Math.max(0,Math.min(this.Xg,Math.round(c.top)));c=Math.max(d,Math.min(this.Xg,Math.round(c.bottom)));this.Ab=new Md(d,b,c,a);this.Qb=!0;this.Ag=f;
this.Sa=[];this.mL=[]};t(d1e,C);var R2=function(a,b){a.Sa.push(b);a.ib(b);a.Ba.Ja(b,"UE",Lp(a.IVb,a))},e1e=function(a,b){a.mL.push(b);a.ib(b)};q=d1e.prototype;q.wc=function(){return this.Qf};q.Ic=function(){return this.Xg};q.Pa=function(){var a=this.Ea(),b=a.Pa("div");this.Kb(b);He(this,function(c){c.Pa();a.appendChild(b,c.ta())})};
q.Na=function(){d1e.ya.Na.call(this);for(var a=this.Ba,b=this.Sa,c=0;c<b.length;c++)a.Ja(b[c].I7(),"end",Lp(this.H2b,this));a=new Q2;b=this.Ab;a.top=b.top;a.right=b.right;a.bottom=b.bottom;a.left=b.left;this.IVb(a);this.Qb=!0;this.H2b()};q.H2b=function(){for(var a=this.Ab,b=this.Sa,c=0;c<b.length;c++)b[c].Dgb(a.top,a.right,a.bottom,a.left)};
q.IVb=function(a){var b=this.Ab,c=null!==a.top?a.top:b.top,d=null!==a.right?a.right:b.right,f=null!==a.bottom?a.bottom:b.bottom,h=null!==a.left?a.left:b.left;if(this.Ag){var k,m,p,u=this.$.height/this.$.width;p=(this.$.width*(f-c)-this.$.height*(d-h))/(this.$.width+this.$.height);k=m=Math.round(p);p!=Math.round(p)&&--k;null!==a.bottom&&a.bottom-m>this.Xg?(p=f-m-this.Xg-1,m+=p,k-=Math.round(p/u)):null!==a.top&&0>a.top+m&&(p=c+m,m-=p,k+=Math.round(p/u));null!==a.right&&a.right+k>this.Qf?(p=d+k-this.Qf-
1,k-=p,m+=Math.round(p*u)):null!==a.left&&0>a.left-k&&(p=h-k,k+=p,m-=Math.round(p*u));null!==a.bottom?f-=m:null!==a.top&&(c+=m);null!==a.right?d+=k:null!==a.left&&(h-=k)}if(b.top!=c||b.right!=d||b.bottom!=f||b.left!=h)this.Qb=!1,b.top=c,b.right=d,b.bottom=f,b.left=h;v(this.Sa,function(a){a.setPosition(c,d,f,h)});v(this.mL,function(a){a.setPosition(c,d,f,h)});a.stopPropagation()};
var f1e=function(a){var b=a.Ab;if(!a.Sa.length)return{top:0,right:1,bottom:1,left:0};var c=a.Qf;a=a.Xg;return{top:Math.max(0,b.top/a),right:Math.min(1,b.right/c),bottom:Math.min(1,b.bottom/a),left:Math.max(0,b.left/c)}};d1e.prototype.qb=function(){d1e.ya.qb.call(this);delete this.Sa;delete this.mL;this.Ba.Ma();this.Ba=null};
var U2=function(a,b){C.call(this,b);this.Sa=a;this.$=new Gb;var c=xc&&!Gf("9")?100:10;this.Ab=new Sf(c);this.getHandler().Ja(this.Ab,"tick",this.z1a)};t(U2,c1e);q=U2.prototype;q.R$=ka;q.Na=function(){U2.ya.Na.call(this);var a=this.I7();a.lp=!0;a.mL=Lp(this.rPb,this);this.getHandler().Ja(a,"end",Lp(this.z1a,this));this.getHandler().Ja(this.Sa.ta(),["touchend","mouseup","click"],Lp(a.$b,a))};q.rPb=function(a,b){this.$.x=a;this.$.y=b;this.Ab.enabled||this.Ab.start()}; q.z1a=function(){this.Ab.enabled&&(this.Ab.stop(),this.R$())};q.qb=function(){U2.ya.qb.call(this);var a=this.I7();a.mL=ka;this.getHandler().nb(a,"end",Lp(this.z1a,this));this.getHandler().nb(this.Sa.ta(),["touchend","mouseup","click"],Lp(a.$b,a))};
var V2=function(a,b,c,d){U2.call(this,a,d);this.mL=b;this.Qb=c};t(V2,U2);q=V2.prototype;q.qMa=null;q.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-Ofa",a.Pa("div","a-B5"));a.style.cursor=this.mL+"-resize";this.Kb(a)};q.Na=function(){var a=this.Sa.wc(),b=this.Sa.Ic(),c=this.Qb?Math.max(a,b):0,a=new Nd(-15-c,-15-c,a+2*c,b+2*c);this.qMa=new bx(this.ta(),void 0,a);V2.ya.Na.call(this)};q.I7=function(){return this.qMa};
q.R$=function(){V2.ya.R$.call(this);this.$.x+=15;this.$.y+=15;var a=this.mL,b=new Q2(this);b.top="nw"==a||"ne"==a?this.$.y:null;b.right="ne"==a||"se"==a?this.$.x:null;b.bottom="se"==a||"sw"==a?this.$.y:null;b.left="sw"==a||"nw"==a?this.$.x:null;this.dispatchEvent(b)};q.setPosition=function(a,b,c,d){if(this.Nb())switch(this.ta(),this.mL){case "ne":g1e(this,b);h1e(this,a);break;case "se":g1e(this,b);h1e(this,c);break;case "sw":g1e(this,d);h1e(this,c);break;case "nw":g1e(this,d),h1e(this,a)}};
q.Dgb=function(a,b,c,d){var f=this.Sa.$,h=this.Sa.wc(),k=this.Sa.Ic(),m=this.qMa.jg,p=this.Qb?Math.max(h,k):0;switch(this.mL){case "ne":m.height=c-f.height+p;m.left=d-15+f.width;m.width=h-d-f.width+2*p;break;case "se":m.top=a-15+f.height;m.height=k-a-f.height+2*p;m.left=d-15+f.width;m.width=h-d-f.width+2*p;break;case "sw":m.top=a-15+f.height;m.height=k-a-f.height+2*p;m.width=b-f.width+p;break;case "nw":m.height=c-f.height+p,m.width=b-f.width+p}}; var g1e=function(a,b){a.ta().style.left=b-15+"px"},h1e=function(a,b){a.ta().style.top=b-15+"px"};V2.prototype.qb=function(){V2.ya.qb.call(this);this.qMa.Ma();this.qMa=null};
var j3=function(a,b,c){U2.call(this,a,c);this.mL=b};t(j3,U2);q=j3.prototype;q.mAb=null;q.a3a=null;q.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-Pfa",this.mAb=a.Pa("div","a-B5"));a.style.cursor=this.mL+"-resize";this.Kb(a)};q.Na=function(){var a=new Nd(-6,-6,this.Sa.wc(),this.Sa.Ic());this.a3a=new bx(this.ta(),void 0,a);j3.ya.Na.call(this)};q.I7=function(){return this.a3a};
q.R$=function(){j3.ya.R$.call(this);var a=this.mL,b=new Q2(this);b.top="n"==a?this.$.y+6:null;b.right="e"==a?this.$.x+6:null;b.bottom="s"==a?this.$.y+6:null;b.left="w"==a?this.$.x+6:null;this.dispatchEvent(b)};
q.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.mL;this.ta();var h=this.mAb;"n"==f?(i1e(this,d),j1e(this,a),h.style.width=b-d+"px"):"e"==f?(i1e(this,b),j1e(this,a),h.style.height=c-a+"px"):"s"==f?(i1e(this,d),j1e(this,c),h.style.width=b-d+"px"):"w"==f&&(i1e(this,d),j1e(this,a),h.style.height=c-a+"px")}};
q.Dgb=function(a,b,c,d){var f=this.a3a.jg,h=this.mL,k=this.Sa.$;"n"==h?f.height=c-k.height:"e"==h?(f.left=d-6+k.width,f.width=this.Sa.wc()-d-k.width):"s"==h?(f.top=a-6+k.height,f.height=this.Sa.Ic()-a-k.height):"w"==h&&(f.width=b-k.width)};var i1e=function(a,b){a.ta().style.left=b-6+"px"},j1e=function(a,b){a.ta().style.top=b-6+"px"};j3.prototype.qb=function(){j3.ya.qb.call(this);this.a3a.Ma();this.a3a=null};
var k1e=function(a,b){U2.call(this,a,b)};t(k1e,U2);q=k1e.prototype;q.Reb=null;q.eub=null;q.dub=null;q.Pa=function(){var a=this.Ea().Pa("div","a-xva");this.Kb(a)};q.Na=function(){this.Reb=new bx(this.ta(),void 0,new Nd(0,0,0,0));k1e.ya.Na.call(this)};q.I7=function(){return this.Reb};q.R$=function(){k1e.ya.R$.call(this);var a=new Q2(this);a.left=Math.max(0,this.$.x);a.top=Math.max(0,this.$.y);a.right=a.left+this.eub;a.bottom=a.top+this.dub;this.dispatchEvent(a)};
q.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();f.style.top=a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=c-a+"px"}};q.Dgb=function(a,b,c,d){b=this.eub=b-d;a=this.dub=c-a;c=this.Reb.jg;c.height=this.Sa.Ic()-a;c.width=this.Sa.wc()-b};q.qb=function(){k1e.ya.qb.call(this);this.Reb.Ma();this.Reb=null};
var l1e=function(a,b,c){C.call(this,c);this.Qf=a;this.Xg=b;this.$=[]};t(l1e,c1e);l1e.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div");this.Kb(b);for(var c=0;4>c;c++){var d=a.Pa("div","a-Nsa");this.$.push(d);b.appendChild(d)}a=this.$;b=a[0];b.style.width=this.Qf+"px";b.style.top="0";b.style.left="0";b=a[2];b.style.left="0";b.style.width=this.Qf+"px";a[3].style.left="0"};
l1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.$;f[0].style.height=a+"px";var h=f[1];h.style.top=a+"px";h.style.left=b+"px";h.style.width=Math.max(this.Qf-b,0)+"px";h.style.height=c-a+"px";b=f[2];b.style.top=c+"px";b.style.height=Math.max(this.Xg-c,0)+"px";f=f[3];f.style.top=a+"px";f.style.width=d+"px";f.style.height=c-a+"px"}};

G("sy865");I();
}catch(e){_DumpException(e)}
try{
var P4=function(a,b,c){null!=c&&(a[b]=c)},qVd=function(a){function b(a){var k=g4(a);if(k){var m=!d||c==a.getParent()&&!f?a.rd().bsb:a.rd().asb;k.className=m;if(k=a.gGa())k.className=DSd(a)}He(a,b)}var c=a,d=c.Pya,f=c.Wya;b(a)},wXd=function(a,b){if(!Tyf(b.$)||!My.Ab){var c=b.Yh();return c&&NLe(a,c)}},k3e=function(a,b){P4(b,"video_cid",a.gQ());P4(b,"duration",a.$);P4(b,"aspectRatio",a.Ab)},vXd=function(a,b,c){c.uploadId=b.getId();c.uploadState=b.getState();P4(c,"contentId",b.gQ());a.$.rd().gSa&&(a=
b.dG())&&(c.uploadMetadata=a)},tXd=function(a,b){var c=a.$;return b?"kix"==c?"doc":"punch"==c?"pres":"ritz"==c?"spread":c:c},uXd=function(a,b){var c=a.rI();return b?"application/vnd.google-apps.kix"==c?"application/vnd.google-apps.document":"application/vnd.google-apps.punch"==c?"application/vnd.google-apps.presentation":"application/vnd.google-apps.ritz"==c?"application/vnd.google-apps.spreadsheet":"application/vnd.google-apps.freebird"==c?"application/vnd.google-apps.form":c:c},NNg=/<\/?b>/g;
rXd.prototype.Sa=g(657,function(a){var b={},c=My.$b;b.id=a.Qe();var d=tXd(a,c);b.serviceId=d;b.mimeType=uXd(a,c);var c=a.getName(),f=a.Jd();"web"==d&&(c=null!=c?c.replace(NNg,""):null,f=null!=f?f.replace(NNg,""):null);P4(b,"name",c);P4(b,"description",f);P4(b,"type",a.Ra());P4(b,"lastEditedUtc",a.Zta);if(d=a.getIcon())d=(new Af(window.location.href)).resolve(new Af(d)),b.iconUrl=d.toString();P4(b,"url",a.getUrl());"picasa"==a.$&&"video"==a.Ra()||P4(b,"embedUrl",a.MJ());P4(b,"downloadUrl",a.getAttribute("downloadUrl"));
P4(b,"copyable",a.getAttribute("cpy"));P4(b,"blobId",a.getAttribute("blobId"));P4(b,"thumbnails",wXd(this,a));P4(b,"driveSuccess",a.getAttribute("ds"));P4(b,"driveError",a.getAttribute("de"));P4(b,"kansasVersionInfo",a.Vb);P4(b,"crop",a.getAttribute("c"));P4(b,"email",a.getAttribute("email"));P4(b,"id",a.getAttribute("cid"));P4(b,"sizeBytes",a.Ab);(d=a.getImageData())&&(b.rotation=d.Sa);(d=a.Ii)&&vXd(this,d,b);(d=a.getVideoData())&&k3e(d,b);(d=a.vt())&&(b.parentId=d.substring(d.lastIndexOf(".")+1));
d=a.getAttribute("aa");null!=d&&(b.audience=pVd[d]);P4(b,"coverPhotoId",a.getAttribute("cpid"));P4(b,"latitude",a.getAttribute("lat"));P4(b,"longitude",a.getAttribute("lng"));P4(b,"version",a.getAttribute("v"));(d=a.jg)&&(b.children=zg(d,this.Sa,this));P4(b,"numChildren",a.Tm());a.Kn()&&(b.isNew=!0);if((d=a.getAttribute("si"))&&d.length){var h=[];v(d,function(a){a=this.$.od.La(a);var b={};b.name=a.getAttribute("tdn");b.email=a.getAttribute("te");b.userId=a.getAttribute("tuid");h.push(b)},this);b.people=
h}P4(b,"numTagged",a.getAttribute("nft"));P4(b,"numUntagged",a.getAttribute("nfu"));P4(b,"isLocalProfilePhoto",a.getAttribute("ilpp"));P4(b,"markedForRemoval",a.getAttribute("mfr"));P4(b,"visibility",a.getAttribute("visibility"));P4(b,"mediaKey",a.getAttribute("mediaKey"));return b});m4.prototype.hp=g(648,function(a,b,c){this.By=b;this.jd=c});t3.prototype.cka=g(647,function(a,b,c,d){d()});t3.prototype.hJ=g(646,function(){return-1});n4.prototype.hJ=g(645,function(a){return fb(this.Ko,a)});
C4.prototype.hJ=g(644,function(a){return this.Ig.hJ(a)});Ww.prototype.mL=g(641,function(){return!!this.Wu});Rw.prototype.Qb=g(492,function(){return!1});
var rVd=function(a){0!=a.Wya&&(a.Wya=!1,a.Nb()&&qVd(a))},sVd=function(a){0!=a.Pya&&(a.Pya=!1,a.Nb()&&qVd(a))},sXd=function(a,b,c){c(zg(b,a.Sa,a))},NEa=function(a,b,c,d){c=a.DU;var f=c.get(b);if(f)for(c.remove(b),b=oa(f)?f:[f],c=0;c<b.length;c++)a.dispatchEvent(new LEa("error",a,b[c],void 0,void 0,0,d))},W2d={1:"a-n-gq-D-r9oPif"},aNg=function(a,b){a.push(b.$);Pb(b.Ab,function(b,d){void 0!=b&&a.push(d+"="+b)})},vVd=function(a){var b=new li(a.$);a=a.getQuery();Ea(Ga(a))||b.fc("/",Ja(a));return b.toString()},
wVd=function(a,b,c){if(c=a=a.$[c])c=(b=a.$(b))?a.Sa.replace("{$VIDEO_ID}",b):void 0;return c||void 0},yVd=function(){var a=Kw.ia();a.Ba=new Hd(a);Jd(a.Ba,window,vw,function(){this.eWa++});or(a.Ba,window,"unload",a.lva,!1,a)},eib=function(a){return"root"==a.Qb||!!a.getAttribute("isr")},M9f=function(){return Y('<div><iframe onload="this.poolLocked=false"></iframe></div>')},Gcf=function(a,b){A.call(this,"prefUpdate",b);this.key=a};t(Gcf,A);
var Qne=function(a,b){return a===b||(void 0===a||null===a)&&(void 0===b||null===b)},E2e=function(a,b){var c;try{var d=b;0==d.indexOf("&&&START&&&")&&(d=d.substring(11));c=Qf(d)}catch(f){return null}return ua(c)?c:null},MMc=function(a,b,c,d){this.context=a;this.By=b;this.Fkd=c||Gx;this.d2b=d||0},ZSd=0,ZEa=function(a){kd.call(this);this.Ag=a||0;this.Sa={};this.$=[];this.$b=!1;this.Qb="0";this.Wu="";this.DU=[];this.jg=this.mL=0};t(ZEa,kd);q=ZEa.prototype;q.vC=function(a){return!!this.Sa[a]};q.Ae=function(){return sb(this.$)};
q.tf=function(){return this.$.length};q.gVa=function(){this.jg=Wa()};
q.QK=function(a){var b=[],c=[],d=[],f=this.Sa,h=this.$,k=[],m={};v(a,function(a){var b=a.getId(),c=m[b];void 0!==c?k[c]=a:(m[b]=k.length,k.push(a))});a=k;if(this.Hi())v(a,function(a){var c=a.getId(),k=f[c];f[c]=a;k?(h[fb(h,k)]=a,d.push(c)):(h.push(a),b.push(c))});else{var p=f;this.Sa=f={};this.$=h=[];v(a,function(a){var c=a.getId();f[c]=a;h.push(a);p[c]?(delete p[c],d.push(c)):b.push(c)});Pb(p,function(a,b){c.push(b)});this.$b=!0;this.mL=Wa()}Iaa(this.$,this.Ab);Wa();bFa(this,b,c,d)};
q.dL=function(a){var b=[],c=this.Sa,d=this.$;v(a,function(a){var h=c[a];h&&(delete c[a],mb(d,h),b.push(a))});Wa();bFa(this,[],b,[])};q.Hi=function(){return this.$b&&(!this.Ag||this.jg-this.mL<this.Ag)};q.fVa=function(a){if(a||!this.Ag)this.$b=!1};q.yW=function(){return void 0!=this.Qb};q.getCursor=function(){return this.Qb};q.Sva=function(a){this.Qb=a};q.IHb=function(){return!!this.Wu};q.Xh=function(){return this.Wu};q.TGa=function(a){this.Wu=a||""};q.addListener=function(a){this.DU.push(a)};
q.removeListener=function(a){mb(this.DU,a)};var bFa=function(a,b,c,d){v(a.DU,function(a){a(b,c,d)})};ZEa.prototype.Ab=function(a,b){return a.Sa-b.Sa};ZEa.prototype.uh=function(a){a?this.Ab=a:delete this.Ab;Iaa(this.$,this.Ab)};
var QVd=function(a){this.$=a.hl;this.Sa=!!a["native"];this.Ab=a.oAuthToken;this.DU=a.pimm;this.mL=a.relayUrl;this.uh=a.rpcService;this.jg=a.rpcToken;this.Km=a.rpcUrl;this.Ko=Nx(this.$);this.$b=(new Boolean(a.thirdParty)).valueOf();this.Qb=a.uriPrefix||"picker/";this.Vb=!!a.ecsi;this.Ag=!!a.ecmh;this.Vk=!!a.ehvp};QVd.prototype.Bo=function(){return this.Ko};QVd.prototype.jic=function(){return this.Ag};
var CVd=function(a,b,c,d,f){this.$={};this.$.ob=a;this.$.ub=b;this.$.mp=c||0;this.$.pt=d||0;this.$.ut=f};CVd.prototype.le=function(){return Xb(this.$)};var BVd=function(a,b){this.tZ=this.Sa=a;this.o5=b||"other"};BVd.prototype.$=0;
var z2e=function(a){switch(a){case "atec":case "blogger":case "caa":case "cpaa":case "contactPhoto":case "copyphoto":case "ctpa":case "cropphoto":case "geopix":case "ipfd":case "sptm":case "mtp":case "album":case "photocuration":case "photosharing":case "polls":case "profileBanner":case "profile":case "sqprofile":return"opp";case "bulkTag":return"opt";case "drivepreopen":case "changeDrivePermissions":return"opd";case "circle":return"oppe";case "ctpf":case "dow":return"opmd"}},zVd=function(){kd.call(this);
this.$=[]};t(zVd,kd);var AVd=function(a,b){Uf(function(){for(var c=null,d=a.$.length-1;0<=d;d--){var f=a.$[d];if(f&&!f.OUb)if(f.parentNode.removeChild(f),xc)a.$[d]=null,a.$.splice(d,1);else{f.OUb=!0;c=f;break}}c||(c=mn(M9f),d=c.getElementsByTagName("IFRAME")[0],d.style.visibility="hidden",d.style.width=d.style.height="0px",d.style.border="0px",d.style.position="absolute",d.OUb=!0,a.$[a.$.length]=d,c.removeChild(d),c=d);c.src=b;document.body.appendChild(c)},0)};
zVd.prototype.clear=function(){for(var a=0;a<this.$.length;a++)this.$[a].onload=null,this.$[a]=null;this.$.length=0};zVd.prototype.qb=function(){zVd.ya.qb.call(this);this.clear();this.$=null};var OVd=function(a,b,c){A.call(this,a,c);this.Xd=b};t(OVd,A);var AXd=function(a,b){Ld.call(this);this.$=a;this.Sa=b};t(AXd,Ld);AXd.prototype.get=function(a){return this.Sa[a]};
AXd.prototype.set=function(a,b,c,d){this.Sa[a]=b;this.$.od.Vd(new QSd(a,b),Lp(function(){c&&c()},this),Lp(function(){d&&d()},this));this.dispatchEvent(new Gcf(a,this))};AXd.prototype.jc=function(a){a=this.Sa[a];if("true"==a)return!0;if("false"==a)return!1};AXd.prototype.Ab=function(a){this.set("dl",String(a),void 0,void 0)};var LMc=function(a,b,c){this.By=a;this.jd=b;this.$=c},j2=function(a){Ld.call(this);this.DU=a.yja;this.Ab=a.y5a;this.$=a.vLb;this.Sa=!0;this.mL=null};t(j2,Ld);
j2.prototype.Qb=function(a){if(this.Sa&&a instanceof $w){this.Sa=!1;var b=new Ze(this.$.options),c=new Ze(a.getOptions()),d=b.get("mimeTypes");d&&(d=d.split(","),wb(d),b.set("mimeTypes",d.join()));if(d=c.get("mimeTypes"))d=d.split(","),wb(d),c.set("mimeTypes",d.join());if(b.equals(c,Qne)){var b=new Af("picker/pvr"),f;for(f in this.Ab)Hf(b,f,this.Ab[f]);c=new Ff;for(f in this.$)c.set(f,this.$[f]);Df(b,c);c.remove("options");f=a.Dga();a=a.Iwa();Df(f,a);a.remove("options");a=b.toString()==f.toString()}else a=
!1;if(a)return!0}return!1};j2.prototype.initialize=ka;j2.prototype.Yy=function(a){this.mL=a;this.DU.addCallback(Lp(this.$b,this))};j2.prototype.$b=function(a,b){if(200==a&&b){var c=E2e(this.mL.getId(),b);if(c){var d=Tw.Hf(this.mL.Sq(),c);this.dispatchEvent(new LEa("success",this,this.mL,d,c));this.mL=null;return}}this.dispatchEvent(new LEa("error",this,this.mL));this.mL=null};
var OEa=function(a){Rw.call(this);this.Sa=a;a=new Ze;a.set("Content-control","no-cache");a.set("X-Same-Domain","explorer");a=new EEa(0,a,0,4,2E4);this.Ba.Ja(a,["ready","success","error"],this.Ab);this.$=a};t(OEa,Rw);OEa.prototype.Qb=Gx;OEa.prototype.Ko=function(a){Kw.ia().U3b++;var b=a.Dga();Hf(b,"hostId",this.Sa.Sa);this.$.send(a.getId()+"",b.toString(),"POST",a.getContent(),a.N_a(),a.xv())};
OEa.prototype.Ab=function(a){var b=Za(a.id),c=a.AAa;switch(a.type){case "ready":MEa(this,b);break;case "success":(a=E2e(0,c.Lq()))?Sw(this,b,a):NEa(this,b);break;case "error":Kw.ia().W3b++,NEa(this,b,c.getStatus(),c)}};OEa.prototype.qb=function(){this.$&&(this.$.$.Fc()?this.Ba.yj(this.$,["success","error"],function(){Uf(this.qb,0,this)}):(OEa.ya.qb.call(this),this.$.Ma(),this.$=null))};var C2e=function(a){kd.call(this);this.mL=a;this.$=[];this.Sa=new TC(this.Ab,15E3,this)};t(C2e,kd);
C2e.prototype.add=function(a){this.$.push(a);this.Sa.Il()};var O2e=function(a){a.Sa.stop();a.Ab()};C2e.prototype.Ab=function(){this.$.length&&(this.mL.Vd(new YEa(this.$),ka,ka),hb(this.$))};var ax=function(a){kd.call(this);this.Qb=a;this.$=new Ze;this.Ab=100;this.mL=this.Sa=0;this.Go=null};t(ax,kd);q=ax.prototype;q.Vd=function(a,b,c,d,f){b=new MMc(b,c,d,f);ba(this.$,a)?ib(this.$.get(a),b):this.$.set(a,[b]);this.rPa()};
q.rPa=function(){var a=this.Sa;this.Sa=Wa();if(null===this.Go){var b;b=this.Ab;var a=4E3<this.Sa-a,c=Wa()-5E3;a||this.mL<c?(this.mL=Wa(),b=100):b=50*b;this.Ab=b;this.Go=Uf(this.FTb,this.Ab,this)}};q.FTb=function(){this.Go=null;this.Qb.Vd(new u3("picasa",this.$.ii(),{includeProtoPhoto:"true",includeFaceData:"true"}),Lp(this.xDb,this),Lp(this.rPa,this))};
q.xDb=function(a){this.isDisposed()||(v(a.Ae(),function(a){for(var c=this.$.get(a.Qe(),[]),d=0;d<c.length;){var f=c[d];if(!f.context.isDisposed())if(f.Fkd.call(f.context,a)){f.By.call(f.context,a);nb(c,d);continue}else if(60>f.d2b)f.d2b++;else{nb(c,d);continue}d++}c.length||this.$.remove(a.Qe())},this),this.$.Fc()&&this.rPa())};q.qb=function(){ax.ya.qb.call(this);null===this.Go||Vf(this.Go)};var cFa=function(a){kd.call(this);this.Ab=a;this.Sa={};this.$={}};t(cFa,kd);
cFa.prototype.La=function(a){var b=this.Sa[a];if(b)return b;if(!qa(a))return null;b=a.split(".");if(3!=b.length)return null;var c=b[0],d=b[1];return"root"==b[2]&&(b=cb(this.Ae(),function(a){return eib(a)&&a.$==c&&a.Ag==d}))?this.Sa[a]=b:null};
var zRa=function(a,b){var c=a.Sa;v(b,function(a){var b;b=c[a.getId()];b=null!=b&&a.getId()==b.getId()&&null!=a.Zta&&null!=b.Zta?a.Zta>=b.Zta?!0:!1:void 0;0!=b&&(c[a.getId()]?c[a.getId()].zKa(a):c[a.getId()]=a)});Pb(a.$,function(a){if(a.Hi()){var c=ec(b,function(b){return a.vC(b.getId())});c.length&&(c=zg(c,function(a){return this.La(a.getId())},this),a.QK(c))}},a)},eTd=function(a,b,c){a.Sa[c.getId()]=c;Pb(a.$,function(a){if(a.Hi()&&a.vC(b)){for(var f=0;f<a.$.length;f++)a.$[f].getId()==b&&(a.$[f]=
c);Wb(a.Sa,b);a.Sa[c.getId()]=c;bFa(a,[],[],[b])}})};cFa.prototype.Ae=function(){return Rb(this.Sa)};cFa.prototype.Rd=function(a){a=a.aD();var b=this.$[a];b||(b=this.$[a]=new ZEa(this.Ab.mL?18E4:0));return b};
var dFa=function(a,b){Pb(a.$,function(a){a.fVa(b)})},V2e={"application/vnd.google-apps.document":["application/vnd.google-apps.kix"],"application/vnd.google-apps.form":["application/vnd.google-apps.freebird"],"application/vnd.google-apps.presentation":["application/vnd.google-apps.punch"],"application/vnd.google-apps.spreadsheet":["application/vnd.google-apps.ritz"]},PVd=function(a){this.Sa=a.at;this.mL=a.det;this.q5=a.dzt;this.Ab=a.dzat;this.Ag=a.mechanisms;this.jg=a.metadata;this.$=a.selectLabel;
this.$b=a.serviceId;this.DU=a.uet;this.uh=a.url};PVd.prototype.Qb=function(){return this.Ag||["XHR","HTML_FORM"]};PVd.prototype.getMetadata=function(){return this.jg};PVd.prototype.getUrl=function(){return this.uh};
var heg=function(a){if(a instanceof Qw)return a;var b={};b.error=a.getError();b.errorMessage=a.Mrb();b.errorCode=a.Mrb();var b=new Qw(b),c=Mcg(a.Ae());b.Sa=c;a=a.qhc();b.$=a;return b},SVd=function(a){Ld.call(this);this.$=a;this.Ag=[];this.Sa=new Yv;this.DU={};this.jg=[];this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a.Sa,"reset",Lp(this.Gsd,this))};t(SVd,Ld);SVd.prototype.mL=0;SVd.prototype.Qb=0;SVd.prototype.Ab=0;
SVd.prototype.$b=function(a,b){var c=this.DU[a];c?c.addCallback(function(a){a.Lr(b)},this):c=this.DU[a]=TVd(this,a,b);return c};var TVd=function(a,b,c){var d=a.DU[b]=new ag,f=b3e(a.$.rd(),b);f?(f.Lr(c),d.By(f)):(Ag(E.ia(),"opu",Lp(function(){eg(wg(xg(E.ia(),"opu")).$(b,this.$,c),d)},a)),d.addCallback(function(a){x(this,a);this.jg.push(a)},a));return d};q=SVd.prototype;q.Gsd=function(){this.isDisposed()||(v(this.jg,function(a){a.reset()},this),this.dE())};q.Aia=function(){return this.hW()!=this.mL};
q.hW=function(){return this.Sa.Fc()};q.BGa=function(){return this.Ab?this.Qb/this.Ab:0};q.Ywd=function(a){this.Sa.get(a).Ab=Wa()};q.Xwd=function(a,b){var c=this.Sa.get(a);c.tZ=b||c.Sa;this.Ab+=c.tZ-c.Sa;var d=Wa();c.mL=d-(c.Ab||d)};q.Xgb=function(a,b,c){b=b||1E6;this.Sa.set(a,new BVd(b,c));this.Ab+=b;this.dispatchEvent("ui")};q.c3b=function(a){this.Sa.get(a).$b=Wa()};
q.$wd=function(a,b){b&&this.mL--;var c=sdb(this.Sa,a);this.Qb-=c.$;this.Ab-=c.tZ;this.Sa.remove(a);(c=this.hW())&&this.dispatchEvent("ui");this.mL==c&&(WVd(this),VVd(this))};q.Wwd=function(a){this.mL++;if(a=this.Sa.get(a)){this.Qb=this.Qb-a.$+a.tZ;a.$=a.tZ;a.tZ<a.Sa&&(a.Qb=2048);var b=Wa();a.DU=b-(a.$b||b)}this.dispatchEvent("ui");this.mL==this.hW()&&(WVd(this),VVd(this))};q.Zwd=function(a,b,c){a=this.Sa.get(a);this.Qb=this.Qb-a.$+b;this.Ab=this.Ab-a.tZ+c;a.$=b;a.tZ=c;this.dispatchEvent("ui")};
q.Qcc=function(a){this.Ag.push(a)};q.dE=function(){v(this.Ag,function(a){a.dE(!0)});VVd(this)};var VVd=function(a){a.mL=0;a.Qb=0;a.Ab=0;a.Sa.clear();a.dispatchEvent("ui")},WVd=function(a){var b=[],c,d=a.$.od;a.Sa.forEach(function(a,h){var k=d.La(h);k&&"photo"==k.Ra()&&(c=a.o5,b.push(new CVd(a.Sa,a.tZ,a.Qb,a.mL,a.DU)))},a);b.length&&Uf(function(){d.Vd(new QQd(c,b),ka,ka)},0,a)},DVd=function(a,b){A.call(this,"si");this.selected=a;this.ur=b};t(DVd,A);
var KVd=function(a,b){var c=new ag,d;null!=a[0]&&(d=z2e(a[0]));if(null!=d&&null!=a[1]){var f=E.ia();Ag(f,d,function(){c.By(f.$[d].$.K9(a[0],a[1],b))})}else c.jd("Postprocessor not found: "+a[0]);return c},w7g=function(a){this.Sa=a;this.Ab=Wa();this.$=new Ze};t(w7g,kd);w7g.prototype.sL=function(a){this.$.set(a.sEc,a)};w7g.prototype.isEmpty=function(){return this.$.isEmpty()};var x7g=function(a){var b=new Ze;a.$.forEach(function(a,d){a.lz()&&b.set(d,a)},a);return b};w7g.prototype.Bw=function(a){return this.$.get(a)};
var y7g=function(a,b,c){this.sEc=a;this.UAd=b||Wa();this.ZAd=!!c||!1;this.$=null};t(y7g,kd);y7g.prototype.x_=function(a){this.$=a||Wa()};y7g.prototype.lz=function(){return this.$};var EVd=function(a){kd.call(this);this.cM=!1;this.Sa=[];this.Ab=a;this.$=Gic();Xyg(this.$?"gapi.iframes:gapi.iframes.style.common":"iframes",Lp(this.mL,this))};t(EVd,kd);
EVd.prototype.mL=function(){var a={getHealthc:function(){return"ok"}};yVd();a.getVarc=function(){var a=Kw.ia();return{xc:a.U3b,xec:a.W3b,click:a.eWa}};var b=this.Ab;a.sendCommand=Lp(b.$,b);if(this.$){var b=My,c,d;b.mL&&(d=Jf(b.mL))&&d.Au()&&(c=d.Au()+"://"+d.Tf(),c=ja("gapi.iframes.makeWhiteListIframesFilter")([c]));ja("gapi.iframes.getContext")().ready({},a,void 0,c)}else window.iframes.ready({},a);this.cM=!0;v(this.Sa,function(a){a()})};
EVd.prototype.call=function(a){if(this.cM){var b=a.action;"picked"==b||"cancel"==b?this.$?ja("gapi.iframes.getContext")().closeSelf(a):window.iframes.close(a):(b=this.$?Lp(this.Qb,this):window.iframer.message,ta(b)&&b(a))}else this.Sa.push(Lp(this.call,this,a))};EVd.prototype.Qb=function(a){var b=ja("gapi.iframes.getContext")(),c=ja("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER");b.addOnOpenerHandler(function(b){b.send("message",a,void 0,c)},c)};EVd.prototype.qb=function(){EVd.ya.qb.call(this);delete this.Sa};
var FVd=function(){kd.call(this);var a=My;this.Qb=a.uh||"picker";this.$=a.mL;this.mL=a.jg||"";this.Sa=new zVd};t(FVd,kd);FVd.prototype.Ab=0;FVd.prototype.call=function(a){this.mL&&(a.rpctoken=this.mL);if(this.$){var b=[a];b.unshift("");b.unshift(null);b.unshift(this.Qb);b.unshift("parent");a=4095-this.$.length;a=parseInt(a/3,10);var b=GVd(b),c=parseInt(b.length/a,10);0<b.length%a&&(c+=1);for(var d=0;d<c;d++)AVd(this.Sa,this.$+"#"+GVd(["parent",this.Ab,c,d,b.substr(d*a,a),!1]));this.Ab++}};
var GVd=function(a){for(var b=[],c=0;c<a.length;c++){var d=Rf(a[c]);b.push(encodeURIComponent(d))}return b.join("&")};FVd.prototype.qb=function(){FVd.ya.qb.call(this);this.Sa.Ma();this.Sa=null};var SCg=function(a){kd.call(this);this.cM=!1;this.$=[];this.Ab=a;Xyg("gapi.iframes:gapi.iframes.style.common",Lp(this.mL,this))};t(SCg,kd);
SCg.prototype.mL=function(){var a=My;a.mL&&(a=Jca(a.mL),this.Sa=ja("gapi.iframes.makeWhiteListIframesFilter")([a]));var a={},b=this.Ab;a.sendCommand=Lp(b.$,b);ja("gapi.iframes.getContext")().ready({},a,void 0,this.Sa);this.cM=!0;v(this.$,function(a){a()})};SCg.prototype.call=function(a){this.cM?ja("gapi.iframes.getContext")().getParentIframe().send("response",a,void 0,this.Sa):this.$.push(Lp(this.call,this,a))};SCg.prototype.qb=function(){SCg.ya.qb.call(this);delete this.$};
var D4=function(a,b,c){kd.call(this);this.mL=a;this.cM=!1;this.$=[];c?Xyg("rpc",Lp(this.Sa,this)):HVd(this,b)};t(D4,kd);D4.prototype.Ab="";
var HVd=function(a,b){var c=My,d=c.Km;d||(d=!c.$b&&b?b.replace(/[^a-z0-9]/gi,""):"onepick",d=kaa("//www-%s-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=%s",d,d));c=wc("script");c.src=d;c.type="text/javascript";document.body.appendChild(c);var f=window.setInterval(Lp(function(){try{window.gadgets&&window.gadgets.rpc&&window.gadgets.config.get("rpc")&&(window.clearInterval(f),this.Sa())}catch(a){}},a),100)};
D4.prototype.Sa=function(){var a=My;this.Ab=a.uh||"picker";window.gadgets.rpc.setRelayUrl("..",a.mL);(a=a.jg)&&window.gadgets.rpc.setAuthToken("..",a);a=this.mL;window.gadgets.rpc.register("picker",Lp(a.$,a));this.cM=!0;v(this.$,function(a){a()})};var IVd=function(a,b){a.cM?b():a.$.push(b)};D4.prototype.call=function(a){IVd(this,Lp(function(){window.gadgets.rpc.call("..",this.Ab,null,a)},this))};D4.prototype.qb=function(){D4.ya.qb.call(this);delete this.$};
var JVd=function(a,b){A.call(this,a);this.data=b};t(JVd,A);var LVd=function(a){A.call(this,"vn");this.$=a};t(LVd,A);var MVd=function(a){A.call(this,"Pn");this.visible=a};t(MVd,A);var NVd=function(a){A.call(this,"Jn");this.OGa=a};t(NVd,A);var g_g=function(a,b,c){OVd.call(this,"un",a,c);this.$=b};t(g_g,OVd);
var CXd="opb opl opr opdr oppe oppu opp opt opu opv opm opmd".split(" "),XXd={CANCEL:"cancel",tAd:"cancel-upload",h4a:"refresh",zMd:"select-contacts",AMd:"select-fonts",BMd:"select-people",HMd:"set-album-sort-order",IMd:"set-drive-options",SHc:"set-max-items",THc:"set-max-size-bytes",HVb:"set-title",JMd:"set-upload-album-id",KMd:"set-view",KVb:"set-view-options",lQd:"visibility"},ygf=function(a){if(null==a)return null;var b=a.Tf();return"drive.google.com"==b||"docs.google.com"==b?(b=a.getPath(),"/open"==
b&&a.Pg("id")?a.Pg("id"):(a=b.match(/\/file\/d\/([\w|\d]+)\/(edit|preview|view)/))?a[1]:null):null},Tmg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Close}male{Close}other{Close}}"),{VIEWER_GENDER:a.Aa});return P(b+(""+a))},Umg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Back}male{Back}other{Back}}"),{VIEWER_GENDER:a.Aa});return P(b+(""+a))},Q5g=function(a){switch(a){case "opb":return"opb";case "opl":return"opl";case "opr":return"opr";case "opd":return"opd";case "opdr":return"opdr";
case "opm":return"opm";case "opmd":return"opmd";case "oppe":return"oppe";case "opp":return"opp";case "opt":return"opt";case "oppu":return"oppu";case "opu":return"opu";case "opv":return"opv"}return null},iGe=function(a){if(FQd(a.$))return!0;switch(a.$){case "blog-templates":case "calendars":case "circle":case "contacts":case "events":case "et":case "fonts":case "groups":case "maps-pro":case "my-maps":case "people":case "photo-albums":case "photo-curation":case "photo-tagging":case "recently-picked":case "video-albums":case "videos":case "youtube":return!0;
case "photos":return a.getOption("upload")?!1:!0}return!1},yXd=function(a,b){this.kcc=b.apn;this.jcc=b.apnl;this.$=b.buildLabel;this.Kkc=b.dpm;this.Sa=b.email;this.rsc=b.gdn;this.nPc=b.dip;this.kod=b.rig;this.xhd=b.pdt;this.yhd=b.pt;this.sod=b.rupioUrl;this.Qb=zXd(b.sis);this.Bc=b.token;this.d3b=b.uriParams;this.M_b=new AXd(a,b.pref||{});this.txd=b.upp;this.mL=b.userId;this.Xxd=zXd(b.wcs);this.Yxd=zXd(b.wcvs);this.e$a=!!b.cac;this.Ab=!!b.ecmh},zXd=function(a){return(My.Qb+a).replace("picker/picker",
"picker")};q=yXd.prototype;q.l_a=function(){return this.$};q.yc=function(){return this.Sa};q.Gf=function(){return this.Bc};q.getUserId=function(){return this.mL};q.jic=function(){return this.Ab};var E4=function(a,b,c,d,f,h,k,m,p,u,z,F,M,X,da){kd.call(this);this.$=a;this.jg=z;this.Mh=d;this.Sa=b;this.$b=c;this.mL=f;this.od=h;this.uh=k;this.Vk=m;this.Ab=p;this.Vb=u;this.Fa=M;this.DU=null;this.Km=X;this.Qb=da||null};t(E4,kd);q=E4.prototype;q.rd=function(){return this.jg};q.F2a=function(a){return this.uh[a]};
q.We=function(){this.Ag||(this.Ag=new SVd(this));return this.Ag};q.ef=function(){return V(this.Fa)};q.ka=function(){return this.Fa};q.qb=function(){E4.ya.qb.call(this);y(this.$);delete this.$;y(this.jg);delete this.jg;y(this.Mh);delete this.Mh;y(this.Sa);delete this.Sa;y(this.$b);delete this.$b;y(this.mL);delete this.mL;y(this.Vb);delete this.Vb;y(this.od);delete this.od;y(this.uh);delete this.uh;y(this.Ag);delete this.Ag;delete this.Ab};var jWd=function(){kd.call(this)};t(jWd,kd);
jWd.prototype.Sa="";jWd.prototype.$=function(a){this.Sa=a};jWd.prototype.getValue=function(){return this.Sa};var RVd=function(a){this.Sa=a};RVd.prototype.addCallback=function(a){this.$||(this.$=new ag,this.Sa.Vd(new SQd,Lp(function(a){this.$.By(a.Ob())},this),Hx));this.$.addCallback(a)};
var fFa=function(a){kd.call(this);this.Vk=a;this.Sa=new cFa(a);x(this,this.Sa);this.Ba=new Hd(this);x(this,this.Ba);this.Ab=new Ze;this.Qb=[];this.jg=new OEa(a);this.mL(this.jg);a.yja&&a.PAa&&this.mL(new j2(a));this.DU=new ax(this);x(this,this.DU);this.$b=new C2e(this);x(this,this.$b)};t(fFa,kd);fFa.prototype.mL=function(a){this.Qb.push(a);this.Ba.Ja(a,["success","error"],this.uh)};
fFa.prototype.Vd=function(a,b,c,d){if(!this.isDisposed())if(a instanceof Yw&&!this.Vb)Ag(E.ia(),"oppe",Lp(function(){this.isDisposed()||(wg(xg(E.ia(),"oppe")).d$(this.$),this.Vb=!0,this.Vd(a,b,c,d))},this));else{var f=new LMc(b,c,!!d),h=a.aD(),k=this.Ab.get(h);k?k.push(f):(this.Ab.set(h,[f]),KMc(this,a))}};fFa.prototype.Ag=function(a,b,c,d){this.DU.Vd(a,b,c,d)};
var KMc=function(a,b){var c=a.Qb;a.Vk.mL&&b instanceof $w&&(b.jg="drive-select");for(var d=c.length-1;0<=d;d--)if(c[d].Qb(b)){c[d].Yy(b);return}throw Error("ze");};
fFa.prototype.uh=function(a){if(!this.isDisposed()){var b=a.type,c=a.request,d=a.response&&heg(a.response),f=c.aD(),h=this.Ab.get(f);if(h){"success"==b&&d.$&&d.Ae?(b=Cd(h,function(a){return a.$}),(a=d.Ae())&&b&&(0==a.length&&jug(this,c),this.Xp(a),b=d.yW&&d.yW()?d.getCursor():void 0,this.Rd(c).Sva(b),b=d.mL&&d.mL()?d.Xh():void 0,this.Rd(c).TGa(b),this.Rd(c).QK(zg(a,function(a){return this.La(a.getId())},this)))):"success"==b&&d&&!d.$?c instanceof Zw?this.xk(50):c instanceof K3?this.xk(60):c instanceof
u3&&this.xk(57):"error"==b&&vug(this,a);for(c=0;c<h.length;c++)d&&!d.getError()&&d.$?h[c].By(d):h[c].jd(d);this.isDisposed()||this.Ab.remove(f)}}};
var vug=function(a,b){var c=b.request;if(!(c instanceof YEa)){var d;a:{if(b instanceof LEa&&(d=b.$)&&d.D_())break a;d=null}var f;if(f=d)a:{if(8==d.D_()){if(c instanceof Zw){a.xk(55);f=!0;break a}if(c instanceof K3){a.xk(62);f=!0;break a}if(c instanceof u3){a.xk(59);f=!0;break a}}f=!1}f||(c instanceof Zw?a.xk(52):c instanceof K3?a.xk(61):c instanceof u3&&a.xk(58))}},jug=function(a,b){b instanceof Zw?a.xk(54):b instanceof u3&&a.xk(56)};q=fFa.prototype;
q.La=function(a,b){b&&(a=b+".0."+a.substring(a.lastIndexOf(".")+1));return this.Sa.La(a)};q.Ae=function(){return this.Sa.Ae()};q.Xp=function(a){zRa(this.Sa,a)};q.$Ua=function(a,b){eTd(this.Sa,a,b)};q.Rd=function(a){return this.Sa.Rd(a)};q.EHb=function(){var a=this.Sa;return a.$["_newnodes_"+ZSd++]=new ZEa(a.Ab.mL?18E4:0)};q.xk=function(a){this.$b.add(a)};q.reset=function(a){dFa(this.Sa,a);this.Ab.clear()};
q.qb=function(){fFa.ya.qb.call(this);v(this.Qb,function(a){a.Ma()});delete this.Qb;this.Ab.clear();delete this.Ab};
var eWd=function(a){kd.call(this);a&&(My=new QVd(a));this.lTa=a.actions||{};this.ana=a.apt;this.Fa=a.appContext||null;this.Km=a.authuser;this.cSa=a.chrome;this.jJ=a.cm;this.FJa=!!a.pcpfe;this.Ag=a.cropMode;this.sA=a.de;this.yja=a.prefetchQueryRequest;this.y5a=a.prefetchUriParams;this.vLb=a.prefetchUriQuery;this.PAa=a.prefetchEnabled;this.mna=a.defaultView;this.Xb=!a.driveGridViewSwitcherHidden;this.xb=a.element;this.Tx=a.eventId;this.y2=a.maxSizeBytes||null;this.dTa=a.msbpi||null;this.tna=!!a.enableSizeEstimation;
this.fBa=!!a.edbe;this.jv=a.maxItems||null;this.Sx=a.maxVD||null;this.p_=a.minItems||0;this.oXa=new df(a.excludeIds?a.excludeIds.split(","):[]);new df(a.e?a.e.split(","):[]);this.Vb=a.showAttach;this.Vk=(!!a.endv||!!a.newDriveView)&&!a.odv;this.DAa=!!a.noAutoHide;this.lp=!!a.dav;this.wna=a.fdtm||1E4;this.Ab=a.groupId;this.dw=!!a.horizNav||this.Vk;this.Sa=a.hostId;this.mBa=a.learnMore;this.Gna=a.loadCirclesUrl;this.BBa=a.loadingStatusElement;var b=a.maxpw,c=a.maxph;this.Db=b&&c?new Kb(b,c):null;b=
a.minpw;c=a.minph;this.DU=b&&c?new Kb(b,c):null;this.KBa=a.niv;this.qSa=!!a.dnif;this.ona=a.dnife;this.Ye=!!a.swue;b=a.selectableMimeTypes;qa(b)&&(this.ima=h3e(b));this.JRa=a.serviceIds||[];this.JBa=a.mineOnly;this.$b=!!a.multiselectEnabled;b=a.nav;if(qa(b))b=Qf(b);else if(!oa(b))throw Error("vh");this.uh=b;this.iu=(this.mL=!!a.minimal)&&!!a.minew;this.iaa=this.mL||!!a.navHidden;this.sFa=a.origin;this.Naa=a.outerElement;this.Ko=!1;this.hTa=a.peopleSearchPath||"/picker/complete/search";this.iTa=Qf(a.puv);
b=a.pp;qa(b)&&(b=Qf(b));b&&b.length?(oa(b[0])||(b=[b]),v(b,function(a){a[1]||(a[1]={})})):b=[];this.Op=b;this.jg=a.profilePhoto;this.h2b=a.protocol;this.UAa=a.selectButtonLabel;this.Mma=!!a.shapeSuggestions;this.Kra=!!a.showroomNav;this.nA=!!a.simpleUploadEnabled;this.$=a.squid;this.tjb=a.titleBarIconId;this.Nma=oa(a.thumbs)?a.thumbs:a.thumbs&&Qf(a.thumbs);this.oh=a.title;this.LRa=a.subTitle;this.qna=a.dfc;this.Zma=a.actionPaneText;var d=a.uploadConfigs;qa(d)&&(d=Qf(d),Pb(d,function(a,b){d[b]=new PVd(a)}));
this.swa=d||{};b=a.uploadButton;qa(b)&&Nf(b);this.Qb=a.uploadToAlbumId;this.Be=a.uploaders?a.uploaders:void 0;this.gSa=!!a.srum;this.Pma=!!a.urlInputVisible;this.YUa=a.vg||"other";this.zF=!a.driveSortHidden;this.ZAa=!!a.grugl;this.o9=!!a.dwvv;this.xna=!!a.efpcu};t(eWd,kd);var h3e=function(a){a=new df(Qf(a));for(var b in V2e)a.contains(b)&&a.addAll(V2e[b]);return a};q=eWd.prototype;q.ka=function(){return this.Fa};q.zp=function(){return this.jJ};q.ta=function(){return this.xb};q.nk=function(){return this.Ab};
q.getOrigin=function(){return this.sFa};q.fG=function(){return this.Naa||(this.Naa=pc("a-wb-Z",this.xb))};q.Cra=function(){return this.h2b};q.Hwa=function(){return this.UAa||(this.jg?"Set as profile photo":"Select")};q.ik=function(){return this.$};q.getTitle=function(){return this.oh};var b3e=function(a,b){return a.Be&&a.Be[b]};eWd.prototype.yH=function(a){return this.lTa[a]};eWd.prototype.kN=function(){return!!this.Sa&&("og"==this.Sa||ya(this.Sa,"es-"))};
eWd.prototype.lN=function(a){return!this.ima||this.ima.contains(a)};eWd.prototype.yQ=function(a){return Cd(this.Op,function(b){return b[0]==a})};var i3e=function(a){return!(!a.uh.length||1!=a.uh.length||"people"!=a.uh[0][0])};eWd.prototype.qb=function(){eWd.ya.qb.call(this);delete this.xb;delete this.BBa};var XVd=function(){Ld.call(this);this.Sa=new Yv;this.Ab={}};t(XVd,Ld);q=XVd.prototype;q.getHandler=function(){this.Ba||(this.Ba=new Hd(this));return this.Ba};
q.GHc=function(a){a=a.data.maxSizeBytes;if(this.Vjb()<=a)this.$.rd().y2=a;else throw Error("e");};q.FHc=function(a){a=a.data.maxItems;if(this.fjb()<=a)this.$.rd().jv=a;else throw Error("g");};q.Fca=function(a,b,c,d){b!=this.Sf(a)&&(b?this.Sa.set(a,c):this.Sa.remove(a),d&&this.dispatchEvent(new DVd(b,[a])))};q.OEb=function(){return!this.Sa.isEmpty()};q.Sk=function(a){var b=this.mL,c=this.Sa.ii();return b&&!a?b(c):c};
q.WT=function(a,b){var c=[];Ve(a,function(a){b!=this.Sf(a)&&c.push(a)},this);Ve(c,function(a){b?this.Sa.set(a,"cb"):this.Sa.remove(a)},this);0<c.length&&this.dispatchEvent(new DVd(b,c))};q.lJ=function(a){this.WT(this.Sk(a),!1)};q.HP=function(a,b){var c=this.Sa;JG(c,a)?(this.Sa.remove(a),this.dispatchEvent(new DVd(!1,[a]))):("cl"==b&&(c=c.ii(),this.Sa.clear(),c.length&&this.dispatchEvent(new DVd(!1,c))),this.Sa.set(a,void 0),this.dispatchEvent(new DVd(!0,[a])));return!0};q.fjb=function(){return this.Sk().length};
q.Vjb=function(){var a=this.Sk(),b=0,c=this.$.od;Ve(a,function(a){(a=c.La(a).Ab)&&(b+=a)},this);return b};q.Sf=function(a){return JG(this.Sa,a)};q.qb=function(){XVd.ya.qb.call(this);this.Sa.clear();delete this.Sa;delete this.mL};q.Eyb=function(a){this.Ab.isAttachment=a};q.uYb=function(){return this.Ab.isAttachment};
var YVd=function(a,b,c){Ld.call(this);ud(b,"cancel",this.oD,!0,this);if(!c)if(c=a.Cra(),"injected"==c)c=function(a){var b=window._pickerCallback;if(b)b(a);else throw Error("wh");};else{switch(c){case "gadgets":b=new D4(b,a.Sa,a.ZAa);break;case "gapi_iframes":b=new SCg(b);break;case "iframes":b=new EVd(b);break;default:b=new FVd}c=Lp(b.call,b)}this.nn=c;this.Sa=[];this.Ab=0;this.mL=My.Sa?null:new Ah(jc(a.ta()));x(this,this.mL)};t(YVd,Ld);var Vmg=function(a,b){var c={};c.action=b;a.isDisposed()||a.nn(c)};
q=YVd.prototype;q.oD=function(){this.$.od.xk(6);aWd(this);Vmg(this,"cancel")};q.Lvd=function(){Vmg(this,"loaded")};q.gY=function(){this.$.rd().yH("viewContentRendered")&&Vmg(this,"viewContentRendered")};q.b2b=function(a){var b=this.$;if((a=b.$.Sk(a))&&a.length)this.Sl(zg(a,function(a){return b.od.La(a)},this));else if(a=b.$b.getValue())this.Sta(a);else throw a=(a=b.Mh.FH)?vVd(a):"unknown",Error("xh`"+a);};
q.Sl=function(a,b){ia(b)&&"picked"!=b&&"cancel"!=b||this.$.Mh.dya(!0);var c=Lp(function(a,b){this.$.Vk.addCallback(Lp(function(){var c=new rXd(this.$);sXd(c,a,Lp(function(k){ia(b)&&"picked"!=b||j3e(this,a,k);var m=cWd(this,a);m.length?sXd(c,m,Lp(function(a){this.n6(k,b,a)},this)):this.n6(k,b)},this))},this))},this);b&&"picked"!=b?c(a,b):bWd(this,a,c)};q.Sta=function(a){this.n6([{url:a}])};
q.n6=function(a,b,c){b=b||"picked";var d=dNg(this),f={};f.action=b;f.viewToken=d.le();f.docs=a;c&&(f.parents=c);a=this.$.$.Ab;Ub(a)||(f.extraUserInputs=a);My.$b||(f.view=vVd(d));this.isDisposed()||this.nn(f);"picked"==b&&aWd(this)};
var bWd=function(a,b,c){m2e(a);if(a.Ab==a.Sa.length)c(b);else{var d=Lp(function(a){this.Ab++;this.Ab==this.Sa.length?c(a):bWd(this,a,c)},a),f=Lp(function(a){alert(a||"Sorry! An unexpected error occurred while processing your selection.  Please try again later.");this.oD()},a),h=a.Sa[a.Ab];h.addCallback(function(a){a.hp(b,d,f)},a);bg(h,function(){f()},a)}},m2e=function(a){var b;b=a.$.rd().Op;for(var c=a.Sa.length;c<b.length;c++)oa(b[c])&&a.Sa.push(KVd(b[c],a.$))},j3e=function(a,b,c){a=a.$;for(var d=
a.Mh.Hd(),f=[],h=0;h<b.length&&c.length;h++){var k=Xb(c[h]);k.docIndex=d.hJ(b[h]);f.push(k)}c=a.Mh.FH;for(b=0;null!=c.Sa;)c=c.Sa,b++;c=c.clone();BN(c,"viewTokenDepth",b);a.od.Vd(new HQd(f,c),ka,ka)};YVd.prototype.Qb=function(){var a=this.$.Mh.Hd();a&&a.vB(!0)};
var cWd=function(a,b){var c=[],d={};v(b,function(a){(a=a.vt())&&!d[a]&&(d[a]=!0,(a=this.$.od.La(a))&&c.push(a))},a);return c},dNg=function(a){var b=a.$.Mh.FH;if(a.$.rd().mL){var b=b.Qb||b,c=b.getOption("parent");qa(c)&&(a=FQd(b.$)?a.$.od.La(c,"docs"):a.$.od.La(c))&&a.getName()&&BN(b,"parentName",a.getName());return b}for(;null!=b.Sa;)b=b.Sa;return b},aWd=function(a){if(!a.isDisposed()){var b=a.$;O2e(b.od.$b);var c=b.Qb;c&&(c.Qb(),c.$b(),c.Ta(!1));Uf(function(){this.isDisposed()||(b.Mh.dya(!1),this.dispatchEvent("reset"),
b.$.lJ(!0),b.od.reset(),this.mL&&yd(this.mL,"activity",Lp(this.Qb,this),!1,this),v(this.Sa,function(a){a.addCallback(function(a){a.reset()})}),this.Ab=0)},500,a)}},A7g=function(){kd.call(this);this.$=new w7g("load");this.Ab=new Ze;this.Ba=new Hd(this);x(this,this.Ba);this.mL=new Sf(6E4);x(this,this.mL);this.Ba.Ja(this.mL,"tick",Lp(this.$b,this));this.Ta(!0)};t(A7g,kd);q=A7g.prototype;q.vxb="load";q.Ta=function(a){a?this.mL.start():this.mL.stop()};
q.YJa=function(a,b){var c=new y7g(b,void 0),d=this.Ab.get(a);d||(d=new w7g(a),this.Ab.set(a,d));d.sL(c)};q.WXa=function(a){this.$&&(a=new y7g(a,void 0,!0),a.x_(void 0),this.$.sL(a))};q.dCa=function(a,b){var c=this.Ab.get(a);c&&c.Bw(b)&&!na(c.Bw(b).lz())&&c.Bw(b).x_(void 0)};
var C7g=function(a,b){var c=b.Sa,d=x7g(b);if(!d.isEmpty()){var f;if("load"==c){if(f=window.jstiming.load,c=a.vxb,!f)return}else f=new window.jstiming.Timer(b.Ab);f.name=c;d.forEach(function(a,c){var d=f,p=a.sEc,u=a.UAd,z=a.lz();a.ZAd?d.tick(p,void 0,z):(d.tick("_"+p,void 0,u),d.tick(p,"_"+p,z));b.$.remove(c)},a);window.jstiming.report(f,{hostId:a.Sa})}};A7g.prototype.$b=function(){if(!ha.jstiming)return!1;this.Ab.forEach(function(a,b){C7g(this,a);a.isEmpty()&&this.Ab.remove(b)},this);return!0};
A7g.prototype.Qb=function(){ha.jstiming&&this.$&&(C7g(this,this.$),this.$=null)};var dWd=function(a,b){Ld.call(this);this.Sa=a;this.$b=b;this.Ab=[];yd(b,"Vn",this.Qb,!1,this)};t(dWd,Ld);dWd.prototype.mL=!1;dWd.prototype.Qb=function(){this.mL=!0;v(this.Ab,function(a){this.$(a)},this);hb(this.Ab)};
dWd.prototype.$=function(a){var b=a&&a.action;if(Tb(XXd,b))if(!this.mL&&a.wfv)this.Ab.push(a);else{switch(b){case "set-upload-album-id":var c=a.albumId;if(null===c||qa(c))this.Sa.Qb=c;break;case "set-drive-options":var c=this.Sa,d=["drivepreopen",a];c.Op=c.Op||[];c.Op.push(d);break;case "visibility":c=a.visible,ra(c)&&(this.Sa.Ko=c)&&this.Sa.mL&&(c=this.$b.Hd())&&c.vB(!0)}(!My.Ab||"set-view"!=b&&"set-view-options"!=b)&&this.dispatchEvent(new JVd(b,a))}};var iWd=function(){Ld.call(this)};t(iWd,Ld);
q=iWd.prototype;q.iUb=null;q.FH=null;q.On=function(a,b){this.dispatchEvent(new g_g(a,b))};q.jUb=function(a,b){this.iUb=a;this.FH=b;this.dispatchEvent(new LVd(b))};q.Hd=function(){return this.iUb};q.Cca=function(a){this.dispatchEvent(new MVd(a))};q.dya=function(a){this.dispatchEvent(new NVd(a))};q.qb=function(){iWd.ya.qb.call(this);this.FH=null};
var kWd=function(a,b){if(b.mL){if(!FQd(a.$))throw Error("dd");return"opmd"}var c=a.getOption("mode");switch(a.$){case "events":case "et":case "image-search":case "photo-albums":case "photo-caption":case "profile":case "quota":case "youtube-banner-preview":return"opp";case "photos":var d=a.getOption("parent"),f=a.getOption("type");return"videos-uploaded"==f||"videos-camerasync"==f?"opv":a.getOption("upload")||"edit"==c&&(d||a.getOption("ids"))?"oppu":"opp";case "photo-curation":case "photo-upload":case "webcam":return"oppu";
case "photo-tagging":return"opt";case "crop":return"opr";case "upload":return OQd(a)?"oppu":"opu";case "video-search":case "videos":case "video-albums":case "youtube":return"opv";case "maps":case "maps-pro":case "my-maps":return"opm";case "calendars":case "create-event":return"opl";case "circle":case "contacts":case "groups":case "people":return"oppe";case "blog-templates":return"opb";case "recently-picked":if("photos"==c)return"opp";if("videos"==c)return"opv"}return FQd(a.$)?"docs-videos"==a.$&&
"list"!=c?"opv":b.Vk?"opdr":"opp":"opc"},YXd={nGd:"dwvv",GBd:"daape",JSb:"driveGridViewSwitcherHidden",MSb:"driveSortHidden",NSb:"showAttach",Myc:"enableSizeEstimation",dvd:"edbe",DDd:"esUsersOnly",fEd:"faceRecoPromo",DEd:"formsEnabled",HFd:"horizNav",lId:"mineOnly",mUb:"minimal",y_a:"minew",rId:"multiselectEnabled",CId:"navHidden",z_a:"newDriveView",JId:"newHorizNav",KId:"newPhotoGridView",LId:"npuv",UPb:"odv",wUb:"pcpfe",$Kd:"profilePhoto",CMd:"swue",LMd:"shadeDialog",NMd:"shapeSuggestions",VSc:"showroomNav", ZMd:"simpleUploadEnabled",JPd:"urlInputVisible",yQd:"white"};H("sy871");
var DXd=function(a,b){if(window.google&&window.google.maps)a();else{Da("picker.api.ExternalCodeLoader.onMapsApiLoaded",a,void 0);var c=wc("script");c.src="//maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=true&language="+My.$+"&callback=picker.api.ExternalCodeLoader.onMapsApiLoaded";c.type="text/javascript";document.body.appendChild(c);Y8a(".pac-container{z-index:20000 !important; background-color: #fff; border: 1px solid #bbb;} .pac-item{padding:6px 8px;}",b)}};
var qXd=function(a){kd.call(this);this.Qb=a;this.Sa=new Ze;this.Ab=[]};t(qXd,kd);qXd.prototype.$b=function(a){this.Sa.set(a.getId(),a);this.Ag=Wa();this.$||(this.$=new TC(this.DU,1E3,this),this.$.Il())};qXd.prototype.addCallback=function(a){this.$?this.Ab.push(a):a()};qXd.prototype.DU=function(){this.Qb.Vd(new u3("picasa",this.Sa.ii(),{}),Lp(function(a){o2e(this,a);this.mL()},this),Lp(this.mL,this))};
qXd.prototype.mL=function(){this.Sa.Fc()&&Wa()<=this.Ag+1E4?this.$.Il():(delete this.$,v(this.Ab,function(a){a()}),hb(this.Ab))};var o2e=function(a,b){v(b.Ae(),function(a){var b=a.Yh();if(b&&0<b.length){var f=$a(b);0<f.wc()&&0<f.Ic()&&(a=a.getId(),this.Sa.get(a).ZE(b),this.Sa.remove(a))}},a)};qXd.prototype.qb=function(){this.$&&(this.$.Ma(),delete this.$)};
var dhe=function(a){Qw.call(this,a);this.$&&(this.Qb=a.response.contentUrl||"")};t(dhe,Qw);$S(23,function(a){return new dhe(a)});var Pie=function(a){Mw.call(this);this.Ab=a};t(Pie,Mw);Pie.prototype.PD=pg(new Af("getcu"));Pie.prototype.Sq=function(){return 23};Pie.prototype.xE=function(){var a=new Ze;Pw(a,"url",this.Ab);return a};var oXb=function(a,b){this.Sa=new Af(a);this.$=b?b:"callback";this.wda=5E3},sXb=0;oXb.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(sXb++).toString(36)+Wa().toString(36);ha._callbacks_||(ha._callbacks_={});var f=this.Sa.clone();if(a)for(var h in a)a.hasOwnProperty&&!a.hasOwnProperty(h)||Yca(f,h,a[h]);b&&(ha._callbacks_[d]=rXb(d,b),Yca(f,this.$,"_callbacks_."+d));b=jXb(f.toString(),{timeout:this.wda,Vgc:!0});bg(b,pXb(d,a,c));return{Fs:d,df:b}};
oXb.prototype.cancel=function(a){a&&(a.df&&a.df.cancel(),a.Fs&&qXb(a.Fs,!1))};var pXb=function(a,b,c){return function(){qXb(a,!1);c&&c(b)}},rXb=function(a,b){return function(c){qXb(a,!0);b.apply(void 0,arguments)}},qXb=function(a,b){ha._callbacks_[a]&&(b?delete ha._callbacks_[a]:ha._callbacks_[a]=ka)};
var mWd=function(){Rw.call(this);this.Sa=new Ze;this.$=new Ze;this.Ab=0==Ba((new Af(document.location.href)).Au(),"http");this.initialize()};t(mWd,Rw);mWd.prototype.Qb=function(a){return 7==a.Sq()};var nWd=function(a){var b={},c=a.Iwa();Ve(c.ii(),function(a){b[a]=c.get(a)});return b};
mWd.prototype.Ko=function(a){for(var b=Math.ceil(6.25),b=Math.min(b,4),c=a.Oo(),d=0;d<b;d++){var f=a.clone();f.setStart(c+8*d);var h=f.Dga();this.Ab&&h.Zy(Na(f.getId(),".","ajax.googleapis.com"));Kw.ia().U3b++;h=new oXb(h);h.wda=1E4;h.send(nWd(f),Lp(this.$b,this,a,f),Lp(this.mL,this,a,f))}a=a.getId();MEa(this,a);this.$.remove(a);this.Sa.set(a,b)};var oWd=function(a,b){var c=a.Sa,d=c.get(b)-1;c.set(b,d);return d};
mWd.prototype.$b=function(a,b,c){var d=a.getId(),f=Math.floor(b.Oo()/8),h=c.responseData,h=(h=h?h.cursor:void 0)?h.currentPageIndex:void 0;if(f==h||void 0==h)f=this.$,h=f.get(d),null==h&&(h=new mza,f.set(d,h)),Hv(h,b.Oo(),c);0==oWd(this,d)&&(Sw(this,d,pWd(this,a)),qWd(this,d))};mWd.prototype.mL=function(a){Kw.ia().W3b++;var b=a.getId();0==oWd(this,b)&&(this.$.get(b)?Sw(this,b,pWd(this,a)):NEa(this,b),qWd(this,b))};
var pWd=function(a,b){var c=a.$.get(b.getId());if(!c)return{};var d=c.remove(),f=d.responseData||{},h=f.results||[],k=f.cursor,k=k&&k.estimatedResultCount;if(8<k)for(;c.Fc();){var m=c.remove().responseData||{},h=h.concat(m.results||[]);f.results=h}50<h.length&&(f.results=h=h.slice(0,50));c=k?Math.min(k,64):64;f.more=(50==h.length||32==h.length)&&b.Oo()+h.length<c;return d},qWd=function(a,b){var c=a.$.get(b);c&&c.clear();a.$.remove(b);a.Sa.remove(b)};
var F4=function(a,b){var c=this.vab();y3.call(this,a,c+"-Cc",c+"-Bb",c+"-B",this.J_a(),b);c=this.getHandler();c.Ja(a.mL,"set-view",this.kN);c.Ja(a.Mh,"Pn",this.Naa)};t(F4,y3);
var sWd=function(a,b,c){b=b||a.getContext().rd().uh;if(oa(b))for(var d=b.length,f=0;f<d;f++){var h=b[f];if(oa(h))a.TWa(h,c);else if(ua(h)&&oa(h.root)){var k=a.TWa(h.root,c,h.options,!0);k&&sWd(a,h.items,k)}}},tWd=function(a){var b=a[0];return b?wUd(b,a[1],a[2]):null},uWd=function(a,b){if(b){var c=kWd(b,a.getContext().rd());"opc"!=c&&eVd(E.ia(),c)}};F4.prototype.lm=function(a,b){return qa(b[1])?b[1]:a&&a.getName()||""};F4.prototype.kN=function(a){a=tWd(a.data.view);(a=cug(this,a))&&this.$b(a)};
var cug=function(a,b,c){c=c||a.getContext().rd().uh;if(oa(c))for(var d=c.length,f=0;f<d;f++){var h=c[f];if(oa(h)){if(h=tWd(h),h.equals(b))return h}else if(ua(h)){var k=h.root;if((k=k?tWd(k):null)&&b.equals(k))return k;if(h=cug(a,b,h.items))return h}}return null};F4.prototype.$b=function(a){a&&(this.getContext().Mh.On(a),this.Yha(a),cTd(this,!0))};var wWd=function(a,b){for(var c=b||a.getContext().rd().uh,d=0;d<c.length;d++){var f=c[d],h=null;oa(f)?h=tWd(f):ua(f)&&(h=tWd(f.root)||wWd(a,f.items));if(h)return h}return null}; F4.prototype.Naa=function(a){cTd(this,a.visible)};var $Pb=function(a,b){return a&&"webcam"==a.$&&"video"==a.Ra()?!b.rd().o9:!0};
var l3e=function(a){return"@"+r(a.prefix)+"-keyframes "+r(a.XOa)+" {0% {background-position: 0 0;} 100% {background-position: -20px 0;}} .a-qc-la .la-ba-na, .a-qc-Za .la-ba-na, .a-od-v-e-la .la-ba-na, .a-Za-Bb .la-ba-na, .Lb-v-z .la-ba-na {-webkit-animation-name: "+r(a.XOa)+"; -moz-animation-name: "+r(a.XOa)+";}"},Kkd=function(){return'<div id="docs-aria-speakable" class="a-ynRLnc" aria-live="assertive" role="region" aria-atomic="true"></div>'};
var Mxg=function(a,b){s3.call(this,a,b);this.Ab=this.Sa=null};t(Mxg,s3);Mxg.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-Nb-ab");this.Kb(b);this.Ab=a.Pa("div",this.getContext().rd().mL?"a-ch-ab-m":"a-WNq8W-ab-xc");this.Sa=Ejc(this.Ab,a);this.Sa.render(b);this.Sa.Xb=!0;this.Sa.Sn("Close")};Mxg.prototype.Na=function(){Mxg.ya.Na.call(this);this.getHandler().Ja(this.Sa,"action",this.mL)};Mxg.prototype.mL=function(){this.getContext().Sa.oD()};
var xWd=function(a,b){F4.call(this,a,b);this.Ab=[];this.xl=new Fp(void 0,void 0,void 0,b)};t(xWd,F4);q=xWd.prototype;q.vab=function(){return"a-La-jb"};q.J_a=function(){return"top"};
q.Pa=function(){xWd.ya.Pa.call(this);var a=this.Ea();this.mL=a.Pa("div",{"class":"a-La-jb-xc-ba-nb",id:Ce(Be.ia())});var b=this.Vb=J$f(this);sWd(this,void 0,b);this.Ag=a.createTextNode("More");this.xl.Pa();this.xl.setContent(a.Pa("div",void 0,this.Ag,a.Pa("div","a-n-ia-En-Rf-Ev")));b.ib(this.xl,!0);this.xl.setVisible(!1);po(this.xl.ta(),"tab");this.setSize(50);this.Sa.appendChild(this.mL);b=this.getContext().rd();!b.getTitle()&&b.Vk&&(this.uh=new Mxg(this.getContext(),a),this.ib(this.uh,!1),this.uh.Pa(),
a.uv(this.Sa,this.uh.ta()))};q.Na=function(){xWd.ya.Na.call(this);sid(this);K$f(this,this.Vb);tid(this);this.getHandler().Ja(this.xl.Ne(),"action",this.Vk).Ja(this.Ea().getWindow(),"resize",this.Km);v(this.Ab,function(a){var b=a.ta();this.getHandler().Ja(a,"action",this.Ko).Ja(b,"focus",Lp(this.TTb,this,!0)).Ja(b,"blur",Lp(this.TTb,this,!1))},this)};q.TTb=function(a,b){Pn(b.target,"a-La-jb-eb",a)};
q.TWa=function(a,b,c,d){if((c=L$f(this,a,b))&&d){d=J$f(this);c.Xo(d);if(a=L$f(this,a,d,!0))Qn(a.ta(),"a-La-jb-Ng-xc"),a.Xo(b);return d}return c};
var L$f=function(a,b,c,d){var f=tWd(b);if(!$Pb(f,a.getContext()))return null;uWd(a,f);var h;h=a.Ea();a=a.lm(f,b);"-"==a?(h=new TL("",void 0,h),h.Ta(!1),h.Ab("a-La-jb-Kj"),h.Pa(),E3a(h.ta())):(b=My.Bo()?"a-n-Xja-pk-mg":"a-n-Xja-pk-U3b",b=h.Pa("div","a-La-jb-Xja-m "+b),b=h.Pa("div","a-La-jb-Kfa",d?b:a),h=new TL(b,void 0,h),h.Pa(),d&&a&&(d="Return from "+a,Fw(h.ta(),d)));h.Xo(f);c&&(c.ib(h,!0),1==Ge(c)&&h.qj(!0));return h};
xWd.prototype.Yha=function(a){a&&(v(this.Ab,function(b){He(b,function(c){if(c.dc()&&c.isEnabled()){var d=c.kc();d instanceof w3&&a.equals(d)&&b.fD(c)}})},this),this.xl.ta()&&(LLf(this),He(this.xl.Ne(),function(b){var c=b.getValue().kc();c&&c instanceof w3&&a.equals(c)&&(b.qj(!0),Rc(this.Ag,b.Cg()),Pn(this.xl.ta(),"a-jb-La-Md-L",!0),(b=wid(this))&&b.fD(null))},this)))};xWd.prototype.Ko=function(a){vid(this,a.target)};xWd.prototype.Vk=function(a){vid(this,a.target.getValue())};
var vid=function(a,b){var c=b.kc();if(c instanceof VL){var d=c;K$f(a,d);d=kw(d,d==a.Vb?0:1);d instanceof TL&&(c=d.kc());LLf(a)}c instanceof w3&&(a.$b(c),a.Yha(c));tid(a)};xWd.prototype.Km=function(){this.Qb[this.mL.id]=zy(this.mL).width;tid(this);this.Yha(this.getContext().Mh.FH)};xWd.prototype.qRc=function(a){var b=a?"":"0px";ne(this.Sa,b);me(this.Sa,b);Vd(this.Sa,a?"":"-9500px","");(b=wid(this))&&Io(b,a)};
var J$f=function(a){var b=a.Ea(),c=new VL(void 0,void 0,b);c.aVa=!1;c.Pa();b.appendChild(a.mL,c.ta());TQd(a,c);a.Ab.push(c);return c},K$f=function(a,b){v(a.Ab,function(a){a.setVisible(a==b)},a);var c=a.xl.getParent();c!=b&&(c.removeChild(a.xl,!0),b.ib(a.xl,!0))},tid=function(a){var b=wid(a);if(b){He(b,function(a){a.setVisible(!0)});a.xl.setVisible(!1);var c=a.xl.Ne();c.hb(!0);var d=a.Qb[a.mL.id];if(d){for(var f=0,h=0,k=Ge(b)-1;0<=k;--k){var m=kw(b,k);if(m.dc())if(gvd(b,a.Qb,f,d)){var p=m.ta();m.setVisible(!1);
p=new yp(Uc(p),m);p.Bm(8,!0);c.Zj(p,0,!0);h=Math.max(h,a.Qb[m.getId()]);m=Ae(a.xl.ta());isNaN(m.left)||isNaN(m.right)||(f=h+m.left+m.right)}else break}0<Ge(c)?(a.xl.setVisible(!0),Qn(c.ta(),"a-jb-La-Md-r")):a.xl.setVisible(!1)}}},gvd=function(a,b,c,d){var f=0;He(a,function(a){a.dc()&&(f+=b[a.getId()])});f+=c;return f>=d},wid=function(a){for(var b=0;b<a.Ab.length;++b){var c=a.Ab[b];if(c.dc())return c}return null},sid=function(a){a.Qb={};v(a.Ab,function(a){He(a,function(a){var b=a.ta(),f=zy(b).width,
b=Ae(b);isNaN(b.left)||isNaN(b.right)||(f=f+b.left+b.right);this.Qb[a.getId()]=f},this)},a);a.Qb[a.mL.id]=zy(a.mL).width},LLf=function(a){a.Ag&&a.xl.ta()&&(Rc(a.Ag,"More"),Pn(a.xl.ta(),"a-jb-La-Md-L",!1))};xWd.prototype.$b=function(a){a&&(ACg(this,a),tid(this),xWd.ya.$b.call(this,a))};var ACg=function(a,b){v(a.Ab,function(a){He(a,function(d){d=d.kc();d instanceof w3&&b.equals(d)&&K$f(this,a)},this)},a)};
var O$f=function(a){a=a&&a.getOption("parent");var b="newFolderId";a&&(b+=a);return b},P$f=function(a){return!!a&&a.getOption("parent")==O$f(a.Sa)};var Wmg=function(a,b,c){return'<div id="'+a.ur.T2+'" class="a-O-Z">'+Mt({id:a.ur.BACK,style:4,content:jA('<div class="'+(a.Bo?"a-WNq8W-FO4lXc-ia-jf":"a-WNq8W-Xja-ia-jf")+' a-Nb-m" ></div>'),LQb:!0,title:Oz(""+Umg(c)),attributes:sE('aria-label="'+R(Umg(c))+'"')})+'<div id="'+a.ur.QFd+'" class="a-Nb-m a-WNq8W-gc-Cd-jf"></div><div role="status" aria-live="polite" class="a-Nb-pk"><div id="'+a.ur.EBa+'" role="heading" class="a-Nb-pk-kb" data-tooltip-only-on-overflow="true"></div></div><input id="'+a.ur.Pkc+
'" class="a-O-Lb-pk-N" /><div class="a-O-Lb-pk-dy">'+Mt({id:a.ur.ajc,style:2,content:jA('<div class="a-n-Zc-Tb"></div>'),LQb:!0,title:Oz(""+Q$f(c)),attributes:sE('aria-label="'+R(Q$f(c))+'"'),width:1})+'</div></div><div class="a-Nb-ab">'+Mt({id:a.ur.Cib,style:4,content:jA('<div class="a-WNq8W-ab-xc"></div>'),LQb:!0,title:Oz(""+Tmg(c)),attributes:sE('aria-label="'+R(Tmg(c))+'"')})+"</div>"},eng=function(a,b,c){return'<div id="'+a.ur.ERROR+'" class="a-ch-QX-wa"></div><div class="a-ch-QX-EBS5u-c">'+
Mt({id:a.ur.OK,style:2,LQb:!1})+'</div><div class="a-ch-QX-Lb-pk-c">'+Mt({id:a.ur.n1,style:0,width:1,content:jA('<div class="a-WNq8W-pk-Lb"></div>'),LQb:!0,title:Oz(""+Ege(0,0,c)),attributes:sE('aria-label="'+R(Ege(0,0,c))+'"')})+"</div>"},Ege=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{New Folder}male{New Folder}other{New Folder}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},Q$f=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Create folder}male{Create folder}other{Create folder}}"),
{VIEWER_GENDER:a.Aa});return P(b+(""+a))},Yhg=function(a,b,c){b="";a=wA(new Z("{VIEWER_GENDER,select,female{Creating {FOLDER_NAME} failed.}male{Creating {FOLDER_NAME} failed.}other{Creating {FOLDER_NAME} failed.}}"),{VIEWER_GENDER:c.Aa,FOLDER_NAME:""+a.YZc});return P(b+(""+a))};
var kPg=function(a){var b=a.getOption("parent");b||a.getOption("cv")||(b="root");return b},GMg=function(a,b){var c=kPg(b);return c?a.od.La(c,"docs"):null},hLg=function(a,b,c){var d=b.getOption("parent")||"root",f=a.od.La(d,"docs");f?c(a,b,f):a.od.Vd(new u3("drive-select",[d],{}),function(d){c(a,b,d.Ae()[0])},ka,!0)},IMg=function(a,b,c){var d=dNg(a.Sa).getOption("parent"),f=[];b.getOption("ops")&&(f=b.getOption("ops").split(","));b=f;d&&(b=b.concat(d));d=zg(b,function(b){var c=HLg("docs","0",b);return"root"== b&&(b=a.od.La(c))?b.getId():c});return eb(d,c)},M9g=function(a,b){var c=vZg(a);return c?c:GMg(a,b)},vZg=function(a){var b=a.$.Sk();return gb(b)?null:a.od.La(b[0])},rT=function(a,b,c,d){a.Ta(b);Fw(a.ta(),c,d)};
var hng=function(a,b){y3.call(this,a,"a-ch-QX-Cc","a-ch-QX-Bb","a-ch-QX-B","bottom",b)};t(hng,y3);q=hng.prototype;q.Pa=function(){hng.ya.Pa.call(this);var a={};a.ur=Dkg(this,ing);a=Uo(this.getContext().ef(),eng,a);this.Sa.appendChild(a);this.setSize(29);this.$b=JC(this.getContext().ef(),Ege)};
q.Na=function(){hng.ya.Na.call(this);this.mL=new Ot(null);this.mL.yb(nh(this,"__mp-fo"));x(this,this.mL);this.Qb=new Ot(null);this.Qb.yb(nh(this,"__mp-fnf"));x(this,this.Qb);this.Ab=new kX(null,this.Ea());this.Ab.hd("warning");Xhg(this.Ab,!0);this.Ab.render(nh(this,"__mp-fe"));x(this,this.Ab);this.getHandler().Ja(this.getContext().Mh,"Vn",this.bIb).Ja(this.getContext().$,"si",this.Ngc).Ja(this.mL,"action",this.rCa).Ja(this.Qb,"action",this.uca)};
q.bIb=function(){var a=this.getContext(),b=a.Mh.FH;this.mL.setContent(lng(this.getContext(),b));var c=kPg(b);this.Qb.setVisible(!!c);var d=M9g(a,b);d||P$f(b)||!c?this.Ag(a,b,d):hLg(a,b,Lp(this.Ag,this));b.equals(this.uh)||this.Ab.setVisible(!1)};q.Ngc=function(){var a=this.getContext(),b=a.Mh.FH;this.mL.setContent(lng(a,b));this.Ag(a,b,M9g(a,b))};
q.rCa=function(){var a=this.getContext(),b=a.Mh.FH;if(b.getOption("cv")){if(b.getOption("cv")){var c=b.getOption("cv");c&&oa(c)&&c[0]?(c=wUd(c[0],c[1],c[2]),c.Sa=b,b=c):b=null;if(b&&(c=vZg(a))){var d=b;if(d&&c){var b=d.clone(),f="_addItemId_"==c.Qe();f?l4f(b,"parent"):c.getId()&&BN(b,"parent",c.Qe());f&&(BN(b,"sblovs","Add here"),BN(b,"sblois","Add"));c=b.getOption("ops");d=d.Sa.getOption("items");qa(c)&&qa(d)&&(c=c.split(",").concat(d.split(",")),vb(c),BN(b,"ops",c.join(",")));b.Qb=b}else b=null;
a.Mh.On(b)}}}else{if(c=b)a:{if(c=M9g(a,b))if(d=b.getOption("drois"),b.getOption("sp")||!(IMg(a,b,c.getId())||d&&c&&c.getAttribute("ro")))if(b.getOption("ers")||!eib(c)){b=a.$;b.lJ(!0);b.Fca(c.getId(),!0,"cl",!0);a.Sa.b2b(!0);c=!0;break a}c=!1}c||this.getContext().Sa.oD()}};q.uca=function(){var a=this.getContext(),b=a.Mh,c=b.FH;if(c){var d=c.clone();if(a=vZg(a))d.Sa=c,BN(d,"parent",a.getId());c=c.clone();c.Sa=d;BN(c,"parent",O$f(d));b.On(c)}};
var Zhg=function(a,b,c){a.uh=c;a.Ab.setContent(b);a.Ab.setVisible(!0);Uf(function(){this.Ab.dc()&&this.Ab.setVisible(!1)},1E4,a)},lng=function(a,b){var c=GMg(a,b);if(c&&eib(c)&&!b.getOption("ers"))return"Done";c=b.getOption("mbl");if(qa(c))return c;if(gb(a.$.Sk()))c=b.getOption("sblovs");else{if((c=vZg(a))&&"_addItemId_"==c.Qe())return"Add new location";c=b.getOption("sblois")}return qa(c)?c:a.rd().Hwa()};
hng.prototype.Ag=function(a,b,c){P$f(b)||b.getOption("cv")&&!c?(rT(this.mL,!1,""),rT(this.Qb,!1,this.$b)):b&&c&&IMg(a,b,c.getId())?(rT(this.mL,!1,"Item is already in this folder"),rT(this.Qb,!0,this.$b)):c&&c.getAttribute("ro")?(b&&b.getOption("drois")&&rT(this.mL,!1,"This folder is read-only"),rT(this.Qb,!1,"This folder is read-only",this.$b)):(rT(this.mL,!0,""),rT(this.Qb,!0,this.$b))};var ing={ERROR:"__mp-fe",n1:"__mp-fnf",OK:"__mp-fo"};
var nng=function(a,b){y3.call(this,a,"a-ch-O-Cc","a-ch-O-Bb","a-ch-O-B","top",b);this.Vk=!1;this.uh=new ro;x(this,this.uh)};t(nng,y3);nng.prototype.Pa=function(){nng.ya.Pa.call(this);var a={};a.ur=Dkg(this,ong);a.Bo=My.Bo();a=Uo(this.getContext().ef(),Wmg,a);this.Sa.appendChild(a);this.setSize(48)};
nng.prototype.Na=function(){nng.ya.Na.call(this);this.Vb=nh(this,"__mp-ti");this.$b=nh(this,"__mp-tt");this.Ag=R$f(this,"__mp-tc");x(this,this.Ag);this.mL=R$f(this,"__mp-tb");x(this,this.mL);this.Ab=nh(this,"__mp-tnfi");so(this.uh,this.Ab);this.Qb=R$f(this,"__mp-tnfc");x(this,this.Qb);this.Qb.TE(My.Bo()?2:1);KMg(this);this.Yg=new rw(this.Ab);this.getHandler().Ja(this.Ag,"action",this.c6c).Ja(this.getContext().Mh,"un",this.Zc).Ja(this.mL,"action",this.$Ca).Ja(this.Qb,"action",this.WQb).Ja(this.uh,
"key",this.dfb).Ja(this.Yg,"input",this.t6a)};nng.prototype.Ib=function(){nng.ya.Ib.call(this);this.Yg.Ma();this.Yg=null};var R$f=function(a,b){var c=new Ot(null);c.yb(nh(a,b));return c};
nng.prototype.Zc=function(a){if(a=a.Xd)if(a.getOption("cv")||a.getOption("sp")){KMg(this);if(a=a.getTitle())Rc(this.$b,a),On(this.$b,!0),Fw(this.$b,a);this.Ag.setVisible(!0)}else{var b=P$f(a);On(this.Ab,b);this.Qb.setVisible(b);On(this.$b,!b);this.Ag.setVisible(!b);if(b){this.mL.setVisible(!0);On(this.Vb,!1);a=ze(nh(this,"__mp-ttc"));var b=xe(this.mL.ta()),c=xe(this.Qb.ta());a=a.width-b.width-c.width;(b=Ae(this.mL.ta()))&&(a-=b.left+b.right);(b=de(this.Ab))&&(a-=b.left+b.right);(b=ye(this.Ab))&&(a-=
b.left+b.right);(b=Ae(this.Ab))&&(a-=b.left+b.right);me(this.Ab,0<a?a:0);fxf(this,!1)}else hLg(this.getContext(),a,Lp(this.Ko,this))}else KMg(this),this.Ag.setVisible(!0)};nng.prototype.Ko=function(a,b,c){a=wWd(a.DU);b=c&&eib(c);this.mL.setVisible(!b||!!a&&!!a.getOption("cv"));On(this.Vb,!this.mL.dc());c=c?c.getName():"";Rc(this.$b,c);Fw(this.$b,c)};var KMg=function(a){On(a.$b,!1);a.mL.setVisible(!1);On(a.Vb,!1);On(a.Ab,!1);a.Qb.setVisible(!1);a.Ag.setVisible(!1)};q=nng.prototype;
q.$Ca=function(){var a=this.getContext().Mh.FH;if(a){var b=this.getContext();if(P$f(a)&&a.Sa)b.Mh.On(a.Sa);else{var c=GMg(b,a);if(c)if(eib(c))b.Mh.On(wWd(b.DU));else{var d=a.clone();(c=c.vt())?(d.Sa=a,BN(d,"parent",c)):l4f(d,"parent");o4(d,null);b.Mh.On(d)}}}};q.c6c=function(){this.getContext().Sa.oD()};q.dfb=function(a){13==a.keyCode&&this.WQb()};q.t6a=function(){this.Qb.Ta(!!Ia(this.Ab.value))};
q.WQb=function(){var a=this.Ab.value;if(Ia(a)){fxf(this,!0);var b=this.getContext().Mh.FH,c=b&&b.Sa,c=c&&c.getOption("parent"),a={title:a};c&&(a.parent=c);this.getContext().od.Vd(new K3("createFolder","drive",null,a),Lp(this.moc,this,b),Lp(this.k1b,this,b))}};
q.moc=function(a,b){if(b.Ae().length){var c=this.getContext(),d=c.od,c=c.Mh,f=c.FH;d.Rd((a&&a.Sa).or()).fVa(!0);var h=b.Ae()[0];h.zJ(!0);d.Xp([h]);var k=a.clone();BN(k,"parent",h.Qe());d=d.Rd(k.or());d.QK([]);d.Sva(void 0);f&&a&&f.equals(a)&&this.Vk&&(fxf(this,!1),c.On(k,!0))}else this.k1b(0,b)};q.k1b=function(a,b){var c=this.Ab.value;fxf(this,!1);if(this.Km){var c=b.DU||JC(this.getContext().ef(),Yhg,{YZc:c}),d=this.getContext().Mh.FH;Zhg(this.Km,c,d&&d.Sa)}this.$Ca()};
var fxf=function(a,b){a.Vk=b;a.Qb.Ta(!b);if(b)a.Ab.setAttribute("disabled","true");else{a.Ab.value="Untitled folder";a.Ab.removeAttribute("disabled");try{a.Ab.focus(),a.Ab.setSelectionRange(0,15)}catch(c){}}},ong={BACK:"__mp-tb",Cib:"__mp-tc",QFd:"__mp-ti",Pkc:"__mp-tnfi",ajc:"__mp-tnfc",EBa:"__mp-tt",T2:"__mp-ttc"};
var G4=function(a,b,c,d){a=Hua(a);e4.call(this,a,c,d);this.$b=this.Ag=!1;this.$=b};t(G4,h4);var ZFe=function(a,b){a.$?a.dispatchEvent("dj"):Fe(a)&&a.b5&&"expand"!=b.target.getAttribute("type")&&(zWd(a)&&a.WA()?a.collapse():(a.expand(),ZFe(kw(a,0),b)))},zWd=function(a){return Cd($lg(a),function(a){return a instanceof G4&&(a.Ag||zWd(a))})};q=G4.prototype;q.Na=function(){G4.ya.Na.call(this);this.getHandler().Ja(f4(this),"mouseover",this.Did);this.getHandler().Ja(f4(this),"mouseout",this.Eid)};
q.tGa=function(){if(Fe(this)&&this.WA()){for(var a=kw(this,0);a&&!a.Pga();)a=a.yH;return a?a:this}for(var a=this,b=this;a!=this.jx();){do if((b=b.yH)&&b.Pga())return b;while(b);b=a=a.getParent()}return null};q.xGa=function(){var a=this;do if(a=a.Ab){var b=a.Fga();if(b&&b.Pga())return b}while(a);a=this.getParent();b=this.jx();return b.S1||a!=b?a:null};
q.u4=function(){var a=G4.ya.u4.call(this);this.getParent()==this.jx()&&(a+=" a-ne-Cc");this.Pga()?(this.Ag&&(a+=" a-ne-X"),this.$b&&(a+=" a-ne-u")):a+=" a-ne-uS-Dq";return a};q.Pga=function(){return!!this.$&&qa(this.IK())||Fe(this)};q.Gf=function(){return this.$};q.yda=function(a){this.Pga()&&(G4.ya.yda.call(this,a),ZFe(this,a))};q.$7a=function(a){!this.$&&Fe(this)&&this.b5||G4.ya.$7a.call(this,a)};q.Did=function(){this.$b=!0;ySd(this)};q.Eid=function(){this.$b=!1;ySd(this)}; q.select=function(){G4.ya.select.call(this);S3(f4(this))};q.setActive=function(a){this.Ag=a;ySd(this)};
var AWd=function(){G4.call(this,"",null)};t(AWd,G4);AWd.prototype.Na=function(){AWd.ya.Na.call(this);DGg(this,Bdg("hr",{"class":"a-n0-kD"}));Qn(this.ta(),"a-Fv")};AWd.prototype.Pga=function(){return!1};AWd.prototype.Zqa=function(){return"a-Fv-m"};var BWd=function(a,b,c){i4.call(this,a,b,c)};t(BWd,i4);BWd.prototype.Qo=function(a){return 13==a.keyCode&&this.$e()&&this.$e().yda(a)?(a.preventDefault(),!0):BWd.ya.Qo.call(this,a)};var CWd=function(a,b){F4.call(this,a,b);this.mL=new PAg(a,b);x(this,this.mL)};t(CWd,F4);q=CWd.prototype;q.Tqb=!1;q.vab=function(){return"a-La"};q.J_a=function(){return"left"};
q.Pa=function(){CWd.ya.Pa.call(this);var a=this.getContext();a.rd();var b=this.Ea(),c={};Zb(c,ohg);c.chc="//ssl.gstatic.com/docs/picker/images/cleardot-v1.gif";c.dXa+=" a-ne";c.eXa+=" d-k-l";c.KDa+=" a-ne-uS-Dq";c.LDa+=" a-ne-uS-Dq";c.gsb="a-n-ia-En-Rf-Ev";c.hsb="a-n-ia-En-Rf";this.Ab=new BWd(Hua("root"),c,b);sVd(this.Ab);rVd(this.Ab);NSd(this.Ab);TQd(this,this.Ab);this.Ab.Pa();var d=this.Sa;d.appendChild(this.Ab.ta());sWd(this);a.Ab.addCallback(function(a){if(a.nPc){var c=b.Pa("div","a-oS");this.mL.getUrl()&&
Pd(c,"bottom","50px");if(My.Sa)c.appendChild(b.createTextNode("native"));else{var k=a.kod;k&&(c.appendChild(b.createTextNode(k)),c.appendChild(b.Pa("br")));if(a=a.l_a())c.appendChild(b.createTextNode(a)),c.appendChild(b.Pa("br"));a=Hf(new Af(window.location.href),"clientdebugon","true").toString();c.appendChild(b.Pa("a",{href:a,"class":"a-oS-H7",tabIndex:-1},"DEBUG"))}d.appendChild(c);this.Qb=c}},this);this.mL.getUrl()&&(this.mL.Pa(),TQd(this,this.mL),d.appendChild(this.mL.ta()));this.setSize(180)};
q.TWa=function(a,b,c){var d=tWd(a);if(!$Pb(d,this.getContext()))return null;uWd(this,d);a=this.lm(d,a);if("-"==a)return b=new AWd,this.Ab.add(b),b;d=new G4(a,d,this.Ab.rd(),this.Ea());!c||"expanded"!=c.collapsible&&"collapsed"!=c.collapsible?(d.b5=!1,d.b5||d.expand(),d.ta()&&d.Fda()):(this.Tqb=!0,"expanded"==c.collapsible&&d.expand());qr(this.getHandler(),d,"dj",this.Ag,!1,this);b?b.add(d):this.Ab.add(d);return d};q.Na=function(){CWd.ya.Na.call(this);this.UTb()};
q.UTb=function(){var a=ze(this.Sa);if(0>=a.height)Uf(Lp(this.UTb,this),10);else{var b=ye(this.Ab.ta());a.height-=b.top+b.bottom;this.mL.getUrl()&&(b=xe(this.mL.ta()),a.height-=b.height);this.Qb&&(a.height-=xe(this.Qb).height);ne(this.Ab.ta(),a.height);this.Tqb&&Qn(this.Ab.ta(),"a-La-mka")}};q.Yha=function(a){DWd(this,a)};
var DWd=function(a,b,c){if(a.Ab)if(!c&&$lg(a.Ab).length)He(a.Ab,function(a){DWd(this,b,a)},a);else{var d=c.Gf();b&&d&&b.equals(d)&&b.getName()==d.getName()?((d=a.Ab.$e())&&d!=a.Ab&&d.setActive(!1),c.setActive(!0),a.Ab.jn(c)):d&&c.setActive(!1);He(c,function(a){DWd(this,b,a)},a)}};CWd.prototype.Ag=function(a){(a=a.target)&&a!=this.Ab&&(this.getContext().Mh.On(a.Gf()),this.Yha(a.Gf()))};
var EWd=function(a,b,c,d,f){d?(this.$=c.Pa("div","d-k-l a-n-Wb"),a=[this.$,a]):a=f?[c.Pa("div","d-k-l "+f),a]:[a];yp.call(this,a,b,c)};t(EWd,yp);EWd.prototype.qj=function(a){this.Nb()&&(Pn(this.ta(),"a-L",a),this.$&&(a?(Rn(this.$,"a-n-Wb"),Rn(this.$,"a-n-Wb-u"),Qn(this.$,"a-n-Wb-X")):(Rn(this.$,"a-n-Wb-X"),Rn(this.$,"a-n-Wb-u"),Qn(this.$,"a-n-Wb"))))};EWd.prototype.zo=function(){this.Xr(!0);this.$&&!Sn(this.$,"a-n-Wb-X")&&Tn(this.$,"a-n-Wb","a-n-Wb-u")}; EWd.prototype.fp=function(){this.Xr(!1);this.$&&!Sn(this.$,"a-n-Wb-X")&&Tn(this.$,"a-n-Wb-u","a-n-Wb")};
var q3e=function(a){var b="",c=wA(new Z("{NUM_SELECTED,plural,=1{ selected \u00bb}other{ selected \u00bb}}"),{NUM_SELECTED:a.tPa});return b+='<div class="d-k-l"><span class="d-k-l a-Rh-Gg-V8"></span><span class="d-k-l a-Rh-Gg">'+r(a.tPa)+'</span></div><span class="d-k-l a-Rh-ka">'+c+"</span></div>"};
var H4=function(a,b,c,d){C.call(this,d);this.$=a;this.Vb=b;this.Qb=c;this.Ab=this.mL=null};t(H4,C);H4.prototype.Pa=function(){var a=this.Ea();this.Ab=new EWd("",this.Vb,a);this.ib(this.Ab);this.Ab.Pa();FWd(this,0);this.Kb(a.Pa("div","a-Rh",a.Pa("div","a-Rh-nb",this.Ab.ta())))};var FWd=function(a,b){var c=a.Ea(),d=U(a.$.ef(),q3e,{tPa:b});a.$b=c.fb("a-Rh-Gg-V8",d);a.Ag=c.fb("a-Rh-Gg",d);Vd(a.$b,0,-14);a.Ab.setContent(d)};
H4.prototype.Na=function(){H4.ya.Na.call(this);this.mL=new dIc(null,this.ta());this.getHandler().Ja(this.$.$,"si",this.Vk).Ja(this.mL,"toggle",this.uh).Ja(this.Ab,"action",Lp(function(){this.Qb.jn(this.Ab);var a=new w3("people");BN(a,"type","selected");var b=this.$.Mh;b.On(a);b.Hd().setActive(!0)},this));EI(this.Qb,this.Ab)};H4.prototype.Vk=function(){var a=wg(xg(E.ia(),"oppe")).d$(this.$,this.Ea()).Sx();a!=this.Sa&&(this.Sa=a,GWd(this,a),this.uh());0==this.Sa&&this.Qb.$e()==this.Ab&&this.dispatchEvent("sh")}; var GWd=function(a,b){a.Ea().uq(a.$b,String(b));(new XE(a.Ag,[0,14],218,eo)).play();var c=new XE(a.$b,[0,0],218,eo);a.getHandler().Ja(c,"end",function(){FWd(this,b)});c.play()};H4.prototype.uh=function(){null!=this.mL.$||this.mL.uba(!!this.Sa)};
var I4=function(a){Bp.call(this,a)};t(I4,Bp);I4.prototype.EJ=function(a){var b=I4.ya.EJ.call(this,a);b||9!=a.keyCode||(b=a.shiftKey?IWd(this):HWd(this))||this.Vq(-1);return b};I4.prototype.$Ga=function(){this.getHandler().yj(this.ta(),"keyup",this.EJ)};I4.prototype.mha=function(){};var HWd=function(a){return Ko(a,function(a,c){a++;return a<c?a:-c-2},a.eL)},IWd=function(a){return Ko(a,function(a){return a-1},0>a.eL?Ge(a):a.eL)}; I4.prototype.bDa=function(a){return ge(a.ta())-ge(this.ta())<oe(this.ta()).height&&I4.ya.bDa.call(this,a)};
var JWd=function(a,b){F4.call(this,a,b);this.Ab=new I4(b);Cp(this.Ab,!1);Io(this.Ab,!0);this.ib(this.Ab);this.mL=new Bp;Cp(this.mL,!1);Io(this.mL,!0);this.ib(this.mL);this.Qb=new hz;a.od.Vd(new Yw("c"),Lp(this.yQ,this),ka,!0);var c=a.Mh;this.getHandler().Ja(c,"vn",this.iaa);this.uh=new H4(a,3,this.Qb,b);this.ib(this.uh);this.Vb=(this.nA=a.rd().Kra)?167:153;this.Ko=null};t(JWd,F4);JWd.prototype.vab=function(){return"a-La"};JWd.prototype.J_a=function(){return"left"};
JWd.prototype.Pa=function(){JWd.ya.Pa.call(this);this.Ab.ta()||this.Ab.Pa();this.mL.ta()||this.mL.Pa();var a=this.Ea();this.uh.Pa();a.appendChild(this.Sa,a.Pa("div",null,this.uh.ta(),this.Ab.ta(),this.Ag=a.Pa("div","a-Vc-Md d-k-l",a.Pa("div","a-Vc-E","More","\u00a0","\u25be")),this.Km=a.Pa("div","a-Vc-Md d-k-l",a.Pa("div","a-Vc-E","Less","\u00a0","\u25b4")),this.mL.ta()));On(this.Ag,!1);On(this.Km,!1);this.setSize(180)};
JWd.prototype.Na=function(){JWd.ya.Na.call(this);this.getHandler().Ja(this.Ab,"action",this.Tx).Ja(this.mL,"action",this.Tx).Ja(this.Ag,"click",Lp(this.Vk,this,!0)).Ja(this.Km,"click",Lp(this.Vk,this,!1)).Ja(this.uh,"sh",function(){kw(this.Ab,0).fn(null)});Qn(this.Sa,"a-Vc");this.nA&&Qn(this.Sa,"a-Va-rc");Qn(this.mL.ta(),"a-Vc-zma");LWd(this);var a=this.Qb.$e();a&&a.qj(!0)};
var KWd=function(a,b){a.Ko=b;var c=b.parent;c?a.getContext().od.Vd(new Yw("c"),Lp(function(a){for(var b=0;b<this.Qb.$.length;b++){var c=this.Qb.Pl(b),k=c.kc();if(k instanceof Vw&&k.Qe()==a){5<b&&(this.Vk(!0),(new SSd(c.ta())).play());n2e(this,c);return}}this.getContext().Mh.On(new w3("people"))},a,c),ka,!1):a.getContext().Mh.On(new w3("people",void 0,b))},LWd=function(a){a.Nb()&&6<Ge(a.Ab)&&(a.Db=oe(a.Ab.ta()).height-ye(a.Ab.ta()).top,On(a.Ag,!0),Pd(a.Ab.ta(),"overflow-y","hidden"),Pd(a.Ab.ta(),"height",
a.Vb+"px"))};JWd.prototype.Vk=function(a){On(this.Ag,!a);On(this.Km,a);var b=a?this.Vb:this.Db,c=a?this.Db:this.Vb,b=new ZE(this.Ab.ta(),b,c,150);a?this.getHandler().Ja(b,"end",Lp(function(){Pd(this.Ab.ta(),"overflow-y","visible")},this)):Pd(this.Ab.ta(),"overflow-y","hidden");b.play()};
JWd.prototype.yQ=function(a){this.Ab.ta()||this.Ab.Pa();this.mL.ta()||this.mL.Pa();var b=OWd(this,"Everyone",1);Qn(b.ta(),"a-Vc-Ed");v(a.Ae(),function(a){OWd(this,a.getName(),a,!0)},this);this.Qb.jn(b);LWd(this);this.getContext().od.Vd(new Yw("g"),Lp(function(a){a.Ae().length&&MWd(this)},this),ka)};
var MWd=function(a){a.getContext().Ab.addCallback(function(a){a=NWd(this,a.rsc,2,!1,"a-n-rI");this.mL.ib(a,!0)},a)},NWd=function(a,b,c,d,f){b=new EWd(b,c,a.Ea(),d,f);EI(a.Qb,b);return b},OWd=function(a,b,c,d){b=NWd(a,b,c,d);a.Ab.ib(b,!0);return b};JWd.prototype.Tx=function(a){n2e(this,a.target)};
var n2e=function(a,b){var c=a.Qb.$e();a.Qb.jn(b);var d=a.getContext().Mh.FH,d=d?d.clone():new w3("people",void 0,a.Ko);o4(d,null);var f=b.kc();if(f&&f instanceof Vw)BN(d,"parent",f.Qe()),BN(d,"type",void 0);else switch(f){case 1:BN(d,"parent",void 0);BN(d,"type","people");break;case 2:BN(d,"type","gmail")}a.getContext().Mh.On(d);c||a.getContext().Mh.Hd().setActive(!0)};JWd.prototype.iaa=function(a){a=a.$;this.Yha(a.getQuery()?null:a)};
JWd.prototype.Yha=function(a){if(a&&"people"==a.$){var b=a.getOption("parent"),c="gmail"==a.Ra(),d="people"==a.Ra()&&!b,f="selected"==a.Ra();v(this.Qb.wu(),function(a){var k=a.kc(),m=k instanceof Vw?k.Qe():void 0;(b&&b==m||c&&2===k||d&&1===k||f&&3===k)&&this.Qb.jn(a)},this)}else this.Qb.jn(null)};
var PWd=function(a,b){var c=a.rd().mL?"a-ch-Nb":"a-Nb";y3.call(this,a,c+"-Cc",c+"-Bb",c+"-B","top",b);this.oh=this.getContext().rd().getTitle();this.Ag=this.getContext().rd().LRa||this.oh;this.Ab=null};t(PWd,y3);
var w0e=function(a,b){if(b){var c=a.Ea(),d=a.Sa,f=c.Pa("div",{id:"picker:ht","class":"a-Nb-E",role:"heading"},b),h;h=a.getContext().rd();(h=W2d[h.tjb])&&d.appendChild(c.Pa("div","a-Nb-m "+h));d.appendChild(f);a.getContext().rd().qna&&(f=c.Pa("div","a-Nb-E a-KsV2dd-c4-E","Dogfood Confidential"),d.appendChild(f));a.mL=new Mxg(a.getContext(),c);a.ib(a.mL,!1);a.mL.Pa();c.uv(d,a.mL.ta())}v0e(a,b)};PWd.prototype.Pa=function(){PWd.ya.Pa.call(this);w0e(this,this.oh);this.getContext().rd().dw&&m4f(this)};
var m4f=function(a){var b=a.Ea(),c=a.Sa;a.getContext().Ab.addCallback(function(a){if(a.nPc&&!My.Sa){this.Ab=b.Pa("div","a-xb-Jeb-ka");var f=a.kod;f&&this.Ab.appendChild(b.createTextNode(f+":"));(a=a.l_a())&&this.Ab.appendChild(b.createTextNode(a));c.appendChild(this.Ab)}},a)};PWd.prototype.Na=function(){PWd.ya.Na.call(this);this.getContext().rd().mL&&(this.getHandler().Ja(this.getContext().mL,"set-title",this.$b),this.getHandler().Ja(this.getContext().Mh,"tn",this.Qb))};
var x0e=function(a,b){var c=a.Ea(),d=c.fb("a-Nb-E",a.ta()),f=a.oh,h=b||a.getContext().Mh.FH;h&&h.getOption("parent")&&(f=a.Ag);d?(c.hb(d),f&&c.appendChild(d,c.createTextNode(f)),v0e(a,f)):w0e(a,f)},v0e=function(a,b){if(b)if(a.getContext().rd().mL){var c=a.Ea().fb("a-Nb-E",a.ta()),d=xe(c).height,c=Ae(c);c.top&&(d+=c.top);c.bottom&&(d+=c.bottom);a.setSize(Math.max(d,28))}else a.setSize(20);else a.setSize(0)}; PWd.prototype.$b=function(a){a=a.data.title;qa(a)&&(this.oh=a,x0e(this));(a=this.getContext().Mh.Hd())&&a.vB()};PWd.prototype.Qb=function(a){x0e(this,a.Xd)};
var J4=function(a,b){t3.call(this,a,b);this.Qb=new Ze;this.getHandler().Ja(a.Mh,"un",this.$b);var c=a.$,d=Lp(this.BMb,this);c.mL=d;Lp(this.Dqc,this)};t(J4,t3);J4.prototype.Sa=null;J4.prototype.Ab=null;J4.prototype.mL=null;var SWd=[];J4.prototype.Pa=function(){J4.ya.Pa.call(this);var a=this.Sa;a&&(a.Pa(),this.Ea().appendChild(this.ta(),a.ta()))};J4.prototype.Di=function(){return!0};J4.prototype.ra=function(a){J4.ya.ra.call(this,a);a=this.Ea().Mt(a);var b=this.Sa;b&&(a?b.yb(a):b.render(this.ta()))};
J4.prototype.$b=function(a){if(a.$){var b=this.getContext().rd(),c=b.lp;b.lp=!0;this.hUb(a.Xd);b.lp=c}else this.hUb(a.Xd);Rf(a.Xd.le())};var RWd=function(a,b){for(var c=a.getContext().rd(),d=0;d<SWd.length;d++)if(SWd[d].hDa(b,c))return SWd[d];throw Error("Ah");};q=J4.prototype;
q.hUb=function(a,b){this.mL=a;var c=RWd(this,a),d=xg(E.ia(),"oppe");if(d&&!d.$&&"photo-tagging"==a.$)Ag(E.ia(),"oppe",Lp(this.hUb,this,a,b));else if(c.sXb(a,this.getContext().rd())){var f=2,d=Lp(function(){0==--f&&this.bdb(a)},this);c.load(d);this.getContext().Ab.addCallback(d)}else c.CKb()?this.bdb(a):c.load(Lp(this.bdb,this,a))};
q.bdb=function(a){if(this.mL&&this.mL.equals(a)){this.mL=null;var b=this.getContext(),c=b.Mh,d=a.getOptions(),f;f=this.Qb;var h;h=[];aNg(h,a);a.Qb&&aNg(h,a.Qb);h=h.join("/");var k=f.get(h);if(!k){var m=this.getContext(),k=tJg(a,m.rd());(m=m.Qb)&&k&&m.YJa(k,"vup");k=RWd(this,a).create(a,this.getContext(),this.Ea());this.getHandler().Ja(k,"change",this.Gjd).Ja(k,"$e",this.boa);f.set(h,k);this.ib(k)}f=k;f!=this.Sa&&(this.Nb()&&!f.Nb()&&f.render(this.ta()),this.Ab&&this.Ab.p_a&&(this.Ab.p_a(),this.Ab=
null),this.Sa&&this.Sa.ta()&&ze(this.Sa.ta()),c.dispatchEvent(new OVd("tn",a)),f.setActive(!0,d),(c=b.Qb)&&!this.Sa&&(c.WXa("livr"),d=b.rd(),c.vxb=d.iu?"load_mindrive":FQd(a.$)?"load_drive":"load",iGe(a)||c.Qb()),!b.rd().lp&&this.Sa&&f.cka?(this.Ab=f,f.cka(0,0,0,Lp(this.gHa,this,f,a))):this.gHa(f,a))}};
q.gHa=function(a,b){this.Ab=null;var c=this.getContext().Mh,d=this.Sa;d&&d.setActive(!1);this.Sa=a;c.jUb(a,b);this.getContext().rd().Ko&&a.kt();this.getContext().$.dispatchEvent("ti");this.dispatchEvent("change");c.dispatchEvent(new OVd("Vn",b))};q.BMb=function(a){var b=this.Sa;if(b){for(var c=[],b=b.zq().Rc(),d=0;d<a.length;d++)eb(b,a[d])&&c.push(a[d]);return c}return a};q.Gjd=function(a){a.target instanceof t3&&a.target.g3&&this.getContext().$.dispatchEvent("ti")};
q.boa=function(a){var b=this.getContext();a.currentTarget instanceof t3&&(a=a.currentTarget.TP(),(b=b.Qb)&&a&&b.dCa(a,"vup"))};q.Dqc=function(){var a=this.Sa;return a?a.zq():new df};q.qb=function(){J4.ya.qb.call(this);this.Qb.clear();this.mL=this.Sa=this.Qb=null};
var K4=function(a,b){t3.call(this,a,b);var c=a.rd(),d=i3e(c)?new JWd(a,b):c.dw?new xWd(a,b):new CWd(a,b);x(this,d);this.Sa=d;this.Ab=new J4(a,b);this.Ag=d=c.iaa;this.$b=(c=c.iu)?new hng(a,b):null;x(this,this.$b);this.mL=c?new nng(a,b):new PWd(a,b);x(this,this.mL);this.ib(this.mL);this.$b?(z3(this.mL,this.$b),this.mL.Km=this.$b,z3(this.$b,this.Ab)):this.Sa&&!d?(z3(this.mL,this.Sa),z3(this.Sa,this.Ab)):z3(this.mL,this.Ab);yDa(this.Ea());this.Qb=null};t(K4,t3);
K4.prototype.Pa=function(){var a=this.getContext().rd(),b=a.dw,c=this.Ea(),d=this.Qb=c.Pa("div","a-wb-Ab",c.Pa("div","a-wb-Ab a-Zja"));On(d,!1);var f;a:switch(a.cSa){case "inline":f="a-Dn-k";break a;case "none":f="a-Dn-mf";break a;default:f=""}c=c.Pa("div","a-wb-Z "+f,d);a.mL&&Qn(c,"a-ch-Z");Pn(c,"a-F6",this.Ag);Pn(c,"a-AVa-Lb",b&&a.Vk);Pn(c,"a-Sf",xc);Pn(c,"a-id-a",i3e(a));Pn(c,"a-N7",a.kN());this.Kb(c);c.setAttribute("guidedhelpid","ghid-pmc");a=U(this.getContext().ef(),Kkd);c.appendChild(a);this.mL?
(this.mL.Pa(),c.appendChild(this.mL.ta())):this.Ag?(this.Ab.Pa(),c.appendChild(this.Ab.ta())):(this.Sa.Pa(),c.appendChild(this.Sa.ta()));(a=xd?"-webkit":wd?"-moz":void 0)&&Y8a(this.getContext().ef().render(l3e,{prefix:a,selector:"a-xm-SUa"}),this.Ea())};
K4.prototype.Na=function(){K4.ya.Na.call(this);var a=this.getContext().Qb;a&&(a.WXa("lav"),a.dCa("ev","evavc"));a=this.getContext().rd();this.getContext().Km.Sa(a.getTitle(),"assertive");var b=this.Ea().La(),c=My.Sa;c||xNc(b.body,this.getHandler());this.getHandler().Ja(b,"keydown",this.XHb,c&&a.mL).Ja(this.getContext().Mh,"Jn",this.Dtb).Ja(this.getContext().mL,"visibility",this.Dwb);if(a.mL&&c&&!a.DAa)if(this.getHandler().Ja(b,"mousedown",this.tKa,!0),xc){var d;try{d=b.activeElement}catch(f){}for(;d&&
"IFRAME"==d.nodeName;){try{var h=Pc(d)}catch(k){break}b=h;d=b.activeElement}this.getHandler().Ja(b,"mousedown",this.tKa,!0);this.getHandler().Ja(b,"deactivate",this.rKa)}else this.getHandler().Ja(b,"blur",this.rKa);i3e(a)?(d=this.getContext().rd().uh[0][2]||{},d.type=d.type||"people",KWd(this.Sa,d)):this.Sa.$b(v3e(this));a.Ag&&eVd(E.ia(),"opr")};
var v3e=function(a){var b=a.Sa;(a=a.getContext().rd().mna)?a instanceof Jw?b=wUd(a.getId(),a.lm(),a.getOptions()):(b=Qf(a),b=wUd(b[0],b[1],b[2])):b=wWd(b);return b};q=K4.prototype;q.Dtb=function(a){a.OGa&&!ve(this.Qb)?(On(this.Qb,!0),(new bF(this.Qb,500,function(a){return a/2})).play()):On(this.Qb,!1)};q.Dwb=function(a){a=a.data.visible;this.getContext().rd().mL&&ra(a)&&!a&&this.getContext().Mh.On(v3e(this),!0);var b=this.getContext().Qb;b&&a&&b.Ta(!0)};
q.XHb=function(a){var b;if(b=27==a.keyCode)b=this.getContext().Mh.FH,b=!(b&&"photo-curation"==b.$);if(b){b=this.getContext().rd().mL;var c=My.Sa;b&&c?this.getContext().rd().Ko&&(this.getContext().Sa.oD(),a.preventDefault(),a.stopPropagation()):this.getContext().Sa.oD()}};q.tKa=function(a){if(this.getContext().rd().Ko){var b=this.getContext().rd().fG()||this.ta();Oc(b,a.target)||this.getContext().Sa.oD()}};
q.rKa=function(a){if(this.getContext().rd().Ko){var b=this.getContext().rd().fG()||this.ta(),c=lc(b);if("undefined"!=typeof document.activeElement){if(a=c.activeElement,!a||Oc(b,a)||"BODY"==a.tagName)return}else if(a.target!=c)return;this.getContext().Sa.oD()}};
var o$f=function(a){return Y(zn(r(a.jab),10))};var L4=function(){F3.call(this,"a-Vd-e")};t(L4,F3);la(L4);
L4.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=c.getUrl(),f=c.getName(),h=c.getAttribute("au")||"",k="unknown"==h||""==h,m=b.Pa("div","a-Vd-e-Uja");ln(m,o$f,{jab:k?"author unknown":h});k&&Qn(m,"a-Vd-e-ika-wma");var h=c.getAttribute("py")||"",h="unknown"==h||""==h?"":b.Pa("div","a-Vd-e-Xs",b.Pa("div","a-Vd-e-Xs-E",h)),k=(new Z("{numPages, plural, =0 {}=1 {1 page}other {# pages}}")).format({numPages:c.getAttribute("pc")||0}),p=c.Yh(),c=p?p[0].wc()||64:64,u=p?p[0].Ic()||64:64,p=p?p[0].Qs():null;
ya(p,"/")&&(p="http://books.google.com"+p);p=lWd(p,"&edge=curl");p=p.replace("/no_cover_thumb_with_curl.gif","/no_cover_thumb.gif");d=b.Pa("div","a-Vd-e-na",b.Pa("div","a-Vd-e-na-OX",b.Pa("a",{href:d,target:"_blank",tabIndex:-1},b.Pa("img",{src:p,width:c,height:u,"class":"a-Vd-e-na-W"}))));b=b.Pa("div",this.qr(a).join(" "),b.Pa("div","a-Vd-e-aa",b.Pa("table",{cellPadding:0,cellSpacing:0,width:"100%"},b.Pa("tbody",null,b.Pa("tr",null,b.Pa("td",{valign:"top"},d),b.Pa("td",{width:"100%",valign:"top"},
b.Pa("div","a-Vd-e-Fn",a=b.Pa("div","a-Vd-e-O"),m,h,b.Pa("div","a-Vd-e-jma",k))))))));a.id=Ce(Be.ia());ln(a,o$f,{jab:f||""});qo(b,"labelledby",a.id);return b};L4.prototype.jh=function(a){return a.ta().firstChild};L4.prototype.setState=function(a,b,c){L4.ya.setState.call(this,a,b,c);32==b&&(nc("a",null,a.ta())[0].tabIndex=c?0:-1)};
var VWd=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c)};t(VWd,y4);VWd.prototype.ED=function(a){return new E3(this.getContext(),a,L4.ia(),this.Ea())};var N4=function(a,b,c,d){y3.call(this,a,"a-RH-Cc","a-RH-Bb","a-RH-B","top",d);this.Qb=new x4(a,b,d);this.Bc=b;this.$b=this.Bc.Ra()||"a";this.Ag=this.Bc.getOption("sortOrder")||"p";this.mL=this.Ab=null};t(N4,y3);var bXd={a:"All fonts",d:"Display",h:"Handwriting",m:"Monospace",s:"Serif",ss:"Sans Serif"},cXd={p:"Popularity",a:"Alphabetical",da:"Date added",t:"Trending"};
N4.prototype.Pa=function(){N4.ya.Pa.call(this);this.setSize(75);var a=this.Ea();this.Qb.Vb=!1;this.Qb.Pa();var b=a.Pa("div","d-k-l");this.Ab=new qz("",void 0,Hp.ia());$Wd(this,this.Ab,bXd);this.Ab.render(b);var c=a.Pa("div","d-k-l");this.mL=new qz("",void 0,Hp.ia());$Wd(this,this.mL,cXd);this.mL.render(c);this.Sa.appendChild(a.Pa("div","a-RH-Z",this.Qb.ta(),a.Pa("div","a-RH-r-Z",b,c)));this.getHandler().Ja(this.Ab,"action",this.uh).Ja(this.mL,"action",this.Vb);aXd(this)};
var $Wd=function(a,b,c){for(var d in c)b.dg(new TM(c[d],d,a.Ea()))};N4.prototype.uh=function(a){var b=new w3("fonts");b.Sa=this.Bc.Sa||this.Bc;BN(b,"type",a.target.getValue());BN(b,"sortOrder",this.Ag);this.getContext().Mh.On(b);aXd(this);this.$b=a.target.getValue()};N4.prototype.Vb=function(a){var b=new w3("fonts");b.Sa=this.Bc.Sa||this.Bc;BN(b,"type",this.$b);BN(b,"sortOrder",a.target.getValue());this.getContext().Mh.On(b);aXd(this);this.Ag=a.target.getValue()}; var aXd=function(a){var b="Show: "+bXd[a.$b];a.Ab.Wj(a.$b);a.Ab.Lb(b);b="Sort: "+cXd[a.Ag];a.mL.Wj(a.Ag);a.mL.Lb(b)};N4.prototype.Na=function(){N4.ya.Na.call(this);this.Qb.Na()};
var dXd=function(){};t(dXd,vo);la(dXd);dXd.prototype.Pa=function(a){var b=a.Ea(),c=a.La().Qe();a=Ce(Be.ia());b=b.Pa("div",{"class":"a-QH-za d-k-l",name:c},b.Pa("span",{"class":"a-QH-za-kb",style:'font-family: "'+c+'::Menu"',id:a},c),b.Pa("span",{"class":"a-QH-za-bd",role:"button","aria-label":"Remove",tabIndex:0},b.Pa("span","a-n-ab-z-wt-jf d-k-l")));qo(b,"labelledby",a);b.style.paddingRight=xc?b.style.paddingLeft="7px":b.style.paddingLeft="15px";return b};dXd.prototype.Ag=function(a){return a.ta().children[1]};
var eXd=function(a,b,c){y3.call(this,a,"a-LA-Cc","a-LA-Bb","a-LA-B","right",c);this.mL=new Ze;this.getHandler().Ja(a.$,"si",this.WAc);this.Ab=null};t(eXd,y3);q=eXd.prototype;q.Pa=function(){eXd.ya.Pa.call(this);this.setSize(200);var a=this.Ea();this.Ab=a.Pa("div","a-LA-za-di");a=a.Pa("div","a-LA-jE",a.Pa("div","a-LA-Nb","My fonts"));this.Sa.appendChild(a).appendChild(this.Ab)};q.WAc=function(a){v(a.ur,Lp(this.QTb,this))};q.PTb=function(a){this.getContext().$.WT([a.La().getId()],!1)};
q.zid=function(a,b){if(13==b.keyCode||32==b.keyCode)this.PTb(a),b.stopPropagation(),b.preventDefault();return!0};
q.QTb=function(a){if(this.getContext().$.Sf(a)&&!ba(this.mL,a)){var b=this.getContext().od.La(a);if(b){var c=new bVd(this.getContext(),b,dXd.ia(),this.Ea());this.mL.set(a,c);a=this.Ea().Tc("a-QH-za",this.Ab);for(var d=!0,f=0;f<a.length;f++)if(a[f].name>b.Qe()){De(c,a[f]);d=!1;break}d&&c.render(this.Ab);b=c.Sa.Ag(c);this.getHandler().Ja(b,"click",Lp(this.PTb,this,c)).Ja(b,"keypress",Lp(this.zid,this,c))}}else!this.getContext().$.Sf(a)&&ba(this.mL,a)&&(c=this.mL.get(a),this.Ab.removeChild(c.ta()),c.qb(), this.mL.remove(a))};
var WWd=function(){F3.call(this,"a-QH-e")};t(WWd,F3);WWd.prototype.Pa=function(a){var b=a.La();a=a.Ea();var c=a.Pa("tr","a-QH-e-cy"),b=b.Qe(),b=a.Pa("td",{"class":"a-QH-e-kb-xd",style:'font-family: "'+b+'::Menu"'},a.Pa("span","a-n-A6-lf"),b);a.uv(c,b);return c};
var YWd=function(){this.Sa={};this.$=null};la(YWd);var ZWd=function(a,b,c){var d=[],f;for(f in b){if(4093<Qb(a.Sa))break;var h=b[f],k=h.Qe(),h=h.getAttribute("affr");null==h||ia(a.Sa[k])||(d.push(h),a.Sa[k]=!0)}if(0<d.length)if(a.$)if(a.$.styleSheet)for(f=0;f<d.length;f++)a.$.styleSheet.insertRule(d[f],a.$.styleSheet.cssRules.length);else a.$.firstChild.appendData(d.join("\n"));else a.$=Y8a(d.join("\n"),c)};
var M4=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Sa=new WWd};t(M4,y4);M4.prototype.Hr=function(a){ZWd(YWd.ia(),a,this.Ea());M4.ya.Hr.call(this,a)};M4.prototype.ED=function(a){return new E3(this.getContext(),a,this.Sa,this.Ea())};M4.prototype.cD=ka;
var fXd=function(a,b,c,d){t3.call(this,a,d);this.Bc=b;this.Sa=c;b=new N4(a,b,0,d);z3(b,c);this.mL=b;c=new eXd(a,0,d);z3(c,b);this.Qb=c;a=new B3(a,Lp(this.Aid,this),void 0,d);z3(a,c);this.ib(a);this.Ab=a};t(fXd,t3);q=fXd.prototype;q.Na=function(){fXd.ya.Na.call(this);qr(this.getHandler().Ja(this.getContext().$,"si",this.RTb),this.Sa,"change",this.RTb,!1,this).Ja(this.getContext().mL,"select-fonts",this.nJc).Ja(this.getContext().Sa,"reset",Lp(this.Bid,this,0));WUd(this.Sa,this.mL.Qb)};
q.Aid=function(){for(var a=this.getContext(),b=a.od,c=a.$.Sk(!0),d=[],f=0;f<c.length;f++){var h=b.La(c[f]);"font"==h.Ra()&&d.push(h)}a.Sa.Sl(d);this.Ab.qh(!1)};q.setActive=function(a,b){fXd.ya.setActive.call(this,a,b);a&&gXd(this);this.Sa.setActive(a)};q.RTb=function(){this.g3&&gXd(this)};q.Pa=function(){var a=this.Ab;a.qh(!1);a.Pa();this.Kb(a.ta());Qn(this.ta(),"a-uVa")};
var gXd=function(a){for(var b=a.getContext().od,c=a.getContext().$,d=a.Qb,c=c.Sk(!0),f=!1,h=0;h<c.length;h++)"font"==b.La(c[h]).Ra()&&(f=!0,d.QTb(c[h]));a.Ab.qh(f)};q=fXd.prototype;q.nJc=function(a){if(this.g3&&(a=a.data.fonts)&&a.length){var b=zg(a,function(a){return a.fontName});this.getContext().od.Vd(new u3("fonts",b,{}),Lp(this.NHc,this,a),Lp(this.OHc,this),!0)}};
q.NHc=function(a,b){if(xc){var c=this.getContext().rd().ta();c.style.display="none";c.style.display="block"}for(var c=this.getContext().$,d=new df(zg(a,function(a){return a.fontName})),f=b.Ae(),h=0;h<f.length;h++)d.contains(f[h].Qe())&&c.Fca(f[h].getId(),!0,"cb",!0);ZWd(YWd.ia(),f,this.Ea())};q.OHc=function(){alert("Sorry!  We could not find the fonts you previously selected.")};q.Bid=function(){if(this.g3){var a=this.Bc.Sa;a&&this.getContext().Mh.On(a)}};q.vB=function(a){this.Sa.vB(a)};
var hXd=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.Sa=new B3(a,Lp(this.Ab,this),void 0,c);this.ib(this.Sa)};t(hXd,t3);hXd.prototype.Pa=function(){var a=this.Ea(),b,c=a.Pa("div","a-B",b=a.Pa("div","a-sS-Z")),d=null;"homepage"==this.Bc.Ra()&&b.appendChild(d=a.Pa("img",{"class":"a-sS-W",src:"//ssl.gstatic.com/docs/picker/images/google-homepage-v1.gif",width:"374",height:"244"}));a=this.Sa;a.qh(!0);a.Pa();a.cb().appendChild(c);this.Kb(a.ta());this.getHandler().Ja(d,"dblclick",Lp(this.Ab,this))}; hXd.prototype.Ab=function(){this.getContext().Sa.Sl([])};
var lug=function(a,b,c){t3.call(this,a,c);this.Bc=b};t(lug,t3);lug.prototype.Pa=function(){lug.ya.Pa.call(this);this.Bc.getQuery()};lug.prototype.Na=function(){lug.ya.Na.call(this);this.Bc.getQuery()};var x3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste a URL here:}male{Paste a URL here:}other{Paste a URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},y3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste an image URL here:}male{Paste an image URL here:}other{Paste an image URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},C3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste a video URL here:}male{Paste a video URL here:}other{Paste a video URL here:}}"), {VIEWER_GENDER:c.Aa});return P(a+(""+c))},E3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste YouTube URL here:}male{Paste YouTube URL here:}other{Paste YouTube URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))};
var iXd=function(a,b,c){t3.call(this,a,c);this.lp=tJg(b,a.rd());T$g(this,"vc");this.Bc=b;this.Sa=new B3(a,Lp(this.eUb,this),void 0,c);this.ib(this.Sa);this.dh=b.Ra()||"image";this.Qb=b.getOption("site");this.Vk=new kR;this.ib(this.Vk)};t(iXd,t3);q=iXd.prototype;q.bza=null;q.X4a=!1;q.Y4a=!1;q.Kqa=!1;q.V6=null;
q.Pa=function(){var a=this.Ea(),b;b=Be.ia();var c=Ce(b),d=Ce(b),c=this.Km=a.Pa("div","a-B a-ie",b=a.Pa("label",{"class":"a-ie-Nb","for":c}),this.Ab=a.Pa("input",{"class":"a-ie-N",id:c}),this.mL=a.Pa("div",{"class":"a-ie-Tc-m d-k-l",style:"visibility: hidden"}),this.uh=a.Pa("table","a-ie-qa",a.Pa("tbody",null,a.Pa("tr",null,this.$b=a.Pa("td",{"class":"a-ie-qa-Ws",id:d},this.bza=qTf(this))))));qo(this.Ab,"controls",d);po(this.$b,"status");qo(this.$b,"live","polite");d=this.getContext().ef();switch(this.dh){case "image":a.uq(b,
JC(d,y3e));break;case "video":"youtube.com"==this.Qb||"www.youtube.com"==this.Qb||"youtu.be"==this.Qb?a.uq(b,JC(d,E3e)):a.uq(b,JC(d,C3e));break;default:a.uq(b,JC(d,x3e))}a=this.Sa;a.Pa();a.cb().appendChild(c);this.Kb(a.ta());this.Vk.yb(this.Ab)};
q.Na=function(){iXd.ya.Na.call(this);this.yab();var a=this.Ab;this.Yg=new rw(a);this.V6=new Cx(this.Km);a=this.getHandler().Ja(this.Yg,"input",this.iEb).Ja(a,"keypress",this.ujd).Ja(this.V6,"load",this.Db).Ja(this.getContext().Sa,"reset",this.dUb).Ja(this.Ea().getWindow(),"resize",this.yab);"image"==this.dh?a.Ja(this.V6,"error",this.Vb):a.Ja(this.V6,"error",this.xGc);S$g(this,"vc");this.dispatchEvent("$e")};q.kt=function(){Uf(function(){try{this.Ab.focus()}catch(a){}this.Ab.select()},0,this);return!0};
q.yab=function(){var a=kXd(this);if(0>=a.width||0>=a.height)Uf(Lp(this.yab,this),100);else{le(this.uh,a);var a=a.width,b=this.Ab,c=this.Op;if(!c)var c=function(){var a=Ae(b);return a.left+a.right},d=pba(b),f=this.mL,c=this.Op=c()+d.offsetWidth+c()+f.offsetWidth+c();b.style.width=a-c+"px"}};q.ujd=function(a){13==a.keyCode&&this.Sa.Db&&this.eUb()};
q.iEb=function(){this.X4a=!1;var a=Ia(this.Ab.value),b=!!a,c=b?zgf(a):void 0;this.Sa.qh(!1);Pn(this.Ab,"a-ie-L",b);this.mL.style.visibility="hidden";var d=this.dh,f=this.Qb;if(c)if(b=IQd.ia(),I3e(this,"Loading preview..."),"all"==d||"video"==d)if(f&&xVd(b,c,f)||xVd(b,c,c.Tf()))if(f=IQd.ia(),a=Jf(a),a=this.Qb?wVd(f,a,this.Qb):wVd(f,a,a.Tf())){b=kXd(this);f=new Kb(640,480);Mb(f,b)||f.Cr(b);var h=this.Ea(),b=this.Ag=Ce(Be.ia()),h=h.Pa("div",{id:b});lXd(this,h);mVd(a,b,h,f.width,f.height,{allowFullScreen:"true",
flashvars:"apiId="+b});this.Y4a=!0;this.Sa.qh(!0)}else mXd(this);else"all"==d?jXd(this,a):mXd(this);else jXd(this,a);else b?I3e(this,"The URL is not valid.  Make sure it starts with http:// or https://.",!0):this.bza?I3e(this,this.bza):I3e(this,"If your URL is correct, you'll see a preview here.  Large images may take a few minutes to appear.");"all"==d&&c&&this.Sa.qh(!0)};
var zgf=function(a){var b;try{b=Jf(a)}catch(c){return}a=(b.Au()||"").toLowerCase();return"http"!=a&&"https"!=a||!b.Tf()?void 0:b},jXd=function(a,b){var c=a.mL;c.className="a-ie-Tc-m d-k-l";c.style.visibility="";T$g(a,"vdl");var d=(c=zgf(b))&&ygf(c);d?(a.Kqa=!0,a.getContext().od.Vd(new u3("docs",[d],{}),Lp(a.WBe,a),Lp(a.iuc,a))):(a.Kqa=!1,a.getContext().rd().xna?a.getContext().od.Vd(new Pie(c.toString()),Lp(a.Ko,a),Lp(a.Vb,a)):Agf(a,URd(b)))};iXd.prototype.Ko=function(a){Agf(this,a.Qb)};
var Agf=function(a,b){var c=a.V6;Dx(c,a.Ag=Ce(Be.ia()),b);c.start()},qTf=function(a){if("image"!=a.dh&&"video"!=a.dh)return null;var b="If your URL is correct, you'll see an image preview here.  Large images may take a few minutes to appear.",c="Remember: Using others' images on the web without their permission may be bad manners, or worse, copyright infringement.";"video"==a.dh&&(b="If your URL is correct, you'll see a video preview here.  Large videos may take a few minutes to appear.",c="Remember: Using others' videos on the web without their permission may be bad manners, or worse, copyright infringement.");
a=a.Ea();b=a.Pa("div","a-ie-qa-B",b);c=a.Pa("div",null,c);return a.Pa("div",null,b,c)},I3e=function(a,b,c){Pn(a.uh,"a-ie-wa",!!c);Pn(a.$b,"a-ie-wa-Ws",!!c);lXd(a,qa(b)?a.Ea().createTextNode(b):b)},kXd=function(a){var b=a.Km,c=ye(b);return new Kb(b.offsetWidth-c.left-c.right,b.parentNode.offsetHeight-a.uh.offsetTop-c.top-c.bottom)};
iXd.prototype.Db=function(a){a=a.target;if(a.id==this.Ag){S$g(this,"vdl");this.mL.className="a-ie-eu-m d-k-l";this.Sa.qh(!0);if(a.naturalWidth&&a.naturalHeight){var b=kXd(this),c=new Kb(a.naturalWidth,a.naturalHeight);Mb(c,b)||le(a,c.Cr(b))}lXd(this,a);this.X4a=!0}};var lXd=function(a,b){a.Y4a&&a.Ag&&(nVd(a.Ag,a.Ea()),a.Y4a=!1);var c=a.$b;zc(c);c.appendChild(b)};
iXd.prototype.Vb=function(){this.mL.className="a-ie-wa-m d-k-l";var a=this.Ea();I3e(this,a.Pa("div",{style:"text-align: left;"},"We can't find the image at that URL.",a.Pa("ul",null,a.Pa("li",null,"Please check the address for typing errors."),a.Pa("li",null,"Make sure the image is public. If your image is protected by a password, or on an internal network, we will not be able to read it."))),!0)};var mXd=function(a){I3e(a,"The video URL you entered above can't be loaded.  Please make sure it is correct and is from a supported site.")};
q=iXd.prototype;q.xGc=function(){this.mL.className="a-ie-wa-m d-k-l";I3e(this,"Preview unavailable.")};
q.eUb=function(){var a=this.getContext(),b=a.od,c=Ia(this.Ab.value);if(a.rd().jg)this.Sa.qh(!1),b.Vd(new K3("importPhoto","picasa",[],{url:c,label:"profile_photos.draft"}),Lp(this.tjd,this),Lp(this.KBc,this),!0);else if(this.X4a)a={},a.url=c,a.name=Jf(c).getPath().split("/").pop(),a.type="photo",a.serviceId="url",a=new Vw(a),this.Kqa&&(b=(b=zgf(c))&&ygf(b))&&(a.Qb=b,a.Fs=null),(b=this.$b.getElementsByTagName("img")[0])&&a.ZE([new Uw(this.Kqa?b.src:c,b.naturalWidth,b.naturalHeight)]),this.getContext().Sa.Sl([a]);
else{var d=KQd(IQd.ia(),c);d?b.Vd(new u3("youtube",[d],{}),Lp(this.BMc,this),Lp(this.yEb,this)):a.Sa.Sta(c)}};q.BMc=function(a){(a=a.Ae())&&0<a.length?this.getContext().Sa.Sl(a):this.yEb()};q.yEb=function(){alert("The video you selected no longer exists.  The owner may have removed it.");this.dUb()};q.tjd=function(a){a=a.Ae()[0];var b=new w3("crop");BN(b,"id",a.Qe());BN(b,"service",a.$);b.Sa=this.Bc;this.getContext().Mh.On(b);this.Sa.qh(!0)};
q.KBc=function(){alert("The image URL you specified could not be retrieved.  It may be a private URL that our servers cannot access.  Please try a different URL.");this.Sa.qh(!0)};q.dUb=function(){this.Ab.value="";this.iEb()};q.WBe=function(a){if((a=a.Ae())&&0<a.length&&"photo"==a[0].Ra()&&(a=a[0].Yh())&&0<a.length){Agf(this,a[0].ll(400).getUrl());return}this.iuc()};q.iuc=function(){this.mL.className="a-ie-wa-m d-k-l";I3e(this,"The image URL you have entered above is incorrect or can't be loaded.")}; q.TP=function(){return this.lp};
var O4=function(){F3.call(this,"a-Xl-e")};t(O4,F3);la(O4);O4.prototype.Pa=function(a){var b=a.La(),c=b.getUrl(),d=b.getName(),f=en(b.Jd()),b=b.getAttribute("vu"),h=a.Ea(),c=h.Pa("a",{href:c,target:"_blank",tabIndex:-1},cd(h,d)),f=h.Pa("div","a-Xl-e-B",cd(h,f));return h.Pa("div",this.qr(a).join(" "),h.Pa("div","a-Xl-e-O",c),f,h.Pa("div","a-Xl-e-qe",b))};O4.prototype.jh=function(a){return a.ta().firstChild}; O4.prototype.setState=function(a,b,c){O4.ya.setState.call(this,a,b,c);32==b&&(nc("a",null,a.ta())[0].tabIndex=c?0:-1)};
var nXd=function(a,b,c){y4.call(this,a,b,void 0,"vertical",c)};t(nXd,y4);nXd.prototype.ED=function(a){return new E3(this.getContext(),a,O4.ia(),this.Ea())};var oXd=function(){kd.call(this)};t(oXd,kd);q=oXd.prototype;q.CKb=function(){return!0};q.hDa=function(){return!0};
q.create=function(a,b,c){if("web"==a.$||"blog-search"==a.$){if(a.getQuery()){var d=new nXd(b,a,c);return new C4(b,a,d,[],c)}d=new A4(b,a,"web"==a.$?"Type your search in the box above to find web results using Google Web Search.":"Type your search in the box above to find blog results using Google Blog Search.",c);return new C4(b,a,d,[],c)}if("book-search"==a.$){if(a.getQuery())return d=new VWd(b,a,c),new C4(b,a,d,[],c);d=new A4(b,a,"Type your search in the box above to find eBook results using Google Books.",
c);return new C4(b,a,d,[],c)}if("url"==a.$)return new iXd(b,a,c);if("icon"==a.$)return new hXd(b,a,c);if("fonts"==a.$)return new fXd(b,a,new M4(b,a,c),c);if("promo"==a.$)return new lug(b,a,c);d=new y4(b,a,new L3,void 0,c);return new C4(b,a,d,[],c)};q.sXb=function(){return!1};q.load=function(a,b){a.call(b)};
var pXd=function(a,b){kd.call(this);this.Sa=a;this.$=b};t(pXd,kd);q=pXd.prototype;q.CKb=function(){return xg(E.ia(),this.Sa).CKb()};q.load=function(a,b){var c=Q5g(this.Sa),d=this.$.Qb;d&&c&&d.YJa("ml",c);Ag(E.ia(),this.Sa,function(){d&&c&&d.dCa("ml",c);a.call(b||null)},void 0,void 0,!0,!0)};q.create=function(a,b,c){var d=wg(xg(E.ia(),this.Sa));return d&&d.uj(a,b,c)};q.hDa=function(a,b){return this.Sa==kWd(a,b)};q.sXb=function(a,b){var c=kWd(a,b);return"opu"==c||"oppu"==c||FQd(a.$)};
var Q4=function(a,b,c){kd.call(this);x(this,a);this.Sa=new ag;lca=My.Bo();var d=new fFa(a);x(this,d);var f=new XVd,h=new jWd,k=new iWd,m=new dWd(a,k),p=new qXd(d);b=new YVd(a,m,b);var u=new RVd(d),z=S$f(this,a),F;My.Vb&&(F=new A7g,F.Sa=a.Sa,F.YJa("ev","evavc"));this.Qb=new rWd(c);x(this,this.Qb);var M=E.ia();M.$b||dea(M,z);h=new E4(f,b,h,k,m,d,a.swa,p,this.Sa,u,a,0,z,this.Qb,F);b.$=h;m2e(b);d.$=h;f.$=h;f.getHandler().Ja(f.$.mL,"set-max-items",f.FHc);f.getHandler().Ja(f.$.mL,"set-max-size-bytes",f.GHc);
if(window.top!=window.parent&&!My.Ab&&(d.xk(45),a.qSa))throw Error(a.ona);if(!My.Sa&&window.location.ancestorOrigins&&0<window.location.ancestorOrigins.length&&(f=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1],(a=a.getOrigin())&&(a=Df(Ef(Cf(Jf(a),""),""),void 0).toString()),a!=f))throw d.xk(0),Error("Rm");this.$=h;x(this,h);this.mL=new K4(h,c);x(this,this.mL);this.$.DU=this.mL.Sa;c=this.$;for(d=0;d<CXd.length;d++)a=new pXd(CXd[d],c),SWd.push(a);c=new oXd;SWd.push(c);this.initializeFromServer=
this.Ab;this.dispose=this.Ma;Uf(b.Lvd,0,b)};t(Q4,kd);
Q4.prototype.initialize=function(){var a=this.$.rd(),b=this.$b;b&&(b.Ta(!0),b.$());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}jRd=a.JBa;r0d=a.tna;nhg=a.Vk;psg=a.fBa;this.Sa.addCallback(function(a){My&&(My.Ag=a.jic())});var d=this.$.od;d.mL(new mWd);v(a.JRa,function(a){d.mL(this.ka().get(a))},this.$);this.Sa.addCallback(function(a){gKa=a.Gf();var b=hKa||{};Zb(b,a.d3b);hKa=b;d.jg.initialize()});this.mL.render(a.ta());xc&&0==Xa(nf,"7")&&Uf(function(){Pd(a.ta(),"zoom","1")},0,this)};
var S$f=function(a,b){var c=new Lv(b.ka());x(a,c);var d=jc(b.fG()),d=new Jn(c,d.La());c.$(Qt,d);d=new Moa(c);c.$(Su,d);c.$(VYa,new NBa({locale:My.$,Aa:b.YUa}));var d=new oza(new Hn),d=new uza("root",d),f=new Zga(d);d.ib(f);a.Sa.addCallback(function(a){ay(f,"oid",a.getUserId())});d=new Oga(0,d);c.$(Bt,d);return c};Q4.prototype.Ab=function(a){this.Sa.jl||this.Sa.By(new yXd(this.$,a))};Q4.prototype.getContext=function(){return this.$}; Q4.prototype.qb=function(){Q4.ya.qb.call(this);var a=this.$b;a&&(a.Ta(!1),a.Sa(!1),delete this.$b)};
var R4=function(a,b){jx.call(this,this.Rhd,!0,b);this.Sa=a;this.ud(a.bNa());this.Ab=K3e(a.Ab)+"pir";this.ep=!1};t(R4,WRb);var ZXd=["hostId","hl"];q=R4.prototype;q.dtb="a-G-q";q.yP=null;q.Rhd="a "+R4.prototype.dtb;q.Na=function(){R4.ya.Na.call(this);var a=this.xe,b=a.Bu();if(a=b&&gK(a,b))a.disabled=!0;a=tFa(this);a=this.getHandler().Ja(a,"mouseover",Lp(this.DCb,this,!0)).Ja(a,"mouseout",Lp(this.DCb,this,!1)).Ja(this,"dialogselect",Lp(this.Hvc,this));xNc(this.ta(),a);xNc(this.Bf(),a)};
q.Hvc=function(a){a.key==this.xe.mL&&this.kM(new hEc)};q.DCb=function(a){Pn(tFa(this),"a-G-q-O-ab-u",a)};
q.render=function(a){R4.ya.render.call(this,a);Qn(tFa(this),"a-WNq8W-ab-xc");this.TUa();this.getHandler().Ja(this.Ea().getWindow(),"resize",this.TUa);a=this.Sa;var b=a.IAa(),c=a.getTitle();c?(this.setTitle(c),b.dfc&&(c=this.Ea().Pa("span",this.Rhd+"-KsV2dd-c4-E","Dogfood Confidential"),lx(this).appendChild(c)),rNc(a)):On(lx(this),!1);var c=new Wf,d=a.cNa();Hf(Hf(Cf(d.Zy(""),this.Ab),"app","2"),"subapp","5");var f=b.authuser;f&&Hf(d,"authuser",f);(f=b.groupId)&&Hf(d,"groupId",f);(f=b.gmailDelegatorId)&&
Hf(d,"gmailDelegatorId",f);(f=b.apt)&&Hf(d,"apt",f);Pb(YXd,function(a){b[a]&&Hf(d,a,!0)});this.getHandler().yj(c,"success",Lp(this.CHb,this,c));var h={};v(ZXd,function(a){h[a]=d.Pg(a);ada(d,a)});f=d.getQuery();Df(d,iXb(h));c.send(d,"POST",f);b.outerElement||(b.outerElement=lF(this));b.element=this.cb();b.loadingStatusElement=this.cb();b.uriPrefix=K3e(a.Ab);b["native"]=!0;c=new eWd(b);a.yTb("maps")?DXd(Lp(this.RUa,this,c),this.Ea()):this.RUa(c)};
q.Wd=function(){if(this.Sa.IAa().shadeDialog){var a=oe(this.ta()),b=rc(this.Ea().getWindow()),a=Math.max(b.width/2-a.width/2,0),b=fd(this.Ea()).y;Vd(this.ta(),a,b)}else R4.ya.Wd.call(this)};q.setSize=function(a,b){this.Ea().getWindow();var c=this.ta(),d=ye(c),c=a-d.right-d.left,d=b-d.top-d.bottom;le(this.cb(),c,d);if(ve(lx(this))){var f=oe(lx(this)),d=d-f.height;me(sFa(this),c-50)}le(this.cb(),c,d);this.Wd()};
q.TUa=function(){var a=this.Sa.IAa().shadeDialog?zNc(this.Ea().getWindow()):ANc(this.Ea().getWindow(),this.Sa.wc(),this.Sa.Ic());this.setSize(a.width,a.height)};q.CHb=function(a){var b=this.Sa.IAa();a=a.Lq();try{var c=lWd(a,"&&&START&&&");this.yP=Qf(c);this.$&&this.yP&&this.$.Ab(this.yP)}catch(d){(b=b.serverConfigErrback)&&b(a)}};var K3e=function(a){a=a||"";return"/"==a[a.length-1]?a:a+"/"};q=R4.prototype;
q.RUa=function(a){this.$=new Q4(a,Lp(this.DHb,this,this.Sa.nn),this.Ea());this.$.initialize();this.$&&this.yP&&this.$.Ab(this.yP)};q.DHb=function(a,b){var c=b.action;"picked"!=c&&"cancel"!=c||this.setVisible(!1);a(b)};q.kM=function(a){this.$.$.mL.$(a)};q.setVisible=function(a){this.$&&!this.$.LXd()?this.BZb(a,0):R4.ya.setVisible.call(this,a)};
q.BZb=function(a,b){if(a){this.Nb()||this.render();var c=oe(this.ta());10>b&&(0>=c.width||0>=c.height)&&Uf(Lp(this.BZb,this,a,b++),10);R4.ya.setVisible.call(this,!0);this.$&&this.$.getContext().Sa.Qb()}!a&&this.cHa||this.kM(new tNc(a));a||R4.ya.setVisible.call(this,!1)};q.qb=function(){y(this.$);R4.ya.qb.call(this)};

G("sy871");I();
}catch(e){_DumpException(e)}
try{
H("sy809");
G("sy809");I();
}catch(e){_DumpException(e)}
try{
H("sy882");var aYd=function(a,b){var c=Jc(a.rd().ta()),d=wg(xg(E.ia(),"oppe")),f=a.ka(),c=new dN(f,b,c,My.Bo());bYd(a,c.Us());cYd(a,d,c);TYb(c.Us(),new ZO);My.Sa||(c.O_=6);return c},bYd=function(a,b){a.Ab.addCallback(function(c){var d=c.getUserId(),f=c.yc();c=c.txd;var h=new yk;Py(h,3,d);Py(h,1,f);var k=new Ck;Py(k,9,c);a.Vb.addCallback(function(a){tB(k,a)});Py(k,22,"(you)");d=new yB(h,k,!0);d=new eN(new hE([d]));cN(b,d)})},cYd=function(a,b,c){var d=b.d$(a);d.mL.addCallback(function(b){c.xJ(b);cN(c.Us(),d.Ag); dYd(a,c.Us())})},eYd=function(a,b,c){var d=new ag;a.Ab.addCallback(function(f){var h=f.yhd;f=f.xhd;d.By(new XO(a.rd().hTa,pg(h),String(a.rd().Km),c,b,f,!1,void 0))});return d},dYd=function(a,b){a.Ab.addCallback(function(){cN(b,eYd(a))})};

G("sy882");I();
}catch(e){_DumpException(e)}
try{
H("sy885");var D4e=function(a){kd.call(this);this.Ab=a;this.$=!0;this.xb=this.Ff=null};t(D4e,kd);q=D4e.prototype;q.yb=function(a){this.xb=a;this.Ff&&this.Ff.yb(a)};q.ta=function(){return this.xb};q.rq=function(){this.Ff&&this.Ff.rq()};q.Ta=function(a){this.$=a;this.xb&&Pn(this.xb,"a-w-e-F-I",!this.$)};q.hasFocus=function(){return!!this.Ff&&this.Ff.hasFocus()};q.getValue=function(){this.Ff&&(this.Sa=this.Ff.getValue());return this.Sa}; var E4e=function(a,b){a.Sa=b;a.Ff?a.Ff.qe(b):a.xb.value=b||a.Ab},F4e=function(a){a.Ff||(a.Ff=new vx(a.Ab),a.xb&&a.Ff.yb(a.xb),a.Ff.qe(a.Sa||""),a.Ta(a.$),x(a,a.Ff))},G4e=function(a){a.Ff&&(E4e(a,a.Ff.getValue()),a.Ff.Ma(),a.Ff=null)};
var H4e=function(a){bx.call(this,a);this.Ag=Math.pow(5,2);zd(this.handle,["touchstart","mousedown"],this.$,!1,this)};t(H4e,bx);H4e.prototype.mL=ka;var L2d=function(a,b,c,d,f){a.Vd(new u3("picasa",[b],{type:"album"}),function(b){var f=b.Ae()[0];f&&c&&f.zJ(!0);a.Xp(b.Ae()||[]);d(f)},f||ka)};
G("sy885");I();
}catch(e){_DumpException(e)}
try{
var YE=function(a,b,c,d,f){VE.call(this,a,[b],[c],d,f)};t(YE,VE);YE.prototype.UH=function(){this.element.style.width=Math.round(this.coords[0])+"px"};H("sy420");var wJ=function(a,b){C.call(this,a);this.$=new jyb;this.Sx=b||Hx;ud(this.$,"change",this.lp,!1,this)};t(wJ,C);q=wJ.prototype;q.wba=!1;q.uja=!1;q.SQ=10;q.PGb=!0;q.Kab=0;q.HH=!0;q.Pa=function(){wJ.ya.Pa.call(this);var a=this.Ea().Pa("DIV",this.Pc("horizontal"));this.ra(a)};q.ra=function(a){wJ.ya.ra.call(this,a);Qn(a,this.Pc("horizontal"));a=this.ta();var b=nc(null,"d-Gd-na",a)[0];b||(b=this.Ea().Pa("DIV","d-Gd-na"),po(b,"button"),a.appendChild(b));this.Sa=this.$b=b;a=this.ta();po(a,"slider");zyb(this)};
q.Na=function(){wJ.ya.Na.call(this);this.Ab=new bx(this.Sa);this.Qb=new bx(this.$b);this.Ab.DU=!1;this.Qb.DU=!1;this.Ab.mL=this.Qb.mL=ka;this.Vk=new ro(this.ta());nyb(this,!0);this.ta().tabIndex=0;MLd(this)};
var nyb=function(a,b){b?(a.getHandler().Ja(a.Ab,"beforedrag",a.oHa).Ja(a.Qb,"beforedrag",a.oHa).Ja(a.Ab,["start","end"],a.VHa).Ja(a.Qb,["start","end"],a.VHa).Ja(a.Vk,"key",a.Wzb).Ja(a.ta(),"click",a.Jua).Ja(a.ta(),"mousedown",a.Jua),a.PGb&&oyb(a,!0)):(a.getHandler().nb(a.Ab,"beforedrag",a.oHa).nb(a.Qb,"beforedrag",a.oHa).nb(a.Ab,["start","end"],a.VHa).nb(a.Qb,["start","end"],a.VHa).nb(a.Vk,"key",a.Wzb).nb(a.ta(),"click",a.Jua).nb(a.ta(),"mousedown",a.Jua),a.PGb&&oyb(a,!1))};q=wJ.prototype;
q.Ib=function(){wJ.ya.Ib.call(this);od(this.Ab,this.Qb,this.Vk,this.mL)};q.oHa=function(a){var b=a.Sa==this.Ab?this.Sa:this.$b,c;c=this.ta().clientWidth-b.offsetWidth;c=a.left/c*(yJ(this)-xJ(this))+xJ(this);c=a.Sa==this.Ab?Math.min(Math.max(c,xJ(this)),this.getValue()+vJ(this.$)):Math.min(Math.max(c,this.getValue()),yJ(this));syb(this,b,c)};
q.VHa=function(a){var b="start"==a.type;Pn(this.ta(),"d-Gd-lA",b);Pn(a.target.handle,"d-Gd-na-lA",b);a=a.Sa==this.Ab;b?(this.dispatchEvent("$k"),this.dispatchEvent(a?"Ze":"Ki")):(this.dispatchEvent("ql"),this.dispatchEvent(a?"Ji":"Bk"))};
q.Wzb=function(a){var b=!0;switch(a.keyCode){case 36:xyb(this,xJ(this));break;case 35:xyb(this,yJ(this));break;case 33:AJ(this,this.SQ);break;case 34:AJ(this,-this.SQ);break;case 37:var c=-1;AJ(this,a.shiftKey?c*this.SQ:c*this.uG);break;case 40:AJ(this,a.shiftKey?-this.SQ:-this.uG);break;case 39:c=1;AJ(this,a.shiftKey?c*this.SQ:c*this.uG);break;case 38:AJ(this,a.shiftKey?this.SQ:this.uG);break;default:b=!1}b&&a.preventDefault()};
q.Jua=function(a){this.ta().focus&&this.ta().focus();var b=a.target;Oc(this.Sa,b)||Oc(this.$b,b)||(b="click"==a.type,b&&Wa()<this.Kab+1E3||(b||(this.Kab=Wa()),this.uja?xyb(this,qyb(this,a)):(this.ifb(a),this.Vb=tyb(this,qyb(this,a)),this.y2=this.Db>this.Vb.offsetLeft+this.Vb.offsetWidth,a=lc(this.ta()),this.getHandler().Ja(a,"mouseup",this.efb,!0).Ja(this.ta(),"mousemove",this.ifb),this.uh||(this.uh=new Sf(200),this.getHandler().Ja(this.uh,"tick",this.Zzb)),this.Zzb(),this.uh.start())))};
q.Yzb=function(a){AJ(this,(0<a.detail?-1:1)*this.uG);a.preventDefault()};q.Zzb=function(){var a,b=this.Db,c=this.Vb.offsetLeft;this.y2?b>c+this.Vb.offsetWidth&&(a=zJ(this,this.Vb)+this.SQ):b<c&&(a=zJ(this,this.Vb)-this.SQ);ia(a)&&syb(this,this.Vb,a)};q.efb=function(){this.uh&&this.uh.stop();var a=lc(this.ta());this.getHandler().nb(a,"mouseup",this.efb,!0).nb(this.ta(),"mousemove",this.ifb)};q.ifb=function(a){this.Db=he(a,this.ta()).x};
var qyb=function(a,b){var c=xJ(a),d=yJ(a),f=a.Sa.offsetWidth,h=a.ta().clientWidth-f,f=he(b,a.ta()).x-f/2;return(d-c)*f/h+c},zJ=function(a,b){if(b==a.Sa)return a.$.getValue();if(b==a.$b)return a.$.getValue()+vJ(a.$);throw Error("Fd");},AJ=function(a,b){Math.abs(b)<a.$.KB&&(b=OG(b)*a.$.KB);var c=zJ(a,a.Sa)+b,d=zJ(a,a.$b)+b,c=Cb(c,xJ(a),yJ(a)-0),d=Cb(d,xJ(a)+0,yJ(a));ryb(a,c,d-c)},syb=function(a,b,c){var d=uJ(a.$,c);c=b==a.Sa?d:a.$.getValue();b=b==a.$b?d:a.$.getValue()+vJ(a.$);c>=xJ(a)&&b>=c+0&&yJ(a)>=
b&&ryb(a,c,b-c)},ryb=function(a,b,c){xJ(a)<=b&&b<=yJ(a)-c&&0<=c&&c<=yJ(a)-b&&(b!=a.getValue()||c!=vJ(a.$))&&(a.$.gba=!0,lyb(a.$,0),sN(a.$,b),lyb(a.$,c),a.$.gba=!1,a.lp())},xJ=function(a){return Eic(a.$)},yJ=function(a){return Fic(a.$)},tyb=function(a,b){return b<=a.$.getValue()+vJ(a.$)/2?a.Sa:a.$b};wJ.prototype.lp=function(){MLd(this);zyb(this);this.dispatchEvent("change")};
var MLd=function(a){var b;if(a.Sa&&!a.wba){b=vyb(a,zJ(a,a.Sa));var c=vyb(a,zJ(a,a.$b));a.Sa.style.left=b.x+"px";a.$b.style.left=c.x+"px";a.Ag&&(b=uyb(b.x,c.x,a.Sa.offsetWidth),a.Ag.style.left=b.offset+"px",a.Ag.style.width=b.size+"px")}},uyb=function(a,b,c){var d=Math.ceil(c/2);return{offset:a+d,size:Math.max(b-a+c-2*d,0)}},vyb=function(a,b){var c=new Gb;if(a.Sa){var d=xJ(a),f=yJ(a),d=b==d&&d==f?0:(b-d)/(f-d),f=a.ta().clientWidth-a.Sa.offsetWidth,d=Math.round(d*f);c.x=d;c.y=a.Sa.offsetTop}return c},
xyb=function(a,b){b=Cb(b,xJ(a),yJ(a));a.wba&&a.Ko.stop(!0);var c=new sJ,d=tyb(a,b),f=a.getValue(),h=vJ(a.$),k=zJ(a,d),m=vyb(a,k),p=a.$.KB;Math.abs(b-k)<p&&(b=Cb(k+(b>k?p:-p),xJ(a),yJ(a)));syb(a,d,b);k=vyb(a,zJ(a,d));m=new WE(d,[m.x,m.y],[k.x,d.offsetTop],100);m.Sa=!1;c.add(m);a.Ag&&(m=vyb(a,f),p=vyb(a,f+h),f=m,h=p,d==a.Sa?f=k:h=k,d=uyb(m.x,p.x,a.Sa.offsetWidth),f=uyb(f.x,h.x,a.Sa.offsetWidth),k=new WE(a.Ag,[d.offset,a.Ag.offsetTop],[f.offset,a.Ag.offsetTop],100),d=new YE(a.Ag,d.size,f.size,100),k.Sa=
!1,d.Sa=!1,c.add(k),c.add(d));a.Ko=c;a.getHandler().Ja(c,"end",a.otc);a.wba=!0;c.play(!1)};q=wJ.prototype;q.otc=function(){this.wba=!1};q.qb=function(){wJ.ya.qb.call(this);this.uh&&this.uh.Ma();delete this.uh;this.Ko&&this.Ko.Ma();delete this.Ko;delete this.Sa;delete this.$b;this.Ag&&delete this.Ag;this.$.Ma();delete this.$;this.Vk&&(this.Vk.Ma(),delete this.Vk);this.mL&&(this.mL.Ma(),delete this.mL);this.Ab&&(this.Ab.Ma(),delete this.Ab);this.Qb&&(this.Qb.Ma(),delete this.Qb)};q.uG=1;
q.getValue=function(){return this.$.getValue()};q.JJ=function(a){syb(this,this.Sa,a)};q.setVisible=function(a){On(this.ta(),a);a&&MLd(this)};var zyb=function(a){var b=a.ta();b&&(qo(b,"valuemin",xJ(a)),qo(b,"valuemax",yJ(a)),qo(b,"valuenow",a.getValue()),qo(b,"valuetext",a.Sx(a.getValue())||""))},oyb=function(a,b){b?(a.mL||(a.mL=new PG(a.ta())),a.getHandler().Ja(a.mL,"mousewheel",a.Yzb)):a.getHandler().nb(a.mL,"mousewheel",a.Yzb)}; wJ.prototype.Ta=function(a){this.HH!=a&&this.dispatchEvent(a?"enable":"disable")&&(this.HH=a,nyb(this,a),a||this.efb(),Pn(this.ta(),"d-Gd-I",!a))};wJ.prototype.isEnabled=function(){return this.HH};
var BJ=function(a,b){wJ.call(this,a,b);lyb(this.$,0)};t(BJ,wJ);BJ.prototype.Pc=function(a){return"vertical"==a?"d-Gd-ih":"d-Gd-jb"};
G("sy420");I();
}catch(e){_DumpException(e)}
try{
var qhg=function(a,b){A.call(this,a,b)};t(qhg,A);var M_d=function(a){A.call(this,"TE",a)};t(M_d,A);M5.prototype.xna=g(659,function(){Uf(function(){if(this.$b){var a=this.Ea().ta(this.$b.B6);a&&a.click()}},50,this)});W3.prototype.kJa=g(656,function(){return this.dc});W3.prototype.h9=g(655,function(){this.setVisible(!1);this.mL=void 0;var a=this.$;this.$=null;this.zqb="";On(this.Sa,!1);a&&this.dispatchEvent(new qhg("lc",a))});
W3.prototype.Aoa=g(654,function(a){if(this.$!=a){this.h9();this.$=a;a=N_d(a);var b="";"function"==typeof this.$.yw&&(b=this.$.yw().getContent());a&&this.yN(a,b);this.dispatchEvent(new qhg("qc",this.$))}});var Q_d=function(a,b){T3.call(this,a,b)};t(Q_d,T3);Q_d.prototype.pT=function(a){Q_d.ya.pT.call(this,a);this.dispatchEvent(new M_d)};var R_d=function(a,b){a.Ab=b},y1d=function(a,b,c,d,f){C4.call(this,a,b,c,d,f)};t(y1d,C4);
y1d.prototype.C5=function(){var a=this.Sa;a.qh(!0);var b=this.Gf().getOption("selectAlbumLabel"),b=E5d(this)?this.getContext().rd().Hwa():b||"Select album";a.Pt.setContent(b)};y1d.prototype.j2a=function(a){var b=this.getContext().od.La(this.Gf().getOption("parent"));!b||E5d(this)?y1d.ya.j2a.call(this,a):this.getContext().Sa.Sl([b])};var T_d=function(a,b){t3.call(this,a,b);this.Sa=this.Ag=null};t(T_d,t3);
T_d.prototype.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-QL",this.Ag=a.Pa("div","a-QL-ep"),this.Sa=a.Pa("div","a-QL-ep"));this.Kb(a);this.getContext().od.Vd(new E_d,Lp(this.mL,this),Lp(this.Ab,this))};T_d.prototype.mL=function(a){(a=a.Qb)?(a="Whoops!  You're out of space.  You are currently using 100% of your "+(Math.floor(a/1073741824)+(' GB quota for photos.  <a href="'+(F_d(this.getContext())+'" target="_blank">Upgrade storage</a>'))),F_d(this.getContext()),U_d(this,a)):this.Ab()};
T_d.prototype.Ab=function(){var a="Whoops!  You're out of space.  <a href=\""+(F_d(this.getContext())+'" target="_blank">Upgrade storage.</a>');F_d(this.getContext());U_d(this,a)};
var U_d=function(a,b){var c='Photos are stored in your Picasa Web Albums account and are included in your 1 GB free quota for photos.  Additional storage you purchase is shared between several Google products and is in addition to your free quota.  <a href="'+("https://picasa.google.com/support/bin/answer.py?hl="+My.$+'&answer=39567" target="_blank">Learn more</a>'),d=a.Ea();d.hb(a.Ag);d.appendChild(a.Ag,cd(d,b));d.hb(a.Sa);d.appendChild(a.Sa,cd(d,c))},V_d=function(a){a=BUd(a);return r4(a,dma(a)? ZUd:$Ud,void 0)},W_d=function(a){var b=function(a){a=parseInt(65535*a,10).toString(16);return Qa("0",Math.max(0,4-a.length))+a},c=a.right-a.left,d=a.bottom-a.top;return["1,",b(a.left),b(a.top),b(a.left+c),b(a.top+d)].join("")};H("opp");
var n1d=function(a){Qw.call(this,a);this.$&&(this.Sa=WEa(this.Ab.docs||[]))};t(n1d,Qw);$S(12,function(a){return new n1d(a)});var o1d=function(a,b,c){Mw.call(this);this.$b=a;this.DU=b;this.Ab=c};t(o1d,Mw);o1d.prototype.PD=pg(new Af("savecaption"));o1d.prototype.Sq=function(){return 12};o1d.prototype.xE=function(){var a=this.Ab.clone();Pw(a,"photoId",this.$b);Pw(a,"src",this.DU);return a};
var Xog=function(a,b){Mw.call(this);this.$b=a;this.Ag=b.shareTarget;this.DU=b.photoSource;this.Ab=b.featureId};t(Xog,Mw);Xog.prototype.PD=pg(new Af("sharephototomaps"));Xog.prototype.Sq=function(){return 22};Xog.prototype.xE=function(){var a=new Ze;Pw(a,"photoIds",Rf(this.$b));Pw(a,"photoSource",this.DU);Pw(a,"shareTarget",this.Ag);this.Ab&&Pw(a,"featureId",this.Ab);return a};
var hpg=function(a){Qw.call(this,a);if(this.$){a=this.Ab.photos||[];for(var b=[],c=0;c<a.length;c++){var d=a[c],f=new Vw(d),h=d.parent;f.parent=h&&h.substring(h.lastIndexOf(".")+1);d=d.thumbs[0];f.ZE([new Uw(WRd(d.u),d.w,d.h,d.r)]);b.push(f)}this.Sa=b}};t(hpg,Qw);hpg.prototype.Rc=function(){return this.Qb};$S(22,function(a){return new hpg(a)});
var e5=function(a,b){m4.call(this,a,b)};t(e5,m4);e5.prototype.hp=function(a,b,c){e5.ya.hp.call(this,a,b,c);a=ec(a,function(a){return!a.Ii||"success"==a.Ii.getState()},this);b=this.options.evid;"album"==a[0].Ra()?X_d(this,a,b):Y_d(this,a,b)};
var X_d=function(a,b,c){var d=0;v(b,function(a){d++;var h={albumId:a.Qe(),albumName:this.options.albumName||a.getName(),eventId:c};"ownerOnly"==P_d(a.getAttribute("aa"))&&(h.associate="true");this.$.Vd(new K3("addPhotosToEvent","picasa",null,h),Lp(function(){0==--d&&this.By(b)},this),Lp(this.Sa,this,b.length))},a)},Y_d=function(a,b,c){eVd(E.ia(),"oppe");eVd(E.ia(),"opt");a.$.Vd(new K3("multiInclude","picasa",zg(b,function(a){return a.Qe()}),{albumName:a.options.albumName,getOrCreateLabel:"evid_"+
c,evid:c}),Lp(a.Qb,a,b),Lp(a.mL,a,b.length),!0)};e5.prototype.Qb=function(a,b){this.By(ub(b.Ae(),1))};e5.prototype.mL=function(a){this.$.xk(11);this.jd((new Z("{numPhotos, plural, =0 {unused plural form}=1 {Sorry! We could not add the photo you selected. Please try again later.}other {Sorry! We could not add the photos you selected. Please try again later.}}")).format({numPhotos:a}))};e5.prototype.Sa=function(a){this.$.xk(12);this.jd((new Z("{numAlbums, plural, =0 {unused plural form}=1 {Sorry! We could not add the album you selected. Please try again later.}other {Sorry! We could not add the albums you selected. Please try again later.}}")).format({numAlbums:a}))};
var Z_d=function(a,b){m4.call(this,a,b)};t(Z_d,m4);Z_d.prototype.hp=function(a,b,c){Z_d.ya.hp.call(this,a,b,c);if(a[0].getAttribute("cs")){b=[];c=!1;for(var d=0;d<a.length;d++)b.push(a[d].getId()),c|="video"==a[d].Ra();this.$.Vd(new K3("multiInclude","picasa",b,{albumId:this.options.albumId}),Lp(this.mL,this,c),Lp(this.Sa,this,c))}else this.By(a)};Z_d.prototype.mL=function(a,b){var c=ec(b.Ae(),function(a){return"photo"==a.Ra()||"video"==a.Ra()});c?this.By(c):this.Sa(a)}; Z_d.prototype.Sa=function(a){this.$.xk(13);this.jd(a?"Sorry!  We could not copy your videos to your blog.":"Sorry!  We could not copy your photos to your blog.")};
var SW=function(a,b){m4.call(this,a,b)};t(SW,m4);SW.prototype.Sa=0;SW.prototype.hp=function(a,b,c){SW.ya.hp.call(this,a,b,c);var d={};this.options.visibility&&(d.visibility=this.options.visibility);Ub(d)||(d.nofetchcontents="true",v(a,function(b){"album"==b.Ra()&&(this.Sa++,d.parent=b.Qe(),d.aa=b.getAttribute("aa"),this.$.Vd(new K3("changeAlbumAttrs","picasa",null,d),Lp(this.Qb,this,b,a),Lp(this.mL,this),!0))},this));0==this.Sa&&this.By(a)}; SW.prototype.Qb=function(a,b,c){this.Sa--;c.Ae()&&c.Ae()[0]&&(a.zKa(c.Ae()[0]),this.$.$Ua(a.getId(),a));0==this.Sa&&this.By(b)};SW.prototype.mL=function(){this.Sa&&(this.Sa=0,this.jd("Oops! An error occurred. Please try again later."))};
var EGg=function(a,b){m4.call(this,a,b)};t(EGg,m4);EGg.prototype.hp=function(a,b,c){EGg.ya.hp.call(this,a,b,c);a.length&&"photo"==a[0].Ra()&&this.options.finalizeAlbum?(b={albumMode:"final",parent:a[0].vt()},this.$.Vd(new K3("changeAlbumAttrs","picasa",null,b),Lp(this.By,this,a),Lp(this.Sa,this))):this.By(a)};EGg.prototype.Sa=function(){this.jd("Oops! An error occurred. Please try again later.")};
var $_d=function(a,b){m4.call(this,a,b)};t($_d,m4);$_d.prototype.hp=function(a,b,c){$_d.ya.hp.call(this,a,b,c);b={contactId:this.options.contactId};if(a.length){var d=a[0];"contacts"==d.$?b.evergreen=!0:b.url=d.Yh()[0].Qs(2048,["c"])}else b.noPhoto=!0;this.$.Vd(new K3("setContactPhoto","contacts",a.length?[d.Qe()]:[],b),Lp(function(a){this.By(a.Ae())},this),Lp(this.Sa,this))};$_d.prototype.Sa=function(){this.$.xk(15);this.jd("Sorry!  We could not save your requested photo.  Please try again later.")};
var a0d=function(a,b){m4.call(this,a,b)};t(a0d,m4);a0d.prototype.hp=function(a,b,c){a0d.ya.hp.call(this,a,b,c);var d=a[0];a=[d.getId()];c={};if(this.options.label)c.label=this.options.label;else if(this.options.parent)c.parent=this.options.parent;else{this.Sa();return}d.Ii?(b="move",c.src=d.vt()):(b="copy",(d=d.Qja)?c.srcOwnerId=d[0].getId():c.preventDuplicates="true");this.$.Vd(new K3(b,"picasa",a,c),Lp(this.mL,this),Lp(this.Sa,this,"transfer xhr"))}; a0d.prototype.mL=function(a){(a=a.Ae())?this.By(a):this.Sa()};a0d.prototype.Sa=function(){this.$.xk(14);this.jd("Sorry! We could not save your photo. Please try again later.")};
var a7e=function(a,b){m4.call(this,a,b)};t(a7e,m4);a7e.prototype.hp=function(a,b,c){a7e.ya.hp.call(this,a,b,c);a=a[0].getId();b="ctpac"==this.options.mode;c={};c.parent=a;c.src="0";this.$.Vd(new K3(b?"copy":"move","picasa",this.options.ids.split(","),c),Lp(function(a){this.By(a.Ae())},this),Lp(this.Sa,this),!0)};a7e.prototype.Sa=function(){"ctpac"==this.options.mode?this.jd("Sorry!  We could not copy your photos."):this.jd("Sorry!  We could not move your photos.")};
var b0d=function(a,b,c,d,f,h,k){if(c)for(var m=a.getImageData(),m=(d+m.Sa)%4,p=0;p<m;++p){var u={};u.top=1-c.right;u.right=c.bottom;u.bottom=1-c.left;u.left=c.top;c=u}d&&(c=c||{},c.rotation=d);b.Vd(new K3(f,"picasa",[a.getId()],c||null),h,k)};var c0d=function(a,b){m4.call(this,a,b)};t(c0d,m4);c0d.prototype.Qb=void 0;c0d.prototype.Sa=void 0;c0d.prototype.hp=function(a,b,c){c0d.ya.hp.call(this,a,b,c);(b=a[0])&&"photo"==b.Ra()?(a={},this.Qb=b.getAttribute("c"),this.Sa=b.getAttribute("r"),b.Ii?Btg(this,b):(a.srcOwnerId=b.Qja[0].getId(),a.albumless="true",this.$.Vd(new K3("copy","picasa",[b.getId()],a),Lp(function(a){Btg(this,a.Ae()[0])},this),Lp(this.mL,this)))):this.By(a)};
var Btg=function(a,b){b0d(b,a.$,a.Qb,a.Sa,"crop",Lp(a.DU,a),Lp(a.mL,a))};c0d.prototype.DU=function(a){var b=a.Ae();b?this.By(b):this.mL(a)};c0d.prototype.mL=function(a){this.$.xk(16);a&&1==a.Ug()?this.jd("Sorry!  You are out of storage space."):this.jd("Sorry!  We could not save your photo.  Please try again later.")};
var e0d=function(a,b){m4.call(this,a,b)};t(e0d,m4);e0d.prototype.hp=function(a,b,c){e0d.ya.hp.call(this,a,b,c);a[0].Kn()?Jbe(this,a):uxg(this,a)};
var Jxg=function(a,b){var c=["photo_provider:"+a.options.photoProvider,"local:anchor"];b&&c.push("updates");return c},Kxg=function(a){var b=["photo_provider:"+a.options.photoProvider,"local:anchor","geo:explicit_share"];1==a.options.donatePhotos&&b.push("suppress_in_place_visit");return b.concat("local:"+a.options.cid)},g0d=function(a,b){return zg(b,function(a){return a.getId()},a)},uzg=function(a,b){var c={parent:b,labels:Jxg(a).join(",")},c=new K3("addLabel","picasa",[],c);return tzg(a,c)},tzg=
function(a,b,c){return new Ng(function(a,f){this.$.Vd(b,a,f,c)},a)},h0d=function(a,b,c){b=g0d(a,b);var d=[];if(qa(c[0]))for(var f={labels:c.join(",")},h=0;h<b.length;h+=3){var k=new K3("addLabel","picasa",b.slice(h,h+3),f);d.push(tzg(a,k))}else v(b,function(a,b){var f={labels:c[b].join(",")},f=new K3("addLabel","picasa",[a],f);d.push(tzg(this,f))},a);return Mkg(oxg(d),function(){Wzg(this)},a)},Jbe=function(a,b){var c={parent:b[0].vt(),visibility:"PUBLIC",geoinfoVisible:"true",albumMode:"final"},c=
Mkg(tzg(a,new K3("changeAlbumAttrs","picasa",null,c)),function(){Wzg(this)},a),d=uzg(a,b[0].vt(),Jxg(a)),f=h0d(a,b,Kxg(a));oxg([c,d,f]).then(function(){this.By(b)},void 0,a)},uxg=function(a,b){var c={labels:Jxg(a,!0).join(","),albumName:(new gn(1)).format(new dn),visibility:"PUBLIC",geoinfoVisible:"true"},c=new K3("multiInclude","picasa",g0d(a,b),c);tzg(a,c,!0).then(function(a){Xzg(this,b,a)},function(){Wzg(this)},a)},Xzg=function(a,b,c){var d=ub(c.Ae(),1);c=Lp(function(){this.By(d)},a);if(1==a.options.donatePhotos&&
b.length==d.length){var f=zg(d,function(a){return[["donated_to_local:"+a.Qe()]]},a);h0d(a,d,Kxg(a)).then(function(){return h0d(this,b,f)},void 0,a).then(c)}else h0d(a,d,Kxg(a)).then(c)},Wzg=function(a){a.$.xk(17);a.jd("Sorry! We could not save your photos. Please try again later.")};
var j0d=function(a,b){m4.call(this,a,b)};t(j0d,m4);j0d.prototype.hp=function(a,b,c){j0d.ya.hp.call(this,a,b,c);var d=[],f=[];v(a,function(a){"docs"==a.$?ib(f,a):ib(d,a)},this);f.length?(a={},a.cosmoIds=k0d(this,f).join(","),(b=this.config.Qb)?a.albumId=b:(a.albumName=(new gn(1)).format(new dn),a.albumMode="draft"),this.$.Vd(new K3("multiInclude","picasa",[],a),Lp(this.mL,this,d),Lp(this.Sa,this),!0)):this.By(d)};var k0d=function(a,b){return zg(b,function(a){return a.Qe()},a)}; j0d.prototype.mL=function(a,b){this.By(rb(a,ub(b.Ae(),1)))};j0d.prototype.Sa=function(){this.$.xk(18);this.jd("Sorry! We could not import your photos. Please try again later.")};
var b7e=function(a,b){m4.call(this,a,b)};t(b7e,m4);b7e.prototype.hp=function(a,b,c){b7e.ya.hp.call(this,a,b,c);b=this.Ab.FH.getOptions().mtp;c=zg(a,function(a){return a.getId()});b?(a={},a.parent=b,a.src="0",this.$.Vd(new K3("move","picasa",c,a),Lp(function(a){this.By(a.Ae())},this),Lp(this.Sa,this),!0)):this.By(a)};b7e.prototype.Sa=function(){this.jd("Sorry! We could not add your photos to this album.")};
var f5=function(a,b){m4.call(this,a,b)};t(f5,m4);f5.prototype.Sa=0;f5.prototype.hp=function(a,b,c){f5.ya.hp.call(this,a,b,c);v(a,function(b){"album"==b.Ra()&&(this.Sa++,this.$.Vd(new $w({service:"picasa",parent:b.getId()}),Lp(this.mL,this,b,a),Lp(this.Qb,this),!0))},this);0==this.Sa&&this.By(a)};f5.prototype.mL=function(a,b,c){c=c.Ae();a.jg=c;this.Sa--;0==this.Sa&&this.By(b)};f5.prototype.Qb=function(){this.Sa&&(this.Sa=0,this.jd("Sorry! We could not get enough information about the album you selected. Please try again later."))};
var l0d=function(a,b){m4.call(this,a,b);this.Sa=new df};t(l0d,m4);l0d.prototype.hp=function(a,b,c){l0d.ya.hp.call(this,a,b,c);b=this.config.Qb;"photo-curation"==this.Ab.FH.$?x2e(this,a,!!b):(this.Sa.clear(),v(a,function(a){this.Sa.add(a.Qe())},this),c=this.config.Qb||y2e(this,a),m0d(this,c,b?void 0:a))};
var x2e=function(a,b,c){a.options.includeAllDocs||(b=ec(b,function(a){return a.Kn()||this.Sa.contains(a.Qe())},a));!c&&b.length&&a.options.finalizeAlbum?(c={albumMode:"final",parent:b[0].vt()},a.$.Vd(new K3("changeAlbumAttrs","picasa",null,c),Lp(a.By,a,b),Lp(a.mL,a))):a.By(b)},y2e=function(a,b){var c=cb(b,function(a){return("photo"==a.Ra()||"video"==a.Ra())&&!!a.vt()},a);return c?c.vt().split(".").pop():void 0},m0d=function(a,b,c){var d=new w3("photo-curation");BN(d,"parent",b);BN(d,"albumTitle",
a.options.albumName);BN(d,"eata",a.options.eata);BN(d,"mtp",a.options.mtp);c&&BN(d,"ids",zg(c,function(a){return a.Qe()}).join(","));a.Ab.On(d);a.Ab.dya(!1)};l0d.prototype.mL=function(){this.$.xk(19);this.jd("Sorry! We could not import your photos. Please try again later.")};l0d.prototype.reset=function(){l0d.ya.reset.call(this);this.Sa.clear()};
var g5=function(a,b){m4.call(this,a,b)};t(g5,m4);
g5.prototype.hp=function(a,b,c){g5.ya.hp.call(this,a,b,c);var d=[],f=[];v(a,function(a){"picasa"!=a.$||"album"==a.Ra()||a.Kn()?ib(d,a):ib(f,a)},this);f.length?(b=this.config.Qb,f[0].Ii?b?this.By(a):(c={albumMode:"temporary",parent:f[0].vt()},this.$.Vd(new K3("changeAlbumAttrs","picasa",null,c),Lp(this.Qb,this,a),Lp(this.Sa,this))):(c={},b?c.albumId=b:c.albumMode="temporary",this.$.Vd(new K3("multiInclude","picasa",n0d(this,f),c),Lp(this.mL,this,d),Lp(this.Sa,this),!0))):this.By(d)};
var n0d=function(a,b){return zg(b,function(a){return a.Qe()},a)};g5.prototype.Qb=function(a){this.By(a)};g5.prototype.mL=function(a,b){this.By(rb(a,b.Ae().length&&"album"==b.Ae()[0].Ra()?ub(b.Ae(),1):b.Ae()))};g5.prototype.Sa=function(){this.$.xk(20);this.jd("Sorry! We could not import your photos. Please try again later.")};
var OLe=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Sorry!  We could not import your photos.}male{Sorry!  We could not import your photos.}other{Sorry!  We could not import your photos.}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},Gtg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Sorry!  We could not crop your photo.}male{Sorry!  We could not crop your photo.}other{Sorry!  We could not crop your photo.}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},SLe=function(){return P("Photos from poll")};
var mMe=function(a,b){m4.call(this,a,b);this.ha=b.ef();this.Qb=null};t(mMe,m4);
mMe.prototype.hp=function(a,b,c){mMe.ya.hp.call(this,a,b,c);1<a.length?this.Sa():(c=a[0],c.Kn()?b(a):(b=c.getAttribute("c"))?(this.Qb=b,b={parent:this.options.albumId},(new Date).getTime(),this.$.Vd(new K3("copy","picasa",[c.getId()],b),Lp(function(a){(new Date).getTime();a=a.Ae()[0];b0d(a,this.$,this.Qb,void 0,"crop",Lp(this.DU,this),Lp(this.mL,this))},this),Lp(this.mL,this))):"picasa"==a[0].$?oMe(this,a):this.options.albumId?pMe(this,a,this.options.albumId):((new Date).getTime(),this.$.Vd(new K3("createAlbum",
"picasa",null,{title:JC(this.ha,SLe),albumMode:"temporary"}),Lp(function(b){(new Date).getTime();pMe(this,a,b.Ae()[0].getId())},this),Lp(function(){this.Sa()},this),!0)))};mMe.prototype.DU=function(a){(a=a.Ae())?this.By(a):this.mL()};mMe.prototype.mL=function(){this.$.xk(48);this.jd(JC(this.ha,Gtg))};
var oMe=function(a,b){var c=a.options.albumId?{albumId:a.options.albumId}:{albumName:JC(a.ha,SLe),albumMode:"temporary"};(new Date).getTime();a.$.Vd(new K3("multiInclude","picasa",[b[0].getId()],c),Lp(function(a){(new Date).getTime();this.By([a.Ae()[1]])},a),Lp(function(){this.Sa()},a),!0)},pMe=function(a,b,c){var d=b[0].Yh(),d=d[d.length-1];(new Date).getTime();a.$.Vd(new K3("importPhoto","picasa",[],{url:d.Qs(),parent:c,caption:b[0].getUrl()}),Lp(function(a){(new Date).getTime();this.By(a.Ae())}, a),Lp(a.Sa,a))};mMe.prototype.Sa=function(){this.$.xk(48);this.jd(JC(this.ha,OLe))};
var o0d=function(a,b){m4.call(this,a,b)};t(o0d,m4);o0d.prototype.hp=function(a,b,c){o0d.ya.hp.call(this,a,b,c);a=a[0];a.getAttribute("st");b=a.getAttribute("c");c={};var d;(d=a.getAttribute("st"))&&(eb(d,"full_bleed")||eb(d,"full_bleed_old"))?d=!0:(d=a.vt())?(d=(d=this.$.La(d))&&d.getAttribute("la"),d=!!d&&eb(d,"profiles_scrapbook")):d=!1;d||(c.copy="true");(d=a.Qja)&&d.length&&(c.srcOwnerId=d[0].getId());this.$.Vd(new K3("setProfileBanner","picasa",[a.getId()],c),Lp(this.mL,this,b),Lp(this.Sa,this))};
o0d.prototype.mL=function(a,b){var c=b.Ae();c?(0<c.length&&a&&c[0].setAttribute("c",a),this.By(c)):this.Sa(b);this.$.Vd(new K3("deleteAlbum","picasa",[],{label:"profile_photos.draft"}),ka,ka)};o0d.prototype.Sa=function(a){this.$.xk(22);a&&1==a.Ug()?this.jd("Sorry!  You are out of storage space."):this.jd("Sorry!  We could not save your cover photo.  Please try again later.")};
var q0d=function(a,b){m4.call(this,a,b)};t(q0d,m4);q=q0d.prototype;q.ITb=void 0;q.woa=void 0;
q.hp=function(a,b,c){q0d.ya.hp.call(this,a,b,c);this.$b.addCallback(Lp(function(b){this.woa=b;if(a.length){var c=a[0];b=[c.getId()];this.ITb=c.getAttribute("c");this.Sa=c.getAttribute("r");var h,k={label:"profile_photos.active"};if(c.Ii)h="move",k.src=c.vt();else{h="copy";var c=c.Qja,m=this.config.nk()||this.config.ik()||this.woa.getUserId();c&&c[0].getId()!=m?k.srcOwnerId=c[0].getId():k.preventDuplicates="true"}this.$.Vd(new K3(h,"picasa",b,k),Lp(this.Vhd,this),Lp(this.Jfa,this,24))}else this.$.Vd(new K3("setProfile",
"picasa",[],null),Lp(this.JTb,this),Lp(this.Jfa,this,25))},this))};q.Vhd=function(a){b0d(a.Ae()[0],this.$,this.ITb,this.Sa,"setProfile",Lp(this.JTb,this),Lp(this.Jfa,this,26))};
q.JTb=function(a){var b=a.Ae();if(b){var c=(a=b[0])&&a.getAttribute("uepv");null!=c||(c=-1);a=this.config.ik()||this.config.nk()||this.woa.getUserId();var d=Pv.get("OGPIC"),c=a+"="+c;if(d){for(var d=d.split(":"),f=!1,h=0;h<d.length;h++)if(0==d[h].indexOf(a+"=")){f=!0;d[h]=c;break}f||(d[d.length]=c);a=d.join(":")}else a=c;c=za(document.location.hostname,".google.com")?".google.com":void 0;Pv.set("OGPIC",a,86400,"/",c);this.By(b)}else this.Jfa(27,a)}; q.Jfa=function(a,b){this.$.xk(a);b&&1==b.Ug()?this.jd("Sorry!  You are out of storage space.  You should select an existing profile photo or purchase more space."):this.jd("Sorry!  We could not save your profile photo.  Please try again later.")};
var ipg=function(a,b){m4.call(this,a,b)};t(ipg,m4);ipg.prototype.hp=function(a,b,c){ipg.ya.hp.call(this,a,b,c);a[0].Kn()?this.By(a):(a=zg(a,function(a){return a.getId()}),this.$.Vd(new Xog(a,this.options),Lp(this.mL,this),Lp(this.Sa,this)))};ipg.prototype.mL=function(a){(a=a.Ae())?this.By(a):this.Sa()};ipg.prototype.Sa=function(){this.$.xk(49);this.jd("Sorry! We could not import your photo to Maps. Please try again later.")};
var u0d=function(a,b){m4.call(this,a,b)};t(u0d,m4);u0d.prototype.hp=function(a,b,c){u0d.ya.hp.call(this,a,b,c);b=a[0];c=(c=b.getAttribute("c"))?Xb(c):{};c.sqid=this.options.sqid;c.isNew=b.Kn();b=b.getAttribute("r");b0d(a[0],this.$,c,b,"setSqProfile",Lp(this.mL,this),Lp(this.Sa,this))};u0d.prototype.mL=function(a){this.By(a.Ae())};u0d.prototype.Sa=function(){this.$.xk(28);this.jd("Sorry!  We could not save your profile photo.  Please try again later.")};
var d1d=function(a,b,c,d,f){t4.call(this,a,b,c,f);this.mL=!1;this.Qf=d};t(d1d,t4);d1d.prototype.Oz=function(){d1d.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Sa;X3.ia().load(a[0].Qs(this.Qf),Lp(b.Sa,b,this))}};d1d.prototype.wc=function(){return this.Qf};
var A2e=function(a,b,c,d){Fo.call(this,B2e.ia(),d);this.oh=a;this.Km=b;this.Qb=c;this.$=[];this.mL=new kE};t(A2e,Fo);A2e.prototype.getTitle=function(){return this.oh};A2e.prototype.jP=function(){return this.Km};A2e.prototype.qj=function(a){Pn(this.ta(),"a-L",a);var b=this.Ea().fb("a-Li-P",this.ta());b&&Pn(b,"a-n-P-L-qi",a);var c=this.Ea().fb("a-Li-Qb-s",this.ta());b&&Rc(c,a?"Unselect all":"Select all")};A2e.prototype.lp=function(a){return this.mL.contains(a)};var B2e=function(){};t(B2e,Eo);la(B2e); B2e.prototype.Pa=function(a){var b=a.Ea();return b.Pa("div",{"class":"a-Li",id:a.getId()},a.Qb?b.Pa("div","a-Li-P a-n-P-X"):void 0,b.Pa("div","a-Li-O",a.oh),b.Pa("div","a-Li-VL"),a.Qb?b.Pa("div","a-Li-Qb-s","Select all"):void 0)};
var z0d=function(a){W3.call(this,void 0,a)};t(z0d,W3);z0d.prototype.Aoa=function(){};z0d.prototype.h9=function(){};z0d.prototype.kJa=function(){return!1};z0d.prototype.resize=function(){};var l5=function(a,b,c,d,f){C.call(this,c);this.$=a;this.$b=b;b=new ORd(c,!1,!0);this.ib(b);b.Pa();b.setVisible(!1);QRd(b);d=new Q_d(b.$,b.Ea());Jlg(b,"editbar-delete",d);b.getHandler().Ja(d,"TE",b.Ag);this.Ab=b;this.Sa=null;f?this.Sa=new z0d(c):this.Sa=new W3(a.rd().fG(),c);this.ib(this.Sa);this.Sa.Pa();this.Qb=new Un(this.oIa,l5.prototype.Ag,this);this.getHandler().Ja(this.Ab,"Ei",this.qIc).Ja(this.Ab,"Fi",this.xIc).Ja(this.Ab,"TE",this.Mjd).Ja(this.Ab.ta(),["mouseover","mouseout"],this.rVa).Ja(this.Ab.ta(),
"click",this.CIb).Ja(this.Sa.ta(),["mouseover","mouseout"],this.rVa).Ja(this.$b,["highlight","unhighlight"],this.uBc).Ja(this.$b,"action",this.Ljd).Ja(a.Sa,"reset",this.RHc)};t(l5,C);l5.prototype.Ag=500;l5.prototype.mL=null;
var C0d=function(a,b){a.Qb.stop();var c=N_d(b);if(c){var d;if("function"==typeof b.La)d=b.La().Ra();else if("function"==typeof b.getValue){var f=b.getValue();0==f.Q9().lastIndexOf("image",0)?d="photo":0==f.Q9().lastIndexOf("video",0)&&(d="video")}a.Ab.yN(c,"photo"==d);a.Sa.Aoa(b)}a.mL=b};q=l5.prototype;q.Pa=function(){l5.ya.Pa.call(this);this.Ab.render(this.ta());this.Sa.render(this.ta());Qn(this.ta(),"a-ga-F-dpa");this.Ab.ta().style.position="absolute"};
q.qb=function(){l5.ya.qb.call(this);this.Ab.Ma();this.Qb.Ma();this.Sa.Ma()};q.Ljd=function(a){C0d(this,a.target)};q.Mjd=function(){this.Sa.h9()};q.uBc=function(a){if(!this.Sa.kJa()){var b=a.target;switch(a.type){case "highlight":b&&C0d(this,b);break;case "unhighlight":this.Qb.start()}}};q.CIb=function(a){Sn(a.target,"a-ga-F-Ab-Z")&&Q3b(this.mL)};q.rVa=function(a){"mouseout"==a.type?this.Qb.start():this.Qb.stop()};q.RHc=function(){this.oIa(!0)};
q.qIc=function(){this.Sa.resize();On(this.Sa.ta(),!0);Uf(function(){S3(this.mL.ta())},0,this)};q.xIc=function(){On(this.Sa.ta(),!1)};q.jL=function(a){this.Ab.jL(a)};q.oIa=function(a){if(a||!this.Sa.kJa())RRd(this.Ab),this.Sa.h9()};q.resize=function(){this.Ab.resize();this.Sa.resize()};
var Q0d=function(a,b,c){this.$=a;this.Km=b;this.Ab=c;this.Vk=new m5(120,!1,!0);this.Qb={};this.mL=!1;this.Vb=0;this.Ag=this.DU=!1};Q0d.prototype.$b=function(){this.DU=!0};Q0d.prototype.uh=function(a){if(this.Ab){var b=this.Ab.mL;if(b){var c=b.La();c&&(G0d(this.Vk,b),this.Ab.resize(),this.Ab.jL(c),R0d(this,c,a))}}};
var R0d=function(a,b,c){c=Math.floor((c.$-c.Sa)/90)%4;a.DU=!1;var d=++a.Vb;0>c&&(c+=4);var f={rotation:c};c=Lp(function(){this.$.od.Vd(new K3("rotatePhoto","picasa",[b.getId()],f),Lp(function(a){S0d(this,a,d)},this),Lp(function(){var a=b.getId();if(this.Sa)this.Sa(),this.Sa=void 0;else{this.mL=!1;this.Ag=!0;var c=this.$.od.La(a);this.Qb[a]=c;T0d(this,d)}},this));this.$.od.xk(this.Km)},a);a.mL?a.Sa=c:(a.mL=!0,c())},S0d=function(a,b,c){a.Sa?(a.Sa(),a.Sa=void 0):(a.mL=!1,b.Ae(),v(b.Ae(),function(a){var b= this.$.od.La(a.getId());a.Sa=b.Sa;b=a.getId();this.Qb[b]=a},a),T0d(a,c))},T0d=function(a,b){a.DU||b!=a.Vb||(a.Ag&&(alert("Unable to rotate photo. Please try again."),a.Ab&&a.Ab.oIa(!0),a.Ag=!1),a.$.od.Xp(Rb(a.Qb)),Vb(a.Qb),a.jg&&a.jg())};
var p5=function(a,b,c){o5.call(this,a,b,c,J0d||(J0d=new m5));this.jv=new C_d(a,"p",this.Ea());this.Km=new Yv;this.yja=a.rd().$b;this.Qb=this.Sa=null;this.p_=new F7g(a);x(this,this.p_)};t(p5,o5);q=p5.prototype;q.Pa=function(){p5.ya.Pa.call(this);Qn(this.ta(),"a-Vg-aaa");this.ib(this.jv,!0)};
q.Na=function(){p5.ya.Na.call(this);this.getHandler().Ja(this.ta(),["mouseover","mouseout"],this.Lbd).Ja(this.ta(),"click",this.Ebd).Ja(this.getContext().$,"si",this.Mbd);this.Sa=new l5(this.getContext(),this.getContainer(),this.Ea(),0,!0);this.Qb=new Q0d(this.getContext(),30,this.Sa);this.getHandler().Ja(this.Sa,"Fi",Lp(this.Qb.$b,this.Qb)).Ja(this.Sa,"Ei",Lp(this.Qb.uh,this.Qb)).Ja(this.Sa,"TE",this.Nbd);this.ib(this.Sa);this.Sa.render(this.ta())};
q.Zba=function(a){var b=a.La(),c=r4(BUd(b.Zta),h2e),d=this.Km.$.$.value;d&&d.getTitle()==c||(d=new A2e(c,!this.Km.Fc(),this.yja,this.Ea()),this.getContainer().ib(d,!0),this.Km.set(d.getId(),d));c=d;b=b.getId();c.$.push(b);c.mL.add(b);(b=c.Ea().fb("a-Li-VL",c.ta()))&&Rc(b,(new Z("{numPhotos, plural, =0 {unused plural form}=1 {1 photo}other {{numPhotos} photos}}")).format({numPhotos:c.$.length}));p5.ya.Zba.call(this,a)};q.gR=function(){this.jv.setActive()};
q.RD=function(a){On(this.jv.ta(),!1);p5.ya.RD.call(this,a)};q.Nbd=function(){var a=this.Sa.mL;if(a&&confirm("Are you sure you want to permanently delete this photo?")){a.Ld(!1);a.Bm(16,!1);var b=a.La();this.getContext();var c=new ag(void 0,this);c.addCallback(Lp(function(){this.Rd().dL([b.getId()])},this));bg(c,Lp(function(){alert("We were unable to delete your photo. Please try again.");a.Bm(16,!0)},this));var d=new K3("delete","picasa",[b.getId()],{});this.p_.OZa(d,c,!0,!0)}};
q.Lbd=function(a){var b=a.target;(Sn(b,"a-Li-P")||Sn(b,"a-Li-Qb-s"))&&Pn(b,"a-u","mouseover"==a.type)};q.Ebd=function(a){a=a.target;if(Sn(a,"a-Li-P")||Sn(a,"a-Li-Qb-s")){a=this.Ea().Rm(a,"a-Li");a=this.Km.get(a.id).$;var b=this.getContext().$;b.WT(a,!Ye(a,b.Sf,b))}};q.Mbd=function(a){var b=this.Rd();Cd(a.ur,b.vC,b)&&this.Km.forEach(function(b){if(Cd(a.ur,b.lp,b)){var d=this.getContext().$;b.qj(Ye(b.$,d.Sf,d))}},this)};
var W0d=function(a,b,c,d,f){A4.call(this,a,b,c,f);this.Qb=d;this.Sa=new df};t(W0d,A4);
W0d.prototype.Pa=function(){W0d.ya.Pa.call(this);var a=this.Ea();this.EFa(this.message);var b=a.Pa("div","roa-B");v(this.Qb,function(c){var f;switch(c){case "getty":var h=a.Pa("div","a-pb-HB-D-ue d-k-l");f=Ejc(a.createTextNode("Stock images"));f.Sn("Stock images");f.render(h);b.appendChild(h);break;case "gis":f=Ejc(a.Pa("div","a-n-gq-Cd-ue"),a);f.Sn("Google search images");f.render(b);ey(f.ta(),"Google search images");break;case "life":f=Ejc(a.Pa("div","a-n-hq-J-cq-ue"),a),f.Sn("Life images"),f.render(b),
ey(f.ta(),"Life images")}this.Sa.add(f);this.getHandler().Ja(f,"action",function(){var a=this.Gf().clone();BN(a,"type",c);var b=this.getContext();b.$.lJ();b.Mh.On(a)})},this);var c=a.Pa("div",null,b);a.appendChild(this.cb(),c)};W0d.prototype.Na=function(){W0d.ya.Na.call(this);Qn(this.ta(),"a-oI");Pe(this.Sa.Rc(),function(a){a.Na()},this)};
var Y0d=function(a,b,c,d){E3.call(this,a,b,c,d);this.Bm(32,!0);this.Bm(64,!0);Bo(this,64);this.mL=null};t(Y0d,E3);Y0d.prototype.nA=function(a){this.mL=a;this.Nb()&&A7e(this)};var A7e=function(a){a.getHandler().Ja(a.mL,"change",a.Qb)};Y0d.prototype.Qb=function(){this.Ld(this.mL.Jc())};Y0d.prototype.Ld=function(a){Y0d.ya.Ld.call(this,a);this.mL&&this.mL.Ld(this.Jc());xo(this,16)&&(a=this.Sa.jh(this))&&qo(a,"checked",this.Jc())};Y0d.prototype.Na=function(){Y0d.ya.Na.call(this);this.mL&&A7e(this)}; Y0d.prototype.Um=function(a){this.isEnabled()&&this.mL&&"b-P-Tb"==a.target.className||(this.isEnabled()&&xo(this,64)?(this.hm(!0),this.hm(!1)):Y0d.ya.Um.call(this,a))};
var X0d=function(a){F3.call(this,"a-JMBbeb-e");this.$=a};t(X0d,F3);
X0d.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=c.getName(),f,h=b.Pa("div","a-JMBbeb-e-qa-B",b.Pa("div","a-JMBbeb-e-Hp-I1"),b.Pa("div","a-JMBbeb-e-Hp-H1"),f=b.Pa("div","a-JMBbeb-e-qa",b.Pa("span","a-n-fg"))),k=b.Pa("div","a-JMBbeb-e-qa-Z",h);d&&(f.title=d,c=K1e(c),ey(f,c.concat(" ").concat(d)));xo(a,16)&&(c=new nD(void 0,b),c.Bm(32,!1),c.render(h),a.nA(c),Sc(c.ta(),!1),po(f,"checkbox"));a=b.Pa("div","a-Sc-Fd-ka",d);b=b.Pa("div","a-JMBbeb-e d-k-l",k,a);le(k,this.$,this.$);me(a,this.$);return b}; X0d.prototype.Pc=function(){return"a-JMBbeb-e"};X0d.prototype.jh=function(a){return Zc(a.Ea(),"div","a-JMBbeb-e-qa",a.ta())[0]};
var K7e=function(a){m5.call(this,a)};t(K7e,m5);K7e.prototype.Pa=function(a){var b=a.La(),c=b.getName(),d=a.Ea(),f=this.$,h=d.Pa("div","a-Sc-Fd-qa-cj"),k=d.Pa("div","a-Sc-Fd-qa-B",h);po(h,"checkbox");c&&(b=K1e(b),h.title=c,ey(h,b+c));b=new nD(void 0,d);b.Bm(32,!1);b.render(k);a.nA(b);Sc(b.ta(),!1);b=d.Pa("div","a-Sc-Fd-qa",k);le(h,f,f);le(k,f,f);le(b,f,f);a.Gdb(k);a=d.Pa("div","a-Sc-Fd-ka",c);me(a,this.$);return d.Pa("div","a-Sc-Fd-Z d-k-l",b,a)};
K7e.prototype.lO=function(a){return Zc(a.Ea(),"div","a-Sc-Fd-qa-cj",a.ta())[0]};K7e.prototype.Pc=function(){return"a-Sc-Fd"};K7e.prototype.fN=function(a){return a.ll(this.$)};var L7e=function(a,b){var c=a.$;if(b){for(var d=0;d<b.length;d++){var f=b[d];if(Math.max(f.wc(),f.Ic())==c)return a.fN(f)}return a.fN(b[b.length-1])}return null};K7e.prototype.Uaa=function(a){return(a=L7e(this,a))&&a.wc()&&a.Ic()?sRd(a,this.$):new Kb(this.$,this.$)};
K7e.prototype.l0=function(a){var b=a.ta(),c=a.La(),c=L7e(this,c.Yh());if(a.Op){if(c){var d=c.wc()||this.$,f=c.Ic()||this.$;this.E6(a,URd(c.getUrl()),d,f)}b=Zc(a.Ea(),"div","a-Sc-Fd-qa-B",b)[0];c=xe(this.lO(a));d=Math.round((this.$-c.width)/2);Vd(b,d);le(b,c)}this.eO(a,this.Pc()+"-ak",!xo(a,16))};
var F7e=function(a,b,c,d){n5.call(this,a,b,c,d,!1);this.mL=null};t(F7e,n5);F7e.prototype.nA=function(a){this.mL=a;this.Nb()&&I7e(this)};var I7e=function(a){a.getHandler().Ja(a.mL,"change",a.gIb)};q=F7e.prototype;q.gIb=function(){this.Ld(this.mL.Jc())};q.Ld=function(a){F7e.ya.Ld.call(this,a);this.mL&&this.mL.Ld(this.Jc());this.Sa instanceof K7e&&(a=this.Sa.lO(this))&&qo(a,"checked",this.Jc())};q.Na=function(){F7e.ya.Na.call(this);this.mL&&I7e(this)};
q.Um=function(a){this.isEnabled()&&this.mL&&"b-P-Tb"==a.target.className||F7e.ya.Um.call(this,a)};q.xZ=function(a){F7e.ya.xZ.call(this,a);var b=this.La();a=b.getName();var c=this.fb("a-Sc-Fd-ka"),d=this.fb("a-Sc-Fd-qa-cj");a&&(b=K1e(b),Rc(c,a),d.title=a,ey(d,b+" "+a))};
var M7e=function(a){return a=""+('<div id="'+r(a.l3)+'" class="a-k-v-Z"><div id="'+r(a.$Tc)+'" class="a-Mi-Fi-ba"></div><div id="'+r(a.FEa)+'" class="a-k-v-ec"><div class="a-n-gc-Db-v-m a-k-v-m"></div><div class="a-k-v-ec-E">'+r(a.ZXa)+'</div><div class="a-k-v-c-Z"><div class="a-k-v-c-nsa-E">or</div><div id="'+r(a.UOa)+'" class="a-k-v-c d-k-l"></div></div></div><div id="'+r(a.jld)+'" style="display:none" class="b-xm a-Mi-la-Ng"><div class="a-Mi-jm">Uploading...</div></div><div class="a-v-Bd-c"><button id="'+ r(a.B6)+'" style="display:none"></button></div></div>')};
var N7e=function(a,b,c,d){M5.call(this,a,b,d);this.cj=c;a=this.Ea();b=[a.Pa("div",["b-c-W","a-n-gc-v-m","d-k-l"]),a.Pa("span","b-c-ka","Upload")];this.gk=new Ot(b,a);this.ib(this.gk)};t(N7e,M5);q=N7e.prototype;q.kVa=function(){return M7e};q.p1=function(){return null};q.Pa=function(){var a=this.oT();Qn(a,"a-k-v");this.Kb(a);Uf(function(){var a=this.Ea(),c=a.Pa("span");a.appendChild(this.cj.Sa,c);this.gk.render(c);Qn(this.gk.ta(),"a-k-v-Za-c");O7e(this,!0)},0,this)};
q.start=function(){if(this.g3){O7e(this,!1);var a=this.Xd.getOption("parent");this.Pf.Ag=a;N7e.ya.start.call(this)}};q.hS=function(a){this.g3&&N7e.ya.hS.call(this,a)};q.reset=function(a){N7e.ya.reset.call(this,a);a||O7e(this,!0)};var O7e=function(a,b){a.gk.ta()&&(a.gk.Ta(b),a.Sa.addCallback(function(a){b?a.Lr(this.gk):a.VM(this.gk)},a))};
var P7e=function(){};t(P7e,up);la(P7e);P7e.prototype.yb=function(a,b){var c=nc("*","d-r",b)[0];if(c){On(c,!1);a.Ea().La().body.appendChild(c);var d=new Bp;d.yb(c);a.WE(d)}return P7e.ya.yb.call(this,a,b)};P7e.prototype.Pc=function(){return"b-qI-r-c"};var T7e=function(a,b){Fp.call(this,null,a,P7e.ia(),b)};t(T7e,Fp);T7e.prototype.Km=function(){if(this.Ne().Nb()){var a=this.ta(),a=new hpa(a,F2a(this)?5:7,!spa(this),spa(this)),b=this.Ne().ta();this.Ne().dc()||(b.style.visibility="hidden",On(b,!0));var c=spa(this)?zy(b):null;a.Wd(b,F2a(this)?4:6,new Md(-1,0,0,0),c);this.Ne().dc()||(On(b,!1),b.style.visibility="visible")}};
var P3=function(a,b,c){this.Td=new k4("horizontal",D3.ia(),c);this.Qb=!0;y4.call(this,a,b,void 0,void 0,c);this.Km=this.getContainer();this.ib(this.Td);this.yja=new s4(this.getContext().rd().$b);this.swa=new K7e(180);this.Ye=new X0d(180);this.jv={};this.p_={};this.getContext().Ab.addCallback(function(a){this.getHandler().Ja(a.M_b,"prefUpdate",this.Tjb)},this);this.Sa=this.Tx=this.Db=this.Vk=null};t(P3,y4);q=P3.prototype;
q.Pa=function(){P3.ya.Pa.call(this);Qn(this.ta(),"a-gc-Ra");var a=this.Ea();a.fb("a-B-Z",this.ta()).tabIndex=-1;this.Vk&&(this.Vk.Pa(),a.Ep(this.Vk.ta(),this.Km.ta()));this.Td.Pa();a.Hy(this.Td.ta(),this.Km.ta());if(this.getContext().rd().zF&&!this.Gf().getQuery()){var a=this.Ea(),b=this.Db=a.Pa("div","a-Ye-KO");this.Sa=Ejc($6e(8),a);this.Sa.render(b);var c;c=(c=$6e(8))?"Sort by "+c:"";this.Sa.Sn(c);ey(this.Sa.ta(),c);Qn(this.Sa.ta(),"a-Ye-O");c=Llg(this.Gf());c=this.Tx=a.Pa("div","a-Ye-ka",$6e(c));
a.appendChild(b,c);V7e(this,this.Qb);this.y2=new C7e(this.getContext(),this.Gf(),this.Qb,a);x(this,this.y2);c=a.Pa("div","a-Ye-c");a.appendChild(b,c);var d=new T7e(this.y2,a);this.ib(d,!1);d.render(c);ey(d.ta(),"Sort order");On(b,!1);a.Ep(b,this.Km.ta())}a="";a=this.Gf().getQuery()?$6e(5):$6e(Llg(this.Gf()));a="Files are ordered by "+a;ey(this.Km.ta(),"The Drive list view.".concat(" ").concat(a));ey(this.Td.ta(),"The Drive grid view.".concat(" ").concat(a))};
q.Na=function(){this.Vb=this.Vb||BMc(this.getContainer().ta());P3.ya.Na.call(this);this.getHandler().Ja(this.Td,["check","uncheck"],this.m2a).Ja(this.Td,"open",this.oXa).Ja(this.Td,"dblclick",this.cD).Ja(this.Ea().getWindow(),"resize",this.Sx);this.Sa&&this.getHandler().Ja(this.Sa,"action",this.iaa);Uf(this.Sx,0,this)};q.Brb=function(a,b,c){return new k4(void 0,new L3,c)};q.getContainer=function(){return this.Qb?P3.ya.getContainer.call(this):this.Td};
q.ED=function(a){var b;this.Qb?(b=new t4(this.getContext(),a,this.yja,this.Ea()),oTf(a)&&(b.Bm(64,!0),Bo(b,64))):b=oTf(a)?new Y0d(this.getContext(),a,this.Ye,this.Ea()):new F7e(this.getContext(),a,this.swa,this.Ea());oTf(a)&&!this.Gf().getOption("selectFolder")&&b.Bm(16,!1);return b};q.gJ=function(){return this.Qb?this.p_:this.jv};q.KYa=function(a){this.Qb?this.p_=a:this.jv=a};
q.setActive=function(a,b){var c=Fcf(this.Gf(),this.getContext());Y7e(this,!c);this.Vk&&this.Vk.setActive(a);P3.ya.setActive.call(this,a,b)};q.setVisible=function(a){P3.ya.setVisible.call(this,a);Uf(this.Sx,0,this)};q.iO=function(a){P3.ya.iO.call(this,a);this.Db&&On(this.Db,0<this.Rd().Ae().length)};q.Tjb=function(a){"dl"==a.key&&this.g3&&(a=Fcf(this.Gf(),this.getContext()),Y7e(this,!a))};
var Y7e=function(a,b){a.Qb=b;a.Td.setVisible(!b);a.Km.setVisible(b);Pn(a.ta(),"a-Sc-Fd-Ra",!b);a.Db&&(Pn(a.Db,"a-Ye-Te-Ra",!b),a.y2&&sMe(a.y2,b),V7e(a,a.Qb));a.Ik(a.Rd().Ae())};P3.prototype.Sx=function(){var a=this.uh?this.uh.Ab:null;if(this.g3&&a){var b=a.ta(),a=xe(b),b=ye(b),c=this.Ea().fb("a-B-Z",this.ta());Vd(c,0,a.height+b.top+b.bottom)}};var V7e=function(a,b){var c=a.Ea(),d=8==Llg(a.Gf());d&&c.uq(a.Tx,$6e(b?3:8));Pn(a.Tx,"a-Ye-X",!d||!b);Pn(a.Sa.ta(),"a-Ye-X",d&&b);a.Sa.setVisible(b);a.Sa.Ta(!d)}; P3.prototype.iaa=function(){var a=this.getContext().Mh.FH.clone();BN(a,"sortKey",8);this.getContext().Mh.On(a)};
var qaf=function(a,b,c,d){var f=new P3(a,b,d);C4.call(this,a,b,f,c,d);a=this.Sa;f.Vk||(b=f.Gf(),b.getOption("upload")&&(b=b.clone(),o4(b,"docs"),f.Vk=new N7e(f.getContext(),b,a,f.Ea()),f.ib(f.Vk)))};t(qaf,C4);var $0d=function(){F3.call(this,"a-cd-e")};t($0d,F3);la($0d);var a1d=function(a,b,c){a=a.Pc();b=(b=b&&b[0])&&b.ll(120,["c"]).getUrl();c=c.Pa("div",a+"-cb",c.Pa("div",a+"-k3",c.Pa("img",{src:b,width:"120px",height:"120px","class":a+"-k3-na"})));xc&&!Gf(9)||(new bF(c,450)).play();return c},b1d=function(a,b,c,d,f){a=a.Pc();var h=f.Pa("div",a+"-ee-O");Rc(h,b||" ");return f.Pa("div",a+"-ee",h,f.Pa("div",a+"-ee-SF",f.Pa("div",a+"-ee-SF-Lfa",V_d(c.timeMs)),f.Pa("div",a+"-ee-SF-wsa",d)))}; $0d.prototype.Pa=function(a){var b=a.La(),c=a.Ea();return a.Ea().Pa("div",this.Pc(),a1d(this,b.Yh(),c),b1d(this,b.getName(),b.getAttribute("startTime"),b.Jd()||"",c))};$0d.prototype.uI=function(){return"option"};
var c1d=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Sa=$0d.ia()};t(c1d,y4);c1d.prototype.ED=function(a){return new E3(this.getContext(),a,this.Sa,this.Ea())};c1d.prototype.Pa=function(){c1d.ya.Pa.call(this);Qn(this.ta(),"a-cd-Ra")};var g1d=function(){s4.call(this,!1)};t(g1d,s4);la(g1d);
g1d.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("div","a-Yn-sd d-k-l"),d=a.La().getName()||"";if((a=a.La().Yh())&&a.length){var f=a[0].ifa(500,125).getUrl(),h=c.style;xc&&!Gf("8")?h.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+f+'", sizingMethod="crop")':(h.backgroundImage="url("+f+")",h.backgroundPosition="top left",h.backgroundRepeat="no-repeat");qe(c,0);a&&3<=a.length?(a[2].getUrl(),a[3]&&a[3].getUrl(),a=a[1].ifa(500,125).getUrl(),document.createElement("video"),a&&b.uv(c,
b.Pa("img",{src:a,width:500,height:125,"class":"a-Yn-x",title:d}))):b.uv(c,b.Pa("img",{src:f,width:500,height:125,"class":"a-Yn-x",title:d}))}return b.Pa("tr","a-Yn-e-cy",b.Pa("td",null,b.Pa("div","a-Yn d-k-l",c)))};g1d.prototype.Sa=function(a){if(!a.isDisposed()){var b=a.Ea().fb("a-Yn-sd",a.ta());f1d(a,!0);!xc||Gf(9)?(new bF(b,450)).play():qe(b,1)}};var f1d=function(a,b){var c=a.Ea().fb("a-Yn-x",a.ta());b&&c&&c.play?c.play():!b&&c&&c.pause&&c.pause()};g1d.prototype.Op=ka;
var h1d=function(a,b,c){y4.call(this,a,b,new L3,void 0,c)};t(h1d,y4);h1d.prototype.ED=function(a){return new d1d(this.getContext(),a,g1d.ia(),500,this.Ea())};h1d.prototype.Pa=function(){h1d.ya.Pa.call(this);Qn(this.ta(),"a-Yn-Ra")};h1d.prototype.x6a=function(){var a=this.getContainer(),b=Ge(a),c=this.Vna(),d;d=c;for(var f=kw(a,d);f&&this.PX(f);)f=kw(a,++d);d=--d;for(f=0;f<b;f++){var h=kw(a,f);f>=c&&f<=d?h.Op?1!=h.mL&&(f1d(h,!0),h.mL=!0):h.Oz():h.Op&&0!=h.mL&&(f1d(h,!1),h.mL=!1)}d>=b-1&&this.RD()};
var f9e=function(a,b,c,d,f){C4.call(this,a,b,c,d,f);a.rd().Vb&&oEg(this.Sa,new XX(a,"Insert images",f))};t(f9e,C4);f9e.prototype.Pa=function(){f9e.ya.Pa.call(this);Qn(this.ta(),"a-lsa")};var f8e=function(a){e8e.call(this);this.dh=a};t(f8e,e8e);f8e.prototype.Pa=function(a){var b=f8e.ya.Pa.call(this,a);Qn(b,"a-kN-e");var c=a.La(),d=c.Qja;a=a.Ea();"featured"==this.dh?a.appendChild(b,a.Pa("div","a-kN-ha","By: ",a.Pa("a",{href:c.getUrl(),target:"_blank",tabIndex:-1},d[0].getName()))):"gmail_themes"==this.dh&&(c=oGe(c),a.appendChild(b,a.Pa("div","a-v8RJD-ha",c)));return b};var oGe=function(a){var b=a.Qja;return b?"By: "+b[0].getName():a.Jd()};f8e.prototype.cXa=function(a){return oGe(a)};
f8e.prototype.zDa=function(a,b){var c=zy(a);c.height-=20;var d=zy(b);if("featured"==this.dh){var f=My.Bo(),h=(c.width-d.width)/2,k=pc("a-kN-ha",a);f?(b.style.right=Math.round(h)+"px",k.style.right=Math.floor(Math.min(50,h)+5)+"px"):(b.style.left=Math.round(h)+"px",k.style.left=Math.floor(Math.min(50,h)+5)+"px");k.style.bottom=20+Math.floor((c.height-d.height)/2-15)+"px";k.style.width=Math.max(110,d.width)+"px"}b.style.top=Math.round((c.height-d.height)/2)+"px"};
var n8e=function(a,b,c){k4.call(this,a,b,c)};t(n8e,k4);var Aag=function(a){var b=kw(a,a.Sa);b&&(b=b.Sa.jh(b),Sc(b,!1),a.Sa=-1)},o8e=function(a,b){var c=kw(a,b);if(c){Aag(a);a.Sa=b;c=c.Sa.jh(c);Sc(c,!0);try{c.focus()}catch(d){}}};
n8e.prototype.$=function(a){var b=this.Sa;n8e.ya.$.call(this,a);if(b==this.Sa){var c=a.target,b=this.Af(c),c=new A8e(c,a.$);switch(a.$){case 0:Aag(this);o8e(this,b);this.dispatchEvent(c);break;case 37:0==b&&(Aag(this),this.dispatchEvent(c));break;case 39:Aag(this);b==Ge(this)-1&&this.dispatchEvent(c);break;case 38:case 40:Aag(this),this.dispatchEvent(c)}}};n8e.prototype.Zj=function(a,b,c){n8e.ya.Zj.call(this,a,b,c);a.jh().tabIndex=-1};
var H8e=function(a,b,c,d){n5.call(this,a,b,c,d,!1);this.tna=G8e};t(H8e,n5);var G8e=new Kb(150,150);var I8e=function(){e8e.call(this)};t(I8e,e8e);la(I8e);q=I8e.prototype;q.Pa=function(a){a=a.Ea();var b=a.Pa("div",this.Pc()+"-sd",a.Pa("div",[this.Pc()+"-aa-sd"]),a.Pa("div",[this.Pc()+"-lf","a-n-dc-Tb-X"]),a.Pa("img",this.Pc()+"-zc"));return a.Pa("div",this.Pc(),b)};q.Pc=function(){return"a-qMnisd-e"};q.lO=function(a){return a.fb(this.Pc()+"-sd")};q.jh=function(a){return a.ta()};
q.l0=function(a){var b=a.La(),c=b.Yh(),d=a.tna,f=this.lO(a),h=d.width,k=d.height,m=Ae(f);m&&m.left&&m.right&&(h-=m.left+m.right);m&&m.top&&m.bottom&&(k-=m.top+m.bottom);(m=de(f))&&m.left&&m.right&&(h-=m.left+m.right);m&&m.top&&m.bottom&&(k-=m.top+m.bottom);h=Math.ceil(h);k=Math.ceil(k);h=c&&c[0].ifa(h,k);k=a.fb(this.Pc()+"-zc");c=a.fb(this.Pc()+"-aa-sd");b=b.Jd()||b.getName();k.title=b;k.alt=b;h&&(k.src=h.getUrl());var p;h&&h.wc()&&h.Ic()?p=new Kb(h.wc(),h.Ic()):p=d;le(f,p);le(k,p);b=de(c);h=p.width;
p=p.height;b&&b.left&&b.right&&(h-=b.left+b.right);b&&b.top&&b.bottom&&(p-=b.top+b.bottom);le(c,h,p);qe(f,1);le(a.ta(),d);this.eO(a,this.Pc()+"-ak",!xo(a,16))};q.upa=function(a,b){var c=b.fb(this.Pc()+"-lf");Pn(c,"a-n-dc-Tb-L",a);Pn(c,"a-n-dc-Tb-X",!a)};
var Lbe=function(){F3.call(this,this.Pc())};t(Lbe,F3);la(Lbe);Lbe.prototype.Pa=function(a){Lbe.ya.Pa.call(this,a);a=a.Ea();var b=a.Pa("div",this.Pc()+"-W a-n-ia-FO4lXc-Zc"),c=a.Pa("div",this.Pc()+"-E"),b=a.Pa("div",this.Pc()+"-B",b,c);return a.Pa("div",this.Pc(),b)};Lbe.prototype.Pc=function(){return"a-fg-Md-e"};
var Tee=function(a,b,c){if(c){var d=b.Ea(),f=b.fb(a.Pc()+"-E"),h=b.fb(a.Pc()+"-W");On(f,!0);On(h,!1);d.hb(f);c=(new Z("{expansionSize, plural, =0 {unused plural form}=1 {{expansionSize} more}other {{expansionSize} more}}")).format({expansionSize:c});d.appendChild(f,d.createTextNode(c));ey(f,"Click to show more images")}else Mbe(a,b,!0);Ube(a,b)},Mbe=function(a,b,c){var d=b.fb(a.Pc()+"-W");a=b.fb(a.Pc()+"-E");var f=My.Bo();b=f?"a-n-ia-Xja-Zc":"a-n-ia-FO4lXc-Zc";f=f?"a-n-ia-FO4lXc-Zc":"a-n-ia-Xja-Zc";
On(a,!1);On(d,!0);c?(TB(d,f,b),d.title="Click to show more images"):(TB(d,b,f),d.title="Click to show less images")},Ube=function(a,b){Uf(function(){var a=b.Ea(),d=b.fb(this.Pc()+"-B"),a=oe(a.$_a(d)).height,f=zy(d).height;Pd(d,"margin-top",(a-f)/2+"px")},0,a)};
var J8e=function(a,b){C3.call(this,a,new Vw({}),new Lbe,b);this.Bm(8,!1);this.Bm(16,!1);this.mL=!0;this.Qb=void 0};t(J8e,C3);q=J8e.prototype;q.Na=function(){J8e.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.m1a);this.getHandler().Ja(ahb(this),"key",this.IIb)};q.collapse=function(){this.mL=!0;this.Ik(!0)};q.m1a=function(){this.mL=!this.mL;this.dispatchEvent(this.mL?"Se":"Re")};
q.IIb=function(a){switch(a.keyCode){case 38:case 40:case 37:case 39:this.dispatchEvent(new Glg(this,a.keyCode));a.preventDefault();a.stopPropagation();break;case 32:case 13:this.m1a(),a.preventDefault(),a.stopPropagation()}};q.Ik=function(a,b){this.mL=a;var c=this.Sa;this.mL?b&&this.Qb?Tee(c,this,this.Qb-b):Tee(c,this):(Mbe(c,this,!1),Ube(c,this))};
var K8e=function(a){this.Sa=ia(150)?150:200;this.$=a||0},Xxb=function(a,b,c,d){for(var f=[],h=0;!gb(b)&&h<c;){var k=N8e(b.shift());f.push(k);h+=V8e(k,d).width+2}var k=2*f.length,h=h-k,m=c-k;gb(b)&&(m-=a.$);d=Math.floor(d*(h<m?.9:m/h));var p=0;for(b=0;b<f.length;b++)f[b]=V8e(f[b],d),p+=f[b].width;if(h+k>=c)for(c=Math.round(m-p);0!=c;)for(h=0<c?1:-1,b=f.length-1;0<=b&&0!=c;--b,c-=h)k=f[b],f[b]=new Kb(k.width+h,k.height);p=0;v(f,function(a){p+=a.width+2},a);return f},N8e=function(a){var b=a.width,c= a.height;a=Math.min(b,3.5*c);b=Math.min(c,1.85*b);return new Kb(a,b)},W8e=function(a,b,c){b=sb(b);for(var d=[];!gb(b);){var f=Xxb(a,b,c,a.Sa);if(gb(f))break;d.push(f)}return d},V8e=function(a,b){return new Kb(Math.round(b/a.height*a.width),b)};
var $3=function(a,b,c,d,f){Z3.call(this,a,b,c,d||I8e.ia());this.Sa=new J8e(this.getContext(),this.Ea());this.Qb=0;this.Km=f};t($3,Z3);q=$3.prototype;q.$f=0;q.s3=0;q.Pa=function(){$3.ya.Pa.call(this)};q.Pc=function(){return"a-O6pfRc"};q.Na=function(){$3.ya.Na.call(this);this.getHandler().Ja(this.Sa,"Re",this.Lib).Ja(this.Sa,"Se",this.sib)};q.Hr=function(a){if(0<Ge(this.getContainer())){var b;b=this.getContainer().Sa;this.Uga(rb(this.Ko,a));0<=b&&o8e(this.getContainer(),b)}else $3.ya.Hr.call(this,a)};
q.Uga=function(a){if(0==a.length)$3.ya.Uga.call(this,a);else{this.Sa.Nb()&&this.getContainer().removeChild(this.Sa,!0);if(!this.Qb)throw Error("Sm");var b=Y8e(this,a),c=this.gJ();v(a,function(a){var d=a.getId();(d=c[d]=c[d]||this.ED(a))&&b[a.getId()]&&(a=b[a.getId()],d.tna=a)},this);$3.ya.Uga.call(this,a);this.s3||(this.s3=a.length);var d=b[a[a.length-1].getId()].height;this.Rd().yW()?(bfe(this,d),this.Sa.Ik(!0,a.length),this.$f&&o8e(this.getContainer(),this.$f),this.$f=a.length):this.$f&&(a.length<=
this.$f?(bfe(this,d),this.Sa.Ik(!0,a.length),o8e(this.getContainer(),a.length)):(bfe(this,d),this.Sa.Ik(!1),o8e(this.getContainer(),this.$f)),this.$f=a.length)}};
var bfe=function(a,b){a.getContainer().ib(a.Sa,!0);var c=b,d=a.Sa.ta(),f=Ae(d);f&&f.top&&f.bottom&&(c-=f.top+f.bottom);le(d,40,c)},Y8e=function(a,b){for(var c=[],d=0;d<b.length;d++){var f=b[d].Yh()[0];f?c.push(new Kb(f.wc(),f.Ic())):c.push(new Kb(150,150))}d=0;if(a.Rd().yW()||a.$f)d=40;var c=W8e(new K8e(d),c,Math.round(a.Qb)),h=0,k={};v(c,function(a){v(a,function(a){k[b[h++].getId()]=a})});return k};q=$3.prototype;q.PX=Fx;q.Lib=function(){this.Sa.mL&&this.$f?this.Ik(this.Rd().Ae()):this.RD(!0)};
q.sib=function(){this.Ik(this.Rd().Ae().slice(0,this.s3))};q.ED=function(a){return new H8e(this.getContext(),a,this.Db,this.Ea())};q.Vna=function(){return 0};q.Fma=function(){$3.ya.Fma.call(this,!1);this.Sa.mL||this.Sa.collapse()};q.Gya=function(){return!1};q.Brb=function(a,b,c){return new n8e(a,b||void 0,c)};q.focus=function(a){a=a?Ge(this.getContainer())-1:0;o8e(this.getContainer(),a)};q.Eqa=Fx;q.Ysa=function(){this.Km||$3.ya.Ysa.call(this)}; q.meb=function(a){this.Km?this.Km.setVisible(a):$3.ya.meb.call(this,a)};
var $8e=function(a,b,c,d,f){E3.call(this,a,b,c,f);this.Vk=d};t($8e,E3);q=$8e.prototype;q.Pa=function(){$8e.ya.Pa.call(this);this.ib(this.Vk,!0)};q.Na=function(){$8e.ya.Na.call(this);this.Vk.setActive(!0);this.Vk.iO(!0);this.getHandler().Ja(this.Vk.getContainer(),"km",Lp(this.DIb,this))};q.DIb=function(a){this.dispatchEvent(new A8e(this,a.$))};q.Ik=function(){var a=this.Vk,b=a.Rd().Ae();a.Sa.mL&&a.$f&&(b=b.slice(0,a.$f));a.Ik(b)};q.focus=function(a){this.Vk.focus(a)}; var A8e=function(a,b){A.call(this,"km",a);this.$=b||0};t(A8e,A);
var a9e=function(a){F3.call(this,this.Pc());this.$=!!a};t(a9e,F3);la(a9e);a9e.prototype.Pc=function(){return"a-fg-e"};a9e.prototype.Pa=function(a){var b=a.Ea(),c=a.La();a=b.Pa("div",this.Pc());if(!this.$){var d=c.getName();!d&&c.Zta&&(d=r4(BUd(c.Zta),h2e));b=b.Pa("span",this.Pc()+"-O",d);yc(a,b)}return a};a9e.prototype.uI=function(){};
var SLf=function(){this.$=void 0};t(SLf,D3);la(SLf);SLf.prototype.Ab=function(){};var yVf=function(a,b){s3.call(this,a,b);this.mL=this.Sa=this.iA=null;this.Ab=rTf(this)};t(yVf,s3);
yVf.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-RY7rpe-O","You currently don't have any photos stored in Google Photos."),c=Jf("https://support.google.com/photos/?p=opbackup");Hf(c,"hl",My.$);c=a.Pa("div","a-RY7rpe-E",cd(a,"Enable "+('<a class="a-qUPACb-s" href="'+c.toString()+'" target="_blank">back up</a> on your phone or tablet and have them appear here automatically for easy access and sharing.')));this.Sa=a.Pa("div","a-RY7rpe-Z",b,c);rTf(this)&&(this.iA=new Ot("Select files from your computer",
a,2),this.iA.render(this.Sa));this.mL=a.Pa("div","a-RY7rpe",this.Sa);this.Kb(this.mL);Uf(function(){this.Qb()},0,this)};yVf.prototype.Qb=function(){var a=zy(this.mL).height,b=zy(this.Sa).height;Pd(this.Sa,"margin-top",(a-b)/2+"px")};yVf.prototype.Na=function(){yVf.ya.Na.call(this);this.iA&&this.getHandler().Ja(this.iA,"action",this.$b);this.getHandler().Ja(this.Ea().getWindow(),"resize",Lp(this.Qb,this))};
yVf.prototype.$b=function(){if(this.Ab){this.getContext().DU.$b(this.Ab);var a=this.getContext().Mh.Hd();a&&a.xna&&a.xna()}};var rTf=function(a){if(a.Ab)return a.Ab;a=a.getContext().rd().KBa;if(!a)return null;a instanceof Jw?a=wUd(a.getId(),a.lm(),a.getOptions()):(a=Qf(a),a=wUd(a[0],a[1],a[2]));return a};
var a4=function(a,b,c,d){j5.call(this,a,b,c,SLf.ia());this.Km=d||a9e.ia();this.Vk={};this.Qb=null;this.Sa=new yVf(this.getContext(),this.Ea());x(this,this.Sa)};t(a4,j5);q=a4.prototype;q.Pa=function(){a4.ya.Pa.call(this);Qn(this.ta(),"a-FxskPc")};q.Na=function(){a4.ya.Na.call(this);this.getHandler().Ja(this.Ea().getWindow(),"resize",Lp(this.FIb,this));this.getHandler().Ja(this.getContainer(),"km",Lp(this.EIb,this))};
q.EIb=function(a){var b=a.target,c=this.getContainer().Af(b);switch(a.$){case 0:for(a=0;a<Ge(this.getContainer());a++)c=kw(this.getContainer(),a),c.getId()!=b.getId()&&Aag(c.Vk.getContainer());break;case 38:case 37:1<=c?kw(this.getContainer(),c-1).focus(!0):b.focus();break;case 40:case 39:c<Ge(this.getContainer())-1?kw(this.getContainer(),c+1).focus():b.focus(!0)}};q.ED=function(a){a=new $8e(this.getContext(),a,this.Km,this.Vk[a.getId()],this.Ea());a.Bm(16,!1);a.Bm(32,!1);a.Bm(8,!1);return a};
q.Zba=function(a){if(this.getContainer().ta()){var b=ze(this.getContainer().ta()),c=xB()||14;b&&b.width&&(a.Vk.Qb=b.width-c-30)}a4.ya.Zba.call(this,a)};q.kt=function(){return!this.Op&&0<Ge(this.getContainer())?(kw(this.getContainer(),0).focus(),this.Op=!0):a4.ya.kt.call(this)};q.setActive=function(a){Uf(function(){a4.ya.setActive.call(this,a)},0,this)};
q.Hr=function(a){var b=[],c={},d,f=[];v(a,function(a){"application/vnd.google-apps.mediacollection"==a.DU?(b.push(a),d=a.getId(),c[d]||(c[d]=[])):d?c[d].push(a):f.push(a)},this);f.length&&this.Qb&&this.Qb.QK(f);v(b,function(a){var b=c[a.getId()],d=this.Gf().clone();BN(d,"type","mediacollection");BN(d,"parent",a.getId());l4f(d,"ipl");var f=this.Vk[a.getId()]=new $3(this.getContext(),d,this.Ea(),void 0,this.Xw),u=a.Tm();f.Sa.Qb=u;f.Naa=!1;d=this.Qb=this.getContext().od.Rd(d.or());if(a.Tm()==b.length)d.QK(b),
d.Sva(void 0);else if(!d.Ae()||gb(d.Ae()))d.QK(b),d.Sva(String(b.length)),d.TGa(this.Rd().Xh())},this);a4.ya.Hr.call(this,b)};q.zq=function(a){if(a)return a4.ya.zq.call(this,!0);var b=new df;b.addAll(a4.ya.zq.call(this,!1));var c=this.getContainer();v(Njc(this.getContainer()),function(a){a=c.Ge(a).Vk.zq(!1);b.addAll(a)});return b};q.FIb=function(){var a=this.getContainer();if(a.ta()){var b=ze(a.ta());b&&b.width&&v(Njc(a),function(c){c=a.Ge(c);var d=xB()||14;c.Vk.Qb=b.width-d-30;c.Ik()})}};q.Eqa=Fx;
q.vBb=function(){this.Rd().IHb()&&Uf(this.RD,0,this)};q.gR=function(){this.Sa.ta()||this.Sa.render();this.EFa(this.Sa.ta())};q.I$b=function(){this.EFa("An error occurred. Please try again.")};q.PX=function(a){return this.Gf().getOption("parent")?!1:a4.ya.PX.call(this,a)};
var age=function(){m5.call(this)};t(age,m5);la(age);age.prototype.Pa=function(a){var b=a.La().getName();this.nha(a,!1);return a.Ea().Pa("div","a-RymADf-O",b)};var hge=function(){e8e.call(this)};t(hge,e8e);hge.prototype.Pa=function(a){a=hge.ya.Pa.call(this,a);Qn(a,"a-bLeyk-nb");return a};hge.prototype.ryb=function(a){return new Uw(a.getUrl()||"",void 0,void 0,!1)};hge.prototype.zDa=ka;var PVf=function(a,b,c){Z3.call(this,a,b,c,new hge)};t(PVf,Z3);PVf.prototype.ED=function(a){var b;if("photo"==a.Ra())return b=new n5(this.getContext(),a,this.Db,this.Ea(),!1),this.getContext().$.Fca(a.getId(),!!a.getAttribute("visibility"),"cb"),b;b=new n5(this.getContext(),a,age.ia(),this.Ea(),!1);b.Bm(32,!1);b.Bm(16,!1);return b};PVf.prototype.lya=function(a){PVf.ya.lya.call(this,a,!0)};
var q5=function(){i5.call(this,"a-J-Da-e")};t(q5,i5);la(q5);
q5.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=this.Pc(),f;"application/vnd.google-apps.rollupphotoalbum"==b.rI()?f=null:(f=b.getAttribute("aa"),f=(f=DVc.get(f))?String(f.call(void 0,void 0,void 0,{Aa:"default"})):null);var h;f&&(h=c.Pa("span"),c.appendChild(h,cd(c," &#8210; ")));return c.Pa("div",this.qr(a).join(" "),c.Pa("div",{style:"float: right"},c.Pa("span",d+"-Ch",r4(BUd(b.Zta),aVd))),c.Pa("span",d+"-O",b.getName()),c.Pa("div",d+"-jA"),c.Pa("div",d+"-ha",f,h,i1d(b)))};
var i1d=function(a){var b=a.Tm();return"application/vnd.google-apps.rollupphotoalbum"==a.rI()?(new Z("{numAlbums, plural, =0 {No albums}=1 {1 album}other {# albums}}")).format({numAlbums:b}):(new Z("{numPhotos, plural, =0 {No photos}=1 {1 photo}other {# photos}}")).format({numPhotos:b})};
q5.prototype.Sa=function(a){var b=a.La(),c=a.Ea(),d=Zc(c,"div",this.Pc()+"-jA",a.ta())[0];c.hb(d);a=b.TVa||[];a.length||(b=b.Yh())&&b[0]&&a.push(b[0]);v(a,function(a){a=a.ll(48,["c"]).getUrl();a=c.Pa("img",{src:a,"class":this.Pc()+"-na"});d.appendChild(a);(new bF(a,450)).play()},this)};q5.prototype.getName=function(a){return a.La().getName()};
var r5=function(a,b,c,d){E3.call(this,a,b,c||q5.ia(),d);this.Bm(64,"application/vnd.google-apps.rollupphotoalbum"==b.rI());Bo(this,64)};t(r5,E3);r5.prototype.Um=function(a){"application/vnd.google-apps.rollupphotoalbum"==this.La().rI()?(this.hm(!0),this.hm(!1)):r5.ya.Um.call(this,a)};r5.prototype.Oz=function(){r5.ya.Oz.call(this);this.Sa.Sa(this)};r5.prototype.getName=function(){return this.Sa.getName(this)};
var s5=function(){q5.call(this)};t(s5,q5);la(s5);s5.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=this.Pc(),b=c.Pa("input",{className:d+"-kb-ga",maxlength:100,value:b.getName()});(new vx("New album name")).yb(b);qo(b,"label","New album name");return c.Pa("div",this.qr(a).join(" "),b)};s5.prototype.Sa=function(){};s5.prototype.jh=function(a){return c9e(this,a)};s5.prototype.getName=function(a){return c9e(this,a).value};var c9e=function(a,b){return nc("input",a.Pc()+"-kb-ga",b.ta())[0]};
var j1d=function(a,b,c){r5.call(this,a,b,s5.ia(),c)};t(j1d,r5);q=j1d.prototype;q.Oz=function(){};q.Na=function(){j1d.ya.Na.call(this);var a=this.Sa.jh(this);this.Sa.F$(a,!0);this.mL=new rw(a);x(this,this.mL);this.getHandler().Ja(this.mL,"input",this.Uid).Ja(a,"mousedown",function(a){a.stopPropagation()})};q.Uid=function(a){var b=this.La().getId(),c=this.getContext().$;c.Sf(b)!=!Ea(Ga(a.target.value))&&c.HP(b,"cl")}; q.hT=function(a){"INPUT"==a.target.tagName&&38!=a.keyCode&&40!=a.keyCode||j1d.ya.hT.call(this,a)};q.Dha=function(){};
var t5=function(a,b,c){y4.call(this,a,b,void 0,void 0,c);this.Sa=null;b.getOption("allowNewAlbum")&&(b={serviceId:"picasa"},b.id=String(va(b)),b.name="",b.attrs={aa:1},b.mimeType="application/vnd.google-apps.photoalbum",b=new Vw(b),b.zJ(!0),b.Sa=-1,this.Sa=b.getId(),a.od.Xp([b]))};t(t5,y4);t5.prototype.ED=function(a){return a.Kn()?new j1d(this.getContext(),a,this.Ea()):new h5(this.getContext(),a,this.Ea())};var d9e=function(a){return x5(a,a.Sa).getName()};
t5.prototype.iO=function(){this.Sa&&!this.Rd().vC(this.Sa)&&this.Rd().QK([this.getContext().od.La(this.Sa)]);t5.ya.iO.call(this)};t5.prototype.Pa=function(){t5.ya.Pa.call(this);Qn(this.ta(),"a-Koa")};t5.prototype.cD=function(a){a.target.La().Kn()||t5.ya.cD.call(this,a)};
var k1d=function(a,b,c,d,f){C4.call(this,a,b,c,d,f)};t(k1d,C4);k1d.prototype.Pa=function(){k1d.ya.Pa.call(this);if(this.getContext().rd().yQ("caa")){var a=this.Ea().Pa("a","a-yC-s","Learn more"),b=Jf("https://support.google.com/plus/answer/1407859");Hf(b,"hl",My.$);a.href=b.toString();a.target="_blank";a="Inserted albums are shared via link. Anyone with the link can access the album. "+(rba(a)+" on how to control who has access to photo albums.");WQd(this.Sa,a,void 0,"a-hWJ5Gd-Za-lm")}};
k1d.prototype.zab=function(){return new B3(this.getContext(),Lp(this.Vb,this),void 0,this.Ea())};
k1d.prototype.Vb=function(){for(var a=this.getContext().$.Sk(),b=[],c=null,d=0;d<a.length;d++){var f=this.getContext().od.La(a[d]);f.Kn()?c=f:b.push(f)}c?(this.Sa.qh(!1),a=d9e(this.Ig),Ea(Ga(a))?alert("Please enter an album name."):this.getContext().od.Vd(new K3("createAlbum","picasa",null,{title:a,visibility:m1d(c.getAttribute("aa"))}),Lp(function(a){e9e(this,rb(b,a.Ae()))},this),Lp(this.uh,this),!0)):b.length?e9e(this,b):this.getContext().Sa.b2b()};
var e9e=function(a,b){var c=b[0];a.getContext().od.Vd(new K3("autoCurate","picasa",[c.getAttribute("mediaKey")],{}),ka,ka);a.getContext().Sa.Sl(b)};k1d.prototype.uh=function(){alert("Sorry!  A new album could not be created.");this.Sa.qh(!0)};var m1d=function(a){switch(a){default:return"PRIVATE";case 1:case 2:case 3:case 6:return"PROTECTED";case 4:return"DOMAIN_PUBLIC";case 5:return"PUBLIC"}};
var p1d=function(a,b,c){sz.call(this,a,b||ttd.ia(),c)};t(p1d,sz);uo("d-F-kn-c",function(){return new p1d(null)});var v5=function(a){C.call(this,a);this.Ab=new hz;R_d(this.Ab,function(a,c){a&&a.Ld(c)});this.$b=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_left.png","Left align");this.Qb=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_center.png","Center align");this.Ag=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_right.png","Right align");this.$=new std;this.ib(this.$);this.Sa="center"};t(v5,C);
var q1d=function(a,b,c){b=new p1d(p4(b),void 0,a.Ea());Bo(b,16);EI(a.Ab,b);b.Pa();c=new mF(b.ta(),c,a.Ea(),1);x(a,c);return b};v5.prototype.Pa=function(){this.$.Pa();this.$.ib(this.$b,!0);this.$.ib(this.Qb,!0);this.$.ib(this.Ag,!0);this.Kb(this.Ea().Pa("div","a-Kh-ea",this.Ea().Pa("div","d-k-l",this.$.ta())))};
v5.prototype.Na=function(){v5.ya.Na.call(this);this.getHandler().Ja(this.$b,"action",Lp(this.mL,this,"left")).Ja(this.Qb,"action",Lp(this.mL,this,"center")).Ja(this.Ag,"action",Lp(this.mL,this,"right"));this.Ab.Ej(1)};v5.prototype.mL=function(a){this.Ab.Ej("left"==a?0:"center"==a?1:2);this.Sa!=a&&(this.dispatchEvent("vF"),this.Sa=a)};
var r1d=function(a,b,c){t3.call(this,a,c);this.Naa=My.Qb;this.Bc=b;this.p_=(b=b.getOption("ids"))&&b.split(",")[0];this.Vk=null;this.uh=new B3(a,Lp(this.Mid,this),Lp(this.yja,this),c);this.uh.Pt.setContent("Save");this.ib(this.uh);this.Go=null;this.Sa=Zva(p4("//ssl.gstatic.com/docs/picker/images/font_icon.png"),c);this.Sa.xg(1);this.ib(this.Sa);this.y2=new hz;R_d(this.y2,function(a,b){a&&a.Ld(b)});this.$b=s1d(this);this.iaa=new kR;this.ib(this.iaa);this.yQ=new kR;this.ib(this.yQ);this.Xb=new kR;this.ib(this.Xb);
this.kN=this.jv=this.Ab=this.Vb=this.Km=this.Sx=this.Qb=this.Ko=this.Tx=this.Ag=this.Op=this.nA=this.mL=this.lp=null;this.lN=""};t(r1d,t3);
var s1d=function(a){var b=new ow(a.Ea());w5(a,b,"Amasis Black","AMASIS_BLACK");w5(a,b,"Baskerville","BASKERVILLE");w5(a,b,"Comic Sans","COMIC");w5(a,b,"Consolas","CONSOLAS");w5(a,b,"Courier Bold","COURIER_BOLD");w5(a,b,"Felt Tip Roman Bold","FELT_TIP_ROMAN_BOLD");w5(a,b,"Futura Bold","FUTURA_BOLD");w5(a,b,"Gill Sans Bold","GILL_SANS_BOLD");w5(a,b,"Impact","IMPACT",!0);return b},w5=function(a,b,c,d,f){c=new nR(c,d);EI(a.y2,c);f&&a.y2.jn(c);b.ib(c,!0)};q=r1d.prototype;
q.Pa=function(){var a=this.Ea(),b={"class":"b-hb a-fh-hb",maxLength:100};this.mL=a.Pa("input",b);this.Ag=a.Pa("input",b);this.Qb=a.Pa("input",b);this.Op=new v5(a);this.Op.Pa();this.ib(this.Op);this.Ko=new v5(a);this.Ko.Pa();this.ib(this.Ko);this.Km=new v5(a);this.Km.Pa();this.ib(this.Km);this.Sa.Pa();new mF(this.Sa.ta(),"Font",this.Ea(),1);b=a.Pa("td",null,this.jv=a.Pa("table",null,a.Pa("tr",null,a.Pa("td",{valign:"top"},this.mL,this.Op.ta())),a.Pa("tr",null,a.Pa("td",{valign:"middle"},this.Ag,this.Ko.ta())),
a.Pa("tr",null,a.Pa("td",{valign:"bottom"},this.Qb,this.Km.ta()))));a=this.lp=a.Pa("div","a-B a-fh",this.Vb=a.Pa("table","a-fh-wf",a.Pa("tbody",null,a.Pa("tr",null,b,a.Pa("td","a-fh-qa-Z",this.Db=a.Pa("img","a-fh-E"),this.Ab=a.Pa("img","a-fh-cb")),this.kN=a.Pa("td","a-fh-gaa",this.Sa.ta())))));On(a,!1);qe(a,0);this.mL.placeholder="Top text";this.Ag.placeholder="Middle text";this.Qb.placeholder="Bottom text";On(this.Db,!1);a=this.uh;a.Pa();a.cb().appendChild(this.lp);this.Kb(a.ta())};
q.Yba=function(){Vf(this.Go);this.Go=Uf(function(){var a=0<Ia(Ia(this.mL.value)+" "+Ia(this.Ag.value)+" "+Ia(this.Qb.value)).length;On(this.Db,a);this.uh.qh(a);if(a){var a=this.Db,b;b=iXb(t1d(this));b=Hf(Hf(Df(new Af(this.Naa+"caption"),b),"width",this.Vk.wc()),"height",this.Vk.Ic());a.src=b.toString();le(this.Db,zy(this.Ab))}},100,this)};q.kt=function(){try{return this.mL.focus(),!0}catch(a){}return!1};
q.Na=function(){r1d.ya.Na.call(this);this.getContext().od.Vd(new u3("picasa",[this.p_],{}),Lp(this.Lid,this),ka);this.$b.render(this.lp);pw(this.$b,this.Sa.ta(),3,2);new mR(this.$b);this.nA=new rw(this.mL);this.Tx=new rw(this.Ag);this.Sx=new rw(this.Qb);x(this,this.nA);x(this,this.Tx);x(this,this.Sx);this.getHandler().Ja(this.nA,"input",this.Yba).Ja(this.Tx,"input",this.Yba).Ja(this.Sx,"input",this.Yba).Ja(this.Op,"vF",this.Yba).Ja(this.Ko,"vF",this.Yba).Ja(this.Km,"vF",this.Yba).Ja(this.$b,"show",
Lp(this.YBb,this,!0)).Ja(this.$b,"hide",Lp(this.YBb,this,!1)).Ja(this.Sa,"action",this.VAc).Ja(this.$b,"action",this.kXc);this.getHandler().Ja(this.Ea().getWindow(),"resize",this.YTb);this.iaa.yb(this.mL);this.yQ.yb(this.Ag);this.Xb.yb(this.Qb)};q.kXc=function(a){a=a.target;this.y2.jn(a);this.lN=a.kc();this.Yba()};q.VAc=function(){this.$b.rz(this.Sa.ta(),3,2)};q.YBb=function(a){this.Sa.Ld(a)};
q.Lid=function(a){(a=a.Ae())&&a.length&&(this.Vk=a[0].Yh()[0],this.Vk=this.Vk.ll(2048),this.Ea(),On(this.Ab,!1),this.Ab.src=this.Vk.getUrl(),this.Ab.onload=Lp(this.oZc,this),this.uh.qh(!1))};q.oZc=function(){On(this.Ab,!0);(new dF(this.lp,450)).play();this.YTb();this.kt()};
q.YTb=function(){var a;a=this.lp;var b=Ae(this.Db),c=zy(this.jv),d=zy(this.kN);a=new Kb(a.offsetWidth-c.width-d.width-2*b.left,a.offsetHeight);b=new Kb(Math.min(2048,a.width),Math.min(2048,a.height));a=zy(this.Ab);if(a.width>b.width||a.height>b.height)b=a.Cr(b),isNaN(b.width)||isNaN(b.height)||le(this.Ab,Math.round(b.width),Math.round(b.height));b=zy(this.Vb);Pd(this.Vb,"left","50%");Pd(this.Vb,"marginLeft",Math.round(-b.width/2)+"px");Pd(this.Vb,"top","50%");Pd(this.Vb,"marginTop",Math.round(-zy(this.Vb).height/
2)+"px");ne(this.jv,a.height)};q.Mid=function(){this.uh.qh(!1);var a=this.p_;this.getContext().od.Vd(new o1d(a,this.Vk.getUrl(),t1d(this)),Lp(this.swa,this),Lp(this.yp,this))};var t1d=function(a){var b=new Ze;b.set("top",a.mL.value);b.set("center",a.Ag.value);b.set("bottom",a.Qb.value);b.set("topalign",a.Op.Sa);b.set("centeralign",a.Ko.Sa);b.set("bottomalign",a.Km.Sa);b.set("font",a.lN);return b};r1d.prototype.swa=function(a){this.getContext().Sa.Sl(a.Ae())}; r1d.prototype.yp=function(){alert("Sorry!  We could not save your caption!  Please try again later.");this.uh.qh(!0)};r1d.prototype.yja=function(){this.Bc.Sa?this.getContext().Mh.On(this.Bc.Sa):this.getContext().Sa.oD()};
var h9e=function(a){return'<div class="a-hA-Z"><img src="'+r(a.Da)+'" alt="'+r(a.kq)+'" align="'+r(a.align)+'" class="a-hA-J" /><div class="a-hA-E">'+r(a.text)+"</div></div>"};var v1d=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.Ab=this.mL=null;this.Sa=new B3(a,Lp(this.$b,this),void 0,c);this.ib(this.Sa);if("np"!=b.Ra()){if(!b.getOption("id"))throw Error("Kh");a.od.Vd(new u3("contacts",[b.getOption("id")],{}),Lp(this.Qb,this),ka)}};t(v1d,t3);
v1d.prototype.Qb=function(a){if((a=a.Ae())&&a.length){var b=this.Ab=a[0];a=j9e();a.kq="Their photo";var c=x1d(b);c?(b=b.getName()+" has selected this photo.  You can accept this photo or upload your own photo.",a.Da=c.getUrl(),a.text=b):(c=b.getName()+" does not have a profile photo.  By selecting this, you will see no photo for this contact.",a.Da="//ssl.gstatic.com/s2/contacts/images/NoPicture.gif",a.text=c);this.getContext().ef().uc(this.mL,h9e,a);this.Sa.qh(!0)}};
v1d.prototype.Pa=function(){this.mL=this.Ea().Pa("div","a-B a-hA");if("np"==this.Bc.Ra()){var a=j9e();a.kq="No photo";a.Da="//ssl.gstatic.com/s2/contacts/images/NoPicture.gif";a.text="Show this default photo.";this.getContext().ef().uc(this.mL,h9e,a);this.Sa.qh(!0)}this.Sa.Pa();this.Sa.cb().appendChild(this.mL);this.Kb(this.Sa.ta())};v1d.prototype.$b=function(){var a=this.getContext().Sa;"np"!=this.Bc.Ra()&&this.Ab&&x1d(this.Ab)?a.Sl([this.Ab]):a.Sl([])}; var j9e=function(){var a={};a.align=My.Bo()?"right":"left";return a},x1d=function(a){a=a.Yh();for(var b=0;a&&b<a.length;b++){var c=a[b];if("evergreen"==c.Ra())return c}return null};
var z1d=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.mL=new B3(a,Lp(this.yIb,this),Lp(this.Jjd,this),c);this.ib(this.mL);this.Qb=St("Adjust the crop",c);this.Sa=new nD(void 0,c)};t(z1d,t3);
z1d.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-B"),c=a.Pa("div","a-tb-tc-qa");b.appendChild(c);c.appendChild(a.Pa("h3","a-tb-tc-qa-Nb","Your channel art is going to look a bit different across devices."));c.appendChild(a.Pa("p","a-tb-tc-qa-nc","Here are some examples."));var d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.$b=D1d(this,d,"Desktop","a-tb-tc-qa-Zoa-m","a-tb-tc-qa-caa-cb");d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.uh=D1d(this,d,"TV","a-tb-tc-qa-MO-m","a-tb-tc-qa-MO-cb");
d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.Ag=D1d(this,d,"Mobile","a-tb-tc-qa-Uh-m","a-tb-tc-qa-Uh-cb");this.mL.qh(!0);this.mL.Pa();this.mL.cb().appendChild(b);this.Kb(this.mL.ta());a=a.Pa("div","a-tb-tc-qa-c-Z");c.appendChild(a);(b=A1d(this).Yh()[0])&&b.wc()&&b.Ic()?(b=new Kb(b.wc(),b.Ic()),b=(d=this.getContext().rd().DU)?Mb(b,new Kb(d.width+5,d.height+5)):!1):b=!1;b||this.Qb.render(a);k9e(this,c)};
z1d.prototype.Na=function(){z1d.ya.Na.call(this);this.getHandler().Ja(this.Qb,"action",this.Axc).Ja(this.Sa,"change",this.dhb)};z1d.prototype.setActive=function(a,b){z1d.ya.setActive.call(this,a,b);a&&(A1d(this).setAttribute("c",m9e(this)),p9e(this,A1d(this)))};var A1d=function(a){var b=a.Bc.getOption("id");return b&&a.getContext().od.La(b)};q=z1d.prototype;q.yIb=function(){this.getContext().Sa.Sl([A1d(this)])};
q.Axc=function(){var a=A1d(this);if(a){var b=new w3("crop");BN(b,"id",a.Qe());BN(b,"service",a.$);var c=a.getAttribute("c");c&&(c=[c.top,c.right,c.bottom,c.left].join(),BN(b,"coords",c));b.Sa=this.Bc;(a=a.vt())&&BN(b,"parent",a.split(".").pop());this.getContext().Mh.On(b)}};
q.dhb=function(){var a=A1d(this);a&&(On(this.Ab,!0),this.getContext().od.Vd(new K3("autoenhance","picasa",[a.Qe()],{apply:this.Sa.Jc()?"true":"false"}),Lp(this.idb,this,m9e(this)),Lp(function(){var a=!!A1d(this).getAttribute("ae");this.Sa.Ld(a);On(this.Ab,!1)},this),!0))};q.Jjd=function(){this.getContext().Sa.oD()};q.idb=function(a,b){var c=b.Ae();c&&(c[0].setAttribute("c",a),p9e(this,c[0]));On(this.Ab,!1)};
var p9e=function(a,b){a.$b.src=B1d(b,zy(a.$b).width,new Md(.35331,1,.64711,0));a.uh.src=B1d(b,zy(a.uh).width,new Md(0,1,1,0));a.Ag.src=B1d(b,zy(a.Ag).width,new Md(.35331,.80189,.64711,.19811))},B1d=function(a,b,c){var d=a.getAttribute("c"),d=new Md(d.top,d.right,d.bottom,d.left);c=W_d(new Md(d.top+c.top*(d.bottom-d.top),d.left+c.right*(d.right-d.left),d.top+c.bottom*(d.bottom-d.top),d.left+c.left*(d.right-d.left)));return a.Yh()[0].Qs(b,void 0,"-fcrop64="+c+"-w")},D1d=function(a,b,c,d,f){a=a.Ea();
b.appendChild(a.Pa("h4","a-tb-tc-qa-m-Nb",c));c=a.Pa("div","a-tb-tc-qa-m "+d);b.appendChild(c);b=a.Pa("img",f);c.appendChild(b);return b},m9e=function(a){var b=A1d(a).getAttribute("c");if(b)return{top:b.top,bottom:b.bottom,right:b.right,left:b.left};a=A1d(a).Yh()[0];a=a.Ic()/a.wc();.5625>a?(a*=1/.5625,a=new Md(0,.5+.5*a,1,.5-.5*a)):(a=1/a*.5625,a=new Md(.5-.5*a,1,.5+.5*a,0));return{top:a.top,bottom:a.bottom,right:a.right,left:a.left}},k9e=function(a,b){a.getContext();var c;a.getContext().Ab.addCallback(function(a){c=
a.getUserId()});var d=!1,f=A1d(a),h=f.Qja;f.Ii?d=!0:h&&(d=cb(h,function(a){return c==a.getId()}));d&&(h=a.Ea(),d=h.Pa("span","a-tb-tc-qa-kn-ka-Z",h.Pa("span","a-n-m-UY-X"),h.Pa("span","a-tb-tc-qa-kn-ka","Auto Enhance")),GN(a.Sa,d),h=h.Pa("div","a-tb-tc-qa-Vja-gka"),a.Sa.render(h),h.appendChild(d),a.mL.Sa.appendChild(h),f=!!f.getAttribute("ae"),a.Sa.Ld(f),a.Ab=a.Ea().Pa("div","a-tb-tc-qa-iu"),b.appendChild(a.Ab),On(a.Ab,!1))};
var E1d=function(){kd.call(this)};t(E1d,x3);
E1d.prototype.uj=function(a,b,c){var d=a.getOption("type");switch(a.$){case "events":return new C4(b,a,new c1d(b,a,c),[],c);case "et":var f=new h1d(b,a,c);return new C4(b,a,f,[],c);case "image-search":if(a.getQuery())return new f9e(b,a,new Z3(b,a,c),["at"],c);var h="Type your search in the box above to find images using Google Search.";switch(d){case "getty":h="Type your search in the box above to find images from the stock image archive.";break;case "life":h="Type your search in the box above to find photographs from the LIFE photo archive."}(d=
a.getOption("comboTypes"))&&qa(d)&&(d=d.split(","));f=d?new W0d(b,a,h,d,c):new A4(b,a,h,c);return new f9e(b,a,f,[],c);case "photo-caption":return new r1d(b,a,c);case "photos":var k=a.getOption("mode"),m=a.getOption("parent");if(a.getOption("upload")||"edit"==k&&m)return null;h=[];if("featured"==d||"gmail_themes"==d)f=new Z3(b,a,c,new f8e(d));else if("getty"==d)a.getQuery()?f=new Z3(b,a,c):f=new A4(b,a,"Type your search in the box above to search the stock photography archive.",c);else if("camerasync"==
d)f=new p5(b,a,c);else if("highlights"==d)m?(d=new a9e(!0),f=new a4(b,a,c,d)):f=new a4(b,a,c);else if("localalbum"!=d||a.getOption("parent"))if("moment"==d&&a.getOption("parent"))f=new PVf(b,a,c);else if(d)f=new Z3(b,a,c);else if(m||a.getOption("query"))if("blogger"==k)f=new Z3(b,a,c),h=["bi"];else if("rollupAlbum"==k)f=new k5(b,a,c);else{if(f=new Z3(b,a,c),!d&&m&&a.getOption("selectAlbum"))return new y1d(b,a,f,h,c)}else f=new k5(b,a,c);else f=new k5(b,a,c);return new f9e(b,a,f,h,c);case "photo-albums":if(a.getOption("enableAlbumNavigation")){if(m=
a.getOption("parent"))return h=a.clone(),BN(h,"type","highlights"),d=new a9e(!0),f=new a4(b,h,c,d),new f9e(b,a,f,[],c);f=new k5(b,a,c)}else f=new t5(b,a,c);return new k1d(b,a,f,[],c);case "profile":return new v1d(b,a,c);case "quota":return new T_d(b,c);case "recently-picked":return new f9e(b,a,new Z3(b,a,c),[],c);case "youtube-banner-preview":return new z1d(b,a,c)}return FQd(a.$)?new qaf(b,a,[],c):null};
E1d.prototype.K9=function(a,b,c){switch(a){case "atec":return new e5(b,c);case "blogger":return new Z_d(b,c);case "caa":return new SW(b,c);case "cpaa":return new EGg(b,c);case "contactPhoto":return new $_d(b,c);case "copyphoto":return new a0d(b,c);case "ctpa":return new a7e(b,c);case "cropphoto":return new c0d(b,c);case "geopix":return new e0d(b,c);case "ipfd":return new j0d(b,c);case "sptm":return new ipg(b,c);case "mtp":return new b7e(b,c);case "album":return new f5(b,c);case "photocuration":return new l0d(b, c);case "photosharing":return new g5(b,c);case "polls":return new mMe(b,c);case "profileBanner":return new o0d(b,c);case "profile":return new q0d(b,c);case "sqprofile":return new u0d(b,c)}return null};vg(xg(E.ia(),"opp"),E1d);

G("opp");I();
}catch(e){_DumpException(e)}
try{
var o2d=function(a,b){a.e6=b};H("opu");var F2e=function(a){Qw.call(this,a);this.$&&(this.Qb=a.response.values||{})};t(F2e,Qw);F2e.prototype.Rc=function(){return this.Qb};$S(18,function(a){return new F2e(a)});var G2e=function(a){Mw.call(this);this.Ab=a};t(G2e,Mw);G2e.prototype.PD=pg(new Af("getphotoprefs"));G2e.prototype.Sq=function(){return 18};G2e.prototype.xE=function(){for(var a=new Ze,b=0;b<this.Ab.length;b++)Pw(a,"key"+b,this.Ab[b]);return a};var H2e=function(a){Mw.call(this);this.Ab=a};t(H2e,Mw);H2e.prototype.PD=pg(new Af("setphotoprefs"));H2e.prototype.Sq=function(){return 19};H2e.prototype.xE=function(){var a=new Ze,b=0;Pb(this.Ab,function(c,d){Pw(a,"key"+b,d);Pw(a,"value"+b,c);b++},this);return a};
var y5=function(a,b,c,d){O3.call(this,a,b,c,d);this.Bm(16,!1);this.ana=this.qSa=null};t(y5,O3);q=y5.prototype;q.Na=function(){y5.ya.Na.call(this);this.getHandler().Ja(this.qSa,"action",function(){this.dispatchEvent(new N3(this.La(),"c"))}).Ja(this.ana,"action",function(){this.dispatchEvent(new N3(this.La(),"t"))})};
q.SEa=function(a){this.ana.setVisible(a);var b=this.Ea(),c=b.fb("a-od-v-e-E",this.ta()),d=b.fb("a-od-v-e-wa-Z",c);d&&c.removeChild(d);a&&(On(F9f(this).ta(),!1),a=b.Pa("div","a-od-v-e-wa-Z",b.Pa("div","a-n-v-wa"),b.Pa("span","a-od-v-e-wa-nc",M3(this.La()).$)),c.appendChild(a))};q.update=function(){y5.ya.update.call(this);var a=M3(this.La());if(a){var b=F9f(this).ta();0<a.dNa&&!ve(b)&&On(b,!0);"success"==a.getState()&&(Pn(this.ta(),"a-od-v-e-mv",!0),On(b,!1))}};q.Hw=ka;q.Dha=ka;q.S$=function(){return!0};
var N1d=function(){F3.call(this,"a-od-v-e")};t(N1d,F3);la(N1d);
N1d.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=b.Ii,f=F9f(a);f.$(0);f.Pa();On(f.ta(),!1);var d=c.Pa("td","a-od-v-e-xd a-od-v-e-E",c.Pa("span","a-od-v-e-kb",cd(c,uma(bTd(this),b.getName()))),d.tf()?c.Pa("span","a-od-v-e-im",UEc(d.tf())):void 0),h=c.Pa("span","a-od-v-e-xe-bd"),k=c.Pa("div","a-n-J-v-xe"),k=Ejc(k,c);k.render(h);k.Sn("Cancel");var m="Cancel upload of "+b.getName();ey(k.ta(),m);a.qSa=k;k=c.Pa("span","a-od-v-e-uf-E");m=Ejc("Retry",c);m.render(k);m.setVisible(!1);var p="Retry upload of "+
b.getName();ey(m.ta(),p);a.ana=m;a=b.getIcon()?"background-image:url("+b.getIcon()+")":"";return c.Pa("tr","a-od-v-e-fd",c.Pa("td","a-od-v-e-xd a-od-v-e-m-xd",c.Pa("span",{"class":"a-od-v-e-m",style:a})),d,c.Pa("td","a-od-v-e-xd a-od-v-e-la",f.ta(),k),c.Pa("td","a-od-v-e-xd a-od-v-e-xe",h))};N1d.prototype.uI=function(){return"listitem"};
var z5=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Ama=new Ot("Add more files",this.Ea())};t(z5,y4);q=z5.prototype;q.Pa=function(){z5.ya.Pa.call(this);this.ib(this.Ama,!0);Qn(this.Ama.ta(),"a-oc-w7-c")};q.Na=function(){z5.ya.Na.call(this);po(this.getContainer().ta(),"list")};q.ED=function(a){a=new y5(this.getContext(),a,N1d.ia(),this.Ea());this.getHandler().Ja(a,"QE",function(a){this.dispatchEvent(a)});return a};q.SEa=function(a,b){var c=x5(this,a.getId());c&&c.SEa(b)};
q.reset=function(){if(this.iTa){var a=this.iTa,b=this.getContext().od;v(this.zq().Rc(),function(c){c=b.La(c);a.Tu(a.getFile(c.Ii.getId()))},this)}};q.gR=ka;q.pja=function(){var a=this.getContainer(),b=Ge(a);if(b){var c=a.ta().offsetHeight;a.Sa=b-1;this.Vb&&(this.Vb.scrollTop=this.Vb.scrollTop+c)}this.Op=a.kt()};
var i$e=function(a){var b="",c="Google Drive is the one place to create, share and keep all of your stuff. You can now insert files  "+('<a href="'+r(a.kwd)+'" id="'+r(a.v2b)+'" class="a-oc-gc-zb-F1-jE-s" target="_blank">up to 10 GB</a>  in size stored in Drive right into emails.'),b=b+('<div class="d-k-l a-oc-gc-zb-E"><div class="a-oc-gc-zb-O">Goodbye attachments.  Hello Google Drive.</div><div class="a-oc-gc-zb-ksa">'+c+' <a href="'+r(a.SJa)+'" class="a-oc-gc-zb-yC" id="'+r(a.pIb)+'" target="_blank">Learn more about Google Drive</a></div><div class="a-oc-gc-zb-Yd">'+ Mt({id:a.otb,content:"Dismiss"})+"</div></div>");return'<div class="d-k-l a-oc-gc-zb-W"><div class="a-n-gc-A7"></div></div>'+b+'<div class="a-oc-gc-zb-ab" id="'+r(a.IDa)+'"><span class="d-k-l a-n-ab-z-ib-zf" title="Close"></span></div>'};
var O1d=function(a,b){C.call(this,b);this.$=a;this.Sa={}};t(O1d,C);O1d.prototype.Pa=function(){var a=this.Ea().Pa("div","a-oc-gc-zb");this.$.ef().uc(a,i$e,iLg(this));this.Kb(a)};
var iLg=function(a){var b=a.Sa;b.pIb=lh(a,"l");b.otb=lh(a,"d");b.v2b=lh(a,"u");b.IDa=lh(a,"c");b.SJa=ou("https://www.google.com/intl/%s/drive/start/index.html?utm_medium=et&utm_source=gmail&utm_campaign=insert&authuser=%s",My.$.replace("_","-"),a.$.rd().Km);b.kwd=ou("https://support.google.com/drive/?p=picker_limit&hl=%s",My.$);return b};
O1d.prototype.Na=function(){var a=this.Ea(),b=a.ta(this.Sa.otb),c=a.ta(this.Sa.pIb),d=a.ta(this.Sa.v2b),a=a.ta(this.Sa.IDa);this.getHandler().Ja(c,["mouseover","mouseout"],this.mL).Ja(d,["mouseover","mouseout"],this.mL).Ja(b,"click",this.Ab).Ja(a,"click",this.Ab)};O1d.prototype.Ab=function(){this.dispatchEvent("Pi")};O1d.prototype.mL=function(a){Pn(a.target,"a-u","mouseover"==a.type)};
var u$e=function(a){a=a||{};return'<span class="d-k-l a-oc-m"></span><span class="d-k-l a-oc-W9"></span><span class="a-oc-c-E">'+r(a.Dkc)+"</span>"};var Plg=function(a){return Y((a.icon?'<img src="'+R(S(a.icon))+'" class="a-pE-pk-m"/>&nbsp;':"")+'<span class="a-wl-Zn-kb">'+r(a.name)+" &nbsp;</span>")};var P1d=function(a){kd.call(this);this.Bb=a;this.$=new TC(a.getData,100,a)};t(P1d,kd);q=P1d.prototype;q.uhb=null;q.Zpa=null;q.Fla=null;q.Aya=function(a){this.uhb=a};q.dqd=function(){};var Q1d=function(a,b){var c=a.uhb;if(b&&c){var d=Zd(b),f=c.height;return b.scrollHeight-(c.top-d.y)-f<.5*f}return!1};P1d.prototype.qb=function(){Vf(this.Zpa);this.Zpa=null;Vf(this.Fla);this.Fla=null;this.$.Ma();delete this.$;this.uhb=null};var R1d=function(){kd.call(this)};t(R1d,kd);
var A5=function(a,b,c){e4.call(this,a,S1d,c);this.Vb=b};t(A5,h4);var S1d=Xb(ohg);Zb(S1d,{chc:"//ssl.gstatic.com/docs/picker/images/cleardot-v1.gif"});q=A5.prototype;q.sVa=!0;q.Pa=function(){A5.ya.Pa.call(this);this.setVisible(this.sVa)};q.jBb=function(){var a={};a["padding-"+(ph(this)?"right":"left")]=(this.f4()-1)*this.rd().FIa+"px";return Bdg("div",{"class":this.u4(),style:a},[this.O0a(),Mdg(this),Ndg(this)])};q.qL=function(){return this.Vb};
q.bX=function(a){A5.ya.bX.call(this,a);this.dispatchEvent(a?"Qi":"Ri");var b=this.jx();b&&b.dispatchEvent(a?"Qi":"Ri")};q.setVisible=function(a){this.sVa=a;var b=this.ta();b&&(b.style.display=a?"":"none")};q.select=function(){this.Vb&&A5.ya.select.call(this)};q.Fga=function(){if((!this.WA()||!Fe(this))&&B5(this))return this;for(var a=$lg(this),b=a.length-1;0<=b;b--)if(B5(a[b]))return a[b].Fga();return B5(this)?this:null};
q.tGa=function(){if(Fe(this)&&this.WA())for(var a=$lg(this),b=0;b<a.length;b++)if(B5(a[b]))return a[b];for(a=this;a!=this.jx();){b=a.yH;if(null!=b&&B5(b))return b;a=a.getParent()}return null};q.xGa=function(){var a=this.Ab;if(null!=a&&B5(a))return a.Fga();var a=this.getParent(),b=this.jx();return!B5(a)||!b.S1&&a==b?null:a};var B5=function(a){return a.Vb&&ve(a.ta())};
var C5=function(a,b,c,d,f){A5.call(this,c,d,f);this.$=a;this.Bc=b;this.$b=new df;this.Ag=new P1d(new R1d);this.Vk=this.uh=!1;this.Ko=!0};t(C5,A5);C5.prototype.bX=function(a){C5.ya.bX.call(this,a);a&&!this.uh&&V1d(this)};
C5.prototype.Db=function(a){if(!this.uh){for(;0<Ge(this);)this.removeChild(kw(this,0));this.uh=!0}this.Ko=a.yW();a=a.Ae();for(var b=0;b<a.length;b++){var c=a[b],d=c.Qe();if(!this.$b.contains(d)){var f=c,c=this.Ea(),h=this.Bc.clone();BN(h,"parent",f.getId());BN(h,"type","folders");f=Plg({name:f.getName(),icon:f.getIcon()}).Yqa();h=new C5(this.$,h,f,!0,c);this.add(h);h.add(new A5(U1d(),!1,c));this.$b.add(d)}}0==a.length&&this.add(new A5(Bdg("span",{"class":"a-wl-Zn-nc"},"No folders."),!1,this.Ea()));
this.Lga();this.Vk=!1};C5.prototype.y2=function(){for(;0<Ge(this);)this.removeChild(kw(this,0));this.add(new A5(Bdg("span",{"class":"a-wl-Zn-wa"},"Error"),!1,this.Ea()))};var U1d=function(){return Bdg("span",{"class":"a-wl-Zn-nc"},"Loading items...")};C5.prototype.Lga=function(){Ve($lg(this),function(a){a.qL()&&a.WA()&&a.Lga()});this.Ko&&Q1d(this.Ag,this.ta())&&V1d(this)};var V1d=function(a){if(!a.Vk){a.Vk=!0;var b=a.Bc.or();b.setStart(a.uh?Ge(a):0);a.$.od.Vd(b,Lp(a.Db,a),Lp(a.y2,a),!0)}}; C5.prototype.Aya=function(a){this.Ag.Aya(a);Ve($lg(this),function(b){b.qL()&&b.Aya(a)})};C5.prototype.qb=function(){C5.ya.qb.call(this);delete this.Bc;this.$b.clear();delete this.$b;this.Ag.Ma();delete this.Ag};
var D5=function(a,b){gD.call(this,b);this.$=a;var c=new i4(M7a,void 0,b);NSd(c);this.ib(c);this.Sa=c;var d=new A5(Plg({name:"No folder"}).Yqa(),!0,b);this.Op=d;this.Sa.add(d);d.select();d=new w3("folders");BN(d,"ownedByMe",!0);BN(d,"mimeTypes","application/vnd.google-apps.folder");this.Qb=d=new C5(a,d,Plg({name:"My Folders"}).Yqa(),!1,b);c.add(d);d.add(new A5(U1d(),!1,b));d=new w3("folders");BN(d,"ownedByMe",!1);BN(d,"mimeTypes","application/vnd.google-apps.folder");this.Ko=d=new C5(a,d,Plg({name:"Folders shared with me"}).Yqa(),
!1,b);c.add(d);d.add(new A5(U1d(),!1,b));this.Ab=new Hd(this);this.Vk=new P1d(new W1d(this));this.Km=St("Upload to this folder",this.Ea());this.Ag=new Ot("Cancel",this.Ea())};t(D5,gD);q=D5.prototype;q.Pa=function(){D5.ya.Pa.call(this);this.setVisible(!1);Qn(this.ta(),"a-pE-Woa-ni");var a=this.Sa;a.Pa();var b=this.Ea().Pa("span","a-pE-Voa-ea");this.Km.render(b);this.Ag.render(b);this.setContent(this.Ea().Pa("div",void 0,a.ta(),b))};
q.Na=function(){D5.ya.Na.call(this);this.Ab.Ja(this.Km.ta(),"click",this.yid).Ja(this.Ag.ta(),"click",Lp(function(){this.dispatchEvent("ek");this.setVisible(!1)},this));this.Ab.Ja(this.Sa.ta(),"scroll",this.oGc)};q.yid=function(a){var b=this.Sa.$e();b&&!this.Sa.Sf()?(this.Op.Sf()?this.dispatchEvent(new X1d(null)):this.dispatchEvent(new X1d(b.Bc.getOption("parent"))),this.setVisible(!1)):a.preventDefault()};
q.setVisible=function(a){D5.ya.setVisible.call(this,a);if(a&&!this.lp){this.lp=!0;this.Qb.bX(!0);var b=this.Sa.ta();b?(a=Zd(b),b=zy(b),a=new Nd(a.x,a.y,b.width,b.height)):a=null;this.Qb.Aya(a);this.Ko.Aya(a)}};q.oGc=function(a,b){a:{var c=this.Vk;b||(c.Fla&&(Vf(c.Fla),c.Fla=null),c.Fla=Uf(Lp(c.dqd,c,!1),50));if(c.Bb.Ad()){if(c.Zpa)if(b)c.Zpa=null;else break a;c.$.Il()}}};q.Lga=function(){this.Qb.Lga();this.Ko.Lga()};
q.qb=function(){D5.ya.qb.call(this);delete this.Sa;delete this.Qb;delete this.Ko;delete this.Op;this.Ab.Ma();delete this.Ab;this.Vk.Ma();delete this.Vk;delete this.Km;delete this.Ag};var X1d=function(a){A.call(this,"Hl");this.lp=a};t(X1d,A);var W1d=function(a){kd.call(this);this.$=a};t(W1d,R1d);W1d.prototype.getData=function(){this.$.Lga()};W1d.prototype.Ad=function(){return!0};W1d.prototype.qb=function(){delete this.$};
var Y1d=function(a,b,c){C.call(this,c);this.$=a;this.Qb=new D5(a,c);this.Sa=new Fp("No folder",null,Hp.ia(),this.Ea());Co(this.Sa,64,!0);this.Ab=""};t(Y1d,C);Y1d.prototype.Pa=function(){var a=this.Ea();this.Kb(a.Pa("div","a-lN",a=a.Pa("div","a-lN-r")));this.Sa.render(a);var b=this.Qb;this.ib(b);b.Fg(this.Sa.ta());b.setPosition(1,0,50);b.IA(!1);b.render(a);Z1d(this,"No folder");this.getHandler().Ja(this.Sa,"open",this.Ag).Ja(b,"ek",this.mL).Ja(b,"Hl",this.$b)};
var Z1d=function(a,b){var c={};c.Dkc=b;a.$.ef().uc(a.Sa.cb(),u$e,c)};Y1d.prototype.Ag=function(){this.Qb.setVisible(!0)};Y1d.prototype.mL=function(){this.Sa.hm(!1)};Y1d.prototype.$b=function(a){(a=a.lp)?(a=this.$.od.La(a),this.Ab=a.Qe(),Z1d(this,La(a.getName())||"\u00a0")):(this.Ab="",Z1d(this,"No folder"));this.mL()};Y1d.prototype.reset=function(){Z1d(this,"No folder");this.Ab=""};
var E5=function(a,b,c,d,f,h,k){C.call(this,f);this.$=a;this.mL=b;this.Ab=c;this.iA=new Ot(d,f);this.ib(this.iA);this.iA.Pa();this.$b=qa(k)?k:"a-n-dc-v-lb"};t(E5,C);
E5.prototype.Pa=function(){var a=this.Ea(),b;b=["a-ec-NX"];var c=a.Pa("div","a-ec-rka",cd(a,"&mdash; or &mdash;")),d=a.Pa("div",{id:lh(this,"select-files-button")},this.iA.ta());this.Ab=a.Pa("div",void 0,c,d);b.push("a-ec-apa");b=a.Pa("div","a-ec",a.Pa("div",["a-ec-iA","a-ec-zsa"],a.Pa("div","a-ec-TL",this.Qb=a.Pa("div",b,a.Pa("div",this.$b),a.Pa("div","a-ec-E",this.mL),a.Pa("div","a-ec-P1",this.Ab),a.Pa("div",{id:lh(this,"select-files-button")},this.iA.ta())))));a=a.Pa("div","a-D-v-Bd-c",this.Sa=
a.Pa("button",{style:"display:none"}));b.appendChild(a);this.Kb(b)};E5.prototype.setVisible=function(a){var b=this.ta();a?(Pd(b,My.Bo()?"right":"left","0"),Pd(b,"width","auto"),Pd(b,"height","auto"),(new bF(this.Qb,218)).play()):(Pd(b,My.Bo()?"right":"left","-10000px"),Pd(b,"width","1px"),Pd(b,"height","1px"));b&&qo(b,"hidden",!a)};E5.prototype.zla=function(a){Pn(this.ta(),"a-Db-Bg-Cl",a)};E5.prototype.zt=function(){};
var L5=function(a,b,c){I5.call(this,a,b,c);b.getOption("parent")||"true"!=String(b.getOption("includeFolders"))?"gm-c"==a.rd().Sa&&(this.mL=new O1d(a,c),this.ib(this.mL)):(this.Ab=new Y1d(a,0,c),this.ib(this.Ab));this.Ig=new z5(a,b,c);this.Ama=this.Ig.Ama;this.ib(this.Ig);this.Hl=new E5(this.getContext(),this.Qr.q5,this.Qr.Ab,this.Qr.$,this.Ea(),0,"");this.ib(this.Hl)};t(L5,I5);q=L5.prototype;q.icb=!1;q.sea=null;
q.p1=function(a){var b=this.getContext(),c=new B3(b,Lp(this.XD,this),void 0,a);c.Pt.setContent("Upload");b.rd().Vb&&(this.sea=new vEg(b,"Insert as",a),oEg(c,this.sea));return c};q.oT=function(){var a=this.Ea().Pa("div","a-B a-v "+(this.Ab?"a-oc":""));this.Ab&&this.Ab.render(a);this.mL&&(this.mL.render(a),On(this.mL.ta(),!1));this.Ig.render(a);this.Hl.render(a);return a};
q.OW=function(){this.Ea();o2d(this,this.ta());var a=this.Hl.Sa;this.bQ=a;this.Sa=this.getContext().We().$b(this.YK(),a);this.Sa.addCallback(function(a){this.Ig.iTa=a},this);this.Pf=K5(this,this.Ig.Rd());this.getHandler().Ja(this.Pf,"Nn",this.hAc).Ja(this.Pf,"zm",this.rAc)};q.setActive=function(a,b){L5.ya.setActive.call(this,a,b);a&&this.reset();this.Ig.setActive(a);this.Ama.setVisible(!1)};
q.Na=function(){L5.ya.Na.call(this);this.Sa.addCallback(function(a){a.Lr(this.Hl.iA,!0);this.Hl.zla(a.JI())},this);this.getHandler().Ja(this.Ig,"QE",this.iIb).Ja(this.getContext().mL,"visibility",function(){this.Ama.setVisible(!1)});this.Ama.setVisible(!1);q2d(this)};
q.iIb=function(a){this.Sa.addCallback(function(b){var c=this.Pf;if("c"==a.$){var d=M3(a.La());b.Tu(b.getFile(d.getId()));c.Ae().length?(this.Ig.kt(),H5(c,"default")?this.cj.Pt.setContent("Upload"):H5(c,"success")?this.cj.Pt.setContent("Select"):this.cj.qh(!1)):(this.reset(),this.kt(),this.Ama.setVisible(!1))}else"t"==a.$&&(this.icb=!H5(c,"running")||!H5(c,"scheduled"),this.Ig.SEa(a.La(),!1),b.tca(b.getFile(M3(a.La()).getId())))},this)};
q.rAc=function(a){nEg(this.cj,!1);(a=x5(this.Ig,a.$.getId()))&&On(F9f(a).ta(),!0)};q.hAc=function(a){a=a.$;var b="error"==a.Ii.getState();this.Ig.SEa(a,b)};q.S_=function(){Bag(this,!1);this.cj.Pt.setContent("Upload");this.cj.qh(!0);this.Ama.setVisible(!0,!0);this.Sa.addCallback(function(a){a.Lr(this.Ama,!0)},this);r2d(this,!1);this.Ig.kt()};
q.hS=function(){var a=this.Pf;H5(a,"success");var b=H5(a,"error");H5(a,"error")&&!this.icb&&(H5(a,"success")?(p2d(this,"Some of your uploads failed. You can submit the successful files, or choose to remove or retry the files that failed.",lI(lI(new qx,{key:"yes",caption:"Select successful files"}),{key:"cancel",caption:"Revise"})),this.cj.qh(!0)):(p2d(this,"All your files failed to upload. Please retry or remove the failed files. You may also add new files.",lI(new qx,{key:"ok",caption:"OK"})),this.Ab&&
this.Ab.Sa.Ta(!0)));this.icb=!1;this.cj.Pt.setContent("Select");b?this.Sa.addCallback(function(a){a.Lr(this.Ama,!0)},this):this.WC()};q.XD=function(){if(this.Ab){var a=this.Ab;this.Pf.Ag=a.Ab;a.Sa.Ta(!1)}else this.Xd.getOption("parent")&&(a=this.Xd.getOption("parent"),this.Pf.Ag=a);L5.ya.XD.call(this)};
var p2d=function(a,b,c){var d=new jx(void 0,void 0,a.Ea());r7a(d,Hua(b));d.Qd(c);d.ud(!0);d.render();var f=d.ta();ey(f,b);IUa(f,"labelledby");Qn(d.ta(),"a-Sc-v-wa-q");Qn(d.Bf(),"a-Sc-v-wa-q-Ya");v(c.ii(),function(a){Qn(gK(c,a),"a-Sc-v-wa-q-c")});LFa(d,"yes");ud(d,"dialogselect",Lp(a.$b,a));d.setVisible(!0);try{d.focus()}catch(h){}};
L5.prototype.start=function(){if(H5(this.Pf,"default"))L5.ya.start.call(this),this.getContext().od.xk(this.Pf.Ag?9:10);else{var a={key:"yes",caption:"Select successful files"},b={key:"cancel",caption:"No"};H5(this.Pf,"error")?p2d(this,"Some of the files failed to upload. Do you want to submit only the files that succeeded?",lI(lI(new qx,a),b)):this.WC()}};L5.prototype.WC=function(){var a=ec(this.Pf.Ae(),function(a){return a.Ii&&"success"==a.Ii.getState()});a.length?this.getContext().Sa.Sl(a):this.getContext().Sa.oD()};
L5.prototype.kt=function(){try{return this.Hl.iA.focus(),!0}catch(a){}};var Bag=function(a,b){a.Hl.setVisible(b);a.Hl.iA.Ta(b);J5(a,!b)};L5.prototype.$b=function(a){"yes"==a.key&&this.WC()};var q2d=function(a){var b=a.mL;b&&(a.getContext().Ab.addCallback(function(a){"true"!=a.M_b.get("dd")&&r2d(this,!0)},a),a.getHandler().yj(b,"Pi",Lp(a.Qb,a)))};L5.prototype.Qb=function(){r2d(this,!1);this.getContext().Ab.addCallback(function(a){a.M_b.set("dd","true")},this)};
var r2d=function(a,b){a.mL&&(On(a.mL.ta(),b),Pn(a.ta(),"a-oc-lE-gc-zb",b))};L5.prototype.reset=function(a){L5.ya.reset.call(this,a);a||(Bag(this,!0),this.cj.qh(!1),this.Sa.addCallback(function(a){a.VM(this.Ama);a.Lr(this.Hl.iA,!0)},this),this.Ab&&(this.Ab.Sa.Ta(!0),this.Ab.reset()),q2d(this),this.Ig.reset())}; L5.prototype.a8b=function(a){var b=a.Sa;this.cj.qh(b);L5.ya.a8b.call(this,a);b&&this.getContext().rd().Vb&&(1==a.$?(this.sea.Ta(!1),t0d(this.sea.Sa,"inline"),b=0,2==a.$&&(b=1),nEg(this.cj,!0,VFg(a.$),b)):(this.sea.Ta(!0),nEg(this.cj,!1)))};
var v2d=function(a,b,c){M5.call(this,a,b,c)};t(v2d,M5);v2d.prototype.p1=function(){var a=new z4(this.getContext());I1d(a);a.qh(!1);return a};
v2d.prototype.hS=function(){var a=this.Pf.Ae()[0],b="success"!=a.Ii.getState();if(b){this.reset();var c=a.Ii.dG(),d=c&&c.type,c="The image you selected could not be uploaded. Please try again.";"too_large"==d?c="The image you selected is too large.  Only files smaller than 5 megabytes are allowed.  Please select a smaller image and try again.":"too_large_in_dimensions"==d?c="The image you selected is too large.  Only files smaller than 3500 by 2500 pixels are allowed.":"not_an_image"==d&&(c="The file you selected was not a valid image file. Please select another file and try again.");
var d=this.Ea(),f=d.Pa("a",{"class":"a-s",href:"https://docs.google.com/support/bin/answer.py?answer=97447&topic=15127&hl="+My.$,target:"_blank"},"Learn more"),d=d.Pa("div",null,f);s2d(this,c+" "+d.innerHTML);b||t2d(this,[a.getId()])}else this.Qb.$(100),this.WC()};
var Q2e=function(a,b,c){this.$=a;I2e.call(this,b,c,!1,!1)};t(Q2e,I2e);Q2e.prototype.VYc=function(a,b){this.$.od.Vd(new G2e(a),function(a){b(a.Rc())},ka)};Q2e.prototype.Nvb=function(a){this.$.od.Vd(new H2e(a),ka,ka)};Q2e.prototype.Xya=function(){return this.$.rd().FJa};
var w2d=function(a,b,c){M5.call(this,a,b,c)};t(w2d,M5);w2d.prototype.hS=function(){var a=this.Pf.Ae()[0];"success"!=a.Ii.getState()?(this.reset(),s2d(this,a.Ii.dG().error_msg)):(this.Qb.$(100),this.WC())};var x2d=function(){kd.call(this)};t(x2d,x3);var A2d=["document","drawings","presentation","spreadsheet","forms"];x2d.prototype.uj=function(a,b,c){if("upload"==a.$){var d=a.getQuery();if(!d||OQd(a))return null;b.rd();return"docs"==d?b.rd().$b?new L5(b,a,c):new M5(b,a,c):eb(A2d,d)?new v2d(b,a,c):"mapspro"==d?new w2d(b,a,c):new M5(b,a,c)}return null};
x2d.prototype.$=function(a,b,c){var d=new ag,f=b.rd(),h=f.swa[a];if(!h)return Oda(void 0);var k=h.getUrl(),m=f.Km;ia(m)&&(k=Hf(Jf(k),"authuser",m).toString());var p=new SY(k);x(this,p);b.Ab.addCallback(function(k){y2d(p,h,f,k,c);if("FLASH"==p.Sa[0]){if(k=Ied(p))p8e(k,a,b,c),d.By(k)}else Ied(p,Lp(function(f){p8e(f,a,b,c);d.By(f)},this))},this);return d};
var y2d=function(a,b,c,d,f){Eed(a,b.Qb());a.DU=f;a.$b=!0;a.Ab=void 0;Hed(a,f,d.Qb);a.Qb=f;a.Ab=void 0;if(c=R2e(c)&&"XHR"==a.Sa[0])c=a.Sa[0],c=!("FLASH"==c&&0<=Xa(OJ,"10")||"XHR"==c&&jed());c&&(b=sb(b.Qb()),eb(b,"FLASH")&&(b.unshift("FLASH"),Eed(a,b,!0)))},p8e=function(a,b,c,d){a.L1(c.rd().$b);a.p8=!1;a.roa=!0;Scd(a,3);a.doa=!0;R2e(c.rd(),b)&&(b=new Q2e(c,a,jc(d)),x(a,b))},R2e=function(a,b){switch(b){case "dragonflyphotos":case "photo":case "photos":case "profile":case "youtubebanner":switch(a.Sa){case "pwa":case "gm-c":case "gm-i":case "yt-banner":return!1}return!0}return!1}; vg(xg(E.ia(),"opu"),x2d);

G("opu");I();
}catch(e){_DumpException(e)}
try{
var v$e=function(a,b){le(a,b.width,b.height);Vd(a,b.left,b.top)};H("sy896");var Fhd=function(a){var b="";a='Tag "'+(Dn(r(a.q))+'"');return Y(b+a)};var Ghd=function(){};Ghd.prototype.$=function(a,b){var c;a:if(OYb(a)){c=bN(a);for(var d=0;d<b.length;d++){var f=b[d].Oc();if(f){d=f.yc()||"";c=c==bN(d);break a}}c=!1}else c=!0;return c?[]:[new aN(a,void 0,void 0,Fhd)]};var BZ=function(a,b){this.overlay=a;this.mL=b;this.$b=oe(this.overlay.ta());this.Ba=new Hd(this)};q=BZ.prototype;q.getHandler=function(){return this.Ba};q.eb=ka;q.Pb=ka;q.A4=rZ;q.U_=rZ;q.Fha=rZ;q.Gha=rZ;q.V_=rZ;q.Jsa=rZ;var w$e=function(a,b,c,d){return Math.min(b,c,d,a.width-c,a.height-d)};
var Ahd=function(a,b,c){BZ.call(this,a,b);this.Ab=c};t(Ahd,BZ);Ahd.prototype.eb=function(){this.$=mZ(this.overlay.Sa,this.Ab);this.Sa=mZ(this.overlay.mL,this.Ab);this.$&&this.$.setVisible(!0);this.Sa&&this.Sa.setVisible(!0);this.DU=Uf(Lp(this.Qb,this),1308)};Ahd.prototype.Pb=function(){this.$&&this.$.setVisible(!1);this.Sa&&this.Sa.setVisible(!1);Vf(this.DU)};Ahd.prototype.Qb=function(){j4(this.overlay)};
var Hhd=function(a,b){this.Sa=a;this.$=b};Hhd.prototype.Ns=function(){return this.Sa};var Ihd=function(a){A.call(this,a);this.Sa=null;this.$=!1};t(Ihd,A);Ihd.prototype.Jt=function(){return this.Sa};var Jhd=function(a,b,c,d,f){kd.call(this);this.Fa=a;this.$=f(b,c);x(this,this.$);TYb(this.$.Us(),new Ghd);this.Sa=d;this.Ba=new Hd;x(this,this.Ba);this.Ba.Ja(this.$,"update",Lp(this.Ab,this))};t(Jhd,kd);Jhd.prototype.Ab=function(a){if(a.row){var b=new Ihd("IF"),c=a.row.Oc();a=a.row.getQuery();c?(c=!c&&c.getId()&&c.getId().P9()?null:new Hhd(null,c),b.Sa=c):a&&(b.Sa=new Hhd(a,null),b.$=!0);b.Jt()&&this.Sa(b)}};
var Bhd=function(a,b,c,d){BZ.call(this,a,b);this.Sb=1;this.DU=(this.Qb=d)?c:null;this.$=c.Sa.clone();this.Sa=new Bfd;this.Ab=new Gb};t(Bhd,BZ);q=Bhd.prototype;
q.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(a,"keydown",this.wud).Ja(a,"mousedown",this.xud).Ja(this.overlay.Ea().La(),"mouseup",this.zud).Ja(a,"mousemove",this.yud),a,vw,this.vud);this.DU&&(a=Thd(this.overlay),this.$=this.DU.Sa.clone(),this.$.scale(a));Dhd(this);CZ(this.overlay,!0,void 0,!1,!0);Ehd(this.overlay,!0,!this.Qb,!1,!1);Mhd(this.overlay.Ec)};
q.Pb=function(){this.getHandler().removeAll();$hd(this.overlay,null);CZ(this.overlay,!1,void 0,void 0,!1);Ehd(this.overlay,!1,!1,!1,!1);var a=this.overlay;a.y2(a.Ea())};q.wud=function(a){27==a.keyCode?(a.stopPropagation(),j4(this.overlay),this.mL("DF",new qZ)):32==a.keyCode&&a.stopPropagation()};q.xud=function(a){if(!this.Qb){var b=ie(this.overlay.ta());this.Ab.x=a.clientX-b.x;this.Ab.y=a.clientY-b.y;this.Sa=this.$.clone();(b=Chd(this,a))?(this.Sb="pos"==b?2:4,a.stopPropagation()):this.Sb=1}};
q.yud=function(a){var b=ie(this.overlay.ta()),c=a.clientX-b.x,b=a.clientY-b.y;switch(this.Sb){case 1:c=Chd(this,a);this.Qb||$hd(this.overlay,c);break;case 2:this.Sb=3;case 3:var c=c-this.Ab.x,b=b-this.Ab.y,c=Cb(this.Sa.$+c,this.$.radius,this.$b.width-this.$.radius),b=Cb(this.Sa.Sa+b,this.$.radius,this.$b.height-this.$.radius),d=this.$;d.$=c;d.Sa=b;Dhd(this);a.stopPropagation();break;case 4:c-=this.Sa.$,b-=this.Sa.Sa,c=w$e(this.$b,Math.sqrt(c*c+b*b),this.Sa.$,this.Sa.Sa),this.$.radius=c,Dhd(this),
c=Chd(this,a),this.Qb||$hd(this.overlay,c),a.stopPropagation()}};q.vud=function(a){a.stopPropagation();var b=this.overlay;b.wb.contains(b.Ab,a.target)||(j4(this.overlay),this.mL("DF",new qZ))};q.zud=function(a){a.stopPropagation();a=this.Sb;1!=a&&2!=a&&(this.Sb=1,this.Ab.x=0,this.Ab.y=0,this.Sa.setBounds(0,0,0),Phd(this.overlay.Ec))};
var Chd=function(a,b){var c=ie(a.overlay.ta()),d=b.clientX-c.x-a.$.$,c=b.clientY-c.y-a.$.Sa,f=d*d+c*c,h=a.$.radius-8,k=a.$.radius+8;return f<h*h?"pos":f<k*k?"ew nesw ns nwse ew nesw ns nwse".split(" ")[Math.floor((180/Math.PI*Math.atan2(-c,d)+382.5)%360/45)]:null},Dhd=function(a){var b=2*a.$.radius,b=new Nd(a.$.$-a.$.radius,a.$.Sa-a.$.radius,b,b);CZ(a.overlay,void 0,void 0,void 0,void 0,b);Ehd(a.overlay,void 0,void 0,void 0,void 0,b)};
var z$e=function(){this.$=null};z$e.prototype.update=function(a,b){if(a&&b&&b.ta()){var c=ie(b.ta()),d=xe(b.ta()),f=ie(a.ta()),h=xe(a.ta());this.$=new Md(f.y+h.height/2,Math.max(c.x+d.width,f.x+h.width),c.y+d.height+11,Math.min(c.x,f.x))}else this.reset()};z$e.prototype.reset=function(){this.$=null};z$e.prototype.contains=function(a){return!!this.$&&this.$.contains(a)};
var DZ=function(a,b){BZ.call(this,a,b)};t(DZ,BZ);DZ.prototype.eb=function(){var a=new qZ;a.tag=this.$;a.tag&&this.mL("BF",a)};DZ.prototype.Pb=function(){eid(this.overlay,!1,!1)};DZ.prototype.U_=function(a){if(a.data.tag){var b=hid(this.overlay,a.data.tag);eid(this.overlay,!!this.$,!0,b);this.$=a.data.tag}else j4(this.overlay)};DZ.prototype.V_=function(a){this.$==a.data.tag&&(this.$=null,eid(this.overlay,!1,!1))};
var Efd=function(a,b,c){b=(a.lOc?'<div class="j-D-Ua-Nc-na-Z">'+(a.u1b?r(a.u1b):"")+"</div>":"")+'<div class="j-D-Ua-Nc">';if(a.d4a)if(a.w0){var d=wA(new Z("{VIEWER_GENDER,select,male{Is this you?}female{Is this you?}other{Is this you?}}"),{VIEWER_GENDER:c.Aa});b+='<span class="j-D-Ua-Nc-to">'+d+"</span>"}else if(a.nP){b+='<span class="j-D-Ua-Nc-eNa">';var d=""+(a.Va?'<a class="j-D-Ua-Nc-kb" href="'+R(S(a.qf))+'" title="'+R(a.name)+'" target="_blank">':'<span class="j-D-Ua-Nc-kb" title="'+R(a.name)+
'">'),d=jA(d),f=""+(a.Va?"</a>":"</span>"),f=jA(f),d='<span class="j-D-Ua-Nc-Fi">Is this</span> '+(r(d)+(r(a.name)+(r(f)+"?")));b+=d+"</span>"}else d='<span class="j-D-Ua-Nc-Fi">Is this '+(r(a.name)+"?</span>"),b+=d;else b=a.tKb?b+r(a.tKb):b+'<span class="j-D-Ua-Nc-yp">Click face to tag</span>';if(a.AHb||a.Y4)b+='<span class="j-D-Ua-Nc-c-Z">',a.AHb?(d=wA(new Z("{VIEWER_GENDER,select,male{Suggest as {NAME}'s profile photo}female{Suggest as {NAME}'s profile photo}other{Suggest as {NAME}'s profile photo}}"),
{VIEWER_GENDER:c.Aa,NAME:R(a.name)}),b+='<span class="j-D-Ua-Nc-ld j-D-Ua-Nc-ld-Eb-J-c" title="'+Vma(d)+'"></span>'):a.w0&&(d=wA(new Z("{VIEWER_GENDER,select,male{Make this photo your profile photo}female{Make this photo your profile photo}other{Make this photo your profile photo}}"),{VIEWER_GENDER:c.Aa}),b+='<span class="j-D-Ua-Nc-ld j-D-Ua-Nc-ld-Eb-J-c" title="'+Vma(d)+'"></span>'),a.Y4&&(d=wA(new Z("{VIEWER_GENDER,select,male{Remove this tag}female{Remove this tag}other{Remove this tag}}"),{VIEWER_GENDER:c.Aa}),
b+='<span class="j-D-Ua-Nc-Ce j-D-Ua-Nc-Ce-c" title="'+Vma(d)+'"></span>'),b+="</span>";b+="</div>"+(a.d4a?'<div class="j-D-Ua-Nc-ea"></div>':"")+(a.eOc&&a.d4a&&!a.w0?Q(wfd(0,0,c)):"")+'<div style="clear: both;"></div>';return Y(b)},Ffd=function(a){a=a||{};a=""+(a.name?""+a.name:"");a=Oz(a);return P("Owner of this tag ("+(""+a+") has not approved it yet."))};
var oZ=function(a,b,c,d,f,h,k,m,p,u,z){C.call(this,T(a).Ea());this.Fa=a;this.$=b;this.uh=c;this.Vk=d;this.$b=f;this.Ko=h;this.lp=k;this.Db=m;this.Op=p;this.Km=u;this.mL=z;this.ha=V(a)};t(oZ,C);
oZ.prototype.Pa=function(){oZ.ya.Pa.call(this);var a=this.Ea();this.ha.uc(this.ta(),Efd,kLg(this));if(Hfd(this)){var b=D("j-D-Ua-Nc-ea",this.ta(),a);this.Ab=new Ot("Tag",a,2);this.ib(this.Ab);this.Ab.render(b);Qn(this.Ab.ta(),"j-D-Ua-Nc-c");this.Sa=new Ot("Don't tag",a);this.ib(this.Sa);this.Sa.render(b);Qn(this.Sa.ta(),"j-D-Ua-Nc-c")}this.Qb=a.fb("j-D-Ua-Nc-yp",this.ta());this.Vb=a.fb("j-D-Ua-Nc-Ce",this.ta());this.Ag=a.fb("j-D-Ua-Nc-ld",this.ta())};
oZ.prototype.Na=function(){oZ.ya.Na.call(this);var a=this.getHandler();this.Ab&&this.Sa&&a.Ja(this.Ab,"action",this.Ko).Ja(this.Sa,"action",this.lp);this.Vb&&Hr(a,this.Vb,vw,this.Db,void 0);this.Ag&&Hr(a,this.Ag,vw,this.Km,void 0);this.Qb&&Hr(a,this.Qb,vw,this.Op,void 0)};
var kLg=function(a){var b=a.$.Ah(),c=Hfd(a),d=a.uh&&b&&b.getId()==a.uh,f=a.$.nP(),h=a.$.Un(),k=null,m=c?46:28;a.$b&&b&&(f||h?k=vYb(b):(k=b.Yr())||(k=vYb(b)));var p=null;b&&w(b,2)&&(p=b.getId()&&"0"!=b.getId()?b.getId():null);var u=p&&!h,b=b&&b.Ob()||null,z=h?JC(a.ha,Ffd,{name:b}):void 0;if(c&&!d&&null==b){var F="photos tagging: tageeName is null";Qda(F,Error(F))}else c&&!d&&"null"==b&&(F="photos tagging: tageeName is of string null",Qda(F,Error(F)));var F=a.Vk,M=a.$b,X;X=a.$.Y4()&&!Hfd(a);return{eOc:F, lOc:M,d4a:c,Y4:X,AHb:a.$.B3b(),nP:f,w0:d,name:b,tKb:a.mL.Sa(b,h,p,"j-D-Ua-Nc-kb"),Va:p,qf:a.mL.mL(p),u1b:a.mL.Ab(b,k,m,u?p:void 0,z)}},Hfd=function(a){return a.$.zRa()||a.$.nP()};
var Khd=function(a,b,c){a=Y;b="";var d=wA(new Z("{VIEWER_GENDER,select,male{Press Enter to apply or Esc to cancel.}female{Press Enter to apply or Esc to cancel.}other{Press Enter to apply or Esc to cancel.}}"),{VIEWER_GENDER:c.Aa});b='<div class="j-D-Ua-i-zs"><span class="j-D-Ua-i-N-z"><input class="j-D-Ua-i-N b-hb" type="text" /></span><div class="j-D-Ua-i-Th">'+Y(b+d)+'</div></div><div class="j-D-Ua-i-Lb"><div class="j-D-Ua-i-kb-wa" style="display:none;">';var d="",f=wA(new Z("{VIEWER_GENDER,select,male{Please provide a contact name.}female{Please provide a contact name.}other{Please provide a contact name.}}"),
{VIEWER_GENDER:c.Aa}),d=Y(d+f);b=b+d+'</div><div class="j-D-Ua-i-ha">';d=Y("Name:");b=b+d+'</div><input class="j-D-Ua-i-kb b-hb" type="text" /><div class="j-D-Ua-i-ha">';d=Y("Email address (optional):");return a(b+d+'</div><input class="j-D-Ua-i-Fc b-hb" type="text" /><div class="j-D-Ua-i-ea"></div></div><img class="j-D-Ua-i-Hd" src="//ssl.gstatic.com/ui/v1/activityindicator/loading_16.gif">'+Q(wfd(0,0,c)))};
var Lhd=function(a,b){gD.call(this,T(a).Ea());this.Fa=a;this.Db=b;this.ha=V(a);this.IA(!1);hD(this,!1);iD(this,!0);this.setPosition(1,2,void 0,-13)};t(Lhd,gD);q=Lhd.prototype;
q.Pa=function(){Lhd.ya.Pa.call(this);Qn(this.ta(),"j-D-Ua-i");this.ha.uc(this.cb(),Khd,this.Ea());var a=D("j-D-Ua-i-ea",this.ta(),this.Ea()),b=this.ha.getData().Aa||"other",c=(new Z("{GENDER, select, male {Tag}female {Tag}other {Tag}}")).format({GENDER:b});this.Ag=new Ot(c,this.Ea(),2);this.ib(this.Ag,!1);this.Ag.render(a);b=(new Z("{GENDER, select, male {Cancel}female {Cancel}other {Cancel}}")).format({GENDER:b});this.Qb=new Ot(b,this.Ea(),0);this.ib(this.Qb,!1);this.Qb.render(a);this.lp=D("j-D-Ua-i-zs",
this.cb(),this.Ea());this.Op=D("j-D-Ua-i-Lb",this.cb(),this.Ea());this.R_=D("j-D-Ua-i-N",this.cb(),this.Ea());this.Ab=D("j-D-Ua-i-kb",this.cb(),this.Ea());this.$=D("j-D-Ua-i-Fc",this.cb(),this.Ea());this.Vk=D("j-D-Ua-i-kb-wa",this.cb(),this.Ea());a=D("j-D-Ua-i-N-z",this.cb(),this.Ea());this.Sa=new Jhd(this.Fa,this.R_,a,Lp(this.dispatchEvent,this),this.Db);x(this,this.Sa)};q.Na=function(){Lhd.ya.Na.call(this);this.Qb.Ja("action",this.y2,!1,this);this.Ag.Ja("action",this.Km,!1,this)};
q.yc=function(){return this.$&&this.$.value||""};q.getName=function(){return this.Ab&&this.Ab.value||""};q.setVisible=function(a){this.dc()!=a&&Mhd(this);Lhd.ya.setVisible.call(this,a)};
var Mhd=function(a){Nhd(a,!1);a.Ab.value="";a.$.value="";a.R_.value="";On(a.Vk,!1);Ohd(a,!1)},Nhd=function(a,b){Pn(a.cb(),"j-D-Ua-i-kR",b);qc(a.R_,{disabled:b?"disabled":""});qc(a.$,{disabled:b?"disabled":""});qc(a.Ab,{disabled:b?"disabled":""})},Ohd=function(a,b){a.Ko=b;On(a.Op,b);On(a.lp,!b);Phd(a);b&&a.Wd()},Phd=function(a,b){a.dc()&&(a.Ko?null!=b?a.$.focus():!a.Ab.value||a.$.value?a.Ab.focus():a.$.focus():a.R_.focus())};Lhd.prototype.y2=function(){this.dispatchEvent(new Ihd("HF"))}; Lhd.prototype.Km=function(){Ea(this.getName())?(On(this.Vk,!0),this.Ab.focus()):this.dispatchEvent(new Ihd("jm"))};
var Qhd=function(a,b){Ld.call(this);this.Fa=a;this.$=b;this.Ba=new Hd(this);x(this,this.Ba);Jd(qr(qr(qr(qr(this.Ba,this.$.ta(),"keydown",this.Ab,void 0,this),this.$.ta(),"keypress",this.mL,void 0,this).Ja(this.$.ta(),Rhd,pd).Ja(this.$,"action",pd),this.$,"jm",this.Sa,void 0,this),this.$,"IF",this.Qb,void 0,this),this.$,vw,pd)};t(Qhd,Ld);var Rhd=["click","mousedown"];Qhd.prototype.Ab=function(a){27!=a.keyCode&&a.stopPropagation()};
Qhd.prototype.mL=function(a){var b=a.target;13==a.keyCode&&b&&(a.stopPropagation(),a=this.$,a.Ab&&b==a.Ab?Phd(this.$,!0):(a=this.$,a.$&&b==a.$&&this.Sa(new Ihd("jm"))))};Qhd.prototype.Sa=function(a){var b,c=this.$.yc();b=this.$.getName();var d=new yk;Py(d,1,c);c=new Ck;b&&tB(c,b);b=new yB(d,c);a.Sa=new Hhd(null,b);a.$=!0;R_e(this,a)};
Qhd.prototype.Qb=function(a){if(a.$){this.dispatchEvent(a);var b=this.$;a=a.Jt().Ns()||"";var c=xE(a);b.Ab.value=c?"":a;b.$.value=c?a:"";c?b.Ab.focus():b.$.focus()}else b=this.$,c=a.Jt().$.Ob(),b.R_.value=c,b.R_.focus(),R_e(this,a)};
var R_e=function(a,b){Nhd(a.$,!0);var c=new qZ;c.ue=b.Jt();c.Qb=b.$;var d=a.$b;c.tag=d.DU;c.Ab=!d.Qb;var f=Thd(d.overlay),d=d.$,f=f||1,h=Math.round(2*d.radius/f),d=new Nd(Math.round((d.$-d.radius)/f),Math.round((d.Sa-d.radius)/f),h,h);c.Sa=d;a.dispatchEvent(new pZ("CF",c))};
var Shd=function(a,b){BZ.call(this,a,b);this.Ab=40;var c=a.$.Fza();if(c.length){for(var d=0,f=0;f<c.length;f++)var h=N(c[f],Ir,4),d=d+(Mr(h).wP()-Lr(h).wP())/2;this.Ab=d/c.length*Thd(a)}this.Sa=new z$e};t(Shd,BZ);Shd.prototype.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(this.overlay,["CF","DF","$l","EF"],this.iwb).Ja(a,"mouseover",this.Gud).Ja(a,"mouseout",this.fYc).Ja(a,"mousemove",this.h1b),a,vw,this.Fud)};
Shd.prototype.Pb=function(){this.getHandler().removeAll();CZ(this.overlay,!1,!1,!1,!1)};Shd.prototype.U_=function(){this.overlay.At(new DZ(this.overlay,this.mL))};var E$e=function(a){var b=mZ(a.overlay.mL,a.$);b&&b.setVisible(!1);a.Sa.reset();a.$=null};q=Shd.prototype;q.Gud=function(a){CZ(this.overlay,void 0,void 0,void 0,!0);this.h1b(a)};q.fYc=function(a){a=new Gb(a.clientX,a.clientY);this.$&&this.Sa.contains(a)||(CZ(this.overlay,void 0,void 0,!1,!1),this.$&&E$e(this))};
q.h1b=function(a){var b=new Gb(a.clientX,a.clientY);if(!this.$||!this.Sa.contains(b)){var c=ie(this.overlay.ta()),b=a.clientX-c.x,c=a.clientY-c.y;a=fid(this.overlay,b,c);!this.$||a&&this.$.getId()==a.getId()||E$e(this);var d;a?(this.$=a,b=hid(this.overlay,a),c=!!a.getName(),d=!a.getName()):(this.$=null,d=w$e(this.$b,this.Ab,b,c),b=new Nd(b-d,c-d,2*d,2*d),d=c=!1);CZ(this.overlay,d,c,d||c,!0,b);$hd(this.overlay,void 0,d||!c);if(b=c)b=a.$&&a.$.getStatus(),b=(5==b||1==b)&&!!a.getName()||a.nP()||a.Un()&&
!vfd(a.getShape());b&&((b=mZ(this.overlay.mL,a))&&b.setVisible(!0),this.Sa.update(mZ(this.overlay.Sa,a),b))}};q.Fud=function(a){var b=!!this.$,c=this.$||new nZ;E$e(this);a.stopPropagation();if(!b||!c.getName()){if(!b){var d=ie(this.overlay.ta()),f=a.clientX-d.x;a=a.clientY-d.y;d=w$e(this.$b,this.Ab,f,a);c.Sa.setBounds(f,a,d)}this.overlay.At(new Bhd(this.overlay,this.mL,c,b))}};q.iwb=function(){E$e(this)};
var Uhd=function(){return Y('<div class="j-D-Oa-Fp"><div class="j-D-Oa-Fp"></div></div><div class="j-D-Oa-Oe" style="left: 200px; top: 400px;"><span class="j-D-Oa-Oe-Sd"><span class="j-D-Oa-Oe-Sd-sa"></span><span class="j-D-Oa-Oe-Sd-aa"></span></span></div><div class="j-D-Oa-pd"><div class="j-D-Oa-pd-O7"><span class="j-D-Oa-pd-kva"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-hia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-iia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-gia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-jia"></span></div><span class="j-D-Oa-pd-OX"></span></div>')};
var Vhd=function(){return Y('<div class="j-D-Ud"><span class="j-D-Ud-Sd"><span class="j-D-Ud-Fp"></span><span class="j-D-Ud-Sd-sa"></span><span class="j-D-Ud-Sd-aa"></span></span></div>')};var Whd=function(a,b){C.call(this,T(a).Ea());this.Fa=a;this.$=b;this.ha=V(a)};t(Whd,C);Whd.prototype.Pa=function(){var a=U(this.ha,Vhd,{name:this.$.getName()||""});this.Kb(a);Pn(this.ta(),"j-D-Ud-yp",Dfd(this.$)||this.$.nP())};Whd.prototype.setVisible=function(a){Pn(this.ta(),"j-D-Ud-Fg",a)};
var EZ=function(a,b,c,d,f,h,k,m,p){gD.call(this,T(a).Ea());this.Fa=a;this.$=b;this.Ko=c;this.Ab=d;this.Vk=f;this.Km=h;this.Qb=k;this.Sa=m;this.Ag=p;this.ha=V(a);this.ud(!1);this.IA(!1);hD(this,!1);iD(this,!0);this.setPosition(1,2,void 0,-20)};t(EZ,gD);
EZ.prototype.Pa=function(){EZ.ya.Pa.call(this);var a=new oZ(this.Fa,this.$,this.Ko,!0,!1,this.Ab,this.Vk,this.Km,this.Qb,this.Sa,this.Ag);this.ib(a);a.render(this.cb());Qn(a.ta(),"j-D-Hl-zs-B");Qn(this.ta(),"j-D-Hl");this.$.Un()&&this.$.getShape()&&vfd(this.$.getShape())||this.$.nP();this.$.Ah()&&this.$.Ah().Ob()||Qn(this.ta(),"j-D-Hl-yp")};
EZ.prototype.Na=function(){EZ.ya.Na.call(this);this.getHandler().Ja(this.ta(),["click","mousedown"],function(a){a.stopPropagation()});this.getHandler().Ja(this,"action",function(a){a.stopPropagation()})};EZ.prototype.setVisible=function(a){EZ.ya.setVisible.call(this,a);this.ta()&&Pn(this.ta(),"j-D-Hl-Fg",a)};EZ.prototype.getId=function(){return this.$.getId()};
var Xhd=function(a,b){BZ.call(this,a,b);this.Qb=new z$e};t(Xhd,BZ);Xhd.prototype.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(a,"mouseover",this.Iud).Ja(a,"mousemove",this.i1b),a,vw,this.Hud);this.overlay.uo();Uf(Lp(function(){var a=cid(this.overlay);a&&Yhd(this,a)},this))};Xhd.prototype.Pb=function(){this.Qb.reset();this.getHandler().removeAll();this.$&&!this.$.isDisposed()&&(this.$&&this.$.setVisible(!1),this.Ab&&this.Ab.setVisible(!1));Vf(this.DU)};
Xhd.prototype.A4=function(a){a=a.data.tag||cid(this.overlay);Yhd(this,a)};var Yhd=function(a,b){var c=a.overlay.$.UW()?null:b;a.Sa&&c&&a.Sa.getId()==c.getId()||(a.Sa=c,a.$&&!a.$.isDisposed()&&(a.$&&a.$.setVisible(!1),a.Ab&&a.Ab.setVisible(!1),Vf(a.DU)),a.$=mZ(a.overlay.Sa,a.Sa),a.Ab=mZ(a.overlay.mL,a.Sa),a.DU=null,a.$&&(a.$&&a.$.setVisible(!0),c=Dfd(a.Sa)?300:0,a.DU=Uf(Lp(function(){this.Ab&&!this.Ab.isDisposed()&&this.Ab.setVisible(!0)},a),c)),a.Qb.update(a.$,a.Ab),$hd(a.overlay,void 0,!!a.Sa&&Dfd(a.Sa)))};
q=Xhd.prototype;q.U_=function(){this.overlay.At(new DZ(this.overlay,this.mL))};q.Iud=function(a){this.overlay.uo();this.i1b(a)};q.i1b=function(a){if(this.Sa){this.Qb.update(this.$,this.Ab);if(this.Qb.contains(new Gb(a.clientX,a.clientY)))return;a.stopPropagation()}var b=new qZ,c=ie(this.overlay.ta());b.tag=fid(this.overlay,a.clientX-c.x,a.clientY-c.y);this.overlay.$.UW()&&b.tag&&(b.tag.nP()||Dfd(b.tag))||this.mL("zF",b)};
q.Hud=function(a){this.Sa&&(Yc(a.target,"j-D-Hl")&&a.stopPropagation(),Dfd(this.Sa)&&(a.stopPropagation(),this.overlay.At(new Bhd(this.overlay,this.mL,this.Sa,!0))))};q.V_=function(a){this.Sa&&a.data.tag&&this.Sa.getId()==a.data.tag.getId()&&(this.Ab=this.$=this.Sa=null)};
var FZ=function(a,b,c,d,f,h){C.call(this,T(a).Ea());this.wb=T(a).Ea();this.Fa=a;this.Km=b;this.$=c;this.Db=d;this.Sx=f;this.ha=V(a);this.Sa=new xfd(Lp(this.Opc,this));this.mL=new xfd(Lp(this.Qpc,this));this.y2=h};t(FZ,C);FZ.prototype.A4=function(a){this.$.II()||this.Kg&&this.Kg.A4(a)};FZ.prototype.Vb=function(){this.A4(new pZ("zF",new qZ))};FZ.prototype.U_=function(a){this.$.II()||this.Kg&&this.Kg.U_(a)};
var S_e=function(a,b){var c=Afd(a.mL,b);c&&a.removeChild(c);(c=Afd(a.Sa,b))&&a.removeChild(c);lZ(a.Sa,b);lZ(a.mL,b);gid(a,b);iid(a,b)};q=FZ.prototype;q.Fha=function(a){null==a.data.tag||this.$.II()||(S_e(this,a.data.tag),this.At(new Ahd(this,Lp(this.Ag,this),a.data.tag)))};q.Gha=function(a){a.data.tag&&!this.$.II()&&(S_e(this,a.data.tag),this.Kg&&this.Kg.Gha(a),j4(this))};q.Jsa=function(){this.Ec.dc()&&(Nhd(this.Ec,!1),Phd(this.Ec))};
q.V_=function(a){if(a.data.tag&&!this.$.II()){this.Kg&&this.Kg.V_(a);var b=Afd(this.Sa,a.data.tag),c=Afd(this.mL,a.data.tag);this.removeChild(c);b.setVisible(!1);c.setVisible(!1);Uf(Lp(function(){y(b);y(c);a.data.mL||S_e(this,a.data.tag)},this),218)}};q.Pa=function(){FZ.ya.Pa.call(this);this.ra(this.ta())};
q.ra=function(a){FZ.ya.ra.call(this,a);for(var b=U(this.ha,Uhd);0<b.children.length;)this.wb.appendChild(a,b.children[0]);this.uh=D("j-D-Oa-Fp",a,this.wb);this.$b=D("j-D-Oa-Oe",a,this.wb);this.Ab=D("j-D-Oa-pd",a,this.wb);this.Tx=D("j-D-Oa-pd-O7",a,this.wb);this.lp=D("j-D-Oa-pd-OX",a,this.wb);xc&&!Gf("9")&&Qn(this.uh,"j-D-Oa-Fp-Tsa-Sf");aid(this,a)};q.qb=function(){this.At(null);this.Sa.removeAll(this);this.mL.removeAll(this);bid(this);FZ.ya.qb.call(this)};
var aid=function(a,b){a.Kb(b);Qn(b,"j-D-Oa");bid(a);a.Ec=new Lhd(a.Fa,a.Db);a.ib(a.Ec,!0);a.Ec.Fg(a.lp);a.Qb=new Qhd(a.Fa,a.Ec);a.getHandler().Ja(a.Qb,"HF",a.Vk).Ja(a.Qb,"CF",a.dispatchEvent).Ja(a.Qb,"IF",a.Ko).Ja(a.Ec,"HF",a.Vk);a.uh&&a.wb.appendChild(b,a.uh);a.$b&&a.wb.appendChild(b,a.$b);a.Ab&&a.wb.appendChild(b,a.Ab);a.uo();j4(a)},bid=function(a){a.Qb&&a.getHandler().nb(a.Qb,"HF",a.Vk).nb(a.Qb,"CF",a.dispatchEvent).nb(a.Qb,"IF",a.Ko);a.Ec&&a.getHandler().nb(a.Ec,"HF",a.Vk);y(a.Qb);y(a.Ec)};
FZ.prototype.Vk=function(){j4(this,!0)};FZ.prototype.Ko=function(a){a.$&&Ehd(this,!0,!1,!1,!0)};FZ.prototype.uo=function(){v(did(this),Lp(function(a){mZ(this.Sa,a)||lZ(this.Sa,a);mZ(this.mL,a)||lZ(this.mL,a);gid(this,a);iid(this,a)},this))};var cid=function(a){return cb(did(a),function(a){var c=a.Ah(),c=c&&c.getId()==this.Km;return!!a.zRa()||!(!a.nP()||!c)},a)};FZ.prototype.At=function(a){this.Kg&&this.Kg.Pb();this.Kg=a;this.Qb&&(this.Qb.$b=a);this.Kg&&this.Kg.eb()};
var j4=function(a,b){a.Nb()&&(b&&a.$.VL(!1),a.$.D4()?a.At(new Shd(a,Lp(a.Ag,a))):a.At(new Xhd(a,Lp(a.Ag,a))))};FZ.prototype.Dd=function(a,b){this.Nb()?aid(this,a):this.yb(a);this.Sa.removeAll(this);this.mL.removeAll(this);j4(this,!b)};FZ.prototype.Op=function(a){Pn(this.ta(),"j-D-Oa-Ge",!a)};
var did=function(a){var b=a.$.fra();if(!b)return[];a=b.Ni()?[]:a.$.Fza();return zg(a,function(a){return new nZ(a)})},CZ=function(a,b,c,d,f,h){ia(b)&&Pn(a.$b,"j-D-Oa-PX",b);ia(c)&&Pn(a.$b,"j-D-Oa-Df",c);ia(d)&&Pn(a.$b,"j-D-Oa-Ija",d);ia(f)&&Pn(a.$b,"j-D-Oa-Fg",f);h&&v$e(a.$b,h)},$hd=function(a,b,c){ia(b)&&(Pn(a.Ab,"j-D-Oa-Ssa","pos"==b),Pn(a.Ab,"j-D-Oa-nC-Jsa","ns"==b),Pn(a.Ab,"j-D-Oa-nC-Isa","ew"==b),Pn(a.Ab,"j-D-Oa-nC-gJa","nesw"==b),Pn(a.Ab,"j-D-Oa-nC-hJa","nwse"==b));ia(c)&&Pn(a.Ab,"j-D-Oa-Dq",
c)},eid=function(a,b,c,d){ia(b)&&Pn(a.uh,"j-D-Oa-Ija",b);ia(c)&&Pn(a.uh,"j-D-Oa-Fg",c);d&&v$e(a.uh,d)},Ehd=function(a,b,c,d,f,h){ia(b)&&Pn(a.Ab,"j-D-Oa-Fg",b);ia(c)&&Pn(a.Tx,"j-D-Oa-Bd",!c);Nhd(a.Ec,!!d);ia(b)&&a.Ec.setVisible(!!b);ia(f)&&Ohd(a.Ec,f);h&&(v$e(a.Ab,h),c=zy(a.Ab),d=he(a.Ab,a.ta()),f=oe(a.ta()),b=Math.max(d.y+c.height-f.height,0),c=Cb(c.width/2,-d.x,f.width-d.x),Pd(a.lp,{left:c+"px",bottom:b+"px"}),a.Ec.Wd())};FZ.prototype.Ag=function(a,b){this.dispatchEvent(new pZ(a,b))};
var fid=function(a,b,c){var d=Thd(a),f=null,h=Number.MAX_VALUE;a=did(a);for(var k=0;k<a.length;k++){var m=a[k].Sa,p=b/d-m.$,u=c/d-m.Sa,p=p*p+u*u;p<h&&p<m.radius*m.radius&&(f=a[k],h=p)}return f},gid=function(a,b){var c=mZ(a.Sa,b);if(c){var d=hid(a,b);v$e(c.ta(),d)}},hid=function(a,b){var c=b.Sa,d;d=new Gb(c.$,c.Sa);var c=c.radius,f=2*c;d=new Nd(d.x-c,d.y-c,f,f);c=Thd(a);d=new Nd(d.left*c,d.top*c,d.width*c,d.height*c);a.ta()&&(f=oe(a.ta()),c=new Gb(d.left+d.width/2,d.top+d.height/2),f=Math.min(d.height/
2,f.width-c.x,c.x,f.height-c.y,c.y),d.height=d.width=Math.floor(2*f),d.top=Math.floor(c.y-f),d.left=Math.floor(c.x-f));return d},Thd=function(a){var b=oe(a.ta());return a.$.fra()?b.width/a.$.fra().Og().wc():1},iid=function(a,b){var c=mZ(a.Sa,b),d=mZ(a.mL,b);c&&d&&d.ta()&&(d.Fg(c.ta()),d.Wd())};q=FZ.prototype;q.Opc=function(a){a=new Whd(this.Fa,a);this.ib(a,!0);return a};
q.Qpc=function(a){a=new EZ(this.Fa,a,this.Km,Lp(this.g1b,this,a,!0),Lp(this.g1b,this,a,!1),Lp(this.hWc,this,a),Lp(this.gWc,this,a),Lp(this.iWc,this,a),this.Sx);this.ib(a,!0);a.Fg(this.ta());return a};q.g1b=function(a,b,c){c.stopPropagation();c=new qZ;c.tag=a;c.$=b;this.Ag("$l",c)};q.hWc=function(a,b){b.stopPropagation();var c=new qZ;c.tag=a;c.index=this.$.hj();this.Ag("EF",c)};q.iWc=function(a,b){b.stopPropagation();var c=new qZ;c.tag=a;this.Ag("AF",c)}; q.gWc=function(a,b){b.stopPropagation();this.At(new Bhd(this,Lp(this.Ag,this),a,!0))};

G("sy896");I();
}catch(e){_DumpException(e)}
try{
H("sy898");
G("sy898");I();
}catch(e){_DumpException(e)}
try{
H("sy705");var NGd=new W(bD,4),OGd=new W(bD,6),QGd=new W(bD,7),RGd=new W(bD,8),YGd=new W(bD,9),ZGd=new W(bD,10);new W(bD,11);var $Gd=new W(bD,13),aHd=new W(bD,14),bHd=new W(bD,16),cHd=new W(bD,17),dHd=new W(bD,1);new W(bD,2);new W(bD,21);new W(bD,22);new W(bD,23);new W(bD,24);new W(bD,25);new W(bD,26);new W(bD,27);new W(bD,28);var mHd=new W(bD,29),nHd=new W(bD,30);new W(bD,31);var oHd=new W(bD,32);
var eV=function(a){a=a||{};var b='<span class="Tx IPa">',b=a.caption?b+r(a.caption):b+"Watch a video about circles";return Y(b+"</span>")},pHd=function(a,b,c){return Y('<iframe width="560" height="345" src="'+R(S(a.B7))+"?autoplay=1&hl="+vn(c.locale)+"&cc_lang_pref="+vn(c.locale)+'&cc_load_policy=1&autoplay=1" frameborder="0" allowfullscreen></iframe>')};
var qHd=function(a,b){C.call(this,T(a).Ea());this.Fa=a;this.Sa=b||null;this.ha=V(this.Fa)};t(qHd,C);qHd.prototype.Na=function(){qHd.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.$)};qHd.prototype.Pa=function(){qHd.ya.Pa.call(this);this.ha.uc(this.ta(),eV)};qHd.prototype.$=function(){qp(this.Fa).Ha(NGd);rHd(this.Fa,this.getHandler(),this.Sa)}; var rHd=function(a,b,c){var d=dq(a).Vp(Ct.nsc),f=new MA(a,void 0,!0);V(a).uc(f.cb(),pHd,{B7:d});f.Qd(lI(new qx,{key:"ok",caption:"Done"},!0,!0));f.ud(!0);me(f.ta(),560);b&&c&&(c.Oe(),b.yj(f,"afterhide",function(){c.show()}));f.setVisible(!0)};

G("sy705");I();
}catch(e){_DumpException(e)}
try{
yB.prototype.Mta=g(381,function(){return this.jg});H("sy706");var oS=function(a){K(this,a,0,-1,null,null)};t(oS,J);oS.prototype.kb=function(){return N(this,hvc,5)};var hvc=function(a){K(this,a,0,-1,null,null)};t(hvc,J);q=hvc.prototype;q.getName=function(){return N(this,xm,1)};q.Wb=function(a){Lg(this,1,a)};q.Tj=function(){return N(this,sm,2)};q.Cd=function(){return w(this,4)};q.kl=function(){return N(this,cja,5)};
qn("B","",0,function(a){for(var b='<div class="Fib gma d-k-l">',c=a.nQa.length,d=0;d<c;d++){var f=a.nQa[d];2!=a.nQa[d-1]&&(b=2!=f?b+tAe(pn(a,{ppb:f,Goa:d,qpb:d+1})):b+(d!=c-1?tAe(pn(a,{ppb:a.nQa[d+1],Goa:d+1,qpb:d+1})):""))}return Y(b+"</div>")});
var tAe=function(a){var b,c='<div class="cva"><div class="Qya '+(a.Goa==a.selectedIndex?" Npb":"")+'"><img src="//ssl.gstatic.com/s2/oz/images/up/breadcrumb-buttons-'+R(4<a.qpb?4:a.qpb)+"-"+(a.Goa!=a.selectedIndex?"un":"")+'selected.png"/></div><div class="'+(a.Goa==a.selectedIndex?"Oya":"Pya")+'">';switch(ua(b=a.ppb)?b.toString():b){case 3:c+="Be awesome";break;case 5:c+="Upgrade";break;case 1:c+="Add people";break;case 2:c+="Follow things"}c+="</div>"+(a.Goa==a.selectedIndex?'<div class="dva"></div><div class="eva"></div>': "")+"</div>";return Y(c)};
var rvc=function(a){a=a||{};var b='<div class="Ihb UPb'+(a.Jk?" "+R(a.Jk):"")+'"><div class="aPa"></div><div class="ZOa">',b=a.Wia?b+r(a.Wia):b+"Looking for suggestions...";return Y(b+"</div></div>")};var voc=function(a){return Y('<div class="E9b d-k-l'+(a.q_b?" ky":"")+(a.Fta?" Wea":"")+'"><div class="O4a"></div>'+(a.q_b?'<div class="MN P4a"></div>':"")+"</div>")};var lze=function(a,b,c){b='<div class="'+(a.Qfb?"IJ8vuf":"Tz7fYe ")+' d-k-l"><div class="BTMood d-k-l" '+(a.Va?'oid="'+R(a.Va)+'"':"")+">"+mv({Va:a.Va,Da:a.Da,ld:a.Bh,oa:Oz("yOwiL h0ZEG")},0,c)+"</div>"+(a.Qfb?kze():"")+'<div class="HMxtZe PhnhNd d-k-l"><div class="lYeHbb RY6VK" '+(a.Va?'oid="'+R(a.Va)+'"':"")+">"+r(a.displayName)+"</div>";if(a.Qx||a.Mta||a.$Ka){b+='<div class="Q08Xsc">';if(a.$Ka)c=wA(new Z("{NUM_COMMON_PEOPLE_1,plural,=0{unused plural form}=1{{NUM_COMMON_PEOPLE_2} in common}other{{NUM_COMMON_PEOPLE_2} in common}}"),
{NUM_COMMON_PEOPLE_1:a.$Ka,NUM_COMMON_PEOPLE_2:r(a.$Ka)}),b+=c+'<div class="FQ6DLd T3XXsd"></div>';else if(a.Mta){c="";var d="Invited you to "+Ht();c=Y(c+d);b+=c}else b=b+r(a.Qx);b+="</div>"}b+=a.Qfb?"":kze();a.V4&&(b+='<div class="ZQ8Uie">Has you in their circles.</div>');return Y(b+"</div></div>")},kze=function(){return Y('<div class="OZ2lL Z7g1m"></div>')},mze=function(a,b,c){b="";a=a.MQd;for(var d=a.length,f=0;f<d;f++){var h=a[f];b+=FRb({Da:h.Da,Va:h.Va,ld:15,oa:Oz("vUVFwe")},c)}return Y(b)};
var nze=function(a,b,c,d,f){C.call(this,T(a).Ea());this.Fa=a;this.$=b;this.$b=!!d;this.Qb=!!f;this.fy=c;this.iJ=6;this.Ab=2;this.$c=tE(a);this.Sa=null;this.ha=V(a)};t(nze,C);q=nze.prototype;q.uJb=200;q.iAa=!1;q.DIa=!0;q.lL=!0;q.Hja=function(){return this.Gd};q.Oc=function(){return this.$};
q.Pa=function(){var a=this.$,b={Da:a.Cd(),displayName:a.Ob(),Bh:this.iJ};if(this.Qb){var c;c=(c=this.$.Sa.jFa)?w(c,2)||0:0;b.$Ka=c}b.Qx=a.k4();b.Mta=a.Mta();this.DIa&&(b.V4=a.V4());this.lL&&(b.Va=a.Xa());3==this.Ab&&(b.Qfb=!0);this.Kb(U(this.ha,lze,b));this.Gd=new KH(this.Fa,this.fy,a.getId(),void 0);this.Gd.Sa(a);this.Gd.tE(this.uJb);this.Gd.e1(this.$b);this.Gd.QS(this.iAa);this.mL&&this.Gd.yX(this.mL);this.ib(this.Gd,!1);this.Gd.Nu();a=this.fb("Z7g1m");this.Gd.render(a);this.Sa=this.fb("FQ6DLd");
this.Qb&&this.Sa&&ozb(this)};var ozb=function(a){var b=a.$.Sa.jFa;if(b){var c=new cE;q$a(c,O(b,yk,7));a.$c.XI(c,a.Ag,function(a){hh(Error("Gd`"+a))},a)}};nze.prototype.Ag=function(a){a=ub(a,0,5);a=zg(a,function(a){return{Da:a.Cd(),Va:this.lL?a.Xa():null}},this);this.ha.uc(this.Sa,mze,{MQd:a})};
var yoc=function(a,b,c,d,f,h,k){C.call(this,T(a).Ea());this.Fa=a;this.iJ=h||6;this.mL=!!k;this.Qb=b;this.Sa=c;this.Ab=d;this.fy=f};t(yoc,C);q=yoc.prototype;q.whb=!1;q.lL=!1;q.Dv=function(){return 0<this.$.Hja().qU.Ab()};q.Oc=function(){return this.Sa};q.k2=function(a,b,c){this.$.Hja().k2(a,b,c)};
q.Pa=function(){var a=V(this.Fa);this.Kb(U(a,voc,{q_b:!1,Fta:this.mL}));this.$=new nze(this.Fa,this.Sa,this.fy);this.$.lL=this.lL;this.$.Ab=3;var a=this.$,b=this.Sa.Ck()?BH.ia():new TI(!0);a.mL=b;a.Gd&&a.Gd.yX(b);this.$.iJ=this.iJ;a=this.$;a.uJb=115;a.Gd&&a.Gd.tE(115);this.$.DIa=!1;this.ib(this.$,!1);this.$.render(this.fb("O4a"))};
q.Na=function(){yoc.ya.Na.call(this);var a=this.$.Hja();this.getHandler().Ja(a,["sgcp_bc","sgcp_err"],function(){this.Qb.Ab()}).Ja(a,"sgcp_cc",this.Boc);this.whb||this.getHandler().Ja(this.$.Hja(),"sgcp_amh",Lp(this.EJb,this))};
q.EJb=function(){if(!this.whb&&this.Dv()){this.whb=!0;var a=[];if(this.Sa.Xa()){var b=ys(ss(this.Sa.Xa(),this.Sa.yc())),c=this.Sa.Sa,d=c.EL,c=d?jze(d,this.Ab):vH(1,c.Ecb,this.Ab,c.Z6,c.mda);a.push(jzb(b,c))}GJ(this.Fa,gO,this.fy,a);this.getHandler().nb(this.$.Hja(),"sgcp_amh",Lp(this.EJb,this))}};q.Boc=function(){this.dispatchEvent("Gh")};
var RR=function(a,b,c,d,f){C.call(this,T(a).Ea());this.xa=a;this.$o=b+".PeopleGrid";this.Qb=c;this.iJ=f||null;this.$=new hE(d);x(this,this.$);this.VMa=[];zoc(this);this.mL=ia(d)};t(RR,C);RR.prototype.$b=!1;RR.prototype.lL=!1;RR.prototype.ra=function(a){RR.ya.ra.call(this,a);Aoc(this)};RR.prototype.Pa=function(){RR.ya.Pa.call(this);Aoc(this)};
var Aoc=function(a,b){if(a.ta()){a.hb(!0);var c=0;a.$.Sa(function(a){var f=ia(b)&&eb(b,a);a=new yoc(this.xa,this,a,c,this.$o,this.iJ,f);a.lL=this.lL;c++;this.ib(a,!0);this.VMa.push(a)},a);a.Ab()}},Boc=function(a){a.mL&&a.$b&&pze(a,eO,a.$.xp(),a.$o)},pze=function(a,b,c,d){if(null!=a.Qb){for(var f=[],h=0,k=0;k<c.length;k++){var m=c[k];if(m.Xa()||m.yc()){var p=ys(ss(m.Xa(),m.yc())),m=m.Sa,u=m.EL,m=u?jze(u,k):vH(a.Qb,m.Ecb,k,m.Z6,m.mda,void 0);f.push(jzb(p,m));h++}}var z;b==eO&&(z=h);GJ(a.xa,b,d,f,void 0,
z)}},zoc=function(a){a.Sa=a.xa.kd(eH);a.Sa.addCallback(function(a){this.uh=a.$k()},a)};RR.prototype.Jmb=function(a){var b=new ag;this.Sa.addCallback(wa(this.Ag,b,a),this);return b};RR.prototype.Ag=function(a,b,c){if(0==this.$.Fc())a.By(new XD);else{SR(this,b,!0,!0);var d=this.$o+".addAllToCircle",f=new iF([b],Doc(this),d);c.HF(f,a.By,a.jd,a);dg(a,function(){SR(this,b,!0,!1)},this);bg(a,function(){SR(this,b,!1,!0);SR(this,b,!1,!1)},this);pze(this,gO,this.$.xp(),d)}};
var Doc=function(a){return zg(cPd(a),function(a){var c=new Jk;hF(c,a);return c})};RR.prototype.EWb=function(a){var b=new ag;this.Sa.addCallback(wa(this.Vk,b,a),this);return b};RR.prototype.Vk=function(a,b,c){if(0==this.$.Fc())a.By(new aE);else{SR(this,b,!1,!0);var d=this.$o+".removeAllFromCircle";c.yT(b,cPd(this),d,a.By,a.jd,a);dg(a,function(){SR(this,b,!1,!1)},this);bg(a,function(){SR(this,b,!0,!0);SR(this,b,!0,!1)},this)}};RR.prototype.IP=function(){return this.$.Fc()};
var cPd=function(a){var b=[];a.$.Sa(function(a){b.push(a.getId())});return b},SR=function(a,b,c,d){Foc(a,function(a){a.k2(b,c,d)});a.Ab()},Foc=function(a,b){v(a.VMa,b,void 0)};RR.prototype.xrb=function(a){var b=new ag;this.Sa.addCallback(function(c){this.uh.addCallback(wa(this.Vb,b,a,c),this)},this);return b};
RR.prototype.Vb=function(a,b,c,d){(d=d.c4().b4(b))?a.jd(d):(d=this.$o+".addAllToCircle",b=new Vqb(d,void 0,b,void 0,Doc(this)),c.sfa(b,a.By,a.jd,a),a.addCallback(this.Ab,this),pze(this,gO,this.$.xp(),d))};RR.prototype.wxb=function(){var a;Foc(this,function(b){b=zg(Hrb(b.$.Hja().qU),function(a){return ps(a)});b=new kE(b);a?a=z$a(a,b):a=b});return a?zg(a.Rc(),function(a){return qs(a)}):[]};RR.prototype.clear=function(){iE(this.$).LZ().Hf();Aoc(this)}; var qze=function(a,b,c){HN(iE(a.$),b).Hf();a.mL=!0;Aoc(a,c);Boc(a)};RR.prototype.Ab=function(){this.dispatchEvent("BC")};
var Pvc=function(a,b,c){this.jJ=a;this.$=b;this.Sa=c},Qvc=function(a,b,c){var d=[],f=[],h=[],k=[],m={},p=[],u=[],z=[],F={};if(c)for(var M=0;M<c.length;M++){var X=c[M];a.jJ.Dv(X)||(X.nj()?(k.push(X),m[X.getKey()]=!0):(z.push(X),F[X.getKey()]=!0))}for(M=0;M<b.length;M++)c=b[M],m[c.getKey()]||F[c.getKey()]||(c.Mta()?c.nj()&&d.push(c):c.oP()&&c.DU?(0<(c.Sa.Z6&1024)&&KXa(c,!0),c.nj()?f.push(c):p.push(c)):0<c.mL.length&&(c.nj()?h.push(c):u.push(c)));b=25>=d.length?d:ub(d,0,25);f=Rvc(f,100);h=h.length<= a.$?h:ub(h,0,a.$);p=Rvc(p,50);return{G3a:ub(rb(k,b,f,h),0,a.Sa),mVc:ub(rb(z,p,u.length<=a.$?u:ub(u,0,a.$)),0,a.Sa)}},Rvc=function(a,b){wb(a,Svc);return a.length<=b?a:ub(a,0,b)},Svc=function(a,b){return yb(b.Sa.Ecb,a.Sa.Ecb)};

G("sy706");I();
}catch(e){_DumpException(e)}
try{
var ard=function(a,b,c){A.call(this,a);this.Ql=b||"";this.su=c||""};t(ard,A);H("nam");var qVg={},rVg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{You'll be notified within a few days about the outcome of your appeal. Your profile will remain suspended while it is under review.}male{You'll be notified within a few days about the outcome of your appeal. Your profile will remain suspended while it is under review.}other{You'll be notified within a few days about the outcome of your appeal. Your profile will remain suspended while it is under review.}}"),{VIEWER_GENDER:c.Aa});
return Y(a+c)},sVg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Your appeal has been submitted.}male{Your appeal has been submitted.}other{Your appeal has been submitted.}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},hrd=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Submit your profile for review}male{Submit your profile for review}other{Submit your profile for review}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},ird=function(a,b,c){b="";a=wA(new Z("{VIEWER_GENDER,select,female{Anything you submit will only be used to verify your identity. We'll delete it after the review and won't use it for any other purpose.}male{Anything you submit will only be used to verify your identity. We'll delete it after the review and won't use it for any other purpose.}other{Anything you submit will only be used to verify your identity. We'll delete it after the review and won't use it for any other purpose.}}"),
{VIEWER_GENDER:c.Aa});var d='<form id="appeal-form" enctype="multipart/form-data" method="POST" action="https://support.google.com/contact/bin/request.py?hl='+vn(c.locale)+'&ctx=submitted&confirm=name_appeal&format=embed" target="resultsFrameForNameAppeal">',f;f="";var h=wA(new Z("{VIEWER_GENDER,select,female{Please provide information that verifies that your identity matches your {PRODUCT_NAME} profile.}male{Please provide information that verifies that your identity matches your {PRODUCT_NAME} profile.}other{Please provide information that verifies that your identity matches your {PRODUCT_NAME} profile.}}"),
{VIEWER_GENDER:c.Aa,PRODUCT_NAME:Ht()}),k=wA(new Z("{VIEWER_GENDER,select,female{First Name}male{First Name}other{First Name}}"),{VIEWER_GENDER:c.Aa}),m=wA(new Z("{VIEWER_GENDER,select,female{Last Name}male{Last Name}other{Last Name}}"),{VIEWER_GENDER:c.Aa});f+='<div class="Oda">'+h+'</div><input type="text" class="Qla Lta b-hb" label="'+Vma(k)+'" name="extra.first_name" id="extra.first_name" /><input type="text" class="Qla Pta b-hb" label="'+Vma(m)+'" name="extra.last_name" id="extra.last_name" />';
f=Y(f);d+=f;f="";var h=wA(new Z("{VIEWER_GENDER,select,female{Identity verification}male{Identity verification}other{Identity verification}}"),{VIEWER_GENDER:c.Aa}),k=wA(new Z("{VIEWER_GENDER,select,female{Please attach a clear photo or scan of either:}male{Please attach a clear photo or scan of either:}other{Please attach a clear photo or scan of either:}}"),{VIEWER_GENDER:c.Aa}),m=wA(new Z("{VIEWER_GENDER,select,female{A valid government-issued photo ID, such as a driver\u2019s license or national ID card}male{A valid government-issued photo ID, such as a driver\u2019s license or national ID card}other{A valid government-issued photo ID, such as a driver\u2019s license or national ID card}}"),
{VIEWER_GENDER:c.Aa}),p=wA(new Z("{VIEWER_GENDER,select,female{Your birth certificate and a non-government-issued photo ID, such as a school ID}male{Your birth certificate and a non-government-issued photo ID, such as a school ID}other{Your birth certificate and a non-government-issued photo ID, such as a school ID}}"),{VIEWER_GENDER:c.Aa}),u=wA(new Z("{VIEWER_GENDER,select,female{Please make sure your name and photo (if present) are clearly visible. You can block out other personal information. Your ID will only be used to verify your identity and will be deleted after review.}male{Please make sure your name and photo (if present) are clearly visible. You can block out other personal information. Your ID will only be used to verify your identity and will be deleted after review.}other{Please make sure your name and photo (if present) are clearly visible. You can block out other personal information. Your ID will only be used to verify your identity and will be deleted after review.}}"),
{VIEWER_GENDER:c.Aa});c=wA(new Z("{VIEWER_GENDER,select,female{Attach a file}male{Attach a file}other{Attach a file}}"),{VIEWER_GENDER:c.Aa});c=Y(f+('<div class="fBa">'+h+'</div><div class="Oda"><p>'+k+"</p><ul><li>"+m+"</li><li>"+p+"</li></ul><p>"+u+'</p></div><div class="eBa qQa"><div class="oQa"></div><div class="sZb"><div class="pQa"></div></div><div class="vLa"><div class="d-s q9a SPa">'+c+"</div></div></div>"));return Y(b+(d+c+a+'<input type="hidden" name="format" value="inproduct" /><input type="hidden" name="extra.IssueType" value="name_appeal" /><input id="submit_name_appeal_test" type="hidden" name="Action.Send" value="Submit" /></form><iframe name="resultsFrameForNameAppeal" style="display:none;" class="sRb"></iframe>'))},
P0e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Change file}male{Change file}other{Change file}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},nZg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Name Required}male{Name Required}other{Name Required}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},oZg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Please attach identifying documentation.}male{Please attach identifying documentation.}other{Please attach identifying documentation.}}"), {VIEWER_GENDER:c.Aa});return P(a+(""+c))};
var Q0e=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(this.Fa);xh(new sh(wi(this.Fa).getData(1)));a=new SY("/_/upload/ds/resumable");a.hf(this);Eed(a,["HTML_FORM"]);this.Sa=a;this.Ab={}};t(Q0e,C);q=Q0e.prototype;q.ra=function(a){Q0e.ya.ra.call(this,a);this.mL=this.hg("pQa");this.Qb=this.hg("SPa");a=this.Sa;a.Qb=this.mL;a.Ab=void 0;a=Ied(this.Sa);a.L1(!1);this.$=a;this.$.Lr(this.Qb);this.iga=new rfd(this.$,void 0,void 0,this.Ea());this.ib(this.iga)};
q.Na=function(){Q0e.ya.Na.call(this);this.iga.render(this.hg("oQa"));this.getHandler().Ja(this.Sa,"filesselected",this.Lhb).Ja(this.Sa,"allfilesadded",this.Ohb).Ja(this.Sa,"uploadstatechanged",this.kDb).Ja(this.$,"filesselected",this.Smb)};q.Lhb=function(){this.$.reset();this.Ab={}};q.Ohb=function(){this.Ea().uq(this.Qb,JC(this.ha,P0e))};q.kDb=function(a){a=a.file;if("success"==HY(this.$,a)){var b=this.$.zx(a).dG();b&&b.docid&&(this.Ab[a.getId()+"-"+a.DU]=b.docid)}}; q.Smb=function(a){v(a.files,function(a){a.$b=new Ze({source:"oz-nameappeal"})})};
var T0e=function(a){K(this,a,0,-1,U2g,null)};t(T0e,J);var U2g=[3,4];var W0e=function(a){K(this,a,"op.nar",-1,null,null)};t(W0e,J);W0e.Zb="op.nar";W0e.prototype.rf=function(){return w(this,1)};var jrd=function(a){mz.call(this,a,void 0,!0);this.Fa=a;this.ha=V(this.Fa);this.$={};this.uh=ri(a);this.ud(!0)};t(jrd,mz);q=jrd.prototype;q.Go=0;
q.Pa=function(){jrd.ya.Pa.call(this);this.Qd(lI(lI(new qx,ux,!1,!0),{key:"ok",caption:"Submit"},!1,!1));this.ha.uc(this.cb(),ird);this.ha.uc(lx(this),hrd);this.Sa=new kR;this.ib(this.Sa,!1);this.Sa.yb(this.fb("Lta"));this.$.firstName&&EX(this.Sa,this.$.firstName);this.Ab=new kR;this.ib(this.Ab,!1);this.Ab.yb(this.fb("Pta"));this.$.lastName&&EX(this.Ab,this.$.lastName);this.fb("Kta")};q.Na=function(){jrd.ya.Na.call(this);this.getHandler().Ja(this,"dialogselect",this.lad,!0)};
q.lad=function(a){if(a.key==this.xe.mL)this.dispatchEvent(new ard("de"));else{var b;b=JC(this.ha,nZg);Ea(this.Sa.getValue())?(this.yZ(b),a.preventDefault(),a.stopPropagation(),b=!0):b=!1;if(!b)if(0==Rb(this.Qb.Ab).length)this.yZ(JC(this.ha,oZg)),a.preventDefault(),a.stopPropagation();else{this.xe.$(!1);b=new T0e;var c=this.Sa.getValue();Py(b,1,c);this.Ab.getValue()&&(c=this.Ab.getValue(),Py(b,2,c));c=Rb(this.Qb.Ab);0<c.length&&Py(b,4,c||[]);cg(this.uh.makeRequest("/_/profiles/nameappeal",b,W0e),this.kyd,
this.tyd,this);a.preventDefault()}}};q.kyd=function(a){a.rf()?(this.dispatchEvent(new ard("be",this.Sa.getValue(),this.Ab.getValue())),this.setVisible(!1)):Z0e(this)};q.tyd=function(){Z0e(this)};
var Z0e=function(a){a.xe.$(!0);Vf(a.Go);a.yZ("Something went wrong, please try again.")},lrd=function(a,b){a.Sa?EX(a.Sa,b):a.$.firstName=b},mrd=function(a,b){a.Ab?EX(a.Ab,b):a.$.lastName=b},nrd=function(a,b){a.Vb?a.Vb.qe(b):a.$.email=b},ord=function(a,b){a.Db?a.Db.qe(b):a.$.profileUrl=b},$0e=function(a){a.Qb=new Q0e(a.Fa);a.ib(a.Qb,!1);a.Qb.yb(a.fb("qQa"));a.getHandler().Ja(a.Qb,"allfilesadded",a.mL).Ja(a.Qb,"allfilescompleted",a.Ag)};jrd.prototype.mL=function(){this.xe.$(!1)};jrd.prototype.Ag=function(){this.xe.$(!0)};
var prd=function(a){Ld.call(this);this.Fa=a;this.ha=V(this.Fa);this.mL=new oW(a)};t(prd,Ld);q=prd.prototype;
q.show=function(){var a=new jrd(this.Fa);lrd(a,this.$);mrd(a,this.Sa);nrd(a,this.DU);ord(a,this.$b);a.Qd(null);a.setVisible(!0);$0e(a);this.Qb=a;yd(a,"be",function(a){this.$=a.Ql;this.Sa=a.su;if(this.Ab)this.SSa();else{a=this.SSa;var c=lI(new qx,tx,!0,!1),d=new mz(this.Fa,void 0,!0);this.ha.uc(d.cb(),rVg,{nQc:this.Ab});this.ha.uc(lx(d),sVg||qVg.title);d.Qd(c||lI(lI(new qx,ux,!1,!0),{key:"ok",caption:"Continue appeal"},!1,!1));d.ud(!0);I7f(this,d,a);d.setVisible(!0);this.Qb.setVisible(!1)}},void 0,
this);yd(a,"de",function(){this.dispatchEvent(new ard("de"));qp(this.Fa).Ha(x6f)},void 0,this)};q.SSa=function(){this.dispatchEvent(new ard("ce",this.$,this.Sa));var a=qq(this.Fa);if(a){var b=a.kb();Py(b,41,!0);KD(a,b);a=this.mL.get();Py(a,41,!0);(new Ar(this.Fa,null,Lp(this.nad,this),this.mL.bG())).send()}qp(this.Fa).Ha(t6f)};q.nad=function(){};q.$9a=function(a){this.$=a};q.a$a=function(a){this.Sa=a};q.b$a=function(a){this.$b=a};q.kdb=function(){this.Ab=!1}; var I7f=function(a,b,c){yd(b,"dialogselect",function(a){a.key==b.xe.mL?(this.dispatchEvent("de"),qp(this.Fa).Ha(x6f)):c.call(this)},void 0,a)};
var trd=function(a){this.Fa=a};trd.prototype.$=function(){return new prd(this.Fa)};Ig({id:elb,Wa:trd,multiple:!0});

G("nam");I();
}catch(e){_DumpException(e)}
try{
var i6=function(a,b){this.Fa=a;this.fy=b||null;this.zb=qp(this.Fa)};i6.prototype.Ha=function(a){var b=new zs;this.fy&&b.Fm(this.fy);this.zb.Ha({Ub:a,qd:b})};i6.prototype.redirect=function(a){a=Jf(a);this.zb.It();dy(top.location,a.toString())};H("supg");
var b5=new Ug("SignupUpgrade");var Ucf=new W(b5,1);new W(b5,2);new W(b5,12);new W(b5,8);new W(b5,9);new W(b5,10);var ycf=new W(b5,11);new W(b5,51);var Ycf=new W(b5,3);new W(b5,6);new W(b5,45);new W(b5,46);new W(b5,47);new W(b5,48);new W(b5,49);new W(b5,50);new W(b5,43);new W(b5,42);new W(b5,44);var Zcf=new W(b5,4);new W(b5,23);new W(b5,24);new W(b5,33);new W(b5,30);new W(b5,18);new W(b5,19);var $cf=new W(b5,20),adf=new W(b5,21),bdf=new W(b5,22),cdf=new W(b5,34),ddf=new W(b5,35),edf=new W(b5,36);new W(b5,38); var fdf=new W(b5,52),gdf=new W(b5,53),hdf=new W(b5,54),idf=new W(b5,55);new W(b5,60);var jdf=new W(b5,61);new W(b5,64);new W(b5,67);new W(b5,68);new W(b5,69);new W(b5,70);new W(b5,71);new W(b5,72);new W(b5,73);
var P5d=function(){return Y('<div class="xG">Please select your gender.</div>')},SWf=function(){return Y('<div class="xG" aria-live="polite">Please indicate the gender you most identify with.</div>')},mEg=function(){return Y('<div class="xG" aria-live="polite">Your entry must contain at least one letter (a-z).</div>')},RUf=function(){return Y('<div class="xG">Please select a pronoun.</div>')},RLf=function(){return P("What is your gender?")},xpf=function(){return P("Select")},ujf=function(){return P("Male")},
$hf=function(){return P("Female")},Ygf=function(){return P("Decline to State")},t$e=function(){return P("Other")},J3e=function(){return P("Custom")},Q5d=function(){return Y("Gender")},h_e=function(a){var b="";a=wA(new Z("{PRONOUN_VALUE,select,female{(example: 250 people in her circles)}male{(example: 250 people in his circles)}other{(example: 250 people in their circles)}}"),{PRONOUN_VALUE:a.NUc});return P(b+(""+a))};
var hS=UNb(wu("l0aiUe",void 0,void 0),{},function(){this.fy=this.Sa=this.$b=this.Ab=this.$=null;this.mL=!1});hS.$b="male";hS.mL="female";hS.vd="other";hS.Sa="custom";hS.Ab=999;hS.Qb=new Ze(1,hS.$b,2,hS.mL,3,hS.vd,hS.Ab,hS.Sa);hS.$=CRa(hS.Qb);hS.prototype.Tj=function(){return this.$};hS.prototype.Fm=function(a){this.fy=a||null};hS.prototype.Yj=function(){return this.Ab?this.Ab.call(this.$b):!1};
var nS=DI(g2b,{xa:{cpa:Qt,Tb:Su},Y6a:{vrc:hS}},function(a){this.Kf=a.xa.cpa.Ea();this.DU=a.Y6a.vrc;this.Qb=this.DU.Tj();var b=this.DU,c=this.Yj;c&&(b.Ab=c,b.$b=this);if(b=Lp(this.y2,this))this.DU.Sa=b;this.ha=a.xa.Tb;this.Op=new i6(this.ka(),this.DU.fy||void 0);a=JC(this.ha,xpf);var b=this.DU.mL?Uo(this.ha,Q5d):a,c=new Bp(this.Kf),d=new yp(JC(this.ha,ujf),hS.$b);c.ib(d,!0);d=new yp(JC(this.ha,$hf),hS.mL);c.ib(d,!0);d=new yp(JC(this.ha,Ygf),hS.vd);c.ib(d,!0);d=new yp(JC(this.ha,J3e),hS.Sa);c.ib(d,
!0);this.mL=new jD(b,c,this.Kf);x(this,this.mL);b=new Bp(this.Kf);c=new yp(JC(this.ha,ujf),hS.$b);b.ib(c,!0);c=new yp(JC(this.ha,$hf),hS.mL);b.ib(c,!0);c=new yp(JC(this.ha,t$e),hS.vd);b.ib(c,!0);this.Sa=new jD(a,b,this.Kf);x(this,this.Sa);this.Ab=new vx(JC(this.ha,RLf),this.Kf);x(this,this.Ab);this.iu=new n7a(document,this.ka());this.iu.dja();this.$=null});nS.$="ffGyHd";nS.Ab="hl";nS.Ag="Jhf0ae";nS.Sa="lxa";nS.$b="Pb42Wb";nS.vd="W5X9pb";nS.Oa="YJhko";nS.DU="mxa";nS.Qb="GSpspb";nS.Ph="xw8NMe";
nS.mL="FDpqvc";nS.prototype.render=function(a){this.$||(this.$=a.$.Wfa(),a=D(nS.DU,this.$),this.mL.render(a),Qn(this.mL.ta(),nS.Ab),a=D(nS.Qb,this.$),a.value="",this.Ab.yb(a),a=D(nS.Ph,this.$),this.Sa.render(a),Qn(this.Sa.ta(),nS.Ab),this.uh=D(nS.$b,this.$),this.Vb=D(nS.vd,this.$),this.jg=D(nS.Oa,this.$));ZYf(this,this.Qb);m_f(this);this.Rb().Ja(this.mL,"change",this.Km);this.Rb().Ja(this.Sa,"change",this.Ko)};nS.prototype.xAe.rcuQ6b=function(){return this.render};
var m_f=function(a){var b=hS.$.get(a.mL.getValue());b&&b==hS.Ab?(a.Qb&&O1a(a.Qb)&&(a.Ab.qe(O1a(a.Qb)||""),b=hS.Qb.get(a.Qb.getValue()),b!=a.Sa.getValue()?a.Sa.Wj(b):s3f(a)),Rn(a.uh,nS.$),Rn(a.Vb,nS.$)):(a.Ab.reset(),a.Sa.Wj(null),a.$b(),T3f(a),Qn(a.uh,nS.$),Qn(a.Vb,nS.$),Qn(a.jg,nS.$))},s3f=function(a){var b=a.Sa.getValue();b?(b=U(a.ha,h_e,{NUc:b}),a.Vk&&a.jg.removeChild(a.Vk),a.Vk=b,a.jg.appendChild(b),Rn(a.jg,nS.$)):Qn(a.jg,nS.$)};
nS.prototype.Tj=function(){var a=hS.$.get(this.mL.getValue());if(!a)return null;var b=null;if(a==hS.Ab){var a=hS.$.get(this.Sa.getValue()),c=this.Ab.getValue();!qC(c)&&a&&(b=new sm,Py(b,2,a),Py(b,3,c))}else b=new sm,Py(b,2,a);return b};var ZYf=function(a,b){if(b){var c=O1a(b),d=hS.Qb.get(b.getValue());c?(a.Ab.qe(c),a.Sa.Wj(d),a.mL.Wj(hS.Sa)):(a.Ab.reset(),a.Sa.Wj(null),a.mL.Wj(d))}};
nS.prototype.y2=function(){this.$b();var a=D(nS.Sa,this.$),b=U(this.ha,mEg);a.appendChild(b);this.Rb().yj(this.Ab.ta(),"change",this.$b)};
nS.prototype.Yj=function(){var a=this.Tj();if(a)return this.DU.$=a,!0;U3f(this);this.$b();T3f(this);this.Op.Ha(adf);if(!hS.$.get(this.mL.getValue())){var a=D(nS.Sa,this.$),b=U(this.ha,P5d);a.appendChild(b);return!1}a=this.Ab.getValue();qC(a)&&(a=D(nS.Sa,this.$),b=U(this.ha,SWf),a.appendChild(b),this.Rb().yj(this.Ab.ta(),"change",this.$b));hS.$.get(this.Sa.getValue())||(a=D(nS.mL,this.$),b=U(this.ha,RUf),a.appendChild(b));return!1};
nS.prototype.reset=function(){this.DU.$=this.Qb;ZYf(this,this.Qb);U3f(this);this.$b();T3f(this)};var U3f=function(a){a=D(nS.Sa,a.$);zc(a)};nS.prototype.$b=function(){var a=D(nS.Sa,this.$);zc(a)};var T3f=function(a){a=D(nS.mL,a.$);zc(a)};nS.prototype.Km=function(a){U3f(this);this.$b();T3f(this);m_f(this);a.stopPropagation()};nS.prototype.Ko=function(a){this.Sa.getValue()&&(T3f(this),s3f(this));a.stopPropagation()};

G("supg");I();
}catch(e){_DumpException(e)}
try{
var o1e=function(a){return a.Sa};H("opr");var $Rd=function(a,b){y3.call(this,a,"a-B a-nK-Cc","a-nK-Bb","a-nK-B","top",b)};t($Rd,y3);$Rd.prototype.Pa=function(){$Rd.ya.Pa.call(this);var a='To crop this image, drag the region below and then click "'+(this.getContext().rd().Hwa()+'"'),b=Ce(Be.ia()),a=this.Ea().Pa("div",{"class":"a-Ci-E",id:b},a);this.setSize(15);this.Sa.appendChild(a);a=this.cb();Sc(a,!0);qo(a,"labelledby",b)};
var Y3=function(a){ORd.call(this,a,!0)};t(Y3,ORd);Y3.prototype.Na=function(){Y3.ya.Na.call(this);Qn(this.ta(),"a-Eb-F");this.cb().align=""};
Y3.prototype.uh=function(a){var b,c,d;switch(a){case "editbar-delete":b="Delete";c="a-n-F-ji-Gj";break;case "editbar-rotate-left":b="Left";d="Rotate left";c="a-n-Eb-hc-gk";break;case "editbar-rotate-right":b="Right",d="Rotate right",c="a-n-Eb-hc-hk"}a=this.Ea();b=a.Pa("div",null,a.Pa("div",c+" a-Eb-F-m d-k-l"),a.Pa("div","a-Eb-F-ka d-k-l",b));d&&ey(b,d);return new BM(b,up.ia(),this.Ea())};Y3.prototype.resize=function(){this.ta()&&this.Wd()};Y3.prototype.wc=function(){return 160};
var p1e=function(a){C.call(this,a)};t(p1e,c1e);p1e.prototype.Pa=function(){var a=this.Ea().Pa("div","a-wva");this.Kb(a)};p1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();f.style.top=a-1+"px";f.style.left=d-1+"px";f.style.width=b-d+"px";f.style.height=c-a+"px"}};
var u1e=function(a,b,c){C.call(this,c);this.$b=a;this.Qb=b};t(u1e,c1e);u1e.prototype.Pa=function(){var a=this.Ea();this.mL=a.Pa("div","a-oK-Zb");this.Sa=a.Pa("div","a-oK-ya");this.Ab=a.Pa("div","a-oK-Ja");this.$=a.Pa("div","a-oK-Qe");this.Kb(a.Pa("div","a-oK",this.mL,this.Sa,this.Ab,this.$))};
u1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){hSd(this.ta(),a,d,b-d,c-a);var f=Math.floor((b-d)*this.Qb),h=Math.floor((c-a)*this.$b),k=b-d-2*f;hSd(this.mL,0,f,k,h);hSd(this.$,c-a-h,f,k,h);hSd(this.Sa,0,0,f,c-a);hSd(this.Ab,0,b-d-f,f,c-a)}};var hSd=function(a,b,c,d,f){a.style.top=b+"px";a.style.left=c+"px";a.style.width=d+"px";a.style.height=f+"px"};
var v1e=function(a,b,c){C.call(this,c);this.Sa=a;this.$=b};t(v1e,c1e);v1e.prototype.Pa=function(){var a;switch(this.Sa){case "t":a="a-Bv-Zb";break;case "r":a="a-Bv-Ja";break;case "b":a="a-Bv-Qe";break;case "l":a="a-Bv-ya"}this.Kb(this.Ea().Pa("div",a))};
v1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();switch(this.Sa){case "t":f.style.top=a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=Math.floor((c-a)*this.$)+"px";break;case "r":d=Math.floor((b-d)*this.$);f.style.top=a+"px";f.style.left=b-d+"px";f.style.width=d+"px";f.style.height=c-a+"px";break;case "b":a=Math.floor((c-a)*this.$);f.style.top=c-a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=a+"px";break;case "l":f.style.top=a+"px",f.style.left= d+"px",f.style.width=Math.floor((b-d)*this.$)+"px",f.style.height=c-a+"px"}}};
var mSd=function(a,b,c,d){C.call(this,d);this.$=a;this.Ab=b;this.$b=c||a.rd().Ag||"default";this.Vb=new Sf(10);this.getHandler().Ja(this.Vb,"tick",this.bLc);this.uh=new Sf(10);this.getHandler().Ja(this.uh,"tick",this.aLc);this.Ko=this.mL=this.$j=this.Vk=this.Ag=null;this.Km=0;this.Sa=this.Qb=null;this.Op=0};t(mSd,C);q=mSd.prototype;
q.Pa=function(){var a=this.Ea();this.Kb(a.Pa("div","a-Ci-B",this.Ko=a.Pa("div","a-Ci-cb",this.mL=a.Pa("img",{style:"display: none"})),a.Pa("div","a-Ci-Tc-ep")));var b=this.$.rd();if(b.jg){var c=this.Sa=new Y3(a);this.Op=c.wc();c.yN(this.mL);QRd(c);a=this.Qb=new W3(b.fG(),a);this.getHandler().Ja(c,"Fi",this.jLc).Ja(c,"Ei",this.iLc).Ja(a,"Di",this.fid);this.ib(c,!0);this.ib(a,!0)}};q.Na=function(){mSd.ya.Na.call(this);this.update()};
q.jL=function(a){a.setAttribute("c",this.$j&&f1e(this.$j));this.Sa&&this.Sa.jL(a)};q.aLc=function(){var a=this.mL,b=this.$j.ta(),c=UE(b),d=this.Qb?this.Qb.ta():null;1<=c?(this.uh.stop(),qe(b,1),qe(a,1),d&&qe(d,1)):(c=(c+.1).toFixed(1),qe(b,c),d&&qe(d,c),b=UE(a),qe(a,(b+.05).toFixed(1)))};q.bLc=function(){var a=this.mL,b=this.$j.ta(),c=UE(b);0>=c?(this.Vb.stop(),qe(b,0),qe(a,.5),b.style.display="none"):(qe(b,(c-.1).toFixed(1)),b=UE(a),qe(a,(b-.05).toFixed(1)))};
q.fid=function(a){if(a=a.Cg()){var b=this.Ag.Jd();this.Ag.Ee(a);a={caption:a};this.$.od.Vd(new K3("changeCaption","picasa",[this.Ag.getId()],a),ka,Lp(function(){this.Ag.Ee(b);this.Qb.Lb(b);alert("Unable to save the caption. Please try again.")},this))}};
q.iLc=function(a){var b=qSd(this),c=a.$,d=this.Vk,f=Xb(b);if(90==c||270==c)c=f.width,f.width=f.height,f.height=c;var c=this.mL,h=d.wc()/d.Ic();f.width/f.height>h?(f=Math.min(f.height,d.Ic()),d=Math.floor(f*h)):(d=Math.min(f.width,d.wc()),f=Math.floor(d/h));le(c,d-d%2,f-f%2);pSd(this,this.mL,b);oSd(this,a.$,a.Sa);this.Sa&&this.Sa.resize();this.Qb&&this.Qb.resize();if(!xc||Gf("9"))qe(this.mL,.5),qe(this.$j.ta(),0),this.$j.ta().style.display="",this.Vb.stop(),this.uh.start()};
q.jLc=function(){if(!xc||Gf("9"))qe(this.mL,1),qe(this.$j.ta(),1),this.Qb&&qe(this.Qb.ta(),0),this.$j.ta().style.display="",this.uh.stop(),this.Vb.start();this.$.od.xk(8)};
var oSd=function(a,b,c){var d=a.mL,f=a.Ea(),h=d.clientWidth,k=d.clientHeight;if(90==b||270==b)h=d.clientHeight,k=d.clientWidth;a:{var d=h,m=k,p=a.$.rd().DU;if(p){var u=a.Vk,z;b&&0!=b%180?(z=u.Ic(),u=u.wc()):(z=u.wc(),u=u.Ic());var F=a.$b;z="hf"==F?1:p.width/z;p="vf"==F?1:p.height/u;if(1>=z&&1>=p){d=new Kb(Math.ceil(z*d),Math.ceil(p*m));break a}}d=new Kb(40,40)}m=!1;if(a.$j){z=b||0;F=c||0;c=h;p=k;u=a.Ab;a.$j.Qb||(u=f1e(a.$j),u=a.Ab=new Md(u.top,u.right,u.bottom,u.left),a.Km=F);z=(a.Km-z)/90;0>z&&(z+=
4);for(F=0;F<z;++F)u=new Md(1-u.right,u.bottom,1-u.left,u.top);c=new Md(Math.round(u.top*p),Math.round(u.right*c),Math.round(u.bottom*p),Math.round(u.left*c));a.$j.Ma();a.$j=null}else if("ytcb"==a.$b&&a.Ab)c=new Md(Math.round(a.Ab.top*k),Math.round(a.Ab.right*h),Math.round(a.Ab.bottom*k),Math.round(a.Ab.left*h));else{m=h;c=k;F=d;a.Ab?(p=new Md(Math.round(a.Ab.top*c),Math.round(a.Ab.right*m),Math.round(a.Ab.bottom*c),Math.round(a.Ab.left*m)),p.right-p.left<F.width&&(p.left+F.width<=m?p.right=p.left+
F.width:(p.left=Math.max(m-F.width,0),p.right=m)),p.bottom-p.top<F.height&&(p.top+F.height<=c?p.bottom=p.top+F.height:(p.top=Math.max(c-F.height,0),p.bottom=c))):p=F.height>.75*c||F.width>.75*m?new Md(Math.floor((c-F.height)/2),Math.ceil((m+F.width)/2),Math.ceil((c+F.height)/2),Math.floor((m-F.width)/2)):new Md(Math.floor(.125*c),Math.floor(.875*m),Math.floor(.875*c),Math.floor(.125*m));switch(a.$b){case "f":case "gpsq":case "gpscb":case "square":case "ytcb":z=p.bottom-p.top;u=p.right-p.left;z=Math.min(Math.max(F.height,
z),c);u=Math.min(Math.max(F.width,u),m);F=F.height/F.width;1==F?u=z=Math.min(u,z):1>F?z=Math.round(u*F):u=Math.round(z/F);p.top=Math.floor((c-z)/2);p.bottom=p.top+z;p.left=Math.floor((m-u)/2);p.right=p.left+u;break;case "hf":p.left=0;p.right=m;break;case "vf":p.top=0,p.bottom=c}c=p;m=!0}a.$j=new d1e(h,k,c,d,"f"==a.$b||"gpsq"==a.$b||"gpscb"==a.$b||"square"==a.$b||"ytcb"==a.$b,f);f=a.Ea();d=a.$j;c=a.$b;var M,X,da;switch(c){default:case "default":M=!0;case "f":case "gpsq":case "gpscb":case "square":case "ytcb":da=
!0;case "hf":case "vf":X=!0;case "none":}M&&(R2(d,new j3(d,"n",f)),R2(d,new j3(d,"e",f)),R2(d,new j3(d,"s",f)),R2(d,new j3(d,"w",f)));X&&R2(d,new k1e(d,f));da&&(X="gpsq"==c||"square"==c,R2(d,new V2(d,"ne",X,f)),R2(d,new V2(d,"sw",X,f)),R2(d,new V2(d,"se",X,f)),R2(d,new V2(d,"nw",X,f)));"none"!=c&&e1e(d,new l1e(d.wc(),d.Ic(),f));M||e1e(d,new p1e(f));"gpsq"==c?(e1e(d,new v1e("r",.096,f)),e1e(d,new v1e("l",.096,f))):"gpscb"==c&&(e1e(d,new v1e("r",.21875,f)),e1e(d,new v1e("l",.21875,f)));"ytcb"==c&&e1e(d,
new u1e(.35331,.19811,f));a.ib(a.$j);a.$j.render(a.Ko);m&&(M=f1e(a.$j),a.Ab=new Md(M.top,M.right,M.bottom,M.left),a.Km=b||0);b=a.$j.ta();le(b,h,k);pSd(a,b,qSd(a))};
mSd.prototype.update=function(){var a=this.Ag,b=this.ta(),c=this.mL;Pn(b,"a-Ci-Tc",!a);this.$j&&(this.$j.Ma(),this.$j=null);this.Sa&&this.Sa.setVisible(!!a);if(a){var a=this.$.od.La(a.getId()),a=this.Vk=a.Yh()[0],b=qSd(this),d=(new Kb(a.wc(),a.Ic())).Cr(b).round();c.src=a.Qs(Math.max(d.width,d.height));le(c,d.width,d.height);if(!xc||Gf(9))(new bF(c,450)).play(),this.Sa&&(new bF(this.Sa.ta(),450)).play();this.Sa&&this.Sa.reset();pSd(this,c,b);oSd(this);this.Sa&&this.Sa.resize();this.Qb&&this.Qb.resize()}else On(c,
!1),c.src="",ERd(c,0),this.Vk=null};var pSd=function(a,b,c){var d=zy(b);c.width+=2*a.Op;a=Math.round((c.width-d.width)/2)+20;My.Bo()?b.style.right=a+"px":b.style.left=a+"px";b.style.top=Math.round((c.height-d.height)/2)+"px";Pd(b,"position","absolute");b.style.display=""},qSd=function(a){var b=oe(a.ta().parentNode);b.height-=55;b.width-=2*a.Op+40;return b};mSd.prototype.qb=function(){mSd.ya.qb.call(this);this.$j&&(this.$j.Ma(),this.$j=null);this.Sa&&(this.Sa.Ma(),this.Sa=null);this.Ko=this.mL=null};
var c4=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.Ab=rSd(this);var d;a:{if(d=b.getOption("coords")){var f=d.split(",");if(4==f.length){var h=Za(f[0]),k=Za(f[1]),m=Za(f[2]),f=Za(f[3]);if(0<=h&&1>=h&&0<=k&&1>=k&&0<=m&&1>=m&&0<=f&&1>=f){d=new Md(Math.min(h,m),Math.max(k,f),Math.max(h,m),Math.min(k,f));break a}a="Crop coordinates are not within the bounds (0, 0) - (1, 1).  Given coordinates: "+d}else a="Invalid crop coordinates: "+d;throw Error(a);}d=null}this.mL=new mSd(a,d,b.getOption("mode"),
c);h=this.Jrb();d=this.mL;for(k=0;k<h.length;++k)z3(h[k],d),d=h[k];if(h=this.La())b=new G3(a,b,h),z3(b,d),d=b;this.Sa=new B3(a,Lp(this.jid,this),void 0,c);z3(this.Sa,d);this.ib(this.Sa);this.getHandler().Ja(a.Sa,"reset",Lp(this.reset,this))};t(c4,t3);q=c4.prototype;
q.uFa=function(){var a=this.Bc,b={},c=a.getOption("userId");c?b.userId=c:(a=a.getOption("username"))&&(b.username=a);a=this.Ab.substring(0,this.Ab.indexOf("."));this.getContext().od.Vd(new u3(a,[this.Ab],b),Lp(this.vB,this),Lp(this.D1a,this),!0)};q.D1a=function(){alert("Your image could not be loaded.  Please try a different image.");this.getContext().Sa.oD()};q.Pa=function(){var a=this.Sa;a.Pa();this.Kb(a.ta())};q.Na=function(){c4.ya.Na.call(this);this.vB()};
q.jid=function(){this.Sa.qh(!1);this.mL.jL(this.La());this.getContext().Sa.Sl([this.La()])};q.reset=function(){this.Sa.qh(!0);if(this.g3){var a=this.Bc.Sa;if(a){var b=this.getContext();b.Mh.On(a);b.rd().iaa&&b.Mh.Cca(!0)}else this.setActive(!0)}};q.Gf=function(){return this.Bc};q.La=function(){return this.Ab?this.getContext().od.La(this.Ab):null};q.Jrb=function(){return[new $Rd(this.getContext(),this.Ea())]};
q.vB=function(){var a=this.La(),b=this.mL;b.Ag=a;b.Nb()&&b.update();b.Ag&&b.mL&&b.Qb&&b.Qb.yN(b.mL,b.Ag.Jd());this.Sa.qh(!!a);this.Sa.focus()};q.setActive=function(a,b){c4.ya.setActive.call(this,a,b);a&&(this.Ab=rSd(this),this.La()||this.uFa(),this.vB())};var rSd=function(a){var b=a.Gf();a=b.getOption("service")||"picasa";return(b=b.getOption("id"))&&a+".0."+b};c4.prototype.qb=function(){c4.ya.qb.call(this);delete this.Sa;delete this.mL};
var d4=function(a,b,c){c4.call(this,a,b,c);XRd(this.La(),a);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("info");a=a.rd();a.nk()||a.ik()||w1e(this)};t(d4,c4);q=d4.prototype;q.Jrb=function(){return"none"!=this.Gf().getOption("mode")?[new $Rd(this.getContext(),this.Ea())]:[]};q.Pa=function(){d4.ya.Pa.call(this);this.Lh.Pa();this.Lh.render(this.ta());Qn(this.Lh.ta(),"a-ir")};q.Na=function(){d4.ya.Na.call(this);this.getHandler().Ja(this.Lh.ta(),"click",this.fEc)};
q.fEc=function(a){Sn(a.target,"a-Yd")?this.Lh.setVisible(!1):Sn(a.target,"a-Vya")&&(this.Lh.setVisible(!1),this.reset())};q.setActive=function(a,b){d4.ya.setActive.call(this,a,b);if(a){var c=this.Gf(),c=!this.getContext().rd().Kra&&!!c.Sa||1>=this.getContext().rd().uh.length;this.getContext().Mh.Cca(!(this.g3&&c));this.mL.update()}};q.reset=function(){this.g3&&this.getContext().od.Vd(new K3("deleteAlbum","picasa",[],{label:"profile_photos.draft"}),ka,ka);d4.ya.reset.call(this)};
var w1e=function(a){var b=o1e(a.Gf());b&&"upload"==b.$&&(a.getContext().rd(),a.La().Qe(),a.getContext().od.Ag(a.La().Qe(),a,Lp(a.Qb,a),function(a){return!!G2d(a)&&zhd(G2d(a))}))};
d4.prototype.Qb=function(a){var b=this.La().Yh(),b=b[b.length-1],c;Br(G2d(a)).length?b&&(470>b.wc()||470>b.Ic())&&(c="This photo is very small. Do you have a better one?"):c="Are you sure people will recognize you in this photo? It doesn't seem to have a face in it.";c&&(a=this.Ea(),c=a.Pa("span",null,c,"\u00a0","\u00a0",a.Pa("a",{href:"javascript:void(0)","class":"a-s a-Vya"},"Upload a different photo")),a=this.Ea(),this.Lh.setContent(a.Pa("span",null,qa(c)?cd(a,c):c,"\u00a0","\u00a0",a.Pa("a",{href:"javascript:void(0)",
"class":"a-s a-Yd"},"Dismiss"))),this.Lh.setVisible(!0))};d4.prototype.uFa=function(){var a=this.Gf().getOption("url");a?(a={url:a,label:"profile_photos.draft"},this.getContext().od.Vd(new K3("importPhoto","picasa",[],a),Lp(this.$b,this),Lp(this.D1a,this))):d4.ya.uFa.call(this)};d4.prototype.$b=function(a){this.getContext().od.Xp(a.Ae());this.Ab=a.Ae()[0].getId();this.vB()};
var sSd=function(a,b,c){c4.call(this,a,b,c);this.Qb=null};t(sSd,c4);sSd.prototype.uFa=function(){X3.ia().load(URd(this.Gf().getOption("url")),Lp(this.$b,this),Lp(this.D1a,this))};sSd.prototype.$b=function(a){var b=this.Gf().getOption("url");a=a.target;var c={};c.id=String(Caa(b));c.url=b;c.name=Jf(b).getPath().split("/").pop();c.type="photo";c.serviceId="url";this.Qb=new Vw(c);this.Qb.ZE([new Uw(a.src,a.naturalWidth,a.naturalHeight)]);this.getContext().od.Xp([this.Qb]);this.vB()}; sSd.prototype.La=function(){return this.Qb};
var tSd=function(a,b,c){c4.call(this,a,b,c)};t(tSd,c4);tSd.prototype.Pa=function(){tSd.ya.Pa.call(this);var a=St("Devices preview",this.Ea());this.getHandler().Ja(a,"action",this.Qb);var b=this.Ea().Pa("div","a-tb-tc-qa-c-Z");this.Sa.cb().appendChild(b);a.render(b)};tSd.prototype.Qb=function(){var a=this.La();a&&(this.mL.jL(a),ZRd(a,this.Gf(),this.getContext()))};
var uSd=function(){kd.call(this)};t(uSd,x3);uSd.prototype.uj=function(a,b,c){var d=b.rd().Ag;return"crop"==a.$?b.rd().jg?(xc&&!Gf("9")&&BN(a,"mode","none"),new d4(b,a,c)):"ytcb"==d?new tSd(b,a,c):a.getOption("url")?new sSd(b,a,c):new c4(b,a,c):null};vg(xg(E.ia(),"opr"),uSd);

G("opr");I();
}catch(e){_DumpException(e)}
try{
var TXd=function(){var a;a="en-US".replace("_","-");"en-us"==a.toLowerCase()&&(a="en_us");return"https://picasa.google.com/intl/{locale}/web/privacy.html".replace("{locale}",a)},HXd=function(){this.$={}},JXd=function(a,b){a.$.at=b;return a},KXd=function(a,b){a.$.det=b;return a},LXd=function(a,b){a.$.dzt=b;return a},MXd=function(a){a.$.dzat="Or, if you prefer...";return a},NXd=function(a,b){a.$.text=b;return a},OXd=function(a,b){a.$.mechanisms=b;return a};
HXd.prototype.vm=function(a){this.$.metadata=a;return this};var QXd=function(a,b){a.$.selectLabel=b;return a},RXd=function(a){a.$.serviceId="picasa";return a},SXd=function(a){a.$.uet="There was an upload error.<br>Make sure to upload a JPG, GIF, or PNG file and try again.";return a};HXd.prototype.Yc=function(a){this.$.url=a;return this};HXd.prototype.Le=function(){var a=this.$;if(!a.text)throw Error("Hh");if(!a.selectLabel)throw Error("Ih");if(!a.url)throw Error("Jh");return new PVd(a)};
var UXd=function(){var a='When you upload photos, they\'ll be stored  in an online album in Picasa Web Albums, Google\'s free photo sharing service.\n <a target="_blank" class="upload-text-a" href="'+(TXd()+'">View Picasa program policies and privacy notice</a>');return OXd(QXd(MXd(LXd(RXd(KXd(SXd(NXd(new HXd,a)),"Oops, you dragged more than one photo!<br>Please only drag your desired photo.")),"Drag photos here")),"Select photos from your computer"),["XHR","HTML_FORM"]).Yc("/upload/photos/resumable").vm({disable_asbe_notification:"true"})},
VXd=function(){return QXd(MXd(LXd(UXd(),"Drag a photo here")),"Select a photo from your computer")},FXd=function(a){qNc.call(this,a||"/picker");this.$={};this.mL=new Af(this.Ab);this.Sa=[];this.Qb={};this.$.uploadConfigs=[];(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.n5(a)};t(FXd,URb);FXd.prototype.$b=!1;FXd.prototype.Ry=function(a,b){this.Sa.push([a,b||{}]);return this};var GXd=function(a,b,c){a.$.uploadConfigs[b]=c;return a};q=FXd.prototype;
q.Le=function(){this.$.pp=this.Sa.length?this.Sa:void 0;this.$.uploaders=Ub(this.Qb)?void 0:this.Qb;var a=this.$;if(!a.hl)throw Error("Bh");if(!a.hostId)throw Error("Ch");for(var a=this.Po("upload"),b=0;b<a.length;b++){var c=a[b],d=c.getQuery();if(!d||!this.$.uploadConfigs[d])throw Error("Fh`"+c);}if(this.$.minimal)throw Error("Cl");return new R4(this,this.Ea())};q.Gk=function(a){this.$[a]=!0;"profilePhoto"==a&&this.yla("square").Ry("profile");return this};q.bNa=function(){return this.$b};q.Ic=function(){return this.Xg};
q.IAa=function(){this.$.nav=nme(this.Vba);return this.$};q.getTitle=function(){return this.$.title};q.wc=function(){return this.Qf};q.FYb=function(a){this.$.apt=a;return this};q.zTb=function(a){this.$.actions=$b(a);return this};q.ATb=function(a){this.$.authuser=a;return this};q.xJ=function(a){this.$.cm=a;return this};q.fCa=function(a,b){b&&(this.Qb[a]=b);return this};q.yla=function(a){this.$.cropMode=a;return this};q.ud=function(a){this.$b=a;return this};q.BTb=function(a){this.$.eventId=a;return this};
q.m5=function(a){this.$.maxItems=a;return this};q.myb=function(a){this.$.minItems=a;return this};q.CTb=function(a){this.$.excludeIds=a.join(",");return this};q.LUa=function(a){this.$.e=a.join(",");return this};q.Frc=function(a){this.$.fdtm=a;return this};q.uM=function(a){this.$.groupId=a;return this};q.v$a=function(a){if(!a.match("^[a-zA-Z0-9_\\-\\.]+$"))throw Error("Dh");this.$.hostId=a;Hf(this.mL,"hostId",a);return this};q.n5=function(a){a&&(this.$.origin=a);return this};
q.aZb=function(a){this.$.defaultView=a;return this};q.DTb=function(a){this.$.hl=a;Hf(this.mL,"hl",a);return this};q.Bo=function(){var a=this.$.hl;return!!a&&Nx(a)};q.Wba=function(a,b){this.$.minph=parseInt(b,10);this.$.minpw=parseInt(a,10);return this};q.xs=function(a){this.$.selectButtonLabel=a;return this};q.setSize=function(a,b){this.Qf=a;this.Xg=b;return this};q.kY=function(a){var b=[];a=a.split(",");for(var c=0;c<a.length;c++)b.push(a[c]);this.$.thumbs=b;return this};
q.setTitle=function(a){this.$.title=a;return this};q.fYa=function(a){this.$.actionPaneText=a;return this};q.Hdb=function(a){this.$.uploadButton=a.toString();return this};q.Xba=function(a){this.$.uploadToAlbumId=a;return this};q.NUa=function(a){this.$.vg=a;return this};q.cNa=function(){var a=Hf(Hf(this.mL,"nav",nNc(this.Vba)),"native","1");Hf(a,"origin",this.$.origin);this.Sa.length&&Hf(a,"pp",Rf(this.Sa));return a.clone()};
q.PSc=function(a){this.$.serviceIds||(this.$.serviceIds=[]);this.$.serviceIds.push(a);return this};var WXd=function(a){QNc.call(this,a);this.uh=[]};t(WXd,QNc);WXd.prototype.open=function(a,b,c,d,f){this.dispatchEvent(new ZMc(this.ka(),"eu"));b=a.jY(Lp(this.ttb,this,b)).v$a(c).Le();b.ud(!!f||a.bNa());b.render();b.setVisible(!0);return b};
WXd.prototype.Sm=function(){var a=["XHR","FLASH","HTML_FORM"],b=UXd().Yc("/_/upload/photos/resumable");OXd(b,a);var c=KXd(JXd(VXd(),["photo"]),"Oops, you dragged more than one photo!<br> Please only drag your desired profile photo.").vm({async_thumbnail:"false",auto_create_album:"profile_photos.draft",disable_asbe_notification:"true",enable_face_detection:"true",use_upload_size_pref:"true"}).Yc("/_/upload/photos/resumable"),d=VXd().Yc("/_/upload/photos/resumable"),f='By uploading videos, you agree to the <a target="_blank" class="upload-text-a" href="'+
(TXd()+'">Upload Terms and Conditions</a>.'),f=MXd(LXd(KXd(QXd(NXd(JXd(UXd(),["video"]),f),"Choose videos to upload"),"Oops, you dragged more than one image!"),"Drag videos here")).Yc("/_/upload/photos/resumable"),h=UXd().Yc("/_/upload/dragonfly");OXd(h,a);var a=(new FXd("/_/picker")).ud(!1),k=this.Ea();a.wb=k;a.$.peopleSearchPath="/_/picker/complete/search";a.$.loadCirclesUrl="/_/picker/lookupcircles";b=GXd(GXd(GXd(GXd(GXd(a,"photo",d.Le()),"photos",b.Le()),"profile",c.Le()),"videos",f.Le()),"dragonflyphotos",
h.Le());c=this.ka();b.$.appContext=c;v(this.uh,b.PSc,b);UNc(this,b);return b};WXd.prototype.yra=function(a,b,c,d,f){a=WXd.ya.yra.call(this,a,b,c,d,f);(b=this.ka().Vc(eH))&&(b=b.DU())&&a.xJ(b);return a};WXd.prototype.KMc=function(a){this.uh.push(a)};H("onepick");
Bg(function(a){Gg(a,gz,function(a){var c=new WXd(a);(a=a.Vc($gb))&&a.Tz(c);return c})});
G("onepick");I();
}catch(e){_DumpException(e)}
try{
Wf.prototype.GGa=g(1,function(a){if(this.$){var b=this.$.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Nf(b)}});
var T$f=function(a){var b=[],c="",d;a=Ca(a);for(var f=0;f<a.length;)d=tcb(a,f),Oa(",;",d)||" "==d&&zle(c).Hi()?(Ea(c)||b.push(zle(c)),c="",f++):(c+=d,f+=d.length);Ea(c)||b.push(zle(c));return b},fYd=function(a){var b=null;try{b=a.cssRules||a.rules}catch(c){if(15==c.code)throw c.styleSheet=a,c;}return b},hYd=function(a){var b=[];a=a||document.styleSheets;var c=ia(void 0)?void 0:!1;if(a.imports&&a.imports.length)for(var d=0,f=a.imports.length;d<f;d++)tb(b,hYd(a.imports[d]));else if(a.length)for(d=0, f=a.length;d<f;d++)tb(b,hYd(a[d]));else{var h=fYd(a);if(h&&h.length)for(var d=0,f=h.length,k;d<f;d++)k=h[d],k.styleSheet&&tb(b,hYd(k.styleSheet))}!(a.type||a.rules||a.cssRules)||a.disabled&&!c||b.push(a);return b};H("oppe");
var R3e=function(a){Qw.call(this,a);this.TNb=!(!a.response||!a.response.showNotifications)};t(R3e,Qw);$S(21,function(a){return new R3e(a)});var S3e=function(a,b){Mw.call(this);this.zl=a;this.Ab=b};t(S3e,Mw);S3e.prototype.PD=pg(new Af("notifications"));S3e.prototype.Sq=function(){return 21};S3e.prototype.xE=function(){var a=new Ze;Pw(a,"mode",this.zl);this.Ab&&Pw(a,"notificationsSeen",Rf(this.Ab.Pe()));return a};
var iYd=function(a){return a.replace(/[.]/g,"_")},jYd=function(a){return"people.0."+a},c4e=function(a){return a.Xa()||iYd(a.yc())},kYd=function(a,b,c){Pn(a.rd().fG(),"a-Wb-oac"+b,c)},lYd=function(a){return"people"==a.$&&"selected"==a.getOption("type")&&!a.getQuery()},mYd=function(a){return"people"==a.$&&"people"==a.getOption("type")&&!a.getQuery()},nYd=function(a,b){var c={serviceId:"people",type:"person"};c.name=a;c.id=iYd(b);c.url="mailto:"+b;var d={};d.email=b;c.attrs=d;return c};
var oYd=function(a){this.jJ=a};oYd.prototype.vx=function(a,b,c){var d=bN(a),f=d.split(/\s+/);b=ec(this.jJ.wn(),Lp(this.$,this,f),this).slice(0,b);c(a,zg(b,function(a){return new aN(d,void 0,!1,void 0,void 0,void 0,void 0,a)}))};oYd.prototype.$=function(a,b){var c=b.getName();if(Ea(Ga(c)))return!1;c=bN(c).split(/\s+/);return i$b(a,c)};
var pYd=function(a){Rw.call(this);this.$=a;var b=a.rd().Gna||My.Qb+"lookupcircles";this.jv=Hf(Jf(b),"authuser",a.rd().Km);this.Db=Jf(My.Qb+"resolveemail");this.$b=new Ze;this.Vb=[];(this.jJ=a.rd().zp()||null)?this.jJ.wL(!0,!0).addCallback(Lp(function(a){this.Ab=a;this.initialize()},this)):this.Ab=new hE;this.mL=new ag;qYd(this,this.$.ka());this.dw=new df};t(pYd,Rw);var rYd=function(a,b){return yb(a.Dfb(),b.Dfb())};pYd.prototype.iu=function(){return 600};
var qYd=function(a,b){var c=new oE(b);x(a,c);c.QN="l";a.$.Ab.addCallback(function(a){Yf(d4e(this.jv,a),Lp(this.zF,this,c),"GET")},a)};pYd.prototype.zF=function(a,b){if(!this.isDisposed()){var c=b.target;c.Cod()?c.ig()&&(c=c.GGa(")]}'"),c=new WD(c),X$a(a,c),a.initialize(c),a.QN="i",a.wL(!0,!0).addCallback(Lp(this.lN,this,a))):this.mL.jd(null)}};
pYd.prototype.lN=function(a,b){this.isDisposed()||(this.jJ=a,tYd(this,b),this.initialize(),this.mL.By(a),v(this.Vb,Lp(this.Yy,this)),this.Vb=[],this.Ba.Ja(this.$.$,"si",this.yH))};var tYd=function(a,b){var c=new hE(b.xp());if(a.Ab){var d=new jE(c);a.Ab.Sa(function(a){c.get(a.getId())||e1(d,a)},a);d.Hf()}a.Ab=c};
pYd.prototype.initialize=function(){this.Ag=new eN(this.Ab);var a=this.jJ,b=this.Ab.xp(),c=ec(b,function(b){return a.Dv(b)});new hE(c);this.Tx=ec(b,function(a){return!!a.$.Jt()});wb(this.Tx,rYd);this.y2=ec(b,function(b){return!(!a.Dv(b)&&!b.$.Jt())});wb(this.y2,rYd);this.lp=new eN(this.Op=new hE);this.Xb=new oYd(a);this.yQ=new hE(ec(b,function(b){return!a.Dv(b)}));pYd.ya.initialize.call(this)};pYd.prototype.Qb=function(a){return 13==a.Sq()};
var uYd=function(a,b,c){if(c.W_(1023))return b;var d=[];v(b,function(a){c.W_(1)&&a.nj()&&!a.Ck()?d.push(a):!c.W_(2)||a.nj()||a.Ck()?c.W_(4)&&a.Ck()&&d.push(a):d.push(a)},a);return d},vYd=function(a,b,c){b=zg(b,function(a){return a.Oc()},a);return uYd(a,b,c)};
pYd.prototype.Ko=function(a){if(this.mL.jl||"g"!=a.$&&("p"!=a.$||a.getParent()||a.getQuery())&&!ba(this.$b,a.aD()))if(MEa(this,a.getId()),"sa"!=a.$||a.getQuery()||!a.Qb||a.getParent())if("s"==a.$)xYd(this,a,[]);else if("g"==a.$)xYd(this,a,zg(uYd(this,this.Tx,a.Sa),Lp(this.Sa,this)));else{var b=[];if("c"==a.$||"a"==a.$)if(b=zg(this.jJ.wn(),Lp(this.Km,this)),"c"==a.$){xYd(this,a,b);return}var c=a.getParent();if(c&&!a.getQuery())this.jJ.tb(c),c=uYd(this,this.jJ.tb(c).xp(),a.Sa),wb(c,rYd),xYd(this,a,
zg(c,Lp(this.Sa,this)));else if("f"==a.$){var d;this.Ag.vx("",1E3,Lp(function(b,c){var f=vYd(this,c,a.Sa),f=ub(f,0,12);d=zg(f,function(a){return this.Sa(a)},this);Sw(this,a.getId(),FYd(d,void 0))},this))}else{var f;(c=a.getQuery()||"")?(this.Xb.vx(c,1E3,Lp(function(a,c){b=zg(c,function(a){return this.Km(a.tb())},this)},this)),this.Ag.vx(c,1E3,Lp(function(b,c){f=zg(vYd(this,c,a.Sa),function(a){return this.Sa(a)},this)},this))):f=zg(uYd(this,this.y2,a.Sa),function(a){return this.Sa(a)},this);var h;
this.lp.vx(c,1E3,Lp(function(a,b){h=zg(b,function(a){return this.Sa(a.Oc())},this)},this));var k=[];0!=b.length||0!=f.length||a.Sx||(k=zYd(this,c,a),0<k.length&&this.dw.add(a.getId()));k=rb(b,f,h,k);if(ba(this.$b,a.aD())){var m=this.$b.get(a.aD());m.length!=k.length?(k=CYd(m,k),this.$b.set(a.aD(),k)):k=m}this.mL.jl&&c&&a.Oo()>=k.length?100>c.length?DYd(this,a).addCallback(function(b){Sw(this,a.getId(),FYd(b,void 0))},this):Sw(this,a.getId(),FYd([],void 0)):xYd(this,a,k)}}else wYd(this,a);else this.Vb.push(a)};
var wYd=function(a,b){var c=zg(a.jJ.wn(),Lp(a.Km,a)),d=zg(a.yQ.xp(),Lp(a.Sa,a));xYd(a,b,rb(c,d))},yYd=function(a,b){return a.dw.contains(b.getId())},zYd=function(a,b,c){var d=[],f=[];v(T$f(b),function(a){var b=a.un();a=a.getName();if(b&&yE(b)){var c;this.Ag.vx(b,1,Lp(function(a,d){var f=d.length&&d[0].Oc();f&&f.yc()==b&&(c=this.Sa(f))},this));c||this.lp.vx(b,1,Lp(function(a,d){var f=d.length&&d[0].Oc();if(f&&f.yc()==b){var h={serviceId:"people",type:"person"};h.name=f.getName();h.id=iYd(f.yc());h.url=
"mailto:"+f.yc();var M={};M.email=f.yc();h.attrs=M;c=h}},this));c||(f.push(b),c=a?nYd(a,b):nYd(b,b));d.push(c)}},a);d.length&&c&&(c.Qb=!0);f.length&&AYd(a,f);return d},d4e=function(a,b){var c=a.clone();Hf(c,"token",b.Gf());c.$.extend(b.d3b);return c},e4e=function(a,b,c){a.$.Ab.addCallback(Lp(function(a){var f=new Ff;Pb(b,function(a,b){f.add(b,a)},this);Yf(d4e(this.Db,a),Lp(function(a){this.isDisposed()||(a=a.target,a.Cod()&&(a=a.GGa(")]}'"),a=new WD(a),c(a)))},this),"POST",f.toString())},a))},g4e=
function(a,b){var c=new ag,d=new df;if(!b.length)return c.By(d),c;e4e(a,{ids:b.join(",")},Lp(function(a){d.addAll(a?f4e(this,a.Ms()):[]);c.By(d)},a));return c},AYd=function(a,b){v(b,function(a){e4e(this,{email:a},Lp(function(b){if((b=b.Ms()[0])&&b.Ce()&&b.Ce().Xa()){var f=i4e(b);b=jYd(iYd(a));var h=this.$.od,k=h.La(b),k=BYd(k.getName(),k.Qe(),a),m=new jE(this.Op);ASd(m,k.getKey());m.Hf();k=new jE(this.Ab);e1(k,f);k.Hf();f=new Vw(this.Sa(f));f.setAttribute("oid",b);h.$Ua(b,f);h.Xp([f])}},this))},a)},
i4e=function(a){var b=a.Lj()||new Ck;return new yB(a.Ce(),b)},f4e=function(a,b){var c=[],d=new jE(a.Ab),f=[];v(b,function(a){a=i4e(a);e1(d,a);c.push(a.Xa());f.push(new Vw(this.Sa(a)))},a);d.Hf();a.$.od.Xp(f);return c};pYd.prototype.yH=function(a){var b=this.$.od;v(a.ur,function(a){a=b.La(a);if(!EYd(this,a.Qe())&&"person"==a.Ra()){a=BYd(a.getName(),a.Qe(),a.getAttribute("email"));var d=new jE(this.Op);e1(d,a);d.Hf()}},this)};
var CYd=function(a,b){var c=new df;v(a,function(a){c.add(a.id)});var d=sb(a);v(b,function(a){c.contains(a.id)||d.push(a)});return d},DYd=function(a,b){var c=new ag,d=b.Sa;eYd(a.$,!d.W_(1),!d.W_(2)).addCallback(function(a){a.vx(b.getQuery(),10,Lp(function(a,b){b=ec(b,function(a){return!this.Ab.cC(a.Oc().getKey())},this);var f=zg(vYd(this,b,d),function(a){return this.Sa(a)},this);c.By(f)},this))},a);return c},EYd=function(a,b){var c=gE(-1!=b.indexOf("@")?void 0:b,-1!=b.indexOf("@")?b.replace(/[_]/g,
"."):void 0);return(c=a.Ab.cC(c))&&new Vw(a.Sa(c))},xYd=function(a,b,c){var d=b.Oo(),f=d+50,h="c"==b.$,k=!h&&(f<c.length||!!b.getQuery());a.mL.jl||h||(k=k||!b.getParent()||!!b.getQuery());d=b.Qb?c:ub(c,d,f);!a.mL.jl&&k&&a.$b.set(b.aD(),c);c=k?""+f:void 0;Sw(a,b.getId(),FYd(d,c))},FYd=function(a,b){var c={},d={};d.docs=a;d.cursor=b;c.response=d;return c},BYd=function(a,b,c){var d=new Ck;a&&tB(d,a);a=new yk;b&&Py(a,3,b);c&&Py(a,1,c);return new yB(a,d)};
pYd.prototype.Sa=function(a){var b={};b.name=a.Ob(!0);b.url=AHc(a);b.serviceId="people";b.id=c4e(a);b.type="person";var c={};c.u=WRd(a.Cd());c.r=!0;b.thumbs=[c];c={};c.email=a.yc();c.ci=this.jJ&&this.jJ.DU(a);c.ises=a.nj();c.isps=!!a.Nea;b.attrs=c;return b};pYd.prototype.Km=function(a){var b={};b.name=a.getName();b.description=a.Jd();b.serviceId="people";b.id=a.getKey();b.type="circle";a=U$a(this.jJ,a.getKey())[0];b.nChildren=a?a.mL():0;return b};
pYd.prototype.Sx=function(){var a=this.$.$.Sk(!0),b=new df;v(a,function(a){(a=this.$.od.La(a))&&("person"==a.Ra()?b.add(a.Qe()):"circle"==a.Ra()&&v(this.jJ.tb(a.Qe()).xp(),function(a){b.add(c4e(a))},this))},this);return b.Fc()};pYd.prototype.qb=function(){pYd.ya.qb.call(this);delete this.Ab;delete this.jv;delete this.Db;delete this.$b;delete this.Vb;delete this.jJ;delete this.mL};
var j4e=function(a,b){m4.call(this,a,b);this.Sa=parseInt(a.circleActionSource,10)};t(j4e,m4);
j4e.prototype.hp=function(a,b,c){this.$b.addCallback(function(d){var f=Jf(My.Qb+"mutatecircle");Hf(f,"token",d.Gf());f.$.extend(d.d3b);d=new Ff;sa(this.Sa)&&d.add("circleActionSource",this.Sa);var h=a[0].getAttribute("ncn");h&&d.add("newCircleName",h);var k=[],m=[];v(a,function(a){a.getAttribute("rp")?k.push(a):m.push(a)},this);var p=[],u=this.Ab.FH.getOption("parent");u&&(d.add("circleId",u),this.$.Vd(new Yw("p",void 0,u),Lp(function(a){p=a.Ae();var b=new df;b.addAll(zg(p,function(a){return a.getId()},
this));m=ec(m,function(a){return!b.contains(a.getId())},this)},this),ka,!1));m.length&&d.add("addIds",k4e(this,m));k.length&&d.add("removeIds",k4e(this,k));Yf(f,Lp(function(d){d=d.target;if(d.Cod()){var f;try{f=d.GGa("&&&START&&&")}catch(M){c(l4e(this));return}if(f.error)c(l4e(this,f.error));else{d=f.circleId?f.circleId:u;var X=jYd(d);v(rb(p,a),function(a){a.zi=X},this);var da=this.$.La(X);da?(h&&da.Wb(h),I2d(da,da.Tm()+m.length-k.length)):da=m4e(d,h,m.length);f.kansasVersionInfo&&(da.Vb=f.kansasVersionInfo);
this.$.Xp([da]);b(rb(p,m))}}else c(l4e(this))},this),"POST",d.toString())},this)};
var l4e=function(a,b){switch(b||1){case 2:return"Adding these people will put you over the limit for your circles. Please see "+("https://support.google.com/plus/answer/1733011?hl="+My.$+" for more information.");default:return a.Ab.FH.getOption("parent")?"Could not update your circle.  Please try again later.":"Could not create your circle.  Please try again later."}},m4e=function(a,b,c){var d={};d.name=b;d.serviceId="people";d.id=a;d.type="circle";d.nChildren=c;return new Vw(d)},k4e=function(a, b){return zg(b,function(a){a=a.Qe();return-1!=a.indexOf("@")?a.replace(/[_]/g,"."):a},a).join(",")};
var o4e=function(a,b){E3.call(this,a,new Vw({}),n4e.ia(),b);this.Bm(16,!1);this.Bm(8,!1);this.y2=new gD(b);x(this,this.y2);this.Qb=new vx("Add by name or email");x(this,this.Qb)};t(o4e,E3);q=o4e.prototype;q.zt=function(a){o4e.ya.zt.call(this,a);a&&this.iVa()};
q.Na=function(){o4e.ya.Na.call(this);var a=this.y2.fb("a-nl-ma-N");this.Qb.yb(a);this.mL=aYd(this.getContext(),a);x(this,this.mL);var b=new rw(a);x(this,b);this.getHandler().Ja(this.ta(),"click",this.iVa).Ja(this.mL,"aj",this.KHb).Ja(a,"keydown",this.SHb)};q.iVa=function(){this.y2.setVisible(!0);Uf(this.Qb.rq,0,this.Qb)};
q.SHb=function(a){if((9==a.keyCode||27==a.keyCode)&&1<Ge(this.getParent())){a.preventDefault();this.y2.setVisible(!1);this.y2.fb("a-nl-ma-N").blur();var b=My.Bo()?37:39;try{this.hT(new foa(b,b,!1,null))}catch(c){}}a.stopPropagation()};q.KHb=function(a){var b=a.row&&a.row.Oc(),c;b?(a=wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()),c=new Vw(a.Sa(b))):yE(a.row.getQuery())&&(b=a.row.getQuery(),b=nYd(b,b),c=new Vw(b));c&&(this.dispatchEvent(new p4e(c)),this.Qb.qe(""),this.y2.setVisible(!1))};
var p4e=function(a){A.call(this,"mf");this.$=a};t(p4e,A);p4e.prototype.La=function(){return this.$};var n4e=function(){F3.call(this,"a-nl-ma")};t(n4e,F3);la(n4e);
n4e.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("input","a-nl-ma-N b-hb"),d=a.getContext().rd().YUa||"other",f=(new Z("{GENDER, select, male {Add a person}female {Add a person}other {Add a person}}")).format({GENDER:d}),b=b.Pa("div","a-nl-ma",b.Pa("div","a-nl-ma-m-nb",d=b.Pa("span","a-n-Ac-id")),b.Pa("div","a-nl-ma-s-nb",f)),f=a.y2;f.setContent(c);f.Fg(d);f.setPosition(1,0);f.render(a.getContext().rd().fG());Qn(f.ta(),"a-nl-ma-i");return b};
var fbg=function(a){yp.call(this,"",void 0,a);this.$=Ejc("Save",this.Ea());x(this,this.$)};t(fbg,yp);fbg.prototype.Pa=function(){fbg.ya.Pa.call(this);this.$.render(this.cb())};fbg.prototype.Na=function(){fbg.ya.Na.call(this);this.getHandler().Ja(this.$,"action",this.Qo)};
var LYd=function(){};t(LYd,vo);la(LYd);LYd.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=b.Pa("div","a-vd-za d-k-l",b.Pa("span","a-vd-za-yb",b.Pa("span","a-vd-za-kb",c.getName()||c.getAttribute("email")),b.Pa("span","a-vd-za-bd a-n-ab-z-wt-jf")));if(c=c.getAttribute("email"))b=new mF(d,c,b),b.$E(2),x(a,b);return d};LYd.prototype.Ag=function(a){return a.ta().children[0].children[1]};LYd.prototype.Pc=function(){return"a-vd-za"};LYd.prototype.uI=function(){return"option"};
var q4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{There was a server error, please try again later.}male{There was a server error, please try again later.}other{There was a server error, please try again later.}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))};
var r4e=function(a,b,c,d){y3.call(this,a,"a-Tf-Cc","a-Tf-Bb","a-Tf-B","top",d);this.Bc=b;this.Vk=c;z3(this,c);this.mL=new vx("Name your circle...");x(this,this.mL);this.Km=null;this.Qb=new gD(d);x(this,this.Qb);this.uh=null;this.$b=new df;var f=b.getOption("parent");a.od.Vd(new Yw("c"),Lp(function(a){v(a.Ae(),function(a){a.Qe()!=f&&this.$b.add(a.getName())},this)},this),ka,!1);this.Vb=new Un(Lp(this.Ko,this,!0),200);this.Tx=null};t(r4e,y3);q=r4e.prototype;
q.Pa=function(){r4e.ya.Pa.call(this);this.setSize(100);var a=!this.Bc.getOption("parent");this.Ab=new Ot("Select all",this.Ea());this.ib(this.Ab);this.Ab.Pa();var b=this.Ea(),b=this.Ag=b.Pa("div","a-Tf-Z",b.Pa("div","a-Tf-O",this.Bc.getOption("viewTitle")||(a?"Create a Google+ circle":"Edit your Google+ circle")),this.Tx=b.Pa("div","a-Tf-ee",this.Bc.getOption("viewInfo")||(a?"Create a new Google+ circle with the following people.":"Select people that you want to be in this circle.")),this.uh=b.Pa("div",
"a-Tf-N-nb",a=b.Pa("input","a-Tf-N b-hb")),b.Pa("div","a-Tf-Gg-nb",this.Km=b.Pa("span")),b.Pa("div","a-Tf-ea",this.Ab.ta()));this.mL.yb(a);this.mL.Ta(!1);this.Yg=new rw(a);x(this,this.Yg);this.Qb.setContent(M7a);this.Qb.Fg(a);this.Qb.IA(!1);this.Qb.setPosition(1,2);this.Qb.render(this.getContext().rd().fG());Qn(this.Qb.ta(),"a-Tf-i");this.Sa.appendChild(b)};
q.Na=function(){r4e.ya.Na.call(this);this.getHandler().Ja(this.Yg,"input",this.nA).Ja(this.getContext().$,"si",this.Db).Ja(this.Ab,"action",this.cIb).Ja(this.getContext().$,"si",this.jVa).Ja(this.getContext().mL,"set-view-options",this.Pkb);this.setSize(zy(this.Ag).height);this.Db();this.jVa()};q.Pkb=function(a){if(a=a.data.viewOptions&&a.data.viewOptions.viewInfo)this.Ea().uq(this.Tx,a),this.setSize(zy(this.Ag).height)};
q.jVa=function(){Uf(function(){qng(this,this.Vk.Rd().Ae().length==this.getContext().$.Sk(!0).length)},0,this)};q.cIb=function(){var a=2!=this.Ab.getStyle();a?this.Vk.OMa():this.getContext().$.lJ(!0);qng(this,a)};var qng=function(a,b){a.Ab.setContent(b?"Unselect all":"Select all");a.Ab.zf(b?2:0)};r4e.prototype.nA=function(a){var b=Ia(this.mL.getValue());this.$b.contains(b)?this.Vb.start():(this.Vb.stop(),this.Ko(!1));this.dispatchEvent(a)};
r4e.prototype.Ko=function(a){if(a){var b='You already have a circle named "'+(Ia(this.mL.getValue())+'", please choose a different name.');this.Qb.setContent(Hua(b))}this.Qb.setVisible(a);Pn(this.uh,"a-Poa-N-wa",a)};var t4e=function(a){var b=Ia(a.mL.getValue());return!Ea(b)&&!a.$b.contains(b)};r4e.prototype.Db=function(){var a="Selected ("+(wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()).Sx()+")");Rc(this.Km,a)};
var k3=function(a,b,c,d){t3.call(this,a,d);this.Xd=b;this.list=c;this.cj=new B3(this.getContext(),Lp(this.bMa,this),void 0,this.Ea());this.ib(this.cj);qr(this.getHandler().Ja(a.$,"si",this.pX),this.list,"change",this.pX,!1,this)};t(k3,t3);k3.prototype.setActive=function(a,b){k3.ya.setActive.call(this,a,b);this.list.setActive(a,b)};k3.prototype.pX=function(){this.g3&&this.cj.qh(this.getContext().$.OEb()||!!this.Xd.getOption("selectNone"))};
var u4e=function(a){var b=wg(xg(E.ia(),"oppe")),c=a.getContext();return b.d$(c,a.Ea())};q=k3.prototype;q.Pa=function(){var a=this.cj;a.Pa();this.Kb(a.ta())};q.Na=function(){k3.ya.Na.call(this);var a=this.getContext();this.getHandler().Ja(a.mL,"select-people",this.qJc)};q.bMa=function(){for(var a=this.getContext(),b=a.od,c=a.$.Sk(!0),d=[],f=0;f<c.length;f++){var h=b.La(c[f]),k=h.Ra();"contact"!=k&&"person"!=k&&"circle"!=k||d.push(h)}a.Sa.Sl(d)};
q.qJc=function(a){var b=a.data.people;a=a.data.circles;this.g3&&(b&&b.length&&this.Pcb(b),a&&a.length&&v4e(this,a))};q.csa=Gx;q.Pcb=function(a){this.getContext();var b=u4e(this),c=b.mL;if(!this.csa()||My.Sa||c.jl){var d=[],f=[];v(a,function(a){var c=a.id||iYd(a.email);(c=EYd(b,c))?d.push(c):f.push(a)},this);d.length&&this.m8(d);w4e(this,f)}else c.addCallback(Lp(this.Pcb,this,a))};
var w4e=function(a,b){if(b.length){var c=u4e(a),d=c.mL;if(a.csa()&&!d.jl)d.addCallback(Lp(a.Pcb,a,b));else{var f=[],h=[],k=[];v(b,function(a){a.id?(f.push(a),h.push(a.id)):k.push(a)},a);f.length?g4e(c,h).addCallback(function(a){var b=ec(f,function(b){return a.contains(b.id)},this);this.Pcb(rb(b,k))},a):a.m8(zg(k,function(a){return new Vw(c.Sa(BYd(a.displayName,a.id,a.email)))},a))}}};
k3.prototype.m8=function(a){this.getContext().od.Xp(a);this.getContext().$.WT(zg(a,function(a){return a.getId()},this),!0)};var v4e=function(a,b){var c=a.getContext(),d=c.od,f=c.$,h=[];v(b,function(a){h.push(jYd(a));kYd(c,a,!0)},a);d.La(h[0])?f.WT(h,!0):d.Vd(new Yw("c"),Lp(function(){f.WT(h,!0)},a),ka,!0)};k3.prototype.vB=function(){this.list.vB()};
var y4e=function(a,b,c,d){k3.call(this,a,b,c,d);this.Ab=new r4e(a,b,c,d);z3(this.cj,this.Ab);this.mL=(a=b.getOption("parent"))&&jYd(a);this.Qb="hem"==this.Xd.getOption("mode");this.uh=x4e(this);this.Sa=null};t(y4e,k3);q=y4e.prototype;
q.Na=function(){y4e.ya.Na.call(this);Qn(this.ta(),"a-Va-rc");if(this.mL){this.Qb||u4e(this).mL.addCallback(function(){this.list.OMa()},this);var a=this.getContext().od;a.Vd(new Yw("c"),Lp(function(){this.Ab.mL.Ta(!0);var b=a.La(this.mL);b&&(b=b.getName(),this.Ab.mL.qe(b),this.Ab.mL.rq());this.Mfa()},this),Lp(function(){this.Ab.mL.Ta(!0);this.Mfa()},this),!0)}else{this.list.meb(!0);this.cj.qh(!1);var b=this.Xd.getOption("parentName");b&&this.Ab.mL.qe(b);this.Ab.mL.Ta(!0)}this.getHandler().Ja(this.Ab,
"input",this.pX)};q.csa=function(){return!!this.mL&&!this.Qb};q.m8=function(a){y4e.ya.m8.call(this,a);this.list.meb(!1);z4e(this.list,a,this.Xd.getOption("eap")?1:0)};q.pX=function(){this.g3&&this.Mfa()};q.Mfa=function(){this.cj.qh(t4e(this.Ab)&&(this.getContext().$.OEb()||!!this.Xd.getOption("selectNone")))};q.kt=function(){this.Ab.mL.rq();return!0};var x4e=function(a){var b=new ag;a.getContext().od.Vd(new S3e("READ"),function(a){b.By(a.TNb)},Lp(b.jd,b),!1);return b};
y4e.prototype.$b=function(){alert(JC(this.getContext().ef(),q4e))};y4e.prototype.Ag=function(){this.getContext().od.Vd(new S3e("WRITE",Gye()),Lp(function(){this.Sa.setVisible(!1);A4e(this)},this),this.$b,!1)};
y4e.prototype.bMa=function(){cg(this.uh,function(a){a?(this.Sa||(a=new U0(this.getContext().ka(),new RD),a.Pa(),this.Sa=new gD(this.Ea()),x(this,this.Sa),this.Sa.setPosition(2),this.Sa.IA(!1),iD(this.Sa,!0),this.Sa.render(this.getContext().rd().fG()),a.render(this.Sa.cb()),Qn(this.Sa.ta(),"a-vhm94d-b-i"),this.Sa.Fg(this.cj.Pt.ta()),this.getHandler().Ja(a.$,"action",this.Ag).Ja(this.Sa,"hide",this.Mfa).Ja(this.Sa,"show",Lp(this.cj.qh,this.cj,!1))),this.Sa.setVisible(!0)):A4e(this)},this.$b,this)};
var A4e=function(a){var b=a.getContext(),c=a.list.Rd().Ae(),d=b.$,f=[];a.mL&&!a.Qb&&(f=ec(c,function(a){return d.Sf(a.getId())?!1:(a.setAttribute("rp",!0),!0)},a));var h=b.od,c=d.Sk(!0),k=[];v(c,function(a){a=h.La(a);var b=a.Ra();"contact"!=b&&"person"!=b&&"circle"!=b||k.push(a)},a);var f=rb(k,f),c=Ia(a.Ab.mL.getValue()),m=h.La(a.mL);(!a.mL||m&&m.getName()!=c)&&f[0].setAttribute("ncn",c);b.Sa.Sl(f)};
var IYd=function(a,b,c,d,f){y3.call(this,a,"a-bh-Cc","a-bh-Bb","a-bh-B","top",f);this.uh=new x4(a,b,f);this.Bc=b;this.Qb=c};t(IYd,y3);q=IYd.prototype;q.Z1a=0;
q.Pa=function(){IYd.ya.Pa.call(this);this.setSize(58);var a=this.Ea();this.Ab=new jD("Loading...",void 0,a);var b;this.uh.Vb=!1;this.uh.Pa();this.Sa.appendChild(a.Pa("div","a-bh-Z",b=a.Pa("span"),this.uh.ta()));this.Ab.render(b);if(this.getContext().rd().$b){this.setSize(100);this.Ag=a.Pa("div","a-bh-zv");b=new nD(void 0,a);var c=a.Pa("span","a-bh-zv-ka","Select all");GN(b,c);b.render(this.Ag);this.mL=b;this.Sa.appendChild(this.Ag);a.appendChild(this.Ag,c)}};
q.Na=function(){IYd.ya.Na.call(this);var a=new $w({service:"contacts",type:"groups"});this.Vb=this.getContext().od.Rd(a);this.Vb.addListener(Lp(this.m4c,this));this.Vb.Hi()?JYd(this):this.getContext().od.Vd(a,ka,Lp(this.Vk,this),!0);(a=this.Qb.Rd())&&a.addListener(Lp(this.EZb,this));this.mL&&this.getHandler().Ja(this.mL,"change",Lp(this.Km,this));this.uh.Na();Qn(this.Ab.ta(),"a-bh-tz-r-c");xc&&Gf("8")&&!Gf("9")&&me(this.Ab.ta(),130)};q.m4c=function(a){a.length&&JYd(this)};
q.EZb=function(){this.Ag&&On(this.Ag,1<this.Qb.Rd().tf())};
var JYd=function(a){for(var b=a.Vb.Ae(),c=a.Bc.getOption("parent");0<a.Ab.tG();)a.Ab.qha(0);a.Ab.Ne().hb(!0);wb(b,function(a,c){return a!=b[0]&&c!=b[0]?yb(a.getName().toLowerCase(),c.getName().toLowerCase()):a==b[0]?-1:1});for(var d=0;d<b.length;d++){var f=b[d],h=c==f.Qe(),f=new yp(f.getName(),f.Qe());a.Ab.dg(f);h&&(a.Z1a=d)}a.Bc.getOption("query")&&(f=new yp("Search results"),f.Ta(!1),a.Ab.dg(f),a.Z1a=b.length);a.Ab.Ej(a.Z1a);Qn(a.Ab.Ne().ta(),"a-bh-tz-r");Qn(a.Ab.Ne().ta(),"a-Vdb");a.getHandler().Ja(a.Ab,
"action",a.hFc)};IYd.prototype.Vk=function(){};IYd.prototype.Km=function(a){a.target!=this.mL&&this.mL.Ld(!this.mL.$b());KYd(this,Lp(this.Vod,this))};var KYd=function(a,b){a.$b?b&&b():a.Qb.Rd().yW()?a.getContext().od.Vd(new $w({service:"contacts",type:"contacts",parent:a.Bc.getOption("parent"),options:{getAll:!0},q:a.Bc.getOption("query")}),Lp(a.vuc,a,b),Lp(a.wuc,a)):(a.$b=a.Qb.zq().Rc(),b&&b())};q=IYd.prototype;
q.vuc=function(a,b){var c=b.Ae();this.getContext().od.Xp(c);var d=[];v(c,function(a){d.push(a.getId())});this.$b=d;a&&a()};q.Vod=function(){var a=!!this.mL.$b(),b=this.getContext().$;v(this.$b,function(c){b.Fca(c,a,"cb",!1);this.Qb.iRa(c)},this);this.OVa();this.getParent().qh(this.getContext().$.OEb());this.dispatchEvent("Yk")};q.wuc=function(){alert("Fetching the contacts for this group was unsuccessful. Please verify that you have at least one contact in this group")};
q.OVa=function(){var a;if(this.mL){if(!this.$b&&this.Qb.Rd().yW())a=!1;else{a=this.$b||this.Qb.zq().Rc();var b=this.getContext().$;a=Ye(a,function(a){return b.Sf(a)},this)}this.mL.Ld(a)}};q.hFc=function(a){var b=this.Bc.clone();o4(b,null);BN(b,"parent",a.target.getValue());this.getContext().Mh.On(b);this.Ab.Ej(this.Z1a)};
var W2g=function(a){k4.call(this,void 0,void 0,a);Io(this,!0)};t(W2g,k4);W2g.prototype.EJ=function(a){if(!W2g.ya.EJ.call(this,a))switch(a.keyCode){case 37:this.Vk();break;case 39:this.Vb();break;default:return!1}return!0};W2g.prototype.Vk=function(){Ko(this,function(a){return 0<a?a-1:0},this.eL);X2g(this)};W2g.prototype.Vb=function(){Ko(this,function(a,b){return a<b?a+1:a},this.eL);X2g(this)};
var X2g=function(a){if(Jo(a)&&Jo(a).ta()&&a.ta()&&a.ta().parentElement){var b=Jo(a).ta();a=a.ta().parentElement;b.offsetTop<a.scrollTop?a.scrollTop=b.offsetTop:b.offsetTop+b.offsetHeight>a.scrollTop+a.offsetHeight&&(a.scrollTop=b.offsetTop+b.offsetHeight-a.offsetHeight)}};
var MYd=function(a,b,c){y3.call(this,a,"a-gg-Cc","a-gg-Bb","a-gg-B","bottom",c);this.Qb=new Ze;this.Bc=b;this.mL=new W2g(c);this.ib(this.mL,!1);this.getHandler().Ja(a.$,"si",this.Wwc)};t(MYd,y3);q=MYd.prototype;q.msb=0;
q.Pa=function(){MYd.ya.Pa.call(this);var a=this.Ea();this.mL.Pa();this.$b=this.mL.ta();if(this.Ab=a.Pa("div","a-gg-za-di a-gg-id",this.$b))ey(this.Ab,"The selected contacts list. Press Backspace or Delete key to remove a selected contact."),qo(this.Ab,"live","polite"),qo(this.Ab,"relevant","removals"),po(this.Ab,"row"),qo(this.Ab,"hidden",!1);this.Sa.appendChild(this.Ab)};q.Na=function(){MYd.ya.Na.call(this);this.getHandler().Ja(this.mL.jh(),"keydown",this.vjc);OYd(this);cTd(this,!1)};
q.Wwc=function(a){v(a.ur,function(a){NYd(this,a)},this)};q.vjc=function(a){if(46==a.keyCode||8==a.keyCode){var b=Jo(this.mL),c=this.mL;if(Jo(c)==b){var d=c.Af(b);d<Ge(c)-1?c.Vq(d+1):0<d&&c.Vq(d-1)}this.LTb(b);a.preventDefault();a.stopPropagation()}};q.LTb=function(a){this.getContext().$.WT([a.La().getId()],!1)};
q.refresh=function(){var a=new Ze,b=this.getContext().od;v(this.getContext().$.Sk(!0),function(c){var f=b.La(c).Ra();"contact"!=f&&"person"!=f&&"circle"!=f||a.set(c,!0)},this);for(var c=0;c<this.Qb.ii().length/10;c++)Uf(Lp(this.qob,this,this.Qb.ii(),a,10*c));for(c=0;c<a.ii().length/10;c++)Uf(Lp(this.qob,this,a.ii(),this.Qb,10*c));this.msb=a.Fc();OYd(this)};q.qob=function(a,b,c){for(var d=c;d<Math.min(c+10,a.length);d++)ba(b,a[d])||NYd(this,a[d],d!=a.length-1);X2g(this.mL)};
var NYd=function(a,b,c){var d=a.getContext().od.La(b),f=a.getContext().$.Sf(b);f&&!ba(a.Qb,b)?d&&(d=new bVd(a.getContext(),d,LYd.ia(),a.Ea()),a.Qb.set(b,d),a.mL.ib(d,!0),b=d.Sa.Ag(d),a.getHandler().Ja(b,"click",Lp(a.LTb,a,d)),c||(a.Ab.scrollTop=a.Ab.scrollHeight-a.Ab.clientHeight)):!f&&ba(a.Qb,b)&&(d=a.Qb.get(b),a.mL.removeChild(d),d.qb(),a.Qb.remove(b));cTd(a,!!a.Qb.Fc());OYd(a)},OYd=function(a){var b=Math.min(zy(a.$b).height,90);0==b?a.setSize(b):a.setSize(b+12);ne(a.Ab,b)};
var GYd=function(a,b,c,d){t4.call(this,a,b,c,d)};t(GYd,t4);GYd.prototype.Oz=function(){GYd.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Sa;X3.ia().load(a[0].getUrl(),Lp(b.Sa,b,this))}};var HYd=function(a){s4.call(this,a);this.Ab=null;this.$="a-n-Vi-J"};t(HYd,s4);
HYd.prototype.Pa=function(a){var b=a.La(),c=b.rI(),d=a.Ea(),f="a-Hb-e-xd";"application/vnd.google-apps.contact"==this.Ab&&"application/vnd.google-apps.domain-contact"==c&&(f+=" a-vd-e-Moa-md-vd");var h=d.Pa("tr","a-Hb-e-cy");Pn(h,"a-Hb-e-ak",!xo(a,16)&&!xo(a,64));Pn(h,"a-vd-e-vsa",!this.Vb);Sc(h,!0);if(this.Vb){var k=d.Pa("td","a-Hb-e-P-xd "+f),m=new nD(void 0,d);m.Bm(32,!1);m.render(k);a.nA(m);Sc(m.ta(),!1);d.uv(h,k);Qn(h,"a-Hb-e-cy-lE-P")}a=d.Pa("td","a-vd-e-wf-cb "+f,d.Pa("div",this.$+" a-vd-e-U1"));
k=b.getAttribute("email");b=b.getName()||k;b=d.Pa("td","a-Hb-e-kb-xd "+f,b+"\u00a0");f=d.Pa("td","a-vd-e-wf-Fc "+f,k);d.uv(h,a,b,f);this.Ab=c;return h};HYd.prototype.Sa=function(a){var b=a.La(),c=a.Ea();if(a=Zc(c,"td","a-vd-e-wf-cb",a.ta())[0]){var d=Zc(c,"div","a-vd-e-U1",a)[0];d&&((b=b.Yh()[0])&&(b=b.getUrl()),b&&(c.removeNode(d),a.appendChild(c.Pa("img",{src:b,"class":"a-vd-e-m d-k-l"}))))}};
var T4=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Sa=new HYd(a.rd().$b)};t(T4,y4);T4.prototype.ED=function(a){return new GYd(this.getContext(),a,this.Sa,this.Ea())};T4.prototype.cD=ka;T4.prototype.bC=function(a){a=T4.ya.bC.call(this,a);return ec(a,function(a){return"contact"==a.Ra()})};
var V4=function(a,b){E3.call(this,a,new Vw({}),TYd.ia(),b);this.Bm(16,!1);this.Bm(8,!1);this.Ag=this.Vb=null};t(V4,E3);V4.prototype.mL=function(a){On(this.Vb,a);On(this.Ag,!a);a?(we(this.Vb,!1),this.Vb.focus()):(yE(this.Vb.value)&&UYd(this),this.Vb.value="",Pn(this.ta(),"a-Fc-ma-n3",!1))};V4.prototype.Qb=function(a){13==a.keyCode&&yE(this.Vb.value)&&UYd(this);if((9==a.keyCode||27==a.keyCode)&&1<Ge(this.getParent())){a.preventDefault();var b=My.Bo()?37:39;try{this.hT(new foa(b,b,!1,null))}catch(c){}}a.stopPropagation()};
var UYd=function(a){var b=zYd(wg(xg(E.ia(),"oppe")).d$(a.getContext(),a.Ea()),a.Vb.value);a.dispatchEvent(new VYd(zg(b,function(a){return new Vw(a)},a)));a.Vb.value="";Pn(a.ta(),"a-Fc-ma-n3",!1)};V4.prototype.zt=function(a){V4.ya.zt.call(this,a);a&&this.mL(!0)};
V4.prototype.Na=function(){V4.ya.Na.call(this);var a=this.ta(),b=new rw(this.Vb);x(this,b);qr(this.getHandler().Ja(a,"click",Lp(this.mL,this,!0)).Ja(this.Vb,"blur",Lp(this.mL,this,!1)).Ja(this.Vb,"keydown",this.Qb),this.Vb,"mousedown",function(a){a.stopPropagation()},!0,this).Ja(a,"mouseover",function(){Pn(this.Ag,"a-Fc-ma-nc-u",!0)}).Ja(a,"mouseout",function(){Pn(this.Ag,"a-Fc-ma-nc-u",!1)}).Ja(b,"input",function(){Pn(this.ta(),"a-Fc-ma-n3",yE(this.Vb.value))})};
var VYd=function(a){A.call(this,"Zk");this.$=a};t(VYd,A);VYd.prototype.Ae=function(){return this.$};var TYd=function(){F3.call(this,"a-Fc-ma")};t(TYd,F3);la(TYd);TYd.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("input",{type:"text","class":"a-Fc-ma-N d-k-l b-hb"});On(c,!1);a.Vb=c;var d=b.Pa("span","a-Fc-ma-nc d-k-l",b.Pa("span","d-k-l a-n-ue-Bk-jf"),"Enter email address");a.Ag=d;return b.Pa("div","a-Fc-ma-di d-k-l",b.Pa("div","a-Fc-ma-cj"),c,d)};
var tCg=function(a,b,c,d){G3.call(this,a,b,c,d)};t(tCg,G3);tCg.prototype.s$=function(a){return"Switch to "+a};tCg.prototype.p$=function(a){return"Selected group "+a};var pEg=function(a,b,c,d,f){y3.call(this,a,"a-Nx1zrc-Cc","a-Nx1zrc-Bb","a-Nx1zrc-B","top",f);this.Ag=new tCg(a,b,d,this.Ea());TQd(this,this.Ag);this.mL=c;this.Bc=b};t(pEg,y3);
pEg.prototype.Pa=function(){pEg.ya.Pa.call(this);this.setSize(80);var a=this.Ea();this.Ag.Pa();this.Sa.appendChild(this.Ag.ta());if(this.getContext().rd().$b){this.$b=a.Pa("div","a-Nx1zrc-zv");var b=new nD(void 0,a),c=a.Pa("span","a-Nx1zrc-zv-ka","Select all");GN(b,c);b.render(this.$b);this.Ag.cb().appendChild(this.$b);this.Ab=b;a.appendChild(this.$b,c)}else this.setSize(40)};
pEg.prototype.Na=function(){pEg.ya.Na.call(this);var a=this.mL.Rd();a&&a.addListener(Lp(this.Vk,this));qEg(this);this.Ab&&this.getHandler().Ja(this.Ab,"change",Lp(this.Km,this))};pEg.prototype.Vk=function(){qEg(this)};var qEg=function(a){var b=a.mL.Rd();b&&a.$b&&(b=1<b.tf(),On(a.$b,b),a.setSize(b?80:40))};
pEg.prototype.Km=function(a){a.target!=this.Ab&&this.Ab.Ld(!this.Ab.$b());a=Lp(this.Ko,this);this.Qb?a&&a():this.mL.Rd().yW()?this.getContext().od.Vd(new $w({service:"groups",parent:this.Bc.getOption("parent")}),Lp(this.uh,this,a),Lp(this.Vb,this)):(this.Qb=this.mL.zq().Rc(),a&&a())};pEg.prototype.uh=function(a,b){var c=b.Ae();this.getContext().od.Xp(c);var d=[];v(c,function(a){d.push(a.getId())});this.Qb=d;a&&a()};pEg.prototype.Vb=function(){alert("Fetching the contacts for this group was unsuccessful. Please verify that you have at least one contact in this group")};
pEg.prototype.Ko=function(){var a=!!this.Ab.$b(),b=this.getContext().$;v(this.Qb,function(c){b.Fca(c,a,"cb",!1);this.mL.iRa(c)},this);rEg(this);this.getParent().qh(this.getContext().$.OEb());this.dispatchEvent("An")};var rEg=function(a){var b;if(a.Ab){if(!a.Qb&&a.mL.Rd().yW())b=!1;else{b=a.Qb||a.mL.zq().Rc();var c=a.getContext().$;b=Ye(b,function(a){return c.Sf(a)},a)}a.Ab.Ld(b)}};
var sEg=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Sa=new HYd(!1);this.Sa.$="a-WNq8W-tz"};t(sEg,y4);sEg.prototype.ED=function(a){a=new t4(this.getContext(),a,this.Sa,this.Ea());a.Bm(64,!0);a.Bm(16,!1);return a};var fZd=function(){this.$=[]};t(fZd,xp);la(fZd);fZd.prototype.Pa=function(a){a=a.Ea().Pa("input","a-vd-r-sc-N");this.F$(a,!0);return a};var gZd=function(){yp.call(this,"",void 0,void 0,fZd.ia())};t(gZd,yp);gZd.prototype.Um=ka;gZd.prototype.zo=ka;gZd.prototype.Hw=function(a){a.target.focus()};var B4e=function(a){return r(a.XOa)+" {background-color: #63abf5; background-image: -webkit-linear-gradient(top,#63abf5,#5d9bd4); background-image: -moz-linear-gradient(top,#63abf5,#5d9bd4); background-image: -ms-linear-gradient(top,#63abf5,#5d9bd4); background-image: -o-linear-gradient(top,#63abf5,#5d9bd4); background-image: linear-gradient(top,#63abf5,#5d9bd4); border: 1px solid #777; color: #fff;}"+r(a.$sd)+" {color: #fff;}"};
var W4=function(a,b,c,d){E3.call(this,a,b,c,d);this.mL=!1;this.Qb=a.rd().Kra;this.Ec=null};t(W4,E3);W4.prototype.Ld=function(a){W4.ya.Ld.call(this,a);this.isDisposed()||"circle"==this.La().Ra()&&kYd(this.getContext(),this.La().Qe(),a)};W4.prototype.fn=function(a){return WYd(this)?!1:W4.ya.fn.call(this,a)};W4.prototype.Na=function(){W4.ya.Na.call(this);XYd(this,!0)};
var WYd=function(a){var b=a.Ec;if(!b||b.isDisposed())b=new gD(a.Ea()),b.setPosition(2),b.IA(!1),b.render(a.getContext().rd().fG()),iD(b,!0),Qn(b.ta(),"a-ma-b-i"),a.Ec=b;if(!b.dc()){var c=a.La().getAttribute("ci");if(c){var d=a.getContext().rd().fG(),f=0,h=[];v(c,function(a){Sn(d,"a-Wb-oacp"+a)&&(f++,a=this.getContext().od.La("people.0.p"+a),h.push(a.getName()))},a);c=(new Z('{CIRCLE_COUNT, plural, =0 {unused plural form}=1 {This person is in your "{CIRCLE1}" circle. To remove this person, first unselect "{CIRCLE1}".}=2 {This person is in your "{CIRCLE1}" and "{CIRCLE2}" circles. To remove this person, first unselect "{CIRCLE1}" and "{CIRCLE2}".}other {This person is in {CIRCLE_COUNT} circles. To remove this person, first unselect these circles.}}')).format({CIRCLE_COUNT:f,
CIRCLE1:h[0],CIRCLE2:h[1]});b.setContent(Hua(c));if(f)XYd(a,!1),b.Fg(a.ta()),b.setVisible(!0),a.mL=!0;else return!1}else return!1}return!0};W4.prototype.zo=function(a){W4.ya.zo.call(this,a);Qn(this.ta(),"a-ma-e-VF-u")};W4.prototype.fp=function(a){W4.ya.fp.call(this,a);Rn(this.ta(),"a-ma-e-VF-u");this.mL&&a.relatedTarget&&!Oc(this.ta(),a.relatedTarget)&&(a=this.Ec)&&(XYd(this,!0),a.isDisposed()||(a.setVisible(!1),a.Ma()),this.mL=!1,this.Ec=null)};
var XYd=function(a,b){var c=a.La(),d=a.ta();c.getAttribute("ises")&&My.Sa&&(b?d.setAttribute("oid",c.Qe()):d.removeAttribute("oid"))};W4.prototype.Oz=function(){W4.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Sa;X3.ia().load(a[0].ll(this.Qb?84:48,["c"]).getUrl(),Lp(b.Sa,b,this))}};W4.prototype.update=function(){W4.ya.update.call(this);this.Sa.update(this)};var YYd=function(){F3.call(this,"a-ma-e")};t(YYd,F3);
YYd.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=null;"person"==b.Ra()?b=ZYd(this,b,c,a.getContext().rd().Kra):(a=c.Pa("div","d-k-l",c.Pa("div","a-ma-e-Wb-m a-n-Wb-lb"),c.Pa("div","a-ma-e-Wb-m-L a-n-Wb-lb-Zc")),d=c.Pa("div","a-ma-e-kb d-k-l",b.getName()),b=c.Pa("div","a-ma-e-ib-ka d-k-l",aZd(b)),b=c.Pa("div","a-ma-e d-k-l",c.Pa("span","a-ma-e-Wb",a,c.Pa("div","d-k-l a-ma-e-nN",d,b))));d=b;d.appendChild(c.Pa("div","a-ma-e-VF-bd",c.Pa("span","d-k-l a-n-ab-z-wt-Zc")));we(d,!0);return d};
var ZYd=function(a,b,c,d){var f=b.getAttribute("email"),f=c.Pa("div",{"class":"a-ma-e-kb d-k-l",title:b.getAttribute("ises")?"":b.getName()||f},b.getName()||f),h=" ",k=b.getAttribute("ci");k&&v(k,function(a){h+="a-Wb-oap"+a+" "},a);var m,k=b.Yh();a=c.Pa("div","a-ma-e-zc d-k-l",c.Pa("div","a-ma-e-cj d-k-l "+(d?"a-n-Vi-J-B7":"a-n-Vi-J-z7")));k&&(k=b.Yh()[0],k.ll(d?84:48,["c"]).getUrl());$Yd(b)&&(m=c.Pa("div","a-ma-e-ib-ka d-k-l",aZd(b)));d=c.Pa("div","a-ma-e"+h+"d-k-l");m=c.Pa("div","d-k-l",a,c.Pa("div",
"d-k-l a-ma-e-nN",f,m));My.Sa||!b.getAttribute("ises")||xc&&!Gf("9")?d.appendChild(m):(c=c.Pa("g:hovercard","d-k-l",m),c.setAttribute("userid",b.Qe()),d.appendChild(c));b.getAttribute("isps")&&Qn(d,"a-ma-h3");return d},aZd=function(a){return"person"==a.Ra()?a.getAttribute("email")||"":(new Z("{memberCount, plural, =0 {0 members}=1 {1 member}other {{memberCount} members}}")).format({memberCount:a.Tm()})},$Yd=function(a){var b=a.getAttribute("email");return!(!a.getName()||!b||a.getName()==b||a.getAttribute("ises"))};
YYd.prototype.update=function(a){var b=a.La(),c=a.Ea(),d=c.fb("a-ma-e-kb",a.ta());a=c.fb("a-ma-e-ib-ka",a.ta());var f=aZd(b);c.uq(d,b.getName()||f);("person"!=b.Ra()||$Yd(b))&&c.uq(a,f)};YYd.prototype.Sa=function(a){var b=a.La(),c=a.Ea(),d=c.fb("a-ma-e-zc",a.ta()),f=c.fb("a-ma-e-cj",d);f&&((b=b.Yh()[0])&&(b=b.ll(a.getContext().rd().Kra?84:48,["c"]).getUrl()),b&&(c.removeNode(f),d.appendChild(c.Pa("img",{src:b,"class":"a-ma-e-cb d-k-l"}))))};
var SYd=function(a,b){this.$=a;this.Sa=b;this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a.$,"si",this.Ab);ald(this)};t(SYd,kd);var ald=function(a){var b=a.$.$.Sk(!0),c=a.$.od;a.Sa.QK(zg(b,function(a){return c.La(a)}))};SYd.prototype.Ab=function(a){var b=this.$.$,c=[],d=[];v(a.ur,function(a){b.Sf(a)?d.push(this.$.od.La(a)):c.push(a)},this);c.length&&this.Sa.dL(c);d.length&&this.Sa.QK(d)};
var X4=function(a,b,c){y4.call(this,a,b,void 0,"horizontal",c);bZd++;cZd||a.od.Vd(new Yw("c"),Lp(this.Hid,this),ka);if(lYd(b)){c=this.Rd();var d=new SYd(a,c);x(this,d);c.uh(Lp(this.ftd,this))}b.getOption("noEmailInput")||(this.Sa=new V4(a,this.Ea()),x(this,this.Sa),this.getHandler().Ja(this.Sa,"Zk",this.zzc));b.getOption("eap")&&(this.Qb=new o4e(a,this.Ea()),x(this,this.Qb),this.getHandler().Ja(this.Qb,"mf",this.zcb))},cZd;t(X4,y4);var bZd=0;q=X4.prototype;
q.ED=function(a){return new W4(this.getContext(),a,new YYd,this.Ea())};q.Pa=function(){X4.ya.Pa.call(this);var a=this.Ea();a.Hy(this.Db=a.Pa("div","a-ma-Ra-Tc",a.Pa("span","a-ma-Ra-Tc-m",a.Pa("img",{src:"//ssl.gstatic.com/docs/picker/images/loading-ball-16.gif","class":"d-k-l"})),this.y2=a.Pa("span","a-ma-Ra-Tc-E")),this.getContainer().ta());On(this.Db,!1);Qn(this.ta(),"a-ma-Ra")};q.Gya=Fx;
q.meb=function(a){"frequent"!=this.Gf().Ra()&&(this.Ea().uq(this.y2,this.Rd().tf()?"Loading more people...":"Loading people..."),On(this.Db,a))};q.Na=function(){X4.ya.Na.call(this);this.getHandler().Ja(this.getContext().Mh,"vn",this.Jid).Ja(this.Ea().La(),"keydown",this.jIb)};q.jIb=function(a){this.g3&&65==a.keyCode&&(!ca&&a.ctrlKey||ca&&a.metaKey)&&a.target&&"input"!=a.target.tagName.toLowerCase()&&(a.stopPropagation(),a.preventDefault(),lYd(this.getContext().Mh.FH)||this.dispatchEvent("Dd"))};
q.OMa=function(){var a=this.zq().Rc();5E3<a.length?kZd(this.getContext().Mh.Hd(),"We cannot select that many people or circles. Try selecting a smaller set of circles or people.","error"):(v(a,function(a){"circle"==this.getContext().od.La(a).Ra()&&kYd(this.getContext(),a,!0)},this),this.getContext().$.WT(a,!0))};q.F3a=function(){this.getContext().$.lJ(!0)};q.cD=ka;
q.Hid=function(a){if(!cZd){var b="",c="";v(a.Ae(),function(a){var f=".a-Wb-oac"+a.Qe();a=".a-Wb-oa"+a.Qe();b+=""!=b?", ":"";b+=f+" "+a;c+=""!=c?", ":"";c+=f+" "+a+" .a-ma-e-ib-ka"},this);""!=b&&(a={},a.XOa=b,a.$sd=c,a=this.getContext().ef().render(B4e,a),cZd=b,Y8a(b+a,this.Ea()))}};
q.qb=function(){X4.ya.qb.call(this);bZd--;if(!(0<bZd)&&cZd){for(var a=hYd(),b=!1,c=0;c<a.length&&!b;c++){var d=fYd(a[c]);if(d)for(var f=0;f<d.length;f++)if(d[f].selectorText==cZd){b=a[c];b.deleteRule?b.deleteRule(f):b.removeRule(f);b=!0;break}}cZd=void 0}};q.ftd=function(a,b){return"circle"==a.Ra()&&"circle"!=b.Ra()?-1:"circle"!=a.Ra()&&"circle"==b.Ra()?1:Ba(a.getName(),b.getName())};
q.Jid=function(){this.g3&&Pn(this.ta(),"a-ma-L-Ra",lYd(this.getContext().Mh.FH));if("frequent"==this.Gf().Ra()){var a=this.getContext().Mh.FH;On(this.ta(),a&&mYd(a))}};q.zcb=function(a){z4e(this,[a.La()],1)};q.zzc=function(a){var b=this.getContainer(),b=this.Gf().getOption("noEmailInput")?Ge(b):b.Af(this.Sa),b=mYd(this.Gf())?b+1:b;z4e(this,a.Ae(),b)};
var z4e=function(a,b,c){for(var d=a.getContext(),f=0;f<b.length;f++){var h=b[f];a.Rd().vC(h.getId())?d.$.Fca(h.getId(),!0,"cb",!0):(a.Rd().QK([h]),d.od.Xp([h]),a.Hr([h]),d.$.Fca(h.getId(),!0,"cb",!0),Uf(function(){var a=this.getContainer(),b=kw(a,Ge(a)-1);a.removeChild(b,!0);a.Zj(b,c,!0)},0,a))}};X4.prototype.EFa=function(a){var b=this.Ea(),c=this.lp;c?b.hb(c):(c=b.Pa("div","a-Lc-nc"),b.appendChild(this.ta(),c));qa(a)?b.appendChild(c,cd(b,a)):b.appendChild(c,a);this.lp=c};
X4.prototype.Ik=function(a){this.Km=!1;this.Vk=void 0;X4.ya.Ik.call(this,a);this.Sa&&(a=this.Gf(),a=mYd(a)?1:a.getQuery()?sa(this.Vk)?this.Vk:Ge(this.getContainer()):void 0,sa(a)&&this.getContainer().Zj(this.Sa,a,!0));this.Qb&&this.getContainer().Zj(this.Qb,0,!0)};
X4.prototype.Zba=function(a){var b=this.Gf(),c=Ge(this.getContainer()),d="people"==b.$,f;0==c&&d&&(mYd(b)?f="Everyone":"frequent"==b.Ra()&&(f="Frequently contacted"));var h=!!a.La().getAttribute("isps");h&&!this.Km&&!lYd(b)&&d&&(f="Other people on Google+",this.Vk=c);this.Km=h;f&&this.getContainer().ib(new dZd(f,this.Ea()),!0);X4.ya.Zba.call(this,a)};var dZd=function(a,b){Fo.call(this,eZd.ia(),b);this.label=a};t(dZd,Fo);var eZd=function(){};t(eZd,Eo);la(eZd); eZd.prototype.Pa=function(a){var b=a.Ea();return b.Pa("div","a-ma-Ra-dd",b.Pa("hr","a-ma-Ra-dd-kD"),b.Pa("span","d-k-l a-ma-Ra-dd-ka",a.label))};
var PYd=function(a,b,c,d){y3.call(this,a,"a-Va-Cc"+(a.rd().Kra?" a-Va-rc":""),"a-Va-Bb","a-Va-B","top",d);this.mL=new x4(a,b,d);this.ib(this.mL);this.Bc=b;this.Ag=c;z3(this,c);this.Vb=!b.getOption("noEmailInput");this.$b=this.Ab=this.Qb=null};t(PYd,y3);
PYd.prototype.Pa=function(){PYd.ya.Pa.call(this);this.setSize(54);var a=this.Ea();this.mL.Vb=!1;this.mL.Pa();var b=a.Pa("div","a-Va-Z",this.mL.ta(),this.uh=a.Pa("div","d-k-l a-Va-jm",a.Pa("span","d-k-l a-m-Pv-jf",a.Pa("img",{src:"//ssl.gstatic.com/docs/picker/images/search-black.png"})),a.Pa("span","d-k-l a-Va-jm-E",this.Vb?"Search by name or email address":"Search by name")));we(this.uh,!0);this.Bc.getOption("parent")&&"gmail"!=this.Bc.Ra()&&(this.Qb=new Ot("Select this circle",a),this.ib(this.Qb),
this.Qb.Pa(),a.Ep(this.Qb.ta(),this.mL.ta()),U4(this),Qn(this.Qb.ta(),"a-Va-I7"));lYd(this.Bc)&&(this.$b=new Ot("Unselect all",a),this.ib(this.$b),this.$b.Pa(),a.Ep(this.$b.ta(),this.mL.ta()),Qn(this.$b.ta(),"a-Va-baa"),this.$b.zf(2),U4(this));if(this.Vb){var c=new Ot("Select all",a);this.ib(c);c.Pa();a.Ep(c.ta(),this.mL.ta());Qn(c.ta(),"a-Va-zv");On(c.ta(),!1);this.Ab=c}this.Sa.appendChild(b)};
var U4=function(a,b){if(!a.isDisposed()){var c;a.Qb?c=oe(a.Qb.ta()):a.Ab&&ve(a.Ab.ta())?c=oe(a.Ab.ta()):a.$b&&(c=oe(a.$b.ta()));QYd(a,c,b)}},QYd=function(a,b,c){!b||b.width||c?(b=b?b.width+18:0,c=My.Bo()?"right":"left",Pd(a.mL.ta(),c,b+"px"),Pd(a.uh,c,b+30+"px")):Uf(Lp(function(){U4(this,!0)},a),10,a)};q=PYd.prototype;
q.Na=function(){PYd.ya.Na.call(this);this.getHandler().Ja(this.mL,"Eo",Lp(this.FDb,this,!0)).Ja(this.mL,"Fo",Lp(this.FDb,this,!1)).Ja(this.mL,"Go",this.XIc).Ja(this.uh,"click",Lp(function(){this.mL.focus()},this)).Ja(this.getContext().$,"si",this.VTb).Ja(this.getContext().Sa,"reset",function(){this.Qb&&this.Yo(!1);this.Ab&&rng(this,!1)}).Ja(this.Ag,"dataAppended",this.Ixc).Ja(this.Ag,"Dd",this.TQc);this.Ab&&this.getHandler().Ja(this.Ab,"action",this.gJc);this.Qb&&(this.getHandler().Ja(this.Qb,"action",
this.Vtc),this.VTb());this.$b&&this.getHandler().Ja(this.$b,"action",Lp(this.Ag.F3a,this.Ag))};q.Ixc=function(){if(this.Vb){var a=yYd(wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()),this.getContext().Mh.FH.or()),b=this.getContext().$,c=!!this.Ag.zq().Fc();a&&v(this.Ag.zq().Rc(),function(a){b.Sf(a)||(c=!1)},this);On(this.Ab.ta(),a);rng(this,c);U4(this)}};q.gJc=function(){var a=2!=this.Ab.getStyle();a?this.Ag.OMa():this.Ag.F3a();this.getContext().$.WT(this.Ag.zq().Rc(),a);rng(this,a)};
q.VTb=function(){var a=this.getContext().$;this.Qb&&this.Yo(a.Sf(jYd(this.Bc.getOption("parent"))));if(this.Ab&&ve(this.Ab.ta())){var b=Ye(this.Ag.zq().Rc(),function(b){return a.Sf(b)});rng(this,b)}var b=this.Bc.getOption("parent"),c=a.Sf(jYd(b));kYd(this.getContext(),b,c)};q.XIc=function(a){this.Qb&&this.Qb.Ta(!a.Ns());On(this.uh,this.mL.isEmpty())};q.FDb=function(a){On(this.uh,this.mL.isEmpty());Pn(this.uh,"a-eb-N",a)};q.TQc=function(){this.Qb?this.Vtc():this.Ab&&this.gJc()};
q.Vtc=function(){var a=this.Bc.getOption("parent"),a=jYd(a),b=this.getContext().$,c=!b.Sf(a);b.Fca(a,c,"cb",!0);this.Yo(c)};q.setActive=function(a,b){PYd.ya.setActive.call(this,a,b);this.mL.setActive(a,b);a&&U4(this)};q.Yo=function(a){this.Qb.setContent(a?"Deselect this circle":"Select this circle");this.Qb.zf(a?2:0);U4(this)};var rng=function(a,b){a.Ab.setContent(b?"Unselect all":"Select all");a.Ab.zf(b?2:0);U4(a)};
var hZd=function(a,b){Bp.call(this,b);this.$=a;Io(this,!0);this.$b=new kR;x(this,this.$b);this.Ab=this.mL=null};t(hZd,Bp);q=hZd.prototype;q.setVisible=function(a,b){var c=hZd.ya.setVisible.call(this,a,b);a&&this.mL.ta().focus();return c};
q.Na=function(){hZd.ya.Na.call(this);this.ib(this.mL=new gZd,!0);var a=this.mL.ta();toa(this,a);this.getHandler().Ja(a,["keydown"],this.sIb).Ja(a,"keypress",this.ijd);this.Ab=new fbg(this.Ea());this.ib(this.Ab,!0);this.getHandler().Ja(this.Ab,"action",this.aUb);this.Ab.Ta(!1);we(a,!1);we(this.ta(),!1);Qn(this.ta(),"a-Gja-Loa-tz-r");this.$b.yb(a)};q.sIb=function(a){8==a.keyCode?this.Ab.Ta(!!a.target.value):27==a.keyCode?(this.setVisible(!1),a.stopPropagation()):this.Ab.Ta(!0)};
q.ijd=function(a){13==a.keyCode&&(this.setVisible(!1),this.aUb())};q.aUb=function(){if(this.Ab.isEnabled()){for(var a=this.$.$.Sk(!0),b=[],c=[],d=this.$.od,f=0;f<a.length;f++){var h=d.La(a[f]);if("contact"==h.Ra()){var k=h.getAttribute("cid");if(k)b.push(k);else if(k=h.getAttribute("email"))h=h.getName()?h.getName():k,c.push({name:h,email:k})}}a={};a.groupName=this.mL.ta().value;c.length&&(a.data=Rf(c));this.$.od.Vd(new K3("createGroup","contacts",b,a),Lp(this.RXb,this),Lp(this.TCd,this))}};
q.RXb=function(){this.mL.ta().value="";this.Ab.Ta(!1);this.dispatchEvent(new A("dF"));this.$.od.Vd(new $w({service:"contacts",type:"groups"}),ka,ka,!0)};
q.TCd=function(a){this.mL.ta().value="";this.Ab.Ta(!1);if(a)switch(a.Ug()){case 2:a=new A("eF",{message:"No contacts selected. Please select a contact to save to group."});break;case 3:a=new A("eF",{message:"Group name already exists. Please choose a different name."});break;default:a=new A("eF",{message:"Unable to save group."})}else a=new A("eF",{message:"There was a network error while saving your groupPlease check your Internet connection and try again"});this.dispatchEvent(a)};
var Y4=function(a,b,c,d){this.uh=tJg(b,a.rd());k3.call(this,a,b,c,d);T$g(this,"vc");var f=b.clone();BN(f,"type","frequent");(this.Qb=mYd(b)&&!b.getOption("hfpl")?new X4(a,f,d):null)&&this.ib(this.Qb);this.Ag=this.Ab=this.Sa=this.mL=null;f=b.getOption("parent");if(c instanceof T4)if(this.Sa=new MYd(a,b,d),z3(this.Sa,c),f&&"groups"==b.$){if(f=a.od.La(f))this.Ag=new pEg(a,b,c,f,d),z3(this.cj,this.Ag),z3(this.Ag,this.Sa),this.getHandler().Ja(this.Ag,"An",Lp(this.wab,this))}else this.Ab=new IYd(a,b,c,
0,d),z3(this.cj,this.Ab),z3(this.Ab,this.Sa),this.getHandler().Ja(this.Ab,"Yk",Lp(this.wab,this));else"groups"==b.$?z3(this.cj,c):(this.mL=new PYd(a,b,c,d),z3(this.cj,this.mL));this.Lh=this.$b=null};t(Y4,k3);q=Y4.prototype;q.setActive=function(a,b){Y4.ya.setActive.call(this,a,b);a&&this.wab();this.mL&&this.mL.setActive(a,b);this.Qb&&this.Qb.setActive(a,b)};
q.pX=function(a){if(this.g3&&(this.wab(),this.Ab)){var b=this.Ab;1<this.list.zq().Rc().length&&b.getContext().rd().$b?b.setSize(100):b.setSize(58)}Y4.ya.pX.call(this,a)};q.wab=function(){var a=this.list,b=a.zq().Rc(),c=this.getContext().$,d=0;v(b,function(b){var f=c.Sf(b);a instanceof T4?((b=x5(a,b))?(b.Ld(f),b=!0):b=!1,b&&f&&d++):f&&d++},this);if(this.Ab){var f=this.Ab;0<d&&d==b.length?KYd(f,Lp(f.OVa,f)):f.OVa()}this.Sa&&(this.Sa.refresh(),d||(d=this.Sa.msb),this.$b&&this.$b.Ta(!!d));this.cj.qh(!!d)};
q.Pa=function(){Y4.ya.Pa.call(this);var a=this.Xd;"contacts"!=a.$||a.getOption("scgh")||(a=new hZd(this.getContext(),this.Ea()),this.getHandler().Ja(a,"dF",this.nJb),this.getHandler().Ja(a,"eF",this.bid),this.$b=new Fp("Save as group...",a,Hp.ia()),this.$b.U4=!0,N3e(this.cj,this.$b),Qn(this.$b.ta(),"a-vd-r-c"));a=this.Ea();this.Qb&&(this.Qb.Pa(),a.Ep(this.Qb.ta(),this.list.ta()));this.Lh=new kX("",a);x(this,this.Lh)};
q.Na=function(){Y4.ya.Na.call(this);this.Lh.render(this.ta());Qn(this.Lh.ta(),"a-vd-Cq");this.Lh.setVisible(!1);var a=this.getContext();this.getHandler().Ja(a.mL,"select-contacts",this.kJc).Ja(this.Lh.ta(),"click",this.$hd);this.mL&&WUd(this.list,this.mL.mL);S$g(this,"vc")};q.$hd=function(a){Sn(a.target,"a-Yd")&&(this.Lh.setVisible(!1),this.$b.ta().focus())};q.nJb=function(){kZd(this,"Group saved.","info")};q.bid=function(a){kZd(this,a.target.message,"error")};
q.kJc=function(a){(a=a.data.contacts)&&a.length&&this.g3&&this.getContext().od.Vd(new $w({service:"contacts",type:"hash",options:{data:Rf(a)}}),Lp(this.iJc,this,a),Lp(this.jJc,this),!0)};q.iJc=function(a,b){var c=b.Ae();this.getContext().$.WT(zg(c,function(a){return a.getId()}),!0)};q.jJc=function(){alert("Sorry!  We could not find the contacts you previously selected.")};q.r2a=function(a){Y4.ya.r2a.call(this,a);if(this.Sa){var b=this.Sa;b.Ab&&qo(b.Ab,"hidden",!a.data.visible)}};
var kZd=function(a,b,c){a.Lh.hd(c);var d=a.Ea();c=d.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss");var f=Ce(Be.ia());b=d.Pa("span",{id:f},b,c);qo(c,"describedby",f);d.NYa(c,!0);a.Lh.setContent(b);d=a.Lh.ta();ey(d,b.textContent);po(d,"status");qo(d,"live","assertive");qo(d,"atomic",!0);a.Lh.setVisible(!0);try{c.focus()}catch(h){}};Y4.prototype.kt=function(){return this.mL?(this.mL.mL.focus(),!0):Y4.ya.kt.call(this)};Y4.prototype.TP=function(){return this.uh};
var lZd=function(){kd.call(this);this.$=new Ze};t(lZd,x3);q=lZd.prototype;q.initialize=function(){this.CJb()};q.CJb=function(){My?My.Sa||Xyg("card",function(){var a=ja("gapi.config.update");a&&(a("card/source","onepick.peoplepicker"),a("card/hoverDelay",1200));(a=ja("gapi.card.watch"))&&a()}):Uf(this.CJb,100,this)};
q.uj=function(a,b,c){switch(a.$){case "circle":return new y4e(b,a,new X4(b,a,c),c);case "people":return new Y4(b,a,new X4(b,a,c),c);case "contacts":return new Y4(b,a,new T4(b,a,c),c);case "groups":var d=a.getOption("parent")?new T4(b,a,c):new sEg(b,a,c);return new Y4(b,a,d,c)}return null};q.d$=function(a){var b=this.$.get(va(a));if(!b||b.isDisposed())b=new pYd(a),a.od.mL(b),this.$.set(va(a),b);return b};q.K9=function(a,b,c){switch(a){case "circle":return new j4e(b,c)}return null}; vg(xg(E.ia(),"oppe"),lZd);

G("oppe");I();
}catch(e){_DumpException(e)}
try{
var M4e=function(a,b,c,d){a.Vd(new u3("party",[b],{type:"event"}),function(b){var d=b.Ae()[0];a.Xp(b.Ae()||[]);c(d)},d||ka)};H("opt");var rZd=function(a,b){m4.call(this,a,b)};t(rZd,m4);
rZd.prototype.hp=function(a,b){var c=this.Ab.FH;if("photo-tagging"==c.$)this.Sa?b(zg(this.Sa,function(a){return this.$.La(a.getId())||a},this)):b(a);else if(Cd(a,function(a){a=a.Ii&&a.Ii.getState();return"default"==a||"running"==a||"scheduled"==a}))b(a);else{var d=q2e(this,a);if(d&&d.getAttribute("fdc")&&0==d.getAttribute("numFaces"))b(a);else{var f=new w3("photo-tagging");f.Sa=c;d?(this.Sa=a,BN(f,"parent",d.Qe())):BN(f,"ids",zg(a,function(a){return a.Qe()}).join(","));this.Ab.On(f);this.Ab.dya(!1)}}}; var q2e=function(a,b){for(var c=0;c<b.length;c++)if("album"==b[c].Ra())return b[c];for(c=0;c<b.length;c++){var d=b[c].vt();if(d)return a.$.La(d)||void 0}};rZd.prototype.reset=function(){this.Sa=void 0};
var N4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{This album will be shared with the people you tag.}male{This album will be shared with the people you tag.}other{This album will be shared with the people you tag.}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))},O4e=function(){return P("Skip")},P4e=function(){var a=Y,b='<div class="a-ta-Qd"><div class="a-ta-Qd-B"><div class="a-ta-Tc-Hd"></div><div class="a-ta-Qd-O">'+Y("Hang on one second...")+'</div><div class="a-ta-Qd-E">',c;c=
Y("We're looking for people in the photos you uploaded.");return a(b+c+"</div></div></div>")},R4e=function(){var a=Y,b='<div class="a-ta-Qd"><div class="a-ta-Qd-B"><div class="a-ta-Qd-O">'+r(P("Done"))+'</div><div class="a-ta-Qd-E">';return a(b+r(P('Everyone in this album is tagged. Did someone get overlooked? Open the photo and click "Tag people."'))+"</div></div></div>")},S4e=function(a,b,c){b=Y;var d=a.Q1?'<a href="'+R(S(a.mCa))+'" target="_blank">'+r(a.albumName)+"</a> ":r(a.albumName)+" ",f=
"";a=wA(new Z("{VIEWER_GENDER,select,female{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}male{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}other{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}}"),
{VIEWER_GENDER:c.Aa,NUM_PHOTOS_1:a.Zm,NUM_PHOTOS_2:""+a.Zm});return b(d+r(P(f+(""+a))))},T4e=function(a,b,c){b="";a=wA(new Z("{VIEWER_GENDER,select,female{This event ({EVENT_NAME}) will be shared with the people you tagged.}male{This event ({EVENT_NAME}) will be shared with the people you tagged.}other{This event ({EVENT_NAME}) will be shared with the people you tagged.}}"),{VIEWER_GENDER:c.Aa,EVENT_NAME:""+a.vv});return P(b+(""+a))},U4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Tag & share}male{Tag & share}other{Tag & share}}"), {VIEWER_GENDER:c.Aa});return P(a+(""+c))},W4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Tag & share}male{Tag & share}other{Tag & share}}"),{VIEWER_GENDER:c.Aa});return P(a+(""+c))};
var X4e=function(a,b,c,d){A.call(this,a);this.Ko=b;this.$=c||[];this.Sa=d||null};t(X4e,A);X4e.prototype.Ws=function(){return this.Ko};var Y4e=function(a,b,c,d){this.$=a||null;this.mL=b||null;this.Qb=c||null;this.Sa=d||null;this.Fs=Ce(Be.ia());this.Ab=new Yv};q=Y4e.prototype;q.update=function(a,b,c,d){this.$=a;this.mL=b;this.Qb=c;this.Sa=d};q.getId=function(){return this.Fs};q.yc=function(){return this.mL};q.Ob=function(){return this.Qb};q.k_=function(a){return this.Ab.remove(a.getId())};var n3=function(a){return a.Ab.Rc()};Y4e.prototype.getShape=function(a){return this.Ab.get(a)}; Y4e.prototype.equals=function(a){return a instanceof Y4e?!!this.$&&this.$==a.$||!!this.mL&&this.mL==a.yc():!!this.$&&a==this.$};
var Z4e=function(){Ld.call(this);this.Sa=new Yv;this.$=new Ze};t(Z4e,Ld);var $4e=function(a,b,c){a.Sa.set(b.getId(),b);v(n3(b),function(a){this.$.set(a.getId(),b)},a);a.dispatchEvent(new X4e("gF",b.getId(),zg(n3(b),function(a){return a.getId()}),c))},a5e=function(a,b){b&&JG(a.Sa,b.getId())&&(a.Sa.remove(b.getId()),a.dispatchEvent(new X4e("hF",b.getId())))};Z4e.prototype.k_=function(a){var b=new Y4e;$4e(this,b,this.$.get(a).getId());b5e(this,b.getId(),[a])};
var b5e=function(a,b,c){var d=a.Ah(b);c=ec(c,function(a){return this.$.get(a).getId()!=b},a);c.length&&v(c,function(a){var b=this.$.get(a).getShape(a),c=this.$.get(a),m=c.getShape(a);c.k_(m);this.$.remove(a);this.dispatchEvent(new X4e("kF",c.getId(),[a]));0==n3(c).length&&a5e(this,c);d.Ab.set(b.getId(),b);this.$.set(b.getId(),d)},a);a.dispatchEvent(new X4e("jF",b,c))},c5e=function(a,b,c,d,f,h){var k=b.getId(),m=b.Ob();b.update(c,d,f,h);a.Sa.some(function(a){return a!=b&&a.equals(b)?(b5e(this,a.getId(),
b.Ab.ii()),k=a.getId(),!0):!1},a);m!=f&&a.dispatchEvent(new X4e("iF",k))};Z4e.prototype.eSa=function(){return this.Sa.Rc()};Z4e.prototype.Ah=function(a){return this.Sa.get(a)};var e5e=function(a){return ec(a.eSa(),function(a){return a&&(!Ea(Ga(a.Ob()))||!Ea(Ga(a.yc()))||!Ea(Ga(a.$)))})};
var g5e=function(a){a=""+('<div personid="'+R(a.UMa)+'" class="a-ta-Jh a-ta-Ge-zca" tabindex="-1"><input class="a-ta-Jh-kb" placeholder="'+R(f5e())+'"><div class="a-ta-Jh-za"><div class="a-ta-Jh-za-YLEF4c"></div><div class="a-ta-Jh-za-E"></div>');var b;b=Oz("Untag person");a+='<div class="a-n-Zd-Ce a-ta-Jh-BFDoi" title='+tn(b)+'></div></div><div class="a-ta-usa" /></div>';return Y(a)},f5e=function(){return P("Who is this?")},nug=function(a){return Y('<div oid = "'+R(a.Uo)+'"><img src="'+R(S(a.Da))+ '" class="a-ta-Jh-za-W"></div>')};
var n5e=function(a){var b,c;c=Oz("Face");b="";a='<div class="a-ta-Pc" shapeid="'+R(a.K6)+'"><img class="a-ta-Pc-qe" src="'+R(S(a.url))+'" alt="'+R(c)+'" title="'+R(c)+'"><div class="a-n-J-hD a-ta-Pc-Ah" title="';b=b+(a+R(P("Remove from this group"))+'"></div></div>');return Y(b)};
var o3=function(a,b,c){C3.call(this,a,b,vo.ia(),c);this.Bm(8,!0)};t(o3,C3);o3.prototype.Pa=function(){o3.ya.Pa.call(this);var a={K6:this.getId(),url:this.La().Yh()[0].Qs(76,["c"])};this.Kb(U(this.getContext().ef(),n5e,a))};o3.prototype.Na=function(){o3.ya.Na.call(this);this.getHandler().removeAll();this.Ea().NYa(this.ta(),!1);(new bF(this.ta(),300)).play()};o3.prototype.getId=function(){return this.La().getId()}; o3.prototype.dmb=function(){var a=new aF(this.ta(),300);this.getHandler().yj(a,"end",this.Ma);a.play()};
var i3d=function(a,b){return UJ(b.ka()).getImageUrl(a,new kB(30,30),"picasa")};var r3=function(a,b,c,d,f){s3.call(this,a,f);this.Sa=b;this.Qb=d;this.Ab=new D4e(JC(this.getContext().ef(),f5e));this.mL=c};t(r3,s3);
r3.prototype.Pa=function(){var a={UMa:this.Sa.getId()};this.Kb(U(this.getContext().ef(),g5e,a));if(a=this.fb("a-ta-Jh-kb")){this.Ab.yb(a);if(this.Sa.Ob()){On(a,!1);var b=this.hg("a-ta-Jh-za-E");"innerText"in b?b.innerText=this.Sa.Ob():"textContent"in b&&(b.textContent=this.Sa.Ob());this.Sa.Sa&&this.getContext().ef().uc(this.fb("a-ta-Jh-za-YLEF4c"),nug,{Uo:this.Sa.$,Da:i3d(this.Sa.Sa,this.getContext())})}else On(this.fb("a-ta-Jh-za"),!1);this.Ea().NYa(a,!0)}this.Ag=this.hg("a-ta-usa");v(n3(this.Sa),
function(a){a=new o3(this.getContext(),a,this.Ea());this.ib(a,!1);a.render(this.Ag)},this)};r3.prototype.Na=function(){r3.ya.Na.call(this);Rn(this.ta(),"a-ta-Ge-zca")};r3.prototype.getId=function(){return this.Sa.getId()};var o5e=function(a){return Sn(a.target,"a-ta-Jh-kb")},p5e=function(a){a.Ab.hasFocus()||(a.Ab.getValue()!=a.Sa.Ob()&&a.$b(),G4e(a.Ab),a.mL.Vb(a.Ab.ta()),a.getHandler().nb(a.mL,["canceldismiss","dismiss","update"],a.$b))};
r3.prototype.$b=function(a){a&&a.row&&a.row.Oc()?(a=a.row.Oc(),E4e(this.Ab,a.Ob()),c5e(this.Qb,this.Sa,a.Xa(),a.yc(),a.Ob(),a.Cd())):a&&a.row&&a.row.getQuery()&&yE(a.row.getQuery())?c5e(this.Qb,this.Sa,null,a.row.getQuery(),null,null):(a=this.Ab.getValue(),yE(a)?c5e(this.Qb,this.Sa,null,a,null,null):c5e(this.Qb,this.Sa,this.Sa.$,null,this.Ab.getValue(),this.Sa.Sa))};
var q5e=function(a,b){v(b,function(a){a=new o3(this.getContext(),this.Sa.getShape(a),this.Ea());this.ib(a);a.render(this.Ag)},a);a.Zc()},r5e=function(a,b){v(b,function(a){var b=this.Ge(a);b&&(b.dmb(),this.removeChild(a))},a);a.Zc()};r3.prototype.Zc=function(){On(this.ta(),0<n3(this.Sa).length)};r3.prototype.dmb=function(){var a=new aF(this.ta(),300);this.getHandler().yj(a,"end",this.Ma);a.play()};
var s5e=function(){return Y('<div class="a-ta-Z"></div>')};var t5e=function(a){var b=Y;if(1==a.cna.length)a=Y('<img src="'+R(S(a.cna[0]))+'">');else if(2==a.cna.length){var c=a.cna[0];a=Y('<img class="a-ta-zc-Pc-j0" src="'+R(S(a.cna[1]))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-paa a-ta-zc-Pc-Wg-Soa"></div><img class="a-ta-zc-Pc-l0" src="'+R(S(c))+'">')}else{var c=a.cna[0],d=a.cna[1];a=Y('<img class="a-ta-zc-Pc-Asa" src="'+R(S(a.cna[2]))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-Bsa a-ta-zc-Pc-Wg-Aca"></div><img class="a-ta-zc-Pc-j0" src="'+R(S(d))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-paa a-ta-zc-Pc-Wg-Aca"></div><img class="a-ta-zc-Pc-l0" src="'+ R(S(c))+'">')}return b(a)};
var w5e=function(a,b){A.call(this,v5e);this.$=a;this.element=b};t(w5e,A);var v5e="lF";var I3=function(a,b,c,d){s3.call(this,a,d);this.Sa=b;this.mL=aYd(this.getContext(),null);this.Zd=new Ze;this.Ab=null;this.$b=new lW(this.Ea());this.ib(this.$b);this.Vk=new df;this.Ag=new Ze;this.Vb=this.Qb=null;this.Ko=c};t(I3,s3);I3.prototype.Pa=function(){this.Kb(U(this.getContext().ef(),s5e));this.$b.Td=this;var a=this.ta();this.$b.$=a;this.$b.render(this.ta())};var x5e=function(a,b){b?a.Vb.start():a.Vb.stop()};I3.prototype.Sk=function(){return this.Zd.Rc()};
I3.prototype.Db=function(a){var b=this.getContext().$;b.OEb()||y5e(this);var c=z5e(this,a.target),d=A5e(c);d&&!Sn(a.target,"a-ta-Pc-Ah")&&(b.Sf(d)?this.getHandler().yj(this.ta(),"mouseup",function(){this.Ko.Sa.Ab||B5e(this,c.$,!1)}):B5e(this,c.$,!0),C5e(this,a))};var C5e=function(a,b){var c=30-Math.min(8,4*(a.Zd.Fc()-1)),d=U(a.getContext().ef(),t5e,{cna:zg(a.Zd.Rc(),function(a){return a.La().Yh()[0].Qs(c,["c"])})});a.dispatchEvent(new w5e(b,d,a.Zd.Rc()))};
I3.prototype.draw=function(){var a=this.ta();null!==a&&(this.Vb=new I4e(a,this.Ea()));ab(this.Sa.eSa(),function(a){this.ib(new r3(this.getContext(),a,this.mL,this.Sa,this.Ea()),!0)},this);Jd(this.getHandler().Ja(this.ta(),["mouseover","mouseout"],this.kfb).Ja(this.ta(),"mousedown",this.Db),this.ta(),vw,this.Op).Ja(this.ta(),"focus",this.lp,!0).Ja(this.Sa,"gF",this.mjb).Ja(this.Sa,"hF",this.vjb).Ja(this.Sa,"iF",this.cGc).Ja(this.Sa,"jF",this.Qkb).Ja(this.Sa,"kF",this.Rkb).Ja(this.ta(),"scroll",Lp(function(){this.mL.O8()},
this))};I3.prototype.FL=function(a){this.uh&&this.uh.Ma();this.uh=new Kdb(this.ta(),[0,this.ta().scrollTop],[0,this.Ge(a).ta().offsetTop],200,eo);x(this,this.uh);this.uh.play(!1);D5e(this,this.Ge(a))};var E5e=function(a,b){var c=a.Ge(b);c!=a.Ab&&(a.Ab&&p5e(a.Ab),F4e(c.Ab),c.Ab.rq(),c.mL.N_(c.Ab.ta()),c.getHandler().Ja(c.mL,["canceldismiss","dismiss","update"],c.$b),a.Ab=c)};I3.prototype.lp=function(a){var b=z5e(this,a.target),c=b.Ws();c&&o5e(a)&&(D5e(this,b.Sa),E5e(this,c))};
I3.prototype.Op=function(a){var b=z5e(this,a.target),c=b.Ws(),b=A5e(b),d=a.target;if(c){if(Sn(d,"a-ta-Jh-BFDoi"))c5e(this.Sa,this.Sa.Ah(c),null,null,null,null);else if(b){if(Sn(d,"a-ta-Pc-Ah")){this.Sa.k_(b);return}}else o5e(a)||y5e(this);o5e(a)?"keypress"==a.type&&13==a.keyCode||E5e(this,c):this.Ab&&(p5e(this.Ab),this.Ab=null)}};
var y5e=function(a){v(a.Zd.Rc(),function(a){a.qj(!1)});a.Zd.clear();a.getContext().$.lJ()},z5e=function(a,b){for(var c=null,d=null,f=b;!d&&f&&f!=a.ta();)d=d?d:f.getAttribute("personid"),c=c?c:f.getAttribute("shapeid"),f=f.parentNode;c=(d=a.Ge(d))&&d.Ge(c);return new G5e(d,c)},B5e=function(a,b,c){if(b){b instanceof o3&&(b=[b]);var d=!!c;1!=b.length||ia(c)||(c=b[0].La().getId(),d=!ba(a.Zd,c));var f=[];v(b,function(a){var b=a.La().getId();f.push(b);d?this.Zd.set(b,a):this.Zd.remove(b);a.qj(d)},a);a.getContext().$.WT(f,
d)}};q=I3.prototype;q.kfb=function(a){var b=z5e(this,a.target),c=b.Sa&&b.Sa.ta(),d=b.$&&b.$.ta();!c||a.relatedTarget&&this.Ea().contains(c,a.relatedTarget)||D5e(this,"mouseover"==a.type?b.Sa:null);c&&Sn(a.target,"picker-bulktagging-person-untag")&&Pn(a.target,"a-ta-BFDoi-u","mouseover"==a.type);!d||a.relatedTarget&&this.Ea().contains(d,a.relatedTarget)||(1<n3(this.Sa.Ah(b.$.getParent().getId())).length?Pn(d,"a-ta-Pc-u","mouseover"==a.type):Pn(d,"a-ta-Pc-u-Ge","mouseover"==a.type))};
q.mjb=function(a){this.Zj(new r3(this.getContext(),this.Sa.Ah(a.Ws()),this.mL,this.Sa,this.Ea()),this.Af(this.Ge(a.Sa||""))+1,!0)};q.vjb=function(a){a=this.Ge(a.Ws());a==this.Qb&&D5e(this,null);a.dmb();this.removeChild(a);T5e(this)};
q.cGc=function(a){a=this.Ge(a.Ws());var b=a.hg("a-ta-Jh-kb"),c=a.hg("a-ta-Jh-za-YLEF4c");On(b,!a.Sa.Ob());On(a.fb("a-ta-Jh-za"),!!a.Sa.Ob());a.Sa.Ob()?(b=a.hg("a-ta-Jh-za-E"),"innerText"in b?b.innerText=a.Sa.Ob():"textContent"in b&&(b.textContent=a.Sa.Ob()),a.Sa.Sa&&(c.childElementCount||a.getContext().ef().uc(c,nug,{Uo:a.Sa.$,Da:i3d(a.Sa.Sa,a.getContext())}))):(E4e(a.Ab,""),b.value="",c&&c.firstChild&&c.removeChild(c.firstChild))};q.Qkb=function(a){q5e(this.Ge(a.Ws()),a.$);y5e(this);T5e(this)};
q.Rkb=function(a){var b=[];v(a.$,function(a){(a=this.Zd.get(a))&&b.push(a)},this);B5e(this,b,!1);r5e(this.Ge(a.Ws()),a.$);T5e(this)};q.Eqa=function(a){var b=this.Ea().fb("a-ta-Z");return"IMG"!=a.tagName&&"INPUT"!=a.tagName&&Oc(b,a)&&!A5e(z5e(this,a))};var D5e=function(a,b){a.Qb!=b&&(a.Qb&&Rn(a.Qb.ta(),"a-ta-u"),(a.Qb=b)&&Qn(b.ta(),"a-ta-u"))},T5e=function(a){a.Ag.clear();a.Km=null};I3.prototype.GHa=function(){return this.Km=pe(this.ta())};
I3.prototype.Yia=function(a){if(a&&!this.isDisposed()&&Ge(this)){var b=[],c=new df;Ye(Njc(this),function(d){var h=this.Ge(d);return h instanceof r3&&(d=$5e(this,h),a.top<d.top+d.height&&!Ye(Njc(h),function(d){d=h.Ge(d);if(d instanceof o3){var f=$5e(this,d);if(a.top+a.height<f.top)return!1;Vba(a,f)&&(f=d.getId(),c.add(f),ba(this.Zd,f)||b.push(d))}return!0},this))?!1:!0},this);var d=[];v(this.Zd.Rc(),function(a){var b=a.getId();this.Vk.contains(b)||c.contains(b)||d.push(a)},this);B5e(this,b,!0);B5e(this,
d,!1)}};var $5e=function(a,b){var c=(b instanceof o3?"s-":"p-")+b.getId(),d=a.Ag.get(c);d||(d=pe(b.ta()),d.top+=a.ta().scrollTop,a.Ag.set(c,d));return d};I3.prototype.lya=function(a,b){this.Ag.clear();if(a){var c=this.getContext().$;b?this.Vk=new df(c.Sk()):(y5e(this),this.Vk.clear())}x5e(this,a);Pn(this.ta(),"a-S1-R1",a)};var G5e=function(a,b){this.Sa=a;this.$=b};G5e.prototype.Ws=function(){return this.Sa&&this.Sa.getId()};var A5e=function(a){return a.$&&a.$.getId()};
var n6e=function(a){this.$=a};n6e.prototype.KX=function(a){v(e5e(a),function(a){var c=y_d,d={},f=a.yc();null!=f&&(d.email=f);f=a.Ob()||a.yc();null!=f&&(d.displayName=f);f=a.$;null!=f&&(d.personUserId=f);f=n3(a).length?n3(a)[0].Qja[0].getId():void 0;null!=f&&(d.userId=f);c(this,a,d)},this)};
var y_d=function(a,b,c){var d=n3(b);if(d&&d.length){var f=a.$.od;v(d,function(a){a.setAttribute("tdn",b.Ob());a.setAttribute("te",b.yc());a.setAttribute("ss","u");a.setAttribute("sa",b.equals(a.getAttribute("tuid")||"")||void 0);a.setAttribute("tuid",b.$);a.setAttribute("tsg",void 0);a=a.getId();var c=f.La(a.split("_")[0]);if(c){var d=c.getAttribute("si")||[];d.push(a);c.setAttribute("si",d)}},a);a.$.od.Vd(new K3("labelShape","picasa",zg(d,function(a){return a.Qe()}),c||{}),ka,ka)}};
var p6e=function(a,b,c){Ld.call(this);this.$=a;this.Kf=c;this.xb=b;On(this.xb,!1);this.xb.style.position="absolute";this.Sa=new H4e(this.xb);x(this,this.Sa);this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(this.Sa,"end",this.Qb).Ja(this.Sa,"drag",this.Ab).Ja(this.Sa,"start",this.$b)};t(p6e,Ld);p6e.prototype.mL=function(a){this.Kf.hb(this.xb);this.xb.appendChild(a.element);this.Sa.$(a.$)};p6e.prototype.Qb=function(a){On(this.xb,!1);this.dispatchEvent(new t6e("Ah",0,a))};
p6e.prototype.Ab=function(a){On(this.xb,!0);a=he(a.$,this.xb.parentNode);Vd(this.xb,a.x+5,a.y+5)};p6e.prototype.$b=function(a){this.dispatchEvent(new t6e("th",0,a,this.Sa))};var t6e=function(a,b,c,d){cx.call(this,a,d||c.Sa,c.clientX,c.clientY,c.$,c.left==c.clientX?void 0:c.left,c.top==c.clientX?void 0:c.top,!!c.jg)};t(t6e,cx);
var J3=function(a,b,c){var d=b.or();a.rd().Mma&&d instanceof $w&&oZd(d,"shapeSuggestions","true");n4.call(this,a,d,c);this.Bc=b;this.Ab=new B3(a,Lp(this.lp,this),Lp(this.uh,this),c);this.Qb=new Z4e;this.Ag=null;this.Km=new Yv;this.Sa=new ag};t(J3,n4);q=J3.prototype;
q.Pa=function(){J3.ya.Pa.call(this);var a=this.getContext().ef(),b=this.Ea().Pa("div");this.Vb=new p6e(this.getContext(),b,this.Ea());this.ib(this.Ab,!0);this.Ag=new I3(this.getContext(),this.Qb,this.Vb,this.Ea());this.Ab.ib(this.Ag,!0);this.Ab.ta().appendChild(b);this.Vk=U(this.getContext().ef(),P4e);this.Ab.cb().appendChild(this.Vk);if(this.Bc.Sa&&"photo-tagging"!=this.Bc.Sa.$||this.Bc.getOption("ids"))b=JC(a,O4e),this.Ab.mL.setContent(b);WQd(this.Ab,JC(a,N4e))};
q.Na=function(){J3.ya.Na.call(this);var a=this.Vb;a.Bb.Ja(this.Ag,v5e,a.mL);this.getHandler().Ja(this.Vb,"th",this.y2).Ja(this.Vb,"Ah",this.Sx).Ja(this.Qb,"kF",this.Db);var a=this.Bc.getOption("parent"),b=this.Bc.getOption("eid");a?L2d(this.getContext().od,a,!1,Lp(this.Sa.By,this.Sa),Lp(this.Sa.jd,this.Sa)):b?M4e(this.getContext().od,b,Lp(this.Sa.By,this.Sa),Lp(this.Sa.jd,this.Sa)):this.Sa.By(void 0)};
q.Ik=function(a){var b,c=ec(a,function(a,c){return a.getAttribute("rt")?(b=c,!1):!0});a=a[b].getAttribute("rt");"empty"==a||"tagged"==a?this.gR():(this.Vk&&(this.Ea().removeNode(this.Vk),this.Vk=null),g_d(this,c),D6e(this),this.Ag.draw(),this.Ab.qh(!0))};q.zbb=ka;q.gR=function(){this.isDisposed()||this.uh()};
var D6e=function(a){var b=[],c=[];v(a.Km.Rc(),function(a){var f=a[0].getAttribute("tuid"),h=a[0].getAttribute("te"),k=a[0].getAttribute("tdn"),m=a[0].getAttribute("turl"),p=new Y4e(f,h,k,m);v(a,function(a){p.Ab.set(a.getId(),a)},this);h||k?b.push(p):c.push(p)},a);wb(b,function(a,b){return n3(a).length-n3(b).length});wb(c,function(a,b){return n3(a).length-n3(b).length});v(c,function(a){$4e(this.Qb,a)},a);v(b,function(a){$4e(this.Qb,a)},a);a.getContext().Ab.addCallback(function(a){var c=cb(b,function(b){return b.getId()==
a.getUserId()});c&&(a5e(this.Qb,c),$4e(this.Qb,c))},a)},g_d=function(a,b){var c=a.Bc.getOption("userId"),d=0;v(b,function(a){var b=a.getAttribute("te"),k=a.getAttribute("tuid"),m=a.getAttribute("sc"),b=k||b||m||(--d).toString();a.setAttribute("so",c);k=this.Km.get(b)||[];k.push(a);this.Km.set(b,k)},a)};J3.prototype.y2=function(){x5e(this.Ag,!0)};
J3.prototype.Sx=function(a){if(Oc(this.Ag.ta(),a.$.target)){var b=this.Ag;a=z5e(b,a.$.target).Ws();var c=b.getContext().$;a&&c.Sk().length&&b5e(b.Sa,a,c.Sk());y5e(b)}x5e(this.Ag,!1)};J3.prototype.Db=function(){this.Qb.$.Fc()||z6e(this)};var z6e=function(a){a.Ab.cb().appendChild(U(a.getContext().ef(),R4e));Uf(function(){this.isDisposed()||this.uh()},2E3,a)};J3.prototype.uh=function(){this.getContext().od.xk(this.Bc.Sa?1:4);this.Ab.qh(!1);this.getContext().Sa.Sl([])};
J3.prototype.Op=function(){this.getContext().od.xk(this.Bc.Sa?2:5);this.Ab.qh(!1);(new n6e(this.getContext())).KX(this.Qb);this.getContext().Sa.Sl([])};
J3.prototype.lp=function(){var a=this.getContext().ef();this.Sa.addCallback(function(b){if(b&&e5e(this.Qb).length){var c=lI(lI(new qx,{key:"ok",caption:JC(a,U4e)},!0),ux,!1,!0),d=b.getAttribute("it")?"false"==b.getAttribute("it"):!0;b="album"==b.Ra()?a.render(S4e,{mCa:b.getUrl(),albumName:b.getName(),Q1:d,Zm:b.Tm()}):JC(a,T4e,{vv:b.getName()});c=zx(JC(a,W4e),b,this.Op,null,this,"a-ta-Vj-q",c,this.Ea());Qn(c.Bf(),"a-ta-Vj-q-Ya");c.setVisible(!0)}else b?this.uh():this.Op()},this);bg(this.Sa,this.uh, this)};
var B_d=function(){kd.call(this)};t(B_d,x3);B_d.prototype.initialize=function(){};B_d.prototype.uj=function(a,b,c){return"photo-tagging"==a.$?new J3(b,a,c):null};B_d.prototype.K9=function(a,b,c){switch(a){case "bulkTag":return new rZd(b,c)}return null};vg(xg(E.ia(),"opt"),B_d);

G("opt");I();
}catch(e){_DumpException(e)}
try{
var B2d=function(a,b){A.call(this,"status",this);this.Cod=a;this.url=b};t(B2d,A);H3.prototype.mL=g(658,function(){this.Sa=!1});lka.prototype.UE=g(179,function(a){Lg(this,1,a)});dm.prototype.UE=g(178,function(a){Lg(this,9,a)});Xm.prototype.UE=g(177,function(a){Lg(this,3,a)});
var C2d=function(a,b){var c;a.Sa.addCallback(function(a){c=a},a);d2d(a,b);var d=[];v(b,function(a){var b=this.La(a.getId());d.push(b);"start"==HY(c,a)&&this.$.We().Xgb(b.getId(),a.kf,i2d(c));f2d(this,a)},a);return d},O$e=function(a){a.Ab||qr(a.getHandler(),a.handle,["touchstart","mousedown"],a.$,!1,a)},n4d=function(a){a.Ik(a.Rd().Ae());a.vB(!0)},U$e=function(a){On(a.Ea().fb("a-n-ab-z-ib-zf",a.ta()),!0)},L_d=function(a){return a.Ea().fb("a-fy-Ca",a.ta())},D2d=function(a){var b=a.Ea().fb("a-G1",a.getContext().rd().fG()),
c=zy(b).width,b=zy(b).height,c=Math.floor((c-oe(a.ta()).width)/2);My.Bo()?Pd(a.ta(),"margin-right",c+"px"):Pd(a.ta(),"margin-left",c+"px");c=Math.floor((b-oe(a.ta()).height)/2);Pd(a.ta(),"margin-top",c+"px")},K_d=function(a){var b=a.Ea(),c=b.fb("XY-Tc",a.ta());c&&(On(c,!1),le(b.fb("a-J-e-Tc",a.ta()),0,0));(a=b.fb("la-ba-jb",a.ta()))&&On(a,!1)},V$e=function(a,b){a.mL.ta()&&On(a.mL.ta(),b);a.Ye=!b},wbg=function(a){var b=a.Ea(),c=[b.Pa("div",["a-U-v-c-W","a-n-gc-v-m","d-k-l"]),b.Pa("span","a-U-v-c-E",
"Upload More")];a.uh=new Ot(c,b);return a.uh},baf=function(a){if(a.Sa){var b={};v(a.Sa,function(a){b[a.$]=a});var c=Gaa(rRd,function(a){return!!b[a]});return b[c]||a.Sa[0]}},E2d=function(a,b){Ld.call(this);this.$b=a;this.$=b||"";this.mL=this.Qb=this.Sa=void 0;this.Ab={};this.Ba=new Hd(this)};t(E2d,Ld);q=E2d.prototype;q.dG=function(){return this.mL};q.jxa=function(a){this.Ab=a};
q.pKc=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){var c=b.sessionStatus.externalFieldTransfers[0][this.$+"Info"];this.Sa=c.http_url;this.Qb=c[this.$+"_url"];this.dispatchEvent(new B2d(!0,this.Qb))}else this.t2a()}catch(d){this.t2a()}};q.t2a=function(){this.dispatchEvent(new B2d(!1))};q.NGc=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){try{this.mL=b.sessionStatus.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"].completionInfo.customerSpecificInfo}catch(c){}this.dispatchEvent(new B2d(!0))}else this.b2a()}catch(d){this.b2a()}};
q.b2a=function(){this.dispatchEvent(new B2d(!1))};q.qb=function(){E2d.ya.qb.call(this);y(this.Ba)};var daf=function(a,b){return Vba(a,b)},d5=function(a,b,c,d){O3.call(this,a,b,Q3.ia(),d);LA(this,Q3.ia());this.Km=new c5(this.La(),d);this.Qb=new H3;x(this,this.Qb);this.yQ=c;this.mL=this.lp=null;this.Tx=void 0;this.iaa=new F7g(a);x(this,this.iaa)};t(d5,O3);q=d5.prototype;
q.Na=function(){d5.ya.Na.call(this);this.Km&&(this.Km.render(this.lp),TB(pc("a-n-J-m",this.ta()),"a-n-J-m","a-n-Ca-v-m"));this.getHandler().Ja(pc("a-n-ab-z-ib-zf",this.ta()),"click",this.vjd);var a=L_d(this);this.getHandler().Ja(a,"mousedown",function(a){a.stopPropagation()},!0)};
q.Pa=function(){d5.ya.Pa.call(this);var a=L_d(this),b=ha.URL||ha.webkitURL,c;this.yQ&&(c=b.createObjectURL(this.yQ));c&&(this.getHandler().Ja(a,"error",function(b){if(4==b.target.error.code||3==b.target.error.code)this.getHandler().nb(a,["error","canplay"]),this.update(),On(this.Ea().fb("a-fy-Ca",this.ta()),!1),On(this.Ea().fb("a-a4-nb",this.ta()),!1),(new bF(this.ta(),450)).play()}),this.getHandler().yj(a,"canplay",function(){var b=c,f=this.Ea(),h=Zc(f,"video",void 0,this.ta())[0];h.src=b;h.autoplay=
!1;h.muted=!1;h.controls=!0;(new bF(this.ta(),450)).play();On(f.fb("a-J-e-qa",this.ta()),!1);this.getHandler().nb(a,["error","canplay"])}),a.src=c,a.muted=!0,a.autoplay=!0)};
q.vjd=function(){var a=this.La().vt();if(a){this.dispatchEvent("Vm");var b={parent:a,deleteParentIfEmpty:!0},a=new ag(void 0,this);a.addCallback(Lp(function(){this.dispatchEvent("om")},this));bg(a,Lp(function(){this.dispatchEvent("Wm");alert("Your video was unable to be deleted. Please try again.")},this));b=new K3("delete","picasa",[this.La().getId()],b);this.iaa.OZa(b,a,!0,!0)}else this.dispatchEvent("om")};q.Gdb=function(a){this.lp=a};
q.update=function(){d5.ya.update.call(this);var a=this.La(),b=this.Sa,c=a.getVideoData(),d=c&&c.QD(),f=ve(L_d(this));if("success"==a.Ii.getState()&&!c||d)if(K_d(this),H_d(this),d)if(c&&d&&!this.Qb.Nb()&&CRd){if(a=this.Qb)a.mL(),c=oe(this.ta()),this.La().Yh().length&&a.Jca(this.La().Yh()[0].ll(c.width,["k","no"]).Qs()),c=this.Ea().fb("a-J-e-qa-B",this.ta()),a.render(c),c=(c=this.La().getVideoData())&&c.QD(),d=oe(this.ta()),le(a.ta(),d.width,d.height),On(a.ta(),!0),c&&a.$(c),K_d(this),b.$ca(this,!1)}else!f&&
c&&d&&(b.$ca(this,!1),a=this.Ea(),b=a.fb("a-Ca-zc",this.ta()),a=a.fb("a-Ca-zc-W",b),c=oe(this.ta()),c=this.La().Yh()[0].ll(c.width).Qs(),a.src=c,On(b,!0));else b.$ca(this,!0),U$e(this)};q.yw=function(){var a=this.mL;a||(a=this.mL=new yo(""),a.Bm(32,!1));return a};q.yZ=function(){I_d(this.Km,M3(this.La()));On(this.Ea().fb("a-n-Ca-v-m",this.ta()),!1);U$e(this)};q.Ib=function(){d5.ya.Ib.call(this);this.mL&&this.mL.Ib()};
var H_d=function(a){if(a.Tx&&ia(a.Tx)){var b=a.La(),c=b.Jd();b.Ee(a.Tx);var d=a.getContext(),f={caption:a.Tx};d.od.Vd(new K3("changeCaption","picasa",[b.getId()],f),ka,Lp(function(){b.Ee(c);this.yw().setContent(c)},a))}a.Tx=void 0},faf=function(a){var b=a.videoId,c;if(a=a.playerFlashVars){var d=new Ff(a);a=d.get("fmt_list");d=d.get("fmt_stream_map");if(a&&d){c=[];for(var f={},d=d.split(","),h,k=0;k<d.length;k++){var m=d[k].match("^([0-9]+)\\|(.*)");m?(h=Faa(m[1]),f[h]=m[2]):h&&(f[h]+=","+d[k])}v(a.split(","), function(a){var b=a.split("/");a=Faa(b[0]);b=b[1].split("x");c.push(new TEa(f[a],a,new Kb(Faa(b[0]),Faa(b[1]))))})}}return b||c?new UEa(b,void 0,0,c):void 0};H("oppu");
var L4d=function(a,b,c,d){B3.call(this,a,b,c,d);this.Ag=null};t(L4d,B3);L4d.prototype.V2b=function(){var a=this.Ea(),b=this.Ag;this.getContext().We().Aia()?(b||(b=this.Ag=a.Pa("div","a-Za-zu-sc a-Za-v-Qd",a.Pa("div","d-k-l",a.Pa("div","a-Za-m d-k-l"),a.Pa("div","a-Za-sc d-k-l a-Za-ii-nc","Uploading..."))),this.Sa.appendChild(b)),On(b,!0),b.style.visibility=""):b&&(On(b,!1),b.style.visibility="hidden")};
var f4d=function(a){A.call(this,"Vo");this.$=a};t(f4d,A);var V5=function(a,b){var c=new $w({service:"picasa",type:"uploadablealbums"});n4.call(this,a,c,b);this.Qb={};this.Sa=new qz("Loading...",void 0,Hp.ia(),b);this.ib(this.Sa)};t(V5,n4);q=V5.prototype;q.Pa=function(){var a=this.Ea().Pa("div","a-me-hj");this.Kb(a);this.Sa.Pa();a.appendChild(this.Sa.ta());Qn(this.Sa.ta(),"a-me-hj-Qb");this.Sa.Ne().Pa();Qn(this.Sa.Ne().ta(),"a-me-hj-Qb-r")};q.Na=function(){new mR(this.Sa.Ne());V5.ya.Na.call(this)};
q.bC=function(a){a=ec(a,function(a){return"application/vnd.google-apps.rollupphotoalbum"!=a.rI()});return V5.ya.bC.call(this,a)};q.Ik=function(a){for(var b=this.Sa.Pl(0);b;)this.Sa.qha(0),b=this.Sa.Pl(0);this.Qb={};this.Hr(a)};q.zbb=function(a){var b=this.getContext().od.La(a);a=this.Qb[a];b&&a&&a.Lb(b.getName()||"")};
q.Hr=function(a){var b=this.Ea(),c=this.getContext().rd().Qb;v(a,function(a){var f=a.Qe();a=new yp(a.getName()||"",void 0,b);a.Xo(f);var h=this.Sa;h.dg(a);f!=c&&h.Cg()!=h.Sx||h.jn(a);this.Qb[f]=a},this)};q.gR=function(){var a=this.Ea(),a=new yp("Drop Box",void 0,a);a.Xo("-1");this.Sa.dg(a);this.Sa.jn(a)};q.iRa=function(){};q.iO=function(){V5.ya.iO.call(this);this.dispatchEvent("JF")};q.qb=function(){V5.ya.qb.call(this);delete this.Qb;this.Sa.Ma();delete this.Sa};
var g4d=function(a,b,c){C.call(this,c);this.$=a;this.Sa=null;"pname"==b&&(this.Sa=new V5(a,c),this.Sa.setActive(!0),this.ib(this.Sa),this.getHandler().Ja(this.Sa,"JF",this.LFc));this.mL=new BM("create a new album",OF.ia(),c);this.ib(this.mL);this.Km=new kR;this.ib(this.Km);this.$b=new BM("add to an existing album",OF.ia(),c);this.ib(this.$b);this.Ko=new F7g(a);x(this,this.Ko)};t(g4d,C);g4d.prototype.Qb=function(a){this.Vb=a;var b=this.Ab;b&&(this.Ab.value=a,this.Vk(),b.disabled=!1)};
var h4d=function(a,b){b?a.$.od.Vd(new u3("picasa",[b],{type:"album"}),Lp(function(a){(a=a.Ae())&&a.length&&this.Qb(a[0].getName())},a),Lp(a.Qb,a,""),!0):a.Qb("")};
g4d.prototype.Pa=function(){var a=this.Ea(),b=void 0;this.Sa&&(this.Sa.Pa(),b=this.Sa.ta(),Qn(b,"d-k-l"),On(b,!1));this.Kb(a.Pa("div","a-ij",a.Pa("table",{cellPadding:0,cellSpacing:0},a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td","a-ij-Da-xd",a.Pa("span","a-ij-ka","Album name:"),b,this.Ab=a.Pa("input",{type:"text",className:"a-ij-N b-hb"}),this.Ag=a.Pa("span")))))));this.Sa&&(this.$b.Pa(),this.mL.Pa(),On(this.mL.ta(),!1),On(this.Ag,!1),a.uv(this.Ag,"or","\u00a0",this.mL.ta(),this.$b.ta()));ia(this.Vb)?
(this.Ab.value=this.Vb,this.Vk()):this.Ab.disabled=!0;this.Km.yb(this.Ab)};g4d.prototype.Na=function(){g4d.ya.Na.call(this);this.Ab.maxLength=100;var a=new rw(this.Ab);x(this,a);this.getHandler().Ja(this.mL,"action",Lp(this.j1a,this,!0)).Ja(this.$b,"action",Lp(this.j1a,this,!1)).Ja(this.Ab,"click",Lp(this.wAb,this)).Ja(a,"input",this.Vk)};g4d.prototype.Vk=function(){var a=!!Ia(this.Ab.value);a!=this.uh&&(this.uh=a,this.dispatchEvent(a?"rn":"Fn"))};
g4d.prototype.reset=function(){this.Nb()&&(this.Vb="",this.uh=!1,this.Sa&&(On(this.Ag,!1),this.Sa.vB(!0),this.j1a(!0)))};
var gaf=function(a,b,c,d){var f=zg(b,function(a){return a.getId()},a);if(a.Sa&&ve(a.Sa.ta())){var h=a.Sa.Sa.$e().getValue();c?k4d(a,f,{albumId:h},d):(c=b[0].vt(),j4d(a,f,c,h,d))}else{var h=Ia(a.Ab.value),k=Ea(Ga(h));!k&&c?k4d(a,f,{albumName:h},d):k||h==a.Vb?a.$.Sa.Sl(b):(c=b[0].vt(),i4d(a,b,c,h,d))}},i4d=function(a,b,c,d,f){a.$.od.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:c,title:d}),Lp(a.lgb,a),Lp(a.lp,a,b,f))};
g4d.prototype.lp=function(a,b){confirm("Sorry!  We could not save your album's name.  Would you like to continue anyway?")?this.$.Sa.Sl(a):b()};var j4d=function(a,b,c,d,f){a.$.od.Vd(new K3("move","picasa",b,{src:c,parent:d}),Lp(function(a){var b=a.Ae(),f=this.$.od.La(d,"picasa");f&&(b=f.Tm()+b.length,f.$b=b,f.setAttribute("fdc",!0),f.setAttribute("numFaces",void 0));this.lgb(a);a=new K3("delete","picasa",[],{parent:c,deleteParentIfEmpty:"true"});this.Ko.OZa(a,void 0,!0,!0)},a),Lp(a.Op,a,f))};
g4d.prototype.Op=function(a){alert("Sorry!  We could not move your photos to the album you selected.");a()};var k4d=function(a,b,c,d){a.$.od.Vd(new K3("multiInclude","picasa",b,c),Lp(a.lgb,a),Lp(a.LBc,a,d))};q=g4d.prototype;q.LBc=function(a){alert("Sorry!  We could not copy your photos to the album you selected.");a()};q.lgb=function(a){a=a.Ae();var b=this.$.od;v(a,function(a){var d=b.La(a.getId());a.zJ(!d||d.Kn());a.setAttribute("si",d&&d.getAttribute("si"))},this);b.Xp(a);this.$.Sa.Sl(ec(a,function(a){return!oTf(a)}))};
q.j1a=function(a){this.Sa&&(On(this.Sa.ta(),!a),On(this.mL.ta(),!a),this.dispatchEvent(this.uh||!a?"rn":"Fn"),On(this.Ab,a),On(this.$b.ta(),a),this.dispatchEvent(new f4d(a)))};q.wAb=function(){if(this.Ea().La().activeElement!=this.Ab){var a=this.Ab;a.focus();a.select&&a.select()}};q.LFc=function(){0<this.Sa.zq().Fc()&&On(this.Ag,!0)};q.focus=function(){try{return this.wAb(),!0}catch(a){return!1}};
var Fag=function(a,b,c){a=a||{};b="";if(a.Jdb||a.deb)c=wA(new Z("{VIEWER_GENDER,select,female{Install Auto Backup for easier uploading!}male{Install Auto Backup for easier uploading!}other{Install Auto Backup for easier uploading!}}"),{VIEWER_GENDER:c.Aa}),b+='<div class="d-k-l a-fwHlj-qUPACb-zb">'+(a.Jdb?'<a href="https://dl.google.com/dl/picasa/gpautobackup_setup.dmg" target="_blank">':a.deb?'<a href="https://dl.google.com/dl/picasa/gpautobackup_setup.exe" target="_blank">':"")+'<div class="a-fwHlj-qUPACb-m d-k-l  a-n-gq-D-y7"></div><div class="d-k-l a-fwHlj-qUPACb-E">'+ c+"</div></a></div>";return Y(b)};
var l4d=function(a,b,c){B3.call(this,a,b,void 0,c);l4d.ya.qh.call(this,!0)};t(l4d,B3);l4d.prototype.kN=function(){return null};l4d.prototype.qh=ka;var N5=function(a,b,c){T3.call(this,b,c);this.Ab=a;this.Ba=new Hd(this);x(this,this.Ba)};t(N5,T3);q=N5.prototype;q.pO=0;q.lT=0;q.yN=function(a){N5.ya.yN.call(this,a);this.pO=this.lT=a=tX(a)};q.Owa=function(){tX(this.$);if(this.Sa){var a=new U3(this.lT,this.pO);this.Sa=!1;this.dispatchEvent(a)}N5.ya.Owa.call(this)};q.cJa=function(){return xc&&Gf("6")||gc&&Gf("10.5")||xd&&Gf("525")||wd&&Gf("1.9.1")};
q.pT=function(a){N5.ya.pT.call(this,a);if(!this.Sa){this.Sa=!0;var b=0,b="editbar-rotate-left"==a?-90:90;if(a=this.$)this.lT=tX(a),this.pO=b+this.lT,c5c(a,this.pO),this.mL&&d5c(a,this.mL,!1);b=new NRd(this.lT,this.pO);xc&&!Gf(9)?(this.Sa=!1,this.dispatchEvent(b)):(this.dispatchEvent(b),Uf(function(){this.Sa=!1;this.dispatchEvent(new U3(this.lT,this.pO))},this.Ab,this))}};q.jL=function(a){N5.ya.jL.call(this,a);var b=this.pO/90%4;0>b&&(b+=4);a.setAttribute("r",b)}; q.reset=function(){c5c(this.$,0);this.pO=this.lT=0};
var iaf=function(){return'<div class="a-w-Da-kb-ba-Da-ka-N"><input class="b-hb"><span class="a-n-jf-ab"></span></div>'},jaf=function(){return'<div class="a-w-Da-kb-ba-Qb-ka-N"><input class="b-hb"></div>'},kaf=function(){return'<div class="a-iu"></div>'};
var laf=function(a,b,c,d){C.call(this,d);this.$=a;this.uh=b;this.Ab=c;this.Sa=new qz(void 0,void 0,Hp.ia(),this.Ea());this.uh&&this.$.od.Vd(new $w({service:"picasa",type:"uploadablealbums"}),Lp(this.oIb,this),ka,!0);this.Ag=new ro;x(this,this.Ag);this.Vb=!1};t(laf,C);q=laf.prototype;
q.Pa=function(){laf.ya.Pa.call(this);var a=this.$.ef();if(this.uh){rz(this.Sa,"Add to album");this.Sa.Exa=!0;this.Sa.U4=!0;this.ib(this.Sa,!0);Qn(this.Sa.ta(),"a-w-Da-kb-ba-Da-Qb");Qn(this.ta(),"a-w-Da-kb-ba-Ui-r");var b=this.Ea().fb("d-y-r-c-Qa",this.Sa.ta());Qn(b,"a-n-dc-ia-r");b=U(a,jaf);this.Sa.Ne().Pa();this.Sa.Ne().ta().appendChild(b);this.Sa.Ne().ta().appendChild(U(a,kaf));this.Qb=new vx("New album name...");this.Qb.yb(this.Sa.Ne().hg("b-hb"))}this.$b=U(a,iaf);this.ta().appendChild(this.$b);
this.mL=new vx("Name your album...");this.mL.yb(this.hg("b-hb"));On(this.$b,!1)};q.Na=function(){laf.ya.Na.call(this);var a=this.hg("a-n-jf-ab");this.uh?(Jd(this.getHandler().Ja(this.Sa.Ne(),"show",this.Ekb).Ja(this.Sa.Ne(),"hide",this.NLa).Ja(this.Sa,"change",this.Dkb),a,vw,this.lIb),so(this.Ag,this.Qb.ta()),this.getHandler().Ja(this.Ag,"key",this.mIb)):(On(this.$b,!0),On(a,!1))};q.Ib=function(){to(this.Ag);laf.ya.Ib.call(this)};
q.oIb=function(a){v(a.Ae(),function(a){a=new yp(a.getName()||"",a.Qe(),this.Ea());this.Sa.dg(a)},this);0<this.Sa.tG()&&Rn(this.ta(),"a-w-Da-kb-ba-Ui-r");this.Ab&&this.Sa.Wj(this.Ab)};q.mIb=function(a){switch(a.keyCode){case 13:this.NLa();break;case 27:this.Vb=!0,this.Sa.hm(!1)}};q.Dkb=function(){if(this.Sa.$e()){var a=this.Sa.$e().getContent();this.mL.qe(a);this.Ab=this.Sa.$e().getValue()}};q.Ekb=function(){we(this.Qb.ta(),!1)};
q.NLa=function(){Ea(Ga(this.Qb.getValue()))||this.Vb||(this.mL.qe(this.Qb.getValue()),this.Ab=void 0,this.Sa.setVisible(!1),On(this.$b,!0),this.Qb.clear());this.Vb=!1};q.lIb=function(){this.Qb.clear();this.mL.clear();this.Ab=void 0;this.Sa.jn(null);this.Sa.setVisible(!0);On(this.$b,!1)};var maf=function(a,b){a.mL.qe(b);a.Ab&&(a.Sa.setVisible(!1),On(a.$b,!0))};laf.prototype.Ta=function(a){this.mL.Ta(a)};
var $2d=function(a,b){A.call(this,"Vi");this.$=a;this.Sa=b};t($2d,A);var xaf=function(a){return'<div class="a-w-e"><div class="a-w-e-fk"><div class="a-w-e-na-nb"><div class="a-w-e-na-sd"><div class="a-w-e-na-sd-laa"></div><img class="a-w-e-na" src="'+r(a.url)+'"/><div class="a-w-e-v-qa a-w-e-v-qa-Ui"></div>'+('<div class="a-w-e-Oc-L"><div class="a-n-Tb-M"></div><div class="a-w-e-Oc-E">'+paf()+"</div></div>")+(a.rNb?waf():"")+'<div class="a-w-e-wa-di"><img class="a-w-e-wa-m" src="https://ssl.gstatic.com/docs/picker/images/error_circle.png"/></div></div></div></div></div>'}, waf=function(){return'<div class="a-w-e-Oc"><div class="a-w-e-Oc-E">'+paf()+"</div></div>"},paf=function(){return"Album cover"};
var M2d=function(a){F3.call(this,"a-w-e");this.ha=a.ef()};t(M2d,F3);M2d.prototype.Pa=function(a){a.Ea();var b=a.La().Yh(),b=b&&b.length&&b[0].ll(Math.floor(330*zpa()),["o"]).getUrl(),c=F9f(a);c.Pa();Qn(c.ta(),"a-la-ba");var d,f=a.uh;d=U(this.ha,xaf,{rNb:!f,url:b?b:""});a.Ea().fb("a-w-e-v-qa-Ui",d).appendChild(c.ta());f&&f.appendChild(U(this.ha,waf));b&&X3.ia().load(b,Lp(function(){Qn(d,"a-w-e-Bu")},this));return d};M2d.prototype.ta=function(a,b){return a.Ea().fb(b,a.ta())};
M2d.prototype.update=function(a){if(!a.isDisposed()){var b=a.La(),c=b.Yh(),d=c&&c.length&&c[0].ll(Math.floor(330*zpa())).getUrl(),f=this.ta(a,"a-w-e-na"),b=b.Ii&&b.Ii.getState();this.ta(a,"a-w-e-v-qa");var h=a.ta();b&&"success"!=b||!d||f.src==d?f.src!=d&&Rn(h,"a-w-e-Bu"):X3.ia().load(d,Lp(function(){a.isDisposed()||(c5c(this.ta(a,"a-w-e-na-sd"),0),N2d(a,f,d),Qn(h,"a-w-e-Bu"))},this));Pn(h,"a-w-e-wa","error"==b);Pn(h,"a-w-e-xe","canceled"==b)}};
var N2d=function(a,b,c){Qn(a.ta(),"a-w-eq-na");b.src=c;Uf(function(){a.isDisposed()||Rn(a.ta(),"a-w-eq-na")},500);a.Ik()},O2d=function(a,b){var c=a.Ea(),d,f,c=c.Pa("div","a-w-e-wa-E",b,c.Pa("div",void 0,d=c.Pa("span","a-w-e-uf","Retry"),f=c.Pa("span","a-w-e-wa-dd","\u2022"),c.Pa("span","a-w-e-wa-Ah","Delete")));On(d,!1);On(f,!1);return c},P2d=function(a,b,c){var d=b.La();return(d=d&&d.Yh()&&d.Yh()[0])?(d=new Kb(d.wc(),d.Ic()),d.Cr(new Kb(c,c)).floor(),a=a.ta(b,"a-w-e-na-sd"),0==tX(a)%180?d.height: d.width):b.QF};
var Aaf=function(){var a;a="Delete";return'<div class="a-w-e-F"><div class="a-w-e-ha-Z"><textarea class="a-w-e-ha-N"></textarea></div><div class="a-w-e-F-Zb-ea"><div title="Rotate right" class="a-w-e-F-m a-n-dc-hc"></div><div title="'+a+'" class="a-w-e-F-m a-n-dc-Gj"></div></div></div>'};
var a3d=function(a,b,c){C3.call(this,a,b,void 0,c);this.Bm(16,!1);Co(this,16,!1);this.Be=[];this.Qb=[];this.mL=new D4e("Write a caption");x(this,this.mL)};t(a3d,C3);a3d.prototype.Cg=function(){return this.mL.getValue()};a3d.prototype.Lb=function(a){E4e(this.mL,a)};a3d.prototype.Pa=function(){var a=V(this.getContext().ka());this.Kb(U(a,Aaf))};
a3d.prototype.Na=function(){a3d.ya.Na.call(this);this.Ea();this.Qb=[this.fb("a-n-dc-Gj"),this.fb("a-n-dc-hc")];this.mL.yb(this.fb("a-w-e-ha-N"));this.Lb(Ga(this.La().Jd()));Baf(this)};var Caf=function(a){F4e(a.mL);so(ahb(a),a.jh());v(a.Qb,function(a){this.getHandler().Ja(a,"mouseup",this.Naa).Ja(a,"mouseover",this.yQ,!0).Ja(a,"mouseout",this.iaa).Ja(a,"mousedown",this.Sx)},a);a.getHandler().Ja(a.mL.ta(),"focus",Lp(a.Km,a,!0)).Ja(a.mL.ta(),"blur",Lp(a.Km,a,!1))};
a3d.prototype.lp=function(){this.isDisposed()||(this.mL.hasFocus()?this.getHandler().Ja(this.mL.ta(),dDa,this.lp):(this.Km(!1),G4e(this.mL),this.getHandler().removeAll(),to(ahb(this))))};var Kcf=function(a,b){return Ye(a.Be,function(a){return!Sn(b,a)})};a3d.prototype.yQ=function(a){a=a.target;Pn(a,"a-w-e-F-m-u",Kcf(this,a))};a3d.prototype.iaa=function(a){Sx(a.target,["a-w-e-F-m-u","a-w-e-F-m-X"])};a3d.prototype.Sx=function(a){var b=a.target;Pn(b,"a-w-e-F-m-X",Kcf(this,b));a.preventDefault();a.stopPropagation()};
a3d.prototype.update=function(){a3d.ya.update.call(this);Pn(this.ta(),"a-w-e-mN-ha",!Ea(Ga(this.Cg())));Baf(this)};var Baf=function(a){var b=a.La(),b=!!b.Ii&&"success"!=b.Ii.getState();a.mL.Ta(!b);Pn(a.fb("a-n-dc-hc"),"a-w-e-F-hc-I",b)};a3d.prototype.Naa=function(a){var b=a.target;Rn(b,"a-w-e-F-m-X");Kcf(this,b)&&(Sn(b,"a-n-dc-Gj")?this.dispatchEvent("Hn"):Sn(b,"a-n-dc-hc")&&!Sn(b,"a-w-e-F-hc-I")&&this.dispatchEvent("Kn"));a.preventDefault();a.stopPropagation()}; a3d.prototype.Km=function(a){Pn(this.ta(),"a-w-e-mN-ha-Jt",a);a||this.dispatchEvent("gl")};a3d.prototype.zt=function(a){a3d.ya.zt.call(this,a);a&&this.mL.rq()};a3d.prototype.qb=function(){a3d.ya.qb.call(this);this.Qb=[]};
var y0e=function(a){a=a||{};return Jp(a.Fb?"./"+wn(a.Fb):"")};var S2d=function(){Ld.call(this);this.$=!1};t(S2d,Ld);q=S2d.prototype;q.Dd=function(a){this.Ga=a};q.UW=Fx;q.II=function(){return!(!this.Ga||!this.Ga.Ni())};q.hj=pg(0);q.VL=function(a){this.$=a};q.D4=function(){return this.$};q.fra=function(){return this.Ga||null};q.Fza=function(){return!this.Ga||this.II()?[]:ec(Br(this.Ga),function(a){var b=a.getStatus();a=a.Vg()&&!!a.Vg().Ob()||0<a.ql().length&&!!a.ql()[0].Ob();return 2!=b&&5!=b&&(a||4==b)},this)};
var Eaf=function(a,b,c){var d;b="";switch(ua(d=a.errorCode)?d.toString():d){case 4:c=wA(new Z("{VIEWER_GENDER,select,female{You can't tag {NAME} in this photo.}male{You can't tag {NAME} in this photo.}other{You can't tag {NAME} in this photo.}}"),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});b+=c;break;case 5:break;case 8:c=wA(new Z("{VIEWER_GENDER,select,female{{NAME} is already tagged in this photo.}male{{NAME} is already tagged in this photo.}other{{NAME} is already tagged in this photo.}}"),{VIEWER_GENDER:c.Aa,
NAME:r(a.name)});b+=c;break;case 6:a=wA(new Z("{VIEWER_GENDER,select,female{You can't tag {NAME} because you and {NAME} aren't connected.}male{You can't tag {NAME} because you and {NAME} aren't connected.}other{You can't tag {NAME} because you and {NAME} aren't connected.}}"),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});b+=a+' <a href="http://support.google.com/plus/bin/answer.py?hl='+vn(c.locale)+'&answer=1254833&topic=1257351&ctx=topic" target="_blank">Learn more.</a>';break;default:c="Oops... an error has occurred while tagging "+ (r(a.name)+"."),b+=c}return b};
var $2e=function(a,b,c,d){A.call(this,"bj");this.Ga=a;this.mL=b;this.$=c;this.Sa=d};t($2e,A);$2e.prototype.Ka=function(){return this.Ga};$2e.prototype.yc=function(){return this.Sa};var v8e=function(a){A.call(this,"cj");this.$=a};t(v8e,A);v8e.prototype.getMessage=function(){return this.$};var T2d=function(a){this.ha=V(a)};T2d.prototype.Ab=function(){return null};T2d.prototype.mL=function(a){return a?rta(this.ha,y0e,{Fb:a}):null};T2d.prototype.Sa=function(a){return a?Mob({content:a}):null};var U2d=function(a,b){Ld.call(this);this.$=a;this.$b=b;this.mL=new S2d;x(this,this.mL);this.Ba=new Hd(this);x(this,this.Ba);a.rd().fG();Ag(E.ia(),"oppe",Lp(function(){E.ia();a.ka();a.Ab.addCallback(Lp(function(a){var b=this.$.ka();this.DU=a.getUserId();this.ha=V(b);this.Sa=new FZ(b,a.getUserId(),this.mL,wa(V2d,this.$),new T2d(b),this.$b);x(this,this.Sa);this.Ba.Ja(this.Sa,"CF",this.bhd).Ja(this.Sa,"DF",this.Vjd).Ja(this.Sa,"$l",this.Wjd).Ja(this.Sa,"EF",this.Zjd).Ja(this.Sa,"zF",Lp(this.Sa.A4,this.Sa)).Ja(this.Sa,
"BF",Lp(this.Sa.U_,this.Sa));this.Ab&&a3e(this,this.Ab)},this))},this));this.Qb=!1};t(U2d,Ld);var a3e=function(a,b){a.Ab=b;a.Sa&&a.Sa.Dd(b)};U2d.prototype.Dd=function(a){this.Sa&&this.Sa.Vb();this.Ga=a;this.mL.Dd(a);zhd(this.Ga)&&this.Sa&&this.Sa.uo();this.Ab&&qe(this.Ab,1)};U2d.prototype.VL=function(){this.mL.VL(!1);w8e(this)};var w8e=function(a){a.Sa&&(a.Sa.Vb(),j4(a.Sa,!!a.Qb),a.Sa.uo())};q=U2d.prototype;
q.bhd=function(a){this.Ga&&(a.data.tag?Z2d(this,a,"labelShape",Lp(this.vUb,this,a),Lp(this.uUb,this,a)):Z2d(this,a,"createShape",Lp(this.vUb,this,a),Lp(this.uUb,this,a)))};
q.vUb=function(a,b){if(this.Ga){var c=a.data.tag&&a.data.tag.getId();c||(c=b.Ae()[0],this.Dd(G2d(c)),c=c.getId().split("_")[1]);var d=Y2d(this,c);if(d){var f=new Er,h=a.data.ue.$.Ob();Py(f,4,h);f.Dc(a.data.ue.$.Xa());Lg(d,2,f);d.Fj(a.data.ue.$.$b?1:0)}a.data.tag=d?new nZ(d):null;this.Sa.Fha(a);this.dispatchEvent(new $2e(this.Ga,c,"a",a.data.ue.$.yc()))}};
q.uUb=function(a,b){if(this.Ga){this.Sa.Jsa(a);var c=U(this.ha,Eaf,{errorCode:b?b.Ug():0,name:a.data.ue.$.getName()});this.dispatchEvent(new v8e(c));this.Ab&&qe(this.Ab,1)}};q.Vjd=function(){this.VL()};q.Wjd=function(a){if(this.Ga){var b=a.data.tag.getShape(),b=1==w(b,10),c=Lp(this.Xjd,this,a,b);a.data.$?Z2d(this,a,"labelShape",c):Z2d(this,a,"unlabelShape",c,void 0,!b)}};
q.Xjd=function(a,b){if(this.Ga){var c=Y2d(this,a.data.tag.getId());c?a.data.$?c.Fj(1):b?(c.Fj(4),Mg(c,7,[])):mb(Br(this.Ga),c):a.data.tag.getId();this.Sa.Gha(a)}};q.Zjd=function(a){if(this.Ga){var b=a.data.tag,c=b.getShape(),b=1==w(c,10)&&4!=b.getShape().getStatus(),c=Lp(this.Yjd,this,a,b);a.data.$=!1;Z2d(this,a,"unlabelShape",c,void 0,!b)}};q.Yjd=function(a,b){if(this.Ga){var c=Y2d(this,a.data.tag.getId());c?b?(c.Fj(4),Mg(c,7,[])):mb(Br(this.Ga),c):a.data.tag.getId();this.Sa.V_(a)}};
var V2d=function(a,b){return aYd(a,b)},Y2d=function(a,b){return cb(Br(a.Ga),function(a){return a.getId()==b})},Z2d=function(a,b,c,d,f,h){var k={};b.data.ue?(Z4(k,"email",b.data.ue.$.yc()),Z4(k,"displayName",b.data.ue.$.Ob()),Z4(k,"personUserId",b.data.ue.$.Xa())):b.data.tag&&b.data.tag.Ah()&&(Z4(k,"displayName",b.data.tag.Ah().Ob()),Z4(k,"personUserId",b.data.tag.Ah().getId()));Z4(k,"approved",b.data.$);Z4(k,"userId",a.DU);Z4(k,"removeShape",h);b.data.tag&&b.data.tag.Un()&&Z4(k,"labelExistingTag",
b.data.tag.getShape());if(b.data.Sa){h=b.data.Sa;var m=new Ir,p=new Fr;p.lFa(h.left);p.tHa(h.top);Lg(m,1,p);p=new Fr;p.lFa(h.left+h.width);p.tHa(h.top+h.height);Lg(m,2,p);Z4(k,"upperLeftX",Lr(m).wP());Z4(k,"upperLeftY",Lr(m).XEa());Z4(k,"lowerRightX",Mr(m).wP());Z4(k,"lowerRightY",Mr(m).XEa())}!b.data.$&&b.data.tag&&b.data.tag.nP()&&Z4(k,"rejectSuggestion",!0);b=b.data.tag&&b.data.tag.getId()?a.Ga.getId()+"_"+b.data.tag.getId():a.Ga.getId();a.$.od.Vd(new K3(c,"picasa",[b],k),d||ka,f||ka)},Z4=function(a, b,c){c&&(a[b]=c)};
var O5=function(a,b,c,d,f,h,k){O3.call(this,a,b,c,k);GQa(this,!1);this.Bm(16,!1);this.Bm(8,!0);this.lTa=wa(d,this);this.iTa=wa(f,this);c3e(this)&&d3e(this);this.iaa=!!h;this.uh=h?h:null;this.Gna=new Un(Lp(function(){Pn(this.ta(),"a-w-e-pl-u-Oc",!1)},this),700);x(this,this.Gna);this.qna=!1;this.ima=new Ze;this.mL=new a3d(a,b,k);this.ib(this.mL,!0);this.yQ=new ro;x(this,this.yQ);this.Km={current:0,REa:0,b0:0};this.QF=this.Mma=330;this.xna=1};t(O5,O3);
O5.prototype.VL=function(a,b){if(a!=this.qna&&this.Qb){On(this.uh,this.Ka()&&a);if(this.Ka()){if(this.uh){var c=this.fb("a-w-e-na-sd"),d=this.uh;le(d,zy(c).round());if(b){var c=he(c,b),f=he(d,b),h=Wd(d);Vd(d,h.x+c.x-f.x,h.y+c.y-f.y)}}this.Qb.VL()}this.qna=a}};O5.prototype.Ka=function(){return G2d(this.La())};O5.prototype.wl=function(){return!(!this.Ka()||!this.Ka().Ni())};O5.prototype.Dd=function(a){var b=this.La();b.mL=a;b.setAttribute("ae",Uze(a));this.Qb&&this.Qb.Dd(a)};
var d3e=function(a){a.getContext().od.Ag(a.La().Qe(),a,function(a){this.Dd(G2d(a))},function(a){return!!G2d(a)&&zhd(G2d(a))})},y8e=function(a){var b=a.Ka();if(b&&Br(b)&&Br(b).length){a.getContext();var c;a.getContext().Ab.addCallback(function(a){c=a.getUserId()});var d=[];v(Br(b),function(a){if(a&&a.Vg()&&(0==a.getStatus()||1==a.getStatus())){var b={};b.id=a.getId();b.serviceId="picasa";b.sourceId="0";b.mimeType="application/vnd.google-apps.photo";b.name=a.Vg().Ob();b.type="faces";var b=new Vw(b),
k=this.La().Yh();if(k&&k.length&&w(a,6)&&w(a,6)[0]){var m=k[0].wc(),k=k[0].Ic(),p=N(a,kta,12);b.ZE([new Uw(WRd(w(a,6)[0]),m*Math.abs(w(p,2)-w(p,1)),k*Math.abs(w(p,3)-w(p,4)),!0)])}b.setAttribute("tuid",a.Vg().getId());b.setAttribute("tdn",a.Vg().Ob());b.setAttribute("ss","u");b.setAttribute("so",c);ba(this.ima,a.getId())&&b.setAttribute("te",this.ima.get(a.getId()));this.getContext().od.Xp([b]);d.push(b.getId())}},a);a.La().setAttribute("si",d)}},e3d=function(a,b,c){a.Mma=b;a.oXa=c;a.Ik()};q=O5.prototype;
q.qb=function(){this.mBa();O5.ya.qb.call(this)};q.Na=function(){O5.ya.Na.call(this);this.lp=new H4e(this.fb("a-w-e-na-sd"));x(this,this.lp);this.Naa=new N5(200,this.fb("a-w-e-na-sd"),this.Ea());this.Be=new Q0d(this.getContext(),30);var a=Lp(this.AIc,this);this.Be.jg=a;Faf(this);this.sA=!(!this.La().Yh()||!this.La().Yh().length)};q.jh=function(){return this.fb("a-w-e-ha-N")};q.Hca=function(){return!this.wna};q.AIc=function(){this.wna=!1};
q.fSb=function(a){"a"==a.$&&(this.Dd(a.Ka()),this.ima.set(a.mL,a.yc()))};q.Ovc=function(a){if(13==a.keyCode&&!a.shiftKey||9==a.keyCode)$4(this,a.shiftKey?"fp":"fn"),a.preventDefault(),a.stopPropagation()};q.zt=function(a){O5.ya.zt.call(this,a);this.mL.zt(a)};q.UE=function(a){this.ona=a;Pn(this.ta(),"a-w-e-pl-Oc",a);this.uh&&Pn(this.uh,"a-w-e-pl-Oc",a)};q.q4c=function(a){a.target==this.uh&&(a=this.Qb,a.mL.VL(!a.mL.D4()),w8e(a))};
var f3d=function(a){var b=a.La(),c=a.Cg(),d=Ga(b.Jd());b.Ee(c);!c||c==d||b.Ii&&"success"!=b.Ii.getState()?b.Ii&&"success"!=b.Ii.getState()&&$4(a,"pc"):a.getContext().od.Vd(new K3("changeCaption","picasa",[b.getId()],{caption:c}),ka,Lp(function(){b.Ee(d);this.mL.Lb(d);alert("Unable to save the caption. Please try again.")},a),!0)};q=O5.prototype;q.Cg=function(){return Ia(this.mL.Cg())};q.Dha=function(a){Gaf(this,a)||(this.qj(!this.Sf()),O5.ya.Dha.call(this,a))};
q.hT=function(a){Gaf(this,a)||(this.qj(!this.Sf()),O5.ya.hT.call(this,a))};q.update=function(){O5.ya.update.call(this);this.Sa.update(this);var a=this.La();a.Yh()&&a.Yh().length&&!this.sA&&($4(this,"t"),this.sA=!0);c3e(this)&&(this.mL.Cg()||this.mL.Lb(a.Jd()),d3e(this));this.mL.update()};
q.Ik=function(){var a=this.ta();Pn(a,"a-w-e-ib",205==this.QF);Pn(a,"a-w-e-ue",330==this.QF);var b=this.Sa,c=this.Mma,a=this.oXa;le(b.ta(this,"a-w-e-fk"),c,a);var d=new Kb(c,a),f=b.ta(this,"a-w-e-na-nb");le(f,d);Pd(f,"line-height",a+"px");f=205==this.QF;le(this.ta(),c,a+(f?0:42));var h=b.ta(this,"a-w-e-na");if((f=this.La().Yh())&&f.length){var k=c>f[0].wc()&&a>f[0].Ic()?f[0]:f[0].ll(c),b=b.ta(this,"a-w-e-na-sd"),m=0!=tX(b)%180,f=new Kb(k.wc(),k.Ic()),p=this.La()&&M3(this.La())&&M3(this.La()).getState();
!p||"success"==p||c>k.wc()&&a>k.Ic()||f.Cr(d);f.floor();le(h,f);d=0;m&&(d=new Kb(f.height,f.width),c=this.xna*c-a,d=(0>c?-1:1)*(a-d.height+Math.floor(d.height/2)-(a-f.height+Math.floor(f.height/2))-c));a=$4c(b);a=Ia(a.replace(/translate\([^)]+\)/i,""));d&&(a=Ia(" translate(0px,"+d+"px) "+a));b5c(b,a)}this.La()&&M3(this.La())&&M3(this.La()).getState()};
var Haf=function(a){Caf(a.mL);O$e(a.lp);so(a.yQ,a.mL.mL.ta());so(ahb(a),a.jh());a.getHandler().Ja(a.Naa,"Fi",a.dTa).Ja(a.Naa,"Ei",a.DAa).Ja(a.yQ,"key",a.Ovc).Ja(a.mL,["Hn","Kn","gl"],a.JBa).Ja(a.lp,"start",a.lTa).Ja(a.lp,"end",a.iTa).Ja(a.ta(),"focus",Lp(a.zt,a,!0)).Ja(a.ta(),"blur",Lp(a.zt,a,!1));if(a.iaa){a.Qb=new U2d(a.getContext(),Lp(function(){this.ta()&&this.ta().focus()},a));a.uh&&a3e(a.Qb,a.uh);var b=G2d(a.La());b&&a.Qb.Dd(b);a.getHandler().Ja(a.Qb,"bj",a.fSb).Ja(a.uh,"mousedown",a.q4c).Ja(a.uh,
"mouseup",a.Um)}a.getHandler().Ja(a.Ea().fb("a-w-e-Oc",a.iaa?a.uh:a.ta()),["mouseout","mouseover","mouseup"],a.Zma)},Faf=function(a){f3d(a);a.zt(!1);a.Qb&&(a.Qb.Ma(),a.Qb=void 0);a.iaa&&On(a.uh,!1);if(a.lp.Ab)return!1;a.mL.lp();var b=a.lp;b.Ab||b.getHandler().removeAll();a.getHandler().removeAll();to(a.yQ);to(ahb(a));return!0},c3e=function(a){a=a.La();return!a.Ii||"success"==a.Ii.getState()},z8e=function(a){a=a.La();return!!a.Ii&&"error"==a.Ii.getState()};
O5.prototype.Hw=function(a){var b=this.fb("a-w-e-na-sd");this.Ea().contains(b,a.target)&&(a.stopPropagation(),205==this.QF&&O5.ya.Hw.call(this,a));Gaf(this,a)&&this.mL.Hw(a)};O5.prototype.Um=function(a){Gaf(this,a)?(this.mL.Um(a),this.mL.zt(!0)):(m3d(this,a),O5.ya.Um.call(this,a),330==this.QF&&this.qj(!this.Sf()))};
O5.prototype.Zma=function(a){var b=a.target;Sn(b,"a-w-e-Oc-E")&&(b=b.parentElement);c3e(this)&&!this.ona&&(Pn(b,"a-w-e-pl-u-Oc","mouseover"==a.type),"mouseup"==a.type&&(this.UE(!0),$4(this,"co")));return this.ona};var Gaf=function(a,b){return a.Ea().contains(a.mL.ta(),b.target)},$4=function(a,b){a.dispatchEvent(new $2d(a,b))};O5.prototype.qj=function(a){O5.ya.qj.call(this,a);a&&$4(this,"s")};var m3d=function(a,b){a.Sf()?$4(a,"c"):b.shiftKey?$4(a,"es"):!ca&&b.ctrlKey||ca&&b.metaKey||$4(a,"c")};
O5.prototype.dTa=function(a){this.wna=!0;this.Be.$b();$4(this,"r");this.Km.b0?Vf(this.Km.b0):this.Km.current=a.Sa%360;this.Km.REa=a.$%360;this.Km.b0=Uf(this.mBa,3E3,this)};O5.prototype.mBa=function(){!this.isDisposed()&&this.Km.b0&&(Vf(this.Km.b0),this.Km.b0=0,R0d(this.Be,this.La(),new U3(this.Km.current,this.Km.REa)))};O5.prototype.JBa=function(a){switch(a.type){case "Kn":$4(this,"rcw");break;case "Hn":$4(this,"del");break;case "gl":f3d(this)}};O5.prototype.DAa=function(){Rn(this.ta(),"a-w-e-i0")};
var Q2d=function(a){kX.call(this,"",a);this.hd("info");this.$=new Un(this.Qb,5E3,this);x(this,this.$);this.mL=new Un(wa(this.setVisible,!1),250,this);x(this,this.mL)};t(Q2d,kX);Q2d.prototype.setVisible=function(a){this.Nb()&&(this.$.stop(),this.mL.stop(),a&&this.$.start(),On(this.ta(),a),Q2d.ya.setVisible.call(this,a))};Q2d.prototype.Qb=function(){this.$.stop();this.mL.start();Pn(this.ta(),"b-Ff-Pi",!1)};
var Kaf=function(a,b){A.call(this,a);this.$=b};t(Kaf,A);var Laf=function(a){gD.call(this,a);this.setVisible(!1);this.IA(!1);this.ud(!1);this.setPosition(2);this.$b.push("a-w-e-wa-i");this.df=this.$=null};t(Laf,gD);Laf.prototype.Na=function(){Laf.ya.Na.call(this);this.getHandler().removeAll()};Laf.prototype.Sa=function(){this.$&&(F9f(this.$).$(0),this.setVisible(!1),this.dispatchEvent(new Kaf("tk",this.$)))};Laf.prototype.Ab=function(){this.$&&(this.setVisible(!1),this.dispatchEvent(new Kaf("sk",this.$)))};
var Qaf=function(a,b){a.$&&Oaf(a);a.$=b;var c=M3(b.La());a.setContent(O2d(b,c.$||""));a.Fg(b.Sa.ta(b,"a-w-e-wa-m"));a.df.addCallback(function(a){if(!this.isDisposed()){if(a=a.getFile(c.getId()).cQ())a=c&&c.dG()?c.dG().status:null,a=!a||"IMAGE_TOO_BIG"!=a&&"INVALID_REQUEST"!=a&&"INSUFFICIENT_PERMISSION"!=a&&"NOT_IMAGE"!=a&&"BAD_IMAGE"!=a?!0:!1;On(this.fb("a-w-e-uf"),a);On(this.fb("a-w-e-wa-dd"),a)}},a);a.ta()&&(a.setVisible(!0),a.Wd());a.getHandler().Ja(a.fb("a-w-e-uf"),"click",a.Sa).Ja(a.fb("a-w-e-wa-Ah"), "click",a.Ab)},Oaf=function(a){a.getHandler().removeAll();a.ta()&&a.setVisible(!1);a.$=null};
var q3d=function(a,b,c){A.call(this,"VF");this.$=b;this.Sa=a;this.mL=c};t(q3d,A);q3d.prototype.getMessage=function(){return this.mL};var r3d=function(a){k4.call(this,"horizontal",D3.ia(),a)};t(r3d,k4);r3d.prototype.fBb=ka;r3d.prototype.mha=ka;var S5=function(a,b,c){j5.call(this,a,b,c);this.wna=b.getOption("mode")||"of";this.Wka=new M2d(this.getContext());this.Sa=new Yv;this.cSa=[];this.LW=new ag;b.or()||this.LW.By();this.Ye="s"==b.getOption("thumbnailSize")?205:330;this.JRa=new Un(this.Db,500,this);s3d(this,330,this.Ye);this.iaa=!0;this.swa=new Laf(c);x(this,this.swa);this.Pr=0;this.p_=this.Km=this.Vk=null;this.tna=1;this.Tx=null;this.lTa=new F7g(a);x(this,this.lTa)};t(S5,j5);
var A3d=["transition","WebkitTransition","msTransition","OTransition","MozTransition"];q=S5.prototype;q.vB=function(a){S5.ya.vB.call(this,a);this.Db()};q.Brb=function(a,b,c){return new r3d(c)};q.ED=function(a){var b=this.Ea(),c;"n"!=this.wna&&(c=b.Pa("div","a-w-e-zs-O1-sI"),this.Vk.appendChild(c));return new O5(this.getContext(),a,this.Wka,Lp(this.gSa,this),Lp(this.PAa,this),c,b)};q.gR=ka;
q.Zba=function(a){a.ta()||a.Pa();a.QF=this.Ye;this.Sa.set(a.getId(),a);Qn(a.ta(),"a-w-eq");S5.ya.Zba.call(this,a);Uf(function(){Rn(a.ta(),"a-w-eq")},500);this.jv=y3d(this);var b=this.Sa.Fc()-1;this.sFa(!1,a,b)};q.Ik=function(a){var b={};v(a,function(a){b[a.getId()]=!0},this);var c={};bXc(this,function(a){var d=a.La().getId();c[d]=!0;b[d]||(e3e(this,a),this.jOa(d))});var d=[];v(a,function(a){var b=a.getId();c[b]||d.push(a)},this);this.Hr(d)};
q.jOa=function(a){var b=x5(this,a);b&&e3e(this,b);b&&M3(b.La())&&"canceled"==M3(b.La()).getState()&&this.Rd().dL([a]);S5.ya.jOa.call(this,a)};q.Fc=function(){return this.Sa.Fc()};var e3e=function(a,b){b==a.yja&&(a.yja=void 0);a.Qb==b&&(a.Qb=void 0);Fc(b.uh);a.Sa.remove(b.getId());a.Db()};S5.prototype.Hr=function(a){S5.ya.Hr.call(this,a);Uf(function(){this.dispatchEvent("no")},0,this)};S5.prototype.iO=function(a){S5.ya.iO.call(this,a);this.LW.jl||this.LW.By(void 0)};
var raf=function(a){var b=[];a.Sa.forEach(function(a){M3(a.La())&&"success"!=M3(a.La()).getState()||b.push(a.La().getId())});return b};S5.prototype.Pa=function(){S5.ya.Pa.call(this);this.Km=this.Ea().Pa("div","a-w-Db-KO");On(this.Km,!1);this.ib(this.swa,!0)};
S5.prototype.Na=function(){S5.ya.Na.call(this);var a=this.Ea();Qn(this.ta(),"a-w-Te");we(this.ta(),!0);this.Vk.appendChild(this.Km);this.p_=a.Pa("div","a-w-Db-rsa-os");this.getContainer().ta().appendChild(this.p_);On(this.p_,!1);this.getHandler().Ja(this.ta(),["mouseover","mousedown","mouseup","mouseout"],this.Mma).Ja(this.Vk,"mousedown",this.ZAa).Ja(this.Vk,"mouseup",this.JBa,!0).Ja(this.swa,["sk","tk"],this.h2b)};S5.prototype.nHa=function(){return this.Ea().fb("a-w-Te-nb")};
var $af=function(a,b){a.cSa.push(b);Haf(b);var c=a.Ea().fb("a-n-m-Oc-J",b.uh);c&&qr(b.getHandler(),c,["mouseover","mousedown","mouseout"],function(a){b.Zma(a)&&f3e(this,b)},void 0,a);qr(b.getHandler(),b,"Vi",a.UAa,void 0,a);b.Qb&&("of"==a.wna&&(b.Qb.Qb=!0),qr(b.getHandler(),b.Qb,"cj",function(a){this.dispatchEvent(new q3d("msg",b,a.getMessage()))},void 0,a),v3d(a));z8e(b)&&Qaf(a.swa,b)},hbf=function(a){a.cSa=ec(a.cSa,function(a){return!Faf(a)})};
S5.prototype.Mma=function(a){var b;for(b=a.target;b&&b!=this.ta()&&!Sn(b,"a-w-e");)b=b.parentElement;b=b?this.Sa.get(b.id,void 0):void 0;var c=this.Qb!=b;this.Qb&&c&&(hbf(this),this.Qb=void 0);if(b)switch(this.Qb=b,c&&$af(this,b),a.type){case "mouseover":this.Qb.Hca()&&this.Qb.zo(a);break;case "mousedown":this.Qb.Hw(a);break;case "mouseup":this.Qb.Um(a);break;case "mouseout":this.Qb.fp(a)}};
var f3e=function(a,b){bXc(a,function(a){a.UE(!1)});b.UE(!0);a.dispatchEvent(new q3d("cp",b))},u3d=function(a,b,c){a.LW.addCallback(function(){var a={},f=1;v(b,function(b){a[b]=f++});var h=this.Sa.Rc();wb(h,function(b,c){return(a[b.La().getId()]||99999)-(a[c.La().getId()]||99999)});this.Sa.clear();v(h,function(a){this.Sa.set(a.getId(),a)},this);this.Db(!c)},a)};
S5.prototype.ZAa=function(a){this.Qb&&(Oc(this.Qb.ta(),a.target)||this.Qb.uh&&Oc(this.Qb.uh,a.target))?this.Qb.lp.$(a):a.clientX>this.Vk.clientWidth||(td(a)?(G3d(this),this.ima=he(a,this.Vk),this.ima.y+=this.Vk.scrollTop,Vd(this.Km,this.ima),On(this.Km,!1),this.getHandler().Ja(this.Vk,"mousemove",this.BBa,!0)):this.JBa(a))};
S5.prototype.BBa=function(a){var b=this.ima;a=he(a,this.Vk);a.x=Math.min(a.x,this.Vk.clientWidth-20);a.y+=this.Vk.scrollTop;On(this.Km,5<Math.abs(b.x-a.x)||5<Math.abs(b.y-a.y));var c=Math.abs(b.x-a.x),d=Math.abs(b.y-a.y);le(this.Km,c,d);Vd(this.Km,b.x>a.x?b.x-c:a.x-c,b.y>a.y?b.y-d:b.y);var f=pe(this.Km);bXc(this,function(a){a.qj(daf(f,pe(a.ta())))})};
var bXc=function(a,b,c){if(c){var d=-1;a.Sa.forEach(function(a){d++;b.call(this,a,d)},a)}else a.Sa.forEach(b,a)},Fbf=function(a,b){var c=-1;a.Sa.some(function(a){c++;return a==b});return c};S5.prototype.JBa=function(a){ve(this.Km)&&(On(this.Km,!1),a.stopPropagation());this.getHandler().nb(this.Vk,"mousemove",this.BBa,!0)};
var s3d=function(a,b,c){a.Ye=c;b!=a.Pr&&(a.Pr=b,bXc(a,function(a){a.QF=c}),a.Nb()&&a.Db())},w3d=function(a){var b=[];a.Sa.forEach(function(a){var d=M3(a.La());d&&"canceled"==d.getState()||b.push(a.La())});return b};S5.prototype.Db=function(a){if(this.iaa&&this.Sa.Fc()){var b=oe(this.ta().parentElement).width+10;this.tna=Math.max(Math.floor(b/(this.Pr+10)),1);this.jv=y3d(this);Uf(function(){this.isDisposed()||(a||SJe(this),bXc(this,Lp(this.sFa,this,!!a),!0))},0,this);Gbf(this)}};
var SJe=function(a){var b=["mouseover","mousedown","mouseup","mouseout"],c=!1;a.getHandler().nb(a.ta(),b,a.Mma);Gr(a.getHandler(),a.ta(),[E7a],function(){c||(this.getHandler().Ja(this.ta(),b,this.Mma),c=!0)},void 0,a);Uf(function(){c||(this.getHandler().Ja(this.ta(),b,this.Mma),c=!0)},750,a)};S5.prototype.sFa=function(a,b,c){c=c||Fbf(this,b);e3d(b,this.Pr,this.jv[x3d(this,c)]);var d=b.ta();a&&z3d(this,d,!1);Vd(d,B3d(this,c));a&&Uf(function(){z3d(this,d,!0)},0,this);b.VL(!1,this.ta())};
var x3d=function(a,b){return Math.floor(b/a.tna)},y3d=function(a){var b={};bXc(a,function(a,d){var f=x3d(this,d),h=P2d(this.Wka,a,this.Pr)||b[f]||this.Pr;b[f]=Math.max(h,b[f]||0)},!0);return b},z3d=function(a,b,c){v(A3d,function(a){b.style[a]=c?"":"none"},a)},B3d=function(a,b){if(!a.Sa.Fc())return new Gb(0,0);for(var c=a.Pr+10,d=x3d(a,b),f=b%a.tna,h=0,k=205==a.Ye,m=0;m<d;m++)h+=a.jv[m]+(k?0:42)+20;return new Gb(f*c,h)};S5.prototype.wc=function(){return oe(this.ta()).width};
var Gbf=function(a){var b=0;a.Sa.Fc()&&(b=a.jv[Qb(a.jv)-1]+(205==a.Sa.$.$.value.QF?0:42),b=B3d(a,a.Sa.Fc()-1).y+b+20);ne(a.ta(),b)};S5.prototype.Gya=Fx;S5.prototype.cD=ka;S5.prototype.h2b=function(a){var b=a.$;switch(a.type){case "sk":a=b.La();this.Rd().dL([a.getId()]);this.dispatchEvent(new q3d("d",b));break;case "tk":this.df.addCallback(function(a){var d=M3(b.La());a.tca(a.getFile(d.getId()))},this)}};
S5.prototype.UAa=function(a){switch(a.Sa){case "c":G3d(this);break;case "co":f3e(this,a.$);break;case "del":a=a.$;var b=this.Qb.La();this.Rd().dL([b.getId()]);Ibf(this,b.vt()&&b.vt().split(".").pop(),b.Qe());this.dispatchEvent(new q3d("d",a));break;case "es":E3d(this,a.$);break;case "fn":C3d(this,a,1);break;case "fp":C3d(this,a,-1);break;case "pc":this.dispatchEvent(a);break;case "rcw":a=a.$;a.xna=oe(a.fb("a-w-e-na-nb")).height/a.Mma;Qn(a.ta(),"a-w-e-i0");a.Naa.pT("editbar-rotate-right");this.Db();
break;case "t":this.JRa.start();break;case "s":this.yja=a.$}};var C3d=function(a,b,c){hbf(a);if(205==b.$.QF)a.dispatchEvent(b);else{var d=a.Sa.Rc(),f=fb(d,b.$);c=f+c;0<=f&&0<=c&&c<d.length?(b=d[c],$af(a,b),b.zt(!0)):a.dispatchEvent(b)}};S5.prototype.setActive=function(a){S5.ya.setActive.call(this,a);a&&this.Db(!0)};
var E3d=function(a,b){if(a.yja){var c=a.Sa.Rc(),d=fb(c,a.yja),f=fb(c,b),h=!0,k=F3d(a);if(1<k.length)for(var m=0;m<k.length-1;m++){var p=fb(c,k[m]),u=fb(c,k[m+1]);if(1<Math.abs(p-u)){h=!1;break}}G3d(a);h&&k.length&&v(k,function(a){a.qj(!0)});if(d>f)for(m=d;m>f;m--)c[m].qj(!0);else for(m=d;m<f;m++)c[m].qj(!0)}},Ibf=function(a,b,c){var d=new ag(void 0,a);d.addCallback(Lp(function(){},a));bg(d,Lp(function(){},a));b=new K3("delete","picasa",[c],null!=b?{parent:b}:null);a.lTa.OZa(b,d,!0,!0)},G3d=function(a){bXc(a,
function(a){a.qj(!1)})},F3d=function(a){var b=[];a.Sa.forEach(function(a){a.Sf()&&b.push(a)});return b};
S5.prototype.gSa=function(a,b){var c=a.lp;a.Sf()||(m3d(a,b),a.qj(!0));this.Tx=he(b,a.ta());var d=oe(a.fb("a-w-e-na-nb")).height;this.Tx.y+=this.Pr-d;On(this.p_,!0);d=F3d(this);v(d,function(a){Qn(a.ta(),"a-w-e-lA")});this.y2=I3d(this,a);Fbf(this,a);K3d(this,b);this.getContainer().ta().appendChild(this.y2);Pd(this.Ea().fb("a-w-Db-e-Gg",this.y2),"top",Math.floor(this.Pr-P2d(this.Wka,a,this.Pr)/2)+"px");this.mna=c;this.getHandler().Ja(c,"drag",this.Gna);this.Sx.start();this.getHandler().Ja(this.Sx.ta(),
"scroll",this.DAa)};S5.prototype.Gna=function(a){K3d(this,a);a=Wd(this.y2);L3d(this,new Gb(a.x+this.Tx.x,a.y+this.Tx.y))};S5.prototype.PAa=function(a,b){On(this.p_,!1);var c=F3d(this);v(c,function(a){Rn(a.ta(),"a-w-e-lA")});this.mna&&(this.getHandler().nb(this.mna,"drag",this.Gna),this.mna=void 0);K3d(this,b);M3d(this,Wd(this.y2));Fc(this.y2);this.yja=this.y2=void 0;this.dispatchEvent(new q3d("ror"));this.Sx.stop();this.getHandler().nb(this.Sx.ta(),"scroll",this.DAa)};
var I3d=function(a,b){var c=a.Ea(),d=c.Pa("div","a-w-Db-msa",J3d(a,b)),f=F3d(a);d.appendChild(c.Pa("div","a-w-Db-e-Gg",(new Z("{COUNT, plural, =0 {}=1 {1 photo}other {{COUNT} photos}}")).format({COUNT:f.length})));mb(f,b);if(0<f.length){var h=J3d(a,f[0]);Qn(h,"a-w-Db-e-IP-H1");c.pC(d,h,0)}1<f.length&&(f=J3d(a,f[1]),Qn(f,"a-w-Db-e-IP-I1"),c.pC(d,f,0));return d},J3d=function(a,b){var c,d=b.Ea(),f=b.La()&&b.La().Yh()&&b.La().Yh().length&&b.La().Yh()[0].ll(330),h=d.Pa("div","a-w-Db-e-W-z",c=d.Pa("img",
{src:f&&f.getUrl(),"class":"a-w-Db-e-W"}));if(f){var k=new Kb(a.Pr,a.Pr),f=new Kb(f.wc(),f.Ic()),f=f.Cr(k);le(h,k);le(c,f);Pd(c,"marginLeft",-Math.floor(f.width/2)+"px");c3e(b)||qe(c,.3);d=d.fb("a-w-e-na-sd",b.ta());c5c(c,tX(d))}return h};S5.prototype.DAa=function(a){var b=this.Sx.Sa,c=ie(this.getContainer().ta());K3d(this,a,new Gb(b.x-c.x,b.y-c.y))};
var K3d=function(a,b,c){b=c||he(b,a.getContainer().ta());var d=oe(a.ta());c=d.width;d=d.height-20;b.x=0>b.x?0:Math.min(c,b.x);b.y=0>b.y?0:Math.min(d,b.y);Vd(a.y2,new Gb(b.x-a.Tx.x,b.y-a.Tx.y))},L3d=function(a,b){var c,d,f=0;a.Sa.some(function(a){var k=B3d(this,f);a=oe(a.ta());k=new Nd(k.x-5,k.y-10,a.width+10,a.height+20);if(k.contains(b))return c=b.x<=k.left+k.width/2?f-1:f,d=c+1,f++,!0;f++;return!1},a);ia(c)||ia(d)||(c=a.Sa.Fc()-1);bXc(a,function(a,b){Pn(a.ta(),"a-w-e-jq-ya",b==c);Pn(a.ta(),"a-w-e-jq-Ja",
b==d)},!0)},M3d=function(a,b){var c=a.Sa.Rc(),d=c.length-1;Cd(c,function(a,b){return Sn(a.ta(),"a-w-e-jq-ya")?(d=b+1,!0):Sn(a.ta(),"a-w-e-jq-Ja")?(d=0==b?0:b-1,!0):!1},a);for(var f=[],h=Lp(function(a){a=c[a];a.Sf()||f.push(a)},a),k=F3d(a),m=0;m<d;m++)h(m);tb(f,k);for(m=d;m<c.length;m++)h(m);a.Sa.clear();v(f,function(a){this.Sa.set(a.getId(),a)},a);a.jv=y3d(a);b.y+=a.Pr-a.jv[x3d(a,d)];v(f,function(a,d){Sx(a.ta(),["a-w-e-jq-ya","a-w-e-jq-Ja"]);Qn(a.ta(),a.Sf()?"a-w-e-L-Vs":"a-w-e-NO-Vs");if(a.Sf())Qn(a.ta(),
"a-w-e-Toa"),Vd(a.ta(),b),Uf(function(){Rn(this.ta(),"a-w-e-Toa")},0,a);else{var f=x3d(this,d),h=x3d(this,fb(c,a));Pn(a.ta(),"a-w-e-Noa",f!=h)}},a);Uf(function(){this.Db();Uf(function(){bXc(this,function(a){Rn(a.ta(),"a-w-e-Noa")})},10,this)},0,a);Uf(function(){bXc(this,function(a){Sx(a.ta(),["a-w-e-NO-Vs","a-w-e-L-Vs","a-w-e-Noa"])},!0)},400,a)};S5.prototype.scrollIntoView=function(a){(a=x5(this,a))&&a.ta()&&(new SSd(a.ta(),1E3)).play()};S5.prototype.UE=function(a){(a=x5(this,a))&&a.UE(!0)};
var B8e=function(a){bXc(a,function(a){y8e(a)})},v3d=function(a){if("n"!=a.wna&&205!=a.Ye){var b=Ye(a.Sa.Rc(),function(a){a.VL(!1);return!0});a.Qb&&b&&a.Qb.VL(!0,a.ta())}};S5.prototype.Hca=function(){return Ye(this.Sa.Rc(),function(a){return a.Hca()})};
var Jbf=function(a,b){A.call(this,"al");this.$=a;this.N1a=b};t(Jbf,A);var a5=function(a,b,c){Fp.call(this,void 0,void 0,Hp.ia(),c);this.$=a;this.nn=b};t(a5,Fp);a5.prototype.Pa=function(){a5.ya.Pa.call(this);this.Ne().Pa();Qn(this.Ne().ta(),"a-Qa-r");var a=new kpa("Order by",this.Ea());this.dg(a);Qn(a.ta(),"a-Qa-A-Nb");v(["Date taken","Name","Reverse"],function(a){a=new yp(a,a);this.dg(a);Qn(a.ta(),"a-Qa-A")},this);Qn(this.ta(),"a-Qa-r")};a5.prototype.Na=function(){a5.ya.Na.call(this);this.getHandler().Ja(this.$.We(),"ui",this.mL)};
a5.prototype.Aha=function(a){switch(a.target.kc()){case "Date taken":this.nn(Pbf,!1);break;case "Name":this.nn(Qbf,!1);break;case "Reverse":this.nn(Rbf,null)}a5.ya.Aha.call(this,a)};a5.prototype.mL=function(){var a=this.$.We().Aia();this.isEnabled()==a&&this.Ta(!a)};
var Pbf=function(a){Iaa(a,function(a,c){return yb(a.getAttribute("ut")||a.Zta,c.getAttribute("ut")||c.Zta)})},Qbf=function(a){Iaa(a,function(a,c){return MZa(a.getName(),c.getName())})},Rbf=function(a){for(var b=0;b<a.length/2;b++){var c=a[b];a[b]=a[a.length-b-1];a[a.length-b-1]=c}};
var Sbf=function(a,b,c){s3.call(this,a,c);this.mL=new A3("a-la-ba",this.Ea());EQd(this.mL);ndc(this.mL,100);this.mL.$(0);this.ib(this.mL);this.uh=this.$b=null;a=this.Ea();this.Ama=new Ot(a.Pa("span","a-w-v-c-B","Upload from computer"),a);this.ib(this.Ama);this.Ab=new laf(this.getContext(),!!b.getOption("eata"),b.getOption("mtp"),this.Ea());this.Sa=new sz(a.Pa("div","a-n-Zd-D-y7"),wp.ia());this.ib(this.Sa);this.Qb=new sz(a.Pa("div","a-n-Zd-D-x7"),wp.ia());this.ib(this.Qb);b="s"==b.getOption("thumbnailSize");
this.Sa.Ld(!b);this.Qb.Ld(b);this.Ag=null};t(Sbf,s3);
Sbf.prototype.Pa=function(){var a=this.Ea(),b=new a5(this.getContext(),Lp(function(a,b){this.dispatchEvent(new Jbf(a,b))},this),a);this.mL.Pa();this.Ama.Pa();b.Pa();this.ib(b);var c;this.Sa.Pa();this.Qb.Pa();Qn(this.Sa.ta(),"a-w-ba-ue-na");Qn(this.Qb.ta(),"a-w-ba-ib-na");this.Kb(a.Pa("div",{"class":"a-w-ba",style:"display: none"},a.Pa("div","a-w-ba-ya",c=a.Pa("div","a-w-Da-kb-ba"),this.$b=a.Pa("div","a-w-la-Ng",this.mL.ta(),this.Km=a.Pa("div","a-w-la-ka"),this.uh=a.Pa("div","a-w-la-TF-v","Stop upload"))),
a.Pa("div","a-w-ba-Ja",this.Ama.ta(),a.Pa("div","a-w-ba-UF",this.Sa.ta(),this.Qb.ta()),b.ta())));this.Ab.render(c);Qn(b.ta(),"a-w-X1-Qa-r");a=this.Ea().fb("d-y-r-c-Qa",b.ta());Qn(a,"a-n-dc-ia-r");Qn(this.uh,"d-s-c");we(this.ta(),!0);we(c,!1);Tbf(this,!1)};Sbf.prototype.Na=function(){Sbf.ya.Na.call(this);this.getHandler().Ja(this.Sa,"action",this.Vb).Ja(this.Qb,"action",this.Vb).Ja(this.getContext().We(),"ui",this.Ko).Ja(this.uh,"click",this.Vk)};
var Zbf=function(a,b){if(!xd){var c=a.Ama;Sc(c.ta(),!1);var d=b.mI&&b.mI();d&&a.getHandler().Ja(d,"focus",Lp(c.zt,c,!0)).Ja(d,"blur",Lp(c.zt,c,!1))}},acf=function(a){return a.Ag.addCallback(function(a){a.Lr(this.Ama,!0)},a)},ccf=function(a,b,c){0>=c||a.Ea().uq(a.Km,(new Z("{TOTAL, plural, =0 {unused plural form}=1 {1 photo}other {{STARTED} / {TOTAL} photos}}")).format({STARTED:b,TOTAL:c}))},Tbf=function(a,b){qe(a.$b,b?1:0);Pd(a.$b,"margin-top",b?"0":"-90px")};
Sbf.prototype.Vk=function(){Tbf(this,!1);this.dispatchEvent("ll")};Sbf.prototype.Vb=function(a){a=a.target==this.Sa;this.Sa.Ld(a);this.Qb.Ld(!a);this.dispatchEvent("kl")};Sbf.prototype.Ko=function(){var a=this.getContext().We();this.mL.$(100*a.BGa());var b=a.mL,a=a.hW();b<a&&ccf(this,b+1,a)};
var O3d=function(a,b,c){I5.call(this,a,b,c);this.Ke=b.getOption("parent");this.Ag=!!b.getOption("upload");this.Ab=new ag(void 0,this);this.Ke&&this.Ab.By();this.L2=new ag(void 0,this);this.Ea();this.yq=new Sbf(a,b,c);this.ib(this.yq);this.Ig=new S5(a,b,c);this.ib(this.Ig);this.Qb=0;this.Lh=new Q2d(this.Ea());this.ib(this.Lh);this.y6=null;this.Hl=this.mL=this.$b=void 0;eVd(E.ia(),"oppe");this.Vb=new F7g(a)};t(O3d,I5);q=O3d.prototype;q.YK=function(){return"photos"};
q.p1=function(a){a=new B3(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);I1d(a);a.qh(!1);return a};q.oT=function(){var a=this.Ea();this.yq.Pa();this.Ig.Pa();this.y6=a.Pa("div","a-w-Ra",this.$b=a.Pa("input","a-w-Bd-N"),this.yq.ta(),a=a.Pa("div","a-w-Te-nb",a.Pa("div","a-w-Te-Ng",this.Ig.ta())));this.Ig.Vk=a;we(this.y6,!0,!0);we(this.$b,!0);we(a,!0);this.Lh.Pa();this.Lh.render(this.y6);Qn(this.Lh.ta(),"a-ir");return this.y6};q.vB=function(){O3d.ya.vB.call(this);ecf(this)};
q.Na=function(){O3d.ya.Na.call(this);we(this.cj.Sa,!0);var a=this.Xd.getOption("albumTitle");a?(this.mL=a,maf(this.yq.Ab,this.mL),this.L2.addCallback(function(b){b&&(b.Wb(a),this.getContext().od.Xp([b]))},this)):this.Ke&&(this.yq.Ab.Ta(!1),this.L2.addCallback(function(a){!this.isDisposed()&&a&&((this.mL=a.getName())&&maf(this.yq.Ab,this.mL),this.yq.Ab.Ta(!0))},this));this.Ke?this.Pf.Qb=this.Ke:this.Pf.mL=this.mL;this.Ab.addCallback(this.NGa);this.getHandler().Ja(this.Ea().getWindow(),"resize",this.acb).Ja(this.Ig,
"no",this.acb).Ja(this.Pf,"sm",this.qIb).Ja(this.Pf,"Nn",this.Vk).Ja(this.Ig,"Vi",this.Sid).Ja(this.Ig,"VF",this.mBc).Ja(this.getContext().mL,"set-album-sort-order",this.uh).Ja(this.yq,"al",this.lkb).Ja(this.yq,"kl",this.acb).Ja(this.yq,"ll",this.eSb);this.Sa.addCallback(function(a){Zbf(this.yq,a);var c=this.Xd.getOption("ifp");c&&this.Ig.LW.addCallback(function(){var d=R3d(this,c,a);d&&this.Ig.scrollIntoView(d.getId())},this);this.Ig.LW.addCallback(function(){this.L2.addCallback(function(c){var f=
this.Xd.getOption("coverPhotoId")||c.getAttribute("cpid");f&&(c.setAttribute("cpid",f),(c=R3d(this,f,a))&&this.Ig.UE(c.getId()))},this)},this);this.Ig.LW.addCallback(function(){var c=[];if(a){var f=$b(zg(this.Ig.Rd().Ae(),function(a){return a.Qe()}));v(a.Lt(),function(h){var k=a.zx(h);(k=k&&k.dG())&&f[k.photoid]||c.push(h)},this);c.length&&W3d(this,C2d(this.Pf,c))}this.UFb&&Uf(function(){Q3d(this,this.UFb,a)},10,this)},this);fcf(this)},this)};
var fcf=function(a){a.Ag||!a.Ke?a.Sa.addCallback(function(a){!a.Lt().length||Ye(a.Lt(),function(c){return L1d(HY(a,c))})?(this.getContext().Mh.Cca(!0),J5(this,!1),this.Hl=new E5(this.getContext(),this.Qr.q5,"or click to select photos & videos from your computer.","Click to open the file browser.",this.Ea()),this.ib(this.Hl),this.Hl.render(this.y6),this.Hl.zla(a.JI()),a.Lr(this.Hl.ta(),!0),On(this.fb("a-w-Te-nb"),!1),Qn(this.fb("a-Za-Bb"),"a-w-v")):kcf(this)},a):kcf(a)},kcf=function(a){if((!a.Ke||
a.Ag)&&!a.fb("a-fwHlj-qUPACb-zb")){var b=a.Ea(),c=b.hg("a-w-Te-Ng");b.pC(c,U(a.getContext().ef(),Fag,{Jdb:ca,deb:ea}),0)}a.Hl&&(a.Hl.setVisible(!1),Rn(a.fb("a-Za-Bb"),"a-w-v"),On(a.fb("a-w-Te-nb"),!0),a.Sa.addCallback(function(a){var b,c=this.yq.ta();a instanceof KY?b=cb(this.Tc("upload-uploader-flash-content"),function(a){return!Oc(c,a)}):a instanceof NY&&(b=cb(this.Tc("ff-v-N"),function(a){return!Oc(c,a)}),b=this.Ea().X3(b,"DIV"));b&&(b.style.position="absolute",b.style.left="-10000px")},a));a.getContext().rd().Qb&&
V$e(a.cj,!1);a.getContext().Mh.Cca(!1);On(a.yq.ta(),!0);acf(a.yq).addCallback(function(){Pd(this.y6,"position","absolute")},a);WQd(a.cj,"Drag to move photo",void 0,"a-w-Bg-lm-Ng");On(a.fb("a-w-Te-nb"),!0)};O3d.prototype.uh=function(a){var b=a.data.photoIds;b&&b.length&&(this.Ig.LW.jl?this.Sa.addCallback(function(a){Q3d(this,b,a)},this):this.UFb=b)};
var Q3d=function(a,b,c){var d=[];v(b,function(a){(a=R3d(this,a,c))&&d.push(a.getId())},a);u3d(a.Ig,d)},R3d=function(a,b,c){var d=a.getContext().od,f=c.getFile(b);c=(c=(c=f&&c.zx(f))&&c.dG())&&c.photoid;return a.Pf.La(b)||c&&d.La(c,"picasa")||d.La(b,"picasa")||null},S3d=function(a){a.L2.addCallback(function(a){var c=Ia(this.yq.Ab.mL.getValue());c==this.mL||Ea(c)||(a.Wb(c),this.Qb++,a=this.getContext().od,a.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:this.Ke,title:c}),Lp(this.Y9,this),Lp(this.Y9,
this)),a.xk(7))},a)};q=O3d.prototype;q.Sid=function(a){this.Sa.addCallback(function(b){var c=a.$.La();b=(c=c.Ii&&c.Ii.getId())&&b.getFile(c);switch(a.Sa){case "fn":this.cj.focus();break;case "fp":this.yq.Ama.ta().focus();break;case "pc":b&&(b["p-pc"]=a.$.Cg())}},this)};
q.eSb=function(){var a=this.getContext();a.Mh.dya(!0);this.Ig.iaa=!1;a.We().dE();this.Ig.iaa=!0;this.Ig.vB();var b=this.Ig.Rd().Ae();if(0<b.length&&b[0].vt()){var c=b[0].vt(),d=zg(b,function(a){return a.Qe()});this.Qb++;Uf(function(){this.getContext().od.Vd(new K3("cleanAlbum","picasa",d,{parent:c}),Lp(this.Y9,this),Lp(this.Y9,this))},7E3,this)}else a.Sa.oD();ecf(this);a.Mh.dya(!1)};q.Y9=function(){this.Qb=Math.max(this.Qb-1,0)};
q.mBc=function(a){this.Sa.addCallback(function(b){switch(a.Sa){case "cp":var c=a.$.La().Qe();this.L2.addCallback(function(a){c!=a.getAttribute("cpid")&&(a.setAttribute("cpid",c),this.getContext().od.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:this.Ke,cpid:c}),ka,ka))},this);break;case "d":var d=a.$.La(),f=d.Ii&&d.Ii.getId();(f=f&&b.getFile(f)||cb(b.Lt(),function(a){return a.Zka==d.getId()}))&&b.Tu(f);ecf(this);break;case "msg":this.Lh.setContent(a.getMessage());this.Lh.setVisible(!0);break;
case "ror":this.hJc(raf(this.Ig),!0)}},this)};q.lkb=function(a){var b=zg(raf(this.Ig),function(a){return this.La(a)},this.getContext().od);a.$(b);b=zg(b,function(a){return a.getId()});u3d(this.Ig,b,!0);this.hJc(b,a.N1a)};q.hJc=function(a,b){if(this.Ke){var c={parent:this.Ke,album_position:"last"};null!=b&&(c.user_ordered_album=b?"true":"false");this.getContext().od.Vd(new K3("reorderAlbum","picasa",a,c),ka,Lp(this.hQb,this))}else this.Ab.addCallback(Lp(this.hJc,this,a,b))};
q.hQb=function(){this.Lh.setContent("Oops! We couldn't change the order of your photos. Try again.");this.Lh.setVisible(!0);this.Xd.or()&&this.Ab.addCallback(function(){this.getContext().od.Vd(this.Xd.or(),Lp(function(a){u3d(this.Ig,zg(a.Ae(),function(a){return a.getId()}))},this),ka)})};q.setActive=function(a,b){O3d.ya.setActive.call(this,a,b);this.Ig.setActive(a)};q.zq=function(a){return this.Ig.zq(a)};q.hJ=function(a){return this.Ig.hJ(a)};
q.OW=function(){this.Ea();this.e6=this.ta();this.bQ=this.$b;var a=this.yq,b=this.YK();a.Ag=a.getContext().We().$b(b,a.Ama.ta());this.Sa=a.Ag;a=this.Ig;b=this.Sa;a.df=b;a.swa.df=b;this.Pf=K5(this,this.Ig.Rd());x(this,this.Pf)};q.S_=function(){kcf(this)};q.qIb=function(a){this.Sa.addCallback(function(){W3d(this,a.$)},this)};
var n3e=function(a,b){var c=0,d=a.Ig.Rd().Ae();d.length&&(c=d[d.length-1].Sa||0);for(d=0;d<b.length;d++){var f=c++;b[d].Sa=f}},W3d=function(a,b){ccf(a.yq,1,b.length);Tbf(a.yq,!0);a.Ig.LW.addCallback(Lp(function(a){n3e(this,a);Uf(function(){this.Pf.kda();ecf(this);a.length&&Uf(function(){this.Ig.scrollIntoView(a[0].getId())},10,this)},0,this)},a,b))};O3d.prototype.Vk=function(a){a=a.$;"success"==a.Ii.getState()&&(this.Ke||(this.Ke=a.vt().split(".").pop(),this.Ab.By()),ecf(this))};
O3d.prototype.hS=function(){ecf(this);Tbf(this.yq,!1);this.Ig.vB()};var ecf=function(a){var b=a.getContext().We().Aia()&&!a.getContext().rd().Ye,c=!a.getContext().rd().Qb,d=!!ec(w3d(a.Ig),function(a){return!a.Ii||"error"!=a.Ii.getState()}).length,f=a.L2.jl,h=c||!b&&!d&&f&&a.Ag,b=!b&&(c&&d||!c&&f&&!h);V$e(a.cj,h);a.cj.qh(b);return b};q=O3d.prototype;
q.WC=function(){!this.Ig.Hca()||this.Qb?Uf(this.WC,50,this):(this.hJc(raf(this.Ig),null),BN(this.Xd,"mtp",this.yq.Ab.Ab),this.L2.addCallback(function(a){var b=w3d(this.Ig);this.yq.Ab.Ab||(v(b,function(b){if(!b.vt()){var d=a.getId();b.zi=d}},this),this.getContext().od.Vd(new K3("autoCurate","picasa",[a.getAttribute("mediaKey")],{}),ka,ka));this.getContext().Sa.Sl(b)},this))};q.kt=function(){if(this.Hl&&this.Hl.iA)try{this.Hl.iA.ta().focus()}catch(a){}return!0};
q.acb=function(){for(var a=this.yq.Sa.Jc()?330:205,b=[],c=this.Ig.wc(),d=3;12>=d;d++)b.push(Math.floor((c-10*(d-1))/d));s3d(this.Ig,bb(b,wa(function(a,b,c){return Math.abs(a-c)<Math.abs(a-b)?c:b},a),1E3),a)};q.XD=function(){Tbf(this.yq,!1);this.cj.qh(!1);this.Ig.LW.addCallback(function(){B8e(this.Ig);this.getContext().Mh.dya(!0);S3d(this);this.WC()},this)};
q.iL=function(){if(this.Ke){var a=[];v(w3d(this.Ig),function(b){b.Kn()&&ib(a,b.getId())});var b=new K3("delete","picasa",a,{parent:this.Ke,deleteParentIfEmpty:!0});this.Vb.OZa(b,void 0,!0,!0)}this.reset();this.getContext().Sa.oD()};q.ihb=Fx;q.qb=function(){O3d.ya.qb.call(this);this.$b=void 0};
q.reset=function(a){O3d.ya.reset.call(this,a);this.getContext().Mh.dya(!0);this.Ig.iaa=!1;this.Hl&&(this.Hl.setVisible(!0),this.getContext().Mh.Cca(!0));this.Sa.addCallback(function(a){Zcd(a)});this.Xd.getOption("parent")||(this.Ke=void 0,this.Ab=new ag(void 0,this),this.Ab.addCallback(this.NGa),this.L2=new ag(void 0,this));this.Ig.iaa=!0;this.Ig.vB();this.getContext().Mh.dya(!1)}; q.NGa=function(){L2d(this.getContext().od,this.Ke,Z3d(this.Pf),Lp(function(a){this.L2.By(a);this.Ig.LW.addCallback(function(){ecf(this)&&this.cj.focus()},this)},this))};
var m4d=function(a,b,c,d){this.p_=new m5(120,!1,!0);(this.Km=c)&&this.ib(c);this.Qb=this.Sa=null;this.jv=new F7g(a);x(this,this.jv);o5.call(this,a,b,d,this.p_)};t(m4d,o5);q=m4d.prototype;
q.Na=function(){m4d.ya.Na.call(this);this.Sa=new l5(this.getContext(),this.getContainer(),this.Ea());this.Qb=new Q0d(this.getContext(),30,this.Sa);this.getHandler().Ja(this.Sa,["qc","lc"],this.JFc).Ja(this.Sa,"Fi",Lp(this.Qb.$b,this.Qb)).Ja(this.Sa,"Ei",Lp(this.Qb.uh,this.Qb)).Ja(this.Sa,"TE",this.Xid).Ja(this.Sa,"Di",this.Vid);this.ib(this.Sa);this.Sa.render(this.ta())};q.cD=function(){};q.Gya=Fx;
q.Hr=function(a){m4d.ya.Hr.call(this,a);var b=this.getContainer().cb(),c=b.firstChild;this.Km&&!this.Km.Nb()&&(c?De(this.Km,c):this.Km.render(b));0<a.length&&(b=x5(this,a[0].getId()),a=x5(this,a[a.length-1].getId()),c!=b.ta()&&(S3(a.ta()),b!=a&&S3(b.ta())),this.lKa())};
q.Vid=function(a){var b=a.$,c=a.Cg();if(c&&b){var d=b.La();if(d){var f=d.Jd();d.Ee(c);a=this.getContext();c={caption:c};a.od.Vd(new K3("changeCaption","picasa",[d.getId()],c),ka,Lp(function(){d.Ee(f);"function"==typeof b.cPa&&b.yw().setContent(f);alert("Unable to save the caption. Please try again.")},this))}}};q.JFc=function(a){var b=a.target.fb("a-J-e-Qe-Hj");b&&On(b,"lc"==a.type)};
q.Xid=function(){var a=this.Sa.mL;if(a){var a=a.La(),b=this.Gf().getOption("pd");if(!ia(b)||b){var b=a.vt(),c={parent:b},d=this.getContext().od,f=new ag(void 0,this);f.addCallback(Lp(function(){},this));bg(f,Lp(function(){},this));c=new K3("delete","picasa",[a.getId()],c);this.jv.OZa(c,f,!0,!0);(b=d.La(b))&&I2d(b,b.Tm()-1)}this.Rd().dL([a.getId()])}};
var X3d=function(a){Ld.call(this);this.Qb=a;this.$={};this.Ab=0;this.Sa=!1};t(X3d,Ld);X3d.prototype.clear=function(){Vb(this.$)};X3d.prototype.mL=function(){this.Qb.Vd(new u3("picasa",Sb(this.$),{}),Lp(this.DU,this),Lp(this.$b,this))};
X3d.prototype.DU=function(a){a=a.Ae();for(var b=0;b<a.length;b++){var c=a[b],d=c.getVideoData(),f=this.Qb.La(c.getId());if(f&&d&&!d.Qb){var h=f.getVideoData();h?h.zKa(d):f.Km=d;f.ZE(c.Yh());this.dispatchEvent(new Y3d(f,"s"));Wb(this.$,c.getId())}else d=this.$[c.getId()],Wa()>d+3E5&&(Wb(this.$,c.getId()),this.dispatchEvent(new Y3d(f,"f")))}Ub(this.$)?this.Sa=!1:Uf(this.mL,2E3,this)};
X3d.prototype.$b=function(){this.Ab++;5<=this.Ab?(v(Sb(this.$),function(a){this.dispatchEvent(new Y3d(this.Qb.La(a),"f"))},this),Vb(this.$),this.Sa=!1):Uf(this.mL,2E3,this)};var Y3d=function(a,b){A.call(this,"Ui");this.$=a;this.Sa=b};t(Y3d,A);Y3d.prototype.La=function(){return this.$};Y3d.prototype.YA=function(){return this.Sa};
var T5=function(a,b,c,d,f){F5.call(this,a,b,c,d,f);this.Qb=a.rd().Qb;this.Vb=String(Wa());this.Km={};this.uh=new X3d(a.od);this.getHandler().Ja(this.uh,"Ui",this.eMc);this.mL=null};t(T5,F5);q=T5.prototype;
q.Aga=function(a){var b=T5.ya.Aga.call(this,a);qa(b.batchid)||(b.batchid=this.Vb);var c=this.Qb;c&&(b.album_id=c);b.album_name||this.Qb||(c=this.mL)&&(b.album_name=c);(a=this.La(a.getId()))&&void 0!=a.Sa&&(b.album_abs_position=String(a.Sa));a=this.getContext().rd();var c=a.nk(),d=a.ik();c?b.effective_id=c:d&&(b.entity_type="2",b.effective_id=d);(a=a.Sa)&&(b.client=a);return b};
q.C2a=function(a){T5.ya.C2a.call(this,a);this.Sa.addCallback(function(b){var c=a.file;b=HY(b,c);L1d(b)&&(c=this.La(c.getId()))&&"video"==c.Ra()&&(c.getId(),"success"==b&&(b=this.uh,c=c.getId(),Ub(b.$)&&(b.Ab=0),b.$[c]=Wa(),b.Sa||(b.Sa=!0,b.mL())))},this)};q.eMc=function(a){"s"==a.YA()&&j2d(this,a.La());this.dispatchEvent(new h2d("On",a.La()))};
q.B2a=function(a){this.Sa.addCallback(function(b){if("Server rejected"==a.message&&(b=b.zx(a.file))){var c=b.dG();if(c)if(b=c.status,c=c.message||"","QUOTA_EXCEEDED"==b)this.dE(),this.getContext().Mh.On(new w3("quota"));else if("ERR_ALBUM_LIMIT"==b)a.message="Album limit exceeded";else if("ERR_PHOTO_PER_ALBUM_LIMIT"==b)a.message="Album full";else if("IMAGE_TOO_BIG"==b)a.message="Image too big";else if("INSUFFICIENT_PERMISSION"==b)a.message="Permission denied";else if("NOT_IMAGE"==b||"BAD_IMAGE"==
b||ya(c,"Content type is neither image nor video")||ya(c,"Content type not included"))a.message="File must be an image or video."}T5.ya.B2a.call(this,a)},this)};
q.E9=function(a,b){T5.ya.E9.call(this,a,b);var c=a.Ii,d=b&&faf(b),f={};f.id=b.photoid;f.serviceId="picasa";f.sourceId="0";f.mimeType=b.videoId?"application/vnd.google-apps.video":"application/vnd.google-apps.photo";f.name=a.getName();f.url=b.photoPageUrl;var h;if(h=d)h=(h=baf(d))?Hf(new Af("http://video.google.com/googleplayer.swf"),"videoUrl",h.getUrl()).toString():void 0;f.embedUrl=h;f.type="video"==b.kind?"video":"photo";f.description=b.description;f.parent=b.albumid;f.sortIndex=a.Sa;f.isNew=!0;
f.sizeBytes=a.Ab||void 0;f.mimeType=a.rI()||void 0;var k={};h=k.r=b.rotation;f.imageData=k;a=new Vw(f);var f=b.url,k=b.width,m=b.height;0<k&&0<m||this.getContext().Vk.$b(a);if(f){if(1==h||3==h)h=k,k=m,m=h;a.ZE([new Uw(WRd(f),k,m,!0)])}a.zi=b.albumid&&"picasa.0."+b.albumid;a.setAttribute("dz",b.autoDownsized);a.setAttribute("ut",1E3*b.timestamp);a.setAttribute("ae",b.autoEnhance);a.setAttribute("v",b.imageVersion);a.setAttribute("mediaKey",b.photoMediaKey);b.geoInfo&&(h=b.geoInfo,ia(h.latitude)&&ia(h.longitude)&&
(a.setAttribute("lat",h.latitude),a.setAttribute("lng",h.longitude)));a.Ii=c;this.Km[a.getId()]=!0;d&&(a.Km=d);return a};var Z3d=function(a){var b=a.$b.getMetadata();return!a.Qb&&(!b||!b.album_id&&!b.auto_create_album)};T5.prototype.reset=function(){T5.ya.reset.call(this);this.uh.clear();this.Vb=String(Wa())};
var $3d=function(a,b,c){C.call(this,c);this.mL=b;this.Ab=this.Sa=this.$=this.Qb=null};t($3d,C);$3d.prototype.Qxb=function(){return this.$.ta()};$3d.prototype.Pa=function(){$3d.ya.Pa.call(this);var a=this.Ea(),b=[a.Pa("div","a-n-v-ia d-k-l"),a.createTextNode("Choose files")],b=new Ot(b,a);b.Pa();this.$=b;a=a.Pa("div","a-Dl",b.ta(),a.Pa("div","a-Dl-Fi","You may upload multiple files at once. Use JPG, GIF, or PNG files."),a.Pa("div","a-Dl-dd"));this.Kb(a)};
$3d.prototype.Na=function(){$3d.ya.Na.call(this);this.$.Na();var a=e4d(this.mL,this.$.ta());a4d(this,a);this.getHandler().Ja(this.Qxb(),"keyup",function(a){13!=a.keyCode&&32!=a.keyCode||this.Qxb().click()})};
var a4d=function(a,b){a.Qb=b;b.Sa.addCallback(function(a){if(a instanceof NY){var b=this.ta();zc(b);var f=this.Ea();b.appendChild(f.Pa("div","a-Dl-Fi","You can upload JPG, GIF, or PNG files."));b.appendChild(f.Pa("div","a-Dl-dd"));b4d(this)}this.getHandler().Ja(a,"filesselected",this.Ag).Ja(a,"fileremoved",this.$b)},a)},b4d=function(a){a.Sa&&On(a.Sa,!1);var b=a.ta(),c=a.Sa=a.Ea().Pa("div","d-k-l a-Dl-Bma");b.insertBefore(c,b.firstChild);a.Qb.Sa.addCallback(function(a){this.getHandler().yj(a,"fileadded",
function(b){b=b.file;this.Ab=b.getId();a.mla(c,b)});JY(a,new wY)},a)};$3d.prototype.Ag=function(){var a=this.Qb;Uf(a.kda,0,a);a.Sa.addCallback(function(a){a instanceof NY&&b4d(this)},this)};$3d.prototype.$b=function(a){a.file.getId()==this.Ab&&b4d(this)};$3d.prototype.qb=function(){$3d.ya.qb.call(this);this.Sa=this.$=this.Qb=null};
var c4d=function(a,b,c){C.call(this,c);this.mL=a;this.$b=b;this.Ab=this.$=this.Sa=this.Qb=null};t(c4d,C);c4d.prototype.Qxb=function(){return this.Sa.ta()};c4d.prototype.Pa=function(){var a=this.Ea(),b=[a.Pa("div","a-n-v-ia d-k-l"),a.createTextNode(this.mL)],b=new Ot(b,this.Ea());b.Pa();this.Sa=b;this.Kb(a.Pa("div","a-v-N-zd d-k-l",a.Pa("div","a-n-T8-U8 d-k-l"),a.Pa("br"),b.ta()))};c4d.prototype.Na=function(){c4d.ya.Na.call(this);this.Sa.Na()};
c4d.prototype.Idb=function(a){this.Qb=a;a.Sa.addCallback(function(a){if(a instanceof NY){var c=this.ta(),d;d=this.Ea();d=d.Pa("div","a-v-N-oaa",d.createTextNode(this.$b));Gc(d,c);this.Kb(d);d4d(this)}this.getHandler().Ja(a,"filesselected",this.uh).Ja(a,"fileremoved",this.Ag)},this)};
var d4d=function(a){a.$&&On(a.$,!1);var b=a.$=a.Ea().Pa("div","d-k-l");a.ta().appendChild(b);a.Qb.Sa.addCallback(function(a){this.getHandler().yj(a,"fileadded",function(d){d=d.file;this.Ab=d.getId();a.mla(b,d)});a.KQ(!1)},a)};c4d.prototype.uh=function(){var a=this.Qb;Uf(a.kda,0,a);a.Sa.addCallback(function(a){a instanceof NY&&d4d(this)},this)};c4d.prototype.Ag=function(a){a.file.getId()==this.Ab&&d4d(this)};c4d.prototype.qb=function(){c4d.ya.qb.call(this);this.$=this.Sa=this.Qb=null};
var U5=function(a,b,c){o5.call(this,a,b,c);var d=null;"palette"==b.getOption("mode")&&(d=new $3d(0,this,c),this.ib(d));this.yja=d;this.Naa="palette"!=this.Gf().getOption("mode");this.getHandler().Ja(a.Sa,"reset",Lp(this.p_,this,0));this.Sa=this.Km=this.Qb=null};t(U5,o5);U5.prototype.Pa=function(){U5.ya.Pa.call(this);var a=this.yja;if(a){a.Pa();var b=this.ta();b.insertBefore(a.ta(),b.firstChild)}};
U5.prototype.bC=function(a){var b=this.Qb;"palette"==this.Gf().getOption("mode")&&(a=ec(a,function(a){var d=a.Ii;return!!d&&!!b.La(d.getId())||!!b.Km[a.getId()]}));return U5.ya.bC.call(this,a)};
U5.prototype.Hr=function(a){var b=this.Gf(),c=b.getOption("mode");!this.Sa&&b.getOption("upload")&&b.getOption("parent")&&"palette"!=c&&(b=this.Sa=new c4d("Upload","Add a photo: ",this.Ea()),this.ib(b),"first"==this.Gf().getOption("uploadpos")?b.render(this.getContainer().cb()):b.render(this.getContainer().cb().parentNode),this.Sa.Idb(e4d(this,this.Sa.Qxb())));U5.ya.Hr.call(this,a)};
var e4d=function(a,b){var c=a.getContext();a.Km=c.We().$b("photos",b);var d=a.Gf(),c=a.Qb=new T5(c,"photos",d,a.Km,a.Rd()||void 0);if(d=d.getOption("parent"))c.Qb=d.substring(d.lastIndexOf(".")+1);a.getHandler().Ja(c,"sm",a.jv);return c};U5.prototype.jv=function(a){a=a.$;for(var b=-1,c=this.Rd().Ae(),d=0;d<c.length;d++)var f=c[d].Sa,b=Math.max(b,ia(f)?f:-1);for(d=0;d<a.length;d++)c=++b,a[d].Sa=c};U5.prototype.gR=function(){"palette"!=this.Gf().getOption("mode")&&U5.ya.gR.call(this)}; U5.prototype.p_=function(){this.Qb&&this.Qb.reset()};
var mZd=function(a,b,c){kd.call(this);this.$=a;this.Ke=b;this.Ag=c;this.Sa=new TC(this.jg,1E3,this);this.DU=[]};t(mZd,kd);mZd.prototype.Ab=0;mZd.prototype.addListener=function(a){this.DU.push(a);this.Sa.Il();return this};
mZd.prototype.jg=function(){var a=this.$.rd();if(!this.mL)this.mL=Wa();else if(Wa()-this.mL>=a.wna){nZd(this,this.Ab,this.$b);return}a={type:"album",includeFaceData:!0,shapeSuggestions:a.Mma};this.Ag&&(a.userId=this.Ag);var b=this.$.od;b.Vd(new u3("picasa",[this.Ke],a),Lp(function(a){a=(a.Ae()||[])[0];this.Qb=!(!a||!a.getAttribute("fdc"));this.Ab=a&&a.getAttribute("numFaces")||this.Ab;this.$b=!(!a||!a.getAttribute("frpn"));if(this.Qb){var d=b.La(a.getId());d&&(a.zJ(d.Kn()),a.TVa=d.TVa);this.$.od.Xp([a]);
nZd(this,this.Ab,this.$b);delete this.mL}else this.Sa.Il()},this),Lp(function(){this.Sa.Il()},this))};var nZd=function(a,b,c){v(a.DU,function(a){a(b,c)})};mZd.prototype.stop=function(){this.Sa.stop();return this};mZd.prototype.xPc=function(){return this.Qb};mZd.prototype.qb=function(){this.Sa.Ma()};
var W5=function(a,b,c){this.zI="edit"==b.getOption("mode");this.zi=b.getOption("parent")||a.rd().Qb;I5.call(this,a,b,c);this.$b=null!=this.zi?void 0:0;var d,f=b.getOption("cRename");"photo-upload"!=b.$||a.rd().nA||(f="pname");f&&(d=new g4d(a,f,c),x(this,d));this.Ab=d;this.Xb()||this.zI?(b=oig(b)?new o5(a,b,c):new m4d(a,b,this.Ab,c),b.Naa=!1):b=void 0;(this.Ig=b)?this.ib(this.Ig):this.Ab&&this.ib(this.Ab);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("error");this.Hl=new E5(this.getContext(),
this.Qr.q5,"or click to select photos & videos from your computer.",this.Qr.$,this.Ea());this.ib(this.Hl);var h;this.Xb()||(h=new A3("a-la-ba",this.Ea()),EQd(h),ndc(h,100),this.ib(h));this.mL=h;this.Ag=null;this.uh=new F7g(a);x(this,this.uh)};t(W5,I5);q=W5.prototype;q.ihb=Fx;q.YK=function(){return this.Xd.getQuery()||"photos"};
q.p1=function(a){var b=this.getContext(),c,d=b.rd().Tx;this.zI?c=new l4d(b,Lp(this.XD,this),a):d?c=new B4(b,Lp(this.XD,this),Lp(this.iL,this),a):c=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);this.Xb()||this.zI||I1d(c);if(this.Xb&&!this.zI||this.zI&&this.Qr&&this.zi)this.Co=wbg(c);return c};q.UEa=function(a){this.zI?l4d.ya.qh.call(this.cj,a):this.cj.qh(a)};
q.oT=function(){var a=this.Ea();this.Hl.Pa();this.Ig&&this.Ig.Pa();this.Lh.Pa();var b=a.Pa("div","a-B a-v a-qc",a.Pa("div","a-qc-ir",this.Lh.ta()),this.Hl.ta());this.Ab&&(this.Ab.Pa(),a.Ep(this.Ab.ta(),this.Hl.ta()),Qn(b,"a-qc-iN-Fg"));this.Ig&&a.Ep(this.Ig.ta(),this.Hl.ta());this.mL&&(this.mL.Pa(),this.Ag=a.Pa("div","a-qc-la-nb",a.Pa("div","a-qc-la-E","Uploading"),a.Pa("div","a-qc-la",this.mL.ta())),a.Hy(this.Ag,this.Hl.ta()));return b};
q.OW=function(){this.Ea();this.e6=this.ta();var a=this.Hl.Sa;this.bQ=a;this.Sa=this.getContext().We().$b(this.YK(),a);this.Pf=K5(this,this.Ig?this.Ig.Rd():void 0);this.zi&&this.Pf instanceof T5&&(this.Pf.Qb=this.zi)};q.OQ=function(){xd||this.Sa.addCallback(function(a){(a=a.mI&&a.mI())&&this.getHandler().Ja(a,"focus",Lp(this.Hl.zt,this.Hl,!0)).Ja(a,"blur",Lp(this.Hl.zt,this.Hl,!1))},this)};
q.setActive=function(a,b){W5.ya.setActive.call(this,a,b);a&&(this.reset(),haf(this,ka));this.Ab&&On(this.Ab.ta(),a);this.Ig&&(this.Ig.setActive(a),On(this.Ig.ta(),a));Y2e(this,a&&!this.zI)};
q.Na=function(){W5.ya.Na.call(this);this.Sa.addCallback(function(a){this.OQ();a.JI()?(this.Hl.zla(!0),a.Lr(this.Hl.ta(),!0),this.getHandler().Ja(this.Hl.iA.ta(),"keydown",function(a){13==a.keyCode&&this.Hl.ta().click()})):a.Lr(this.Hl.iA,!0)},this);this.mL&&this.getHandler().Ja(this.getContext().We(),"ui",this.ejd);Qn(this.cj.Sa,"a-qc-Za");this.Lh.setVisible(!1);this.getHandler().Ja(this.Lh.ta(),"click",this.cjd).Ja(this.Pf,"Nn",this.bjd).Ja(this.Pf,"sm",this.rIb);this.Ig&&(this.getHandler().Ja(this.Ig,
"QE",this.djd),this.Ig.Rd().addListener(Lp(this.ajd,this)));this.Ab&&this.getHandler().Ja(this.Ab,"Vo",this.Vk).Ja(this.Ab,"rn",Lp(this.xAb,this,!0)).Ja(this.Ab,"Fn",Lp(this.xAb,this,!1))};q.xAb=function(a){this.UEa(a&&!!(this.zI||this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length))};q.djd=function(a){this.Sa.addCallback(function(b){"r"==a.$?b.Tu(b.getFile(M3(a.La()).getId())):"c"==a.$?b.Tu(b.getFile(M3(a.La()).getId())):"t"==a.$&&b.tca(b.getFile(M3(a.La()).getId()))},this)};
q.ajd=function(a,b){var c=this.getContext().od;this.Sa.addCallback(function(a){v(b,function(b){(b=M3(c.La(b)))&&(b=a.getFile(b.getId()))&&a.Tu(b)},this)},this);this.zI||this.Ig.Rd().tf()||this.reset()};q.bjd=function(a){a=a.$;if("success"==a.Ii.getState()){if("pwa"==this.getContext().rd().Sa&&a.getAttribute("dz")){var b=800,c=a.Yh();c&&c.length&&(b=c[c.length-1],b=Math.max(b.wc(),b.Ic()));this.cSa.display("r",{pixels:b})}this.zi||(this.zi=a.vt()&&a.vt().substring(a.vt().lastIndexOf(".")+1))}};
q.hS=function(){if(this.Xb())o4d(this);else{var a=this.Pf.Ae()[0],b=this.getContext().rd(),c=this.Qr.Sa,d="success"!=a.Ii.getState();if(d||pa(c)&&!eb(c,a.Ra()))this.reset(),q4d(this,this.Qr.DU),d||s4d(this,[a.getId()]);else if(c=p4d(a),d=this.getContext().rd().DU,!d||c&&Mb(d,c)){this.mL&&this.mL.$(100);if(c=b.Ag)c=!Naa(this.getContext().rd().DU,p4d(a));c||b.jg?(b=new w3("crop"),BN(b,"id",a.Qe()),a.vt()&&BN(b,"parent",a.vt().split(".").pop()),BN(b,"service",a.$),b.Sa=this.Xd,this.getContext().Mh.On(b)):
this.WC()}else this.reset(),b=b.DU,1>=b.width?q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.height+" pixels tall.")):1>=b.height?q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+" pixels wide.")):q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+(" pixels wide and "+(b.height+" pixels tall.")))),s4d(this,[a.getId()])}};
var o4d=function(a){a.zi?L2d(a.getContext().od,a.zi,Z3d(a.Pf),Lp(a.Vb,a)):H8d(a)?a.Vb():a.Co&&a.Sa.addCallback(function(a){a.Lr(this.Co)},a)},H8d=function(a){return"gmailphotos"==a.YK()||"cultural"==a.YK()||a.Xd.getOption("data")&&a.Xd.getOption("data").albumless};
W5.prototype.Vb=function(){this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length&&this.UEa(!this.Ab||this.Ab.uh);var a=this.getContext();this.zi&&a.rd().yQ("bulkTag")&&(this.Qb&&this.Qb.stop(),this.Qb=(new mZd(a,this.zi)).addListener(Lp(function(b){var c=a.od.La(this.Qb.Ke,"picasa");c&&(c.setAttribute("fdc",!0),c.setAttribute("numFaces",b))},this)));this.Co&&this.Sa.addCallback(function(a){a.Lr(this.Co)},this)};
var p4d=function(a){return(a=a.Yh())&&a.length?(a=$a(a),new Kb(a.wc(),a.Ic())):null},q4d=function(a,b){var c=a.Ea(),d="An error occurred. Please try again.";b&&(d=cd(c,b));var f=c.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss");a.Lh.setContent(c.Pa("span",null,d,"\u00a0","\u00a0",f));a.Lh.setVisible(!0);try{f.focus()}catch(h){}};q=W5.prototype;q.cjd=function(a){Sn(a.target,"a-Yd")&&this.Lh.setVisible(!1)};q.ejd=function(){var a=this.getContext().We().BGa();0<a&&this.mL.$(100*a)};
q.S_=function(){};q.rIb=function(a){Y2e(this,!1);this.Lh&&this.Lh.setVisible(!1);this.mL&&On(this.Ag,!0);wb(a.$,function(a,c){return yb(a.getName(),c.getName())});this.zI?(X2e(this,a.$),Uf(function(){this.start()},0,this)):(this.getContext().rd().dw||this.getContext().Mh.Cca(!1),Uf(function(){haf(this,Lp(function(b){v(a.$,function(a){var d=b++;a.Sa=d;this.$b++},this);this.start()},this))},0,this))};q.start=function(){W5.ya.start.call(this);this.Co&&this.Sa.addCallback(function(a){a.VM(this.Co)},this)};
var X2e=function(a,b){var c=0,d=a.Ig.Rd().Ae();d.length&&(c=d[d.length-1].Sa||0);for(d=0;d<b.length;d++){var f=c++;b[d].Sa=f}};W5.prototype.kt=function(){if(this.Ab&&this.Ab.focus())return!0;try{return this.Hl.iA.ta().focus(),!0}catch(a){}return!1};
var Y2e=function(a,b){a.Hl.setVisible(b);J5(a,!b)},s4d=function(a,b){var c=a.zi;if(c){var d={parent:c};a.zI||a.Xd.getOption("parent")||a.getContext().rd().Qb||(d.deleteParentIfEmpty="true");c=new ag(void 0,a);c.addCallback(Lp(function(){},a));bg(c,Lp(function(){},a));d=new K3("delete","picasa",b,d);a.uh.OZa(d,c,!0,!0)}};W5.prototype.iL=function(){this.Qb&&this.Qb.stop();s4d(this,zg(this.Pf.Ae(),function(a){return a.getId()},this));this.getContext().Sa.oD()};W5.prototype.XD=function(){this.WC()};
W5.prototype.WC=function(){this.UEa(!1);this.Qb&&this.Qb.stop();var a=[];this.Ig?a=ec(this.Ig.Rd().Ae(),function(a){a=a.Ii;return!a||"success"==a.getState()},this):a=G5(this.Pf);a.length&&this.Ab?gaf(this.Ab,a,!this.zi,Lp(this.UEa,this,!0)):this.getContext().Sa.Sl(a)};var haf=function(a,b){null!=a.$b?b(a.$b):null!=a.zi?a.getContext().od.Vd(new u3("picasa",[a.zi],{type:"album"}),Lp(function(a){this.$b=(a=(a.Ae()||[])[0])?a.Tm():0;b(this.$b)},a),Lp(function(){b(this.$b=0)},a)):b(a.$b=0)};
W5.prototype.M1a=function(){this.reset();q4d(this,this.Qr.mL)};W5.prototype.Vk=function(a){a.$?(a=this.getContext().rd().Hwa(),this.cj.Pt.setContent(a)):this.cj.Pt.setContent("Done")};
W5.prototype.reset=function(a){W5.ya.reset.call(this,a);a||(this.zi=this.Xd.getOption("parent")||this.getContext().rd().Qb,this.$b=null!=this.zi?void 0:0,Y2e(this,!this.zI),this.Lh&&this.Lh.setVisible(!1),a=(new gn(1)).format(new dn),this.Pf instanceof T5&&(this.Pf.mL=a),this.Ab&&(this.Ab.reset(),this.zi?h4d(this.Ab,this.zi):this.Ab.Qb(a)),this.mL&&(On(this.Ag,!1),this.mL.$(0)),this.Qb&&this.Qb.stop(),this.zI&&n4d(this.Ig),this.Co&&Uf(function(){this.Sa.addCallback(function(a){this.zI?(On(this.Co.ta(), !0),a.Lr(this.Co),this.Co.ta().style.visibility="visible"):(a.VM(this.Co),On(this.Co.ta(),!1))},this)},50,this))};W5.prototype.zq=function(a){return this.Ig?this.Ig.zq(a):W5.ya.zq.call(this,a)};
var X5=function(a,b,c){M5.call(this,a,b,c);this.Ag=(new gn(1)).format(new dn);var d=null,f=b.getOption("cRename");"photo-upload"!=b.$||a.rd().nA||(f="pname");f&&(d=new g4d(a,f,c),d.Qb(this.Ag),this.ib(d));this.Ab=d};t(X5,M5);q=X5.prototype;q.YK=function(){return this.Xb()?"photos":"photo"};q.oT=function(){if(this.Ab){var a=this.Ea();X6e(this,this.$b);this.Ab.Pa();return a.Pa("div","a-B a-v a-Mi",a.Pa("div","a-v-J-Da-ba",this.Ab.ta()),a.Pa("div","a-J-v-ec",X5.ya.oT.call(this)))}return X5.ya.oT.call(this)};
q.OW=function(){X5.ya.OW.call(this);this.Pf.mL=this.Ag};q.setActive=function(a,b){X5.ya.setActive.call(this,a,b);this.Ab&&On(this.Ab.ta(),a)};q.kt=function(){return this.Ab&&this.Ab.focus()?!0:X5.ya.kt.call(this)};q.reset=function(a){X5.ya.reset.call(this,a);a||(this.Ag=(new gn(1)).format(new dn),this.Pf.mL=this.Ag,this.Ab&&(this.Ab.reset(),this.Ab.Qb(this.Ag)))};q.WC=function(){this.Ab?gaf(this.Ab,G5(this.Pf),!1,Lp(this.cj.qh,this.cj,!0)):X5.ya.WC.call(this)};
var E4d=function(a,b,c){j5.call(this,a,b,c);this.y2=Q3.ia();this.Qb=null;this.Vk=!1;this.Km=this.Db=null};t(E4d,j5);E4d.prototype.Pa=function(){E4d.ya.Pa.call(this);Qn(this.ta(),"a-G1")};E4d.prototype.Na=function(){E4d.ya.Na.call(this);this.Sa=new l5(this.getContext(),this.getContainer(),this.Ea());this.getHandler().Ja(this.Sa,"Di",this.wjd);this.ib(this.Sa);this.Sa.render(this.ta());F4d(this)};
var F4d=function(a){var b=oe(a.ta()),c=40;a.Km=new Kb(b.width-c,b.height-c);c=60;a.Db=(new Kb((b.width-c)/2,(b.height-c)/2)).floor()};q=E4d.prototype;q.ED=function(a){var b=a.Ii.getId(),c;this.Qb.Sa.addCallback(function(a){c=a},this);b=GY(c,c.getFile(b)).blob;a=new d5(this.getContext(),a,b,this.Ea());this.getHandler().Ja(a,"QE",this.dispatchEvent).Ja(a,"om",this.xjd).Ja(a,"Vm",this.dispatchEvent).Ja(a,"Wm",this.dispatchEvent);return a};
q.xjd=function(a){var b=a.target;this.Rd().dL([b.La().getId()]);this.jOa(b.La().getId());if(1==this.Rd().tf()){var c=x5(this,this.Rd().Ae()[0].getId());c&&(this.y2.setSize(c,this.Km.width,this.Km.height),D2d(c),c.update());this.Vk=!1}this.getHandler().nb(b,"Wm").nb(b,"Vm").nb(b,"om");this.dispatchEvent(a)};q.Idb=function(a){this.Qb=a};
q.Hr=function(a){E4d.ya.Hr.call(this,a);var b=this.y2;a=this.Rd().Ae();if(1==a.length){if(a=x5(this,a[0].getId()))b.setSize(a,this.Km.width,this.Km.height),D2d(a);this.Vk=!1}else this.Vk?(v(a,function(a){a=x5(this,a.getId());b.setSize(a,this.Db.width,this.Db.height);yRd(a);a.update()},this),this.Vk=!0):(v(a,function(a){this.jOa(a.getId())},this),this.Vk=!0,this.Ik(a))};
q.wjd=function(a){var b=a.$,c=a.Cg();if(c&&b){var d=b.La();if(d)if("success"!=d.Ii.getState())b.Tx=c;else{var f=d.Jd();d.Ee(c);a=this.getContext();c={caption:c};a.od.Vd(new K3("changeCaption","picasa",[d.getId()],c),ka,Lp(function(){d.Ee(f);"function"==typeof b.yw&&b.yw().setContent(f);alert("Your caption could not be saved. Please try again.")},this))}}};
var $5=function(a,b,c){this.Qj=null;I5.call(this,a,b,c);this.Ab=new df;this.YF=new df;this.uh=(new gn(1)).format(new dn);this.Ke=a.rd().Qb;this.Ig=new E4d(a,b,c);this.ib(this.Ig);this.Hl=new E5(this.getContext(),this.Qr.q5,this.Qr.Ab,this.Qr.$,this.Ea());this.ib(this.Hl);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("info");this.Ag=new Un(function(){this.Lh&&!this.Lh.isDisposed()&&this.Lh.setVisible(!1)},1E3,this);this.mL=null;this.ihb=Fx;this.Qb=new F7g(a);x(this,this.Qb)};t($5,I5);
q=$5.prototype;q.p1=function(a){var b=this.getContext();a=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);a.qh(!1);this.Qj=wbg(a);return a};q.OW=function(){this.Ea();this.e6=this.ta();var a=this.Hl.Sa;this.bQ=a;this.Sa=this.getContext().We().$b(this.YK(),a);this.Pf=K5(this,this.Ig?this.Ig.Rd():void 0);this.Pf.mL=this.uh;this.Ig.Idb(this.Pf)};
q.oT=function(){var a=this.Ea();this.Hl.Pa();this.Ig.Pa();this.Lh.Pa();Qn(this.Lh.ta(),"a-ir");Qn(this.Lh.ta(),"a-tUa");return this.mL=a.Pa("div","a-B a-v a-W8",this.Ig.ta(),this.Hl.ta(),this.Lh.ta())};q.TJc=function(){this.Lh.setContent("Deleting video...");this.Lh.setVisible(!0)};q.dCb=function(a){this.Ag.start();a&&this.Lh.setContent("Video deleted.")};
q.OQ=function(){xd||this.Sa.addCallback(function(a){(a=a.mI&&a.mI())&&this.getHandler().Ja(a,"focus",function(){this.Hl.zt(!0)},void 0,this).Ja(a,"blur",function(){this.Hl.zt(!1)},void 0,this)},this)};
q.Na=function(){$5.ya.Na.call(this);J5(this,!1);this.Sa.addCallback(function(a){this.OQ();a.JI()?(this.Hl.zla(!0),a.Lr(this.Hl.ta(),!0),this.getHandler().Ja(this.Hl.iA.ta(),"keyup",function(a){13==a.keyCode&&this.Hl.ta().click()})):a.Lr(this.Hl.iA,!0)},this);this.getHandler().Ja(this.Pf,"Nn",this.Cjd).Ja(this.Pf,"On",this.Zmb).Ja(this.Pf,"sm",this.Vb).Ja(this.Ig,"Vm",this.TJc).Ja(this.Ig,"om",Lp(this.dCb,this,!0)).Ja(this.Ig,"Wm",Lp(this.dCb,this,!1));this.Ig&&this.Ig.Rd().addListener(Lp(this.xIb,
this))};q.xIb=function(a,b){var c=this.getContext().od;this.Sa.addCallback(function(a){v(b,function(b){(b=M3(c.La(b)))&&(b=a.getFile(b.getId()))&&a.Tu(b)},this)},this);this.Ig.Rd().tf()||this.reset()};q.Cjd=function(a){a=a.$;if("video"!=a.Ra()||"success"!=a.Ii.getState()){var b;b=a.getId();(b=x5(this.Ig,b))&&b.yZ();"success"!=a.Ii.getState()&&this.YF.add(a.getId())}else b=a.vt(),this.Ke=b.substring(b.lastIndexOf(".")+1),this.Ab.add(a.getId())};
q.Zmb=function(a){a=a.$;this.Ab.remove(a.getId());a=a.getId();(a=x5(this.Ig,a))&&a.update();0==this.Ab.Fc()&&WQd(this.cj,"")};var mcf=function(a){if(a.zi){var b=a.getContext().od;b.Vd(new u3("picasa",[a.zi],{type:"album"}),Lp(function(a){b.Xp(a.Ae()||[]);this.$b()},a),Lp(a.$b,a))}else a.Qj&&a.Sa.addCallback(function(a){a.Lr(this.Qj)},a)};$5.prototype.$b=function(){this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length&&this.cj.qh(!0);this.Qj&&this.Sa.addCallback(function(a){a.Lr(this.Qj)},this)};
$5.prototype.Vb=function(){A4d(this,!1);this.getContext().Mh.Cca(!1);Uf(function(){F4d(this.Ig);this.start()},0,this)};var A4d=function(a,b){a.Hl.setVisible(b);J5(a,!b)};q=$5.prototype;q.XD=function(){this.YF.isEmpty()||(this.Sa.addCallback(function(a){v(this.YF.Rc(),function(b){a.Tu(a.getFile(M3(this.getContext().od.La(b)).getId()))},this)},this),I4d(this,this.YF.Rc()),this.YF.clear());this.cj.qh(!1);this.WC();J4d(this)};
q.iL=function(){I4d(this,zg(this.Pf.Ae(),function(a){return a.getId()},this));this.getContext().Sa.oD()};q.S_=function(){};q.hS=function(a){this.YF.isEmpty()?this.CMa():I4d(this,this.YF.Rc(),Lp(this.CMa,this,a));mcf(this)};
q.CMa=function(){Uf(function(){1==this.Ab.Fc()?WQd(this.cj,"Your video is processing. You may select it, but others will not be able to view it until it has finished processing."):WQd(this.cj,"Your videos are processing. You may select them, but others will not be able to view them until they have finished processing.")},100,this);null!=this.Ke?this.getContext().od.Vd(new u3("picasa",[this.Ke],{type:"album"}),Lp(function(a){(a=a.Ae()[0])&&Z3d(this.Pf)&&a.zJ(!0);this.fpa()},this),Lp(this.fpa,this),
!0):this.fpa()};q.yha=function(a){$5.ya.yha.call(this,a);this.Sa.addCallback(function(a){this.lRa&&0==a.hW()&&this.reset(1)},this)};var I4d=function(a,b,c){if(a.Ke){var d={parent:a.Ke};a.getContext().rd().Qb||(d.deleteParentIfEmpty="true");var f=new ag(void 0,a);f.addCallback(Lp(function(){c&&c()},a));bg(f,Lp(function(){},a));b=new K3("delete","picasa",b,d);a.Qb.OZa(b,f,!0,!0)}};q=$5.prototype;
q.setActive=function(a,b){$5.ya.setActive.call(this,a,b);this.mL&&On(this.mL,a);this.Ig.setActive(a);On(this.Ig.ta(),a)};q.kt=function(){if(this.Hl.iA)try{return this.Hl.iA.ta().focus(),!0}catch(a){}return!1};q.start=function(){$5.ya.start.call(this);this.Qj&&this.Sa.addCallback(function(a){a.VM(this.Qj)},this)};q.reset=function(){$5.ya.reset.call(this);J4d(this)};q.fpa=function(){this.Pf&&this.Pf.Ae().length&&this.cj.qh(!0);this.Qj&&this.Sa.addCallback(function(a){a.Lr(this.Qj)},this)}; var J4d=function(a){Uf(function(){this.Sa.addCallback(function(a){On(this.Qj.ta(),!1);a.VM(this.Qj)},this)},50,a);A4d(a,!0);WQd(a.cj,"");a.Ig.Sa.oIa(!0)};
var K4d=function(a){BJ.call(this,a);this.Km=new Sf(500);this.getHandler().Ja(this.Km,"tick",this.Ijd);this.Op=0};t(K4d,BJ);q=K4d.prototype;q.Na=function(){K4d.ya.Na.call(this);this.getHandler().Ja(this,"change",this.Hjd).Ja(this.ta(),"mouseout",Lp(this.kUb,this,!1)).Ja(this.ta(),"mouseover",Lp(this.kUb,this,!0))};q.Hjd=function(){this.getValue()!=this.Op&&(this.Km.enabled?this.Km.stop():this.dispatchEvent(new A("gj")),this.Km.start(),this.dispatchEvent(new A("fj")))}; q.kUb=function(a){Pn(this.ta(),"a-Gd-u",a)};q.Ijd=function(){this.Op=this.getValue();this.Km.stop();this.dispatchEvent(new A("hj"))};q.JJ=function(a){this.Op=a;K4d.ya.JJ.call(this,a)};
var b6=function(a,b,c){I5.call(this,a,b,c);a=Hf(Jf(this.Qr.getUrl()),"authuser",a.rd().Km).toString();this.Pma=new SY(a)};t(b6,I5);q=b6.prototype;q.Y2a=!1;q.Wea=!0;q.dc=!1;q.YK=function(){return this.Xd.getQuery()||"photos"};q.p1=function(a){a=new L4d(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);a.qh(!1);return a};
q.oT=function(){var a=this.Ea();Ce(Be.ia());this.Sx=a.Pa("div","a-B a-Kb");this.Tx=a.Pa("div","a-Kb-e d-k-l");this.lN=a.Pa("div","a-Kb-CA6U6b");this.Tx.appendChild(this.lN);this.Sx.appendChild(this.Tx);this.qVa(this.Sx);this.aU(!1);return this.Sx};q.qVa=function(a){var b=this.Ea();this.Sx.appendChild(b.Pa("br"));this.Qb=Tt(p4("//ssl.gstatic.com/docs/picker/images/camera-v1.png","Take snapshot"),b);this.Qb.Pa();a.appendChild(this.Qb.ta())};q.lUb=function(a){return a.Xxd};
q.OW=function(){var a;a=this.lN;if(!wZb||!pda&&0>Xa(OJ,"10.1")||0>Xa(OJ,"11"))this.Lla(!0),a=null;else{var b=this.Pma;Eed(b,"FLASH");var c=this.getContext().Ab;if(!c.jl)throw Error("Lh");c.addCallback(Lp(this.q2a,this,a));a=Ied(b);x(this,a);a.p8=!1;a.roa=!0}a=this.XM=a;this.Sa=new ag;this.Sa.By(a);this.Pf=K5(this);this.ima();this.cj.qh(!1)};
q.Na=function(){b6.ya.Na.call(this);this.Qb&&(this.Qb.Na(),this.getHandler().Ja(this.Qb,"action",this.VKc));var a=this.Ea().La(),a=sc(a)||window;this.getHandler().Ja(a,"resize",this.ima)};q.n_a=function(){return oe(this.Qb.ta()).height};
q.Fyb=function(){var a=ze(this.Sx),b=de(this.Tx);a.width-=b.left+b.right;a.height-=b.top+b.bottom;b=Ae(this.Tx);a.width-=b.left+b.right;a.height-=b.top+b.bottom;a.height-=this.n_a();"standard"==this.Xd.Ra()?(b=Math.floor(2.5+.5625*(a.width-10)),b>a.height?a.width=Math.floor(10+4/3*(a.height+(a.height-10)/3)):a.height=b):a.width<2*a.height+10?a.height=Math.floor((a.width-10)/2):a.width=Math.floor(2*a.height+10);return a};q.xHa=function(){this.aU(!1);this.cj.qh(!1);this.Wea=!0};
q.yHa=function(){!Ub(this.Pf.Ab)||this.Y2a&&this.cj.qh(!0);this.Wea=!1;this.aU(!0)};q.JAc=function(){this.Y2a=!0;this.Wea||(this.aU(!0),this.cj.qh(!0))};q.q2a=function(a,b){var c="squareCrop=",c="standard"==this.Xd.Ra()||"video"==this.Xd.Ra()?c+"false":c+"true";Hed(this.Pma,a,this.lUb(b),c,!0)};
q.hS=function(a){v(this.Pf.Ae(),function(a){a.setAttribute("c",{top:0,right:1,bottom:1,left:0})});var b=this.getContext().od;"profile"==this.Xd.Ra()?b.xk(37):"standard"==this.Xd.Ra()&&b.xk(38);b6.ya.hS.call(this,a)};q.yha=function(){this.Wea||this.cj.qh(!0)};q.S_=function(a,b){b6.ya.S_.call(this,a,b);var c=this.Pf;Uf(c.kda,0,c)};q.VKc=function(){this.Dm("captureImage")&&this.Qb.Ta(!1)};var c6=function(a){return(a=a.Tx.childNodes[1])?a.firstChild:null};
b6.prototype.ima=function(){var a=this.Fyb();if(0>=a.width||0>=a.height)Uf(Lp(this.ima,this),10);else{a.width=Math.floor(a.width);a.height=Math.floor(a.height);var b=this.Tx;le(b,a);var c=c6(this);if(c){var d=Zd(c),f=Math.floor(d.y)-d.y;Pd(b,"left",Math.floor(d.x)-d.x+"px");Pd(b,"top",f+"px");c.width=a.width;c.height=a.height}this.kIb(a)}};
b6.prototype.kIb=function(a){if(this.Qb){var b=ze(this.Qb.ta()),b="standard"==this.Xd.Ra()?Math.floor((4/3*a.height-b.width)/2):Math.floor((a.height-b.width)/2),b=Math.floor(.5*a.width)-b;this.Qb.ta().style.left=(My.Bo()?1:-1)*b+"px";this.Qb.ta().style.top="10px"}};var M4d=function(a){a.Lla(!1);Uf(Lp(a.Lla,a,!0),1E3,a);a.gOa()};
b6.prototype.gOa=function(){var a=c6(this);a&&a.addListener&&a.reset&&a.setAllowAddingFiles?(d6(this,"Camera.Muted",this.xHa),d6(this,"Camera.Unmuted",this.yHa),d6(this,"Snapshot.Ready",this.JAc),d6(this,"uncaughtError",this.zsa),this.Dm("setCameraMode",this.Xd.getOption("vWidth")||0,this.Xd.getOption("vHeight")||0,this.Xd.getOption("vFps")||0,this.Xd.getOption("vMaxBytes")||0),this.Dm("startCamera")):Uf(this.gOa,100,this)};
var d6=function(a,b,c){var d=a.Ea().getWindow(),f="flash"+a.Xd.getOption("type")+b.split(".").join("");d[f]=Lp(c,a);c6(a).addListener(b,f)};q=b6.prototype;q.setActive=function(a,b){b6.ya.setActive.call(this,a,b);a?M4d(this):(this.aU(!1),this.Dm("stopCamera"))};q.start=function(){this.Dm("uploadImage")&&this.Qb&&(this.Qb.Ta(!1),this.Lla(!1))};q.vB=function(a){b6.ya.vB.call(this,a);this.setVisible(!0);M4d(this)};
q.reset=function(){this.Pf.reset();this.XM.reset();this.Dm("reset");this.cj.qh(!1);this.Y2a=!1;this.aU(!1);this.setVisible(!1)};q.setVisible=function(a){var b=this.ta();this.dc=a;b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px"};
q.Lla=function(a){var b=this.Ea(),c="<p>Unable to find Flash Player "+((pda?"11":"10.1")+(". Please install Flash Player or upgrade your Flash Player to Flash "+((pda?"11":"10.1")+' or greater <a href="http://get.adobe.com/flashplayer" target="_blank">here</a>.</p>'))),d=this.lN;b.hb(d);a&&!c6(this)&&(b.appendChild(d,cd(b,c)),wZb||(a=this.Ea().Pa("object",{type:"application/x-shockwave-flash",width:"100%",height:"60%"}),this.lN.appendChild(a)))};
q.zsa=function(){this.Ea();Rc(this.lN,"Flash Player has crashed. Please upgrade your Flash Player to the latest version.");var a=c6(this);a&&On(a,!1);this.aU(!1);this.cj.qh(!1)};q.aU=function(a){this.Qb&&(this.Qb.setVisible(a),a&&Ub(this.Pf.Ab)&&!this.Wea?this.Qb.Ta(!0):this.Qb.Ta(!1))};q.Dm=function(a,b){var c=c6(this);if(c&&c[a])try{return c[a].apply(c,ub(arguments,1)),!0}catch(d){this.zsa(d)}return!1};
var e6=function(a,b,c){b6.call(this,a,b,c);this.yQ=new Sf(100);this.getHandler().Ja(this.yQ,"tick",Lp(this.Mma,this));this.Zma=a.rd().Sx||9E5;this.p_=new Sf(this.Zma);this.getHandler().Ja(this.p_,"tick",Lp(this.UGc,this));this.iaa=new Sf(100);this.getHandler().Ja(this.iaa,"tick",Lp(this.HDc,this));this.yja={};this.ana=[];this.sA=new F7g(a);x(this,this.sA)};t(e6,b6);q=e6.prototype;q.dJa=!1;q.Pz=!1;q.bOa=!1;q.wcb=100;q.aua=0;q.Sb="a-Kb-A2a";
q.qVa=function(){var a=this.Ea();this.Ag=a.Pa("div","a-Kb-ea "+this.Sb+" d-k-l");this.Km=new Ot("Start over",a);this.Km.Pa();Qn(this.Km.ta(),"a-Za-k0-uoa");var b=N4d(this,"a-Kb-vk-m","Play");this.Vb=new Ot(b,a);this.Vb.Pa();b=N4d(this,"a-Kb-OO-m","Record");this.Ko=Tt(b,a);this.Ko.Pa();b=N4d(this,"a-Kb-OO-TF-m","Recording");this.uh=Tt(b,a);this.uh.Pa();this.Db=Tt("Reconnect",a);this.Db.Pa();b=N4d(this,"a-Kb-TF-m","Stop");this.Op=new Ot(b,a);this.Op.Pa();this.Ab=new K4d;this.Ab.uja=!0;this.Ab.Pa();
b=f6(0);this.$b=new yo(b,null,a);this.$b.Pa();this.$b.Bm(32,!1);this.Vk=new yo(b,null,a);this.Vk.Pa();this.Vk.Bm(32,!1);this.mL=new yo(null,null,a);this.mL.Ab("a-Kb-Am-c d-k-l");this.mL.Pa();b=a.Pa("div","a-n-WY d-k-l");this.mL.ta().appendChild(b);for(b=0;5>b;b++){var c=a.Pa("div","a-Kb-Am-Bs d-k-l");Pn(c,"a-Kb-Am-Bs-qsa",4==b);this.mL.ta().appendChild(c);this.ana.push(c)}this.Ag.appendChild(this.Vb.ta());this.Ag.appendChild(this.Ko.ta());this.Ag.appendChild(this.uh.ta());this.Ag.appendChild(this.Db.ta());
this.Ag.appendChild(this.Op.ta());this.Ag.appendChild(this.Ab.ta());this.Ag.appendChild(this.$b.ta());this.Ag.appendChild(this.Vk.ta());this.Ag.appendChild(this.mL.ta());this.Sx.appendChild(this.Ag);N3e(this.cj,this.Km);this.nA=a.Pa("div","a-Za-zu-sc a-Za-v-Qd",a.Pa("div","d-k-l",a.Pa("div","a-Za-m d-k-l"),a.Pa("div","a-Za-sc d-k-l","Connecting...")));a.Ep(this.nA,this.cj.fb("a-Za-zu-sc"))};q.Pa=function(){e6.ya.Pa.call(this);Qn(this.ta(),"a-k0")};
var N4d=function(a,b,c){var d=a.Ea();a=d.Pa("div");b=d.Pa("span","a-Kb-m "+b);c=d.Pa("span","b-c-ka",c);a.appendChild(b);a.appendChild(c);return a},O4d=function(a){var b={parent:a.lp.vt(),deleteParentIfEmpty:"true"},b=new K3("delete","picasa",[a.lp.getId()],b);a.sA.OZa(b,void 0,!0,!0);a.lp=void 0};
e6.prototype.Na=function(){e6.ya.Na.call(this);this.Km.Na();this.mL.Na();this.Vb.Na();this.Ko.Na();this.uh.Na();this.Db.Na();this.Op.Na();this.$b.Na();this.Vk.Na();this.Ab.Na();this.getHandler().Ja(this.Km,"action",this.wvc).Ja(this.mL,"action",this.yvc).Ja(this.Vb,"action",this.zvc).Ja(this.Ko,"action",this.Avc).Ja(this.uh,"action",this.ZAb).Ja(this.Db,"action",this.Bvc).Ja(this.Op,"action",this.q1a).Ja(this.Ab,"fj",this.axc).Ja(this.Ab,"gj",this.bxc).Ja(this.Ab,"hj",this.cxc);this.kN&&this.getHandler().Ja(this.kN,
"status",this.HIc);this.getContext().od.xk(44)};var f6=function(a){a=Math.floor(a/1E3);var b=Math.floor(a/60);a-=60*b;return(10>b?"0":"")+b+":"+(10>a?"0":"")+a},Qlg=function(a,b){return ydg(f6(a)+" / ",Bdg("b",{},f6(b)))};q=e6.prototype;q.n_a=function(){return oe(this.Ko.ta()).height};
q.Fyb=function(){var a=ze(this.Sx),b=de(this.Tx);a.width-=b.left+b.right;a.height-=b.top+b.bottom;b=Ae(this.Tx);a.width-=b.left+b.right;a.height-=b.top+b.bottom;a.height-=this.n_a();3*a.width<4*a.height?a.height=Math.floor(3*a.width/4):a.width=Math.floor(4*a.height/3);return a};q.lUb=function(a){return a.Yxd};
q.q2a=function(a,b){e6.ya.q2a.call(this,a,b);this.kN=new E2d(this.Pma.jg,"rtmp");var c=b.sod||this.Qr.getUrl(),d=this.getContext().rd().Km;ia(d)&&(c+="?authuser="+d);this.kN.$b=c;if(c=My.Ab)d={},d.Authorization="Bearer "+c,this.kN.jxa(d)};q.wvc=function(){this.Dm("endVideo");this.Dm("cancelVideo");this.Dm("startCamera");R4d(this);this.y2=0;g6(this,"a-Kb-A2a")};q.yvc=function(){this.Dm("showAudioSettings")};q.zvc=function(){this.aua=0;this.Dm("playVideo",0);this.getContext().od.xk(41)};
q.q1a=function(){T4d(this);this.Dm("endVideo")};q.Avc=function(){this.Dm("getVideo");this.p_.start();g6(this,"a-Kb-OO");S4d(this,0);this.yQ.start();this.Ab.JJ(0);this.getContext().od.xk(42);try{this.uh.ta().focus()}catch(a){}};q.Bvc=function(){0<this.y2?g6(this,"a-Kb-Tdb"):(g6(this,"a-Kb-A2a"),this.Dm("startCamera"));this.Dm("startConnection",this.qna)};q.ZAb=function(){"a-Kb-OO"==this.Sb&&(this.p_.stop(),T4d(this),this.Dm("stopVideo")&&this.uh.Ta(!1))};
q.iL=function(){this.dJa=!0;this.lp&&O4d(this);this.getContext().Sa.oD();this.getContext().od.xk(39)};q.axc=function(){"a-Kb-dia"!=this.Sb&&"a-Kb-Tdb"!=this.Sb||S4d(this,this.Ab.getValue())};q.bxc=function(){"a-Kb-dia"==this.Sb&&this.q1a()};q.cxc=function(){if(this.Pz&&("a-Kb-dia"==this.Sb||"a-Kb-Tdb"==this.Sb)){"a-Kb-dia"==this.Sb&&this.q1a();var a=this.Ab.getValue();this.aua=a;S4d(this,a);this.Dm("playVideo",Math.floor(this.Ab.getValue()/1E3));this.getContext().od.xk(43)}};
q.xHa=function(a){e6.ya.xHa.call(this,a);g6(this,this.Sb)};q.yHa=function(a){e6.ya.yHa.call(this,a);g6(this,this.Sb)};q.zsa=function(a){e6.ya.zsa.call(this,a);this.Pz=!1;g6(this,"a-Kb-wa")};q.GAc=function(){this.Pz=!1;"a-Kb-OO"==this.Sb&&(T4d(this),this.Dm("stopVideo"));g6(this,"a-Kb-uf")};
q.HAc=function(){"a-Kb-OO"==this.Sb&&(T4d(this),this.Dm("stopVideo"));this.Pz=!1;switch(this.Sb){case "a-Kb-A2a":this.g3&&(R4d(this),this.Dm("startCamera"));g6(this,"a-Kb-A2a");break;case "a-Kb-OO":case "a-Kb-Tdb":case "a-Kb-dia":g6(this,"a-Kb-uf")}};q.IAc=function(){this.Pz=!0;"a-Kb-A2a"==this.Sb&&this.dc&&this.Dm("prepareVideo");g6(this,this.Sb)};q.KAc=function(a){this.Ye=a.thumbnail;this.lp&&P4d(this)};q.LAc=function(a){a=a.duration_msecs;0<a&&(this.y2=a,Q4d(this));g6(this,this.Sb)};
q.MAc=function(){var a=this.kN;if(!a.Sa)throw Error("ng");var b=new Wf;a.Ba.Ja(b,"success",a.NGc).Ja(b,"error",a.b2a);b.send(a.Sa,"GET")};q.NAc=function(){this.Pz&&(T4d(this),this.Ab.getValue()>this.y2-1E3&&this.Ab.JJ(0),g6(this,"a-Kb-Tdb"))};q.OAc=function(a){!this.dc||"a-Kb-Tdb"!=this.Sb&&"a-Kb-dia"!=this.Sb||(void 0!=a.offset_msecs&&0<=a.offset_msecs&&(this.aua=a.offset_msecs),S4d(this,this.aua),this.yQ.start(),g6(this,"a-Kb-dia"))};
q.PAc=function(){"a-Kb-A2a"==this.Sb&&this.dc&&(this.bOa=!0,g6(this,this.Sb))};q.QAc=function(){this.Pz&&("a-Kb-OO"==this.Sb&&(Q4d(this),S4d(this,0)),g6(this,"a-Kb-Tdb"))};q.RAc=function(a){a=a.level;a=(Math.log(a/100)/Math.log(10)+2)/2;for(var b=0;5>b;b++)Pn(this.ana[b],"a-Kb-Am-Bs-Pd",.2*(b+1)<=a)};q.HDc=function(){"a-Kb-OO"!=this.Sb&&"a-Kb-A2a"!=this.Sb||!this.dc||this.Dm("getVolumeLevel")};q.UGc=function(){"a-Kb-OO"==this.Sb&&this.ZAb()};
q.HIc=function(a){if("a-Kb-ii"==this.Sb){if(a=this.kN.dG()){var b={};b.name=this.swa;b.sortIndex=0;b=new Vw(b);b.Ii=new M1d("0");this.lp=b=this.Pf.E9(b,a);this.dJa?O4d(this):this.Ye.length&&P4d(this)}}else this.Pz||(a.url?(this.qna=a.url,this.Dm("startConnection",a.url)):Uf(function(){this.wcb*=2;R4d(this)},this.wcb,this))};
q.kIb=function(a){me(this.Ag,a.width);var b=ye(this.Sx);Pd(this.Ag,"top",a.height+10+b.top+"px");var c=Zd(c6(this)),c=Math.floor(c.x)-c.x,d=ze(this.Sx);Pd(this.Ag,"left",Math.floor((d.width-a.width+b.left+b.right)/2)-c+"px");zy(this.Ag).width<a.width&&me(this.Ag,a.width+2);Qn(this.$b.ta(),"a-Kb-l3");Qn(this.$b.ta(),"d-k-l");Qn(this.Vk.ta(),"a-Kb-l3");Qn(this.Ab.ta(),"d-k-l");b=oe(this.mL.ta());c=de(this.mL.ta());My.Bo()?(b=a.width-b.width-c.right,Pd(this.mL.ta(),"right",b+"px")):(b=a.width-b.width+
c.left,Pd(this.mL.ta(),"left",b+"px"));c=Ae(this.$b.ta());b=oe(this.$b.ta());b.width+=c.left+c.right;c=Ae(this.Op.ta());d=oe(this.Op.ta());d.width+=c.left+c.right;var c=Ae(this.Vb.ta()),f=oe(this.Vb.ta());f.width+=c.left+c.right;c=new sJ;this.yja["a-Kb-Tdb"]=c;var h=new bF(this.Km.ta(),300,bo);c.add(h);b=a.width-b.width-Math.max(d.width,f.width);b=new YE(this.Ab.ta(),0,b,300,co);c.add(b);b=new bF(this.Ab.ta(),300,bo);c.add(b);b=new sJ;this.yja["a-Kb-OO"]=b;a=a.width/2;c=this.uh.ta();d=ye(c);f=de(c);
h=Ae(c);c=zy(c).width/2-h.right+f.right+d.right;a=new WE(this.Vk.ta(),[a,0],[c+a,0],300,co);b.add(a)};
q.gOa=function(){var a=c6(this);if(a&&a.addListener&&a.startCamera){if(d6(this,"Camera.Muted",this.xHa),d6(this,"Camera.Unmuted",this.yHa),d6(this,"uncaughtError",this.zsa),d6(this,"netErrorPermanent",this.GAc),d6(this,"netErrorTemporary",this.HAc),d6(this,"netSuccess",this.IAc),d6(this,"thumbnailReady",this.KAc),d6(this,"videoDuration",this.LAc),d6(this,"videoFinalize",this.MAc),d6(this,"videoPlayComplete",this.NAc),d6(this,"videoPlayStart",this.OAc),d6(this,"videoStart",this.PAc),d6(this,"videoStop",
this.QAc),d6(this,"volumeLevel",this.RAc),this.getContext().rd().sA&&this.Dm("toggleDebugConsole"),this.Dm("setCameraMode",this.Xd.getOption("vWidth")||0,this.Xd.getOption("vHeight")||0,this.Xd.getOption("vFps")||0,this.Xd.getOption("vKeyFrame")||0,this.Xd.getOption("vMaxBytes")||0),this.dJa||"a-Kb-dia"!=this.Sb&&"a-Kb-Tdb"!=this.Sb)this.bOa=this.Pz=!1,this.Dm("reset"),g6(this,"a-Kb-A2a"),this.Dm("startCamera")&&R4d(this)}else Uf(this.gOa,100,this)};
q.reset=function(){this.getContext().We().dE();this.Pz&&(this.Dm("endVideo"),this.Dm("cancelVideo"));this.Dm("stopCamera");this.Lla(!1);this.Pz=!1;g6(this,"a-Kb-A2a");this.p_.stop();this.setVisible(!1)};q.setVisible=function(a){e6.ya.setVisible.call(this,a);a?this.iaa.start():this.iaa.stop()};
var P4d=function(a){var b=a.getContext(),c={imageData:a.Ye,videoThumbnailOnly:!0};b.od.Vd(new K3("importPhoto","picasa",[a.lp.getId()],c),Lp(a.ona,a),Lp(a.ona,a))},Q4d=function(a){tJ(a.Ab.$,a.y2);a.Ab.SQ=a.y2/10;a.Ab.uG=a.y2/10};e6.prototype.aU=function(){g6(this,this.Sb)};e6.prototype.start=function(){this.lp=void 0;this.dJa=!1;this.Ye="";this.Dm("finalizeVideo")&&(this.Pz=!1,this.Lla(!1),g6(this,"a-Kb-ii"));this.getContext().We().Xgb("1",1)};
var R4d=function(a){a.Pz=!1;a.bOa=!1;a.mna=(new gn(1)).format(new dn);a.Pf.mL=a.mna;var b;b=Wa();b=r4(BUd(b),aVd);a.swa=b+".flv";b=new wY(a.swa);var c=a.Pf.Aga(b);c.album_abs_position="0";c.fastTranscode="true";c.height=""+(a.Xd.getOption("vHeight")||360);c.width=""+(a.Xd.getOption("vWidth")||480);b=a.kN;var d=a.swa,c=new Ze(c);a=new Wf;a.Vb=!0;b.Ba.Ja(a,"success",b.pKc).Ja(a,"error",b.t2a);d={protocolVersion:"0.8",createSessionRequest:{fields:[{external:{name:"file",filename:d}}]}};d.createSessionRequest.fields[0].external[b.$]=
{};c&&Qcd(d,c);c={};Zb(c,b.Ab);Zb(c,Ncd("scotty "+b.$));d=Rf(d);a.send(b.$b,"POST",d,c)},S4d=function(a,b){a.Be=Wa()-b;a.Mma()},T4d=function(a){a.yQ.stop();"a-Kb-OO"==a.Sb&&(a.y2=Wa()-a.Be)};e6.prototype.ona=function(){if(this.lp){var a={};a.name=this.mna;a.serviceId=this.lp.$;a.sourceId=this.lp.Ag;a.id=this.lp.vt().split(".").pop();a=new Vw(a);a.zJ(!0);a.$b=1;a=[this.lp,a];this.getContext().od.Xp(a);this.getContext().We().dE();this.getContext().Sa.Sl([this.lp]);this.getContext().od.xk(40)}};
var g6=function(a,b){var c=c6(a);if(c&&c.addListener&&c.startCamera&&ve(c)){("a-Kb-OO"==a.Sb&&"a-Kb-Tdb"==b||"a-Kb-A2a"==a.Sb&&"a-Kb-OO"==b||"a-Kb-uf"==a.Sb&&"a-Kb-Tdb"==b)&&a.yja[b].play(!0);a.Sb=b;switch(a.Sb){case "a-Kb-A2a":a.Km.setVisible(!1);a.mL.setVisible(!0);a.Vb.setVisible(!1);a.Ko.setVisible(!0);a.uh.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.Ab.setVisible(!1);a.$b.setVisible(!1);a.Vk.setVisible(!1);On(a.nA,!a.Pz);a.Ko.Ta(a.Pz&&!a.Wea&&a.bOa);a.cj.qh(!1);break;case "a-Kb-OO":a.Km.setVisible(!1);
a.mL.setVisible(!0);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.uh.setVisible(!0);a.Db.setVisible(!1);a.Op.setVisible(!1);a.Ab.setVisible(!1);a.$b.setVisible(!1);a.Vk.setVisible(!0);On(a.nA,!1);a.uh.Ta(!0);a.cj.qh(!1);break;case "a-Kb-Tdb":a.Km.setVisible(a.Pz);a.mL.setVisible(!1);a.Vb.setVisible(!0);a.Ko.setVisible(!1);a.uh.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.Ab.setVisible(!0);a.$b.setVisible(!0);a.Vk.setVisible(!1);On(a.nA,!a.Pz);a.Vb.Ta(a.Pz);a.cj.qh(a.Pz);break;case "a-Kb-dia":a.Km.setVisible(!0);
a.mL.setVisible(!1);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.uh.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!0);a.Ab.setVisible(!0);a.$b.setVisible(!0);a.Vk.setVisible(!1);On(a.nA,!1);a.cj.qh(!0);break;case "a-Kb-ii":case "a-Kb-wa":a.Km.setVisible(!1);a.mL.setVisible(!1);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.uh.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.Ab.setVisible(!1);a.$b.setVisible(!1);a.Vk.setVisible(!1);On(a.nA,!1);a.cj.qh(!1);break;case "a-Kb-uf":a.Km.setVisible(!1),
a.mL.setVisible(!1),a.Vb.setVisible(!1),a.Ko.setVisible(!1),a.uh.setVisible(!1),a.Db.setVisible(!0),a.Op.setVisible(!1),a.Ab.setVisible(!1),a.$b.setVisible(!1),a.Vk.setVisible(!1),On(a.nA,!1),a.cj.qh(!1)}a.Ag.className="a-Kb-ea "+a.Sb+" d-k-l";a.Mma()}else a.Km.setVisible(!1),a.mL.setVisible(!1),a.Vb.setVisible(!1),a.Ko.setVisible(!1),a.uh.setVisible(!1),a.Db.setVisible(!1),a.Op.setVisible(!1),a.Ab.setVisible(!1),a.$b.setVisible(!1),a.Vk.setVisible(!1)};
e6.prototype.Mma=function(){switch(this.Sb){case "a-Kb-OO":var a=this.Vk.ta();oNa(a,Qlg(Wa()-this.Be,this.Zma));break;case "a-Kb-Tdb":var b=Math.min(this.Ab.getValue(),this.y2),a=this.$b.ta();oNa(a,Qlg(b,this.y2));break;case "a-Kb-dia":b=Math.min(Wa()-this.Be,this.y2),a=this.$b.ta(),oNa(a,Qlg(b,this.y2)),this.Ab.JJ(b),this.aua=b}};
var o3e=function(a,b,c){M5.call(this,a,b,c)};t(o3e,M5);
o3e.prototype.oT=function(){var a=o3e.ya.oT.call(this),b=this.Ea(),c=b.Pa("div","a-tb-tc-i3-im-epa");a.appendChild(c);this.getContext().rd();var d=this.Xd.getOption("ytRecWidth"),f=this.Xd.getOption("ytRecHeight");d&&f&&(d=b.Pa("div","a-tb-tc-i3-im-nc","Recommended channel art size: "+(d+(" x "+f))),c.appendChild(d));if(d=this.Xd.getOption("ytMaxFileSize"))d=b.Pa("div","a-tb-tc-i3-im-nc","Max file size: "+(d+" MB")),c.appendChild(d);b=b.Pa("a","a-tb-tc-Ooa-mK-s","How to create channel art");c=Jf("https://support.google.com/youtube/?p=picker_channel_art"); Hf(c,"hl",My.$);b.href=c.toString();b.target="_blank";WQd(this.cj,rba(b));return a};o3e.prototype.YK=function(){return"youtubebanner"};
var U4d=function(){kd.call(this)};t(U4d,x3);U4d.prototype.Sa=function(){return T5};
U4d.prototype.uj=function(a,b,c){if("photos"==a.$){if(a.getOption("upload"))return new C4(b,a,new U5(b,a,c),[],c);if("edit"==a.getOption("mode"))return new W5(b,a,c)}else if("photo-curation"==a.$)return new O3d(b,a,c);var d=b.rd();if("upload"==a.$){if(!OQd(a))return null;d=a.getQuery();if(!d)return null;switch(d){case "videos":return new $5(b,a,c);case "profile":return new W5(b,a,c);case "youtubebanner":return new o3e(b,a,c);default:return Big(a,b.rd()),new W5(b,a,c)}}else{if("webcam"==a.$)return"video"==
(a.Ra()||"video")?d.o9?null:new e6(b,a,c):new b6(b,a,c);if("photo-upload"==a.$)return Big(a,b.rd()),new X5(b,a,c)}return null};var Big=function(a,b){if(b.nA&&!b.Qb){var c=a.getOption("data")||{};c.auto_create_album="default";BN(a,"data",c)}};vg(xg(E.ia(),"oppu"),U4d);

G("oppu");I();
}catch(e){_DumpException(e)}
try{
var Zrd=function(){return Y('<div class="nR">You entered a birthday that is after the date this account was created.</div>')},$rd=function(){return Y('<div class="nR">Please enter a valid birthday.</div>')},asd=function(){return Y('<div class="nR">Please fill in a complete birthday.</div>')},bsd=function(){return Y('<div class="nR">Please enter a four digit year.</div>')};H("sy900");
var F_=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);a=this.Ea();for(var b=new Bp(a),c=1;31>=c;c++){var d=new yp(""+c,c,a);b.ib(d,!0)}this.$=new jD("Day",b,this.Ea());Gp(this.$);this.Ab=new jD("Month",csd(this),this.Ea());Gp(this.Ab);this.Sa=new vx("Year",this.Ea())};t(F_,C);q=F_.prototype;q.aza=!0;q.Dhb=!0;q.Pa=function(){var a=this.Ea().Pa("div","G6");this.Kb(a);gsd(this,a);this.$.ta().setAttribute("aria-label","Birth day");this.Ab.ta().setAttribute("aria-label","Birth month")};
q.Di=function(){return!0};q.ra=function(a){F_.ya.ra.call(this,a);zc(a);gsd(this,a)};q.Na=function(){F_.ya.Na.call(this);On(this.Sa.ta(),this.aza);this.getHandler().Ja(this.Ab,"change",this.mL);this.getHandler().Ja(this.$.ta(),"mousedown",this.Qxc)};q.Qxc=function(){this.$.Km()};var dsd=function(a,b,c){switch(b){case "yta":b=Zrd;break;case "iyl":b=bsd;break;case "ef":b=asd;break;case "i":b=$rd;break;default:b=$rd}a.ha.uc(c,b)};F_.prototype.Yj=function(){return!qa(G_(this))};
F_.prototype.yZ=function(a){var b=D("cfa",this.ta());dsd(this,a,b)};
var G_=function(a){var b=a.Ab.getValue(),c=a.$.getValue(),d=a.Sa.getValue();if(!sa(b)||!sa(c))return"ef";var f=void 0;if(a.aza)if(d)if(Ha(d))if(2===d.length)a=(new dn).getFullYear(),f=100*Math.floor(a/100)+Za(d),5>a-f&&(f-=100);else{if(4!==d.length)return"iyl";f=Za(d)}else return"i";else if(a.Dhb)return"ef";if(0>b||12<=b)return"i";if(sa(f)){if(!(d=!(0<c&&c<=an(f,b)))){d=f;a=new dn(d,b,c);var h=new dn,d=!(d>=h.getFullYear()-130&&a<=h)}if(d)return"i"}else if(!(0<c&&c<=an(2E3,b)))return"i";d=new kl;
sa(f)&&Py(d,3,f);Py(d,2,b+1);Py(d,1,c);return d};F_.prototype.kl=function(){var a=G_(this);return qa(a)?null:a};
var esd=function(a,b,c,d){fsd(a,b);a.$.Wj(sa(c)?c.toString():"");a.Sa.qe(sa(d)?d.toString():"")},gsd=function(a,b){var c={d:a.$,M:a.Ab,y:a.Sa};v(Zz.ZY[3].split(/[^A-Za-z]+/),function(a){var f=c[a[0]];"y"==a[0]&&f?(this.ib(f,!1),this.Sa.yb(U(this.ha,w7,{OG:"Year",Cma:!0})),b.appendChild(f.ta())):f&&(this.ib(f,!1),f.render(b))},a);a.$.ta().setAttribute("maxlength",2);Qn(a.$.ta(),"BPa");Qn(a.$.ta(),"rK");Qn(a.$.ta(),"nj");Qn(a.$.ta(),"d-k-l");Qn(a.$.Ne().ta(),"CPa");Qn(a.$.Ne().ta(),"H6");Qn(a.Ab.ta(),
"DPa");Qn(a.Ab.ta(),"s3");Qn(a.Ab.ta(),"nj");Qn(a.Ab.ta(),"d-k-l");a.Sa.ta().setAttribute("maxlength",4);Qn(a.Sa.ta(),"EPa");Qn(a.Sa.ta(),"tI");Qn(a.Sa.ta(),"nj");Qn(a.Sa.ta(),"d-k-l");On(a.Sa.ta(),a.aza)},csd=function(a){var b=a.Ea(),c=new Bp(b);v(Zz.iBa,function(a,f){c.ib(new yp(a,f,b),!0)});return c};F_.prototype.mL=function(a){a=a.target.getValue();fsd(this,a)}; var fsd=function(a,b){a.Ab.Wj(b);var c=b?an(2E3,b):31,d=a.$.Ne();v(d.wu(),function(a){a.setVisible(a.getValue()<=c)},a);(d=a.$.getValue())&&d>c&&a.$.Wj(c);a.$.yQ=void 0};

G("sy900");I();
}catch(e){_DumpException(e)}
try{
H("sy901");
G("sy901");I();
}catch(e){_DumpException(e)}
try{
H("sy903");var $xd=function(a,b,c){b=Y;var d="<div>"+Y("Here are some tips on choosing a name:")+'</div><p class ="WA6yTc">',f;f=Y("If this is the name of a business:");d=d+f+'</p><p class="Zn1BN">';f="";var h=wA(new Z("{VIEWER_GENDER,select,female{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}male{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}other{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}}"),
{VIEWER_GENDER:c.Aa,PRODUCT_NAME:Ht(),START_LINK:'<a class="d-s" target="_blank" href="'+R(S(Jp(vjb({cY:1710691}))))+'">',END_LINK:"</a>"});f=Y(f+h);d=d+f+'</p><p class ="WA6yTc">';f=Y("If this is a nickname:");d=d+f+'</p><p class="Zn1BN">';f="";h=wA(new Z("{VIEWER_GENDER,select,female{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}male{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}other{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}}"),
{VIEWER_GENDER:c.Aa});f=Y(f+h);d=d+f+'</p><p class ="WA6yTc">';f=Y("Otherwise:");d=d+f+'</p><p class="Zn1BN">';f="";h=wA(new Z("{VIEWER_GENDER,select,female{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}male{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}other{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}}"),
{VIEWER_GENDER:c.Aa,PRODUCT_NAME:Ht()});f=Y(f+h);d=d+f+'</p><p class="K5OwQ">';f="";a=wA(new Z('{VIEWER_GENDER,select,female{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}male{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}other{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}}'),
{VIEWER_GENDER:c.Aa,NAME:r(a.name)});a=Y(f+a);return b(d+a+"</p>")},rGd=function(a,b,c){b="";a=wA(new Z('{VIEWER_GENDER,select,female{Using "{NAME}" as your name may not result in the best experience on Google.}male{Using "{NAME}" as your name may not result in the best experience on Google.}other{Using "{NAME}" as your name may not result in the best experience on Google.}}'),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});return Y(b+a)};
var W$f=function(a,b){Ld.call(this);this.Fa=a;this.hE=b;this.ha=V(this.Fa)};t(W$f,Ld);
var oug=function(a,b,c,d){a.Sa=new mz(a.Fa,void 0,!0);a.Sa.setTitle(a.ha.render(rGd,{name:d}));a.ha.uc(a.Sa.cb(),$xd,{name:d});a.Sa.Qd(lI(lI(new qx,{key:"ok",caption:"Proceed anyway"},!1,!1),{key:"cancel",caption:"Go back"},!0,!0));a.Sa.ud(!0);a.Sa.iwa="alertdialog";Z$f(a,a.Sa,b,c);a.Sa.setVisible(!0)},Z$f=function(a,b,c,d){yd(b,"dialogselect",function(a){a.key==b.xe.mL?(qp(this.Fa).Ha(K7f),d&&d.call(this)):(qp(this.Fa).Ha(J7f),c.call(this))},void 0,a)};

G("sy903");I();
}catch(e){_DumpException(e)}
try{
var p5d=function(a){return 13==a.charCode||3==a.charCode||32==a.charCode||13==a.keyCode||3==a.keyCode||32==a.keyCode},o5d=function(a,b,c){var d=ycf;(b=qa("gga")?b.fb("gga"):"gga")&&qr(qr(c,b,"click",function(){this.Ha(d)},!1,a),b,"keypress",function(a){p5d(a)&&this.Ha(d)},!1,a)},xcf=function(a){K(this,a,0,-1,null,null)};t(xcf,J);
var fef=function(a){return null!=w(a,30)?w(a,30):!0},s8e=function(){return Y("Please refer to me as")},O5d=function(){var a;a=""+('<div jsmodel="'+(function(){return!1},"l0aiUe")+'" jscontroller="'+(function(){return!1},"bxQvkc")+'" jsaction="rcuQ6b:rcuQ6b;" class="DB"><div class="ZKC0oc"><div class="mP jdb">Gender </div><div class="iq2PC"><div class="mxa MC"></div></div><div class="VUqKKc Pb42Wb"><label><input class="GSpspb Np" type="text" name="customGender" value="" maxlength="50" label="'+R(RLf())+
'" /></label></div><div class="lxa qH" aria-live="polite"></div></div><div class="hUY6if W5X9pb"><span class="z9tbOe"><label><div class="KG2KHe">'+s8e()+'</div></label></span><span><div class="ZKC0oc"><div class="xw8NMe MC"></div><div class="FDpqvc qH" aria-live="polite"></div></div></span><span><div class="YJhko zKe03d"></div></span></div></div>');return Y(a)},x5d=function(a){K(this,a,0,-1,null,null)};t(x5d,J);x5d.prototype.Ob=function(){return w(this,5)};
var y5d=function(a,b,c){a=""+('<div class="yj"><p class="dj">'+rn("jd","")(a,null,c)+'</p><p class="dj">Trying to use a nickname, maiden name, or a name in another script?  Add it to the Nickname part of your profile after sign up.</p>'+MKb(a,c)+"</div>");return Y(a)},z5d=function(a){var b=Y,c;c="";a='The name "'+(r(a.name)+'" cannot be used because it contains numbers, punctuation, or other symbols which are not allowed by our system.');c=Y(c+('<div class="yj"><p class="dj">'+a+"</p></div>"));return b('<div class="o-Ma-Csa">'+ c+"</div>")},V$g=function(a,b,c){return Y('<div class="yj"><p class="dj">'+rn("g","")(null,null,c)+"</p></div>")};H("lo_dlgs");
var J6d=new W(b5,56);new W(b5,57);new W(b5,58);new W(b5,59);var E6d=new W(b5,62),F6d=new W(b5,63),C6d=new W(b5,65),L6d=new W(b5,66);var j6=function(a,b,c){mz.call(this,a,void 0,!0);this.$=c};t(j6,mz);j6.prototype.Pa=function(){j6.ya.Pa.call(this);this.Qd(null);this.ud(!0);Qn(this.ta(),"rk");Qn(this.Bf(),"rk")};j6.prototype.Na=function(){j6.ya.Na.call(this);var a=this.fb("Dta");this.getHandler().yj(a,["click","keypress"],Lp(this.setVisible,this,!1));a=this.Bf();this.getHandler().yj(a,"click",Lp(this.setVisible,this,!1))};
var C5d=function(){return Y('<div class="Dta wq"></div>')};var o6d=function(a){var b="",c=wA(new Z("{VIEWER_GENDER,select,female{Add people you care about to see what they're sharing.}male{Add people you care about to see what they're sharing.}other{Add people you care about to see what they're sharing.}}"),{VIEWER_GENDER:a.Aa}),b=b+'<div class="Vea"><div class="yv">';a=a.RV?wA(new Z("{VIEWER_GENDER,select,female{Welcome to {PRODUCT_NAME_1}, {FIRST_NAME}}male{Welcome to {PRODUCT_NAME_2}, {FIRST_NAME}}other{Welcome to {PRODUCT_NAME_3}, {FIRST_NAME}}}"),{VIEWER_GENDER:a.Aa,
PRODUCT_NAME_1:Q(Ht()),FIRST_NAME:r(a.RV),PRODUCT_NAME_2:Q(Ht()),PRODUCT_NAME_3:Q(Ht())}):"Welcome to "+Q(Ht());b+=a;b+='</div><div class="KG">'+c+" "+Q(eV({caption:jA("Learn more")}))+"</div></div>";return Y(b)},p6d=function(){var a=Y,b='<div class="Tm">'+C5d()+Q(rvc({Wia:null,Jk:Oz("K4a")}))+'<div class="L4a LN"></div>',c;c=""+('<div class="y5 KN">'+Q(Mt({style:2,oa:Oz("J4a Z8b"),content:jA("Finish")}))+"</div>");c=Y(c);return a(b+c+"</div>")};
var q6d=function(a,b,c,d,f,h){mz.call(this,a,"Di-q",!0);this.Fa=a;this.zb=qp(a);this.ha=V(a);wi(a);this.Db=ny(a);this.Vb=d;this.mL=f;this.Ag=b;this.Qb=c;this.$=h||null;(a=this.Fa.Vc(yH))&&a.umd(this)};t(q6d,mz);
q6d.prototype.Pa=function(){q6d.ya.Pa.call(this);this.Qd(null);this.ep=!1;var a=this.mL;a.Aa=this.Db.kb().Tj();a.V1=this.Ag;this.ha.uc(sFa(this),o6d,a);a=this.mL;a.V1=this.Ag;this.setContent(this.ha.render(p6d,a));this.Sa=new RR(this.Fa,"LiteSignup.FriendsDialog",1,void 0,16);this.Sa.lL=!1;this.ib(this.Sa);a=this.fb("L4a");this.Sa.yb(a);if(a=this.fb("IPa")){var b=new qHd(this.Fa,this);this.ib(b);b.yb(a)}};
q6d.prototype.Na=function(){q6d.ya.Na.call(this);this.getHandler().Ja(this.ta(),"keydown",Lp(this.Tx,this));this.Ab=r6d(this,Lp(function(a){a.preventDefault();zcf(this,E6d)},this));bg(this.Fa.kd(eH).addCallback(this.y2,this),mg)};var r6d=function(a,b){var c=a.Ea().fb("J4a"),d=new Ot(null,a.Ea());a.ib(d,!1);d.yb(c);a.getHandler().Ja(d,"action",b);return d};q6d.prototype.Tx=function(a){var b=a.target;27!=a.keyCode||"SELECT"==b.tagName&&!b.disabled||(a.stopPropagation(),a.preventDefault(),zcf(this,F6d))};
q6d.prototype.Oe=function(){this.setVisible(!1)};q6d.prototype.show=function(){this.setVisible(!0)};var zcf=function(a,b){var c=new zs;c.Fm("friends-dialog");a.zb.Ha({Ub:b,qd:c});a.zb.It();a.setVisible(!1);a.uh();a.Ma()};q6d.prototype.uh=function(){var a=this.Ea().getWindow(),b=new Af(a.location.href),c=a.OZ_savedQueryParams;if(c)for(var d in c)Hf(b,d,c[d]);Ea(Ga(this.Qb))||Hf(b,"gpsrc",this.Qb);dy(a.location,b.toString())};q6d.prototype.y2=function(a){this.$c=a;this.$c.$k().addCallback(this.DP,this)};
q6d.prototype.DP=function(a){if(!this.$){this.$=new ag;var b=[a.wL(!1,!0),this.$c.c6a(),this.$c.$5a()];bg((new eq(b)).addCallback(function(b){b[0][0]&&(b=b[0][1].xp(),b=ec(b,function(b){return!a.Dv(b)}),this.$.By(b))},this),function(){this.$.By([])},this)}this.$.addCallback(function(b){var d=this.Vb,f;d&&(f=d.Xa(),d=d.Cd(),d=zB(f,void 0,void 0,this.mL.Lf,!1,!0,void 0,d),ib(b,d),f=[d],b=Qvc(new Pvc(a,0,8),b,f).G3a);d=this.Sa;1==b.length&&(Qn(lF(this),"Um"),this.Wd());qze(d,b,f);On(this.fb("K4a"),!1)}, this)};
qn("Ak","",0,function(){var a="",b="Join "+(Q(Ht())+" by creating your public profile");return Y(a+b)});var Acf=function(a){var b="";a="Your account is managed by "+(r(a.o3b)+".");b+=a+" Your administrator can access, modify or delete your data at any time without your permission. "+Q(Kt({cY:181692,product:"accounts",Ia:Oz("Pob")}));return Y(b)},Ecf=function(a,b,c){return Y(rn("Mk","")(a,null,c))};
qn("Mk","",0,function(a){var b=Y,c;c=Y('<div class="dfa Q0a">'+O5d()+"</div>");c='<div class="Bga bAa"><div class="u8 Ura"></div><div class="Tra"><div class="r8"></div>'+r(c)+(a.dla?Q(Y('<div class="bfa NMa"></div>')):"")+"</div>";var d="";a.gga&&(d+='<div class="SM"><div class="lP s8">'+Q(mD({oa:Oz("BB a7"),JH:Oz("picasa-checkbox-label")}))+'<label id="picasa-checkbox-label" class="CB">I understand the changes to Picasa Web Albums when I create a profile.</label><div class="t8 RM" aria-live="polite"></div></div></div>'); a=Y(d);return b(c+a+"</div>")});var Lcf=function(){return Y("Check the box above once you understand the Picasa changes.")};
var s6d=function(a,b,c){return Y('<div class="Ox"><span class="Hpb"></span><div class="yv">'+rn("Nk","")(a,null,c)+"</div>"+t6d(c)+"</div>")};qn("Nk","",0,function(){var a="",b="Create your public "+(Q(Ht())+" profile");return Y(a+b)});var t6d=function(a){return Y('<div class="KG">'+rn("Ok","")(null,null,a)+"</div>")};qn("Ok","",0,function(){return Y("Choose how you'll appear publicly across Google")});
var u6d=function(a,b,c){var d;b='<div class="Ox"><div class="yv">';if(a.Lf)switch(ua(d=a.V1)?d.toString():d){case 4:a="Create a "+(Q(Ht())+(" profile to leave a comment on "+(r(a.Lf)+"'s post")));b+=a;break;case 3:a="Create a "+(Q(Ht())+(" profile to start a hangout on "+(r(a.Lf)+"'s post")));b+=a;break;case 1:a="Create a "+(Q(Ht())+(" profile to +1 "+(r(a.Lf)+"'s post")));b+=a;break;case 2:a="Create a "+(Q(Ht())+(" profile to reshare "+(r(a.Lf)+"'s post"))),b+=a}else switch(ua(d=a.V1)?d.toString():
d){case 4:a="Create a "+(Q(Ht())+" profile to leave a comment on this post");b+=a;break;case 3:a="Create a "+(Q(Ht())+" profile to start a hangout on this post");b+=a;break;case 1:a="Create a "+(Q(Ht())+" profile to +1 this post");b+=a;break;case 2:a="Create a "+(Q(Ht())+" profile to reshare this post"),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},C8e=function(a,b,c){var d;b='<div class="Ox"><div class="yv">';switch(ua(d=a.V1)?d.toString():d){case 14:a="Create a public "+(Q(Ht())+" profile to write a review"),
b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},Mcf=function(a,b,c){var d;b='<div class="Ox"><div class="yv">';switch(ua(d=a.V1)?d.toString():d){case 15:a="Create a "+(Q(Ht())+" profile to get this offer"),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},v6d=function(a,b,c){var d;b='<div class="Ox"><div class="yv">';switch(ua(d=a.V1)?d.toString():d){case 7:a="Create a "+(Q(Ht())+(' profile to add photos to "'+(r(a.vv)+'"')));b+=a;break;case 6:a="Create a "+(Q(Ht())+(' profile to leave a comment on "'+
(r(a.vv)+'"')));b+=a;break;case 9:a="Create a "+(Q(Ht())+(' profile to hangout on "'+(r(a.vv)+'"')));b+=a;break;case 8:a="Create a "+(Q(Ht())+(' profile to invite more people to "'+(r(a.vv)+'"')));b+=a;break;case 5:a="Create a "+(Q(Ht())+(' profile to +1 "'+(r(a.vv)+'"')));b+=a;break;case 10:a="Create a "+(Q(Ht())+(' profile to RSVP to "'+(r(a.vv)+'"'))),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},O1e=function(a){a=a||{};var b="";a="Join "+(r(a.wDa)+(" on "+Q(Ht())));var c="Create a "+(Q(Ht())+
" profile to participate");return Y(b+('<div class="Ox"><div class="yv">'+a+'</div><div class="KG">'+c+"</div></div>"))},Ncf=function(){var a="",b="To sign in with Google, create a public "+(Q(Ht())+" profile");return Y(a+('<div class="Ox"><div class="yv">'+b+"</div></div>"))},w6d=function(){return Y('<div class="U9">Loading...</div>')},x6d=function(a,b,c){b=Y;var d='<div class="VMa">'+C5d()+(a.mPc?'<div class="UKa vX"></div>':""),f;f='<div class="Fpb nxa">'+Y('<div class="P8 u8"></div>')+'<div class="R8"><div class="AJ"><span class="Aib Gpb sna"></span>';
var h,k=jA('<span class="r8 hi"></span>');h="";k="My name is "+r(k);h=Y(h+k);f=f+h+(a.vub?"":Q(rn("w","")(null,null,c)))+"</div>";h=""+('<div class="zJ"><span class="hTKDHc">I am</span><span class="zib sq dfa">'+Q(O5d())+"</span></div>");h=Y(h);h=f+h;if(a.dla){h+='<div class="yJ">';f=jA("People you connect with on Google can see the month and day of your birthday.");var m=jA('<span class="yib Zj bfa"></span>'),k="",m="I was born on "+r(m),k=Y(k+m);h=h+(k+Q(Kt({cY:1350405,content:jA('<img class="R9" src="//ssl.gstatic.com/s2/oz/images/up/info-icon.png" alt="'+
R(f)+'" data-tooltip="'+R(f)+'" data-tooltip-align="t,c" />')})))}h+="</div></div>";a.u0c&&(f=wA(new Z("{VIEWER_GENDER,select,female{You can change your profile information at any time.}male{You can change your profile information at any time.}other{You can change your profile information at any time.}}"),{VIEWER_GENDER:c.Aa}),h+='<div class="mIJNUe">'+f+" "+Q(Kt({cY:1355890}))+"</div>");f=h;h="";a.gga&&(k="",m=Y("Picasa users, note:"),k=k+('<div class="kL Xla">'+m+'</div><div class="F2"><ul class="RDdAxe"><li class="tgKH7">People you\'ve shared albums with will see those pictures on your profile and in their Google Search results.</li><li class="tgKH7">Your name will show up on your photos, comments and tags instead of your Picasa nickname.</li><li class="tgKH7">Anyone you share an album with can see who else it\'s shared with and reshare it, unless you lock the album. '+
Q(Kt({cY:1321133,product:"picasa",Ia:Oz("X6a d-s")}))+"</li></ul></div>"),k=Y(k),h=h+('<div class="Q8">'+r(k)+'<div class="SM"><div class="lP s8">'+Q(mD({oa:Oz("BB a7"),JH:Oz("picasa-checkbox-label")}))+'<label id="picasa-checkbox-label" class="CB">I understand the changes to Picasa Web Albums when I create a profile.</label><div class="t8 RM"></div></div></div></div>'));h=Y(h);f=Y(f+(h+"</div>"));d+=f;f="";f=24==a.V1?f+"Join community":f+"Create";a='<div class="y5">'+Q(Mt({style:2,oa:Oz("TKa T9"), content:jA(f)}));a+=rn("qa","")(null,null,c)+"</div>";c=Y(a);return b(d+c+"</div>")};qn("qa","",0,function(){var a;a=""+Q(Mt({oa:Oz("SKa S9"),content:jA("Cancel")}));return Y(a)});
var d9d=function(a){K(this,a,"ucd",-1,null,null)};t(d9d,J);d9d.Zb="ucd";var Yqe=function(a,b){this.Fa=a;this.Ab=b;Hle(this)},Hle=function(a){cg(ri(a.Fa).Ou("/_/up/nextstep/",{sourceType:a.Ab},d9d),a.Sa,function(){},a)};Yqe.prototype.Sa=function(a){this.$=w(a,1)};var G5d=function(a){K(this,a,"osg.sgur",-1,null,null)};t(G5d,J);G5d.Zb="osg.sgur";G5d.prototype.RK=function(){return w(this,2)};var Ocf=function(a,b,c){return Y(rn("Pk","")(a,null,c))};qn("Pk","",0,function(a,b,c){a=""+('<div class="sy DB"><div class="Y0 dC" aria-live="polite"></div><div class="e6">Name'+(a.vub?"":rn("w","")(null,null,c))+"</div>"+(a.oY?Pcf(a)+Qcf()+Rcf(a):Rcf(a)+Qcf()+Pcf(a))+"</div>");return Y(a)});
var z5g=function(){return Y("First name")},A5g=function(){return Y("Last name")},Rcf=function(a){return Y(a.vub?'<div class="xs d-k-l"><label><input class="e5 Np" type="text" name="givenName" value="'+(a.Ql?R(a.Ql):"")+'" label="'+R(z5g())+'" /></label></div>':'<div class="uP2k5c d-k-l"><label>'+(a.Ql?r(a.Ql):"")+'<input class="e5 Np" type="hidden" name="givenName" value="'+(a.Ql?R(a.Ql):"")+'" label="'+R(z5g())+'" /></label></div>')},Pcf=function(a){return Y(a.vub?'<div class="Os d-k-l"><label><input class="v8 Np" type="text" name="familyName" value="'+
(a.su?R(a.su):"")+'" label="'+R(A5g())+'" /></label></div>':'<div class="A55HYc d-k-l"><label>'+(a.su?r(a.su):"")+'<input class="v8 Np" type="hidden" name="familyName" value="'+(a.su?R(a.su):"")+'" label="'+R(A5g())+'" /></label></div>')},Qcf=function(){return Y('<div class="Kia u5 d-k-l"></div>')},Scf=function(){return Y('<span class="Sua" aria-live="polite">This will be your name across all Google products</span>')};
var S5d=function(a,b,c){b='<div class="sy">'+(a.ueb?T5d(a,c)+'<div class="Y0 dC" aria-live="polite"></div>':"")+(a.oY?U5d(a)+V5d(a):V5d(a)+U5d(a));a.ueb||(b+=T5d(a,c)+'<div class="Tha">Your profile and +1\'s appear publicly in search, on ads, and across the web.'+kdf(pn(a,{url:jy("https://www.google.com/support/plus/bin/static.py?page=guide.cs&guide=1207011&answer=1186915&hl="+vn(c.locale)),Ia:Oz("lO")}))+'</div><div class="Y0 dC" aria-live="polite"></div>');return Y(b+"</div>")},T5d=function(a,b){var c=
'<div class="ixa Tha">',c=!a.hbb&&a.G_b?c+"Create a public profile and control how you appear.":c+("This will update your name in other Google products."+kdf(pn(a,{url:jy("https://www.google.com/support/profiles/bin/answer.py?answer=97703&hl="+vn(b.locale)),Ia:Oz("lO o-oa-Zdb")})));return Y(c+"</div>")},ldf=function(){return P("First name")},mdf=function(){return P("Last name")},V5d=function(a){return Y((a.Oya?'<div class="xs"><label><div class="Vra">'+r(ldf())+"</div>":"")+'<input class="e5 Np" type="text" name="givenName" value="'+
(a.Ql?R(a.Ql):"")+'" label="'+R(ldf())+'"/>'+(a.Oya?"</label></div>":""))},U5d=function(a){return Y((a.Oya?'<div class="Os"><label><div class="Vra">'+r(mdf())+"</div>":"")+'<input class="v8 Np" type="text" name="familyName" value="'+(a.su?R(a.su):"")+'" label="'+R(mdf())+'"/>'+(a.Oya?"</label></div>":""))},kdf=function(a){a=""+('<a href="'+R(S(a.url))+'" target="_blank" class="d-s'+(a.Ia?" "+R(a.Ia):"")+' Eya" title="'+Vma("Learn more")+'"></a>');return Y(a)},JHd=function(){return Y('<div class="Jka f4">Please fill in the name fields.</div>')};
var k6=function(a,b,c,d,f,h,k,m,p,u,z){C.call(this,T(a).Ea());this.xa=a;this.Tb=V(a);this.Qb=b;this.Km=c;this.Op=d;this.Ko=f;this.oY=h;this.Ql=((this.mL=k)?xng(m):m)||"";this.su=(this.mL?xng(p):p)||"";this.uh=u||"";this.lp=new i6(a,z);this.Sa=this.Ab=null;this.Ag=!1};t(k6,C);var X5d=/^[A-Z]*[., ]*$/,Y5d=/^[a-z]*[., ]*$/,Z5d=/^(.)(.*)$/,xng=function(a){a&&(X5d.test(a)||Y5d.test(a))&&(a=a.match(Z5d),a=a[1].toUpperCase()+a[2].toLowerCase());return a};
k6.prototype.Pa=function(){this.Kb(U(this.Tb,this.W_a(),{hbb:this.Qb,G_b:this.Km,ueb:this.Op,Oya:this.Ko,Ql:this.Ql,su:this.su,oY:this.oY,vub:this.mL}));this.Ab=$5d(this,"e5");this.Sa=$5d(this,"v8");this.Ab.qe(this.Ql);this.Sa.qe(this.su)};k6.prototype.W_a=function(){return S5d};k6.prototype.Di=function(){return!1};var $5d=function(a,b){var c=D(b,a.ta());c.value="";var d=new vx(void 0,a.Ea());a.ib(d,!1);d.yb(c);return d};
k6.prototype.Na=function(){k6.ya.Na.call(this);this.getHandler().Ja(this.Ab.ta(),["keypress","keyup"],this.Vb);this.getHandler().Ja(this.Sa.ta(),["keypress","keyup"],this.Vb);this.getHandler().Ja(this.Sa.ta(),"blur",this.$b);this.getHandler().Ja(this.Ab.ta(),"blur",this.$b);a6d(this);yDa()};k6.prototype.qb=function(){k6.ya.qb.call(this);BDa()};k6.prototype.reset=function(){this.Ab.qe(this.Ql);this.Sa.qe(this.su);this.jka()};
var a6d=function(a){for(var b=a;b;){if(!ve(b.ta()))return;b=b.getParent()}a.oY?a.Sa.rq():a.Ab.rq()};k6.prototype.Vk=function(a){switch(a){case "i":this.yZ(z5d);break;case "n":this.yZ(y5d);break;default:this.yZ(LKb)}};k6.prototype.Yj=function(){return this.XA().length&&this.cG().length?!0:(this.yZ(JHd),!1)};k6.prototype.yZ=function(a,b){b6d(this,!1);this.jka();var c=this.Xb?this.cG()+" "+this.XA():this.XA()+" "+this.cG(),c=U(this.Tb,a,{locale:"en-US",aaa:this.Qb,qf:this.uh||"",cUa:!!b,name:c});ndf(this).appendChild(c)};
k6.prototype.jka=function(){zc(ndf(this))};var ndf=function(a){return D("Y0",a.ta())},b6d=function(a,b){if(a.Db){var c=D("ixa",a.ta());On(c,b)}};k6.prototype.XA=function(){return Ia(this.Ab.getValue())};k6.prototype.cG=function(){return Ia(this.Sa.getValue())};k6.prototype.Vb=function(a){this.jka();b6d(this,!0);this.dispatchEvent(new A("Rn",a.target))};k6.prototype.$b=function(){this.Ag||this.Ql==this.XA()&&this.su==this.cG()||(this.lp.Ha(idf),this.Ag=!0)};
var odf=function(a,b,c,d,f,h,k,m){k6.call(this,a,b,!1,!0,!0,c,d,f,h,k,m)};t(odf,k6);q=odf.prototype;q.cQa=!1;q.W_a=function(){return Ocf};
q.Na=function(){odf.ya.Na.call(this);this.$=new gD(this.Ea());this.$.Fg(D("Kia",this.ta()));this.$.setPosition(2);this.$.setContent(this.Tb.render(Scf));hD(this.$,!1);iD(this.$,!0);this.ib(this.$);this.$.render();Qn(this.$.ta(),"MMa");xc&&(this.cQa=!0,a6d(this));this.getHandler().Ja(this.Ab.ta(),["focus","keypress","blur"],this.XLb);this.getHandler().Ja(this.Sa.ta(),["focus","keypress","blur"],this.XLb)};
q.yZ=function(a,b){this.jka();var c=!1;b&&(c=!0);var d=this.Xb?this.cG()+" "+this.XA():this.XA()+" "+this.cG(),c=U(this.Tb,a,{locale:"en-US",aaa:this.Qb,qf:this.uh,cUa:c,name:d});ndf(this).appendChild(c)};q.jka=function(){0!=ndf(this).children.length&&(zc(ndf(this)),this.$.Wd())};q.XLb=function(a){this.cQa||this.$.setVisible("blur"!=a.type);this.cQa=!1};
var pdf=function(a,b,c){A.call(this,a);this.Sa=b||null;this.$=c||null};t(pdf,A);var H5d=function(a){var b=Y,c;c='<div class="mP">Birthday ';var d;d=jA("People you connect with on Google can see the month and day of your birthday.");c+=Kt({cY:1350405,Ia:Oz("lO o-oa-Ydb"),content:jA('<img class="BBa d-k-l" src="//ssl.gstatic.com/s2/oz/images/up/info-icon.png" alt="'+R(d)+'" data-tooltip="'+R(d)+'" data-tooltip-align="t,l" />')})+"</div>";c=Y(c);return b('<div class="DB"><div class="xG cfa yG" aria-live="polite"></div>'+c+r(a.Dfc)+'<div class="kxa"></div></div>')},I5d=function(){return Y('<div class="xG">Please enter a four digit year.</div>')},
J5d=function(){return Y('<div class="xG">Please fill in a complete birthday.</div>')},K5d=function(){return Y('<div class="xG">Please enter a valid birthday.</div>')},L5d=function(){return Y('<div class="xG">You entered a birthday that is after the date this account was created.</div>')};
var M5d=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);this.$=new F_(this.Fa)};t(M5d,C);q=M5d.prototype;q.TFb=null;q.QFb=null;q.VFb=null;q.Pa=function(){this.Kb(U(this.ha,H5d,{Dfc:""}));var a=D("kxa",this.ta());this.ib(this.$,!1);this.$.render(a)};q.Di=function(){return!1};q.Yj=function(){this.Sa();var a=G_(this.$);if(!(a instanceof kl)){var b=D("cfa",this.ta());dsd(this.$,a,b);return!1}return!0};
var qdf=function(a,b){var c=D("cfa",a.ta());a.Sa();var d;switch(b){case "yta":d=L5d;break;case "iyl":d=I5d;break;case "ef":d=J5d;break;case "i":d=K5d;break;default:d=K5d}d=U(a.ha,d);c.appendChild(d);a.getHandler().yj(a.ta(),["keypress","keyup","change"],a.Sa)};M5d.prototype.Sa=function(){var a=D("cfa",this.ta());zc(a)};M5d.prototype.kl=function(){var a=G_(this.$);return qa(a)?null:a};M5d.prototype.reset=function(){this.Sa();esd(this.$,this.TFb,this.QFb,this.VFb)};
var n5d=function(a,b,c){return Y('<div class="tib CBa">'+m5d(a,0,c)+"</div>")},m5d=function(a,b,c){return Y(rn("ue","")(a,null,c))};qn("ue","",0,function(a,b,c){b='<div class="jxa yq">'+nv({Da:a.Da,ld:a.Bh,rA:!0,zr:!0},0,c)+'</div><div class="OR">';c="";c=a.Da?c+"Change photo":c+"Add your photo";b+=Tu({Ia:Oz("Sta PY d-k-l"),content:jA(c)});a.$Zb&&(b+='<div class="P0a">Help your friends recognize you.</div>');return Y(b+"</div>")});
var r5d=function(a,b,c,d,f,h,k){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);this.Sa=d||"";this.$=this.mL=null;this.Vb=$i(a);this.iJ=b;this.Qb=c;this.Ko=!!f;this.Ab=new i6(a,h);this.$b=!!k};t(r5d,C);q=r5d.prototype;q.Pa=function(){this.Kb(U(this.ha,n5d,{Da:this.Sa,Bh:this.iJ,$Zb:this.Qb}))};q.Di=function(){return!1};q.Na=function(){r5d.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.$2b);this.getHandler().Ja(this.ta(),"keypress",this.uh)};q.Cd=function(){return this.Sa};
q.$2b=function(){this.Fa.Sa.dispatchEvent(new A("el"));this.Ab.Ha(Ycf);this.$||(this.mL?(this.mL.setVisible(!0),this.Fa.Sa.dispatchEvent(new A("jG",this.mL)),s5d(this)):(this.$=this.Fa.kd(gz),bg(this.$.addCallback(this.Km,this),mg)))};var s5d=function(a){a.getHandler().Ja(a.mL,"hide",a.Ag)};r5d.prototype.Ag=function(){this.Fa.Sa.dispatchEvent(new A("kG"))};r5d.prototype.uh=function(a){p5d(a)&&this.$2b()};
r5d.prototype.Km=function(a){this.$=null;this.mL=a.open(rdf(this,a),Lp(this.Vk,this,a),"es-profile-signup");this.Fa.Sa.dispatchEvent(new A("jG",this.mL));s5d(this)};var rdf=function(a,b){var c;a.Ko?(c=b.Sm().setTitle(NX(b,Ume)).xs(NX(b,Vme)).kY("default").Wba(250,250).Gk("profilePhoto").Gk("horizNav").jf(new jN("profile")),c.jf(new bB),SNc(c)):c=b.f0a(void 0,a.$b).kY(lv({ld:a.iJ})+"-c");return c};
r5d.prototype.Vk=function(a,b){if("picked"==b.action){if(this.Sa=a.Ag(b)||"")this.Ab.Ha(Zcf),this.ha.uc(this.ta(),m5d,{Da:this.Sa,Bh:this.iJ,$Zb:this.Qb}),this.dispatchEvent(new A("dl",this));var c=b.docs;if(c=c&&0<c.length?c[0]:null)c=c.kansasVersionInfo,Ea(Ga(c))||hy(this.Vb,"/_/profiles/setversion",this,{vi:c})}};r5d.prototype.reset=function(){this.mL&&this.mL.setVisible(!1)};r5d.prototype.rb=function(){}; r5d.prototype.qb=function(){r5d.ya.qb.call(this);y(this.mL);this.$&&(this.$.cancel(),this.$=null)};
var c6d=function(a){K(this,a,0,-1,null,null)};t(c6d,J);c6d.prototype.kl=function(){return N(this,kl,3)};c6d.prototype.kb=function(){return N(this,hvc,5,1)};var u5=function(a,b,c,d,f,h,k,m){C.call(this,T(a).Ea());this.Fa=a;this.Vk=b;this.ha=V(this.Fa);this.Ab=new i6(a,d);this.Be=ri(a);b=wi(a);this.uh=new x5d(b.getData(50));b=new oS(b.getData(7));this.Km=!!w(b,4);this.lp=!!w(b,27);this.Sa=b.kb();this.Naa=w(b,24);var p=this.Sa.getName(),u=p&&ym(p)?ym(p):"",p=p&&KC(p)?KC(p):"",z=w(this.Sa,3)?w(this.Sa,3):"",F=this.Sa.Cd()?this.Sa.Cd():"";this.ima=2==this.Naa;this.p_=!Ea(u)&&!Ea(p);this.iaa=!Ea(F);this.swa=w(b,9);this.Ko=w(b,23);this.Ye=N(b,xcf,29);this.Db=
this.Vb=!1;this.yja=null==fef(b)?!0:fef(b);this.$=new odf(this.Fa,this.swa,this.ima,this.yja,u,p,z,d);this.ib(this.$,!1);this.Ag=null;this.fy="";this.nA=!1;this.fy=d?d:"";this.nA=m?m:!1;this.Sx=new r5d(this.Fa,f||18,0!=k,F,!1,d,h);this.ib(this.Sx,!1);this.Vk&&(this.$b=new nD(!1,T(a).Ea()),this.ib(this.$b,!1));this.jv=new nD(!0,T(a).Ea());this.ib(this.jv,!1);this.Op=!1;this.kN=c};t(u5,C);q=u5.prototype;q.$1c=function(a){this.Ag=a;this.Ag.$=this.Qb;this.Ag.Fm(this.fy);this.Ag.mL=this.nA||!1};
q.Pa=function(){this.ra(U(this.ha,Ecf,{gga:this.Vk,dla:this.Km}))};q.Di=function(){return!0};
q.ra=function(a){u5.ya.ra.call(this,a);var b=D("u8",a);this.Sx.render(b);this.iaa&&this.Ab.Ha(hdf);b=D("r8",a);this.$.render(b);this.p_&&this.Ab.Ha(fdf);this.Sa.Tj()&&this.Ab.Ha(gdf);this.Qb=this.Sa.Tj();this.y2?b=this.y2:(b=this.fb("mxa"),b=this.y2=RNb(b,hS.displayName,this.Fa));b.addCallback(this.$1c,this);if(this.Km){this.mL=new M5d(this.Fa);if(this.lp){var b=this.mL.$,c=!this.lp;b.aza=c;b.Nb()&&On(b.Sa.ta(),c);this.mL.$.Dhb=!this.lp}this.ib(this.mL,!1);b=D("bfa",a);this.mL.render(b);var d=this.Sa.kl();
if(null!=d){var b=this.mL,c=w(d,5)-1,f=w(d,4),d=w(d,6);b.TFb=c;b.QFb=f;b.VFb=d;esd(b.$,c,f,d);this.Ab.Ha(jdf)}this.Ab.Ha(edf)}this.Vk&&(a=D("s8",a),GN(this.$b,a),this.$b.yb(this.fb("a7")),this.Ab.Ha(ddf))};q.Na=function(){u5.ya.Na.call(this);o5d(this.Ab,this.Ea(),this.getHandler())};q.kb=function(){return this.Sa};q.HEb=function(){this.Op=!1;this.dispatchEvent(new pdf("eG",void 0,void 0))};
q.IEb=function(a){this.Op=!1;var b=w(a,1);switch(a.RK()){case 2:case 6:case 7:if(6==a.RK())this.$.Vk("o"),this.dispatchEvent(new pdf("eG",void 0,void 0));else{a=this.Xb?this.$.cG()+" "+this.$.XA():this.$.XA()+" "+this.$.cG();a=new W$f(this.Fa,a);var b=Lp(this.yQ,this),c=Lp(this.lN,this);oug(a,b,c,a.hE);this.dispatchEvent(new A("gG"))}break;case 3:this.dispatchEvent(new pdf("eG",b,void 0));break;case 4:case 5:a=a.RK();qdf(this.mL,5==a?"yta":"i");this.dispatchEvent(new pdf("eG",void 0,void 0));break;
case 8:a=this.Ag;a.Sa&&a.Sa.call();this.dispatchEvent(new pdf("eG",void 0,void 0));break;case 9:this.$.reset();this.$.yZ(V$g);break;default:this.dispatchEvent(new pdf("dG",b,w(a,3)))}};
q.submit=function(){if(!this.Op){this.Ab.Ha(Ucf);var a=[];this.$.Nb()&&!this.$.Yj()&&(a.push("NAME"),this.Ab.Ha($cf));this.Ag&&this.Ag.Yj()||a.push("GENDER");this.Km&&!this.mL.Yj()&&(a.push("BIRTHDAY"),this.Ab.Ha(bdf));var b;if(this.Vk)if(b=this.$b.$b(),this.Tx(),b)b=!0;else{b=D("t8",this.ta());var c=U(this.ha,Lcf);b.appendChild(c);Pn(this.$b.ta(),"FTa",!0);this.Ab.Ha(cdf);this.getHandler().yj(this.$b,"change",this.Tx);b=!1}else b=!0;b||a.push("PICASA");0!=a.length?this.dispatchEvent(new pdf("fG",
void 0,void 0)):(this.Op=!0,sdf(this))}};
var sdf=function(a,b){var c=new c6d,d=k6d(a);b&&d.Wb(b);Lg(c,5,d);a.Km&&(a.mL.Yj()?(d=a.mL.kl(),Lg(c,3,d)):qdf(a.mL,"i"));Py(c,11,a.Vb);Py(c,7,a.Vb);Py(c,8,a.Db);Py(c,7,a.Vb);Py(c,8,a.Db);Py(c,2,!0);Lg(c,9,a.Ye);d={hl:"en-US"};w(a.uh,2)&&(d["continue"]=w(a.uh,2));w(a.uh,3)&&(d.service=w(a.uh,3));a.Ko&&(d.gpsrc=a.Ko);c={ui:c.le()};c=ti(a.Be,a.kN,c,G5d,{DB:!0});Sa(c,d);cg(ki(c),a.IEb,a.HEb,a)},k6d=function(a){var b=new hvc,c=new xm;if(a.$.Nb()){var d=a.$.XA();Py(c,2,d);d=a.$.cG();Py(c,3,d)}else a.Sa.getName()&&
ym(a.Sa.getName())&&KC(a.Sa.getName())&&(d=ym(a.Sa.getName()),Py(c,2,d),d=KC(a.Sa.getName()),Py(c,3,d));b.Wb(c);a=a.Ag.Tj();Lg(b,2,a);return b};u5.prototype.Tx=function(){var a=D("t8",this.ta());zc(a);Pn(this.$b.ta(),"FTa",!1)};k6.prototype.Vk=function(a){switch(a){case "i":this.yZ(z5d);break;case "n":this.yZ(y5d);break;default:this.yZ(LKb)}};
u5.prototype.yQ=function(){this.Vb=!0;var a=new xm,b=this.$.XA();Py(a,2,b);b=this.$.cG();Py(a,3,b);if(Ea(this.$.cG())||"."==this.$.cG())this.Db=!0,Py(a,3,".");sdf(this,a);this.dispatchEvent(new A("hG"))};u5.prototype.lN=function(){this.dispatchEvent(new A("iG"))};u5.prototype.reset=function(){this.Sx.reset();this.$.reset();this.mL.reset();this.$b&&this.$b.Ld(!1);this.jv.Ld(!0)};
var m6d=function(a){K(this,a,0,-1,null,null)};t(m6d,J);var n6d=function(a){K(this,a,0,-1,null,null)};t(n6d,J);n6d.prototype.Ra=function(){return w(this,1)};n6d.prototype.hd=function(a){Py(this,1,a)};n6d.prototype.getUrl=function(){return w(this,2)};n6d.prototype.Yc=function(a){Py(this,2,a)};
var m6=function(a,b,c,d,f){mz.call(this,a,"Ea-q",!0);this.Fa=a;this.zb=qp(a);this.ha=V(a);this.Sa=wi(a);yi(this.Sa,[1,7,50,101]);this.p_=ny(a);this.y2=d;this.mL=b;this.Vb=c;this.Qb=new i6(a,"upgrade_dialog");(this.kN=f||"")&&y6d(this,this.kN);(a=this.Fa.Vc(yH))&&a.umd(this);this.ana=new Yqe(this.Fa,this.mL);this.lN=!1;this.uh=!0};t(m6,mz);q=m6.prototype;q.wHb=!1;
q.Pa=function(){m6.ya.Pa.call(this);this.Qd(null);this.ud(!0);this.ep=!1;var a=this.y2;a.V1=this.mL;this.ha.uc(sFa(this),z6d(this),a);Zx(this.Sa,101)?this.kMb():(this.Ag=this.Sa.$([1,101,50,2]),this.Ag.addCallback(function(){Bxg(this)},this),this.setContent(this.ha.render(w6d)))};q.DGb=function(){};q.VZb=function(){};q.kMb=function(){Bxg(this)};q.Na=function(){m6.ya.Na.call(this);var a=hw.ia().Vc("dct");a&&(new a(this.Fa,this.getHandler())).log("googl911");this.Ea().fb("TKa",lF(this))&&B6d(this)};
q.qb=function(){m6.ya.qb.call(this);BDa()};q.setVisible=function(a){m6.ya.setVisible.call(this,a);this.$&&a&&(a=this.$.$,a.cQa=!0,a6d(a))};
var z6d=function(a){switch(a.mL){case 4:case 3:case 1:case 2:return u6d;case 7:case 6:case 9:case 8:case 5:case 10:return v6d;case 24:return O1e;case 14:return C8e;case 15:return Mcf;case 20:return Ncf;default:return s6d}},Bxg=function(a){a.Db=new m6d(a.Sa.getData(101));if(!N(a.Db,n6d,1)){var b=new oS(a.Sa.getData(7)),c=a.y2,d;d=(d=a.p_.kb().getName().$v())?d:Ti(Gi(a.Fa).$).getValue("e");c.tAa=d;c.V1=a.mL;c.gga=w(a.Db,2);c.dla=!!w(b,4);d=new sh(a.Sa.getData(1));c.mPc=!Ea(Ga(d.nW()));c.vub=null==fef(b)?
!0:fef(b);a.setContent(a.ha.render(x6d,c));(b=a.Ea().fb("UKa",lF(a)))&&a.ha.uc(b,Acf,{o3b:d.nW()});a.$=new u5(a.Fa,!!w(a.Db,2),w(a.Db,4),"LiteSignup",17,!0,!1,!0);b=a.$;c=a.Vb;Ea(Ga(c))||b.Ko||(b.Ko=c);a.ib(a.$,!1);b=a.Ea().fb("nxa",a.cb());a.$.yb(b);a.Nb()&&B6d(a)}},B6d=function(a){a.Qb.Ha(C6d);a.getHandler().Ja(a.ta(),"keydown",Lp(a.iaa,a));a.Ab||(a.Ab=D6d(a,"TKa",Lp(function(a){a.preventDefault();this.Ab.Ta(!1);this.Qb.Ha(E6d);this.zb.It();this.$.submit()},a)));a.Be||(a.Be=D6d(a,"SKa",Lp(function(a){a.preventDefault();
tdf(this)},a)));a.getHandler().Ja(a.$,["eG"],a.Tx);a.getHandler().Ja(a.$,["fG"],a.Tx);a.getHandler().Ja(a.$,["dG"],a.Ye);a.getHandler().Ja(a.$,["gG"],Lp(a.Naa,a));a.getHandler().Ja(a.Fa.Sa,["el"],Lp(a.yja,a));yDa(a.Ea());a.Wd()};m6.prototype.iaa=function(a){var b=a.target;27!=a.keyCode||"SELECT"==b.tagName&&!b.disabled||(a.stopPropagation(),a.preventDefault(),tdf(this))};m6.prototype.Tx=function(){this.Ab.Ta(!0)};
m6.prototype.Ye=function(a){var b=vc("iframe");b.style.display="none";this.Ea().appendChild(this.ta(),b);this.getHandler().yj(b,"load",Lp(this.yQ,this,a.$));b.src=a.Sa;Uf(Lp(this.yQ,this,a.$),1500)};
m6.prototype.yQ=function(){if(this.dc()&&!this.lN){this.dispatchEvent("mp");var a=Gi(this.Fa).$;ay(Ti(a),"igmu",!0);(a=this.Fa.Vc(zZa))&&(a=a.$())&&a.Oe(!0);this.wHb||(this.wHb=!0,a=this.ana,2!=(a.$?a.$:2)?(this.Qb.Ha(L6d),this.jv()):this.kN?(udf(this),this.setVisible(!1)):(this.nA=new ag,bg(this.Fa.kd(eH).addCallback(this.Mma,this),mg)));this.lN=!0}};var udf=function(a){var b=a.y2;b.firstName=ym(k6d(a.$).getName())||ym(a.p_.kb().getName());(new q6d(a.Fa,a.mL,a.Vb,a.Zma,b,a.nA)).setVisible(!0)};
m6.prototype.Naa=function(){On(this.ta(),!1);this.getHandler().yj(this.$,"hG",this.Xb);this.getHandler().yj(this.$,"iG",this.Xb);this.getHandler().yj(this.$,"iG",this.Tx)};m6.prototype.yja=function(){On(this.ta(),!1);this.getHandler().yj(this.Fa.Sa,"kG",this.Xb)};m6.prototype.Xb=function(){On(this.ta(),!0)};
var D6d=function(a,b,c){if(b=a.Ea().fb(b,lF(a))){var d=new Ot(null,a.Ea());a.ib(d,!1);d.yb(b);a.getHandler().Ja(d,"action",c);return d}return null},tdf=function(a){a.Qb.Ha(F6d);a.zb.It();a.dispatchEvent("np");a.setVisible(!1)},y6d=function(a,b){cg(ri(a.Fa).makeRequest("/_/profiles/get/"+b,{},yt),a.swa,function(){},a)};m6.prototype.swa=function(a){this.Zma=zt(a).kb()};m6.prototype.Mma=function(a){this.$c=a;this.$c.$k().addCallback(this.DP,this)};
m6.prototype.DP=function(a){var b=[a.wL(!1,!0),this.$c.c6a(),this.$c.$5a()];bg((new eq(b)).addCallback(function(b){b[0][0]&&(b=b[0][1].xp(),b=ec(b,function(b){return!a.Dv(b)}),b=Qvc(new Pvc(a,0,8),b).G3a,0<b.length&&udf(this),this.nA.By(b),this.setVisible(!1),0==b.length&&(this.Qb.Ha(L6d),this.jv()))},this),function(){this.nA.By([])},this)};
m6.prototype.jv=function(){this.zb.It();if(24==this.mL)this.setVisible(!1);else{var a=this.Ea().getWindow(),b=new Af(a.location.href),c=a.OZ_savedQueryParams;if(c)for(var d in c)Hf(b,d,c[d]);Ea(Ga(this.Vb))||Hf(b,"gpsrc",this.Vb);dy(a.location,b.toString())}};
var F5d=function(a,b,c){j6.call(this,a,0,c);this.Fa=a;this.zb=qp(a);this.Sa=wi(a);a=wh(new sh(this.Sa.getData(1)));b=this.Ea().getWindow().location.href;a=sf(a+"/up/accounts/upgrade/","continue",b,"gpsrc",this.$);b=new zs;this.zb.Ha({qd:b,Ub:J6d});this.zb.It();dy(this.Ea().getWindow().location,a)};t(F5d,j6);
var G6d=function(a){this.Fa=a};Ig({id:TIb,Wa:G6d,multiple:!0});G6d.prototype.YZ=function(a,b,c,d,f){switch(a){case 1:a=new m6(this.Fa,b,c,d,null==f?void 0:f);break;case 2:a=new F5d(this.Fa,0,c);break;default:throw Error("Mh");}return a};
aPe.prototype.Qb=function(a){Ui(this.Fa)?a&&(a.VZb(),a.setVisible(!0),a.DGb()):a.setVisible(!0)};m6.prototype.DGb=function(){this.uh&&Bxg(this)};m6.prototype.kMb=function(){this.uh?Bxg(this):(this.uh=!0,this.setContent(this.ha.render(w6d)))};m6.prototype.VZb=function(){this.uh=!1};
qn("w","",1,function(a,b,c){a=" ";c=""+QLg(c);c=jA(c);a+=bMg({NCd:jA('<img class="BBa tQp8Kc" src="//ssl.gstatic.com/s2/oz/images/up/info-icon.png" alt="'+R(c)+'" data-tooltip="'+R(c)+'" data-tooltip-align="t,l" />')});return Y(a)});qn("u","",1,function(a,b,c){return Y(QLg(c)+" "+bMg(null))});
var QLg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{To change your first or last name, please contact your administrator.}male{To change your first or last name, please contact your administrator.}other{To change your first or last name, please contact your administrator.}}"),{VIEWER_GENDER:a.Aa});return Y(b+a)},bMg=function(a){a=a||{};return Y(Q(Kt({cY:6126742,product:"a",LFa:"name",content:a.NCd,Ia:Oz("Pob")})))};
qn("i","",1,function(){return Y(Q(Jp(S(vjb({cY:6126742,product:"a",LFa:"name"})))))});qn("j","",1,function(a,b,c){a=Y;b="";c=wA(new Z("{VIEWER_GENDER,select,female{How do I change my Google+ Profile name?}male{How do I change my Google+ Profile name?}other{How do I change my Google+ Profile name?}}"),{VIEWER_GENDER:c.Aa});c=Y(b+c);return a(c)});

G("lo_dlgs");I();
}catch(e){_DumpException(e)}
// Google Inc.
