(function(_ds){var window=this;'use strict';var RW=function(){var a=_ds.zi(),b=_ds.oi(a.href);_ds.ni(b,"authuser");a=new URL("/_d/signout",a.origin);a=_ds.oi(a.href);_ds.li(a,"continue",b.toString());return a.toString()},SW=function(a){_ds.of(this,a,-1,null,null)},TW=function(a){_ds.of(this,a,-1,null,null)},UW=function(){return(0,_ds.V)('
')},VW=function(){return(0,_ds.V)('')},
WW=function(a){var b=a.name,c=a.np,d=a.op,e=a.Zn,g=a.$n,k=a.email,l=a.domain,m=a.fl,p=a.Zm,q=a.jo;a=a.lp;c='")},XW=function(){return(0,_ds.V)('')},
YW=function(a){a=a||{};var b=a.zp,c=a.cg,d=a.Uo,e='';a.Ji?e+='
':(e+='
',
d&&(a=e,d=(0,_ds.V)('
'),
e=a+('
'+d+'
'+XW()+"
"),e=e+'Create your Google Developer Profile
Personalize your experience, earn badges, and share your success.
Would you like to receive emails about Google Developer Profile?
The name on your Google Account will be used in your Google Developer Profile. It may appear where you contribute and can be changed at any time.
'+
(XW()+"
"),e=e+'Your Google Developer Profile has been created
Something went wrong
There was an error creating your profile.
'));
return(0,_ds.V)(e+"
")},ZW=function(a){a=a||{};var b=a.url,c=a.cg,d="";a=a.type;switch(_ds.mb(a)?a.toString():a){case "create-profile":d+='';
d+="Create Google Developer Profile";break;case "view-profile":d+='';
d+="Google Developer Profile";break;case "view-pages":d+='View your saved and rated pages on your
Google Developer Profile.'}return(0,_ds.V)(d)},bX=function(a){var b=void 0;a=void 0===a?!1:a;b||(b=$W());return(window.gapi?Promise.resolve():_ds.Ci("https://apis.google.com/js/platform.js")).then(function(){return aX()}).then(function(){a&&(window.gapi.config.update("googleapis.config/auth/useFirstPartyAuth",
!0),window.gapi.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0));return window.gapi.client.init(b)}).then(function(){return window.gapi})},aX=function(){return new Promise(function(a){window.gapi.load("client:auth2",a)})},cX=function(a){return(a=document.querySelector("meta[name="+a+"]"))&&a.getAttribute("content")},$W=function(){var a=cX("google-signin-client-id"),b=cX("google-signin-scope");if(a||b)var c={};a&&(c.clientId=a);b&&(c.scope=b);return c},dX=function(a,b){if(!a)return a;
a.startsWith("http")||(a="https://"+a);return a.includes("photo.jpg")?a.replace(/sz=(\d+)$/,"sz="+b):a.replace(/=s\d+-c$/,"=s"+b+"-c")},eX=function(a){this.$=a;this.C=!1;this.eventHandler=new _ds.Qj(this);this.h=!1;this.o=this.m=this.j=null;this.$=a},gX=function(a){return _ds.Q(a,function c(){var d=this,e,g;return _ds.C(c,function(k){if(1==k.h){if(d.j)return k.J(2);e=d.$.hasAttribute("fp-auth");return _ds.u(k,bX(e),3)}return 2!=k.h?(d.j=k.j,g=d.j.auth2.getAuthInstance(),g.isSignedIn.listen(d.Qn.bind(d)),
g.currentUser.listen(d.jj.bind(d)),_ds.u(k,fX(d),2)):k.return(d.j)})})},hX=function(a){return _ds.Q(a,function c(){var d,e,g,k,l,m;return _ds.C(c,function(p){switch(p.h){case 1:if(!window.caches)return p.return();_ds.x(p,2);return _ds.u(p,window.caches.open("devsite.pwa_RUNTIME_v2"),4);case 4:d=p.j;_ds.z(p,3);break;case 2:return _ds.A(p),p.return();case 3:if(!d){p.J(0);break}return _ds.u(p,d.keys(),6);case 6:e=p.j,g=_ds.n(e),k=g.next();case 7:if(k.done){p.J(0);break}l=k.value;m=new URL(l.url);if(m.origin!==
document.location.origin||"/sw.js"===m.pathname){p.J(8);break}_ds.x(p,11);return _ds.u(p,d.delete(l),13);case 13:_ds.z(p,8);break;case 11:_ds.A(p);case 8:k=g.next(),p.J(7)}})})},iX=function(a){a.$.removeAttribute("dialog--open");_ds.Xg(a.$);var b=_ds.ir(UW);a.eventHandler.listen(b.querySelector(".devsite-user-signin"),"click",function(){return void a.signIn()});a.$.appendChild(b)},jX=function(a){return _ds.Q(a,function c(){var d=this,e,g,k,l,m,p,q,r,w;return _ds.C(c,function(y){if(1==y.h)return e=
d,d.$.removeAttribute("dialog--open"),_ds.Xg(d.$),_ds.u(y,gX(d),2);if(3!=y.h)return g=y.j,k=g.auth2.getAuthInstance(),l=k.currentUser.get(),m=l.getBasicProfile(),p=_ds.ir(WW,{email:m.getEmail(),np:dX(m.getImageUrl(),32),op:dX(m.getImageUrl(),64),Zn:dX(m.getImageUrl(),96),$n:dX(m.getImageUrl(),192),name:m.getName(),domain:l.getHostedDomain(),fl:"https://myaccount.google.com/?utm_source=OGB&utm_medium=act",Zm:"https://www.google.com/support/accounts/bin/answer.py?answer=181692",jo:"https://myaccount.google.com/privacypolicy",
lp:"https://myaccount.google.com/termsofservice"}),q=p.querySelector(".devsite-user-change-account"),d.eventHandler.listen(q,"click",function(){e.changeAccount()}),r=p.querySelector(".devsite-user-signout"),d.eventHandler.listen(r,"click",function(){e.signOut()}),w=p.querySelector(".devsite-user-dialog-toggle"),d.$.appendChild(p),_ds.u(y,_ds.Oi(),3);w.classList.add("show");d.$.dispatchEvent(new CustomEvent("devsite-element-visible",{bubbles:!0}));_ds.v(y)})})},fX=function(a){return _ds.Q(a,function c(){var d=
this,e,g,k,l,m,p,q,r,w;return _ds.C(c,function(y){switch(y.h){case 1:return _ds.u(y,gX(d),2);case 2:return e=y.j,g=e.auth2.getAuthInstance(),k=g.currentUser.get(),_ds.u(y,d.isSignedIn(),3);case 3:if(y.j)return m=k.getAuthResponse(!0),p=m.access_token,q=m.id_token,r=new FormData,r.set("access_token",p),r.set("id_token",q),d.m||(d.m=_ds.Hi("/signinv2",r)),_ds.x(y,10,11),_ds.u(y,d.m,11);d.o||(d.o=_ds.Hi("/signoutv2"));_ds.x(y,6,7);return _ds.u(y,d.o,7);case 7:_ds.Aa(y);d.o=null;_ds.Ba(y,0);break;case 6:l=
_ds.A(y);console.log("failed to update server state, signed out:",l);y.J(7);break;case 11:_ds.Aa(y);d.m=null;_ds.Ba(y,12);break;case 10:w=_ds.A(y);console.log("failed to update server state, signed in:",w);y.J(11);break;case 12:e.client.setToken(m),_ds.v(y)}})})},kX=function(a){this.$=a;this.j=0;this.h=!1;this.email=this.xe="";this.$=a},qX=function(a){return _ds.Q(a,function c(){var d,e=this,g,k,l;return _ds.C(c,function(m){switch(m.h){case 1:return lX||(lX=_ds.Hi("/profile/ogb")),_ds.x(m,2),_ds.u(m,
lX,4);case 4:d=m.j;_ds.z(m,3);break;case 2:_ds.A(m),e.$.removeAttribute("signed-in"),e.h=!1;case 3:lX=null;if(!d){m.J(5);break}_ds.x(m,6);g=_ds.If(SW,d);return _ds.u(m,mX(e,g),8);case 8:_ds.z(m,5);break;case 6:_ds.A(m),e.$.removeAttribute("signed-in"),e.h=!1;case 5:return nX||(nX=_ds.Hi("/profile/user")),_ds.x(m,9),_ds.u(m,nX,11);case 11:k=m.j;_ds.z(m,10);break;case 9:_ds.A(m),oX(e);case 10:nX=null;if(k)try{l=_ds.If(TW,k),e.h=_ds.uf(l,1),e.h?(e.$.setAttribute("signed-in",""),document.body.setAttribute("signed-in",
""),e.xe=_ds.L(l,2),e.email=l.getEmail()):(e.$.removeAttribute("signed-in"),document.body.removeAttribute("signed-in"),e.xe="",e.email=""),pX.resolve()}catch(p){oX(e)}_ds.v(m)}})})},mX=function(a,b){return _ds.Q(a,function d(){var e=this,g,k,l,m,p,q,r,w,y;return _ds.C(d,function(D){if(1==D.h){_ds.Xg(e.$);var B=_ds.L(b,4);B=B.replace(/@import\surl\([^)]+\);?/,"");var H=_ds.Eg(),J=H.h,T=H.createElement("STYLE"),ma=_ds.ab();ma&&T.setAttribute("nonce",ma);T.type="text/css";H.getElementsByTagName("HEAD")[0].appendChild(T);
T.styleSheet?T.styleSheet.cssText=B:T.appendChild(J.createTextNode(B));g=document.createRange().createContextualFragment(_ds.L(b,1));k=document.createElement("div");k.classList.add("ogb-wrapper","ogb-pending");k.appendChild(g);e.$.appendChild(k);l=k.querySelectorAll("#gb a");1r.Z.detail.contentHeight&&yX(a)});var g=a.querySelector(".devsite-devprofile-callout-step1"),k=a.querySelector(".devsite-devprofile-callout-step2"),l=a.querySelector(".devsite-devprofile-callout-step3"),m=a.querySelector(".devsite-devprofile-callout-step4"),p=a.querySelector(".devsite-devprofile-callout-error"),q=a.querySelector(".devsite-devprofile-callout");a.eventHandler.listen(e,"click",function(r){r.preventDefault();r.stopPropagation();null===
g||void 0===g?void 0:g.removeAttribute("hidden");null===l||void 0===l?void 0:l.setAttribute("hidden","");null===p||void 0===p?void 0:p.setAttribute("hidden","");null===q||void 0===q?void 0:q.classList.add("active")});a.eventHandler.listen(c,"click",function(r){r.preventDefault();r.stopPropagation();null===g||void 0===g?void 0:g.setAttribute("hidden","");null===k||void 0===k?void 0:k.removeAttribute("hidden");null===q||void 0===q?void 0:q.classList.add("active");clearTimeout(a.m)});a.eventHandler.listen(d,
"click",function(r){return _ds.Q(a,function y(){var D=this,B,H,J,T,ma;return _ds.C(y,function(Y){switch(Y.h){case 1:return B=D,r.preventDefault(),r.stopPropagation(),null===q||void 0===q?void 0:q.classList.add("active"),_ds.u(Y,DevsiteApp.whenReady(),2);case 2:return null===k||void 0===k?void 0:k.setAttribute("hidden",""),null===l||void 0===l?void 0:l.removeAttribute("hidden"),H=D.querySelector(".devsite-devprofile-callout-newsletter--input"),J=!(!H||!H.checked),_ds.u(Y,D.getAccountName(),3);case 3:if(T=
Y.j){Y.J(4);break}return _ds.u(Y,D.getAccountEmail(),5);case 5:(T=Y.j)&&(T=T.charAt(0));case 4:if(!T)return null===l||void 0===l?void 0:l.setAttribute("hidden",""),null===p||void 0===p?void 0:p.removeAttribute("hidden"),Y.return();ma=new _ds.Or;_ds.x(Y,6);return _ds.u(Y,ma.createProfile({profile:{name:T,creationMethod:"FASTTRACK",originTenantId:""+DevsiteApp.getTenantId(),feedbackEmailPreference:J,newsletterEmailPreference:J}},!1),8);case 8:null===l||void 0===l?void 0:l.setAttribute("hidden","");
null===m||void 0===m?void 0:m.removeAttribute("hidden");D.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",action:"Callout Profile created",label:"Developer Profiles Callout"},bubbles:!0}));D.m=setTimeout(function(){yX(B)},15E3);_ds.z(Y,0);break;case 6:_ds.A(Y),null===l||void 0===l?void 0:l.setAttribute("hidden",""),null===p||void 0===p?void 0:p.removeAttribute("hidden"),_ds.v(Y)}})})});c=Array.from(a.querySelectorAll(".button-dismiss"));c=
_ds.n(c);for(d=c.next();!d.done;d=c.next())a.eventHandler.listen(d.value,"click",function(){return void yX(a,!0)});(c=a.querySelector(".button-dismiss-final"))&&a.eventHandler.listen(c,"click",function(){return void yX(a)})}},yX=function(a,b){b=void 0===b?!1:b;var c;return _ds.Q(a,function e(){var g=this,k,l;return _ds.C(e,function(m){if(1==m.h){k=g.querySelector(".devsite-devprofile-callout");if(!k)return m.return(!1);l=g.querySelector(".devsite-devprofile-wrapper");null===l||void 0===l?void 0:l.classList.remove("open");
k.classList.add("hide");return _ds.u(m,_ds.Ri(160),2)}null===(c=k.parentNode)||void 0===c?void 0:c.removeChild(k);b&&(g.D.set("DEVELOPER_PROFILE_CALLOUT_DISMISSED","dismissed",{ub:2592E3,path:"/"}),g.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",action:"Callout dismissed - cookie",label:"Developer Profiles Callout"},bubbles:!0})));_ds.Wj(g.j);clearTimeout(g.m);return m.return(!0)})})},AX=function(a){_ds.Q(a,function c(){var d=this,e;return _ds.C(c,
function(g){if(1==g.h){e=d.getAttribute("notification-msg");if(!e)return g.J(0);d.removeAttribute("notification-msg");return _ds.u(g,DevsiteApp.whenReady(),3)}if(4!=g.h)return _ds.u(g,window.customElements.whenDefined("devsite-snackbar"),4);d.dispatchEvent(new CustomEvent("devsite-show-custom-snackbar-msg",{detail:{msg:e,showClose:!0},bubbles:!0}));_ds.v(g)})})},sX=function(a){a.removeAttribute("dialog--open");var b=a.querySelector(".devsite-user-dialog");b&&b.setAttribute("aria-hidden","true");(a=
a.querySelector(".devsite-user-dialog-toggle"))&&a.setAttribute("aria-label","Open account dialog")},zX=function(a){return _ds.Q(a,function c(){var d,e,g,k=this,l;return _ds.C(c,function(m){switch(m.h){case 1:return d=null,e=new _ds.Or,_ds.x(m,2),_ds.u(m,e.getProfile(),4);case 4:d=m.j;_ds.z(m,3);break;case 2:_ds.A(m);case 3:return null===d?_ds.u(m,(0,_ds.Sr)("/u/new",!1,!0),9):_ds.u(m,(0,_ds.Sr)("/u/me",!1,!0),7);case 7:return g=m.j,_ds.u(m,k.Dd("view-profile",g),0);case 9:return l=m.j,_ds.u(m,k.Dd("create-profile",
l),0)}})})};_ds.F(SW,_ds.jf);_ds.f=SW.prototype;_ds.f.W_=function(a){var b={qfa:_ds.L(this,1),wW:_ds.L(this,2),vW:_ds.L(this,3),xW:_ds.L(this,4),Os:_ds.L(this,5),eE:_ds.L(this,6),fE:_ds.L(this,7)};a&&(b.M=this);return b};
_ds.f.V_=function(){var a=new _ds.Ne;var b=_ds.L(this,1);0