gapi.loaded_1(function(_){var window=this;
_.lh=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(_.Ib(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};_.mh=function(a,b){b=b||a;for(var c=0,d=0,e={};d<a.length;){var f=a[d++],h=_.Gb(f)?"o"+_.Kb(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(e,h)||(e[h]=!0,b[c++]=f)}b.length=c};
_.nh=function(a,b){a.src=_.ec(b);var c,d;(c=(b=null==(d=(c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:d.call(c,"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)};_.oh=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};var ph,th,vh;ph={};th=null;_.uh=_.ud||_.vd||!_.kh&&!_.rd&&"function"==typeof _.u.atob;_.wh=function(a,b){void 0===b&&(b=0);vh();b=ph[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],l=a[e+2],m=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|l>>6];l=b[l&63];c[f++]=m+h+k+l}m=0;l=d;switch(a.length-e){case 2:m=a[e+1],l=b[(m&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|m>>4]+l+d}return c.join("")};
_.xh=function(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),n=th[m];if(null!=n)return n;if(!_.lc(m))throw Error("B`"+m);}return l}vh();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=k&&b(h<<6&192|k))}};
vh=function(){if(!th){th={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));ph[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===th[f]&&(th[f]=e)}}}};
_.Rh={};var Th;_.Sh=function(a){this.ub=a||{cookie:""}};_.g=_.Sh.prototype;_.g.isEnabled=function(){if(!_.u.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{lF:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.kga;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.lF}if(/[;=\s]/.test(a))throw Error("E`"+a);if(/[;\r\n]/.test(b))throw Error("F`"+b);void 0===k&&(k=-1);this.ub.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
_.g.get=function(a,b){for(var c=a+"=",d=(this.ub.cookie||"").split(";"),e=0,f;e<d.length;e++){f=(0,_.mc)(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};_.g.remove=function(a,b,c){var d=this.Zh(a);this.set(a,"",{lF:0,path:b,domain:c});return d};_.g.Tf=function(){return Th(this).keys};_.g.Wc=function(){return Th(this).values};_.g.isEmpty=function(){return!this.ub.cookie};_.g.Ib=function(){return this.ub.cookie?(this.ub.cookie||"").split(";").length:0};
_.g.Zh=function(a){return void 0!==this.get(a)};_.g.qj=function(a){for(var b=Th(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};_.g.clear=function(){for(var a=Th(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};Th=function(a){a=(a.ub.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=(0,_.mc)(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
_.Uh=new _.Sh("undefined"==typeof document?null:document);
_.ei={};_.fi=function(a){return _.ei[a||"token"]||null};
var Ku,Lu,Mu,Nu,Ou,Qu,Ru,Su,Tu,Vu;_.Ju=!1;Ku=function(a){try{_.Ju&&window.console&&window.console.log&&window.console.log(a)}catch(b){}};Lu=function(a){try{window.console&&window.console.warn&&window.console.warn(a)}catch(b){}};Mu=function(a,b){if(!a)return-1;if(a.indexOf)return a.indexOf(b,void 0);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1};
Nu=function(a,b){function c(){}if(!a)throw Error("S");if(!b)throw Error("T");c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};Ou=function(a){return"[object Function]"===Object.prototype.toString.call(a)};_.Pu=function(a){var b={};if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};Qu=function(a){var b=location.hash;a=new RegExp("[&#]"+a+"=([^&]*)");b=decodeURIComponent(b);b=a.exec(b);return null==b?"":b[1].replace(/\+/g," ")};
Ru=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else throw Error("U`"+b);};Su={token:1,id_token:1};Tu=function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("msie")&&8==parseInt(a.split("msie")[1],10)};_.Uu=window.JSON;Vu=function(a){this.BJ=a||[];this.Xb={}};
Vu.prototype.addEventListener=function(a,b){if(!(0<=Mu(this.BJ,a)))throw Error("W`"+a);if(!Ou(b))throw Error("X`"+a);this.Xb[a]||(this.Xb[a]=[]);0>Mu(this.Xb[a],b)&&this.Xb[a].push(b)};Vu.prototype.removeEventListener=function(a,b){if(!(0<=Mu(this.BJ,a)))throw Error("W`"+a);Ou(b)&&this.Xb[a]&&this.Xb[a].length&&(b=Mu(this.Xb[a],b),0<=b&&this.Xb[a].splice(b,1))};
Vu.prototype.dispatchEvent=function(a){var b=a.type;if(!(b&&0<=Mu(this.BJ,b)))throw Error("Y`"+b);if(this.Xb[b]&&this.Xb[b].length)for(var c=this.Xb[b].length,d=0;d<c;d++)this.Xb[b][d](a)};var Wu,Xu,Yu,bv,cv,tv,uv,wv,xv,zv,Jv;Wu={};Xu={};Yu={google:{authServerUrl:"https://accounts.google.com/o/oauth2/auth",idpIFrameUrl:"https://accounts.google.com/o/oauth2/iframe"}};_.Zu=function(a,b){if(a=Yu[a])return a[b]};_.$u=function(a,b){if(!a)throw Error("Z");if(!b.authServerUrl)throw Error("$");if(!b.idpIFrameUrl)throw Error("aa");Yu[a]={authServerUrl:b.authServerUrl,idpIFrameUrl:b.idpIFrameUrl}};_.av=void 0;
bv=function(a){a.style.position="absolute";a.style.width="1px";a.style.height="1px";a.style.left="-9999px";a.style.top="-9999px";a.style.right="-9999px";a.style.bottom="-9999px";a.style.display="none";a.setAttribute("aria-hidden","true")};cv=function(){this.S6=window;this.Xv=this.em=this.yt=this.Jh=null};
cv.prototype.open=function(a,b,c,d){dv(this);this.yt?(this.em&&(this.em(),this.em=null),ev(this)):this.yt="authPopup"+Math.floor(1E6*Math.random()+1);a:{this.Jh=this.S6.open(a,this.yt,b);try{this.Jh.focus();if(this.Jh.closed||"undefined"==typeof this.Jh.closed)throw Error("ca");_.av=this.Jh}catch(e){d&&setTimeout(d,0);this.Jh=null;break a}c&&(this.em=c,fv(this))}};
var dv=function(a){try{if(null==a.Jh||a.Jh.closed)a.Jh=null,a.yt=null,ev(a),a.em&&(a.em(),a.em=null)}catch(b){a.Jh=null,a.yt=null,ev(a)}},fv=function(a){a.Xv=window.setInterval(function(){dv(a)},300)},ev=function(a){a.Xv&&(window.clearInterval(a.Xv),a.Xv=null)};Xu=Xu||{};var gv=function(a,b){this.Sb=a;this.LE=b;this.ld=null;this.Qm=!1};gv.prototype.start=function(){if(!this.Qm&&!this.ld){var a=this;this.ld=window.setTimeout(function(){a.clear();a.Qm||(a.Sb(),a.Qm=!0)},Xu.NN(this.LE))}};
gv.prototype.clear=function(){this.ld&&(window.clearTimeout(this.ld),this.ld=null)};var hv=function(a,b){var c=Xu.Xq;this.p0=Xu.Rq;this.uT=c;this.Sb=a;this.LE=b;this.ld=null;this.Qm=!1;var d=this;this.vT=function(){document[d.p0]||(d.clear(),d.start())}};hv.prototype.start=function(){if(!this.Qm&&!this.ld){Ru(document,this.uT,this.vT);var a=this;this.ld=window.setTimeout(function(){a.clear();a.Qm||(a.Sb(),a.Qm=!0)},Xu.NN(this.LE))}};
hv.prototype.clear=function(){var a=this.uT,b=this.vT,c=document;if(c.removeEventListener)c.removeEventListener(a,b,!1);else if(c.detachEvent)c.detachEvent("on"+a,b);else throw Error("V`"+a);this.ld&&(window.clearTimeout(this.ld),this.ld=null)};Xu.Rq=null;Xu.Xq=null;
Xu.L0=function(){var a=document;"undefined"!==typeof a.hidden?(Xu.Rq="hidden",Xu.Xq="visibilitychange"):"undefined"!==typeof a.msHidden?(Xu.Rq="msHidden",Xu.Xq="msvisibilitychange"):"undefined"!==typeof a.webkitHidden&&(Xu.Rq="webkitHidden",Xu.Xq="webkitvisibilitychange")};Xu.L0();Xu.vX=function(a,b){return Xu.Rq&&Xu.Xq?new hv(a,b):new gv(a,b)};Xu.NN=function(a){return Math.max(1,a-(new Date).getTime())};
var iv=function(a,b){document.cookie="G_ENABLED_IDPS="+a+";domain=."+b+";expires=Fri, 31 Dec 9999 12:00:00 GMT;path=/"},jv=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(q){for(var p=h,t=0;64>t;t+=4)p[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],r=e[2],w=e[3],z=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var A=w^v&(r^w);var D=1518500249}else A=
v^r^w,D=1859775393;else 60>t?(A=v&r|w&(v|r),D=2400959708):(A=v^r^w,D=3395469782);A=((q<<5|q>>>27)&4294967295)+A+z+D+p[t]&4294967295;z=w;w=r;r=(v<<30|v>>>2)&4294967295;v=q;q=A}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+r&4294967295;e[3]=e[3]+w&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,r=q.length;v<r;++v)t.push(q.charCodeAt(v));q=t}p||(p=q.length);t=0;if(0==m)for(;t+64<p;)b(q.slice(t,t+64)),t+=64,n+=64;for(;t<
p;)if(f[m++]=q[t++],n++,64==m)for(m=0,b(f);t+64<p;)b(q.slice(t,t+64)),t+=64,n+=64}function d(){var q=[],p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var t=63;56<=t;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;5>t;t++)for(var v=24;0<=v;v-=8)q[p++]=e[t]>>v&255;return q}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,ei:function(){for(var q=d(),p="",t=0;t<q.length;t++)p+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return p}}},kv=
window.crypto,lv=!1,mv=0,nv=1,ov=0,pv="",qv=function(a){a=a||window.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;nv=nv*b%ov;if(3==++mv)if(a=window,b=qv,a.removeEventListener)a.removeEventListener("mousemove",b,!1);else if(a.detachEvent)a.detachEvent("onmousemove",b);else throw Error("V`mousemove");},rv=function(a){var b=jv();b.update(a);return b.ei()};lv=!!kv&&"function"==typeof kv.getRandomValues;
lv||(ov=1E6*(screen.width*screen.width+screen.height),pv=rv(document.cookie+"|"+document.location+"|"+(new Date).getTime()+"|"+Math.random()),Ru(window,"mousemove",qv));Wu=Wu||{};Wu.nU="ssIFrame_";
_.sv=function(a,b,c){c=void 0===c?!1:c;this.yb=a;if(!this.yb)throw Error("da");a=_.Zu(a,"idpIFrameUrl");if(!a)throw Error("ea");this.FO=a;if(!b)throw Error("fa");this.Gl=b;a=this.FO;b=document.createElement("a");b.setAttribute("href",a);a=[b.protocol,"//",b.hostname];"http:"==b.protocol&&""!=b.port&&"0"!=b.port&&"80"!=b.port?(a.push(":"),a.push(b.port)):"https:"==b.protocol&&""!=b.port&&"0"!=b.port&&"443"!=b.port&&(a.push(":"),a.push(b.port));this.tE=a.join("");this.u4=[location.protocol,"//",location.host].join("");
this.su=this.sE=this.Um=!1;this.BO=null;this.Oy=[];this.Xp=[];this.lj={};this.Vm=void 0;this.Hq=c};_.g=_.sv.prototype;_.g.show=function(){var a=this.Vm;a.style.position="fixed";a.style.width="100%";a.style.height="100%";a.style.left="0px";a.style.top="0px";a.style.right="0px";a.style.bottom="0px";a.style.display="block";a.style.zIndex="9999999";a.style.overflow="hidden";a.setAttribute("aria-hidden","false")};_.g.Ub=function(){bv(this.Vm)};
_.g.sy=function(a){if(this.Um)a&&a(this);else{if(!this.Vm){var b=Wu.nU+this.yb;var c=this.yb;var d=location.hostname;var e,f=document.cookie.match("(^|;) ?G_ENABLED_IDPS=([^;]*)(;|$)");f&&2<f.length&&(e=f[2]);(f=e&&0<=Mu(e.split("|"),c))?iv(e,d):iv(e?e+"|"+c:c,d);c=!f;var h=this.FO,k=this.u4;d=this.Gl;e=this.Hq;e=void 0===e?!1:e;f=document.createElement("iframe");f.setAttribute("id",b);b=f.setAttribute;var l="allow-scripts allow-same-origin";document.requestStorageAccess&&Ou(document.requestStorageAccess)&&
(l+=" allow-storage-access-by-user-activation");b.call(f,"sandbox",l);bv(f);f.setAttribute("frame-border","0");b=[h,"#origin=",encodeURIComponent(k)];b.push("&rpcToken=");b.push(encodeURIComponent(d));c&&b.push("&clearCache=1");_.Ju&&b.push("&debug=1");e&&b.push("&supportBlocked3PCookies=1");document.body.appendChild(f);f.setAttribute("src",b.join(""));this.Vm=f}a&&this.Oy.push(a)}};_.g.ey=function(){return this.Um&&this.su};_.g.Em=function(){return this.BO};
tv=function(a){for(var b=0;b<a.Oy.length;b++)a.Oy[b](a);a.Oy=[]};_.vv=function(a,b,c,d){if(a.Um){if(a.Um&&a.sE)throw a="Failed to communicate with IDP IFrame due to unitialization error: "+a.Em(),Ku(a),Error(a);uv(a,{method:b,params:c},d)}else a.Xp.push({Dn:{method:b,params:c},callback:d}),a.sy()};uv=function(a,b,c){if(c){for(var d=b.id;!d||a.lj[d];)d=(new Date).getMilliseconds()+"-"+(1E6*Math.random()+1);b.id=d;a.lj[d]=c}b.rpcToken=a.Gl;a.Vm.contentWindow.postMessage(_.Uu.stringify(b),a.tE)};
wv=function(a){if(a&&0<=a.indexOf("::"))throw Error("ga");};_.sv.prototype.Ki=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;wv(f);b=_.Pu(b);_.vv(this,"getTokenResponse",{clientId:a,loginHint:c,request:b,sessionSelector:d,forceRefresh:h,skipCache:k,id:f,userInteracted:l},e)};_.sv.prototype.qy=function(a,b,c,d,e){b=_.Pu(b);_.vv(this,"listIdpSessions",{clientId:a,request:b,sessionSelector:c,forceRefresh:e},d)};xv=function(a,b,c){wv(b.identifier);_.vv(a,"getSessionSelector",b,c)};
_.yv=function(a,b,c,d,e){wv(b.identifier);_.vv(a,"setSessionSelector",{domain:b.domain,crossSubDomains:b.crossSubDomains,policy:b.policy,id:b.id,hint:d,disabled:!!c},e)};zv=function(a,b,c,d,e){b={clientId:b};c&&(b.pluginName=c);d&&(b.ackExtensionDate=d);_.vv(a,"monitorClient",b,e)};_.sv.prototype.revoke=_.ea(9);_.sv.prototype.rr=_.ea(11);Wu.Gx={};Wu.sD=function(a){return Wu.Gx[a]};
Wu.sy=function(a,b,c){c=void 0===c?!1:c;var d=Wu.sD(a);if(!d){d=String;if(lv){var e=new window.Uint32Array(1);kv.getRandomValues(e);e=Number("0."+e[0])}else e=nv,e+=parseInt(pv.substr(0,20),16),pv=rv(pv),e/=ov+Math.pow(16,20);d=new _.sv(a,d(2147483647*e),c);Wu.Gx[a]=d}d.sy(b)};Wu.TY=function(a){for(var b in Wu.Gx){var c=Wu.sD(b);if(c&&c.Vm&&c.Vm.contentWindow==a.source&&c.tE==a.origin)return c}};Wu.zZ=function(a){for(var b in Wu.Gx){var c=Wu.sD(b);if(c&&c.tE==a)return c}};Wu=Wu||{};
var Bv=function(){var a=[],b;for(b in Av)a.push(Av[b]);Vu.call(this,a);this.bl={};Ku("EventBus is ready.")};Nu(Bv,Vu);var Av={FV:"sessionSelectorChanged",rB:"sessionStateChanged",cB:"authResult",ZT:"displayIFrame"},Dv=function(a,b){var c=Cv;a&&b&&(c.bl[a]||(c.bl[a]=[]),0>Mu(c.bl[a],b)&&c.bl[a].push(b))},Ev=function(a){var b=Cv;a&&(b.bl[a]||(b.bl[a]=[]))},Fv=function(a,b,c){return b&&a.bl[b]&&0<=Mu(a.bl[b],c)};_.g=Bv.prototype;
_.g.w3=function(a){var b,c=!!a.source&&(a.source===_.av||a.source.opener===window);if(b=c?Wu.zZ(a.origin):Wu.TY(a)){try{var d=_.Uu.parse(a.data)}catch(e){Ku("Bad event, an error happened when parsing data.");return}if(!c){if(!d||!d.rpcToken||d.rpcToken!=b.Gl){Ku("Bad event, no RPC token.");return}if(d.id&&!d.method){c=d;if(a=b.lj[c.id])delete b.lj[c.id],a(c.result,c.error);return}}"fireIdpEvent"!=d.method?Ku("Bad IDP event, method unknown."):(a=d.params)&&a.type&&this.EO[a.type]?(d=this.EO[a.type],
c&&!d.rW?Ku("Bad IDP event. Source window cannot be a popup."):d.Mq&&!d.Mq.call(this,b,a)?Ku("Bad IDP event."):d.qf.call(this,b,a)):Ku("Bad IDP event.")}else Ku("Bad event, no corresponding Idp Stub.")};_.g.U4=function(a,b){return Fv(this,a.yb,b.clientId)};_.g.T4=function(a,b){b=b.clientId;return!b||Fv(this,a.yb,b)};_.g.FW=function(a,b){return Fv(this,a.yb,b.clientId)};_.g.E2=function(a,b){a.Um=!0;a.su=!!b.cookieDisabled;tv(a);for(b=0;b<a.Xp.length;b++)uv(a,a.Xp[b].Dn,a.Xp[b].callback);a.Xp=[]};
_.g.D2=function(a,b){b={error:b.error};a.Um=!0;a.sE=!0;a.BO=b;a.Xp=[];tv(a)};_.g.rz=function(a,b){b.originIdp=a.yb;this.dispatchEvent(b)};var Cv=new Bv,Gv=Cv,Hv={};Hv.idpReady={qf:Gv.E2};Hv.idpError={qf:Gv.D2};Hv.sessionStateChanged={qf:Gv.rz,Mq:Gv.U4};Hv.sessionSelectorChanged={qf:Gv.rz,Mq:Gv.T4};Hv.authResult={qf:Gv.rz,Mq:Gv.FW,rW:!0};Hv.displayIFrame={qf:Gv.rz};Cv.EO=Hv||{};Ru(window,"message",function(a){Cv.w3.call(Cv,a)});
_.Iv=function(a,b){this.xe=!1;if(!a)throw Error("ha");var c=[],d;for(d in a)c.push(a[d]);Vu.call(this,c);this.Zc=[location.protocol,"//",location.host].join("");this.Zd=b.crossSubDomains?b.domain||this.Zc:this.Zc;if(!b)throw Error("ia");if(!b.idpId)throw Error("ja");if(!_.Zu(b.idpId,"authServerUrl")||!_.Zu(b.idpId,"idpIFrameUrl"))throw Error("ka`"+b.idpId);this.yb=b.idpId;this.Tb=void 0;this.CX=!!b.disableTokenRefresh;this.sY=!!b.forceTokenRefresh;this.T5=!!b.skipTokenCache;this.Hq=!!b.supportBlocked3PCookies;
b.pluginName&&(this.m3=b.pluginName);b.ackExtensionDate&&(this.kW=b.ackExtensionDate);this.setOptions(b);this.Cr=[];this.su=this.Fj=this.jP=!1;this.Ci=void 0;this.eR();this.yd=void 0;var e=this,f=function(){Ku("Token Manager is ready.");if(e.Cr.length)for(var h=0;h<e.Cr.length;h++)e.Cr[h].call(e);e.jP=!0;e.Cr=[]};Wu.sy(this.yb,function(h){e.yd=h;h.Um&&h.sE?(e.Fj=!0,e.Ci=h.Em(),e.Op(e.Ci)):(e.su=h.ey(),e.Tb?zv(e.yd,e.Tb,e.m3,e.kW,function(k){var l=!!k.validOrigin,m=!!k.blocked,n=!!k.suppressed;k.invalidExtension?
(e.Ci={error:"Invalid value for ack_extension_date. Please refer to [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."},e.Fj=!0,e.Op(e.Ci)):l?m?n?(Lu("You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."),
Dv(e.yb,e.Tb),f()):(e.Ci={error:"You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."},e.Fj=!0,e.Op(e.Ci)):(Lu("Your client application uses libraries for user authentication or authorization that will soon be deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."),
Dv(e.yb,e.Tb),f()):(e.Ci={error:"Not a valid origin for the client: "+e.Zc+" has not been registered for client ID "+e.Tb+". Please go to https://console.developers.google.com/ and register this origin for your project's client ID."},e.Fj=!0,e.Op(e.Ci))}):(Ev(e.yb),f()))},this.Hq)};Nu(_.Iv,Vu);_.g=_.Iv.prototype;_.g.setOptions=function(){};_.g.eR=function(){};_.g.Op=function(){};_.g.ey=function(){return this.su};_.g.Em=function(){return this.Ci};Jv=function(a,b,c){return function(){b.apply(a,c)}};
_.Kv=function(a,b,c){if(a.jP)b.apply(a,c);else{if(a.Fj)throw a.Ci;a.Cr.push(Jv(a,b,c))}};_.Iv.prototype.lL=_.ea(12);_.Iv.prototype.rr=_.ea(10);_.Mv=function(a,b){_.Iv.call(this,a,b);this.NQ=new cv;this.Qj=this.un=null;Lv(this)};Nu(_.Mv,_.Iv);_.Mv.prototype.setOptions=function(){};
var Nv=function(a,b){a.ue={crossSubDomains:!!b.crossSubDomains,id:b.sessionSelectorId,domain:a.Zd};b.crossSubDomains&&(a.ue.policy=b.policy)},Ov=function(a,b){if(!b.authParameters)throw Error("la");if(!b.authParameters.scope)throw Error("ma");if(!b.authParameters.response_type)throw Error("na");a.gr=b.authParameters;a.gr.redirect_uri||(a.gr.redirect_uri=[location.protocol,"//",location.host,location.pathname].join(""));a.Pi=_.Pu(b.rpcAuthParameters||a.gr);if(!a.Pi.scope)throw Error("oa");if(!a.Pi.response_type)throw Error("pa");
a:{var c=a.Pi.response_type.split(" ");for(var d=0,e=c.length;d<e;d++)if(c[d]&&!Su[c[d]]){c=!0;break a}c=!1}if(c)throw Error("qa");b.enableSerialConsent&&(a.Pi.enable_serial_consent=!0);b.authResultIdentifier&&(a.GW=b.authResultIdentifier);b.spec_compliant&&(a.Pi.spec_compliant=b.spec_compliant)};
_.Mv.prototype.eR=function(){var a=this;Cv.addEventListener(Av.FV,function(b){a.xe&&a.ue&&b.originIdp==a.yb&&!b.crossSubDomains==!a.ue.crossSubDomains&&b.domain==a.ue.domain&&b.id==a.ue.id&&a.wQ(b)});Cv.addEventListener(Av.rB,function(b){a.xe&&b.originIdp==a.yb&&b.clientId==a.Tb&&a.xQ(b)});Cv.addEventListener(Av.cB,function(b){_.av=void 0;a.xe&&b.originIdp==a.yb&&b.clientId==a.Tb&&b.id==a.Mj&&(a.un&&(window.clearTimeout(a.un),a.un=null),a.Mj=void 0,a.jt(b))});Cv.addEventListener(Av.ZT,function(b){a.xe&&
b.originIdp==a.yb&&(b.Ub?a.yd.Ub():a.yd.show())})};_.Mv.prototype.wQ=function(){};_.Mv.prototype.xQ=function(){};_.Mv.prototype.jt=function(){};var Qv=function(a,b){Pv(a);a.CX||(a.Qj=Xu.vX(function(){a.Ki(!0)},b-3E5),navigator.onLine&&a.Qj.start())},Pv=function(a){a.Qj&&(a.Qj.clear(),a.Qj=null)},Lv=function(a){var b=window;Tu()&&(b=document.body);Ru(b,"online",function(){a.Qj&&a.Qj.start()});Ru(b,"offline",function(){a.Qj&&a.Qj.clear()})};_.Mv.prototype.Ki=function(){};_.Mv.prototype.dQ=_.ea(13);
_.Mv.prototype.w1=function(a,b){if(!this.Tb)throw Error("ua");this.yd.qy(this.Tb,this.Pi,this.ue,a,b)};_.Mv.prototype.qy=function(a,b){_.Kv(this,this.w1,[a,b])};_.Sv=function(a){this.le=void 0;this.hh=!1;this.lq=void 0;_.Mv.call(this,_.Rv,a)};Nu(_.Sv,_.Mv);_.Rv={eK:"noSessionBound",Wq:"userLoggedOut",FT:"activeSessionChanged",rB:"sessionStateChanged",rK:"tokenReady",ZV:"tokenFailed",cB:"authResult",ERROR:"error"};
_.Sv.prototype.setOptions=function(a){if(!a.clientId)throw Error("va");this.Tb=a.clientId;this.Ca=a.id;Nv(this,a);Ov(this,a)};_.Sv.prototype.Op=function(a){this.dispatchEvent({type:_.Rv.ERROR,error:"idpiframe_initialization_failed",details:a.error,idpId:this.yb})};var Tv=function(a){Pv(a);a.lq=void 0;a.my=void 0};_.g=_.Sv.prototype;
_.g.wQ=function(a){var b=a.newValue||{};if(this.le!=b.hint||this.hh!=!!b.disabled){a=this.le;var c=!this.le||this.hh;Tv(this);this.le=b.hint;this.hh=!!b.disabled;(b=!this.le||this.hh)&&!c?this.dispatchEvent({type:_.Rv.Wq,idpId:this.yb}):b||(a!=this.le&&this.dispatchEvent({type:_.Rv.FT,idpId:this.yb}),this.le&&this.Ki())}};
_.g.xQ=function(a){this.hh||(this.le?a.user||this.lq?a.user==this.le&&(this.lq?a.sessionState?this.lq=a.sessionState:(Tv(this),this.dispatchEvent({type:_.Rv.Wq,idpId:this.yb})):a.sessionState&&(this.lq=a.sessionState,this.Ki())):this.Ki():this.dispatchEvent({type:_.Rv.rB,idpId:this.yb}))};_.g.jt=function(a){this.dispatchEvent({type:_.Rv.cB,authResult:a.authResult})};_.g.Zr=_.ea(15);_.g.Tr=function(a){_.Kv(this,this.hD,[a])};_.g.hD=function(a){xv(this.yd,this.ue,a)};
_.g.yA=function(a,b,c,d){d=void 0===d?!1:d;if(!a)throw Error("wa");Tv(this);this.le=a;this.hh=!1;b&&_.yv(this.yd,this.ue,!1,this.le);this.xe=!0;this.Ki(c,!0,d)};_.g.start=function(){_.Kv(this,this.ku,[])};
_.g.ku=function(){var a=this.Tb==Qu("client_id")?Qu("login_hint"):void 0;var b=this.Tb==Qu("client_id")?Qu("state"):void 0;this.EF=b;if(a)window.history.replaceState?window.history.replaceState(null,document.title,window.location.href.split("#")[0]):window.location.href.hash="",this.yA(a,!0,!0,!0);else{var c=this;this.Tr(function(d){c.xe=!0;d&&d.hint?(Tv(c),c.le=d.hint,c.hh=!!d.disabled,c.hh?c.dispatchEvent({type:_.Rv.Wq,idpId:c.yb}):c.yA(d.hint)):(Tv(c),c.le=void 0,c.hh=!(!d||!d.disabled),c.dispatchEvent({type:_.Rv.eK,
autoOpenAuthUrl:!c.hh,idpId:c.yb}))})}};_.g.pY=function(){var a=this;this.Tr(function(b){b&&b.hint?b.disabled?a.dispatchEvent({type:_.Rv.Wq,idpId:a.yb}):a.Ki(!0):a.dispatchEvent({type:_.Rv.eK,idpId:a.yb})})};_.g.VM=function(){_.Kv(this,this.pY,[])};
_.g.Ki=function(a,b,c){var d=this;this.yd.Ki(this.Tb,this.Pi,this.le,this.ue,function(e,f){(f=f||e.error)?"user_logged_out"==f?(Tv(d),d.dispatchEvent({type:_.Rv.Wq,idpId:d.yb})):(d.my=null,d.dispatchEvent({type:_.Rv.ZV,idpId:d.yb,error:f})):(d.my=e,d.lq=e.session_state,Qv(d,e.expires_at),e.idpId=d.yb,b&&d.EF&&(e.state=d.EF,d.EF=void 0),d.dispatchEvent({type:_.Rv.rK,idpId:d.yb,response:e}))},this.Ca,a,!1,void 0===c?!1:c)};_.g.revoke=_.ea(8);_.g.uR=_.ea(16);
_.Uv=function(a){this.Ul=null;_.Mv.call(this,{},a);this.xe=!0};Nu(_.Uv,_.Mv);_.g=_.Uv.prototype;_.g.setOptions=function(a){if(!a.clientId)throw Error("va");this.Tb=a.clientId;this.Ca=a.id;Nv(this,a);Ov(this,a)};_.g.Op=function(a){this.Ul&&(this.Ul({authResult:{error:"idpiframe_initialization_failed",details:a.error}}),this.Ul=null)};_.g.jt=function(a){if(this.Ul){var b=this.Ul;this.Ul=null;b(a)}};_.g.Zr=_.ea(14);_.g.Tr=function(a){this.Fj?a(this.Em()):_.Kv(this,this.hD,[a])};
_.g.hD=function(a){xv(this.yd,this.ue,a)};_.Vv=function(a,b,c){a.Fj?c(a.Em()):_.Kv(a,a.U2,[b,c])};_.Uv.prototype.U2=function(a,b){this.yd.Ki(this.Tb,this.Pi,a,this.ue,function(c,d){d?b({error:d}):b(c)},this.Ca,this.sY,this.T5)};_.Uv.prototype.GP=_.ea(17);
var Wv=function(a){return Array.prototype.concat.apply([],arguments)},Xv=function(){try{var a=Array.from((window.crypto||window.msCrypto).getRandomValues(new Uint8Array(64)))}catch(c){a=[];for(var b=0;64>b;b++)a[b]=Math.floor(256*Math.random())}return _.wh(a,3).substring(0,64)},Yv=function(){var a=navigator.userAgent.toLowerCase();return 0>a.indexOf("edge/")&&(-1<a.indexOf("chrome/")||-1<a.indexOf("crios/"))},Zv=function(){var a=navigator.userAgent.toLowerCase();return-1<a.indexOf("firefox/")&&0>
a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("safari/")},$v=function(a,b,c){if(!a.xe)throw Error("ra");b?_.yv(a.yd,a.ue,!0,void 0,c):_.yv(a.yd,a.ue,!0,a.le,c)},aw=function(a){if(!a.xe)throw Error("ra");return a.my},bw,cw,dw,ew,fw,gw,hw,iw,jw,lw;_.Uv.prototype.GP=_.fb(17,function(a,b){var c=this.yd,d=this.Tb,e=this.ue,f=_.Pu(this.Pi);delete f.response_type;_.vv(c,"getOnlineCode",{clientId:d,loginHint:a,request:f,sessionSelector:e},b)});
_.Sv.prototype.uR=_.fb(16,function(a){aw(this)&&aw(this).access_token&&(this.yd.revoke(this.Tb,aw(this).access_token,a),$v(this,!0))});
_.Sv.prototype.Zr=_.fb(15,function(){var a=this;return function(b){if(b&&b.authResult&&b.authResult.login_hint)if(a.ey()&&a.Hq&&(Yv()||Zv())){b=b.authResult;var c=Date.now(),d=b.expires_in;b={access_token:b.access_token,token_type:b.token_type,login_hint:b.login_hint,expires_in:d,id_token:b.id_token,scope:b.scope,first_issued_at:c,expires_at:c+1E3*d,idpId:a.yb};a.my=b;a.dispatchEvent({type:_.Rv.rK,idpId:a.yb,response:b})}else a.yA(b.authResult.login_hint,a.hh||b.authResult.login_hint!=a.le,!0,!0)}});
_.Uv.prototype.Zr=_.fb(14,function(a){var b=this;return function(c){c&&c.authResult&&c.authResult.login_hint?b.Tr(function(d){_.yv(b.yd,b.ue,d&&d.disabled,c.authResult.login_hint,function(){_.Vv(b,c.authResult.login_hint,a)})}):a(c&&c.authResult&&c.authResult.error?c.authResult:c&&c.authResult&&!c.authResult.login_hint?{error:"wrong_response_type"}:{error:"unknown_error"})}});_.Mv.prototype.dQ=_.fb(13,function(){this.Tb&&_.vv(this.yd,"startPolling",{clientId:this.Tb,origin:this.Zc,id:this.Mj})});
_.sv.prototype.revoke=_.fb(9,function(a,b,c){_.vv(this,"revoke",{clientId:a,token:b},c)});_.Sv.prototype.revoke=_.fb(8,function(a){_.Kv(this,this.uR,[a])});bw=function(){var a=navigator.userAgent,b;if(b=!!a&&-1!=a.indexOf("CriOS"))b=-1,(a=a.match(/CriOS\/(\d+)/))&&a[1]&&(b=parseInt(a[1],10)||-1),b=48>b;return b};
cw=function(){var a=navigator.userAgent.toLowerCase();if(!(-1<a.indexOf("safari/")&&0>a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("android")))return!1;var b=RegExp("version/(\\d+)\\.(\\d+)[\\.0-9]*").exec(navigator.userAgent.toLowerCase());if(!b||3>b.length)return!1;a=parseInt(b[1],10);b=parseInt(b[2],10);return 12<a||12==a&&1<=b};
dw=function(a,b,c,d,e,f,h){var k=_.Zu(a,"authServerUrl");if(!k)throw Error("ba`"+a);a=_.Pu(d);a.response_type=h||"permission";a.client_id=c;a.ss_domain=b;if(f&&f.extraQueryParams)for(var l in f.extraQueryParams)a[l]=f.extraQueryParams[l];(b=e)&&!(b=cw())&&(b=navigator.userAgent.toLowerCase(),-1<b.indexOf("ipad;")||-1<b.indexOf("iphone;")?(b=RegExp("os (\\d+)_\\d+(_\\d+)? like mac os x").exec(navigator.userAgent.toLowerCase()),b=!b||2>b.length?!1:14<=parseInt(b[1],10)):b=!1);b&&!a.prompt&&(a.prompt=
"select_account");k+=0>k.indexOf("?")?"?":"&";b=[];for(var m in a)if(a.hasOwnProperty(m)){c=a[m];if(null===c||void 0===c)c="";b.push(encodeURIComponent(m)+"="+encodeURIComponent(c))}return k+b.join("&")};
ew=function(a,b,c,d){if(!a.Tb)throw Error("sa");a.Mj=c||a.GW||"auth"+Math.floor(1E6*Math.random()+1);b=b||{};b.extraQueryParams=b.extraQueryParams||{};if(!b.extraQueryParams.redirect_uri){var e=a.Zc.split("//");c=b.extraQueryParams;var f=e[0],h=f.indexOf(":");0<h&&(f=f.substring(0,h));e=["storagerelay://",f,"/",e[1],"?"];e.push("id="+a.Mj);c.redirect_uri=e.join("")}return dw(a.yb,a.Zd,a.Tb,a.gr,!0,b,d)};fw=function(a,b,c){if(!a.Tb)throw Error("sa");return dw(a.yb,a.Zd,a.Tb,a.gr,!1,b,c)};
gw=function(a){if(!a)return"permission token";var b=a.split(" ");if(-1<b.indexOf("token")||-1<b.indexOf("code")||-1<b.indexOf("gsession"))return a;b.push("token");return b.join(" ")};hw=function(a,b){a.un&&window.clearTimeout(a.un);a.un=window.setTimeout(function(){a.Mj==b&&(_.av=void 0,a.un=null,a.Mj=void 0,a.jt({authResult:{error:"popup_closed_by_user"}}))},1E3)};
iw=function(a,b,c){if(!a.Tb)throw Error("ta");c=c||{};a.ey()&&a.Hq&&(Yv()||Zv())&&(c.responseType=gw(c.responseType));c=ew(a,c.sessionMeta,c.oneTimeId,c.responseType);(Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject||bw())&&_.Kv(a,a.dQ,[]);var d=a.Mj;a.NQ.open(c,b,function(){a.Mj==d&&hw(a,d)},function(){a.Mj=void 0;a.jt({authResult:{error:"popup_blocked_by_browser"}})})};jw=function(a,b,c){a.Fj?c(a.Em()):_.Kv(a,a.GP,[b,c])};
_.kw=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],k=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|k&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
lw=function(a){var b=[];_.xh(a,function(c){b.push(c)});return b};_.mw=function(a,b){_.ei[b||"token"]=a};_.nw=function(a){delete _.ei[a||"token"]};_.Uu={parse:function(a){a=_.Ef("["+String(a)+"]");if(!1===a||1!==a.length)throw new SyntaxError("JSON parsing failed.");return a[0]},stringify:function(a){return _.Ff(a)}};_.Uv.prototype.VC=function(a,b){_.Kv(this,this.gY,[a,b])};_.Uv.prototype.gY=function(a,b){this.yd.VC(this.Tb,a,this.Pi,this.ue,b)};_.sv.prototype.VC=function(a,b,c,d,e){c=_.Pu(c);_.vv(this,"gsi:fetchLoginHint",{clientId:a,loginHint:b,request:c,sessionSelector:d},e)};var ow,pw=["client_id","cookie_policy","scope"],qw="client_id cookie_policy fetch_basic_profile hosted_domain scope openid_realm disable_token_refresh login_hint ux_mode redirect_uri state prompt oidc_spec_compliant nonce enable_serial_consent include_granted_scopes response_type session_selection plugin_name ack_extension_date gsiwebsdk".split(" "),rw=["authuser","after_redirect","access_type","hl"],sw=["login_hint","prompt"],tw={clientid:"client_id",cookiepolicy:"cookie_policy"},uw=["approval_prompt",
"authuser","login_hint","prompt","hd"],vw=["login_hint","g-oauth-window","status"],ww=Math.min(_.Re("oauth-flow/authWindowWidth",599),screen.width-20),xw=Math.min(_.Re("oauth-flow/authWindowHeight",600),screen.height-30);var yw=function(a){_.gb.call(this,a)};_.L(yw,_.gb);yw.prototype.name="gapi.auth2.ExternallyVisibleError";var zw=function(){};zw.prototype.select=function(a,b){if(a.sessions&&1==a.sessions.length&&(a=a.sessions[0],a.login_hint)){b(a);return}b()};var Aw=function(){};Aw.prototype.select=function(a,b){if(a.sessions&&a.sessions.length)for(var c=0;c<a.sessions.length;c++){var d=a.sessions[c];if(d.login_hint){b(d);return}}b()};var Bw=function(a){this.HW=a};
Bw.prototype.select=function(a,b){if(a.sessions)for(var c=0;c<a.sessions.length;c++){var d=a.sessions[c];if(d.session_state&&d.session_state.extraQueryParams&&d.session_state.extraQueryParams.authuser==this.HW){d.login_hint?b(d):b();return}}b()};var Cw=function(a){this.Vd=a;this.Rz=[]};Cw.prototype.select=function(a){var b=0,c=this,d=function(e){if(e)a(e);else{var f=c.Rz[b];f?(b++,c.Vd.qy(function(h){h?f.select(h,d):d()})):a()}};d()};var Dw=function(a){a=new Cw(a);a.Rz.push(new zw);return a},Ew=function(a){a=new Cw(a);a.Rz.push(new Aw);return a},Fw=function(a,b){void 0===b||null===b?b=Dw(a):(a=new Cw(a),a.Rz.push(new Bw(b)),b=a);return b};var Gw=function(a){this.qf=a;this.isActive=!0};Gw.prototype.remove=function(){this.isActive=!1};Gw.prototype.trigger=function(){};var Hw=function(a){this.remove=function(){a.remove()};this.trigger=function(){a.trigger()}},Iw=function(){this.Xb=[]};Iw.prototype.add=function(a){this.Xb.push(a)};Iw.prototype.notify=function(a){for(var b=this.Xb,c=[],d=0;d<b.length;d++){var e=b[d];e.isActive&&(c.push(e),_.Lj(Jw(e.qf,a)))}this.Xb=c};var Jw=function(a,b){return function(){a(b)}};var Lw=function(a){this.Oa=null;this.M6=new Kw(this);this.Xb=new Iw;void 0!=a&&this.set(a)};Lw.prototype.set=function(a){a!=this.Oa&&(this.Oa=a,this.M6.value=a,this.Xb.notify(this.Oa))};Lw.prototype.get=function(){return this.Oa};Lw.prototype.V=function(a){a=new Mw(this,a);this.Xb.add(a);return a};Lw.prototype.get=Lw.prototype.get;var Mw=function(a,b){Gw.call(this,b);this.B1=a};_.L(Mw,Gw);Mw.prototype.trigger=function(){var a=this.qf;a(this.B1.get())};var Kw=function(a){this.value=null;this.V=function(b){return new Hw(a.V(b))}};var Nw={d9:"fetch_basic_profile",e$:"login_hint",Caa:"prompt",Jaa:"redirect_uri",aba:"scope",qca:"ux_mode",Lba:"state"},Ow=function(a){this.Ia={};if(a&&!_.Ji(a))if("function"==typeof a.get)this.Ia=a.get();else for(var b in Nw){var c=Nw[b];c in a&&(this.Ia[c]=a[c])}};Ow.prototype.get=function(){return this.Ia};Ow.prototype.lS=function(a){this.Ia.scope=a;return this};Ow.prototype.us=function(){return this.Ia.scope};
var Pw=function(a,b){var c=a.Ia.scope;b=Wv(b.split(" "),c?c.split(" "):[]);_.mh(b);a.Ia.scope=b.join(" ")};_.g=Ow.prototype;_.g.w5=function(a){this.Ia.prompt=a;return this};_.g.BZ=function(){return this.Ia.prompt};_.g.X4=function(){_.Jf.warn("Property app_package_name no longer supported and was not set");return this};_.g.AY=function(){_.Jf.warn("Property app_package_name no longer supported")};_.g.We=function(a){this.Ia.state=a};_.g.getState=function(){return this.Ia.state};var Qw=function(){return["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no","width="+ww,"height="+xw,"top="+(screen.height-xw)/2,"left="+(screen.width-ww)/2].join()},Rw=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+).?.?.?$/,"$1");return JSON.parse(_.kw(lw(a)))},Sw=function(){ow=_.Re("auth2/idpValue","google");var a=_.Re("oauth-flow/authUrl","https://accounts.google.com/o/oauth2/auth"),
b=_.Re("oauth-flow/idpIframeUrl","https://accounts.google.com/o/oauth2/iframe");_.$u(ow,{authServerUrl:a,idpIFrameUrl:b})},Tw=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];if(d===b.length-1){a[e]=c;break}_.Gb(a[e])||(a[e]={});a=a[e]}},Uw=function(){var a=window.location.origin;a||(a=window.location.protocol+"//"+window.location.host);return a},Ww=function(){var a=Vw();a.storage_path&&window.sessionStorage.setItem(a.storage_path,Uw()+window.location.pathname);if("enforced"==a.status.toLowerCase())throw new yw("gapi.auth2 is disabled on this website, but it is still used on page "+
window.location.href);"informational"==a.status.toLowerCase()&&_.Jf.warn("gapi.auth2 is disabled on this website, but it is still used on page "+window.location.href)};var Xw=function(a){var b=a?(b=Rw(a))?b.sub:null:null;this.Ca=b;this.Bc=a?_.Cj(a):null};_.g=Xw.prototype;_.g.getId=function(){return this.Ca};_.g.pD=function(){var a=Rw(this.Bc);return a?a.hd:null};_.g.Wf=function(){return!!this.Bc};_.g.Hk=function(a){if(a)return this.Bc;a=Yw;var b=_.Cj(this.Bc);!a.Qx||a.nE||a.e0||(delete b.access_token,delete b.scope);return b};_.g.pG=function(){return Yw.pG()};_.g.ak=function(){this.Bc=null};_.g.eZ=function(){return this.Bc?this.Bc.scope:null};
_.g.update=function(a){this.Ca=a.Ca;this.Bc=a.Bc;this.Bc.id_token?this.tv=new Zw(this.Bc):this.tv&&(this.tv=null)};var $w=function(a){return a.Bc&&"object"==typeof a.Bc.session_state?_.Cj(a.Bc.session_state.extraQueryParams||{}):{}};_.g=Xw.prototype;_.g.fD=function(){var a=$w(this);return a&&void 0!==a.authuser&&null!==a.authuser?a.authuser:null};
_.g.Zj=function(a){var b=Yw,c=new Ow(a);b.nE=c.us()?!0:!1;Yw.Qx&&Pw(c,"openid profile email");return new _.bk(function(d,e){var f=$w(this);f.login_hint=this.getId();f.scope=c.us();ax(b,d,e,f)},this)};_.g.ws=function(a){return new _.bk(function(b,c){var d=a||{},e=Yw;d.login_hint=this.getId();e.ws(d).then(b,c)},this)};_.g.TZ=function(a){return this.Zj(a)};_.g.disconnect=function(){return Yw.disconnect()};_.g.DY=function(){return this.tv};
_.g.Cx=function(a){if(!this.Wf())return!1;var b=this.Bc&&this.Bc.scope?this.Bc.scope.split(" "):"";return _.Ub(a?a.split(" "):[],function(c){return _.ib(b,c)})};var Zw=function(a){a=Rw(a);this.xY=a.sub;this.yf=a.name;this.PZ=a.given_name;this.eY=a.family_name;this.KO=a.picture;this.fw=a.email};_.g=Zw.prototype;_.g.getId=function(){return this.xY};_.g.yg=function(){return this.yf};_.g.cZ=function(){return this.PZ};_.g.WY=function(){return this.eY};_.g.kZ=function(){return this.KO};_.g.bs=function(){return this.fw};var Vw,bx;Vw=function(){var a=_.Uh.get("G_AUTH2_MIGRATION");if(!a)return{status:"none"};a=/(enforced|informational)(?::(.*))?/i.exec(a);return a?{status:a[1].toLowerCase(),storage_path:a[2]}:(_.Jf.warn("The G_AUTH2_MIGRATION cookie value is not valid."),{status:"none"})};bx=function(a){var b=location;if(a&&"none"!=a)return"single_host_origin"==a?b.protocol+"//"+b.host:a};
_.cx=function(a){if(!a)throw new yw("No cookiePolicy");var b=window.location.hostname;"single_host_origin"==a&&(a=window.location.protocol+"//"+b);if("none"==a)return null;var c=/^(https?:\/\/)([0-9.\-_A-Za-z]+)(?::(\d+))?$/.exec(a);if(!c)throw new yw("Invalid cookiePolicy");a=c[2];c=c[1];var d={};d.dotValue=a.split(".").length;d.isSecure=-1!=c.indexOf("https");d.domain=a;if(!_.Pi(b,"."+a)&&!_.Pi(b,a))throw new yw("Invalid cookiePolicy domain");return d};var ex=function(a){var b=a||{},c=dx();_.Rb(qw,function(d){"undefined"===typeof b[d]&&"undefined"!==typeof c[d]&&(b[d]=c[d])});return b},dx=function(){for(var a={},b=document.getElementsByTagName("meta"),c=0;c<b.length;++c)if(b[c].name){var d=b[c].name;if(0==d.indexOf("google-signin-")){d=d.substring(14);var e=b[c].content;tw[d]&&(d=tw[d]);_.ib(qw,d)&&e&&(a[d]="true"==e?!0:"false"==e?!1:e)}}return a},fx=function(a){return String(a).replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},gx=function(a){_.Rb(qw,
function(b){var c=fx(b);"undefined"!==typeof a[c]&&"undefined"===typeof a[b]&&(a[b]=a[c],delete a[c])})},hx=function(a){a=ex(a);gx(a);a.cookie_policy||(a.cookie_policy="single_host_origin");var b=qw+rw,c;for(c in a)0>b.indexOf(c)&&delete a[c];return a},ix=function(a,b){if(!a)throw new yw("Empty initial options.");for(var c=0;c<pw.length;++c)if(!(b&&"scope"==pw[c]||a[pw[c]]))throw new yw("Missing required parameter '"+pw[c]+"'");_.cx(a.cookie_policy)},kx=function(a){var b={authParameters:{redirect_uri:void 0,
response_type:"token id_token",scope:a.scope,"openid.realm":a.openid_realm,include_granted_scopes:!0},clientId:a.client_id,crossSubDomains:!0,domain:bx(a.cookie_policy),disableTokenRefresh:!!a.disable_token_refresh,idpId:ow};jx(b,a);_.Rb(sw,function(d){a[d]&&(b.authParameters[d]=a[d])});"boolean"==typeof a.enable_serial_consent&&(b.enableSerialConsent=a.enable_serial_consent);if(a.plugin_name)b.pluginName=a.plugin_name;else{var c=_.Re("auth2/pluginName");c&&(b.pluginName=c)}a.ack_extension_date&&
(b.authParameters.ack_extension_date=a.ack_extension_date,b.ackExtensionDate=a.ack_extension_date);return b},jx=function(a,b){var c=b.oidc_spec_compliant;b=b.nonce;c&&(a.spec_compliant=c,b=b||Xv());b&&(a.authParameters.nonce=b,a.forceTokenRefresh=!0,a.skipTokenCache=!0)},px=function(a){var b=a.client_id,c=a.cookie_policy,d=a.scope,e=a.openid_realm,f=a.hosted_domain,h=a.oidc_spec_compliant,k=a.nonce,l=lx(a),m={authParameters:{response_type:l,scope:d,"openid.realm":e},rpcAuthParameters:{response_type:l,
scope:d,"openid.realm":e},clientId:b,crossSubDomains:!0,domain:bx(c),idpId:ow};f&&(m.authParameters.hd=f,m.rpcAuthParameters.hd=f);h&&(m.rpcAuthParameters.spec_compliant=h,k=k||Xv());k&&(m.authParameters.nonce=k,m.rpcAuthParameters.nonce=k,m.forceTokenRefresh=!0,m.skipTokenCache=!0);_.Rb(sw.concat(rw),function(n){a[n]&&(m.authParameters[n]=a[n])});void 0!==a.authuser&&null!==a.authuser&&(m.authParameters.authuser=a.authuser);"boolean"==typeof a.include_granted_scopes&&(b=new mx(a.response_type||"token"),
nx(b)&&(m.authParameters.include_granted_scopes=a.include_granted_scopes),ox(b)&&(m.rpcAuthParameters.include_granted_scopes=a.include_granted_scopes,!1===a.include_granted_scopes&&(m.forceTokenRefresh=!0,m.skipTokenCache=!0)));"boolean"==typeof a.enable_serial_consent&&(m.enableSerialConsent=a.enable_serial_consent);a.plugin_name?m.pluginName=a.plugin_name:(b=_.Re("auth2/pluginName"))&&(m.pluginName=b);a.ack_extension_date&&(m.authParameters.ack_extension_date=a.ack_extension_date,m.rpcAuthParameters.ack_extension_date=
a.ack_extension_date,m.ackExtensionDate=a.ack_extension_date);return m},lx=function(a){a=new mx(a.response_type||"token");var b=[];ox(a)&&b.push("token");qx(a,"id_token")&&b.push("id_token");0==b.length&&(b=["token","id_token"]);return b.join(" ")},rx=["permission","id_token"],sx=/(^|[^_])token/,mx=function(a){this.cq=[];this.HE(a)};
mx.prototype.HE=function(a){a?((0<=a.indexOf("permission")||a.match(sx))&&this.cq.push("permission"),0<=a.indexOf("id_token")&&this.cq.push("id_token"),0<=a.indexOf("code")&&this.cq.push("code")):this.cq=rx};var nx=function(a){return qx(a,"code")},ox=function(a){return qx(a,"permission")};mx.prototype.toString=function(){return this.cq.join(" ")};var qx=function(a,b){var c=!1;_.Rb(a.cq,function(d){d==b&&(c=!0)});return c};var ux=function(a,b,c){this.mn=b;this.o2=a;for(var d in a)a.hasOwnProperty(d)&&tx(this,d);if(c&&c.length)for(a=0;a<c.length;a++)this[c[a]]=this.mn[c[a]]},tx=function(a,b){a[b]=function(){return a.o2[b].apply(a.mn,arguments)}};ux.prototype.then=function(a,b,c){var d=this;return _.fk().then(function(){return vx(d.mn,a,b,c)})};_.Fj(ux);var Yw,wx,yx;Yw=null;_.xx=function(){return Yw?wx():null};wx=function(){return new ux(yx.prototype,Yw,["currentUser","isSignedIn"])};yx=function(a){delete a.include_granted_scopes;this.Ia=kx(a);this.tX=a.cookie_policy;this.e0=!!a.scope;(this.Qx=!1!==a.fetch_basic_profile)&&(this.Ia.authParameters.scope=zx(this,"openid profile email"));_.Rh.GSI_SUPPORT_BLOCKED_3P_COOKIES&&(this.Hq=this.Ia.supportBlocked3PCookies=!0);this.Hs=a.hosted_domain;this.J6=a.ux_mode||"popup";this.D3=a.redirect_uri||null;this.EE()};
yx.prototype.EE=function(){this.currentUser=new Lw(new Xw(null));this.isSignedIn=new Lw(!1);this.Vd=new _.Sv(this.Ia);this.Wx=this.xp=null;this.j1=new _.bk(function(a,b){this.xp=a;this.Wx=b},this);this.Ny={};this.Qs=!0;Ax(this);this.Vd.start()};
var Ax=function(a){a.Vd.addEventListener("error",function(b){a.Qs&&a.xp&&(a.Qs=!1,a.Wx({error:b.error,details:b.details}),a.xp=null,a.Wx=null)});a.Vd.addEventListener("authResult",function(b){b&&b.authResult&&a.ff(b);a.Vd.Zr()(b)});a.Vd.addEventListener("tokenReady",function(b){var c=new Xw(b.response);if(a.Hs&&a.Hs!=c.pD())a.ff({type:"tokenFailed",reason:"Account domain does not match hosted_domain specified by gapi.auth2.init.",accountDomain:c.pD(),expectedDomain:a.Hs});else{a.currentUser.get().update(c);
var d=a.currentUser;d.Xb.notify(d.Oa);a.isSignedIn.set(!0);c=c.fD();(d=_.cx(a.tX))&&c&&_.Uh.set(["G_AUTHUSER_","https:"===window.location.protocol&&d.Ke?"S":"H",d.fi].join(""),c,{domain:d.domain,secure:d.isSecure});_.mw(b.response);a.ff(b)}});a.Vd.addEventListener("noSessionBound",function(b){a.Qs&&b.autoOpenAuthUrl?(a.Qs=!1,Dw(a.Vd).select(function(c){if(c&&c.login_hint){var d=a.Vd;_.Kv(d,d.yA,[c.login_hint,!0])}else a.currentUser.set(new Xw(null)),a.isSignedIn.set(!1),_.nw(),a.ff(b)})):(a.currentUser.set(new Xw(null)),
a.isSignedIn.set(!1),_.nw(),a.ff(b))});a.Vd.addEventListener("tokenFailed",function(b){a.ff(b)});a.Vd.addEventListener("userLoggedOut",function(b){a.currentUser.get().ak();var c=a.currentUser;c.Xb.notify(c.Oa);a.isSignedIn.set(!1);_.nw();a.ff(b)})},vx=function(a,b,c,d){return a.j1.then(function(e){if(b)return b(e.RZ)},c,d)};yx.prototype.ff=function(a){if(a){this.Qs=!1;var b=a.type||"";if(this.Ny[b])this.Ny[b](a);this.xp&&(this.xp({RZ:this}),this.Wx=this.xp=null)}};
var Bx=function(a,b){_.mb(b,function(c,d){a.Ny[d]=function(e){a.Ny={};c(e)}})},ax=function(a,b,c,d){d=_.Cj(d);a.Hs&&(d.hd=a.Hs);var e=d.ux_mode||a.J6;delete d.ux_mode;delete d.app_package_name;var f={sessionMeta:{extraQueryParams:d},responseType:"permission id_token"};"redirect"==e?(d.redirect_uri||(d.redirect_uri=a.D3||Uw()+window.location.pathname),Cx(a,f)):(delete d.redirect_uri,Dx(a,f),Bx(a,{authResult:function(h){h.authResult&&h.authResult.error?c(h.authResult):Bx(a,{tokenReady:function(){b(a.currentUser.get())},
tokenFailed:c})}}))};yx.prototype.Zj=function(a){return new _.bk(function(b,c){var d=new Ow(a);this.nE=d.us()?!0:!1;this.Qx?(d.Ia.fetch_basic_profile=!0,Pw(d,"email profile openid")):d.Ia.fetch_basic_profile=!1;var e=zx(this,d.us());d.lS(e);ax(this,b,c,d.get())},this)};
yx.prototype.ws=function(a){var b=a||{};this.nE=!!b.scope;a=zx(this,b.scope);if(""==a)return _.gk({error:"Missing required parameter: scope"});var c={scope:a,access_type:"offline",include_granted_scopes:!0};_.Rb(uw,function(d){null!=b[d]&&(c[d]=b[d])});c.hasOwnProperty("prompt")||c.hasOwnProperty("approval_prompt")||(c.prompt="consent");"postmessage"==b.redirect_uri||void 0==b.redirect_uri?a=Ex(this,c):(c.redirect_uri=b.redirect_uri,Cx(this,{sessionMeta:{extraQueryParams:c},responseType:"code id_token"}),
a=_.fk({message:"Redirecting to IDP."}));return a};
var Ex=function(a,b){b.origin=Uw();delete b.redirect_uri;Dx(a,{sessionMeta:{extraQueryParams:b},responseType:"code permission id_token"});return new _.bk(function(c,d){Bx(this,{authResult:function(e){(e=e&&e.authResult)&&e.code?c({code:e.code}):d(e&&e.error?e:{error:"unknown_error"})}})},a)},Dx=function(a,b){Tw(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");iw(a.Vd,Qw(),b)},Cx=function(a,b){Tw(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");b=b||{};window.location.assign(fw(a.Vd,b.sessionMeta,
b.responseType))};yx.prototype.ak=function(a){var b=a||!1;return new _.bk(function(c){$v(this.Vd,b,function(){c()})},this)};yx.prototype.sN=function(){return this.Ia.authParameters.scope};var zx=function(a,b){a=a.sN();b=Wv(b?b.split(" "):[],a?a.split(" "):[]);_.mh(b);return b.join(" ")};yx.prototype.pG=function(){var a=this;return new _.bk(function(b,c){Bx(a,{noSessionBound:c,tokenFailed:c,userLoggedOut:c,tokenReady:function(d){b(d.response)}});a.Vd.VM()})};
yx.prototype.TK=function(a,b,c,d){if(a="string"===typeof a?document.getElementById(a):a){var e=this;_.jj(a,"click",function(){var f=b;"function"==typeof b&&(f=b());e.Zj(f).then(function(h){c&&c(h)},function(h){d&&d(h)})})}else d&&d({error:"Could not attach click handler to the element. Reason: element not found."})};yx.prototype.disconnect=function(){return new _.bk(function(a){this.Vd.revoke(function(){a()})},this)};yx.prototype.attachClickHandler=yx.prototype.TK;var Fx;_.bk.prototype["catch"]=_.bk.prototype.ru;Fx=null;_.Gx=function(a){Ww();a=hx(a);if(Yw){if(_.Bj(a,Fx||{}))return wx();throw new yw("gapi.auth2 has been initialized with different options. Consider calling gapi.auth2.getAuthInstance() instead of gapi.auth2.init().");}ix(a,!1!==a.fetch_basic_profile);Sw();Fx=a;Yw=new yx(a);_.Je.ga=1;return wx()};var Ix,Kx,Hx,Mx,Lx,Nx;_.Jx=function(a,b){Sw();a=hx(a);ix(a);var c=px(a),d=new _.Uv(c);"none"==a.prompt?Hx(d,a,function(e){e.status=e.error?{signed_in:!1,method:null,google_logged_in:!1}:{signed_in:!0,method:"AUTO",google_logged_in:!0};b(e)}):Ix(d,a,function(e){if(e.error)e.status={signed_in:!1,method:null,google_logged_in:!1};else{var f=e.access_token||e.id_token;e.status={signed_in:!!f,method:"PROMPT",google_logged_in:!!f}}e["g-oauth-window"]=d.NQ.Jh;b(e)})};
Ix=function(a,b,c){var d=new mx(b.response_type);c=Kx(a,d,c);var e={responseType:d.toString()};Tw(e,["sessionMeta","extraQueryParams","gsiwebsdk"],b.gsiwebsdk||"2");nx(d)&&Tw(e,["sessionMeta","extraQueryParams","access_type"],b.access_type||"offline");b.redirect_uri&&Tw(e,["sessionMeta","extraQueryParams","redirect_uri"],b.redirect_uri);b.state&&Tw(e,["sessionMeta","extraQueryParams","state"],b.state);b=Qw();a.Fj?c({authResult:{error:"idpiframe_initialization_failed",details:a.Em().error}}):(a.Ul=
c,iw(a,b,e))};Kx=function(a,b,c){if(ox(b)){var d=Lx(c);return function(e){e&&e.authResult&&!e.authResult.error?a.Zr(function(f){f&&!f.error?(f=_.Cj(f),nx(b)&&(f.code=e.authResult.code),d(f)):d(f?f:{error:"unknown_error"})})(e):d(e&&e.authResult?e.authResult:{error:"unknown_error"})}}return function(e){e&&e.authResult&&!e.authResult.error?c(_.Cj(e.authResult)):c(e&&e.authResult?e.authResult:{error:"unknown_error"})}};
Hx=function(a,b,c){if(nx(new mx(b.response_type))&&"offline"==b.access_type)c({error:"immediate_failed",error_subtype:"access_denied"});else{var d=Lx(c);b.login_hint?a.VC(b.login_hint,function(e){e?Mx(a,b,e,d):c({error:"immediate_failed",error_subtype:"access_denied"})}):void 0!==b.authuser&&null!==b.authuser?Fw(a,b.authuser).select(function(e){e&&e.login_hint?Mx(a,b,e.login_hint,d):d({error:"immediate_failed",error_subtype:"access_denied"})}):a.Tr(function(e){e&&e.hint?Mx(a,b,e.hint,d):e&&e.disabled?
d({error:"immediate_failed",error_subtype:"no_user_bound"}):("first_valid"==b.session_selection?Ew(a):Dw(a)).select(function(f){f&&f.login_hint?Mx(a,b,f.login_hint,d):d({error:"immediate_failed",error_subtype:"no_user_bound"})})})}};Mx=function(a,b,c,d){b=new mx(b.response_type);var e=0,f={},h=function(k){!k||k.error?d(k):(e--,_.Li(f,k),0==e&&d(f))};(ox(b)||qx(b,"id_token"))&&e++;nx(b)&&e++;(ox(b)||qx(b,"id_token"))&&_.Vv(a,c,h);nx(b)&&jw(a,c,h)};
Lx=function(a){return function(b){if(!b||b.error)_.nw(),b?a(b):a({error:"unknown_error"});else{if(b.access_token){var c=_.Cj(b);Nx(c);delete c.id_token;delete c.code;_.mw(c)}a(b)}}};Nx=function(a){_.Rb(vw,function(b){delete a[b]})};_.E("gapi.auth2.init",_.Gx);_.E("gapi.auth2.authorize",function(a,b){Ww();if(null!=Yw)throw new yw("gapi.auth2.authorize cannot be called after GoogleAuth has been initialized (i.e. with a call to gapi.auth2.init, or gapi.client.init when given a 'clientId' and a 'scope' parameters).");_.Jx(a,function(c){Nx(c);b(c)})});_.E("gapi.auth2._gt",function(){return _.fi()});_.E("gapi.auth2.enableDebugLogs",function(a){a=!1!==a;_.Ju="0"!=a&&!!a});_.E("gapi.auth2.getAuthInstance",_.xx);
_.E("gapi.auth2.BasicProfile",Zw);_.E("gapi.auth2.BasicProfile.prototype.getId",Zw.prototype.getId);_.E("gapi.auth2.BasicProfile.prototype.getName",Zw.prototype.yg);_.E("gapi.auth2.BasicProfile.prototype.getGivenName",Zw.prototype.cZ);_.E("gapi.auth2.BasicProfile.prototype.getFamilyName",Zw.prototype.WY);_.E("gapi.auth2.BasicProfile.prototype.getImageUrl",Zw.prototype.kZ);_.E("gapi.auth2.BasicProfile.prototype.getEmail",Zw.prototype.bs);_.E("gapi.auth2.GoogleAuth",yx);
_.E("gapi.auth2.GoogleAuth.prototype.attachClickHandler",yx.prototype.TK);_.E("gapi.auth2.GoogleAuth.prototype.disconnect",yx.prototype.disconnect);_.E("gapi.auth2.GoogleAuth.prototype.grantOfflineAccess",yx.prototype.ws);_.E("gapi.auth2.GoogleAuth.prototype.signIn",yx.prototype.Zj);_.E("gapi.auth2.GoogleAuth.prototype.signOut",yx.prototype.ak);_.E("gapi.auth2.GoogleAuth.prototype.getInitialScopes",yx.prototype.sN);_.E("gapi.auth2.GoogleUser",Xw);_.E("gapi.auth2.GoogleUser.prototype.grant",Xw.prototype.TZ);
_.E("gapi.auth2.GoogleUser.prototype.getId",Xw.prototype.getId);_.E("gapi.auth2.GoogleUser.prototype.isSignedIn",Xw.prototype.Wf);_.E("gapi.auth2.GoogleUser.prototype.getAuthResponse",Xw.prototype.Hk);_.E("gapi.auth2.GoogleUser.prototype.getBasicProfile",Xw.prototype.DY);_.E("gapi.auth2.GoogleUser.prototype.getGrantedScopes",Xw.prototype.eZ);_.E("gapi.auth2.GoogleUser.prototype.getHostedDomain",Xw.prototype.pD);_.E("gapi.auth2.GoogleUser.prototype.grantOfflineAccess",Xw.prototype.ws);
_.E("gapi.auth2.GoogleUser.prototype.hasGrantedScopes",Xw.prototype.Cx);_.E("gapi.auth2.GoogleUser.prototype.reloadAuthResponse",Xw.prototype.pG);_.E("gapi.auth2.LiveValue",Lw);_.E("gapi.auth2.LiveValue.prototype.listen",Lw.prototype.V);_.E("gapi.auth2.LiveValue.prototype.get",Lw.prototype.get);_.E("gapi.auth2.SigninOptionsBuilder",Ow);_.E("gapi.auth2.SigninOptionsBuilder.prototype.getAppPackageName",Ow.prototype.AY);_.E("gapi.auth2.SigninOptionsBuilder.prototype.setAppPackageName",Ow.prototype.X4);
_.E("gapi.auth2.SigninOptionsBuilder.prototype.getScope",Ow.prototype.us);_.E("gapi.auth2.SigninOptionsBuilder.prototype.setScope",Ow.prototype.lS);_.E("gapi.auth2.SigninOptionsBuilder.prototype.getPrompt",Ow.prototype.BZ);_.E("gapi.auth2.SigninOptionsBuilder.prototype.setPrompt",Ow.prototype.w5);_.E("gapi.auth2.SigninOptionsBuilder.prototype.get",Ow.prototype.get);
_.Ue=_.Ue||{};
(function(){function a(b){var c="";if(3==b.nodeType||4==b.nodeType)c=b.nodeValue;else if(b.innerText)c=b.innerText;else if(b.innerHTML)c=b.innerHTML;else if(b.firstChild){c=[];for(b=b.firstChild;b;b=b.nextSibling)c.push(a(b));c=c.join("")}return c}_.Ue.createElement=function(b){if(!document.body||document.body.namespaceURI)try{var c=document.createElementNS("http://www.w3.org/1999/xhtml",b)}catch(d){}return c||document.createElement(b)};_.Ue.DL=function(b){var c=_.Ue.createElement("iframe");try{var d=
["<","iframe"],e=b||{},f;for(f in e)e.hasOwnProperty(f)&&(d.push(" "),d.push(f),d.push('="'),d.push(_.Ue.GC(e[f])),d.push('"'));d.push("></");d.push("iframe");d.push(">");var h=_.Ue.createElement(d.join(""));h&&(!c||h.tagName==c.tagName&&h.namespaceURI==c.namespaceURI)&&(c=h)}catch(l){}d=c;b=b||{};for(var k in b)b.hasOwnProperty(k)&&(d[k]=b[k]);return c};_.Ue.cN=function(){if(document.body)return document.body;try{var b=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","body");if(b&&
1==b.length)return b[0]}catch(c){}return document.documentElement||document};_.Ue.Eea=function(b){return a(b)}})();
_.ug=window.gapi&&window.gapi.util||{};
_.ug=_.ug={};_.ug.getOrigin=function(a){return _.wg(a)};
_.yy=function(a){if(0!==a.indexOf("GCSC"))return null;var b={Ii:!1};a=a.substr(4);if(!a)return b;var c=a.charAt(0);a=a.substr(1);var d=a.lastIndexOf("_");if(-1==d)return b;var e=_.wy(a.substr(d+1));if(null==e)return b;a=a.substring(0,d);if("_"!==a.charAt(0))return b;d="E"===c&&e.Ke;return!d&&("U"!==c||e.Ke)||d&&!_.xy?b:{Ii:!0,Ke:d,jX:a.substr(1),domain:e.domain,fi:e.fi}};_.zy=function(a,b){this.yf=a;a=b||{};this.T1=Number(a.maxAge)||0;this.Zd=a.domain;this.xl=a.path;this.J4=!!a.secure};_.zy.prototype.read=function(){for(var a=this.yf+"=",b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c];if(0==d.indexOf(a))return d.substr(a.length)}};
_.zy.prototype.write=function(a,b){if(!Ay.test(this.yf))throw"Invalid cookie name";if(!By.test(a))throw"Invalid cookie value";a=this.yf+"="+a;this.Zd&&(a+=";domain="+this.Zd);this.xl&&(a+=";path="+this.xl);b="number"===typeof b?b:this.T1;if(0<=b){var c=new Date;c.setSeconds(c.getSeconds()+b);a+=";expires="+c.toUTCString()}this.J4&&(a+=";secure");document.cookie=a;return!0};_.zy.prototype.clear=function(){this.write("",0)};var By=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,Ay=/^[A-Z_][A-Z0-9_]{0,63}$/;
_.zy.iterate=function(a){for(var b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c].split("="),e=d.shift();a(e,d.join("="))}};_.Cy=function(a){this.Ji=a};_.Cy.prototype.read=function(){if(Dy.hasOwnProperty(this.Ji))return Dy[this.Ji]};_.Cy.prototype.write=function(a){Dy[this.Ji]=a;return!0};_.Cy.prototype.clear=function(){delete Dy[this.Ji]};var Dy={};_.Cy.iterate=function(a){for(var b in Dy)Dy.hasOwnProperty(b)&&a(b,Dy[b])};var Ey=function(){this.Oa=null;this.key=function(){return null};this.getItem=function(){return this.Oa};this.setItem=function(a,b){this.Oa=b;this.length=1};this.removeItem=function(){this.clear()};this.clear=function(){this.Oa=null;this.length=0};this.length=0},Fy=function(a){try{var b=a||window.sessionStorage;if(!b)return!1;b.setItem("gapi.sessionStorageTest","gapi.sessionStorageTest"+b.length);b.removeItem("gapi.sessionStorageTest");return!0}catch(c){return!1}},Gy=function(a,b){this.yf=a;this.ZI=
Fy(b)?b||window.sessionStorage:new Ey};Gy.prototype.read=function(){return this.ZI.getItem(this.yf)};Gy.prototype.write=function(a){try{this.ZI.setItem(this.yf,a)}catch(b){return!1}return!0};Gy.prototype.clear=function(){this.ZI.removeItem(this.yf)};Gy.iterate=function(a){if(Fy())for(var b=0,c=window.sessionStorage.length;b<c;++b){var d=window.sessionStorage.key(b);a(d,window.sessionStorage[d])}};_.xy="https:"===window.location.protocol;_.Hy=_.xy||"http:"===window.location.protocol?_.zy:_.Cy;_.wy=function(a){var b=a.substr(1),c="",d=window.location.hostname;if(""!==b){c=parseInt(b,10);if(isNaN(c))return null;b=d.split(".");if(b.length<c-1)return null;b.length==c-1&&(d="."+d)}else d="";return{Ke:"S"==a.charAt(0),domain:d,fi:c}};var Iy,Jy,My,Ny;Iy=_.ye();Jy=_.ye();_.Ky=_.ye();_.Ly=_.ye();My="state code cookie_policy g_user_cookie_policy authuser prompt g-oauth-window status".split(" ");Ny=function(a){this.KQ=a;this.nF=null};
Ny.prototype.write=function(a){var b=_.ye(),c=_.ye(),d=window.decodeURIComponent?decodeURIComponent:unescape,e;for(e in a)if(_.ze(a,e)){var f=a[e];f=f.replace(/\+/g," ");c[e]=d(f);b[e]=a[e]}d=My.length;for(e=0;e<d;++e)delete c[My[e]];a=String(a.authuser||0);d=_.ye();d[a]=c;c=_.Ff(d);this.KQ.write(c);this.nF=b};Ny.prototype.read=function(){return this.nF};Ny.prototype.clear=function(){this.KQ.clear();this.nF=_.ye()};_.Oy=function(a){return a?{domain:a.domain,path:"/",secure:a.Ke}:null};
Gy.iterate(function(a){var b=_.yy(a);b&&b.Ii&&(Iy[a]=new Ny(new Gy(a)))});_.Hy.iterate(function(a){Iy[a]&&(Jy[a]=new _.Hy(a,_.Oy(_.yy(a))))});
_.Vh=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(q){for(var p=h,t=0;64>t;t+=4)p[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],r=e[2],w=e[3],z=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var A=w^v&(r^w);var D=1518500249}else A=v^r^w,D=1859775393;else 60>t?(A=v&r|w&(v|r),D=2400959708):(A=v^r^w,D=3395469782);A=((q<<5|q>>>27)&4294967295)+
A+z+D+p[t]&4294967295;z=w;w=r;r=(v<<30|v>>>2)&4294967295;v=q;q=A}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+r&4294967295;e[3]=e[3]+w&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,r=q.length;v<r;++v)t.push(q.charCodeAt(v));q=t}p||(p=q.length);t=0;if(0==m)for(;t+64<p;)b(q.slice(t,t+64)),t+=64,n+=64;for(;t<p;)if(f[m++]=q[t++],n++,64==m)for(m=0,b(f);t+64<p;)b(q.slice(t,t+64)),t+=64,n+=64}function d(){var q=[],
p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var t=63;56<=t;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;5>t;t++)for(var v=24;0<=v;v-=8)q[p++]=e[t]>>v&255;return q}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,ei:function(){for(var q=d(),p="",t=0;t<q.length;t++)p+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return p}}};var Xh=function(a,b,c){var d=String(_.u.location.href);return d&&a&&b?[b,Wh(_.wg(d),a,c||null)].join(" "):null},Wh=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Rb(d,function(k){e.push(k)}),Yh(e.join(" "));var f=[],h=[];_.Rb(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];_.Rb(d,function(k){e.push(k)});a=Yh(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},Yh=function(a){var b=
_.Vh();b.update(a);return b.ei().toLowerCase()};var ai;_.Zh=function(a){return!!_.Rh.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.$h=function(a){a=void 0===a?!1:a;var b=_.u.__SAPISID||_.u.__APISID||_.u.__3PSAPISID||_.u.__OVERRIDE_SID;_.Zh(a)&&(b=b||_.u.__1PSAPISID);if(b)return!0;var c=new _.Sh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");_.Zh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};ai=function(a,b,c,d){(a=_.u[a])||(a=(new _.Sh(document)).get(b));return a?Xh(a,c,d):null};
_.bi=function(a,b){b=void 0===b?!1:b;var c=_.wg(String(_.u.location.href)),d=[];if(_.$h(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.u.__SAPISID:_.u.__APISID;e||(e=new _.Sh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Xh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&_.Zh(b)&&((b=ai("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ai("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
_.ci=function(a,b){var c={SAPISIDHASH:!0,SAPISID3PHASH:!0,APISIDHASH:!0};_.Zh(void 0===b?!1:b)&&(c.SAPISID1PHASH=!0);return a&&(a.OriginToken||a.Authorization&&c[String(a.Authorization).split(" ")[0]])?!0:!1};_.di={mO:_.ci,g1:_.$h,yN:function(){var a=null;_.$h()&&(a=window.__PVT,null==a&&(a=(new _.Sh(document)).get("BEAT")));return a},aN:_.bi};
_.Oq=function(){return!_.Nq()&&(_.qb("iPod")||_.qb("iPhone")||_.qb("Android")||_.qb("IEMobile"))};_.Nq=function(){return _.qb("iPad")||_.qb("Android")&&!_.qb("Mobile")||_.qb("Silk")};
var Vx;_.Sx=function(a){for(var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};_.Tx=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}};
_.Ux=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};
Vx=function(a){var b=_.ob();if("Internet Explorer"===a)return _.sb()?_.Ux(b):"";b=_.Sx(b);var c=_.Tx(b);switch(a){case "Opera":if(_.rb())return c(["Version","Opera"]);if(_.qb("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(_.qb("Edge"))return c(["Edge"]);if(_.qb("Edg/"))return c(["Edg"]);break;case "Chromium":if(_.ub())return c(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&_.tb()||"Safari"===a&&_.vb()||"Android Browser"===a&&_.wb()||"Silk"===a&&_.qb("Silk")?(a=b[2])&&a[1]||"":
""};_.Wx=function(a){a=Vx(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])};_.Xx=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.M)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.M)(a.handleEvent,a);else throw Error("za");return 2147483647<Number(b)?-1:_.u.setTimeout(a,b||0)};_.Yx=function(a){_.u.clearTimeout(a)};
_.Py=function(a){_.Ri.call(this);this.Ji=1;this.gz=[];this.nz=0;this.Gf=[];this.Yi={};this.AW=!!a};_.ab(_.Py,_.Ri);_.g=_.Py.prototype;_.g.subscribe=function(a,b,c){var d=this.Yi[a];d||(d=this.Yi[a]=[]);var e=this.Ji;this.Gf[e]=a;this.Gf[e+1]=b;this.Gf[e+2]=c;this.Ji=e+3;d.push(e);return e};_.g.ou=_.ea(19);_.g.unsubscribe=function(a,b,c){if(a=this.Yi[a]){var d=this.Gf;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.ik(a)}return!1};
_.g.ik=function(a){var b=this.Gf[a];if(b){var c=this.Yi[b];0!=this.nz?(this.gz.push(a),this.Gf[a+1]=function(){}):(c&&_.Hi(c,a),delete this.Gf[a],delete this.Gf[a+1],delete this.Gf[a+2])}return!!b};
_.g.zn=function(a,b){var c=this.Yi[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.AW)for(e=0;e<c.length;e++){var h=c[e];Qy(this.Gf[h+1],this.Gf[h+2],d)}else{this.nz++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.Gf[h+1].apply(this.Gf[h+2],d)}finally{if(this.nz--,0<this.gz.length&&0==this.nz)for(;c=this.gz.pop();)this.ik(c)}}return 0!=e}return!1};var Qy=function(a,b,c){_.Yj(function(){a.apply(b,c)})};
_.Py.prototype.clear=function(a){if(a){var b=this.Yi[a];b&&(b.forEach(this.ik,this),delete this.Yi[a])}else this.Gf.length=0,this.Yi={}};_.Py.prototype.Ib=function(a){if(a){var b=this.Yi[a];return b?b.length:0}a=0;for(b in this.Yi)a+=this.Ib(b);return a};_.Py.prototype.ta=function(){_.Py.H.ta.call(this);this.clear();this.gz.length=0};
_.Ry=function(a){this.r6=a};_.Ry.prototype.toString=function(){return this.r6};_.Sy=function(a){_.Ri.call(this);this.Rd=new _.Py(a);_.Ti(this,this.Rd)};_.ab(_.Sy,_.Ri);_.g=_.Sy.prototype;_.g.subscribe=function(a,b,c){return this.Rd.subscribe(a.toString(),b,c)};_.g.ou=_.ea(18);_.g.unsubscribe=function(a,b,c){return this.Rd.unsubscribe(a.toString(),b,c)};_.g.ik=function(a){return this.Rd.ik(a)};_.g.zn=function(a,b){return this.Rd.zn(a.toString(),b)};_.g.clear=function(a){this.Rd.clear(void 0!==a?a.toString():void 0)};
_.g.Ib=function(a){return this.Rd.Ib(void 0!==a?a.toString():void 0)};
_.Wy=function(){_.Vy="oauth2relay"+String(2147483647*(0,_.Dg)()|0)};_.Xy=new _.Sy;_.Yy=new _.Ry("oauth");_.Wy();_.Re("oauth-flow/client_id");var Zy=String(_.Re("oauth-flow/redirectUri"));if(Zy)Zy.replace(/[#][\s\S]*/,"");else{var $y=_.ug.getOrigin(window.location.href);_.Re("oauth-flow/callbackUrl");encodeURIComponent($y)}_.ug.getOrigin(window.location.href);
var bz,cz,dz,ez,fz,gz,hz,iz,jz,kz,lz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,yz,zz,Az,Bz,Cz,Dz,Ez,Fz,Gz,Hz,Iz,Jz,Kz,Lz,Mz,Nz,Oz,Pz,Sz,Rz,Tz,Uz,Vz,Wz,Xz,Yz,Zz,$z,aA,cA;_.az=function(a,b){if(_.uh&&!b)return _.u.atob(a);var c="";_.xh(a,function(d){c+=String.fromCharCode(d)});return c};bz=function(a){var b=String(a("immediate")||"");a=String(a("prompt")||"");return"true"===b||"none"===a};cz=function(a){return _.Oh("enableMultilogin")&&a("cookie_policy")&&!bz(a)?!0:!1};
fz=function(){var a,b=null;_.Hy.iterate(function(c,d){0===c.indexOf("G_AUTHUSER_")&&(c=_.wy(c.substring(11)),!a||c.Ke&&!a.Ke||c.Ke==a.Ke&&c.fi>a.fi)&&(a=c,b=d)});return{NW:a,authuser:b}};gz=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];hz=function(a){a=a.toUpperCase();for(var b=0,c=gz.length;b<c;++b){var d=a.split(gz[b]);2==d.length&&""===d[1]&&(a=d[0])}a=a.replace(/-/g,"_").toUpperCase();40<a.length&&(b=new _.Cg,b.Hu(a),a=b.ei().toUpperCase());return a};
iz=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};jz=function(a){a=a.split(":");return{clientId:a[0].split("=")[1],V4:iz(a[1]),wfa:iz(a[2]),nea:iz(a[3])}};kz=function(a){var b=fz(),c=b.NW;b=b.authuser;var d=a&&hz(a);if(null!==b){var e;_.Hy.iterate(function(h,k){(h=_.yy(h))&&h.Ii&&(d&&h.jX!=d||h.Ke==c.Ke&&h.fi==c.fi&&(e=k))});if(e){var f=jz(e);a=f&&f.V4[Number(b)];f=f&&f.clientId;if(a)return{authuser:b,rga:a,clientId:f}}}return null};
lz=function(a,b){a=_.fi(a);if(!a||!b&&a.error)return null;b=Math.floor((new Date).getTime()/1E3);return a.expires_at&&b>a.expires_at?null:a};_.mz=function(a,b){if(b){var c=b;var d=a}else"string"===typeof a?d=a:c=a;c?_.mw(c,d):_.nw(d)};
nz=function(a){if(!a)return null;"single_host_origin"!==a&&(a=_.wg(a));var b=window.location.hostname,c=b,d=_.xy;if("single_host_origin"!==a){c=a.split("://");if(2==c.length)d="https"===c.shift();else return _.Jf.log("WARNING invalid cookie_policy: "+a),null;c=c[0]}if(-1!==c.indexOf(":"))c=b="";else{a="."+c;if(b.lastIndexOf(a)!==b.length-a.length)return _.Jf.log("Invalid cookie_policy domain: "+c),null;c=a;b=c.split(".").length-1}return{domain:c,Ke:d,fi:b}};
oz=function(a){var b=nz(a);if(!b)return new _.Cy("G_USERSTATE_");a=["G_USERSTATE_",_.xy&&b.Ke?"S":"H",b.fi].join("");var c=_.Ly[a];c||(c={lF:63072E3},_.Ae(_.Oy(b),c),c=new _.zy(a,c),_.Ly[a]=c,b=c.read(),"undefined"!==typeof b&&null!==b&&(document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/",c.write(b)));return c};pz=function(a){var b=oz(a).read();a=_.ye();if(b){b=b.split(":");for(var c;c=b.shift();)c=c.split("="),a[c[0]]=c[1]}return a};
qz=function(a,b,c){var d=pz(b),e=d[a];d[a]="0";var f=[];_.om(d,function(k,l){f.push(l+"="+k)});var h=f.join(":");b=oz(b);h?b.write(h):b.clear();d[a]!==e&&c&&c()};rz=function(a){a=nz(a.g_user_cookie_policy);if(!a||a.Ke&&!_.xy)a=null;else{var b=["G_AUTHUSER_",_.xy&&a.Ke?"S":"H",a.fi].join(""),c=_.Ky[b];c||(c=new _.Hy(b,_.Oy(a)),_.Ky[b]=c);a=c}_.Se("googleapis.config/sessionIndex",null);a.clear()};sz=function(a){return bz(function(b){return a[b]})};tz=0;uz=!1;vz=[];wz={};xz={};yz=null;
zz=function(a){var b=_.Vy;return function(c){if(this.f==b&&this.t==_.Pf.ym(this.f)&&this.origin==_.Pf.Lm(this.f))return a.apply(this,arguments)}};Az=function(a){if(a&&!decodeURIComponent(a).startsWith("m;/_/scs/"))throw Error("Ea");};Bz=function(a){var b=_.Ue.Cg,c=b(a).jsh;if(null!=c)return Az(c),a;if(b=String(b().jsh||_.Je.h||""))Az(b),c=(a+"#").indexOf("#"),a=a.substr(0,c)+(-1!==a.substr(0,c).indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(b)+a.substr(c);return a};Cz=function(){return!!_.Re("oauth-flow/usegapi")};
Dz=function(a,b){Cz()?yz.unregister(a):_.Pf.unregister(a+":"+b)};Ez=function(a,b,c){Cz()?yz.register(a,c,_.Dm):_.Pf.register(a+":"+b,zz(c))};Fz=function(){dz.parentNode.removeChild(dz)};Gz=function(a){var b=dz;_.Ty(b,[{mz:"-webkit-transform",duration:1,timing:"ease",delay:0}]);_.Ty(b,[{mz:"transform",duration:1,timing:"ease",delay:0}]);_.Xx(function(){b.style.webkitTransform="translate3d(0px,"+a+"px,0px)";b.style.transform="translate3d(0px,"+a+"px,0px)"},0)};Hz=function(){var a=ez+88;Gz(a);ez=a};
Iz=function(){var a=ez-88;Gz(a);ez=a};Jz=function(a){var b=a?Hz:Iz,c=a?Iz:Hz;a=a?"-":"";ez=parseInt(a+88,10);dz.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";dz.style.transform="translate3d(0px,"+a+88+"px,0px)";dz.style.display="";dz.style.visibility="visible";b();_.Xx(c,4E3);_.Xx(Fz,5E3)};
Kz=function(a){var b=_.Re("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=document.createElement("div");dz=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";_.Pr(c,"visibility","hidden");_.Pr(c,b,"-40px");_.Pr(c,"height","128px");var d=c;if(!_.Oq()&&!_.Nq()){d=document.createElement("div");d.style.cssText="float:left;position:relative;left:50%;";c.appendChild(d);var e=document.createElement("div");e.style.cssText="float:left;position:relative;left:-50%";d.appendChild(e);
d=e}e="top"==b?"-":"";ez=parseInt(e+88,10);dz.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";dz.style.transform="translate3d(0px,"+e+88+"px,0px)";e=window;try{for(;e.parent!=e&&e.parent.document;)e=e.parent}catch(f){}e=e.document.body;try{e.insertBefore(c,e.firstChild)}catch(f){}_.Am.openChild({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?Jz(!0):Jz(!1)}})};
Lz=function(a){var b=_.Yn(),c=b&&b.scope;b=a&&a.scope;b="string"===typeof b?b.split(" "):b||[];if(c){c=c.split(" ");for(var d=0;d<c.length;++d){var e=c[d];-1==_.jm.call(b,e)&&b.push(e)}0<b.length&&(a.scope=b.join(" "))}return a};
Mz=function(a,b){var c=null;a&&b&&(c=b.client_id=b.client_id||a.client_id,b.scope=b.scope||a.scope,b.g_user_cookie_policy=a.cookie_policy,b.cookie_policy=b.cookie_policy||a.cookie_policy,b.response_type=b.response_type||a.response_type);if(b){b.issued_at||(b.issued_at=String(Math.floor((new Date).getTime()/1E3)));var d=parseInt(b.expires_in,10)||86400;b.error&&(d=_.Re("oauth-flow/errorMaxAge")||86400);b.expires_in=String(d);b.expires_at||(b.expires_at=String(Math.floor((new Date).getTime()/1E3)+d));
b._aa||b.error||null!=kz(c)||!sz(a)||(b._aa="1");a=b.status={};a.google_logged_in=!!b.session_state;c=a.signed_in=!!b.access_token;a.method=c?b["g-oauth-window"]?"PROMPT":"AUTO":null}return b};Nz=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+)\.?\.?\.?$/,"$1");a=_.Ef(_.az(a,!0));if(!1===a)throw Error("Fa");return a};Oz=function(a){return(a=Nz(a))?a.sub:null};
Pz=function(a){a&&vz.push(a);a=_.Vy;var b=document.getElementById(a),c=(new Date).getTime();if(b){if(tz&&6E4>c-tz)return;var d=_.Pf.ym(a);d&&(Dz("oauth2relayReady",d),Dz("oauth2callback",d));b.parentNode.removeChild(b);if(/Firefox/.test(navigator.userAgent))try{window.frames[a]=void 0}catch(f){}_.Wy();a=_.Vy}tz=c;var e=String(2147483647*(0,_.Dg)()|0);b=_.Re("oauth-flow/proxyUrl")||_.Re("oauth-flow/relayUrl");Cz()?yz=_.Am.openChild({where:_.Ue.cN(),url:b,id:a,attributes:{style:{width:"1px",height:"1px",
position:"absolute",top:"-100px",display:"none"},"aria-hidden":"true"},dontclear:!0}):(b=[b,"?parent=",encodeURIComponent(_.ug.getOrigin(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.Ue.cN(),d=_.Ue.DL({name:a,id:a}),d.src=Bz(b),d.style.width="1px",d.style.height="1px",d.style.position="absolute",d.style.top="-100px",d.tabIndex=-1,"function"===typeof d.setAttribute?d.setAttribute("aria-hidden","true"):d["aria-hidden"]="true",c.appendChild(d),_.Pf.bu(a));Ez("oauth2relayReady",
e,function(){Dz("oauth2relayReady",e);var f=vz;if(null!==f){vz=null;for(var h=f.length,k=0;k<h;++k)f[k]()}});Ez("oauth2callback",e,function(f){var h=_.Ue.Cg;h=h(f);var k=h.state;f=k.replace(/\|.*$/,"");f={}.hasOwnProperty.call(xz,f)?xz[f]:null;h.state=f;if(null!=h.state){f=wz[k];delete wz[k];k=f&&f.key||"token";var l=h=Mz(f&&f.params,h),m=Oz(l);if(m){var n=pz(l.cookie_policy);m="0"==n[m]||"X"==n[m]}else m=!1;!m&&l&&0<=(" "+(l.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&
_.Re("isLoggedIn")&&"1"===(l&&l._aa)&&(l._aa="0",uz||(uz=!0,Kz(l)));_.mz(k,h);h=lz(k);if(f){k=f.popup;l=f.after_redirect;if(k&&"keep_open"!=l)try{k.close()}catch(q){}f.callback&&(f.callback(h),f.callback=null)}}})};_.Qz=function(a){null!==vz?Pz(a):a&&a()};
Sz=function(a,b){var c=Rz,d=Oz(a);d&&(rz(a),qz(d,b,function(){if(c){var e={error:"user_signed_out"};e.client_id=a.client_id;e.g_user_cookie_policy=a.g_user_cookie_policy;e.scope=a.scope;e.response_type=a.response_type;e.session_state=a.session_state;e=Mz(null,e);c(e)}}))};
Rz=function(a){a||(a=lz(void 0,!0));a&&"object"===typeof a||(a={error:"invalid_request",error_description:"no callback data"});var b=a.error_description;b&&window.console&&(window.console.error(a.error),window.console.error(b));a.error||(_.Je.drw=null);_.mz(a);if(b=a.authuser)_.Re("googleapis.config/sessionIndex"),_.Se("googleapis.config/sessionIndex",b);_.Xy.zn(_.Yy,a);return a};Tz=["client_id","cookie_policy","response_type"];Uz="client_id response_type login_hint authuser prompt include_granted_scopes after_redirect access_type hl state".split(" ");
Vz=function(a){var b=_.Cj(a);b.session_state&&b.session_state.extraQueryParams&&(b.authuser=b.session_state.extraQueryParams.authuser);b.session_state=null;a.expires_at&&(b.expires_at=parseInt(a.expires_at/1E3).toString());a.expires_in&&(b.expires_in=a.expires_in.toString());a.first_issued_at&&(b.issued_at=parseInt(a.first_issued_at/1E3).toString(),delete b.first_issued_at);_.mw(b);return b};
Wz=function(a){if(void 0===a.include_granted_scopes){var b=_.Re("include_granted_scopes");a.include_granted_scopes=!!b}};Xz=function(a){window.console&&("function"===typeof window.console.warn?window.console.warn(a):"function"===typeof window.console.log&&window.console.log(a))};
Yz=function(a){var b=a||{},c={};_.Rb(Uz,function(d){null!=b[d]&&(c[d]=b[d])});a=_.Re("googleapis/overrideClientId");null!=a&&(c.client_id=a);Wz(c);"string"===typeof b.scope?c.scope=b.scope:Array.isArray(b.scope)&&(c.scope=b.scope.join(" "));null!=b["openid.realm"]&&(c.openid_realm=b["openid.realm"]);null!=b.cookie_policy?c.cookie_policy=b.cookie_policy:null!=b.cookiepolicy&&(c.cookie_policy=b.cookiepolicy);null==c.login_hint&&null!=b.user_id&&(c.login_hint=b.user_id);try{_.cx(c.cookie_policy)}catch(d){c.cookie_policy&&
Xz("The cookie_policy configuration: '"+c.cookie_policy+"' is illegal, and thus ignored."),delete c.cookie_policy}null!=b.hd&&(c.hosted_domain=b.hd);null==c.prompt&&(1==b.immediate||"true"==b.immediate?c.prompt="none":"force"==b.approval_prompt&&(c.prompt="consent"));"none"==c.prompt&&(c.session_selection="first_valid");"none"==c.prompt&&"offline"==c.access_type&&delete c.access_type;"undefined"===typeof c.authuser&&(a=_.Qh(),null!=a&&(c.authuser=a));a=b.redirect_uri||_.Re("oauth-flow/redirectUri");
null!=a&&"postmessage"!=a&&(c.redirect_uri=a);c.gsiwebsdk="shim";return c};
Zz=function(a,b){var c=Yz(a),d=new _.bk(function(e,f){_.Jx(c,function(h){var k=h||{};_.Rb(Tz,function(l){null==k[l]&&(k[l]=c[l])});!c.include_granted_scopes&&a&&a.scope&&(k.scope=a.scope);a&&null!=a.state&&(k.state=a.state);k.error?("none"==c.prompt&&"user_logged_out"==k.error&&(k.error="immediate_failed_user_logged_out"),f(k)):(h=Vz(k),null!=h.authuser&&_.Se("googleapis.config/sessionIndex",h.authuser),e(h))})});b&&d.then(b,b);return d};$z=_.di.aN;aA=null;
_.dA=function(a,b){if("force"!==a.approvalprompt){a=_.bA(a);a.prompt="none";delete a.redirect_uri;delete a.approval_prompt;delete a.immediate;if(b=!b)aA?(a.client_id!==aA.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+a.client_id),b=!0):(aA=a,b=!1);b||cA(a)}};
_.bA=function(a){var b=a.redirecturi||"postmessage",c=(0,_.mc)((a.scope||"").replace(/[\s\xa0]+/g," "));b={client_id:a.clientid,redirect_uri:b,response_type:"code token id_token gsession",scope:c};a.approvalprompt&&(b.approval_prompt=a.approvalprompt);a.state&&(b.state=a.state);a.openidrealm&&(b["openid.realm"]=a.openidrealm);c="offline"==a.accesstype?!0:(c=a.redirecturi)&&"postmessage"!=c;c&&(b.access_type="offline");a.requestvisibleactions&&(b.request_visible_actions=(0,_.mc)(a.requestvisibleactions.replace(/[\s\xa0]+/g,
" ")));a.after_redirect&&(b.after_redirect=a.after_redirect);a.cookiepolicy&&"none"!==a.cookiepolicy&&(b.cookie_policy=a.cookiepolicy);"undefined"!=typeof a.includegrantedscopes&&(b.include_granted_scopes=a.includegrantedscopes);a.e&&(b.e=a.e);(a=a.authuser||_.Re("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.Re("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b};cA=function(a){_.Io("waaf0","signin","0");Zz(a,function(b){_.Io("waaf1","signin","0");Rz(b)})};
_.eA=function(a){a=_.bA(a);_.Se("oauth-flow/authWindowWidth",445);_.Se("oauth-flow/authWindowHeight",615);cA(a)};_.fA=function(a){_.Xy.unsubscribe(_.Yy,a);_.Xy.subscribe(_.Yy,a)};var mA,pA;_.hA=function(a){return a.cookiepolicy?!0:(_.gA("cookiepolicy is a required field.  See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.gA=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.lA=function(a,b){var c=_.Yn();_.Ae(a,c);c=Lz(c);if(_.hA(c)){var d=_.iA();_.jA(c);b?_.Ie(b,"click",function(){_.kA(c,d)}):_.kA(c,d)}};
_.iA=function(){var a=new mA;_.fA(function(b){a.mF&&b&&(b.access_token&&_.Se("isPlusUser",!0),b["g-oauth-window"]&&(a.mF=!1,_.Jf.warn("OTA app install is no longer supported.")))});return a};mA=function(){this.mF=!1};_.jA=function(a){a=_.nA(a);_.oA(a.callback);_.Qz(function(){_.dA(a)})};_.nA=function(a){pA(a);a.redirecturi&&delete a.redirecturi;cz(function(b){return a[b]})||(a.authuser=0);return a};pA=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")};
_.oA=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.gA('Callback function named "'+a+'" not found');return}a&&_.fA(a)};_.kA=function(a,b){b.mF=!0;a=_.nA(a);_.eA(a)};_.E("gapi.auth.authorize",Zz);_.E("gapi.auth.checkSessionState",function(a,b){var c=_.ye();c.client_id=a.client_id;c.session_state=a.session_state;_.Qz(function(){Cz()?yz.send("check_session_state",c,function(d){b.call(null,d[0])},_.Dm):_.Pf.call(_.Vy,"check_session_state",zz(function(d){b.call(null,d)}),c.session_state,c.client_id)})});_.E("gapi.auth.getAuthHeaderValueForFirstParty",$z);_.E("gapi.auth.getToken",lz);
_.E("gapi.auth.getVersionInfo",function(a,b){_.Qz(function(){var c=_.bi()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?Cz()?yz.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(f){a(f[0])},_.Dm):_.Pf.call(_.Vy,"get_versioninfo",zz(function(f){a(f)}),d,b):a()})});_.E("gapi.auth.init",_.Qz);_.E("gapi.auth.setToken",_.mz);_.E("gapi.auth.signIn",function(a){_.lA(a)});_.E("gapi.auth.signOut",function(){var a=lz();a&&Sz(a,a.cookie_policy)});
_.E("gapi.auth.unsafeUnpackIdToken",Nz);_.E("gapi.auth._pimf",_.dA);_.E("gapi.auth._oart",Kz);_.E("gapi.auth._guss",function(a){return oz(a).read()});
var qA=_.Yn();qA.clientid&&qA.scope&&qA.callback&&!_.Re("disableRealtimeCallback")&&_.jA(qA);
});
// Google Inc.
