var gfc_2n=osapi,gfc_3n="ceil";gfc_1[gfc_].xi=gfc_vd(20,function(a,b,c){return a?c<b?[]:a[gfc_Ac](gfc_d.min(b,a[gfc_B]),gfc_d.min(c,a[gfc_B])):[]});gfc_1[gfc_].share=gfc_vd(18,function(){gfc_nn();return!1});gfc_1[gfc_].zf=gfc_vd(16,function(){return this.Gb.pop()});gfc_1[gfc_].Yi=gfc_vd(15,function(){var a=this.yd;a.valid?(this.d=this.Hg(this.yd),this.$h(a[gfc_bd])):(this.yd=null,this.render(a.actions,a[gfc_bd],a.params));this.Gg()});
gfc_oa(gfc_Ff[gfc_],gfc_vd(3,function(){this.x=gfc_d[gfc_3n](this.x);this.y=gfc_d[gfc_3n](this.y);return this}));gfc_oa(gfc_Hf[gfc_],gfc_vd(2,function(){gfc_ma(this,gfc_d[gfc_3n](this[gfc_i]));gfc_Ga(this,gfc_d[gfc_3n](this[gfc_u]));return this}));gfc_oa(gfc_vh[gfc_],gfc_vd(1,function(){this.top=gfc_d[gfc_3n](this.top);gfc_Ha(this,gfc_d[gfc_3n](this[gfc_qc]));gfc_Da(this,gfc_d[gfc_3n](this[gfc_bc]));gfc_Na(this,gfc_d[gfc_3n](this[gfc_z]));return this}));
gfc_oa(gfc_wh[gfc_],gfc_vd(0,function(){gfc_Na(this,gfc_d[gfc_3n](this[gfc_z]));this.top=gfc_d[gfc_3n](this.top);gfc_ma(this,gfc_d[gfc_3n](this[gfc_i]));gfc_Ga(this,gfc_d[gfc_3n](this[gfc_u]));return this}));
var gfc_4n=function(a){return a=gfc_b[gfc_gd]+"/friendconnect/favicon?url="+escape(a)},gfc_7=function(a,b,c){this.Ia();this.Ir();var d=new gfc_R;d.set("members",{action:this.Tu,callback:this.Pt});d.set("member-page",{action:this.Su,callback:this.Ot});d.set("blocked-member-page",{action:this.Mu,callback:this.Kt});d.set("profile-friends-page",{action:this.Yu,callback:this.Tt});d.set("sitesData",{action:this.fv,callback:this.Xt});d.set("viewerFriends",{action:this.kv,callback:this.Zt});d.set("profileData",
{action:this.Xu,callback:this.St});d.set("blockUser",{action:this.Lu,callback:this.Jt});d.set("unblockUser",{action:this.iv,callback:this.Yt});d.set("profileFriends",{action:this.Zu,callback:this.Ut});d.set("activityData",{action:this.Kf,callback:this.jd});d.set("sendFriendRequest",{action:this.ev,callback:this.Wt});d.set("sendFriendRequestResponse",{action:this.Pu,callback:this.rm});d.set("deleteActivity",{action:this.Lf,callback:this.jd});d.set("requestAndProcessViewerNumWaitingMessages",{action:this.lv,
callback:this.au});d.set("requestPromo",{action:this.$u,callback:this.Vt});this.mb=null;this.Tx=new gfc_vn("fc-members-options-menu",gfc_L(this.mt,this),gfc_L(this.lt,this),gfc_L(this.nt,this),0,gfc_b[gfc_gd],this.f("ENDCAP_LINK_COLOR")||"0000cc",this.f("CONTENT_TEXT_COLOR")||"000000");this.xw=!1;this.Ca=10;this.tf=15;this.yn=10;var e=gfc_Zh(gfc_Gh()),f=gfc_5n;this.Ub=3;this.sc=8;this.Tm=null;this.la=this.sc*this.Ub;this.slimTopCapHeight=19;this.tinyTopCapHeight=8;this.isMessagingEnabled=a;this.isPromosEnabled=
b;this.isSocialShareEnabled=c;this.numWaitingMessages=0;this.promoCode=-1;this.promoHtml=null;this.Nb=new gfc_rn;this.Uh()&&(a=(a=this.f(f.FACE_SIZE))?gfc_ga(a):32,a+=6,this.Ub=gfc_d[gfc_5a]((e[gfc_i]-10)/a),e=340,e=this.f(f.HEIGHT),(f=this.f(f.NUMBER_ROWS))?(this.sc=gfc_ga(f),e=this.sc*a,this.Tm=e+27):e&&(e=gfc_ga(e)-96,this.sc=gfc_d.max(2,gfc_d[gfc_5a](e/a)),this.Tm=this.sc*a+27),this.la=this.sc*this.Ub);gfc_1[gfc_G](this,d)};gfc_7.inherits(gfc_1);
gfc_Ba(gfc_7[gfc_],function(){gfc_7.i[gfc_t][gfc_G](this);gfc__m("start");var a=gfc_a[gfc_r][gfc_Lc](),b=gfc_ca();(a=b.profileId||a.profileId)?(b={},b[gfc_e[gfc_x][gfc_q].ID]=a,a=new gfc_e[gfc_x](b),this.render(["profileData","profileFriends","activityData"],"profile",{person:a})):(a=["members","viewerFriends"],this.isMessagingEnabled&&a[gfc_v]("requestAndProcessViewerNumWaitingMessages"),this.isPromosEnabled&&!this.Jb()&&a[gfc_v]("requestPromo"),this.render(a,"faces"))});gfc_7[gfc_].e={};
gfc_7[gfc_].Ia=function(){this.e.MSG_SITE_MEMBERS="Members";this.e.MSG_BE_THE_FIRST="Be the first!";this.e.MSG_NO_SITE_MEMBERS="There are no members yet.";this.e.MSG_ALL_SITE_MEMBERS="All Members";this.e.MSG_ALL_BLOCKED_MEMBERS="All Blocked Members";this.e.MSG_NO_BLOCKED_MEMBERS="You have not blocked any members";this.e.MSG_YOUR_FRIENDS="Your Friends";this.e.MSG_ALL_YOUR_FRIENDS="All Your Friends";this.e.MSG_JFJ="Join and connect with others!";this.e.MSG_MANAGE="Manage members";this.e.MSG_SETTINGS=
"Settings";this.e.MSG_OPTIONS="Options";this.e.MSG_MEMBERS_SHARE="Share this page";this.e.MSG_BACK="Back";this.e.MSG_BACK_TO_TOP="Home";this.e.MSG_VIEW_MY_PROFILE="View my profile";this.e.MSG_ABOUT_ME="About me";this.e.MSG_MORE="More \u00bb";this.e.MSG_SHOW_BLOCKED="Show blocked members \u00bb";this.e.MSG_SHOW_ALL="\u00ab Show all members";this.e.MSG_LINK_IN_NETWORKS="Link in your social networks";this.e.MSG_ACTIVITIES="Activities";this.e.MSG_ALL_ACTIVITIES="More activities";this.e.MSG_DELETE_THIS=
"Delete";this.e.MSG_SITES="Sites I've joined";this.e.MSG_ALL_SITES="More sites I've joined";this.e.MSG_LINKS="Links";this.e.MSG_ALL_LINKS="More links";this.e.MSG_NO_ACTIVITIES="No activities to show";this.e.MSG_ADD_AS_FRIEND="Add as friend";this.e.MSG_SEND_MESSAGE="Send a message";this.e.MSG_BLOCK_USER="Block this user";this.e.MSG_UNBLOCK_USER="Unblock this user";this.e.MSG_USER_IS_ADMIN="Administrator";this.e.MSG_JOIN="Join this site";this.e.MSG_OR="or";this.e.MSG_SIGN_IN="Sign in";this.e.MSG_SIGN_OUT=
"Sign out";this.e.MSG_PREVIOUS="\u00ab Previous";this.e.MSG_NEXT="Next \u00bb";this.e.MSG_NEWER="\u00ab Newer";this.e.MSG_OLDER="Older \u00bb";this.e.MSG_ACCEPT_ALL_FRIEND_REQUESTS="Accept all";this.e.MSG_HELP_FRIENDREQUEST="You and your friends will see each other across all Friend Connect sites.";this.e.MSG_HELP_FRIENDINVITE="Once you are friends, you will see each other across all Friend Connect sites.";this.e.MSG_HELP_BLOCKMEMBER="Blocking a visitor removes them from the members list and prevents them from interacting with other visitors on your site";
this.e.MSG_INVITATION="Invitation:";this.e.MSG_SEND="Send";this.e.MSG_BLOCK="Block";this.e.MSG_IGNORE="Ignore";this.e.MSG_CANCEL="Cancel";this.e.MSG_SITE_SETTINGS="Site settings";this.e.MSG_ABOUT_FC="About Friend Connect";this.e.MSG_ALREADY_MEMBER="Already a member?";this.e.MSG_EDIT_PROFILE="Edit profile"};gfc_7[gfc_].oa={};
gfc_7[gfc_].Ir=function(){this.oa.MSG_SITE_MEMBERS="Followers";this.oa.MSG_NO_SITE_MEMBERS="There are no followers yet.";this.oa.MSG_SHOW_BLOCKED="Show blocked followers \u00bb";this.oa.MSG_SHOW_ALL="\u00ab Show all followers";this.oa.MSG_ALL_SITE_MEMBERS="All Followers";this.oa.MSG_ALL_BLOCKED_MEMBERS="All Blocked Followers";this.oa.MSG_NO_BLOCKED_MEMBERS="You have not blocked any followers";this.oa.MSG_LIKE_THIS_SITE="Like this blog?";this.oa.MSG_JOIN="Follow";this.oa.MSG_BACK_TO_TOP="Members";
this.oa.MSG_JFJ="Follow and connect with your friends!";this.oa.MSG_HELP_FRIENDREQUEST="You and your friends will see each other across all Following blogs and Friend Connect sites.";this.oa.MSG_HELP_FRIENDINVITE="Once you are friends, you will see each other across all Following blogs and Friend Connect sites."};
gfc_7[gfc_].K=function(a,b){var c=!0;if(b[gfc_o]&&b[gfc_o].person){var d={},e=b[gfc_o].person[gfc_Yb]()+" is your friend";d.MSG_IS_FRIEND=e;e="You have invited "+(b[gfc_o].person[gfc_Yb]()+" to be your friend");d.MSG_IS_INVITED=e;e=b[gfc_o].person[gfc_Yb]()+"'s friends";d.MSG_PROFILE_FRIENDS=e;e="All "+(b[gfc_o].person[gfc_Yb]()+"'s friends");d.MSG_ALL_PROFILE_FRIENDS=e;for(var f in d)this.h(a,f,d[f])}b.invitedBy&&b.invitedBy[gfc_Yb]()&&(d=gfc_c[gfc_i]?gfc_c[gfc_i]:gfc_c[gfc_C][gfc_1c]+2,c=(d-135)/
8,d=(d-175)/8,c="View "+(gfc_Pm(b.invitedBy[gfc_Yb](),c)+"'s profile"),d=gfc_Pm(b.invitedBy[gfc_Yb](),d)+" invited you to this site",this.h(a,"MSG_VIEW_INVITER_PROFILE",c),this.h(a,"MSG_INVITED_YOU",d),this.xw=!0,c=!1);d=this.numWaitingMessages+" messages waiting for you.";this.isMessagingEnabled&&0<this.numWaitingMessages&&(c=!1,this.h(a,"showWaitingMessages",!0),this.isMessagingEnabled&&(this.h(a,"MSG_NUM_WAITING_MESSAGES",d),this.h(a,"MSG_VIEW_AND_CONFIGURE_MESSAGING","View messages")));b.friendRequests&&
(0<b.friendRequests[gfc_Mb]()&&(c=!1),d=1==b.friendRequests[gfc_Mb]()?"New friend request \u00bb":"New friend requests ("+(b.friendRequests[gfc_Mb]()+") \u00bb"),this.h(a,"MSG_NEW_FRIEND_REQUESTS",d));if(this.mb){if(this.ul(this.mb.themeId))for(f in this.oa)this.h(a,f,this.oa[f]);this.mb.signInPrompt&&this.h(a,"MSG_JOIN",this.mb.signInPrompt);this.mb.signOutPrompt&&this.h(a,"MSG_SIGN_OUT",this.mb.signOutPrompt)}this.h(a,"isViewerAdmin",b.isViewerAdmin);this.h(a,"isMessagingEnabled",this.isMessagingEnabled);
this.h(a,"acceptMessages",this.co);this.h(a,"isViewingSelf",b.viewer&&b[gfc_o]&&b[gfc_o].person&&b.viewer[gfc_E]()==b[gfc_o].person[gfc_E]());d=!1;if(b.owner&&(e=b.owner[gfc_I]("profileExtensions")))for(f in e)d=!0;this.h(a,"communityHasProfile",d);this.h(a,"promoHtml",c?this.promoHtml:null);this.h(a,"insertHtml",function(a,b){gfc_Ka(a,b)})};gfc_7[gfc_].ul=function(a){return"blogger"==a};gfc_7[gfc_].Xg=function(a,b,c,d){gfc_ln({id:a,text:b,version:this.ul(this.mb.themeId)?1:null,style:c},d)};
gfc_7[gfc_].Q=function(a){function b(b,c){d.h(a,b,gfc_L(c,d))}this.h(a,"facesPerRow",this.Ub);for(var c in this.e)this.h(a,c,this.e[c]);var d=this;b("getThumbnail",this.xc);b("map",this.map);b("elide",gfc_Pm);b("safeSlice",this.xi);b("showAllActivities",this.iw);b("transformActivity",this.hc);b("nextActivities",this.Ns);b("previousActivities",this.vt);b("showAllLinks",this.kw);b("transformLink",this.Ww);b("nextLinks",this.Rs);b("previousLinks",this.xt);b("showAllSites",this.nw);b("transformSite",
this.Xw);b("nextSites",this.Ys);b("previousSites",this.Dt);b("showAllMembers",this.lw);b("showBlockedMembers",this.pw);b("showUnblockedMembers",this.Gw);b("nextMembers",this.Ss);b("nextBlockedMembers",this.Os);b("previousMembers",this.yt);b("previousBlockedMembers",this.wt);b("showAllProfileFriends",this.mw);b("nextProfileFriends",this.Xs);b("previousProfileFriends",this.Ct);b("showAllViewerFriends",this.ow);b("nextViewerFriends",this.Zs);b("previousViewerFriends",this.Et);b("isHome",this.Rh);b("goBack",
this.sh);b("goBackToHome",this.zw);b("editSettings",this.Eb);b("signout",this.signout);b("signin",this.signin);b("viewProfile",this.Tn);b("blockUser",this.yj);b("unblockUser",this.ax);b("goToInviteFriend",this.Oq);b("sendMessageDialog",this.Ev);b("goToBlockMember",this.Nq);b("goToEditProfile",this.Eb);b("goToViewerProfile",this.Pq);b("sendInvite",this.Dv);b("blockMember",this.Ao);b("acceptFriendRequest",this.bo);b("ignoreFriendRequest",this.Hr);b("viewFriendRequests",this.jx);b("acceptAllFriendRequests",
this.ao);b("numPreviewFriends",this.uq);b("numPreviewMembers",this.vq);b("showInvitedBy",this.Bq)};
gfc_7[gfc_].Mk=function(a){a=gfc_d.max(1,a?this.sc-1:this.sc);var b=this.d[gfc_k].members?this.d[gfc_k].members[gfc_Mb]():0,c=this.d[gfc_k].friends?this.d[gfc_k].friends[gfc_Mb]():0,b=gfc_d[gfc_3n](b/this.Ub),c=gfc_d[gfc_3n](c/this.Ub);b>gfc_d[gfc_3n](a/2)?c>gfc_d[gfc_5a](a/2)?(b=gfc_d[gfc_3n](a/2),c=gfc_d[gfc_5a](a/2)):b=gfc_d.max(0,a-c):c>gfc_d[gfc_5a](a/2)&&(c=gfc_d.max(0,a-b));b*=this.Ub;c*=this.Ub;return a={numMembers:b,numFriends:c}};gfc_7[gfc_].vq=function(a){return this.Mk(a).numMembers};
gfc_7[gfc_].uq=function(a){return this.Mk(a).numFriends};gfc_7[gfc_].Su=function(a,b){var c=gfc_e[gfc_H](),d={},e=gfc_e[gfc_D][gfc_Qc];d[e.FILTER]="PUBLICLY_VISIBLE";d[e.FIRST]=b[gfc_t];d[e.MAX]=b.pageSize?b.pageSize:this.la;var f=[gfc_e[gfc_x][gfc_q].ID,gfc_e[gfc_x][gfc_q][gfc_0a],gfc_e[gfc_x][gfc_q][gfc_Ab]];d[e[gfc_gc]]=f;d[gfc_e[gfc_D].DataRequestFields.ESCAPE_TYPE]=gfc_e.EscapeType[gfc_3c];c.add(c[gfc_5b](gfc_we(),d),"ownerFriends");c[gfc_n](a)};
gfc_7[gfc_].Ot=function(a){this.d[gfc_k].members=a.get("ownerFriends")[gfc_l]()};gfc_7[gfc_].Mu=function(a,b){var c=gfc_e[gfc_H](),d={},e=gfc_e[gfc_D][gfc_Qc];d[e.FIRST]=b[gfc_t];d[e.MAX]=b.pageSize?b.pageSize:this.la;d[gfc_e[gfc_D].DataRequestFields.ESCAPE_TYPE]=gfc_e.EscapeType[gfc_3c];e={};e[gfc_e[gfc_Gb][gfc_q][gfc_Xb]]=gfc_e[gfc_Gb].PersonId.OWNER;e[gfc_e[gfc_Gb][gfc_q][gfc_Sb]]="BLOCKED";e[gfc_e[gfc_Gb][gfc_q][gfc_tc]]=1;e=gfc_e[gfc_pc](e);c.add(c[gfc_5b](e,d),"blockedMembers");c[gfc_n](a)};
gfc_7[gfc_].Kt=function(a){this.d[gfc_k].blockedMembers=a.get("blockedMembers")[gfc_l]()};gfc_7[gfc_].Yu=function(a,b){var c=gfc_e[gfc_H](),d=b&&b.person&&b.person[gfc_E]()||this.v[gfc_o].person[gfc_E](),e={},f=gfc_e[gfc_D][gfc_Qc];e[f.FIRST]=b[gfc_t];e[f.MAX]=b.pageSize?b.pageSize:this.la;d=this.$l(d);e[gfc_e[gfc_D].DataRequestFields.ESCAPE_TYPE]=gfc_e.EscapeType[gfc_3c];c.add(c[gfc_5b](d,e),"profileFriends");c[gfc_n](a)};
gfc_7[gfc_].$l=function(a){var b={};b[gfc_e[gfc_Gb][gfc_q][gfc_Xb]]=a;b[gfc_e[gfc_Gb][gfc_q][gfc_Sb]]="FRIENDS";b[gfc_e[gfc_Gb][gfc_q][gfc_tc]]=1;return gfc_e[gfc_pc](b)};gfc_7[gfc_].Tt=function(a){this.d[gfc_k][gfc_o].friends=a.get("profileFriends")[gfc_l]()};gfc_7[gfc_].qj=function(a){for(var b=gfc_e[gfc_k].getDataContext(),c=0;c<a[gfc_B];c++){var d=a[c],d=b.getDataSet(d);if(!d||d.code)return!1}return!0};
gfc_7[gfc_].Tu=function(a){var b=this.la,c=!b||24==b;c&&gfc_e[gfc_k]&&this.qj(["ownerFriends","viewer","siteSettings","friendRequests"])?a(gfc_e[gfc_k].getDataContext()[gfc_l]()):(c=gfc_2n.newBatch(),b={userId:"@owner",groupId:"@friends",count:b,filterBy:"PUBLICLY_VISIBLE"},c.add("ownerFriends",gfc_2n.people.get(b)),c.add("viewer",gfc_2n.people.getViewer()),c.add("siteSettings",gfc_2n.extensions.get({command:"GetSiteSettings"})),c.add("friendRequests",gfc_2n.extensions.get({command:"GetFriendRequests",
params:'{"idSpec" : "VIEWER"}'})),(b=gfc_ca().psinvite)&&c.add("invitedBy",gfc_2n.extensions.get({command:"DecodeInvitation",params:{token:b}})),c.execute(a))};gfc_7[gfc_].Pt=function(a,b){this.d[gfc_k].members=gfc_oe(a.ownerFriends,gfc_je);this.d[gfc_k].viewer=gfc_je(a.viewer);this.rm(a,b,!0);this.mb=a[gfc_Rc];var c=gfc_ca();!c.psinvite||null!=this.d[gfc_k].viewer&&""!=this.d[gfc_k].viewer||(a.invitedBy&&(a.invitedBy.nickname=a.invitedBy.displayName),this.d[gfc_k].invitedBy=new gfc_e[gfc_x](a.invitedBy))};
gfc_7[gfc_].kv=function(a,b){b=b||{};var c=b.pageSize||this.maxFacesPerPage,d=!b[gfc_t]||0==b[gfc_t],e=!c||20==c;d&&e&&gfc_e[gfc_k]&&this.qj(["friends","isViewerAdmin"])?a(gfc_e[gfc_k].getDataContext()[gfc_l]()):(d=gfc_2n.newBatch(),c={userId:"@viewer",groupId:"@friends",count:c},b[gfc_t]&&(c.startIndex=b[gfc_t]),d.add("friends",gfc_2n.people.get(c)),d.add("isViewerAdmin",gfc_2n.people.get({userId:"@viewer",groupId:"ADMINS"})),d.execute(a))};
gfc_7[gfc_].Zt=function(a){var b=a.friends;b&&!b[gfc_rc]&&(this.d[gfc_k].friends=gfc_oe(b,gfc_je));this.Xm(a)};gfc_7[gfc_].lv=function(a){var b=gfc_e[gfc_H]();b.add(gfc_me("VIEWER"),"numWaitingMessages");b[gfc_n](a)};gfc_7[gfc_].au=function(a){this.numWaitingMessages=a.get("numWaitingMessages")[gfc_l]().numberOfWaitingMessages};
gfc_7[gfc_].$u=function(a){this.log("requesting promo");var b=new gfc_a[gfc_Ec],b=b.getLang()+(b[gfc_ld]()?"_"+b[gfc_ld]():""),c=gfc_e[gfc_H]();c.add(gfc_be("GetPromo",{hl:b}),"promo");c[gfc_n](a)};gfc_7[gfc_].Vt=function(a){this.log("processing promo");(a=a.get("promo")[gfc_l]())&&-1!=a.promoCode&&(this.promoCode=a.promoCode,this.promoHtml=a.promoHtml)};
gfc_7[gfc_].no=function(){for(var a=function(){this.promoHtml=null;for(var a=gfc_9f("div","fc-promo-main",gfc_P("peg")),b=0;b<a[gfc_B];b++)gfc_1h(a[b],!1);this.Y();this.log("Dismissing promo "+this.promoCode);a=gfc_e[gfc_H]();a.add(gfc_be("DismissPromo",{promoCode:this.promoCode}));a[gfc_n](gfc_L(function(){this.log("The promo has been dismissed");this.promoCode=-1},this))},b=gfc_9f("a","fc-promo-dismiss-link",gfc_P("peg")),c=0;c<b[gfc_B];c++){var d=b[c],e="click";gfc_5i(d,e);gfc_Wi(d,e,gfc_L(a,this))}};
gfc_7[gfc_].Xm=function(a){var b=a.isViewerAdmin;b&&!b[gfc_rc]?this.d[gfc_k].isViewerAdmin=b.list[gfc_B]:a.get&&a.get("isViewerAdmin")&&(a=a.get("isViewerAdmin"))&&!a[gfc_Dc]()&&(this.d[gfc_k].isViewerAdmin=a[gfc_l]()[gfc_Mb]())};gfc_7[gfc_].ao=function(a){var b=[];a.each(function(a){a={user:a[gfc_I](goog.opensocial.peoplesense.Invite[gfc_q].INVITER)[gfc_E](),action:"ACCEPT"};b[gfc_v](a)});this.render(["sendFriendRequestResponse","members","viewerFriends"],gfc_L(this.Eg,this),{friendRequestResponses:b})};
gfc_7[gfc_].zw=function(){this.fa();this.render(["members","viewerFriends"],"faces")};gfc_7[gfc_].bo=function(a){a={user:a[gfc_E](),action:"ACCEPT"};this.render(["sendFriendRequestResponse","members","viewerFriends"],gfc_L(this.Eg,this),{friendRequestResponses:[a]})};gfc_7[gfc_].jx=function(){this.fa();this.B("friend-requests")};gfc_7[gfc_].Tn=function(a){this.Jb()?(this.fa(),this.lx(a)):gfc_9d(a[gfc_E]())};
gfc_7[gfc_].lx=function(a){this.render(["profileData","profileFriends","activityData"],"profile",{person:a})};gfc_7[gfc_].fv=function(a,b){var c=gfc_e[gfc_H](),d=gfc_e[gfc_D][gfc_Qc],e={};e[d.FIRST]=b&&b[gfc_t]?b[gfc_t]:0;var f=this.d[gfc_k][gfc_o].person[gfc_E]();e[d.MAX]=this.yn;c.add(gfc_te(gfc_e[gfc_pc]({userId:f}),e),"profileSites");c[gfc_n](a)};gfc_7[gfc_].Xt=function(a){this.d[gfc_k][gfc_o].sites=a.get("profileSites")[gfc_l]()};
gfc_7[gfc_].Xu=function(a,b){this.d[gfc_k].profile={};b=b||{};var c=b.person,d={},c=c[gfc_E](),e=gfc_e[gfc_H](),f=[gfc_e[gfc_x][gfc_q].ID,gfc_e[gfc_x][gfc_q][gfc_0a],gfc_e[gfc_x][gfc_q][gfc_Ab],gfc_e[gfc_x][gfc_q].ABOUT_ME,gfc_e[gfc_x][gfc_q].URLS,"profileExtensions"],g=gfc_e[gfc_D][gfc_Qc];d[g[gfc_gc]]=f;d[gfc_e[gfc_D].DataRequestFields.ESCAPE_TYPE]=gfc_e.EscapeType[gfc_3c];e.add(e.newFetchPersonRequest(c,d),"profile");e.add(e.newFetchPersonRequest("VIEWER",d),"viewer");e.add(gfc_re("VIEWER","ADMINS"),
"isViewerAdmin");e.add(e.newFetchPersonRequest("OWNER",d),"owner");this.mb||e.add(gfc_le(),"siteSettings");e.add(gfc_re(c,"ADMINS"),"isAdmin");e.add(gfc_re(c,"BLOCKED"),"isBlocked");this.isMessagingEnabled&&e.add(gfc_me(c),"canMessage");e[gfc_n](a)};
gfc_7[gfc_].Kf=function(a,b){var c=b.person[gfc_E](),d=gfc_e[gfc_pc]({userId:c}),e=gfc_e[gfc_H]();(this.d[gfc_k].viewer&&c!=this.d[gfc_k].viewer[gfc_E]()||this.Jb())&&e.add(gfc_qe(b.person[gfc_E](),"VIEWER"),"isProfileFriend");e.add(e[gfc_7c](d,{}),"activities");e[gfc_n](a)};
gfc_7[gfc_].jd=function(a,b){null!=a.get("activities")[gfc_l]()&&(this.d[gfc_k][gfc_o].activities=a.get("activities")[gfc_l]());var c=a.get("isProfileFriend");c&&b&&null!=this.d[gfc_k].viewer&&this.d[gfc_k].viewer[gfc_E]()!=b.person[gfc_E]()&&(this.d[gfc_k][gfc_o].isFriend=c[gfc_l]()[gfc_w])};
gfc_7[gfc_].St=function(a,b){var c=a.get("profile")[gfc_l]();this.d[gfc_k][gfc_o].person=c;this.d[gfc_k][gfc_o].person.externalProfileUrl=null;var d=c[gfc_I](gfc_e[gfc_x][gfc_q].URLS),e=[];if(d)for(var f=0;f<d[gfc_B];f++){var g=d[f];"profile"!=g[gfc_I](gfc_e.Url[gfc_q].TYPE)&&"externalProfile"!=g[gfc_I](gfc_e.Url[gfc_q].TYPE)&&e[gfc_v](g);"externalProfile"==g[gfc_I](gfc_e.Url[gfc_q].TYPE)&&(this.d[gfc_k][gfc_o].person.externalProfileUrl=g[gfc_I](gfc_e.Url[gfc_q].ADDRESS))}this.d[gfc_k][gfc_o].links=
new gfc_6n(e,this.tf,0);this.d[gfc_k].owner=a.get("owner")[gfc_l]();this.d[gfc_k].viewer=a.get("viewer")[gfc_l]();(d=this.d[gfc_k].viewer)&&b.person[gfc_E]()!=this.d[gfc_k].viewer[gfc_E]()&&(this.d[gfc_k][gfc_o].isAdmin=a.get("isAdmin")[gfc_l](),this.d[gfc_k][gfc_o].isAdmin&&(this.d[gfc_k][gfc_o].isAdmin=this.d[gfc_k][gfc_o].isAdmin[gfc_Mb]()),this.d[gfc_k][gfc_o].isBlocked=a.get("isBlocked")[gfc_l](),this.d[gfc_k][gfc_o].isBlocked&&(this.d[gfc_k][gfc_o].isBlocked=this.d[gfc_k][gfc_o].isBlocked[gfc_Mb]()));
c=c[gfc_I]("profileExtensions");c=this.Nb.lf(c,this.Nb.Pi);d=[];for(f in c){e=c[f];g={};g.title=e.title;var h=!1;if("SHORT_TEXT"==e[gfc__c]||"LONG_TEXT"==e[gfc__c])e[gfc_w]&&e[gfc_w][gfc_yc]&&(g.body=[],g[gfc_C][gfc_v](e[gfc_w][gfc_yc]),h=!0);else if(e[gfc_w]&&e[gfc_w].choice&&0<e[gfc_w].choice[gfc_B]){g.body=[];for(h=0;h<e[gfc_w].choice[gfc_B];++h)g[gfc_C][gfc_v](e[gfc_w].choice[h][gfc_kc]);h=!0}h&&d[gfc_v](g)}this.d[gfc_k][gfc_o].profileExtensions=d;this.mb||(this.mb=a.get("siteSettings")[gfc_l]());
this.isMessagingEnabled&&(f=(f=a.get("canMessage"))&&f[gfc_l]().canSendMessage,this.d[gfc_k][gfc_o].canSendMessage=f);this.Xm(a)};gfc_7[gfc_].yj=function(a){this.render(["blockUser"],"profile",{person:a})};gfc_7[gfc_].ax=function(a){this.render(["unblockUser"],"profile",{person:a})};gfc_7[gfc_].map=function(a,b){var c=[],d=gfc_L(function(a,b,c){a[gfc_v](b(c))},this,c,b);a.each(d);return c};gfc_7[gfc_].lw=function(){this.fa();this.B("members-page")};
gfc_7[gfc_].pw=function(){this.fa();this.render(["blocked-member-page"],"blocked-members-page",{start:0})};gfc_7[gfc_].Gw=function(){this.Yi()};gfc_7[gfc_].Ss=function(a){this.render(["member-page"],"members-page",{start:this.la+a.getOffset()})};gfc_7[gfc_].yt=function(a){this.render(["member-page"],"members-page",{start:a.getOffset()-this.la})};gfc_7[gfc_].Os=function(a){this.render(["blocked-member-page"],"blocked-members-page",{start:this.la+a.getOffset()})};
gfc_7[gfc_].wt=function(a){this.render(["blocked-member-page"],"blocked-members-page",{start:a.getOffset()-this.la})};gfc_7[gfc_].ow=function(){this.fa();this.B("viewer-friends-page")};gfc_7[gfc_].Zs=function(a){this.render(["viewerFriends"],"viewer-friends-page",{start:this.la+a.getOffset()})};gfc_7[gfc_].Et=function(a){this.render(["viewerFriends"],"viewer-friends-page",{start:a.getOffset()-this.la})};gfc_7[gfc_].mw=function(){this.fa();this.B("profile-friends-page")};
gfc_7[gfc_].Xs=function(a){this.render(["profile-friends-page"],"profile-friends-page",{start:this.la+a.getOffset(),person:this.d[gfc_k][gfc_o].person})};gfc_7[gfc_].Ct=function(a){this.render(["profile-friends-page"],"profile-friends-page",{start:a.getOffset()-this.la,person:this.d[gfc_k][gfc_o].person})};gfc_7[gfc_].kw=function(){this.fa();this.B("links")};gfc_7[gfc_].Rs=function(a){var b=this.tf+a.getOffset();this.d[gfc_k][gfc_o].links=new gfc_6n(a.all(),this.tf,b);this.B("links")};
gfc_7[gfc_].xt=function(a){var b=a.getOffset()-this.tf;this.d[gfc_k][gfc_o].links=new gfc_6n(a.all(),this.tf,b);this.B("links")};gfc_7[gfc_].nw=function(){this.fa();this.B("sites")};gfc_7[gfc_].Ys=function(a){this.render(["sitesData"],"sites",{start:this.yn+a.getOffset()})};gfc_7[gfc_].Dt=function(a){this.render(["sitesData"],"sites",{start:a.getOffset()-this.yn})};gfc_7[gfc_].iw=function(){this.fa();this.B("activities")};
gfc_7[gfc_].Ns=function(a){this.render(["activityData"],"activities",{start:this.Ca+a.getOffset()})};gfc_7[gfc_].vt=function(a){this.render(["activityData"],"activities",{start:a.getOffset()-this.Ca})};gfc_7[gfc_].cf=function(a){this.render(["deleteActivity"],this.d[gfc_bd],{activity:a})};gfc_7[gfc_].Lu=function(a,b){var c=gfc_e[gfc_H]();c.add(gfc_se(b.person[gfc_E](),["BLOCKED"],[]),"block");this.bd();c[gfc_n](a)};
gfc_7[gfc_].Jt=function(a){if(a=!a.get("block")[gfc_Dc]())this.d[gfc_k][gfc_o].isBlocked=!0};gfc_7[gfc_].iv=function(a,b){var c=gfc_e[gfc_H]();c.add(gfc_se(b.person[gfc_E](),[],["BLOCKED"]),"unblock");this.bd();c[gfc_n](a)};gfc_7[gfc_].Yt=function(a){if(a=!a.get("unblock")[gfc_Dc]())this.d[gfc_k][gfc_o].isBlocked=!1};
gfc_7[gfc_].Lf=function(a,b){var c=b.activity,d=c[gfc_I](gfc_e[gfc_7b][gfc_q].ID),c=gfc_e[gfc_pc]({userId:c[gfc_I](gfc_e[gfc_7b][gfc_q][gfc_Xb])}),e=gfc_e[gfc_H]();e.add(gfc_ce(d),"delete");e.add(e[gfc_7c](c,{}),"activities");e[gfc_n](a)};
gfc_7[gfc_].hc=function(a){var b=gfc_un,c=function(a){return a=a[gfc_j](/<a/g,"<a target='_top'")},d=null,e=this.d[gfc_k].viewer;null!=e&&a[gfc_I](gfc_e[gfc_7b][gfc_q][gfc_Xb])==this.d[gfc_k].viewer[gfc_E]()&&(d=gfc_L(this.cf,this,a));(e=a[gfc_I](gfc_e[gfc_7b][gfc_q].STREAM_FAVICON_URL,{escapeType:"none"}))||(e=gfc_b.friendconnect_imageUrl+"/favicons.gif");return{icon:e,time:b(gfc_ga(a[gfc_I](gfc_e[gfc_7b][gfc_q].POSTED_TIME))),link:a[gfc_I](gfc_e[gfc_7b][gfc_q].STREAM_URL,{escapeType:"none"}),siteTitle:a[gfc_I](gfc_e[gfc_7b][gfc_q].STREAM_TITLE,
{escapeType:"none"}),innerHTML:c(a[gfc_I](gfc_e[gfc_7b][gfc_q].TITLE,{escapeType:"none"})),body:c(a[gfc_I](gfc_e[gfc_7b][gfc_q].BODY,{escapeType:"none"})),deleteHandler:d}};gfc_7[gfc_].Xw=function(a){var b=gfc_a[gfc_cc].unescapeString,c=gfc_4n;return{icon:c(a[gfc_I](gfc_e[gfc_x][gfc_q][gfc_Nc])),link:a[gfc_I](gfc_e[gfc_x][gfc_q][gfc_Nc]),title:b(a[gfc_Yb]())}};
gfc_7[gfc_].Ww=function(a){var b=gfc_a[gfc_cc].unescapeString,c=gfc_4n,d=a[gfc_I](gfc_e.Url[gfc_q].ADDRESS);return{icon:c(d),link:d,title:b(a[gfc_I](gfc_e.Url[gfc_q].LINK_TEXT))||d}};gfc_7[gfc_].Zu=function(a,b){var c=gfc_e[gfc_H](),d=b.person[gfc_E](),e=gfc_e[gfc_D][gfc_Qc],f=this.$l(d),g={};g[gfc_e[gfc_D].DataRequestFields.ESCAPE_TYPE]=gfc_e.EscapeType[gfc_3c];c.add(c[gfc_5b](f,g),"friends");f={};f[e.FIRST]=this.zy;f[e.MAX]=this.yy;c.add(gfc_te(gfc_e[gfc_pc]({userId:d}),f),"profileSites");c[gfc_n](a)};
gfc_7[gfc_].Hr=function(a){a={user:a[gfc_E](),action:"DENY"};this.render(["sendFriendRequestResponse","members","viewerFriends"],gfc_L(this.Eg,this),{friendRequestResponses:[a]})};gfc_7[gfc_].Eg=function(a){return a&&a["next-view"]?a["next-view"]:["friend-requests"]};gfc_7[gfc_].ev=function(a,b){var c=b[gfc_o],d=gfc_e[gfc_H]();d.add(gfc_de(c[gfc_E](),b.message),"friendRequest");this.bd();d[gfc_n](a)};gfc_7[gfc_].Wt=function(a){a.get("friendRequest")[gfc_Dc]()||(this.d[gfc_k][gfc_o].isInvited=!0)};
gfc_7[gfc_].Pu=function(a,b){var c=gfc_2n.newBatch(),d=b.friendRequestResponses;c.add("updateFriendRequest",gfc_2n.extensions.get({command:"ProcessFriendRequests",params:'{"requests":'+gfc_a[gfc_$b].stringify(d)+"}"}));c.add("friendRequests",gfc_2n.extensions.get({command:"GetFriendRequests",params:'{"idSpec" : "VIEWER"}'}));this.bd();c.execute(a)};gfc_7[gfc_].Oq=function(){this.fa();this.B("invite-friend")};gfc_7[gfc_].Ev=function(a){this.isMessagingEnabled&&(a=a[gfc_I](gfc_e[gfc_x][gfc_q].ID),this.Fv(a))};
gfc_7[gfc_].Fv=function(a){this.isMessagingEnabled&&(a="/friendconnect/messaging/compose?recipientId="+a,gfc_dn(a,"570","395"))};gfc_1[gfc_].co=function(){gfc_dn("/friendconnect/messaging/accept","570","375");return!1};gfc_7[gfc_].Nq=function(){this.fa();this.B("block-member")};gfc_7[gfc_].Pq=function(){this.Tn(this.d[gfc_k].viewer)};gfc_7[gfc_].Dv=function(a){this.zf();a={profile:a};var b=gfc_P("inviteMessage");b&&(a.message=gfc_qh(b));this.render(["sendFriendRequest"],"profile",a)};
gfc_7[gfc_].Ao=function(a){this.zf();this.yj(a)};gfc_7[gfc_].rm=function(a,b,c){c=c||!1;this.d[gfc_k].friendRequests=gfc_oe(a.friendRequests,gfc_fe);0<this.d[gfc_k].friendRequests[gfc_Mb]()?b["next-view"]="friend-requests":b["next-view"]="faces";c||gfc__m("friend")};gfc_7[gfc_].Ut=function(a){this.d[gfc_k][gfc_o].sites=a.get("profileSites")[gfc_l]();this.d[gfc_k][gfc_o].friends=a.get("friends")[gfc_l]()};gfc_7[gfc_].Bq=function(){return this.xw};
gfc_7[gfc_].Y=function(){this.Tx.rebuild();this.no();gfc_a[gfc_Zc].adjustHeight()};gfc_7[gfc_].mt=function(a){return a=gfc_Q("span",{"class":"fc-cap-link-big"},gfc_Q("a",{"class":"fc-cap-link-big"},this.e.MSG_OPTIONS),a.Ig())};
gfc_7[gfc_].lt=function(){var a=[];a[a[gfc_B]]=gfc_Q("div",{"class":"goog-menuitem menuaction-settings"},this.e.MSG_SITE_SETTINGS);this.isSocialShareEnabled&&(a[a[gfc_B]]=gfc_Q("div",{"class":"goog-menuitem menuaction-share"},this.e.MSG_MEMBERS_SHARE));this.d[gfc_k].isViewerAdmin&&!this.Jb()&&(a[a[gfc_B]]=gfc_Q("div",{"class":"goog-menuitem menuaction-manage"},this.e.MSG_MANAGE));a[a[gfc_B]]=gfc_Q("div",{"class":"goog-menuitem menuaction-signout"},this.mb.signOutPrompt||this.e.MSG_SIGN_OUT);a[a[gfc_B]]=
gfc_Q("div",{"class":"goog-menuseparator fc-menuseparator-line"});a[a[gfc_B]]=gfc_Q("div",{"class":"goog-menuitem menuaction-aboutfc"},gfc_Q("span",{"class":"fc-small-menu-link"},this.e.MSG_ABOUT_FC));return a};
gfc_7[gfc_].nt=function(a){a[gfc_Ub]();a=a[gfc_F].g()[gfc_0c];a[gfc_eb]("menuaction-settings")?this.Eb():a[gfc_eb]("menuaction-share")?this.share():a[gfc_eb]("menuaction-signout")?this.signout():a[gfc_eb]("menuaction-manage")?this.Tq():a[gfc_eb]("menuaction-aboutfc")&&(a=gfc_b[gfc_vc](gfc_6m()+"/friendconnect/home/overview"),a[gfc_kb]())};gfc_7[gfc_].Tq=function(){var a={},b=gfc_a[gfc_r][gfc_6a]()[gfc_mc];gfc__m("lightbox");gfc_a[gfc_r].requestNavigateTo(b,a);return!1};
var gfc_5n=function(a){for(var b={},c=0;c<a[gfc_B];++c)b[a[c]]=a[c];return b}("HEIGHT BORDER_COLOR CONTENT_BG_COLOR CONTENT_HEADLINE_COLOR CONTENT_LINK_COLOR CONTENT_SECONDARY_TEXT_COLOR CONTENT_SECONDARY_LINK_COLOR CONTENT_TEXT_COLOR ENDCAP_BG_COLOR ENDCAP_LINK_COLOR ENDCAP_TEXT_COLOR FACE_SIZE NUMBER_ROWS".split(" "));
gfc_7[gfc_].s=function(){var a=gfc_5n,b=[],c=0;this.f(a.HEIGHT);this.Uh()&&(b[c++]=this.j(".fc-thumbnail img {height:%spx;width:%spx}",this.f(a.FACE_SIZE)));b[c++]=this.j(".fc-scroll-botnav, .fc-scroll, .fc-noscroll-botnav {height: %spx;}\n",this.Tm);b[c++]=this.j(".fc-members,.fc-members-canvas {border-color: %s;}\n.fc-userpage-itemlist,.fc-userpage-itemlist-canvas,.fc-botcap-short { border-top-color: %s; }\n.fc-topcap,.fc-topverb,.fc-friendreq,.fc-friendreqs,.fc-timeframe { border-bottom-color: %s; }\n",
this.f(a.BORDER_COLOR));this.jf()&&(this.el("profile")?b[c++]=".fc-topcap {height: "+this.slimTopCapHeight+"px;}\n":this.Xh()?b[c++]=".fc-topcap {height: 0px;}\n":b[c++]=".fc-topcap {height: "+this.tinyTopCapHeight+"px;}\n");this.Jb()?b[c++]=".fc-userpic-caption {margin-left: 59px;}\n":b[c++]=".fc-userpic-caption {margin-left: 40px;}\n";this.Xh()?b[c++]=".fc-topcap-color {background-color: white;}\n":b[c++]=this.j(".fc-topcap-color {background-color: %s;}\n",this.f(a.ENDCAP_BG_COLOR));this.vl()?b[c++]=
".fc-botcap-short {background-color: white;}\n":b[c++]=this.j(".fc-botcap-short {background-color: %s;}\n",this.f(a.ENDCAP_BG_COLOR));b[c++]=this.j(".fc-botverb, .fc-topverb, .fc-members-header {background-color: %s;}\n",this.f(a.ENDCAP_BG_COLOR));b[c++]=this.j(".fc-botverb, .fc-topverb, .fc-members-header {background-color: %s;}\n",this.f(a.ENDCAP_BG_COLOR));b[c++]=this.j(".fc-topcap, .fc-botverb, .fc-topverb, .fc-botcap-short, .fc-header-sectitle, .fc-members-header {color: %s;}\n",this.f(a.ENDCAP_TEXT_COLOR));
b[c++]=this.j(".fc-botverb,.fc-topcap .fc-menutriangle-down, .fc-topcap .fc-menutriangle-up,.fc-topcap a, .fc-topcap a:active, .fc-topcap a:visited,.fc-topcap-link a, .fc-topcap-link a:active, .fc-topcap-link a:visited,.fc-cap-link-big a, .fc-cap-link-big a:active,.fc-left-verb a, .fc-left-verb a:active, .fc-left-verb a:visited,.fc-right-verb a, .fc-right-verb a:active, .fc-right-verb a:visited,.fc-subtle-botcap a, .fc-subtle-botcap a:active, .fc-subtle-botcap a:visited.fc-left-verb-canvas a, .fc-left-verb-canvas a:active, .fc-left-verb-canvas a:visited,.fc-right-verb-canvas a, .fc-right-verb-canvas a:active, .fc-right-verb-canvas a:visited {color: %s;}\n",
this.f(a.ENDCAP_LINK_COLOR));b[c++]=this.j(".fc-content-bg, .fc-subtle-botcap {background-color:%s;}\n",this.f(a.CONTENT_BG_COLOR));b[c++]=this.j(".fc-content a, .fc-content a:active, .fc-content a:visited,\n.fc-item-body a, .fc-item-body a:active, .fc-item-body a:visited,\n.fc-see-all a, .fc-see-all a:active, .fc-see-all a:visited,\n.fc-content-link a, .fc-content-link a:active, .fc-content-link a:visited,\n.fc-content-canvas a, .fc-content-canvas a:active, .fc-content-canvas a:visited {color: %s;}\n",
this.f(a.CONTENT_LINK_COLOR));b[c++]=this.j(".fc-members,.fc-members-canvas {color:%s;}\n",this.f(a.CONTENT_TEXT_COLOR));b[c++]=this.j(".fc-helpful,.fc-on-other-site,.fc-no-elements, .ot-activity-metadata {color:%s;}\n",this.f(a.CONTENT_SECONDARY_TEXT_COLOR));b[c++]=this.j(".fc-faded-link a, .fc-faded-link a:active, .fc-faded-link a:visited, .fc-faded-link-small a, .fc-faded-link-small a:active, .fc-faded-link-small a:visited {color: %s;}\n",this.f(a.CONTENT_SECONDARY_LINK_COLOR));b[c++]=this.j(".fc-sectitle {color: %s;}\n",
this.f(a.CONTENT_HEADLINE_COLOR));return gfc_7.i.s[gfc_G](this)+b[gfc_J]("\n")};gfc_M("goog.peoplesense.gadget.Members",gfc_7);gfc_M("goog.peoplesense.gadget.Members.start",gfc_7[gfc_t]);var gfc_6n=function(a,b,c){gfc_e.Collection[gfc_G](this,a[gfc_Ac](c,c+b),c,a[gfc_B]);this.wx=a;this.ea=b};gfc_6n.inherits(gfc_e.Collection);gfc_6n[gfc_].all=function(){return this.wx};gfc_6n[gfc_].sb=function(){return this.ea};gfc_M("goog.peoplesense.gadget.Members.PagedCollection.prototype.all",gfc_6n[gfc_].all);
gfc_M("goog.peoplesense.gadget.Members.PagedCollection.prototype.getPageSize",gfc_6n[gfc_].sb);
