/* JS */ gapi.loaded_2(function(_){var window=this; _.Fn=function(){return Math.floor((new Date).getTime()/1E3)};var MC;var LC;_.Vj=function(a,c){this.B=a;var f=c||{};this.M=f.Fr;this.G=f.domain;this.ha=f.path;this.qa=f.wD};LC=/^[-+/_=.:|%&a-zA-Z0-9@]*$/;MC=/^[A-Z_][A-Z0-9_]{0,63}$/;_.Vj.prototype.Hd=function(){for(var a=this.B+"=",c=window.document.cookie.split(/;\s*/),f=0;fqk;++qk);var rk;rk=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];_.sk="https:"===window.location.protocol;_.uk=_.sk||"http:"===window.location.protocol?_.Vj:_.dk;_.vk=function(a){a=a.toUpperCase();for(var c=0,f=rk.length;cf.expires_at&&(a.Kc.clear(),f=null);f&&f.error&&!c&&(f=null);return f}; _.rl=function(a){var c="";if(!a)return c;for(var f in a)if({}.hasOwnProperty.call(a,f)){var g;g=a[f];if(null!=g){var h=[(0,window.encodeURIComponent)(f),"="];if(g instanceof Array){for(var l=[],n=0;n");var n=_.R.createElement(g.join(""));n&&(!f||n.tagName==f.tagName&&n.namespaceURI==f.namespaceURI)&&(f=n)}catch(q){}g=f;a=a||{};for(var t in a)a.hasOwnProperty(t)&&(g[t]=a[t]);return f};_.R.Jk=function(){if(window.document.body)return window.document.body;try{var a=window.document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "body");if(a&&1==a.length)return a[0]}catch(f){}return window.document.documentElement||window.document};_.R.Qt=function(c){return a(c)}})(); _.R=_.R||{};(function(){function a(a){c=a["core.util"]||{}}var c={},f={};_.Pb&&_.Pb.register("core.util",null,a);_.R.Nt=function(a){return"undefined"===typeof c[a]?null:c[a]};_.R.hasFeature=function(a){return"undefined"!==typeof c[a]};_.R.Rt=function(){return f}})(); var Cp;var Sn;var Dp;var Bp;var zp;var $o;$o=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};_.Qn=function(a){a=String(a);if($o(a))try{return eval("("+a+")")}catch(c){}throw Error("G`"+a);};_.PC=function(a){var c=[];Bp(new zp,a,c);return c.join("")};zp=function(){}; Bp=function(a,c,f){switch(typeof c){case "string":Cp(c,f);break;case "number":f.push((0,window.isFinite)(c)&&!(0,window.isNaN)(c)?c:"null");break;case "boolean":f.push(c);break;case "undefined":f.push("null");break;case "object":if(null==c){f.push("null");break}if((0,_.ea)(c)){var g=c.length;f.push("[");for(var h="",l=0;lc?h+="000":256>c?h+="00":4096>c&&(h+="0");return Dp[a]=h+c.toString(16)}),'"')}; _.fp=function(){this.B=[];this.G={}};(0,_.J)(_.fp,_.dh);_.k=_.fp.prototype;_.k.dl=1;_.k.Pg=0;_.k.zf=function(a){if(0!=this.Pg)return this.ha||(this.ha=[]),this.ha.push(a),!1;var c=this.B[a];if(c){var f=this.G[c];f&&(0,_.xe)(f,a);delete this.B[a];delete this.B[a+1];delete this.B[a+2]}return!!c};_.k.jj=function(a,c){var f=this.G[a];if(f){this.Pg++;for(var g=(0,_.Ae)(arguments,1),h=0,l=f.length;hf;f++)tv[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f),sv[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(f),rv[sv[f]]=f}for(var f=rv,g=[],h=0;h>4);64!=q&&(g.push(n<<4&240|q>>2),64!=t&&g.push(q<<6&192|t))}return c(String.fromCharCode.apply(null,g))};Gv=function(){vv.parentNode.removeChild(vv)};Hv=function(){var a=Dv+88;Cv(a,_.mr);Dv=a};Iv=function(){var a=Dv-88;Cv(a,_.Pr);Dv=a};Jv=function(a){var c=Ev(a).Hd();a=(0,_.d)();if(c)for(var c=c.split(":"),f;f=c.shift();)f=f.split("="),a[f[0]]=f[1];return a}; Kv=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};Lv=function(a){return(a=Fv(a))?a.sub:null};Mv=function(a){var c=a?Hv:Iv,f=a?Iv:Hv;a=a?"-":"";Dv=(0,window.parseInt)(a+88);vv.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";vv.style.transform="translate3d(0px,"+a+88+"px,0px)";vv.style.display="";vv.style.visibility="visible";c();(0,_.Rn)(f,_.Pr+_.nr);(0,_.Rn)(Gv,_.Pr+_.nr+_.mr)};Nv=function(a){a=a.split(":");return{FA:a[0].split("=")[1],$H:Kv(a[1]),SL:Kv(a[2]),vL:Kv(a[3])}}; Ov=function(a){var c=Lv(a),f;if(f=c)f="X"==Jv(a.cookie_policy)[c];return f}; Pv=function(a){var c=(0,_.P)("oauth-flow/toast/position");"top"!==c&&(c="bottom");var f=window.document.createElement("div");vv=f;f.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";var g;if((0,_.P)("oauth-flow/improveToastUi")){(0,_.Mg)(f,"visibility","hidden");(0,_.Mg)(f,c,"-40px");(0,_.Mg)(f,"height","128px");g=f;if("desktop"==(0,_.P)("deviceType")){g=window.document.createElement("div");g.style.cssText="float:left;position:relative;left:50%;";f.appendChild(g);var h=window.document.createElement("div"); h.style.cssText="float:left;position:relative;left:-50%";g.appendChild(h);g=h}h="top"==c?"-":"";Dv=(0,window.parseInt)(h+88);vv.style.webkitTransform="translate3d(0px,"+h+88+"px,0px)";vv.style.transform="translate3d(0px,"+h+88+"px,0px)"}else(0,_.Mg)(f,"display","none"),(0,_.Mg)(f,c,"20px"),g=window.document.createElement("div"),g.style.cssText="float:left;position:relative;left:50%;",f.appendChild(g),h=window.document.createElement("div"),h.style.cssText="float:left;position:relative;left:-50%",g.appendChild(h), g=h;h=window;try{for(;h.parent!=h&&h.parent.document;)h=h.parent}catch(l){}h=h.document.body;try{h.insertBefore(f,h.firstChild)}catch(n){}_.Sm.cj({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:g,onRestyle:function(){(0,_.P)("oauth-flow/improveToastUi")?"top"===c?Mv(!0):Mv(!1):f.style.display=""}})};Qv=!1; Rv=function(a){var c,f=null;_.uk.iterate(function(a,g){if(0===a.indexOf("G_AUTHUSER_")){var h=(0,_.wk)(a.substring(11));if(!c||h.Gb&&!c.Gb||h.Gb==c.Gb&&h.Ke>c.Ke)c=h,f=g}});var g=a&&(0,_.vk)(a);if(null!==f){var h;_.uk.iterate(function(a,f){var l=(0,_.xk)(a);l&&l.uf&&(g&&l.ep!=g||l.Gb==c.Gb&&l.Ke==c.Ke&&(h=f))});if(h){var l=Nv(h);a=l&&l.$H[Number(f)];l=l&&l.FA;if(a)return{Hr:f,mM:a,FA:l}}}return null};Sv=null;Tv=function(a){return"true"===String(a.immediate)}; Uv=function(a,c){var f=null;a&&c&&(f=c.client_id=c.client_id||a.client_id,c.scope=c.scope||a.scope,c.g_user_cookie_policy=a.cookie_policy,c.cookie_policy=c.cookie_policy||a.cookie_policy,c.response_type=c.response_type||a.response_type);if(c){c.issued_at||(c.issued_at=String((0,_.Fn)()));var g=(0,window.parseInt)(c.expires_in,10)||86400;c.error&&(g=(0,_.P)("oauth-flow/errorMaxAge")||86400);c.expires_in=String(g);c.expires_at||(c.expires_at=String((0,_.Fn)()+g));a&&Tv(a)||(c["g-oauth-window"]=(Sv|| {}).popup);c._aa||c.error||null!=Rv(f)||!Tv(a)||(c._aa="1");f=c.status={};f.google_logged_in=!!c.session_state;g=f.signed_in=!!c.access_token;f.method=g?c["g-oauth-window"]?"PROMPT":"AUTO":null}return c};Vv={}; Wv=function(a,c){var f,g;"string"==typeof a?(f=c,g=a):(f=a,g="token");if(f){var h=(0,_.wl)(f,!0);if(h){var l;if((l=f)&&l.session_state){var n=[],q=[],t=[],v=(0,window.parseInt)(l.authuser,10)||0;n[v]=l.session_state;q[v]=l.issued_at;t[v]=l.expires_at;l=["C="+l.client_id,"S="+n.join("|"),"I="+q.join("|"),"X="+t.join("|")].join(":")}else l=null;l&&h.Kc.write(l);"token"==g&&(h=(0,_.sl)(f.g_user_cookie_policy),!h||h.Gb&&!_.sk?h=null:(l="G_AUTHUSER_"+(_.sk&&h.Gb?"S":"H")+h.Ke,n=_.Fk[l],n||(n=new _.uk(l, (0,_.ul)(h)),_.Fk[l]=n),h=n),h&&(f.error?h.clear():f.session_state&&h.write(f.authuser||"0")))}}if(g="token"!==g?(0,_.vl)(g):(0,_.wl)(f))if(f){if(g.Kc.write(f),!_.ol||g.Fj&&"token"!==_.ol)_.ol=g.key}else g.Kc.clear(),_.ol=null;(0,_.xl)(void 0,void 0)}; Xv=function(a,c){var f=c&&c.key||"token",g=a=Uv(c&&c.params,a);(0,_.P)("oauth-flow/toastCfg")&&!Ov(g)&&0<=(" "+(g.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&"1"===g._aa&&(g._aa="0",Qv||(Qv=!0,Pv(g)));Wv(f,a);a=(0,_.xl)(f,void 0);if(c){(f=c.iframe)&&f.parentNode.removeChild(f);f=c.popup;g=c.after_redirect;if(f&&"keep_open"!=g)try{f.close()}catch(h){}c.timeout&&(window.clearTimeout(c.timeout),c.timeout=null);c.callback&&(c.callback(a),c.callback=null)}};Yv={};Zv={}; hw=[];lw=function(){var a=hw;if(null!==a){hw=null;for(var c=0,f=a.length;cf-nw)return;c.parentNode.removeChild(c);if(/Firefox/.test(window.navigator.userAgent))try{window.frames[a]=void 0}catch(g){}(0,_.as)();a=_.Ur}nw=f;var h=String(2147483647*(0,_.Vb)()|0);_.T.register("oauth2relayReady:"+h,mw(function(){_.T.Jd("oauth2relayReady:"+h);lw()}));_.T.register("oauth2relayReady",mw(function(){lw()}));c=mw(function(a){var c=_.R.dc;a= c(a);var c=a.state,f;f=c.replace(/\|.*$/,"");a.state={}.hasOwnProperty.call(Vv,f)?Vv[f]:null;null!=a.state&&(f=Yv[c],delete Yv[c],Xv(a,f))});_.T.register("oauth2callback:"+h,c);_.T.register("oauth2callback",c);var c=[(0,_.P)("oauth-flow/proxyUrl")||(0,_.P)("oauth-flow/relayUrl"),"?parent=",(0,window.encodeURIComponent)(_.Rb.Pq(window.location.href)),"#rpctoken=",h,"&forcesecure=1"].join(""),f=_.R.Jk(),l=_.R.Fh({name:a,id:a});l.src=c;l.style.width="1px";l.style.height="1px";l.style.position="absolute"; l.style.top="-100px";f.appendChild(l);_.T.tf(a)}};Jw=function(a,c,f,g){var h=Jv(f),l=h[a];c?h[a]="X":delete h[a];var n=[];(0,_.mf)(h,function(a,c){n.push(c+"="+a)});c=n.join(":");f=Ev(f);c?f.write(n.join(":")):f.clear();h[a]!==l&&g&&g()};Kw=function(a,c){for(var f=a.split(" "),g=c.split(" "),h=(0,_.d)(),l=0,n=g.length;lc.Ke)&&(c=l,f=a)});return f};Nw=function(a){var c=_.R.Jk(),f=_.R.Fh();f.src=a.uri;f.style.width="1px";f.style.height="1px";f.style.position="absolute";f.style.top="-100px";a.timeout=window.setTimeout(function(){f.parentNode&&f.parentNode.removeChild(f)},3E5);c.appendChild(f)}; Ow=function(a,c){if(Sv){var f=Sv.popup,g=Sv.after_redirect;if(f&&"keep_open"!=g&&!Tv(a))try{f.close()}catch(h){}}f=Sv={};"key"in a&&(f.key=a.key,delete a.key);a=yw(a);Sv.params=ww(a);Sv.callback=function(f){Ov(f)&&(Tv(a)?f=ow(f):f.error||Jw(Lv(f),!1,f.cookie_policy));(c||function(){})(Uv(a,f))};f.uri=vw(a,f);return f};Pw=function(a,c){(0,_.Iw)(function(){_.T.call(_.Ur,"check_session_state",function(a){c.call(null,a)},a.session_state,a.client_id)})}; Qw=function(a){a=_.R.dc("#"+(0,_.rl)(a));if(!Tv(a))return null;var c=a.key||Lw(a.client_id);return(c=(0,_.xl)(c,!0,!0))&&c.client_id===a.client_id&&Kw(a.scope,c.scope)&&Kw(a.response_type,c.response_type)?c:null}; Rw=function(a,c){var f=_.R.dc();a.hl=f.lang||f.hl||(0,_.P)("lang");var g=Ow(a,c);a.after_redirect&&(g.after_redirect=a.after_redirect);if(null!=a.scope){var h=function(){(0,_.Iw)(function(){if(g.popup)g.popup.focus();else if(Tv(a))Nw(g);else{var c=Math.min((0,_.P)("oauth-flow/authWindowWidth",650),window.screen.width-20),f=Math.min((0,_.P)("oauth-flow/authWindowHeight",600),window.screen.height-30);Sv.popup=window.open(g.uri,"_blank",["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no", "width="+c,"height="+f,"top="+(window.screen.height-f)/2,"left="+(window.screen.width-c)/2].join())}})},l=Qw(a);!(0,_.P)("oauth-flow/disableOpt")&&l?Pw(l,function(a){a?Xv(l,Sv):h()}):h()}else Xv(null,Sv)}; _.Sw=function(a,c){var f=a||{},g=c||function(){};if((0,_.P)("oauth-flow/disableOpt")||(0,_.P)("isLoggedIn")||!Tv(f))Rw(f,g);else{var h=(0,_.d)();h.client_id=f.client_id;h.session_state=null;Pw(h,function(a){a?(a=(0,_.d)(),a.error="immediate_failed_user_logged_out",g(Uv(f,a))):((0,_.Fa)("isLoggedIn",!0),Rw(f,g))})}}; Tw=function(a){a||(a=(0,_.xl)(void 0,!0));a&&"object"===typeof a||(a={error:"invalid_request",error_description:"no callback data"});var c=a.error_description;c&&window.console&&(window.console.error(a.error),window.console.error(c));a.error||(_.xd.drw=null);Wv(a);if(c=a.authuser)(0,_.P)("googleapis.config/sessionIndex"),(0,_.Fa)("googleapis.config/sessionIndex",c);_.ts.jj("oauth",a)};Uw=function(a,c){var f=Lv(a);f&&Jw(f,!0,c,function(){Tw&&Tw(ow(a))})};_.Vw=_.Qj.Qe;Ww=null; Xw=["request_visible_actions","client_id","scope"];_.ax=function(a,c){if("force"!==a.approvalprompt){var f=(0,_.Zw)(a);f.immediate=!0;delete f.redirect_uri;delete f.approval_prompt;var g;if(g=!c)if(Ww){for(g=0;g