gapi.loaded_1(function(_){var window=this;
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Wg=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 Xg,Yg,$g;Xg={};Yg=null;_.Zg=_.dd||_.ed||!_.Vg&&!_.ad&&"function"==typeof _.u.atob;_.ah=function(a,b){void 0===b&&(b=0);$g();b=Xg[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("")};
_.bh=function(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),n=Yg[m];if(null!=n)return n;if(!_.hc(m))throw Error("C`"+m);}return l}$g();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))}};
$g=function(){if(!Yg){Yg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Xg[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Yg[f]&&(Yg[f]=e)}}}};

_.yh={};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Ah;_.zh=function(a){this.ub=a||{cookie:""}};_.g=_.zh.prototype;_.g.isEnabled=function(){if(!_.u.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{bF: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.aga;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.bF}if(/[;=\s]/.test(a))throw Error("F`"+a);if(/[;\r\n]/.test(b))throw Error("G`"+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,_.ic)(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.Xh(a);this.set(a,"",{bF:0,path:b,domain:c});return d};_.g.Tf=function(){return Ah(this).keys};_.g.Xc=function(){return Ah(this).values};_.g.isEmpty=function(){return!this.ub.cookie};_.g.Ib=function(){return this.ub.cookie?(this.ub.cookie||"").split(";").length:0};
_.g.Xh=function(a){return void 0!==this.get(a)};_.g.nj=function(a){for(var b=Ah(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};_.g.clear=function(){for(var a=Ah(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};Ah=function(a){a=(a.ub.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=(0,_.ic)(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}};
_.Bh=new _.zh("undefined"==typeof document?null:document);

_.Mh={};_.Nh=function(a){return _.Mh[a||"token"]||null};

var pu,qu,ru,su,tu,vu,wu,xu,yu,Au;_.ou=!1;pu=function(a){try{_.ou&&window.console&&window.console.log&&window.console.log(a)}catch(b){}};qu=function(a){try{window.console&&window.console.warn&&window.console.warn(a)}catch(b){}};ru=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};
su=function(a,b){function c(){}if(!a)throw Error("T");if(!b)throw Error("U");c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};tu=function(a){return"[object Function]"===Object.prototype.toString.call(a)};_.uu=function(a){var b={};if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};vu=function(a){var b=location.hash;a=new RegExp("[&#]"+a+"=([^&]*)");b=decodeURIComponent(b);b=a.exec(b);return null==b?"":b[1].replace(/\+/g," ")};
wu=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else throw Error("V`"+b);};xu={token:1,id_token:1};yu=function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("msie")&&8==parseInt(a.split("msie")[1],10)};_.zu=window.JSON;Au=function(a){this.sJ=a||[];this.Xb={}};
Au.prototype.addEventListener=function(a,b){if(!(0<=ru(this.sJ,a)))throw Error("X`"+a);if(!tu(b))throw Error("Y`"+a);this.Xb[a]||(this.Xb[a]=[]);0>ru(this.Xb[a],b)&&this.Xb[a].push(b)};Au.prototype.removeEventListener=function(a,b){if(!(0<=ru(this.sJ,a)))throw Error("X`"+a);tu(b)&&this.Xb[a]&&this.Xb[a].length&&(b=ru(this.Xb[a],b),0<=b&&this.Xb[a].splice(b,1))};
Au.prototype.dispatchEvent=function(a){var b=a.type;if(!(b&&0<=ru(this.sJ,b)))throw Error("Z`"+b);if(this.Xb[b]&&this.Xb[b].length)for(var c=0,d=this.Xb[b].length;c<d;c++)this.Xb[b][c](a)};
var Bu,Cu,Du,Hu,Iu,Zu,$u,bv,cv,ev,ov;Bu={};Cu={};Du={google:{authServerUrl:"https://accounts.google.com/o/oauth2/auth",idpIFrameUrl:"https://accounts.google.com/o/oauth2/iframe"}};_.Eu=function(a,b){if(a=Du[a])return a[b]};_.Fu=function(a,b){if(!a)throw Error("$");if(!b.authServerUrl)throw Error("aa");if(!b.idpIFrameUrl)throw Error("ba");Du[a]={authServerUrl:b.authServerUrl,idpIFrameUrl:b.idpIFrameUrl}};_.Gu=void 0;
Hu=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")};Iu=function(){this.A6=window;this.Xv=this.lm=this.Ct=this.Ih=null};
Iu.prototype.open=function(a,b,c,d){Ju(this);this.Ct?(this.lm&&(this.lm(),this.lm=null),Ku(this)):this.Ct="authPopup"+Math.floor(1E6*Math.random()+1);a:{this.Ih=this.A6.open(a,this.Ct,b);try{this.Ih.focus();if(this.Ih.closed||"undefined"==typeof this.Ih.closed)throw Error("da");_.Gu=this.Ih}catch(e){d&&setTimeout(d,0);this.Ih=null;break a}c&&(this.lm=c,Lu(this))}};
var Ju=function(a){try{if(null==a.Ih||a.Ih.closed)a.Ih=null,a.Ct=null,Ku(a),a.lm&&(a.lm(),a.lm=null)}catch(b){a.Ih=null,a.Ct=null,Ku(a)}},Lu=function(a){a.Xv=window.setInterval(function(){Ju(a)},300)},Ku=function(a){a.Xv&&(window.clearInterval(a.Xv),a.Xv=null)};Cu=Cu||{};var Mu=function(a,b){this.Sb=a;this.BE=b;this.ld=null;this.Tm=!1};Mu.prototype.start=function(){if(!this.Tm&&!this.ld){var a=this;this.ld=window.setTimeout(function(){a.clear();a.Tm||(a.Sb(),a.Tm=!0)},Cu.yN(this.BE))}};
Mu.prototype.clear=function(){this.ld&&(window.clearTimeout(this.ld),this.ld=null)};var Nu=function(a,b){var c=Cu.Yq;this.W_=Cu.Sq;this.cT=c;this.Sb=a;this.BE=b;this.ld=null;this.Tm=!1;var d=this;this.dT=function(){document[d.W_]||(d.clear(),d.start())}};Nu.prototype.start=function(){if(!this.Tm&&!this.ld){wu(document,this.cT,this.dT);var a=this;this.ld=window.setTimeout(function(){a.clear();a.Tm||(a.Sb(),a.Tm=!0)},Cu.yN(this.BE))}};
Nu.prototype.clear=function(){var a=this.cT,b=this.dT,c=document;if(c.removeEventListener)c.removeEventListener(a,b,!1);else if(c.detachEvent)c.detachEvent("on"+a,b);else throw Error("W`"+a);this.ld&&(window.clearTimeout(this.ld),this.ld=null)};Cu.Sq=null;Cu.Yq=null;
Cu.s0=function(){var a=document;"undefined"!==typeof a.hidden?(Cu.Sq="hidden",Cu.Yq="visibilitychange"):"undefined"!==typeof a.msHidden?(Cu.Sq="msHidden",Cu.Yq="msvisibilitychange"):"undefined"!==typeof a.webkitHidden&&(Cu.Sq="webkitHidden",Cu.Yq="webkitvisibilitychange")};Cu.s0();Cu.bX=function(a,b){return Cu.Sq&&Cu.Yq?new Nu(a,b):new Mu(a,b)};Cu.yN=function(a){return Math.max(1,a-(new Date).getTime())};
var Ou=function(a,b){document.cookie="G_ENABLED_IDPS="+a+";domain=."+b+";expires=Fri, 31 Dec 9999 12:00:00 GMT;path=/"},Pu=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,r=0;64>r;r+=4)p[r/4]=q[r]<<24|q[r+1]<<16|q[r+2]<<8|q[r+3];for(r=16;80>r;r++)q=p[r-3]^p[r-8]^p[r-14]^p[r-16],p[r]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],t=e[2],x=e[3],z=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var B=x^v&(t^x);var E=1518500249}else B=
v^t^x,E=1859775393;else 60>r?(B=v&t|x&(v|t),E=2400959708):(B=v^t^x,E=3395469782);B=((q<<5|q>>>27)&4294967295)+B+z+E+p[r]&4294967295;z=x;x=t;t=(v<<30|v>>>2)&4294967295;v=q;q=B}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+t&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var r=[],v=0,t=q.length;v<t;++v)r.push(q.charCodeAt(v));q=r}p||(p=q.length);r=0;if(0==m)for(;r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64;for(;r<
p;)if(f[m++]=q[r++],n++,64==m)for(m=0,b(f);r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64}function d(){var q=[],p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=p&255,p>>>=8;b(f);for(r=p=0;5>r;r++)for(var v=24;0<=v;v-=8)q[p++]=e[r]>>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,Zh:function(){for(var q=d(),p="",r=0;r<q.length;r++)p+="0123456789ABCDEF".charAt(Math.floor(q[r]/16))+"0123456789ABCDEF".charAt(q[r]%16);return p}}},Qu=
window.crypto,Ru=!1,Su=0,Tu=1,Uu=0,Vu="",Wu=function(a){a=a||window.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;Tu=Tu*b%Uu;if(3==++Su)if(a=window,b=Wu,a.removeEventListener)a.removeEventListener("mousemove",b,!1);else if(a.detachEvent)a.detachEvent("onmousemove",b);else throw Error("W`mousemove");},Xu=function(a){var b=Pu();b.update(a);return b.Zh()};Ru=!!Qu&&"function"==typeof Qu.getRandomValues;
Ru||(Uu=1E6*(screen.width*screen.width+screen.height),Vu=Xu(document.cookie+"|"+document.location+"|"+(new Date).getTime()+"|"+Math.random()),wu(window,"mousemove",Wu));Bu=Bu||{};Bu.UT="ssIFrame_";
_.Yu=function(a,b,c){c=void 0===c?!1:c;this.Cb=a;if(!this.Cb)throw Error("ea");a=_.Eu(a,"idpIFrameUrl");if(!a)throw Error("fa");this.qO=a;if(!b)throw Error("ga");this.Jl=b;a=this.qO;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.kE=a.join("");this.Z3=[location.protocol,"//",location.host].join("");
this.vu=this.jE=this.Wm=!1;this.mO=null;this.My=[];this.Wp=[];this.jj={};this.Xm=void 0;this.Gq=c};_.g=_.Yu.prototype;_.g.show=function(){var a=this.Xm;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.Vb=function(){Hu(this.Xm)};
_.g.py=function(a){if(this.Wm)a&&a(this);else{if(!this.Xm){var b=Bu.UT+this.Cb;var c=this.Cb;var d=location.hostname;var e,f=document.cookie.match("(^|;) ?G_ENABLED_IDPS=([^;]*)(;|$)");f&&2<f.length&&(e=f[2]);(f=e&&0<=ru(e.split("|"),c))?Ou(e,d):Ou(e?e+"|"+c:c,d);c=!f;var h=this.qO,k=this.Z3;d=this.Jl;e=this.Gq;e=void 0===e?!1:e;f=document.createElement("iframe");f.setAttribute("id",b);b="allow-scripts allow-same-origin";document.requestStorageAccess&&tu(document.requestStorageAccess)&&(b+=" allow-storage-access-by-user-activation");
f.setAttribute("sandbox",b);Hu(f);f.setAttribute("frame-border","0");b=[h,"#origin=",encodeURIComponent(k)];b.push("&rpcToken=");b.push(encodeURIComponent(d));c&&b.push("&clearCache=1");_.ou&&b.push("&debug=1");e&&b.push("&supportBlocked3PCookies=1");document.body.appendChild(f);f.setAttribute("src",b.join(""));this.Xm=f}a&&this.My.push(a)}};_.g.Zx=function(){return this.Wm&&this.vu};_.g.Hm=function(){return this.mO};Zu=function(a){for(var b=0;b<a.My.length;b++)a.My[b](a);a.My=[]};
_.av=function(a,b,c,d){if(a.Wm){if(a.Wm&&a.jE)throw a="Failed to communicate with IDP IFrame due to unitialization error: "+a.Hm(),pu(a),Error(a);$u(a,{method:b,params:c},d)}else a.Wp.push({Gn:{method:b,params:c},callback:d}),a.py()};$u=function(a,b,c){if(c){for(var d=b.id;!d||a.jj[d];)d=(new Date).getMilliseconds()+"-"+(1E6*Math.random()+1);b.id=d;a.jj[d]=c}b.rpcToken=a.Jl;a.Xm.contentWindow.postMessage(_.zu.stringify(b),a.kE)};bv=function(a){if(a&&0<=a.indexOf("::"))throw Error("ha");};
_.Yu.prototype.Gi=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;bv(f);b=_.uu(b);_.av(this,"getTokenResponse",{clientId:a,loginHint:c,request:b,sessionSelector:d,forceRefresh:h,skipCache:k,id:f,userInteracted:l},e)};_.Yu.prototype.oy=function(a,b,c,d,e){b=_.uu(b);_.av(this,"listIdpSessions",{clientId:a,request:b,sessionSelector:c,forceRefresh:e},d)};cv=function(a,b,c){bv(b.identifier);_.av(a,"getSessionSelector",b,c)};
_.dv=function(a,b,c,d,e){bv(b.identifier);_.av(a,"setSessionSelector",{domain:b.domain,crossSubDomains:b.crossSubDomains,policy:b.policy,id:b.id,hint:d,disabled:!!c},e)};ev=function(a,b,c,d){b={clientId:b};c&&(b.pluginName=c);_.av(a,"monitorClient",b,d)};_.Yu.prototype.revoke=_.ca(9);_.Yu.prototype.rr=_.ca(11);Bu.Ex={};Bu.kD=function(a){return Bu.Ex[a]};
Bu.py=function(a,b,c){c=void 0===c?!1:c;var d=Bu.kD(a);if(!d){d=String;if(Ru){var e=new window.Uint32Array(1);Qu.getRandomValues(e);e=Number("0."+e[0])}else e=Tu,e+=parseInt(Vu.substr(0,20),16),Vu=Xu(Vu),e/=Uu+Math.pow(16,20);d=new _.Yu(a,d(2147483647*e),c);Bu.Ex[a]=d}d.py(b)};Bu.BY=function(a){for(var b in Bu.Ex){var c=Bu.kD(b);if(c&&c.Xm&&c.Xm.contentWindow==a.source&&c.kE==a.origin)return c}};Bu.hZ=function(a){for(var b in Bu.Ex){var c=Bu.kD(b);if(c&&c.kE==a)return c}};Bu=Bu||{};
var gv=function(){var a=[],b;for(b in fv)a.push(fv[b]);Au.call(this,a);this.Xk={};pu("EventBus is ready.")};su(gv,Au);var fv={nV:"sessionSelectorChanged",lB:"sessionStateChanged",WA:"authResult",GT:"displayIFrame"},iv=function(a,b){var c=hv;a&&b&&(c.Xk[a]||(c.Xk[a]=[]),0>ru(c.Xk[a],b)&&c.Xk[a].push(b))},jv=function(a){var b=hv;a&&(b.Xk[a]||(b.Xk[a]=[]))},kv=function(a,b,c){return b&&a.Xk[b]&&0<=ru(a.Xk[b],c)};_.g=gv.prototype;
_.g.c3=function(a){var b,c=!!a.source&&(a.source===_.Gu||a.source.opener===window);if(b=c?Bu.hZ(a.origin):Bu.BY(a)){try{var d=_.zu.parse(a.data)}catch(e){pu("Bad event, an error happened when parsing data.");return}if(!c){if(!d||!d.rpcToken||d.rpcToken!=b.Jl){pu("Bad event, no RPC token.");return}if(d.id&&!d.method){c=d;if(a=b.jj[c.id])delete b.jj[c.id],a(c.result,c.error);return}}"fireIdpEvent"!=d.method?pu("Bad IDP event, method unknown."):(a=d.params)&&a.type&&this.pO[a.type]?(d=this.pO[a.type],
c&&!d.ZV?pu("Bad IDP event. Source window cannot be a popup."):d.Mq&&!d.Mq.call(this,b,a)?pu("Bad IDP event."):d.tf.call(this,b,a)):pu("Bad IDP event.")}else pu("Bad event, no corresponding Idp Stub.")};_.g.A4=function(a,b){return kv(this,a.Cb,b.clientId)};_.g.z4=function(a,b){b=b.clientId;return!b||kv(this,a.Cb,b)};_.g.jW=function(a,b){return kv(this,a.Cb,b.clientId)};_.g.j2=function(a,b){a.Wm=!0;a.vu=!!b.cookieDisabled;Zu(a);for(b=0;b<a.Wp.length;b++)$u(a,a.Wp[b].Gn,a.Wp[b].callback);a.Wp=[]};
_.g.i2=function(a,b){b={error:b.error};a.Wm=!0;a.jE=!0;a.mO=b;a.Wp=[];Zu(a)};_.g.pz=function(a,b){b.originIdp=a.Cb;this.dispatchEvent(b)};var hv=new gv,lv=hv,mv={};mv.idpReady={tf:lv.j2};mv.idpError={tf:lv.i2};mv.sessionStateChanged={tf:lv.pz,Mq:lv.A4};mv.sessionSelectorChanged={tf:lv.pz,Mq:lv.z4};mv.authResult={tf:lv.pz,Mq:lv.jW,ZV:!0};mv.displayIFrame={tf:lv.pz};hv.pO=mv||{};wu(window,"message",function(a){hv.c3.call(hv,a)});
_.nv=function(a,b){this.ze=!1;if(!a)throw Error("ia");var c=[],d;for(d in a)c.push(a[d]);Au.call(this,c);this.Cd=[location.protocol,"//",location.host].join("");this.fe=b.crossSubDomains?b.domain||this.Cd:this.Cd;if(!b)throw Error("ja");if(!b.idpId)throw Error("ka");if(!_.Eu(b.idpId,"authServerUrl")||!_.Eu(b.idpId,"idpIFrameUrl"))throw Error("la`"+b.idpId);this.Cb=b.idpId;this.Tb=void 0;this.jX=!!b.disableTokenRefresh;this.bY=!!b.forceTokenRefresh;this.A5=!!b.skipTokenCache;this.Gq=!!b.supportBlocked3PCookies;
b.pluginName&&(this.T2=b.pluginName);this.setOptions(b);this.Cr=[];this.vu=this.fl=this.TO=!1;this.bl=void 0;this.OQ();this.yd=void 0;var e=this,f=function(){pu("Token Manager is ready.");if(e.Cr.length)for(var h=0;h<e.Cr.length;h++)e.Cr[h].call(e);e.TO=!0;e.Cr=[]};Bu.py(this.Cb,function(h){e.yd=h;h.Wm&&h.jE?(e.fl=!0,e.bl=h.Hm(),e.qt(e.bl)):(e.vu=h.Zx(),e.Tb?ev(e.yd,e.Tb,e.T2,function(k){var l=k,m=!1,n=!1;"object"==typeof k&&(l=k.validOrigin,m=k.blocked,n=k.suppressed);l?m?n?(qu("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."),
iv(e.Cb,e.Tb),f()):(e.bl={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.fl=!0,e.qt(e.bl)):(qu("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."),
iv(e.Cb,e.Tb),f()):(e.bl={error:"Not a valid origin for the client: "+e.Cd+" 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.fl=!0,e.qt(e.bl))}):(jv(e.Cb),f()))},this.Gq)};su(_.nv,Au);_.g=_.nv.prototype;_.g.setOptions=function(){};_.g.OQ=function(){};_.g.qt=function(){};_.g.Zx=function(){return this.vu};_.g.Hm=function(){return this.bl};ov=function(a,b,c){return function(){b.apply(a,c)}};
_.pv=function(a,b,c){if(a.TO)b.apply(a,c);else{if(a.fl)throw a.bl;a.Cr.push(ov(a,b,c))}};_.nv.prototype.cL=_.ca(12);_.nv.prototype.rr=_.ca(10);
_.rv=function(a,b){_.nv.call(this,a,b);this.yQ=new Iu;this.Mj=this.xn=null;qv(this)};su(_.rv,_.nv);_.rv.prototype.setOptions=function(){};
var sv=function(a,b){a.we={crossSubDomains:!!b.crossSubDomains,id:b.sessionSelectorId,domain:a.fe};b.crossSubDomains&&(a.we.policy=b.policy)},tv=function(a,b){if(!b.authParameters)throw Error("ma");if(!b.authParameters.scope)throw Error("na");if(!b.authParameters.response_type)throw Error("oa");a.ir=b.authParameters;a.ir.redirect_uri||(a.ir.redirect_uri=[location.protocol,"//",location.host,location.pathname].join(""));a.Mi=_.uu(b.rpcAuthParameters||a.ir);if(!a.Mi.scope)throw Error("pa");if(!a.Mi.response_type)throw Error("qa");
a:{var c=a.Mi.response_type.split(" ");for(var d=0,e=c.length;d<e;d++)if(c[d]&&!xu[c[d]]){c=!0;break a}c=!1}if(c)throw Error("ra");b.enableSerialConsent&&(a.Mi.enable_serial_consent=!0);b.authResultIdentifier&&(a.kW=b.authResultIdentifier);b.spec_compliant&&(a.Mi.spec_compliant=b.spec_compliant)};
_.rv.prototype.OQ=function(){var a=this;hv.addEventListener(fv.nV,function(b){a.ze&&a.we&&b.originIdp==a.Cb&&!b.crossSubDomains==!a.we.crossSubDomains&&b.domain==a.we.domain&&b.id==a.we.id&&a.hQ(b)});hv.addEventListener(fv.lB,function(b){a.ze&&b.originIdp==a.Cb&&b.clientId==a.Tb&&a.iQ(b)});hv.addEventListener(fv.WA,function(b){_.Gu=void 0;a.ze&&b.originIdp==a.Cb&&b.clientId==a.Tb&&b.id==a.Jj&&(a.xn&&(window.clearTimeout(a.xn),a.xn=null),a.Jj=void 0,a.lt(b))});hv.addEventListener(fv.GT,function(b){a.ze&&
b.originIdp==a.Cb&&(b.Vb?a.yd.Vb():a.yd.show())})};_.rv.prototype.hQ=function(){};_.rv.prototype.iQ=function(){};_.rv.prototype.lt=function(){};var vv=function(a,b){uv(a);a.jX||(a.Mj=Cu.bX(function(){a.Gi(!0)},b-3E5),navigator.onLine&&a.Mj.start())},uv=function(a){a.Mj&&(a.Mj.clear(),a.Mj=null)},qv=function(a){var b=window;yu()&&(b=document.body);wu(b,"online",function(){a.Mj&&a.Mj.start()});wu(b,"offline",function(){a.Mj&&a.Mj.clear()})};_.rv.prototype.Gi=function(){};_.rv.prototype.OP=_.ca(13);
_.rv.prototype.b1=function(a,b){if(!this.Tb)throw Error("va");this.yd.oy(this.Tb,this.Mi,this.we,a,b)};_.rv.prototype.oy=function(a,b){_.pv(this,this.b1,[a,b])};_.xv=function(a){this.re=void 0;this.hh=!1;this.kq=void 0;_.rv.call(this,_.wv,a)};su(_.xv,_.rv);_.wv={VJ:"noSessionBound",Xq:"userLoggedOut",nT:"activeSessionChanged",lB:"sessionStateChanged",iK:"tokenReady",HV:"tokenFailed",WA:"authResult",ERROR:"error"};
_.xv.prototype.setOptions=function(a){if(!a.clientId)throw Error("wa");this.Tb=a.clientId;this.Ca=a.id;sv(this,a);tv(this,a)};_.xv.prototype.qt=function(a){this.dispatchEvent({type:_.wv.ERROR,error:"idpiframe_initialization_failed",details:a.error,idpId:this.Cb})};var yv=function(a){uv(a);a.kq=void 0;a.ky=void 0};_.g=_.xv.prototype;
_.g.hQ=function(a){var b=a.newValue||{};if(this.re!=b.hint||this.hh!=!!b.disabled){a=this.re;var c=!this.re||this.hh;yv(this);this.re=b.hint;this.hh=!!b.disabled;(b=!this.re||this.hh)&&!c?this.dispatchEvent({type:_.wv.Xq,idpId:this.Cb}):b||(a!=this.re&&this.dispatchEvent({type:_.wv.nT,idpId:this.Cb}),this.re&&this.Gi())}};
_.g.iQ=function(a){this.hh||(this.re?a.user||this.kq?a.user==this.re&&(this.kq?a.sessionState?this.kq=a.sessionState:(yv(this),this.dispatchEvent({type:_.wv.Xq,idpId:this.Cb})):a.sessionState&&(this.kq=a.sessionState,this.Gi())):this.Gi():this.dispatchEvent({type:_.wv.lB,idpId:this.Cb}))};_.g.lt=function(a){this.dispatchEvent({type:_.wv.WA,authResult:a.authResult})};_.g.Zr=_.ca(15);_.g.Tr=function(a){_.pv(this,this.aD,[a])};_.g.aD=function(a){cv(this.yd,this.we,a)};
_.g.tA=function(a,b,c,d){d=void 0===d?!1:d;if(!a)throw Error("xa");yv(this);this.re=a;this.hh=!1;b&&_.dv(this.yd,this.we,!1,this.re);this.ze=!0;this.Gi(c,!0,d)};_.g.start=function(){_.pv(this,this.ou,[])};
_.g.ou=function(){var a=this.Tb==vu("client_id")?vu("login_hint"):void 0;var b=this.Tb==vu("client_id")?vu("state"):void 0;this.uF=b;if(a)window.history.replaceState?window.history.replaceState(null,document.title,window.location.href.split("#")[0]):window.location.href.hash="",this.tA(a,!0,!0,!0);else{var c=this;this.Tr(function(d){c.ze=!0;d&&d.hint?(yv(c),c.re=d.hint,c.hh=!!d.disabled,c.hh?c.dispatchEvent({type:_.wv.Xq,idpId:c.Cb}):c.tA(d.hint)):(yv(c),c.re=void 0,c.hh=!(!d||!d.disabled),c.dispatchEvent({type:_.wv.VJ,
autoOpenAuthUrl:!c.hh,idpId:c.Cb}))})}};_.g.YX=function(){var a=this;this.Tr(function(b){b&&b.hint?b.disabled?a.dispatchEvent({type:_.wv.Xq,idpId:a.Cb}):a.Gi(!0):a.dispatchEvent({type:_.wv.VJ,idpId:a.Cb})})};_.g.IM=function(){_.pv(this,this.YX,[])};
_.g.Gi=function(a,b,c){var d=this;this.yd.Gi(this.Tb,this.Mi,this.re,this.we,function(e,f){(f=f||e.error)?"user_logged_out"==f?(yv(d),d.dispatchEvent({type:_.wv.Xq,idpId:d.Cb})):(d.ky=null,d.dispatchEvent({type:_.wv.HV,idpId:d.Cb,error:f})):(d.ky=e,d.kq=e.session_state,vv(d,e.expires_at),e.idpId=d.Cb,b&&d.uF&&(e.state=d.uF,d.uF=void 0),d.dispatchEvent({type:_.wv.iK,idpId:d.Cb,response:e}))},this.Ca,a,!1,void 0===c?!1:c)};_.g.revoke=_.ca(8);_.g.eR=_.ca(16);
_.zv=function(a){this.Xl=null;_.rv.call(this,{},a);this.ze=!0};su(_.zv,_.rv);_.g=_.zv.prototype;_.g.setOptions=function(a){if(!a.clientId)throw Error("wa");this.Tb=a.clientId;this.Ca=a.id;sv(this,a);tv(this,a)};_.g.qt=function(a){this.Xl&&(this.Xl({authResult:{error:"idpiframe_initialization_failed",details:a.error}}),this.Xl=null)};_.g.lt=function(a){if(this.Xl){var b=this.Xl;this.Xl=null;b(a)}};_.g.Zr=_.ca(14);_.g.Tr=function(a){this.fl?a(this.Hm()):_.pv(this,this.aD,[a])};
_.g.aD=function(a){cv(this.yd,this.we,a)};_.Av=function(a,b,c){a.fl?c(a.Hm()):_.pv(a,a.C2,[b,c])};_.zv.prototype.C2=function(a,b){this.yd.Gi(this.Tb,this.Mi,a,this.we,function(c,d){d?b({error:d}):b(c)},this.Ca,this.bY,this.A5)};_.zv.prototype.qP=_.ca(17);

var Bv=function(a){return Array.prototype.concat.apply([],arguments)},Cv=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 _.ah(a,3).substring(0,64)},Dv=function(){var a=navigator.userAgent.toLowerCase();return 0>a.indexOf("edge/")&&(-1<a.indexOf("chrome/")||-1<a.indexOf("crios/"))},Ev=function(){var a=navigator.userAgent.toLowerCase();return-1<a.indexOf("firefox/")&&0>
a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("safari/")},Fv=function(a,b,c){if(!a.ze)throw Error("sa");b?_.dv(a.yd,a.we,!0,void 0,c):_.dv(a.yd,a.we,!0,a.re,c)},Gv=function(a){if(!a.ze)throw Error("sa");return a.ky},Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Rv;_.zv.prototype.qP=_.bb(17,function(a,b){var c=this.yd,d=this.Tb,e=this.we,f=_.uu(this.Mi);delete f.response_type;_.av(c,"getOnlineCode",{clientId:d,loginHint:a,request:f,sessionSelector:e},b)});
_.xv.prototype.eR=_.bb(16,function(a){Gv(this)&&Gv(this).access_token&&(this.yd.revoke(this.Tb,Gv(this).access_token,a),Fv(this,!0))});
_.xv.prototype.Zr=_.bb(15,function(){var a=this;return function(b){if(b&&b.authResult&&b.authResult.login_hint)if(a.Zx()&&a.Gq&&(Dv()||Ev())){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.Cb};a.ky=b;a.dispatchEvent({type:_.wv.iK,idpId:a.Cb,response:b})}else a.tA(b.authResult.login_hint,a.hh||b.authResult.login_hint!=a.re,!0,!0)}});
_.zv.prototype.Zr=_.bb(14,function(a){var b=this;return function(c){c&&c.authResult&&c.authResult.login_hint?b.Tr(function(d){_.dv(b.yd,b.we,d&&d.disabled,c.authResult.login_hint,function(){_.Av(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"})}});_.rv.prototype.OP=_.bb(13,function(){this.Tb&&_.av(this.yd,"startPolling",{clientId:this.Tb,origin:this.Cd,id:this.Jj})});
_.Yu.prototype.revoke=_.bb(9,function(a,b,c){_.av(this,"revoke",{clientId:a,token:b},c)});_.xv.prototype.revoke=_.bb(8,function(a){_.pv(this,this.eR,[a])});Hv=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};
Iv=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};
Jv=function(a,b,c,d,e,f,h){var k=_.Eu(a,"authServerUrl");if(!k)throw Error("ca`"+a);a=_.uu(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=Iv())&&(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("&")};
Kv=function(a,b,c,d){if(!a.Tb)throw Error("ta");a.Jj=c||a.kW||"auth"+Math.floor(1E6*Math.random()+1);b=b||{};b.extraQueryParams=b.extraQueryParams||{};if(!b.extraQueryParams.redirect_uri){var e=a.Cd.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.Jj);c.redirect_uri=e.join("")}return Jv(a.Cb,a.fe,a.Tb,a.ir,!0,b,d)};Lv=function(a,b,c){if(!a.Tb)throw Error("ta");return Jv(a.Cb,a.fe,a.Tb,a.ir,!1,b,c)};
Mv=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(" ")};Nv=function(a,b){a.xn&&window.clearTimeout(a.xn);a.xn=window.setTimeout(function(){a.Jj==b&&(_.Gu=void 0,a.xn=null,a.Jj=void 0,a.lt({authResult:{error:"popup_closed_by_user"}}))},1E3)};
Ov=function(a,b,c){if(!a.Tb)throw Error("ua");c=c||{};a.Zx()&&a.Gq&&(Dv()||Ev())&&(c.responseType=Mv(c.responseType));c=Kv(a,c.sessionMeta,c.oneTimeId,c.responseType);(Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject||Hv())&&_.pv(a,a.OP,[]);var d=a.Jj;a.yQ.open(c,b,function(){a.Jj==d&&Nv(a,d)},function(){a.Jj=void 0;a.lt({authResult:{error:"popup_blocked_by_browser"}})})};Pv=function(a,b,c){a.fl?c(a.Hm()):_.pv(a,a.qP,[b,c])};
_.Qv=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("")};
Rv=function(a){var b=[];_.bh(a,function(c){b.push(c)});return b};_.Sv=function(a,b){_.Mh[b||"token"]=a};_.Tv=function(a){delete _.Mh[a||"token"]};
_.zu={parse:function(a){a=_.of("["+String(a)+"]");if(!1===a||1!==a.length)throw new SyntaxError("JSON parsing failed.");return a[0]},stringify:function(a){return _.pf(a)}};
_.zv.prototype.PC=function(a,b){_.pv(this,this.NX,[a,b])};_.zv.prototype.NX=function(a,b){this.yd.PC(this.Tb,a,this.Mi,this.we,b)};
_.Yu.prototype.PC=function(a,b,c,d,e){c=_.uu(c);_.av(this,"gsi:fetchLoginHint",{clientId:a,loginHint:b,request:c,sessionSelector:d},e)};
var Uv,Vv=["client_id","cookie_policy","scope"],Wv="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 gsiwebsdk".split(" "),Xv=["authuser","after_redirect","access_type","hl"],Yv=["login_hint","prompt"],Zv={clientid:"client_id",cookiepolicy:"cookie_policy"},$v=["approval_prompt","authuser","login_hint",
"prompt","hd"],aw=["login_hint","g-oauth-window","status"],bw=Math.min(_.Ae("oauth-flow/authWindowWidth",599),screen.width-20),cw=Math.min(_.Ae("oauth-flow/authWindowHeight",600),screen.height-30);
var dw=function(a){_.fb.call(this,a)};_.J(dw,_.fb);dw.prototype.name="gapi.auth2.ExternallyVisibleError";
var ew=function(){};ew.prototype.select=function(a,b){if(a.sessions&&1==a.sessions.length&&(a=a.sessions[0],a.login_hint)){b(a);return}b()};var fw=function(){};fw.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 gw=function(a){this.lW=a};
gw.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.lW){d.login_hint?b(d):b();return}}b()};
var hw=function(a){this.Zd=a;this.Oz=[]};hw.prototype.select=function(a){var b=0,c=this,d=function(e){if(e)a(e);else{var f=c.Oz[b];f?(b++,c.Zd.oy(function(h){h?f.select(h,d):d()})):a()}};d()};var iw=function(a){a=new hw(a);a.Oz.push(new ew);return a},jw=function(a){a=new hw(a);a.Oz.push(new fw);return a},kw=function(a,b){void 0===b||null===b?b=iw(a):(a=new hw(a),a.Oz.push(new gw(b)),b=a);return b};
var lw=function(a){this.tf=a;this.Zc=!0};lw.prototype.remove=function(){this.Zc=!1};lw.prototype.trigger=function(){};var mw=function(a){this.remove=function(){a.remove()};this.trigger=function(){a.trigger()}},nw=function(){this.Xb=[]};nw.prototype.add=function(a){this.Xb.push(a)};nw.prototype.notify=function(a){for(var b=this.Xb,c=[],d=0;d<b.length;d++){var e=b[d];e.Zc&&(c.push(e),_.pj(ow(e.tf,a)))}this.Xb=c};var ow=function(a,b){return function(){a(b)}};
var qw=function(a){this.yb=null;this.u6=new pw(this);this.Xb=new nw;void 0!=a&&this.set(a)};qw.prototype.set=function(a){a!=this.yb&&(this.yb=a,this.u6.value=a,this.Xb.notify(this.yb))};qw.prototype.get=function(){return this.yb};qw.prototype.V=function(a){a=new rw(this,a);this.Xb.add(a);return a};qw.prototype.get=qw.prototype.get;var rw=function(a,b){lw.call(this,b);this.e1=a};_.J(rw,lw);rw.prototype.trigger=function(){var a=this.tf;a(this.e1.get())};var pw=function(a){this.value=null;this.V=function(b){return new mw(a.V(b))}};
var sw={U8:"fetch_basic_profile",V9:"login_hint",uaa:"prompt",Baa:"redirect_uri",Saa:"scope",lca:"ux_mode",Hba:"state"},tw=function(a){this.Ia={};if(a&&!_.pi(a))if("function"==typeof a.get)this.Ia=a.get();else for(var b in sw){var c=sw[b];c in a&&(this.Ia[c]=a[c])}};tw.prototype.get=function(){return this.Ia};tw.prototype.UR=function(a){this.Ia.scope=a;return this};tw.prototype.ts=function(){return this.Ia.scope};
var uw=function(a,b){var c=a.Ia.scope;b=Bv(b.split(" "),c?c.split(" "):[]);_.ej(b);a.Ia.scope=b.join(" ")};_.g=tw.prototype;_.g.d5=function(a){this.Ia.prompt=a;return this};_.g.jZ=function(){return this.Ia.prompt};_.g.D4=function(){_.tf.warn("Property app_package_name no longer supported and was not set");return this};_.g.iY=function(){_.tf.warn("Property app_package_name no longer supported")};_.g.Xe=function(a){this.Ia.state=a};_.g.getState=function(){return this.Ia.state};
var vw=function(){return["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no","width="+bw,"height="+cw,"top="+(screen.height-cw)/2,"left="+(screen.width-bw)/2].join()},ww=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+).?.?.?$/,"$1");return JSON.parse(_.Qv(Rv(a)))},xw=function(){Uv=_.Ae("auth2/idpValue","google");var a=_.Ae("oauth-flow/authUrl","https://accounts.google.com/o/oauth2/auth"),
b=_.Ae("oauth-flow/idpIframeUrl","https://accounts.google.com/o/oauth2/iframe");_.Fu(Uv,{authServerUrl:a,idpIFrameUrl:b})},yw=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}_.Cb(a[e])||(a[e]={});a=a[e]}},zw=function(){var a=window.location.origin;a||(a=window.location.protocol+"//"+window.location.host);return a},Bw=function(){var a=Aw();a.storage_path&&window.sessionStorage.setItem(a.storage_path,zw()+window.location.pathname);if("enforced"==a.status.toLowerCase())throw new dw("gapi.auth2 is disabled on this website, but it is still used on page "+
window.location.href);"informational"==a.status.toLowerCase()&&_.tf.warn("gapi.auth2 is disabled on this website, but it is still used on page "+window.location.href)};
var Cw=function(a){var b=a?(b=ww(a))?b.sub:null:null;this.Ca=b;this.Cc=a?_.gj(a):null};_.g=Cw.prototype;_.g.getId=function(){return this.Ca};_.g.hD=function(){var a=ww(this.Cc);return a?a.hd:null};_.g.Yf=function(){return!!this.Cc};_.g.Dk=function(a){if(a)return this.Cc;a=Dw;var b=_.gj(this.Cc);!a.Ox||a.eE||a.L_||(delete b.access_token,delete b.scope);return b};_.g.fG=function(){return Dw.fG()};_.g.Wj=function(){this.Cc=null};_.g.LY=function(){return this.Cc?this.Cc.scope:null};
_.g.update=function(a){this.Ca=a.Ca;this.Cc=a.Cc;this.Cc.id_token?this.uv=new Ew(this.Cc):this.uv&&(this.uv=null)};var Fw=function(a){return a.Cc&&"object"==typeof a.Cc.session_state?_.gj(a.Cc.session_state.extraQueryParams||{}):{}};_.g=Cw.prototype;_.g.Qr=function(){var a=Fw(this);return a&&void 0!==a.authuser&&null!==a.authuser?a.authuser:null};
_.g.Vj=function(a){var b=Dw,c=new tw(a);b.eE=c.ts()?!0:!1;Dw.Ox&&uw(c,"openid profile email");return new _.Aj(function(d,e){var f=Fw(this);f.login_hint=this.getId();f.scope=c.ts();Gw(b,d,e,f)},this)};_.g.vs=function(a){return new _.Aj(function(b,c){var d=a||{},e=Dw;d.login_hint=this.getId();e.vs(d).then(b,c)},this)};_.g.AZ=function(a){return this.Vj(a)};_.g.disconnect=function(){return Dw.disconnect()};_.g.lY=function(){return this.uv};
_.g.Ax=function(a){if(!this.Yf())return!1;var b=this.Cc&&this.Cc.scope?this.Cc.scope.split(" "):"";return _.Qb(a?a.split(" "):[],function(c){return _.hb(b,c)})};var Ew=function(a){a=ww(a);this.gY=a.sub;this.Af=a.name;this.xZ=a.given_name;this.LX=a.family_name;this.vO=a.picture;this.gw=a.email};_.g=Ew.prototype;_.g.getId=function(){return this.gY};_.g.Bj=function(){return this.Af};_.g.JY=function(){return this.xZ};_.g.EY=function(){return this.LX};_.g.RY=function(){return this.vO};_.g.bs=function(){return this.gw};
var Aw,Hw;Aw=function(){var a=_.Bh.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]}:(_.tf.warn("The G_AUTH2_MIGRATION cookie value is not valid."),{status:"none"})};Hw=function(a){var b=location;if(a&&"none"!=a)return"single_host_origin"==a?b.protocol+"//"+b.host:a};
_.Iw=function(a){if(!a)throw new dw("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 dw("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(!_.ui(b,"."+a)&&!_.ui(b,a))throw new dw("Invalid cookiePolicy domain");return d};
var Kw=function(a){var b=a||{},c=Jw();_.Nb(Wv,function(d){"undefined"===typeof b[d]&&"undefined"!==typeof c[d]&&(b[d]=c[d])});return b},Jw=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;Zv[d]&&(d=Zv[d]);_.hb(Wv,d)&&e&&(a[d]="true"==e?!0:"false"==e?!1:e)}}return a},Lw=function(a){return String(a).replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Mw=function(a){_.Nb(Wv,
function(b){var c=Lw(b);"undefined"!==typeof a[c]&&"undefined"===typeof a[b]&&(a[b]=a[c],delete a[c])})},Nw=function(a){a=Kw(a);Mw(a);a.cookie_policy||(a.cookie_policy="single_host_origin");var b=Wv+Xv,c;for(c in a)0>b.indexOf(c)&&delete a[c];return a},Ow=function(a,b){if(!a)throw new dw("Empty initial options.");for(var c=0;c<Vv.length;++c)if(!(b&&"scope"==Vv[c]||a[Vv[c]]))throw new dw("Missing required parameter '"+Vv[c]+"'");_.Iw(a.cookie_policy)},Qw=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:Hw(a.cookie_policy),disableTokenRefresh:!!a.disable_token_refresh,idpId:Uv};Pw(b,a);_.Nb(Yv,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=_.Ae("auth2/pluginName");c&&(b.pluginName=c)}return b},Pw=function(a,
b){var c=b.oidc_spec_compliant;b=b.nonce;c&&(a.spec_compliant=c,b=b||Cv());b&&(a.authParameters.nonce=b,a.forceTokenRefresh=!0,a.skipTokenCache=!0)},Vw=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=Rw(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:Hw(c),idpId:Uv};f&&(m.authParameters.hd=f,m.rpcAuthParameters.hd=
f);h&&(m.rpcAuthParameters.spec_compliant=h,k=k||Cv());k&&(m.authParameters.nonce=k,m.rpcAuthParameters.nonce=k,m.forceTokenRefresh=!0,m.skipTokenCache=!0);_.Nb(Yv.concat(Xv),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 Sw(a.response_type||"token"),Tw(b)&&(m.authParameters.include_granted_scopes=a.include_granted_scopes),Uw(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=_.Ae("auth2/pluginName"))&&(m.pluginName=b);return m},Rw=function(a){a=new Sw(a.response_type||"token");var b=[];Uw(a)&&b.push("token");Ww(a,"id_token")&&b.push("id_token");0==b.length&&(b=["token","id_token"]);return b.join(" ")},Xw=["permission","id_token"],Yw=
/(^|[^_])token/,Sw=function(a){this.bq=[];this.xE(a)};Sw.prototype.xE=function(a){a?((0<=a.indexOf("permission")||a.match(Yw))&&this.bq.push("permission"),0<=a.indexOf("id_token")&&this.bq.push("id_token"),0<=a.indexOf("code")&&this.bq.push("code")):this.bq=Xw};var Tw=function(a){return Ww(a,"code")},Uw=function(a){return Ww(a,"permission")};Sw.prototype.toString=function(){return this.bq.join(" ")};var Ww=function(a,b){var c=!1;_.Nb(a.bq,function(d){d==b&&(c=!0)});return c};
var $w=function(a,b,c){this.rn=b;this.V1=a;for(var d in a)a.hasOwnProperty(d)&&Zw(this,d);if(c&&c.length)for(a=0;a<c.length;a++)this[c[a]]=this.rn[c[a]]},Zw=function(a,b){a[b]=function(){return a.V1[b].apply(a.rn,arguments)}};$w.prototype.then=function(a,b,c){var d=this;return _.Ej().then(function(){return ax(d.rn,a,b,c)})};_.jj($w);
var Dw,bx,dx;Dw=null;_.cx=function(){return Dw?bx():null};bx=function(){return new $w(dx.prototype,Dw,["currentUser","isSignedIn"])};dx=function(a){delete a.include_granted_scopes;this.Ia=Qw(a);this.ZW=a.cookie_policy;this.L_=!!a.scope;(this.Ox=!1!==a.fetch_basic_profile)&&(this.Ia.authParameters.scope=ex(this,"openid profile email"));_.yh.GSI_SUPPORT_BLOCKED_3P_COOKIES&&(this.Gq=this.Ia.supportBlocked3PCookies=!0);this.Gs=a.hosted_domain;this.r6=a.ux_mode||"popup";this.l3=a.redirect_uri||null;this.uE()};
dx.prototype.uE=function(){this.currentUser=new qw(new Cw(null));this.isSignedIn=new qw(!1);this.Zd=new _.xv(this.Ia);this.Ux=this.yp=null;this.Q0=new _.Aj(function(a,b){this.yp=a;this.Ux=b},this);this.Ly={};this.Qs=!0;fx(this);this.Zd.start()};
var fx=function(a){a.Zd.addEventListener("error",function(b){a.Qs&&a.yp&&(a.Qs=!1,a.Ux({error:b.error,details:b.details}),a.yp=null,a.Ux=null)});a.Zd.addEventListener("authResult",function(b){b&&b.authResult&&a.jf(b);a.Zd.Zr()(b)});a.Zd.addEventListener("tokenReady",function(b){var c=new Cw(b.response);if(a.Gs&&a.Gs!=c.hD())a.jf({type:"tokenFailed",reason:"Account domain does not match hosted_domain specified by gapi.auth2.init.",accountDomain:c.hD(),expectedDomain:a.Gs});else{a.currentUser.get().update(c);
var d=a.currentUser;d.Xb.notify(d.yb);a.isSignedIn.set(!0);c=c.Qr();(d=_.Iw(a.ZW))&&c&&_.Bh.set(["G_AUTHUSER_","https:"===window.location.protocol&&d.Le?"S":"H",d.ei].join(""),c,{domain:d.domain,secure:d.isSecure});_.Sv(b.response);a.jf(b)}});a.Zd.addEventListener("noSessionBound",function(b){a.Qs&&b.autoOpenAuthUrl?(a.Qs=!1,iw(a.Zd).select(function(c){if(c&&c.login_hint){var d=a.Zd;_.pv(d,d.tA,[c.login_hint,!0])}else a.currentUser.set(new Cw(null)),a.isSignedIn.set(!1),_.Tv(),a.jf(b)})):(a.currentUser.set(new Cw(null)),
a.isSignedIn.set(!1),_.Tv(),a.jf(b))});a.Zd.addEventListener("tokenFailed",function(b){a.jf(b)});a.Zd.addEventListener("userLoggedOut",function(b){a.currentUser.get().Wj();var c=a.currentUser;c.Xb.notify(c.yb);a.isSignedIn.set(!1);_.Tv();a.jf(b)})},ax=function(a,b,c,d){return a.Q0.then(function(e){if(b)return b(e.yZ)},c,d)};dx.prototype.jf=function(a){if(a){this.Qs=!1;var b=a.type||"";if(this.Ly[b])this.Ly[b](a);this.yp&&(this.yp({yZ:this}),this.Ux=this.yp=null)}};
var gx=function(a,b){_.lb(b,function(c,d){a.Ly[d]=function(e){a.Ly={};c(e)}})},Gw=function(a,b,c,d){d=_.gj(d);a.Gs&&(d.hd=a.Gs);var e=d.ux_mode||a.r6;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.l3||zw()+window.location.pathname),hx(a,f)):(delete d.redirect_uri,ix(a,f),gx(a,{authResult:function(h){h.authResult&&h.authResult.error?c(h.authResult):gx(a,{tokenReady:function(){b(a.currentUser.get())},
tokenFailed:c})}}))};dx.prototype.Vj=function(a){return new _.Aj(function(b,c){var d=new tw(a);this.eE=d.ts()?!0:!1;this.Ox?(d.Ia.fetch_basic_profile=!0,uw(d,"email profile openid")):d.Ia.fetch_basic_profile=!1;var e=ex(this,d.ts());d.UR(e);Gw(this,b,c,d.get())},this)};
dx.prototype.vs=function(a){var b=a||{};this.eE=!!b.scope;a=ex(this,b.scope);if(""==a)return _.Fj({error:"Missing required parameter: scope"});var c={scope:a,access_type:"offline",include_granted_scopes:!0};_.Nb($v,function(d){null!=b[d]&&(c[d]=b[d])});c.hasOwnProperty("prompt")||c.hasOwnProperty("approval_prompt")||(c.prompt="consent");return"postmessage"==b.redirect_uri||void 0==b.redirect_uri?jx(this,c):kx(this,c,b.redirect_uri)};
var kx=function(a,b,c){b.redirect_uri=c;hx(a,{sessionMeta:{extraQueryParams:b},responseType:"code id_token"});return _.Ej({message:"Redirecting to IDP."})},jx=function(a,b){b.origin=zw();delete b.redirect_uri;ix(a,{sessionMeta:{extraQueryParams:b},responseType:"code permission id_token"});return new _.Aj(function(c,d){gx(this,{authResult:function(e){(e=e&&e.authResult)&&e.code?c({code:e.code}):d(e&&e.error?e:{error:"unknown_error"})}})},a)},ix=function(a,b){yw(b,["sessionMeta","extraQueryParams",
"gsiwebsdk"],"2");Ov(a.Zd,vw(),b)},hx=function(a,b){yw(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");b=b||{};window.location.assign(Lv(a.Zd,b.sessionMeta,b.responseType))};dx.prototype.Wj=function(a){var b=a||!1;return new _.Aj(function(c){Fv(this.Zd,b,function(){c()})},this)};dx.prototype.hN=function(){return this.Ia.authParameters.scope};var ex=function(a,b){a=a.hN();b=Bv(b?b.split(" "):[],a?a.split(" "):[]);_.ej(b);return b.join(" ")};
dx.prototype.fG=function(){var a=this;return new _.Aj(function(b,c){gx(a,{noSessionBound:c,tokenFailed:c,userLoggedOut:c,tokenReady:function(d){b(d.response)}});a.Zd.IM()})};dx.prototype.JK=function(a,b,c,d){if(a="string"===typeof a?document.getElementById(a):a){var e=this;_.Oi(a,"click",function(){var f=b;"function"==typeof b&&(f=b());e.Vj(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."})};
dx.prototype.disconnect=function(){return new _.Aj(function(a){this.Zd.revoke(function(){a()})},this)};dx.prototype.attachClickHandler=dx.prototype.JK;
var lx;_.Aj.prototype["catch"]=_.Aj.prototype.uu;lx=null;_.mx=function(a){Bw();a=Nw(a);if(Dw){if(_.fj(a,lx||{}))return bx();throw new dw("gapi.auth2 has been initialized with different options. Consider calling gapi.auth2.getAuthInstance() instead of gapi.auth2.init().");}Ow(a,!1!==a.fetch_basic_profile);xw();lx=a;Dw=new dx(a);_.se.ga=1;return bx()};
var ox,qx,nx,sx,rx,tx;_.px=function(a,b){xw();a=Nw(a);Ow(a);var c=Vw(a),d=new _.zv(c);"none"==a.prompt?nx(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)}):ox(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.yQ.Ih;b(e)})};
ox=function(a,b,c){var d=new Sw(b.response_type);c=qx(a,d,c);var e={responseType:d.toString()};yw(e,["sessionMeta","extraQueryParams","gsiwebsdk"],b.gsiwebsdk||"2");Tw(d)&&yw(e,["sessionMeta","extraQueryParams","access_type"],b.access_type||"offline");b.redirect_uri&&yw(e,["sessionMeta","extraQueryParams","redirect_uri"],b.redirect_uri);b.state&&yw(e,["sessionMeta","extraQueryParams","state"],b.state);b=vw();a.fl?c({authResult:{error:"idpiframe_initialization_failed",details:a.Hm().error}}):(a.Xl=
c,Ov(a,b,e))};qx=function(a,b,c){if(Uw(b)){var d=rx(c);return function(e){e&&e.authResult&&!e.authResult.error?a.Zr(function(f){f&&!f.error?(f=_.gj(f),Tw(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(_.gj(e.authResult)):c(e&&e.authResult?e.authResult:{error:"unknown_error"})}};
nx=function(a,b,c){if(Tw(new Sw(b.response_type))&&"offline"==b.access_type)c({error:"immediate_failed",error_subtype:"access_denied"});else{var d=rx(c);b.login_hint?a.PC(b.login_hint,function(e){e?sx(a,b,e,d):c({error:"immediate_failed",error_subtype:"access_denied"})}):void 0!==b.authuser&&null!==b.authuser?kw(a,b.authuser).select(function(e){e&&e.login_hint?sx(a,b,e.login_hint,d):d({error:"immediate_failed",error_subtype:"access_denied"})}):a.Tr(function(e){e&&e.hint?sx(a,b,e.hint,d):e&&e.disabled?
d({error:"immediate_failed",error_subtype:"no_user_bound"}):("first_valid"==b.session_selection?jw(a):iw(a)).select(function(f){f&&f.login_hint?sx(a,b,f.login_hint,d):d({error:"immediate_failed",error_subtype:"no_user_bound"})})})}};sx=function(a,b,c,d){b=new Sw(b.response_type);var e=0,f={},h=function(k){!k||k.error?d(k):(e--,_.ri(f,k),0==e&&d(f))};(Uw(b)||Ww(b,"id_token"))&&e++;Tw(b)&&e++;(Uw(b)||Ww(b,"id_token"))&&_.Av(a,c,h);Tw(b)&&Pv(a,c,h)};
rx=function(a){return function(b){if(!b||b.error)_.Tv(),b?a(b):a({error:"unknown_error"});else{if(b.access_token){var c=_.gj(b);tx(c);delete c.id_token;delete c.code;_.Sv(c)}a(b)}}};tx=function(a){_.Nb(aw,function(b){delete a[b]})};
_.D("gapi.auth2.init",_.mx);_.D("gapi.auth2.authorize",function(a,b){Bw();if(null!=Dw)throw new dw("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).");_.px(a,function(c){tx(c);b(c)})});_.D("gapi.auth2._gt",function(){return _.Nh()});_.D("gapi.auth2.enableDebugLogs",function(a){a=!1!==a;_.ou="0"!=a&&!!a});_.D("gapi.auth2.getAuthInstance",_.cx);
_.D("gapi.auth2.BasicProfile",Ew);_.D("gapi.auth2.BasicProfile.prototype.getId",Ew.prototype.getId);_.D("gapi.auth2.BasicProfile.prototype.getName",Ew.prototype.Bj);_.D("gapi.auth2.BasicProfile.prototype.getGivenName",Ew.prototype.JY);_.D("gapi.auth2.BasicProfile.prototype.getFamilyName",Ew.prototype.EY);_.D("gapi.auth2.BasicProfile.prototype.getImageUrl",Ew.prototype.RY);_.D("gapi.auth2.BasicProfile.prototype.getEmail",Ew.prototype.bs);_.D("gapi.auth2.GoogleAuth",dx);
_.D("gapi.auth2.GoogleAuth.prototype.attachClickHandler",dx.prototype.JK);_.D("gapi.auth2.GoogleAuth.prototype.disconnect",dx.prototype.disconnect);_.D("gapi.auth2.GoogleAuth.prototype.grantOfflineAccess",dx.prototype.vs);_.D("gapi.auth2.GoogleAuth.prototype.signIn",dx.prototype.Vj);_.D("gapi.auth2.GoogleAuth.prototype.signOut",dx.prototype.Wj);_.D("gapi.auth2.GoogleAuth.prototype.getInitialScopes",dx.prototype.hN);_.D("gapi.auth2.GoogleUser",Cw);_.D("gapi.auth2.GoogleUser.prototype.grant",Cw.prototype.AZ);
_.D("gapi.auth2.GoogleUser.prototype.getId",Cw.prototype.getId);_.D("gapi.auth2.GoogleUser.prototype.isSignedIn",Cw.prototype.Yf);_.D("gapi.auth2.GoogleUser.prototype.getAuthResponse",Cw.prototype.Dk);_.D("gapi.auth2.GoogleUser.prototype.getBasicProfile",Cw.prototype.lY);_.D("gapi.auth2.GoogleUser.prototype.getGrantedScopes",Cw.prototype.LY);_.D("gapi.auth2.GoogleUser.prototype.getHostedDomain",Cw.prototype.hD);_.D("gapi.auth2.GoogleUser.prototype.grantOfflineAccess",Cw.prototype.vs);
_.D("gapi.auth2.GoogleUser.prototype.hasGrantedScopes",Cw.prototype.Ax);_.D("gapi.auth2.GoogleUser.prototype.reloadAuthResponse",Cw.prototype.fG);_.D("gapi.auth2.LiveValue",qw);_.D("gapi.auth2.LiveValue.prototype.listen",qw.prototype.V);_.D("gapi.auth2.LiveValue.prototype.get",qw.prototype.get);_.D("gapi.auth2.SigninOptionsBuilder",tw);_.D("gapi.auth2.SigninOptionsBuilder.prototype.getAppPackageName",tw.prototype.iY);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setAppPackageName",tw.prototype.D4);
_.D("gapi.auth2.SigninOptionsBuilder.prototype.getScope",tw.prototype.ts);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setScope",tw.prototype.UR);_.D("gapi.auth2.SigninOptionsBuilder.prototype.getPrompt",tw.prototype.jZ);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setPrompt",tw.prototype.d5);_.D("gapi.auth2.SigninOptionsBuilder.prototype.get",tw.prototype.get);

_.De=_.De||{};
(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}_.De.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)};_.De.uL=function(b){var c=_.De.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(_.De.AC(e[f])),d.push('"'));d.push("></");d.push("iframe");d.push(">");var h=_.De.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};_.De.PM=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};_.De.zea=function(b){return a(b)}})();

_.eg=window.gapi&&window.gapi.util||{};

_.eg=_.eg={};_.eg.getOrigin=function(a){return _.gg(a)};

_.py=function(a){if(0!==a.indexOf("GCSC"))return null;var b={Ei:!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=_.ny(a.substr(d+1));if(null==e)return b;a=a.substring(0,d);if("_"!==a.charAt(0))return b;d="E"===c&&e.Le;return!d&&("U"!==c||e.Le)||d&&!_.oy?b:{Ei:!0,Le:d,PW:a.substr(1),domain:e.domain,ei:e.ei}};
_.qy=function(a,b){this.Af=a;a=b||{};this.A1=Number(a.maxAge)||0;this.fe=a.domain;this.Al=a.path;this.p4=!!a.secure};_.qy.prototype.read=function(){for(var a=this.Af+"=",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)}};
_.qy.prototype.write=function(a,b){if(!ry.test(this.Af))throw"Invalid cookie name";if(!sy.test(a))throw"Invalid cookie value";a=this.Af+"="+a;this.fe&&(a+=";domain="+this.fe);this.Al&&(a+=";path="+this.Al);b="number"===typeof b?b:this.A1;if(0<=b){var c=new Date;c.setSeconds(c.getSeconds()+b);a+=";expires="+c.toUTCString()}this.p4&&(a+=";secure");document.cookie=a;return!0};_.qy.prototype.clear=function(){this.write("",0)};var sy=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,ry=/^[A-Z_][A-Z0-9_]{0,63}$/;
_.qy.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("="))}};
_.ty=function(a){this.Fi=a};_.ty.prototype.read=function(){if(uy.hasOwnProperty(this.Fi))return uy[this.Fi]};_.ty.prototype.write=function(a){uy[this.Fi]=a;return!0};_.ty.prototype.clear=function(){delete uy[this.Fi]};var uy={};_.ty.iterate=function(a){for(var b in uy)uy.hasOwnProperty(b)&&a(b,uy[b])};
var vy=function(){this.yb=null;this.key=function(){return null};this.getItem=function(){return this.yb};this.setItem=function(a,b){this.yb=b;this.length=1};this.removeItem=function(){this.clear()};this.clear=function(){this.yb=null;this.length=0};this.length=0},wy=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}},xy=function(a,b){this.Af=a;this.MI=
wy(b)?b||window.sessionStorage:new vy};xy.prototype.read=function(){return this.MI.getItem(this.Af)};xy.prototype.write=function(a){try{this.MI.setItem(this.Af,a)}catch(b){return!1}return!0};xy.prototype.clear=function(){this.MI.removeItem(this.Af)};xy.iterate=function(a){if(wy())for(var b=0,c=window.sessionStorage.length;b<c;++b){var d=window.sessionStorage.key(b);a(d,window.sessionStorage[d])}};
_.oy="https:"===window.location.protocol;_.yy=_.oy||"http:"===window.location.protocol?_.qy:_.ty;_.ny=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{Le:"S"==a.charAt(0),domain:d,ei:c}};
var zy,Ay,Dy,Ey;zy=_.he();Ay=_.he();_.By=_.he();_.Cy=_.he();Dy="state code cookie_policy g_user_cookie_policy authuser prompt g-oauth-window status".split(" ");Ey=function(a){this.vQ=a;this.dF=null};
Ey.prototype.write=function(a){var b=_.he(),c=_.he(),d=window.decodeURIComponent?decodeURIComponent:unescape,e;for(e in a)if(_.ie(a,e)){var f=a[e];f=f.replace(/\+/g," ");c[e]=d(f);b[e]=a[e]}d=0;for(e=Dy.length;d<e;++d)delete c[Dy[d]];a=String(a.authuser||0);d=_.he();d[a]=c;c=_.pf(d);this.vQ.write(c);this.dF=b};Ey.prototype.read=function(){return this.dF};Ey.prototype.clear=function(){this.vQ.clear();this.dF=_.he()};_.Fy=function(a){return a?{domain:a.domain,path:"/",secure:a.Le}:null};
xy.iterate(function(a){var b=_.py(a);b&&b.Ei&&(zy[a]=new Ey(new xy(a)))});_.yy.iterate(function(a){zy[a]&&(Ay[a]=new _.yy(a,_.Fy(_.py(a))))});

_.Ch=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,r=0;64>r;r+=4)p[r/4]=q[r]<<24|q[r+1]<<16|q[r+2]<<8|q[r+3];for(r=16;80>r;r++)q=p[r-3]^p[r-8]^p[r-14]^p[r-16],p[r]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],t=e[2],x=e[3],z=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var B=x^v&(t^x);var E=1518500249}else B=v^t^x,E=1859775393;else 60>r?(B=v&t|x&(v|t),E=2400959708):(B=v^t^x,E=3395469782);B=((q<<5|q>>>27)&4294967295)+
B+z+E+p[r]&4294967295;z=x;x=t;t=(v<<30|v>>>2)&4294967295;v=q;q=B}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+t&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var r=[],v=0,t=q.length;v<t;++v)r.push(q.charCodeAt(v));q=r}p||(p=q.length);r=0;if(0==m)for(;r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64;for(;r<p;)if(f[m++]=q[r++],n++,64==m)for(m=0,b(f);r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64}function d(){var q=[],
p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=p&255,p>>>=8;b(f);for(r=p=0;5>r;r++)for(var v=24;0<=v;v-=8)q[p++]=e[r]>>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,Zh:function(){for(var q=d(),p="",r=0;r<q.length;r++)p+="0123456789ABCDEF".charAt(Math.floor(q[r]/16))+"0123456789ABCDEF".charAt(q[r]%16);return p}}};
var Eh=function(a,b,c){var d=String(_.u.location.href);return d&&a&&b?[b,Dh(_.gg(d),a,c||null)].join(" "):null},Dh=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Nb(d,function(k){e.push(k)}),Fh(e.join(" "));var f=[],h=[];_.Nb(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];_.Nb(d,function(k){e.push(k)});a=Fh(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},Fh=function(a){var b=
_.Ch();b.update(a);return b.Zh().toLowerCase()};
var Ih;_.Gh=function(a){return!!_.yh.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.Hh=function(a){a=void 0===a?!1:a;var b=_.u.__SAPISID||_.u.__APISID||_.u.__3PSAPISID||_.u.__OVERRIDE_SID;_.Gh(a)&&(b=b||_.u.__1PSAPISID);if(b)return!0;var c=new _.zh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");_.Gh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Ih=function(a,b,c,d){(a=_.u[a])||(a=(new _.zh(document)).get(b));return a?Eh(a,c,d):null};
_.Jh=function(a,b){b=void 0===b?!1:b;var c=_.gg(String(_.u.location.href)),d=[];if(_.Hh(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 _.zh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Eh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&_.Gh(b)&&((b=Ih("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Ih("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.Kh=function(a,b){var c={SAPISIDHASH:!0,SAPISID3PHASH:!0,APISIDHASH:!0};_.Gh(void 0===b?!1:b)&&(c.SAPISID1PHASH=!0);return a&&(a.OriginToken||a.Authorization&&c[String(a.Authorization).split(" ")[0]])?!0:!1};_.Lh={XN:_.Kh,N0:_.Hh,mN:function(){var a=null;_.Hh()&&(a=window.__PVT,null==a&&(a=(new _.zh(document)).get("BEAT")));return a},NM:_.Jh};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Eq=function(){return!_.Dq()&&(_.ob("iPod")||_.ob("iPhone")||_.ob("Android")||_.ob("IEMobile"))};_.Dq=function(){return _.ob("iPad")||_.ob("Android")&&!_.ob("Mobile")||_.ob("Silk")};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ex=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.O)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.O)(a.handleEvent,a);else throw Error("Ba");return 2147483647<Number(b)?-1:_.u.setTimeout(a,b||0)};_.Fx=function(a){_.u.clearTimeout(a)};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Gy=function(a){_.vi.call(this);this.Fi=1;this.ez=[];this.lz=0;this.Hf=[];this.Wi={};this.gW=!!a};_.Za(_.Gy,_.vi);_.g=_.Gy.prototype;_.g.subscribe=function(a,b,c){var d=this.Wi[a];d||(d=this.Wi[a]=[]);var e=this.Fi;this.Hf[e]=a;this.Hf[e+1]=b;this.Hf[e+2]=c;this.Fi=e+3;d.push(e);return e};_.g.ru=_.ca(19);_.g.unsubscribe=function(a,b,c){if(a=this.Wi[a]){var d=this.Hf;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.dk(a)}return!1};
_.g.dk=function(a){var b=this.Hf[a];if(b){var c=this.Wi[b];0!=this.lz?(this.ez.push(a),this.Hf[a+1]=function(){}):(c&&_.ni(c,a),delete this.Hf[a],delete this.Hf[a+1],delete this.Hf[a+2])}return!!b};
_.g.Cn=function(a,b){var c=this.Wi[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.gW)for(e=0;e<c.length;e++){var h=c[e];Hy(this.Hf[h+1],this.Hf[h+2],d)}else{this.lz++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.Hf[h+1].apply(this.Hf[h+2],d)}finally{if(this.lz--,0<this.ez.length&&0==this.lz)for(;c=this.ez.pop();)this.dk(c)}}return 0!=e}return!1};var Hy=function(a,b,c){_.xj(function(){a.apply(b,c)})};
_.Gy.prototype.clear=function(a){if(a){var b=this.Wi[a];b&&(b.forEach(this.dk,this),delete this.Wi[a])}else this.Hf.length=0,this.Wi={}};_.Gy.prototype.Ib=function(a){if(a){var b=this.Wi[a];return b?b.length:0}a=0;for(b in this.Wi)a+=this.Ib(b);return a};_.Gy.prototype.ta=function(){_.Gy.H.ta.call(this);this.clear();this.ez.length=0};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Iy=function(a){this.Z5=a};_.Iy.prototype.toString=function(){return this.Z5};
_.Jy=function(a){_.vi.call(this);this.Vd=new _.Gy(a);_.xi(this,this.Vd)};_.Za(_.Jy,_.vi);_.g=_.Jy.prototype;_.g.subscribe=function(a,b,c){return this.Vd.subscribe(a.toString(),b,c)};_.g.ru=_.ca(18);_.g.unsubscribe=function(a,b,c){return this.Vd.unsubscribe(a.toString(),b,c)};_.g.dk=function(a){return this.Vd.dk(a)};_.g.Cn=function(a,b){return this.Vd.Cn(a.toString(),b)};_.g.clear=function(a){this.Vd.clear(void 0!==a?a.toString():void 0)};
_.g.Ib=function(a){return this.Vd.Ib(void 0!==a?a.toString():void 0)};

_.Ny=function(){_.My="oauth2relay"+String(2147483647*(0,_.mg)()|0)};_.Oy=new _.Jy;_.Py=new _.Iy("oauth");_.Ny();_.Ae("oauth-flow/client_id");var Qy=String(_.Ae("oauth-flow/redirectUri"));if(Qy)Qy.replace(/[#][\s\S]*/,"");else{var Ry=_.eg.getOrigin(window.location.href);_.Ae("oauth-flow/callbackUrl");encodeURIComponent(Ry)}_.eg.getOrigin(window.location.href);

var Ty,Uy,Vy,Wy,Xy,Yy,Zy,$y,az,bz,cz,ez,fz,gz,hz,iz,jz,kz,lz,mz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,yz,zz,Az,Bz,Cz,Dz,Ez,Fz,Gz,Hz,Kz,Jz,Lz,Mz,Nz,Oz,Pz,Qz,Rz,Sz,Tz,Vz;_.Sy=function(a,b){if(_.Zg&&!b)return _.u.atob(a);var c="";_.bh(a,function(d){c+=String.fromCharCode(d)});return c};Ty=function(a){var b=String(a("immediate")||"");a=String(a("prompt")||"");return"true"===b||"none"===a};Uy=function(a){return _.th("enableMultilogin")&&a("cookie_policy")&&!Ty(a)?!0:!1};
Xy=function(){var a,b=null;_.yy.iterate(function(c,d){0===c.indexOf("G_AUTHUSER_")&&(c=_.ny(c.substring(11)),!a||c.Le&&!a.Le||c.Le==a.Le&&c.ei>a.ei)&&(a=c,b=d)});return{rW:a,authuser:b}};Yy=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];Zy=function(a){a=a.toUpperCase();for(var b=0,c=Yy.length;b<c;++b){var d=a.split(Yy[b]);2==d.length&&""===d[1]&&(a=d[0])}a=a.replace(/-/g,"_").toUpperCase();40<a.length&&(b=new _.lg,b.Ju(a),a=b.Zh().toUpperCase());return a};
$y=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};az=function(a){a=a.split(":");return{clientId:a[0].split("=")[1],B4:$y(a[1]),pfa:$y(a[2]),kea:$y(a[3])}};bz=function(a){var b=Xy(),c=b.rW;b=b.authuser;var d=a&&Zy(a);if(null!==b){var e;_.yy.iterate(function(h,k){(h=_.py(h))&&h.Ei&&(d&&h.PW!=d||h.Le==c.Le&&h.ei==c.ei&&(e=k))});if(e){var f=az(e);a=f&&f.B4[Number(b)];f=f&&f.clientId;if(a)return{authuser:b,hga:a,clientId:f}}}return null};
cz=function(a,b){a=_.Nh(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};_.dz=function(a,b){if(b){var c=b;var d=a}else"string"===typeof a?d=a:c=a;c?_.Sv(c,d):_.Tv(d)};
ez=function(a){if(!a)return null;"single_host_origin"!==a&&(a=_.gg(a));var b=window.location.hostname,c=b,d=_.oy;if("single_host_origin"!==a){c=a.split("://");if(2==c.length)d="https"===c.shift();else return _.tf.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 _.tf.log("Invalid cookie_policy domain: "+c),null;c=a;b=c.split(".").length-1}return{domain:c,Le:d,ei:b}};
fz=function(a){var b=ez(a);if(!b)return new _.ty("G_USERSTATE_");a=["G_USERSTATE_",_.oy&&b.Le?"S":"H",b.ei].join("");var c=_.Cy[a];c||(c={bF:63072E3},_.je(_.Fy(b),c),c=new _.qy(a,c),_.Cy[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};gz=function(a){var b=fz(a).read();a=_.he();if(b){b=b.split(":");for(var c;c=b.shift();)c=c.split("="),a[c[0]]=c[1]}return a};
hz=function(a,b,c){var d=gz(b),e=d[a];d[a]="0";var f=[];_.Ql(d,function(k,l){f.push(l+"="+k)});var h=f.join(":");b=fz(b);h?b.write(h):b.clear();d[a]!==e&&c&&c()};iz=function(a){a=ez(a.g_user_cookie_policy);if(!a||a.Le&&!_.oy)a=null;else{var b=["G_AUTHUSER_",_.oy&&a.Le?"S":"H",a.ei].join(""),c=_.By[b];c||(c=new _.yy(b,_.Fy(a)),_.By[b]=c);a=c}_.Be("googleapis.config/sessionIndex",null);a.clear()};jz=function(a){return Ty(function(b){return a[b]})};kz=0;lz=!1;mz=[];nz={};oz={};pz=null;
qz=function(a){var b=_.My;return function(c){if(this.f==b&&this.t==_.yf.Cm(this.f)&&this.origin==_.yf.Om(this.f))return a.apply(this,arguments)}};rz=function(a){"function"===typeof a.setAttribute?a.setAttribute("aria-hidden","true"):a["aria-hidden"]="true"};sz=function(a){if(a&&!decodeURIComponent(a).startsWith("m;/_/scs/"))throw Error("Ga");};
tz=function(a){var b=_.De.Bg,c=b(a).jsh;if(null!=c)return sz(c),a;if(b=String(b().jsh||_.se.h||""))sz(b),c=(a+"#").indexOf("#"),a=a.substr(0,c)+(-1!==a.substr(0,c).indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(b)+a.substr(c);return a};uz=function(){return!!_.Ae("oauth-flow/usegapi")};vz=function(a,b){uz()?pz.unregister(a):_.yf.unregister(a+":"+b)};wz=function(a,b,c){uz()?pz.register(a,c,_.hm):_.yf.register(a+":"+b,qz(c))};xz=function(){Vy.parentNode.removeChild(Vy)};
yz=function(a){var b=Vy;_.Ky(b,[{kz:"-webkit-transform",duration:1,timing:"ease",delay:0}]);_.Ky(b,[{kz:"transform",duration:1,timing:"ease",delay:0}]);_.Ex(function(){b.style.webkitTransform="translate3d(0px,"+a+"px,0px)";b.style.transform="translate3d(0px,"+a+"px,0px)"},0)};zz=function(){var a=Wy+88;yz(a);Wy=a};Az=function(){var a=Wy-88;yz(a);Wy=a};
Bz=function(a){var b=a?zz:Az,c=a?Az:zz;a=a?"-":"";Wy=parseInt(a+88,10);Vy.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";Vy.style.transform="translate3d(0px,"+a+88+"px,0px)";Vy.style.display="";Vy.style.visibility="visible";b();_.Ex(c,4E3);_.Ex(xz,5E3)};
Cz=function(a){var b=_.Ae("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=document.createElement("div");Vy=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";_.Gr(c,"visibility","hidden");_.Gr(c,b,"-40px");_.Gr(c,"height","128px");var d=c;if(!_.Eq()&&!_.Dq()){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?"-":"";Wy=parseInt(e+88,10);Vy.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";Vy.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){}_.bm.openChild({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?Bz(!0):Bz(!1)}})};
Dz=function(a){var b=_.En(),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==_.Ol.call(b,e)&&b.push(e)}0<b.length&&(a.scope=b.join(" "))}return a};
Ez=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=_.Ae("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!=bz(c)||!jz(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};Fz=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+)\.?\.?\.?$/,"$1");a=_.of(_.Sy(a,!0));if(!1===a)throw Error("Ha");return a};Gz=function(a){return(a=Fz(a))?a.sub:null};
Hz=function(a){a&&mz.push(a);a=_.My;var b=document.getElementById(a),c=(new Date).getTime();if(b){if(kz&&6E4>c-kz)return;var d=_.yf.Cm(a);d&&(vz("oauth2relayReady",d),vz("oauth2callback",d));b.parentNode.removeChild(b);if(/Firefox/.test(navigator.userAgent))try{window.frames[a]=void 0}catch(f){}_.Ny();a=_.My}kz=c;var e=String(2147483647*(0,_.mg)()|0);b=_.Ae("oauth-flow/proxyUrl")||_.Ae("oauth-flow/relayUrl");uz()?pz=_.bm.openChild({where:_.De.PM(),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(_.eg.getOrigin(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.De.PM(),d=_.De.uL({name:a,id:a}),d.src=tz(b),d.style.width="1px",d.style.height="1px",d.style.position="absolute",d.style.top="-100px",d.tabIndex=-1,rz(d),c.appendChild(d),_.yf.eu(a));wz("oauth2relayReady",e,function(){vz("oauth2relayReady",e);var f=mz;if(null!==f){mz=null;for(var h=0,k=f.length;h<
k;++h)f[h]()}});wz("oauth2callback",e,function(f){var h=_.De.Bg;h=h(f);var k=h.state;f=k.replace(/\|.*$/,"");f={}.hasOwnProperty.call(oz,f)?oz[f]:null;h.state=f;if(null!=h.state){f=nz[k];delete nz[k];k=f&&f.key||"token";var l=h=Ez(f&&f.params,h),m=Gz(l);if(m){var n=gz(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 ")&&_.Ae("isLoggedIn")&&"1"===(l&&l._aa)&&(l._aa="0",lz||(lz=!0,Cz(l)));_.dz(k,h);h=cz(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)}}})};_.Iz=function(a){null!==mz?Hz(a):a&&a()};Kz=function(a,b){var c=Jz,d=Gz(a);d&&(iz(a),hz(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=Ez(null,e);c(e)}}))};
Jz=function(a){a||(a=cz(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||(_.se.drw=null);_.dz(a);if(b=a.authuser)_.Ae("googleapis.config/sessionIndex"),_.Be("googleapis.config/sessionIndex",b);_.Oy.Cn(_.Py,a);return a};Lz=["client_id","cookie_policy","response_type"];Mz="client_id response_type login_hint authuser prompt include_granted_scopes after_redirect access_type hl state".split(" ");
Nz=function(a){var b=_.gj(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);_.Sv(b);return b};
Oz=function(a){if(void 0===a.include_granted_scopes){var b=_.Ae("include_granted_scopes");a.include_granted_scopes=!!b}};Pz=function(a){window.console&&("function"===typeof window.console.warn?window.console.warn(a):"function"===typeof window.console.log&&window.console.log(a))};
Qz=function(a){var b=a||{},c={};_.Nb(Mz,function(d){null!=b[d]&&(c[d]=b[d])});a=_.Ae("googleapis/overrideClientId");null!=a&&(c.client_id=a);Oz(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{_.Iw(c.cookie_policy)}catch(d){c.cookie_policy&&
Pz("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=_.xh(),null!=a&&(c.authuser=a));a=b.redirect_uri||_.Ae("oauth-flow/redirectUri");
null!=a&&"postmessage"!=a&&(c.redirect_uri=a);c.gsiwebsdk="shim";return c};
Rz=function(a,b){var c=Qz(a),d=new _.Aj(function(e,f){_.px(c,function(h){var k=h||{};_.Nb(Lz,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=Nz(k),null!=h.authuser&&_.Be("googleapis.config/sessionIndex",h.authuser),e(h))})});b&&d.then(b,b);return d};Sz=_.Lh.NM;Tz=null;
_.Wz=function(a,b){if("force"!==a.approvalprompt){a=_.Uz(a);a.prompt="none";delete a.redirect_uri;delete a.approval_prompt;delete a.immediate;if(b=!b)Tz?(a.client_id!==Tz.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+a.client_id),b=!0):(Tz=a,b=!1);b||Vz(a)}};
_.Uz=function(a){var b=a.redirecturi||"postmessage",c=(0,_.ic)((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,_.ic)(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||_.Ae("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.Ae("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b};Vz=function(a){_.uo("waaf0","signin","0");Rz(a,function(b){_.uo("waaf1","signin","0");Jz(b)})};
_.Xz=function(a){a=_.Uz(a);_.Be("oauth-flow/authWindowWidth",445);_.Be("oauth-flow/authWindowHeight",615);Vz(a)};_.Yz=function(a){_.Oy.unsubscribe(_.Py,a);_.Oy.subscribe(_.Py,a)};
var eA,hA;_.$z=function(a){return a.cookiepolicy?!0:(_.Zz("cookiepolicy is a required field.  See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.Zz=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.dA=function(a,b){var c=_.En();_.je(a,c);c=Dz(c);if(_.$z(c)){var d=_.aA();_.bA(c);b?_.qe(b,"click",function(){_.cA(c,d)}):_.cA(c,d)}};
_.aA=function(){var a=new eA;_.Yz(function(b){a.cF&&b&&(b.access_token&&_.Be("isPlusUser",!0),b["g-oauth-window"]&&(a.cF=!1,_.tf.warn("OTA app install is no longer supported.")))});return a};eA=function(){this.cF=!1};_.bA=function(a){a=_.fA(a);_.gA(a.callback);_.Iz(function(){_.Wz(a)})};_.fA=function(a){hA(a);a.redirecturi&&delete a.redirecturi;Uy(function(b){return a[b]})||(a.authuser=0);return a};hA=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")};
_.gA=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.Zz('Callback function named "'+a+'" not found');return}a&&_.Yz(a)};_.cA=function(a,b){b.cF=!0;a=_.fA(a);_.Xz(a)};
_.D("gapi.auth.authorize",Rz);_.D("gapi.auth.checkSessionState",function(a,b){var c=_.he();c.client_id=a.client_id;c.session_state=a.session_state;_.Iz(function(){uz()?pz.send("check_session_state",c,function(d){b.call(null,d[0])},_.hm):_.yf.call(_.My,"check_session_state",qz(function(d){b.call(null,d)}),c.session_state,c.client_id)})});_.D("gapi.auth.getAuthHeaderValueForFirstParty",Sz);_.D("gapi.auth.getToken",cz);
_.D("gapi.auth.getVersionInfo",function(a,b){_.Iz(function(){var c=_.Jh()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?uz()?pz.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(f){a(f[0])},_.hm):_.yf.call(_.My,"get_versioninfo",qz(function(f){a(f)}),d,b):a()})});_.D("gapi.auth.init",_.Iz);_.D("gapi.auth.setToken",_.dz);_.D("gapi.auth.signIn",function(a){_.dA(a)});_.D("gapi.auth.signOut",function(){var a=cz();a&&Kz(a,a.cookie_policy)});
_.D("gapi.auth.unsafeUnpackIdToken",Fz);_.D("gapi.auth._pimf",_.Wz);_.D("gapi.auth._oart",Cz);_.D("gapi.auth._guss",function(a){return fz(a).read()});

var iA=_.En();iA.clientid&&iA.scope&&iA.callback&&!_.Ae("disableRealtimeCallback")&&_.bA(iA);

});
// Google Inc.
