/*!CK:1310986955!*//*1427086765,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["siyRJ"]); } __d("TimelineAppSectionConstants",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={collectionTabKeyToAppTabKey:{friends_recent:"friends",friends_all:"friends",friends_mutual:"friends",photos_of:"photos",photos_all:"photos",photos_albums:"photos",likes_recent:null,info_all:"about",music_my_music:"music",music_favs:"music",music_playlists:"music",books_read:"books",books_favorite:"books",books_want:"books",recent_places:null,fitness_overview:"fitness",friends_featured:null,places_want:null,info_contact:null,fitness_running:"fitness",fitness_cycling:"fitness",friends_followers:"friends",friends_following:"friends",music_radio:"music",info_history:null,recent_games:"games",products_want:null,photos_archive:"photos",notes_my_notes:"notes",notes_drafts:"notes",notes_about_me:"notes",likes_other:"likes",video_movies_watch:"movies",video_tv_shows_watch:"tv",music_saved:"music",video_movies_want:"movies",video_tv_shows_want:"tv",video_movies_favorite:"movies",video_tv_shows_favorite:"tv",friends_high_school:"friends",friends_college:"friends",friends_work:"friends",friends_suggested:"friends",apps_like:"games",upcoming_events:"events",past_events:"events",likes_people:"likes",likes_sports:null,fitness_report:null,groups_member:"groups",music_heavy_rotation:"music",photos_album:"photos",photos_untagged:"photos",music_mutual:"music",likes_restaurants:"likes",likes_clothing:null,info_insights:null,apps_used:"games",games_play:"games",games_apps_saved:"games",video_movies_suggestions:null,video_tv_shows_suggestions:null,books_suggestions:null,saved_books:"saved",saved_movies:"saved",saved_tv_shows:"saved",saved_music:"saved",places_saved:"map",saved_links:"saved",sports_teams:"sports",likes_all:"likes",saved_places:"saved",saved_all:"saved",sports_athletes:"sports",sports_activities:null,saved_events:"saved",saved_archived:"saved",places_recent:"map",places_visited:"map",reviews_written:"reviews",likes_section_movies:"likes",likes_section_tv_shows:"likes",likes_section_books:"likes",likes_section_music:"likes",likes_section_sports_teams:"likes",place_visits_by_place_tag:null,places_cities:"map",place_visits_by_city:null,topic_visit_counts:"map",place_visits_by_topic:null,place_visit_stories:null,places_map:"map",likes_section_apps_and_games:"likes",likes_section_sports_athletes:"likes",places_cities_desktop:"map",saved_videos:"saved",saved_pages:"saved",friends_with_upcoming_birthdays:"friends",friends_current_city:"friends",friends_hometown:"friends",at_work_contact:null,place_reviews_written:"reviews",movie_reviews_written:"reviews",tv_show_reviews_written:"reviews",book_reviews_written:"reviews",photos_all_expanded:"photos",videos_by_user:"videos",videos_user_tagged:"videos",external_videos_for_user:"videos",friends_map:"friends",info_about:null,info_all_relationships:null,info_contact_basic:null,info_edu_work:null,info_overview:null,info_places:null,info_at_work:null,info_year_overviews:null,followers:"friends",following:"friends",media_set:"photos",photos_stream:"photos",photos_synced:"photos",apps:"games"}};},null); __d("ImageUtils",["UserAgent_DEPRECATED"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();var h={hasLoaded:function(i){if(i.naturalWidth!==(void 0)){return i.complete&&i.width!==0;}else if(i.height==20&&i.width==20&&i.complete){return false;}else if(i.complete===(void 0)&&g.webkit()<500){var j=new Image();j.src=i.src;return j.complete;}return i.complete;}};e.exports=h;},null); __d("PhotoEverstoreLogger",["Event","AsyncRequest","copyProperties","ImageUtils"],function(a,b,c,d,e,f,g,h,i,j){b.__markCompiled&&b.__markCompiled();var k={BATCH_WINDOW_MS:500,storedLog:[]};function l(){}i(l,{_log:function(n){k.storedLog.push(n);if(k.storedLog.length==1)setTimeout(m,k.BATCH_WINDOW_MS);},logImmediately:function(n){l._log(n);},registerForLogging:function(n){var o=document.getElementById(n);if(o!=null)if(j.hasLoaded(o)){l._log(o.src);}else g.listen(o,'load',function(event){l._log(o.src);});}});function m(){var n=k.storedLog;k.storedLog=[];var o=JSON.stringify(n);new h().setURI('/ajax/photos/logging/everstore_logging.php').setData({loggedUrls:o}).setMethod('POST').setOption('suppressErrorHandlerWarning',true).setOption('suppressErrorAlerts',true).send();}e.exports=l;},null); __d("PhotosConst",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();var g={VIEWER_PERMALINK:0,VIEWER_SNOWLIFT:6,VIEWER_VAULTBOX:8,VIEWER_SNOWFLAKE:14,VIEWER_COMPOSER:16,VIEWER_PERMALINK_STRING:'permalink',VIEWER_SNOWLIFT_STRING:'snowlift',VIEWER_VAULTBOX_STRING:'vaultbox',BULK_EDITOR:3,BULK_EDITOR_REACT:15,FLASH_UPLOADER:4,HTML5_UPLOADER:10,SIZE_NORMAL:'n',PIC_NORMAL_FBX_SIZE:180};e.exports=g;},null); __d("PhotoViewerImage",["PhotoEverstoreLogger","URI","Vector"],function(a,b,c,d,e,f,g,h,i){b.__markCompiled&&b.__markCompiled();function j(k){"use strict";this._hiResDimensions=k.hiResDimensions&&i.deserialize(k.hiResDimensions);this._normalDimensions=k.normalDimensions&&i.deserialize(k.normalDimensions);this._info=k.info;this._video=k.video;this._shouldLog=k.everstoreLogThis;this._hiResSrc=k.hiResSrc;this._normalSrc=k.normalSrc;this._thumbSrc=k.thumbSrc;this._isInverted=false;this._data=k;}j.prototype.getURIString=function(){"use strict";return h(this._info.permalink).getUnqualifiedURI().toString();};j.prototype.hasHiResDimensions=function(){"use strict";return !!this._hiResDimensions;};j.prototype.getHiResDimensions=function(){"use strict";return this._hiResDimensions;};j.prototype.getNormalDimensions=function(){"use strict";return this._normalDimensions;};j.prototype.getHiResSrc=function(){"use strict";return this._hiResSrc;};j.prototype.getNormalSrc=function(){"use strict";return this._normalSrc;};j.prototype.getThumbSrc=function(){"use strict";return this._thumbSrc;};j.prototype.getInfo=function(){"use strict";return this._info;};j.prototype.getPermalink=function(){"use strict";return this._info.permalink;};j.prototype.getHighestResSrc=function(){"use strict";return this._hiResSrc||this._normalSrc;};j.prototype.preload=function(k){"use strict";var l;if(this.getHighestResSrc())if(k&&!this._resource){this._resource=new Image();this._resource.src=this.getHighestResSrc();l=this._resource.src;if(this._shouldLog)g.logImmediately(this._resource.src);}else if(!k&&!this._small){this._small=new Image();this._small.src=this._normalSrc||this._hiResSrc;l=this._small.src;if(this._shouldLog)g.logImmediately(this._small.src);}return l;};j.prototype.setNormalDimensions=function(k,l){"use strict";this._normalDimensions=new i(k,l);};j.prototype.setHiResDimensions=function(k,l){"use strict";this._hiResDimensions=new i(k,l);};j.prototype.invertDimensions=function(){"use strict";if(this.hasHiResDimensions())this._hiResDimensions=new i(this._hiResDimensions.y,this._hiResDimensions.x);this._normalDimensions=new i(this._normalDimensions.y,this._normalDimensions.x);this._isInverted=!this._isInverted;};j.prototype.copy=function(){"use strict";return new j(this._data);};e.exports=j;},null); __d("PhotoStreamCache",["DOM","HTML","PhotoEverstoreLogger","PhotosConst","PhotoViewerImage","Rect","UIPagelet","URI","Vector","copyProperties","createArrayFromMixed","ge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){b.__markCompiled&&b.__markCompiled();function s(){"use strict";}s.prototype.init=function(t,u,v,w,x){"use strict";this.version=t;this.pageletName=u;this.pageletRootID=v;this.tagSuggestionMode=x;this.bufferSize=s.BUFFER_SIZE;this.fullBucketSize=s.FULL_BUCKET_SIZE;this.initError=false;this.isActive=true;this.usesOpaqueCursor=false;this.usesNonCircularPhotoSet=false;this.reachedLeftEnd=false;this.reachedRightEnd=false;this.leftLock=false;this.rightLock=false;this.useAjaxPipe=true;this.logger=w;this.viewAsUser=null;this.reset();};s.prototype.setViewAs=function(t){"use strict";this.viewAsUser=t;};s.prototype.isInViewAsMode=function(){"use strict";return !!this.viewAsUser;};s.prototype.getViewAsUserId=function(){"use strict";return this.viewAsUser;};s.prototype.getUsesOpaqueCursor=function(){"use strict";return this.usesOpaqueCursor;};s.prototype.isNonCircularPhotoSet=function(){"use strict";return this.usesNonCircularPhotoSet;};s.prototype.setReachedLeftEnd=function(){"use strict";this.reachedLeftEnd=true;};s.prototype.setReachedRightEnd=function(){"use strict";this.reachedRightEnd=true;};s.prototype.hasReachedLeftEnd=function(){"use strict";return this.reachedLeftEnd;};s.prototype.hasReachedRightEnd=function(){"use strict";return this.reachedRightEnd;};s.prototype.nonCircularPhotoSetCanPage=function(t){"use strict";if(!this.isNonCircularPhotoSet())return true;if(t<0)return this.getCursorPos()||!this.hasReachedLeftEnd();if(t>0)return (this.getLength()-1!=this.getCursorPos())||!this.hasReachedRightEnd();return true;};s.prototype.setUseAjaxPipe=function(t){"use strict";this.useAjaxPipe=t;};s.prototype.reset=function(){"use strict";this.cache={image:{},extra:{},html:{}};this.fbidList=[];this.loaded=false;this.allLoaded=false;this.permalinkMap={};this.position=0;this.totalCount=null;this.firstCursor=null;this.firstCursorIndex=null;this.firstOpaqueCursor=null;};s.prototype.waitForInitData=function(){"use strict";this.fbidList.push(s.INIT_PLACEHOLDER);};s.prototype.destroy=function(){"use strict";this.reset();this.isActive=false;};s.prototype.isLoaded=function(){"use strict";return this.loaded;};s.prototype.canPage=function(){"use strict";if(!this.isLoaded())return false;if(this.totalCount!==null)return this.totalCount>1;if(this.usesNonCircularPhotoSet)return true;return this.getLength()>1;};s.prototype.errorInCurrent=function(){"use strict";if(this.initError){return true;}else if(!this.isLoaded())return false;return this.checkErrorAt(this.getCursor());};s.prototype.getLength=function(){"use strict";return this.fbidList.length;};s.prototype.getPhotoSet=function(){"use strict";return this.photoSetQuery.set;};s.prototype.getPhotoSetQuery=function(){"use strict";return this.photoSetQuery;};s.prototype.getCurrentImageData=function(){"use strict";return this.getImageData(this.getCursor());};s.prototype.addViewAsToURI=function(t){"use strict";var u=n(t);if(this.isInViewAsMode())u.addQueryData({viewas:this.getViewAsUserId()});return u;};s.prototype.getOpaqueCursor=function(t){"use strict";if(this.getImageData(t)){if(this.version===j.VIEWER_VAULTBOX)return this.getImageData(t).getInfo().opaquecursor;return this.getImageData(t).info.opaquecursor;}if(t==this.firstCursor)return this.firstOpaqueCursor;return null;};s.prototype.getImageData=function(t){"use strict";var u=this.getCacheContent(t,s.IMAGE_DATA);if(u)u.info.permalink=this.addViewAsToURI(u.info.permalink);return u;};s.prototype.getCurrentHtml=function(){"use strict";return this.getCacheContent(this.getCursor(),s.HTML);};s.prototype.getCurrentExtraData=function(){"use strict";return this.getCacheContent(this.getCursor(),s.EXTRA);};s.prototype.getCacheContent=function(t,u){"use strict";if(!t||t===s.ERROR_ID||t===s.INIT_PLACEHOLDER)return null;return this.cache[u][t];};s.prototype.getCursorPos=function(){"use strict";return this.position;};s.prototype.getCursor=function(){"use strict";if(this.position>=0&&this.position0||(u>=0&&u0);};s.prototype.checkErrorAt=function(t){"use strict";if(!this.isLoaded())return false;if(t===s.ERROR_ID)return true;return false;};s.prototype.getRelativeMovement=function(t){"use strict";for(var u=0;uy*2){u=(this.position+w-y%w)%w;v=(this.position+y)%w;}else{u=0;v=w-1;}while(u!=v){var z,aa=this.fbidList[u],ba=t&&t(x[aa]);if(this.version===j.VIEWER_VAULTBOX){z=x[aa]&&x[aa].preload(ba);}else if(x[aa]&&x[aa].url)if(ba&&!x[aa].resource){x[aa].resource=new Image();x[aa].resource.src=x[aa].url;z=x[aa].url;if(x[aa].everstoreLogThis===true)i.logImmediately(x[aa].resource.src);}else if(!ba&&!x[aa].small){x[aa].small=new Image();x[aa].small.src=x[aa].smallurl||x[aa].url;z=x[aa].small.src;if(x[aa].everstoreLogThis===true)i.logImmediately(x[aa].small.src);}if(this.logger&&z)this.logger.log(z);u=(u+1)%w;}};s.prototype.loadMoreIfNeccessary=function(t){"use strict";if(this.allLoaded||(t&&this.rightLock)||(!t&&this.leftLock))return;var u=t?1:-1,v=this.position+this.bufferSize*u;if(v<0&&!this.checkErrorAt(this.getEndCursor(false))){this.leftLock=true;this.fetch(this.fullBucketSize,false);}else if(v>this.getLength()&&!this.checkErrorAt(this.getEndCursor(true))){this.rightLock=true;this.fetch(this.fullBucketSize,true);}};s.prototype.getEndCursor=function(t){"use strict";return t?this.fbidList[this.getLength()-1]:this.fbidList[0];};s.prototype.calculateRelativeIndex=function(t,u,v){"use strict";if(!this.totalCount)return null;var w=this.fbidList.indexOf(u),x=this.fbidList.indexOf(v);if(w===-1||x===-1)return null;var y=x-w;return (t+y+this.totalCount)%this.totalCount;};s.prototype.calculateDistance=function(t,u){"use strict";var v=this.fbidList.indexOf(t),w=this.fbidList.indexOf(u);if(v===-1||w===-1)return null;return (w-v+this.getLength())%this.getLength();};s.prototype.fetch=function(t,u){"use strict";var v=this.getEndCursor(u),w=p({cursor:v,version:this.version,end:this.getEndCursor(!u),fetchSize:u?t:-1*t,relevant_count:this.relevantCount,opaqueCursor:this.getOpaqueCursor(v),tagSuggestionMode:this.tagSuggestionMode},this.photoSetQuery);if(this.isInViewAsMode())w.viewas=this.getViewAsUserId();if(this.totalCount&&this.firstCursorIndex!==null){w.total=this.totalCount;w.cursorIndex=this.calculateRelativeIndex(this.firstCursorIndex,this.firstCursor,v);}var x=r(this.pageletRootID);if(!x){x=g.create('div',{id:this.pageletRootID});g.appendContent(document.body,x);}m.loadFromEndpoint(this.pageletName,x,w,{usePipe:this.useAjaxPipe,automatic:true,jsNonblock:true,crossPage:true});if(!this.useAjaxPipe)this.setUseAjaxPipe(true);};s.prototype.storeToCache=function(t){"use strict";var u={};if(!this.isActive)return u;if('error' in t){this.processErrorResult(t.error);u.error=true;return u;}if('init' in t){this.processInitResult(t.init);u.init={logids:t.init.logids,fbid:t.init.fbid,loggedin:t.init.loggedin,fromad:t.init.fromad};}if('image' in t){this.processImageResult(t.image);u.image=true;}if('data' in t){this.processDataResult(t.data);u.data=true;}return u;};s.prototype.processInitResult=function(t){"use strict";if(this.loaded)return;this.usesOpaqueCursor=t.usesopaquecursor;this.usesNonCircularPhotoSet=t.isnoncircularphotoset;this.loaded=true;this.photoSetQuery=t.query;if(t.bufferSize)this.bufferSize=t.bufferSize;if(t.fullBucketSize)this.fullBucketSize=t.fullBucketSize;if(this.fbidList.length===0){this.fbidList.push(t.fbid);this.rightLock=true;}else{var u=this.fbidList.indexOf(s.INIT_PLACEHOLDER);if(u!=-1)this.fbidList[u]=t.fbid;}this.firstCursor=t.fbid;this.firstOpaqueCursor=t.opaquecursor;if('initIndex' in t&&'totalCount' in t){this.firstCursorIndex=t.initIndex;this.totalCount=t.totalCount;}if(this.version==j.VIEWER_PERMALINK)this.fetch(s.INIT_BUCKET_SIZE,true);};s.prototype.processImageResult=function(t){"use strict";for(var u in t){if(u===this.firstCursor&&t[u].everstoreLogThis)i.logImmediately(t[u].url);if(this.version===j.VIEWER_VAULTBOX){var v=t[u];this.cache.image[u]=new k(v);this.permalinkMap[this.cache.image[u].getURIString()]=u;}else{this.cache.image[u]=t[u];if(t[u].dimensions)this.cache.image[u].dimensions=o.deserialize(t[u].dimensions);if(t[u].originalDimensions)this.cache.image[u].originalDimensions=o.deserialize(t[u].originalDimensions);if(t[u].smalldims)this.cache.image[u].smalldims=o.deserialize(t[u].smalldims);this.permalinkMap[n(t[u].info.permalink).getUnqualifiedURI().toString()]=u;}}};s.prototype.attachToFbidsList=function(t,u,v){"use strict";if(this.allLoaded)return;if(u===-1){for(var w=t.length-1;w>=0;w--){this.fbidList.unshift(t[w]);this.position++;}this.leftLock=false;}else{for(var x=0;x0)i.conditionShow(tb[0],!qb);if(ob){za(sb);}else ab(sb);}}function jb(mb,nb){var ob={profile_id:nb};g.inform('EnableNotifsForUser',ob);new h().setURI(ha).setMethod('POST').setData({notifier_id:nb,enable:true}).setErrorHandler(g.inform.bind(null,'EnableNotifsForUserFail',ob)).send();}function kb(mb,nb){var ob={profile_id:nb};g.inform('DisableNotifsForUser',ob);new h().setURI(ha).setMethod('POST').setData({notifier_id:nb,enable:false}).setErrorHandler(g.inform.bind(null,'DisableNotifsForUserFail',ob)).send();}var lb={init:function(mb,nb,ob){var pb=j.getID(mb);na[pb]=ob;if(!u[pb])k.listen(mb,'click',function(qb){return pa(mb,u[pb],ob,qb.getTarget());});if(ob===s&&ia[nb].length)hb(mb,nb,ia[nb]);if(ba[nb])wa(mb,nb);u[pb]=nb;i.conditionClass(mb,'NonFriendSubscriptionMenu',!v[nb]);i.conditionClass(mb,'cannotSubscribe',!y[nb]);i.conditionClass(mb,'noSubscriptionLevels',z[nb]&&!aa[nb]);i.conditionClass(mb,'noSubscribeCheckbox',!v[nb]&&!z[nb]);fb(mb,nb,w[nb]);ib(mb,nb,x[nb]);g.subscribe(['FollowUser','FollowingUser','UnfollowUserFail'],function(qb,rb){if(rb.profile_id==nb)fb(mb,nb,true);}.bind(this));g.subscribe(['UnfollowUser','UnfollowingUser','FollowUserFail'],function(qb,rb){if(rb.profile_id==nb){g.inform('SubMenu/Reset');fb(mb,nb,false);}}.bind(this));g.subscribe(['EnableNotifsForUser','DisableNotifsForUserFail'],function(qb,rb){if(rb.profile_id==nb)ib(mb,nb,true);}.bind(this));g.subscribe(['DisableNotifsForUser','EnableNotifsForUserFail'],function(qb,rb){if(rb.profile_id==nb)ib(mb,nb,false);}.bind(this));g.subscribe('listeditor/friend_lists_changed',function(qb,rb){if(rb.notify_state){var sb=rb.added_uid?rb.added_uid:rb.removed_uid;ib(mb,sb,rb.notify_state.is_notified);}}.bind(this));},getSubscriptions:function(mb){return {level:ba[mb],custom_categories:ca[mb]};},registerTimelineNotifySelector:function(mb,nb){var ob=mb.getInitialMenu(),pb=mb.getContentRoot();ob.forEachItem(function(qb){var rb=qb.getRoot();if(i.hasClass(rb,'SubscribeMenuNotifyMeCheckbox')){ja[nb]=qb;ib(pb,nb,x[nb]);}});ob.subscribe('itemclick',function(qb,rb){if(rb.item===ja[nb])qa(pb,nb);return true;});},setSubscriptions:function(mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb){cb(mb,sb+'');v[mb]=nb;w[mb]=ob;y[mb]=pb;z[mb]=qb;aa[mb]=rb;da[mb]=ub+'';ca[mb]=tb.map(String);ea[mb]=vb.map(String);ia[mb]=yb;x[mb]=wb;ma=xb;}};e.exports=a.EditSubscriptions||lb;},null); __d("legacy:EditSubscriptions",["SubscriptionLevels","EditSubscriptions"],function(a,b,c,d){b.__markCompiled&&b.__markCompiled();a.SubscriptionLevels=b('SubscriptionLevels');a.EditSubscriptions=b('EditSubscriptions');},3); __d("FollowLink",["Arbiter","CSS","ge"],function(a,b,c,d,e,f,g,h,i){b.__markCompiled&&b.__markCompiled();var j={subscribeEvents:function(k,l,m){g.subscribe(['FollowUser','UnfollowUser'],function(event,n){if(n.profile_id!=k)return;var o=i(l),p=i(m),q=event=='FollowUser';o&&h.conditionShow(o,!q);p&&h.conditionShow(p,q);});}};e.exports=j;},null); __d("DynamicFriendListEducation",["Event","Arbiter","AsyncRequest","Dialog","PageTransitions","arrayContains","createArrayFromMixed","removeFromArray"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){b.__markCompiled&&b.__markCompiled();var o,p,q,r,s,t;function u(){q&&q.hide();r&&r.hide();}function v(y){n(p,y);u();s({accept_tag_education:true});}function w(){u();s({nux_cancel:true});}var x={init:function(y,z){o=y;p=m(z).map(String);k.registerHandler(function(){u();o=false;s=(void 0);p=[];});},showDialog:function(y,z,aa){if(o&&l(p,y)){u();h.inform('DynamicFriendListEducation/dialogOpen',{uid:z,flid:y});s=aa;q=new j().setAsync(new i('/ajax/friends/lists/smart_list_education.php').setMethod('GET').setData({flid:y,uid:z}).setReadOnly(true)).setHandler(v.bind(this,y)).setCloseHandler(function(){h.inform('DynamicFriendListEducation/dialogClosed',{uid:z,flid:y});}).setCancelHandler(function(){h.inform('DynamicFriendListEducation/dialogCancel',{uid:z,flid:y});}).show();}else aa();},showContextualDialog:function(y,z,aa,ba){if(o&&l(p,y)){u();t=aa;s=ba;new i('/ajax/friends/lists/smart_list_contextual_education.php').setMethod('GET').setData({flid:y,uid:z}).setReadOnly(true).send();}else ba();},setContextualDialog:function(y,z,aa,ba){r=y;r.setContext(t);r.show();g.listen(z,'click',v.bind(this,ba));g.listen(aa,'click',w);}};e.exports=x;},null); __d("FriendStatus",["Arbiter","AsyncRequest","SubscribeButton","arrayContains","copyProperties","createArrayFromMixed","forEachObject"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){b.__markCompiled&&b.__markCompiled();function n(r,s,t){this.id=r;this.update(s,t);}k(n.prototype,{update:function(r,s){r&&(this.status=r);if(s){this.lists=l(s).map(String);this._informListChange();}},isComplete:function(){return !!this.lists;},addToList:function(r){if(this.lists&&!j(this.lists,r))this.lists.push(r);this._informListChange();},removeFromList:function(r){if(this.lists){var s=this.lists.indexOf(r);s!==-1&&this.lists.splice(s,1);}this._informListChange();},updateList:function(r,s){s?this.addToList(r):this.removeFromList(r);},_informListChange:function(){g.inform('FriendListMembershipChange',{uid:this.id,lists:this.lists});}});k(n,{ARE_FRIENDS:1,INCOMING_REQUEST:2,OUTGOING_REQUEST:3,CAN_REQUEST:4});var o={},p={};function q(r,s,t){if(!o[t.uid]){o[t.uid]=new n(t.uid,r);}else o[t.uid].update(r);g.inform('FriendRequest/change',{uid:t.uid,status:r});}g.subscribe(['FriendRequest/cancel','FriendRequest/unfriend'],function(r,s){s.profile_id=s.uid;s.connected=false;g.inform(i.UNSUBSCRIBED,s);});g.subscribe(['FriendRequest/cancel','FriendRequest/unfriend','FriendRequest/sendFail'],q.bind(null,n.CAN_REQUEST));g.subscribe(['FriendRequest/confirmFail'],q.bind(null,n.INCOMING_REQUEST));g.subscribe(['FriendRequest/cancelFail','FriendRequest/sent','FriendRequest/sending'],q.bind(null,n.OUTGOING_REQUEST));g.subscribe(['FriendRequest/confirm','FriendRequest/confirming'],q.bind(null,n.ARE_FRIENDS));k(n,{CLOSE_FRIENDS:null,ACQUAINTANCES:null,getFriend:function(r,s){if(o[r]&&o[r].isComplete()){s(o[r]);}else if(p[r]){p[r].push(s);}else{p[r]=[s];new h().setURI("/ajax/friends/status.php").setData({friend:r}).setHandler(function(t){var u=t.getPayload();setTimeout(n.initFriend.bind(n,r,u.status,u.lists),0);}).send();}},initFriend:function(r,s,t){var u=o[r]||new n(r);u.update(u.status||s,u.lists||t);o[r]=u;p[r]&&p[r].forEach(function(v){v(u);});p[r]=null;},setSpecialLists:function(r){var s=n.CLOSE_FRIENDS===null;n.CLOSE_FRIENDS=r.close+'';n.ACQUAINTANCES=r.acq+'';if(s)m(o,function(t,u){t._informListChange();});}});e.exports=n;},null); __d("FriendEditLists",["Arbiter","AsyncRequest","CSS","DOMQuery","DynamicFriendListEducation","EditSubscriptions","Event","FriendStatus","MenuDeprecated","Parent","ScrollableArea","URI","$","arrayContains","copyProperties","ge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){b.__markCompiled&&b.__markCompiled();var w=5,x={},y='/ajax/profile/removefriendconfirm.php',z='/ajax/friends/requests/cancel.php',aa='/ajax/choose/',ba='/profile.php',ca,da,ea,fa,ga=null,ha={profile_browser:43,fbx_top_bar:1,hovercard:5};function ia(ta,ua,va){var wa=x[ta.id],xa=function(ya){var za={action:va?'add_list':'del_list',to_friend:wa.id,friendlists:[ua],source:ca};if(ya)u(za,ya);wa.updateList(ua,va);var ab;if(va&&ua==n.CLOSE_FRIENDS){ab=la(ta,n.ACQUAINTANCES);if(o.isItemChecked(ab)){o.toggleItem(ab);ia(ta,n.ACQUAINTANCES,false);}}else if(va&&ua==n.ACQUAINTANCES){ab=la(ta,n.CLOSE_FRIENDS);if(o.isItemChecked(ab)){o.toggleItem(ab);ia(ta,n.CLOSE_FRIENDS,false);}}var bb={flid:ua,uid:wa.id},cb=va?'FriendListHovercard/add':'FriendListHovercard/remove';g.inform(cb,bb);new h().setURI('/ajax/add_friend/action.php').setData(za).send();};if(va){k.showDialog(ua,wa.id,xa);}else xa();}function ja(ta){var ua=j.scry(ta,'input')[0];return ua&&ua.value;}function ka(ta,ua,va){if(i.hasClass(va,'async_saving'))return;var wa={uid:ua.id};new h().setURI(z).setMethod('POST').setData({friend:ua.id,cancel_ref:ea,floc:fa}).setHandler(g.inform.bind(g,'FriendRequest/cancel',wa)).setErrorHandler(g.inform.bind(g,'FriendRequest/cancelFail',wa)).setStatusElement(va).send();}function la(ta,ua){var va=o.getItems(ta);for(var wa=0;wa=this.AGGREGATION_COUNT)this.logPhotoViews(this.AGGREGATE);this.views++;if(l)this.fbidList.push([l.fbid,l.owner,Date.now()]);if(m)this.hiResLoads++;if(n)this.fullScreenViews[l.fbid]=true;},logEnterFullScreen:function(l){this.fullScreenViews[l]=true;},addDetailData:function(l,m){if(!this.details[l])this.details[l]={t:m.num_tags,l:m.has_location,c:m.has_caption,cm:m.comment_count,lk:m.like_count,w:m.width,h:m.height,ad:'{}',p:this.pagingAction};},updateAdData:function(l,m){if(this.details[l])this.details[l].ad=JSON.stringify(m);},logPhotoViews:function(l){if(!this.views)return;if(l!=this.AGGREGATE)this.last=true;var m={set:this.set,time:new Date()-this.time,fbids:this.logIds?this.fbidList:[],details:this.logIds?this.details:{},first:this.first,last:this.last,close:l?l:this.UNKNOWN,button_likes:this.buttonLikes,version:this.version,endmetric:this.endMetrics,cycle:this.cycle,end_relev:this.endOfRelevant,relev_count:this.relevantCount,source:this.source,panorama_clicks:this.panoramaClicks,panorama_impressions:this.panoramaImpressions};if(this.version===k.SNOWLIFT){var n=i.getViewportDimensions();m.width=n.x||this.width;m.height=n.y||this.height;if(this.hiResLoads>0)m.hires_loads=this.hiResLoads;if(this.last){var o=Object.keys(this.fullScreenViews).length;if(o>0)m.fullscreen=o;}}new g().setURI('/ajax/photos/logging/session_logging.php').setAllowCrossPageTransition(true).setOption('asynchronous',(l!=k.UNLOAD)).setOption('suppressErrorHandlerWarning',true).setData(m).send();this.views=0;this.hiResLoads=0;this.fbidList=[];this.details={};this.first=false;this.buttonLikes=0;if(this.last){this.set=null;this.logIds=false;this.fullScreenViews={};}}});h.onUnload(function(){k.logPhotoViews(k.UNLOAD);});h.onLeave(function(){k.logPhotoViews(k.LEAVE);});e.exports=k;},null); __d("PhotosUtils",["copyProperties","Vector"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();function i(){}g(i,{getNearestBox:function(j,k){var l=Infinity,m=null;for(var n in j){var o=j[n];if(o.contains(k)){var p=k.distanceTo(o.getCenter());if(p=3&&k[2]==='photos')if(k.length===4&&/^\d+$/.exec(k[3])!==null){return {photo_id:k[3],set_token:null};}else if(k.length===5&&/^\d+$/.exec(k[4])!==null)return {photo_id:k[4],set_token:k[3]};return null;},isValidLegacy:function(h){var i=h.getPath();if(i[i.length-1]==='/')i=i.substring(0,i.length-1);if(i==='/photo.php'||i==='/force_photo/photo.php'||i==='/photo'||i==='/force_photo/photo/index.php'||i==='/photo/index.php'||i==='/force_photo/photo')return true;return false;}};e.exports=g;},null); __d("PhotoTagSearchPivotLogger",["Banzai"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();var h={};g.subscribe(g.SHUTDOWN,function(){Object.keys(h).forEach(function(l){var m=h[l];Object.keys(m).forEach(function(n){g.post('photo_tag_search_pivot',{source:l,action:n,count:m[n]});});});});var i=/^(perm:)?tag:/,j,k={logImpression:function(l,m){var n=l in h?h[l]:(h[l]={});n[m]=m in n?n[m]+1:1;},logImageImpression:function(l,m,n){if(j!==m){if(n.some(function(o){return i.test(o);}))this.logImpression(l,'image_impression');j=m;}},logPivotImpression:function(l,m){if(i.test(m))this.logImpression(l,'pivot_impression');},logShowMorePhotos:function(){this.logImpression('photoset','show_more_photos');},logHideMorePhotos:function(){this.logImpression('photoset','hide_more_photos');},logSuggestMorePhotos:function(){this.logImpression('photoset','suggest_more_photos');},logMorePhotosNavigation:function(l){g.post('photo_tag_search_pivot',{source:'photoset',action:'more_photos_search',query:l,count:1});}};e.exports=k;},null); __d("PhotosetSearchPivot.react",["LeftRight.react","PhotoTagSearchPivotLogger","PhotosetSearchPivotData","React","XUISpinner.react","XUIText.react","cx","fbt","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){b.__markCompiled&&b.__markCompiled();var p=j,q=p.PropTypes,r=j.createClass({displayName:"PhotosetSearchPivotItem",propTypes:{normalized:q.string,title:q.object,uri:q.string,images:q.array},onClick:function(){h.logMorePhotosNavigation(this.props.normalized);},render:function(){return (j.createElement("div",{className:"_25r"},j.createElement("a",{onClick:this.onClick,href:this.props.uri,className:"_25t _3-8t"},j.createElement("div",{className:"_25u"},j.createElement("div",{className:"_25v _25w",style:{backgroundImage:'url('+this.props.images[0].uri+')'}}),j.createElement("div",{className:"_25x"},j.createElement("div",{className:"_25y"},j.createElement("div",{className:"_25z"}),j.createElement("div",{className:"_26r"},j.createElement("div",{className:"_273 _25w",style:{backgroundImage:'url('+this.props.images[1].uri+')'}}))),j.createElement("div",{className:"_274"},j.createElement("div",{className:"_25z"}),j.createElement("div",{className:"_26r"},j.createElement("div",{className:"_273 _25w",style:{backgroundImage:'url('+this.props.images[2].uri+')'}}))))),j.createElement(l,{display:"block",className:"_27f _2pi4",dangerouslySetInnerHTML:{__html:this.props.title.__html}}))));}}),s=j.createClass({displayName:"PhotosetSearchPivot",propTypes:{fbid:q.string,endofalbum:q.bool,withBackground:q.bool,linesAroundHeader:q.bool,onclose:q.func},fetchPivots:function(t){i.fetch(t).then(function(u){setTimeout(this.onFetchSuccess.bind(this,t,u.pivots),0);}.bind(this),function(u){setTimeout(this.onFetchError.bind(this,t),0);}.bind(this));},onFetchSuccess:function(t,u){if(!this.isMounted()||this.props.fbid!==t)return;u=u||[];var v='show';if(u.length===0)v='hide';this.setState({pivots:u,action:v});},onFetchError:function(t){if(!this.isMounted()||this.props.fbid!==t)return;this.setState({pivots:[],action:'hide'});},getInitialState:function(){this.fetchPivots(this.props.fbid);return {pivots:[],action:'loading'};},componentWillReceiveProps:function(t){if(t.fbid){this.setState({action:'loading'});this.fetchPivots(t.fbid);}else this.setState({action:'hide',pivots:[]});},onExitClicked:function(){this.props.onclose();},render:function(){if(this.state.action==='loading')return (j.createElement("div",{className:o(this.props.className,"_27h _2ph_")},j.createElement(k,{size:"large"})));if(this.state.action==='hide')return j.createElement("span",null);var t=this.state.pivots.map(function(x){return j.createElement(r,{normalized:x.normalized,title:x.title,uri:x.uri,images:x.images});}),u=this.props.endofalbum?j.createElement("span",{className:"_2pij"},n._("End of album")):null,v=(("_27m")+(' '+"_2pi3")+(' '+"_2pib")+(this.props.linesAroundHeader?' '+"_3-te":'')),w=j.createElement("span",null,u,j.createElement("span",{className:"_4ptz"},n._("Other photos you may like")));if(this.props.onclose){w=j.createElement(g,{className:v},w,j.createElement("a",{href:"#",onClick:this.onExitClicked,className:"_27n"}));}else w=j.createElement("div",{className:v},w);return (j.createElement("div",{className:o(this.props.className,((this.state.action==='hide'?"_27j":'')+(this.state.action==='show'?' '+"_27k":'')))},j.createElement("div",{className:(("_27l")+(this.props.withBackground?' '+"_3-tf":''))},w,j.createElement("div",{className:"_27o _2pi8 clearfix"},t))));}});e.exports=s;},null); __d("PhotosetPivotSlide.react",["Image.react","Link.react","PhotosetSearchPivot.react","React","XUIText.react","cx","fbt","xuiglyph"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){b.__markCompiled&&b.__markCompiled();var o=j,p=o.PropTypes,q=j.createClass({displayName:"PhotosetPivotSlide",propTypes:{fbid:p.string,isAlbum:p.bool,albumOwnerName:p.string,visible:p.bool,onReturn:p.func},render:function(){return (j.createElement("div",{className:(("_1_ap")+(this.props.visible?' '+"_1_aq":''))},j.createElement("div",{className:"_1_ar"},j.createElement(k,{display:"block"},this._getEndOfAlbumTitle()),j.createElement(h,{className:"_1_as",onClick:this.props.onReturn},j.createElement(g,{className:"_1_at",src:n({name:'arrow-right',shade:'white',size:'small'})}),m._("Return to beginning"))),j.createElement(i,{className:"_1_au",fbid:this.props.visible?this.props.fbid:null,linesAroundHeader:true})));},_getEndOfAlbumTitle:function(){if(this.props.albumOwnerName){if(this.props.isAlbum){return (m._("End of {user_name}'s album",[m.param("user_name",j.createElement(k,{weight:"bold"},this.props.albumOwnerName))]));}else return (m._("End of {user_name}'s photos",[m.param("user_name",j.createElement(k,{weight:"bold"},this.props.albumOwnerName))]));}else if(this.props.isAlbum){return (m._("End of album"));}else return (m._("End of photos"));}});e.exports=q;},null); __d("PhotoSnowliftAds",["Arbiter","Event","copyProperties","CSS","csx","DataStore","DOM","PhotoSessionLog","UIPagelet","URI","Vector","extendArray"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){b.__markCompiled&&b.__markCompiled();var s={REFRESH_RATE:30000,UNITS_REGISTER_DELAY:1000,root:null,availableDimensions:null,loadQuery:null,lastLoadTime:0,minAds:100,units:null,isLogAdData:null,displayedCallback:null,position:null,adsStatus:'null',adsEvents:{},resetEvents:function(){this.adsStatus='reset';this.adsEvents={};},addEvent:function(t,u){if(u)this.adsStatus=t;var v=Date.now();this.adsEvents[t+'_'+v]=v;},init:function(t,u,v,w){this.reset();this.root=t;this.snowlift=u;this.minAds=v.min_ads;this.displayedCallback=w;this.addEvent('init',true);},reset:function(){this.lastLoadTime=0;this.position=0;this.units=[];this.resetEvents();this.addEvent('reset',true);},resize:function(t){this.availableDimensions=t;this.loadQuery=this.snowlift.getLoadQuery();this.processResize();},calculateUnitSizes:function(t,u,v){var w={};t.forEach(function(x){var y=x.root.firstChild.offsetHeight;x.units.forEach(function(aa){if(!j.hasClass(aa,'hidden')&&!this.getIsHoldout(aa)&&!this.getIsShadow(aa)){var ba=this.getHeight(aa.firstChild,u);y-=ba;}}.bind(this));var z={height:y,visible:false};x.units.forEach(function(aa){var ba=this.getIsAds(aa),ca=this.getHeight(aa.firstChild,u),da=this.getUnitId(aa),ea=this.getIsHoldout(aa);if(ea&&v)return;w[da]={height:ca,visible:false,priority:0,is_ads:ba,is_holdout:ea,section_ref:z};}.bind(this));}.bind(this));return w;},calculateVisibleUnits:function(t,u,v){var w=0,x=this.getUnitPriority(u);x.forEach(function(y){if(u.hasOwnProperty(y)){var z=u[y],aa=z.height;if(!z.section_ref.visible)aa+=z.section_ref.height;z.height_below=v-aa;z.visible=z.height_below>=0&&aa>0;if(z.visible){z.section_ref.visible=true;v-=aa;w++;}}}.bind(this));return u;},displayUnits:function(t,u){t.forEach(function(v){var w=false,x=true;v.units.forEach(function(y){var z=this.getUnitId(y),aa=u[z];if(!aa)return;var ba=aa.visible,ca=aa.height_below,da=aa.is_ads;j.conditionClass(y,'hidden',!ba);if(da&&ba&&x){var ea=m.find(y,'div.ego_unit');j.addClass(ea,'ego_unit_no_top_border');x=false;}w=w||ba;this.calcUnitStats(this.units[da][z],ba,ca);}.bind(this));j.conditionClass(v.root,'hidden',!w);}.bind(this));g.inform('PhotoSnowliftAds/displayUnits');},getUnitsDisplayed:function(t,u){var v=0;t.forEach(function(w){w.units.forEach(function(x){var y=this.getUnitId(x),z=u[y];if(!z||!z.visible)return;v++;}.bind(this));}.bind(this));return v;},getHeightsRequired:function(t,u){var v=0,w=[];t.forEach(function(x){var y=false;x.units.forEach(function(z){var aa=this.getUnitId(z),ba=u[aa];if(!ba)return;v+=ba.height;if(!y){v+=ba.section_ref.height;y=true;}w.push(v);}.bind(this));}.bind(this));return w;},getUnitPriority:function(t){var u=[],v=0,w=0;for(var x in t){var y=t[x];u.push(x);var z=this.minAds+v+w;if(y.is_ads){if(w=this.UNITS_REGISTER_DELAY){var x=t.trackingCode;t.trackingCode=null;this.registerImpression(x,t.registerUrl);}t.visible=u;t.heightBelow=v;t.lastShowTime=w;},prepareResize:function(){var t=function(u){var v=m.create('div',{className:'inner'}),w=m.create('div',{className:'wrapper'},v);m.replace(u,w);m.setContent(v,u);return w;};this.sections=m.scry(this.root,'div.ego_section').map(function(u){return {root:t(u),units:m.scry(u,'div.ego_unit').map(t)};});},processResize:function(){if(this.isLoading||this.lastLoadTime===0||this.availableDimensions===null){this.setLogData();return;}this.updateUnitsStatus();this.setLogData();var t=this.nextRegisterTime();if(t!==Infinity)setTimeout(this.processResize.bind(this),t);},setIsLogAdData:function(t){this.isLogAdData=t;this.addEvent('setIsLogAdData',false);this.setLogData();},setLogData:function(){var t=this.snowlift.getImageId();if(this.isLogAdData&&t){var u=q.getElementDimensions(this.snowlift.getImage()),v=q.getElementDimensions(this.snowlift.getRHCHeader()),w=q.getElementDimensions(this.snowlift.getRHCBody()),x=q.getElementDimensions(this.snowlift.getRHCFooter()),y={query_set:this.snowlift.getLoadQuery().set,window_x:window.innerWidth,window_y:window.innerHeight,image_x:u.x,image_y:u.y,header_x:v.x,header_y:v.y,body_x:w.x,body_y:w.y,footer_x:x.x,footer_y:x.y,ads_below_space:this.getAdsBelowSpace(),time:Date.now(),adsStatus:this.adsStatus,adsEvents:this.adsEvents,refreshRate:this.refreshUnitsRate,position:this.position};n.updateAdData(t,y);}},getAdsBelowSpace:function(){var t=[],u=this.units[1];for(var v in u)if(u.hasOwnProperty(v)&&!this.getIsHoldout(this.getAdUnit(v)))t.push(u[v].heightBelow);return t;},getIsAds:function(t){var u=m.scry(t,"div._4u8");return u.length;},getUnitId:function(t){if(this.getIsAds(t)){return this.getAdId(t);}else return this.getEgoId(t);},getEgoId:function(t){var u=m.find(t,'div.ego_unit');return u.getAttribute('data-ego-fbid');},getAdData:function(t){var u=m.find(t,"div._4u8"),v=u.getAttribute('data-ad');return v&&JSON.parse(v)||{};},getAdId:function(t){return this.getAdData(t).adid;},getIsHoldout:function(t){return t&&this.getIsAds(t)&&this.getAdData(t).holdout;},getIsShadow:function(t){return t&&this.getIsAds(t)&&this.getAdData(t).shadow;},getAdUnit:function(t){if(!this.sections)return null;var u=[];this.sections.forEach(function(w){r(u,w.units);});for(var v=0;vs.REFRESH_RATE){j.addClass(this.root,'loading');this.isLoading=true;this.loadAdsAndEgo();}},registerImpression:function(t,u){var v=m.create('iframe',{src:p(u).addQueryData({aed:t}),width:0,height:0,frameborder:0,scrolling:'no',className:'fbEmuTracking'});v.setAttribute('aria-hidden','true');m.appendContent(this.root,v);},waitForImages:function(t){var u=m.scry(this.root,'img.img'),v=u.length,w=v;if(w===0)t();var x=function(){w--;if(w===0)setTimeout(t,0);};for(var y=0;ythis.currentImageSize.y&&this.currentImageSize.x<=xb.TIMELINE_STRETCH_WIDTH&&bc.offsetWidth===xb.TIMELINE_STRETCH_WIDTH;var ec;if(bc){ec=bc.src;}else if(cc){ec=ua.get(cc,'backgroundImage').replace(/.*url\("?([^"]*)"?\).*/,'$1');}else return;this.thumbSrc=ec;};xb.prototype.loadFrameIfUninitialized=function(){"use strict";if(this.root)return;new h('/ajax/photos/snowlift/init.php').setAllowCrossPageTransition(true).setMethod('GET').setReadOnly(true).send();};xb.prototype.init=function(yb,zb){"use strict";this.init=jb;this._shouldLog=zb.photos_client_loading;this._logger=null;if(this._shouldLog)this._logger=new da(fa.VIEWER_SNOWLIFT_STRING);this._showHover=zb.pivot_hover;this._showMorePhotos=zb.show_more_photos;this._extraSlidePivot=zb.extra_slide_pivot;ga.setEndMetrics(zb.pivot_end_metric);this.startingMousePos=null;this.haveLeftBufferRegion=false;this.showingTypeaheadSuggestions=false;this.fullscreen=q.isSupportedWithKeyboardInput();this.showOGVideos=zb.og_videos;this.resizeCommentsForAds=zb.resize_comments_for_ads;this.spotlight=yb;this.spotlight.subscribe('blur',function(){this.closingAction=ga.OUTSIDE;}.bind(this));this.spotlight.subscribe('hide',this.closeHandler.bind(this));this.spotlight.subscribe('key',this.keyHandler.bind(this));this.initializeNodes(this.spotlight.getRoot());ka.init(this.sideAdUnit,this,zb,this.adsDisplayedCallback.bind(this));this.inAdsDisplayedCallback=false;this.lastAdsHeight=0;if(!this.subscription){x.registerHandler(this.handleNavigateAway.bind(this));this.subscription=g.subscribe('PhotoSnowlift.GO',function(ac,bc){this.openExplicitly=true;this.loading&&j.removeClass(this.loading,'loading');this.open(bc);}.bind(this));}this.transitionHandlerRegistered=false;this.returningToStart=false;ba.registerHandler(this.openHandler.bind(this));this.openHandlerRegistered=true;g.subscribe('PhotoTagApproval.HILITE_TAG',this.onHiliteTag.bind(this));g.subscribe('PhotoTagApproval.UPDATE_TAG_BOX',this.onUpdateTagBox.bind(this));if(this.fullscreen)q.subscribe('changed',this.onFullScreenChange.bind(this));this.slideshowGk=zb.snowlift_slideshow;this.buttonTruncateGk=zb.snowlift_button_truncate;this._hasZoomCapability=this._hasZoomCapability&&zb.www_panorama_viewer;this.allowIrrelevantRequests=!!zb.snowlift_allow_irrelevant_requests;if(this.snowflake){j.addClass(this.root,"snowflake");this.extraClasses.forEach(function(ac){j.addClass(this.root,ac);},this);}};xb.prototype.onFullScreenChange=function(){"use strict";if(!this.isOpen)return;var yb=q.isFullScreen();j.conditionClass(document.body,'fbPhotoSnowliftFullScreenMode',yb);if(yb){if(!j.hasClass(this.root,'fbPhotoSnowliftEditMode'))this.collapseRHC();var zb=this.stream.getCurrentImageData();if(zb&&zb.url&&this.image.src!==zb.url&&this.shouldShowHiRes(zb))this.switchImage(zb.url);this.adjustForResize();if(!this._isZoomOn)this._conditionDisplayZoomInButton();}else{if(!this._isZoomOn)this.uncollapseRHC();if(ab.chrome()&&!j.hasClass(this.root,'fbPhotoSnowliftEditMode'))this.page(0,false);g.inform('reflow');}va.hide();};xb.prototype.initializeNodes=function(yb){"use strict";this.root=yb;this.container=l.find(yb,'div.fbPhotoSnowliftContainer');this._updateContainerOwnerID();this.snowliftPopup=l.find(this.container,'div.fbPhotoSnowliftPopup');this.rhc=l.find(this.snowliftPopup,'div.rhc');this.rhcHeader=l.find(this.rhc,'div.rhcHeader');this.rhcFooter=l.find(this.rhc,'div.rhcFooter');this.taglist=l.find(this.rhc,'span.fbPhotoTagList');this.ufiForm=l.find(this.rhc,'form.fbPhotosSnowliftFeedbackForm');this.ufiInputContainer=l.find(this.rhc,'div.fbPhotosSnowboxFeedbackInput');this.scroller=l.find(this.ufiForm,'div.rhcScroller');this.scrollerBody=l.find(this.scroller,'div.uiScrollableAreaBody');this.stageWrapper=l.find(this.snowliftPopup,'div.stageWrapper');this.overlay=l.find(this.snowliftPopup,'div.snowliftOverlay');this.errorBox=l.find(this.stageWrapper,'div.stageError');this.image=l.find(this.stageWrapper,'img.spotlight');this.stage=l.find(this.stageWrapper,'div.stage');this.showZoomInButton=l.scry(this.stageWrapper,"._5qmg").pop();this.showZoomOutButton=l.scry(this.stageWrapper,"._5qmh").pop();this.zoomedImage=l.scry(this.stage,"._10zw").pop();this.outerImageSlider=l.scry(this.stage,"._10zx").pop();this.innerImageSlider=l.scry(this.stage,"._10zv").pop();this._hasZoomCapability=this.showZoomInButton&&this.showZoomOutButton&&this.zoomedImage&&this.outerImageSlider&&this.innerImageSlider;if(this._hasZoomCapability){j.hide(this.showZoomInButton);j.hide(this.showZoomOutButton);j.hide(this.zoomedImage);j.hide(this.outerImageSlider);}this.videoStage=l.find(this.stageWrapper,'div.videoStage');this.prevPager=l.find(this.snowliftPopup,'a.snowliftPager.prev');this.nextPager=l.find(this.snowliftPopup,'a.snowliftPager.next');this.stageActions=l.find(yb,'div.stageActions');this.buttonActions=l.find(this.stageActions,'div.fbPhotosPhotoButtons');this.placeInfo=l.find(this.rhc,'div.fbPhotosSnowliftPlaceInfo');this.sideAdUnit=l.find(yb,"._5ciw");j.conditionClass(this.root,'fullScreenAvailable',this.fullscreen);};xb.prototype.initializeScroller=function(){"use strict";this.initializeScroller=jb;j.addClass(this.scroller,"_467y");this.scrollableArea=sa.fromNative(this.scroller,{fade:true,persistent:true});var yb=function(event){var zb=o.$E(event).getTarget();if(l.contains(this.ufiInputContainer,zb)){var ac=n.getInstance(zb);if(ac){this.scrollableArea.scrollToBottom();var bc=ac.subscribe('resize',function(){var dc=this.scrollableArea.isScrolledToBottom();this.adjustScroller();dc&&this.scrollableArea.scrollToBottom();}.bind(this)),cc=o.listen(zb,'blur',function(){ac.unsubscribe(bc);cc.remove();});}}if(zb.classList.contains('UFIPagerLink')||zb.classList.contains('UFICommentLink'))if(this.autoplayOptionScreenConfig&&this.autoplayOptionScreenConfig.enabled)this.haltAutoplay=true;}.bind(this);g.subscribe('ufi/inputHeightChanged',function(zb,ac){if(l.contains(this.ufiInputContainer,ac.node))this.adjustScroller();}.bind(this));g.subscribe('ufi/addCommentFacepileRendered',function(){this.adjustScroller();}.bind(this));g.subscribe('ufi/changed',function(zb,ac){if(this.ufiForm===ac.form)this.adjustScrollerIfNecessary();}.bind(this));g.subscribe('ufi/comment',function(zb,ac){if(this.ufiForm===ac.form){this.adjustScrollerIfNecessary();if(ac.isranked){this.scrollableArea.scrollToTop();}else this.scrollableArea.scrollToBottom();}}.bind(this));o.listen(this.rhc,'click',function(event){var zb=event.getTarget();if(ca.byTag(zb,'a')||ca.byTag(zb,'button')||l.isNodeOfType(zb,'input'))this.adjustScrollerIfNecessary();}.bind(this));g.subscribe(['reflow','CommentUFI.Pager'],function(){if(this.isOpen)this.adjustScrollerIfNecessary();}.bind(this));o.listen(this.ufiForm,'focusin',yb);};xb.prototype.openHandler=function(yb){"use strict";if(this.isOpen||!ea.isValid(yb)||this.returningToStart||yb.getQueryData().closeTheater||yb.getQueryData().permPage){this.openHandlerRegistered=false;return false;}this.open(yb);this._uriStack.push(za(yb).getQualifiedURI().toString());ba.transitionComplete(true);return true;};xb.prototype.addHaltAutoplaySubscription=function(){"use strict";g.subscribe(['ufi/focus'],function(){this.haltAutoplay=true;}.bind(this));g.subscribe(['ufi/blur'],function(yb,zb){this.haltAutoplay=zb.hasEnteredText;}.bind(this));};xb.prototype.getImageSrc=function(yb){"use strict";if(yb.smallsrc){if(!yb.size)return yb.smallsrc;var zb=bb.deserialize(yb.size),ac=this.getStageSize(zb);ac=this._adjustStageSizeForPixelRatio(ac);if(ac.x<=xb.STAGE_NORMAL_MAX.x&&ac.y<=xb.STAGE_NORMAL_MAX.y)return yb.smallsrc;}return yb.src;};xb.prototype.open=function(yb){"use strict";var zb=za(yb),ac=zb.getQueryData(),bc=ea.parse(zb);if(bc!==null){ac.fbid=bc.photo_id;ac.set=bc.set_token;}if(!ac.fbid&&!ac.v&&!ac.pid){var cc=ub.exec(zb.getPath());if(cc)ac.v=cc[1];}var dc=this.getImageSrc(ac);if(dc){delete ac.src;delete ac.smallsrc;}if(this.resetUriStack)this._uriStack=[];if(!this.initialLoad){ac.firstLoad=true;this.initialLoad=true;y.registerBlocker(function(){return this.isOpen;}.bind(this));z.registerOpenChecker(function(){return this.isOpen;}.bind(this));}this.sessionID=Date.now();this.loadQuery=fb(ac,{ssid:this.sessionID});if(this._dataFt)this.loadQuery.data_ft=this._dataFt;this.isOpen=true;this.pagersShown=false;this.refreshOnClose=false;this.hilitedTag=null;this.loadingStates={image:false,html:false};this.replaceUrl=false;this.movementDelta=0;this.pivotsCarouselElement=null;this.autoplayOptionScreenConfig=null;this.haltAutoplay=false;this.shouldRenderVideoPivots=false;j.show(this.nextPager);j.show(this.prevPager);this.source=null;this.saveTagSubscription=g.subscribe('PhotoTagger.SAVE_TAG',this.onTagSaved.bind(this));this.taggedPhotoIds=[];this.stream=new la();this.stream.init(fa.VIEWER_SNOWLIFT,'PhotoViewerPagelet','pagelet_photo_viewer',this._shouldLog?this._logger:null,ac.tagSuggestionMode||'everyone');if(!!za.getMostRecentURI().getQueryData().viewas)this.stream.setViewAs(za.getMostRecentURI().getQueryData().viewas+'');this.fetchInitialData();this.setLoadingState(xb.STATE_HTML,true);this.rhcCollapsed=false;this._open(yb,dc);i.loadModules(["PhotosButtonTooltips"],function(ec){ec.init();});};xb.prototype._open=function(yb,zb){"use strict";this.createLoader(zb);this.spotlight.show();g.inform('layer_shown',{type:'PhotoSnowlift'});g.inform('PhotoSnowlift.OPEN');this.stageHandlers=[o.listen(window,'resize',this.adjustForResize.bind(this)),o.listen(this.stageWrapper,'click',this.buttonListener.bind(this)),o.listen(this.stageWrapper,'mouseleave',function(event){var cc=event.getTarget();if(!(ca.byClass(cc,'snowliftOverlay')||ca.byClass(cc,'fbPhotoSnowliftTagApproval')||ca.byClass(cc,'tagPointer')||ca.byClass(cc,'arrow')||ca.byClass(cc,'faceboxSuggestion')||ca.byClass(cc,'typeaheadWrapper')||ca.byClass(cc,'photoTagTypeahead')||ca.byClass(cc,'fbPhotoTagger')))this.unhiliteAllTags();this.hidePagers();}.bind(this)),o.listen(this.stageWrapper,'mousemove',this.hilitePager.bind(this)),o.listen(this.stageWrapper,'mousemove',this.hiliteTagsOnMouseMove.bind(this)),o.listen(this.overlay,'mouseenter',this.unhiliteAllTags.bind(this)),o.listen(this.container,'mousemove',this._enableMouseOver.bind(this)),o.listen(this.container,'mouseover',this._interceptMouseOver.bind(this)),o.listen(this.stageWrapper,'focusin',this.hilitePager.bind(this)),o.listen(this.rhc,'focusin',this.hidePagers.bind(this))];if(this._hasZoomCapability){this.stageHandlers.push(o.listen(this.stage,'mousedown',this._zoomedImageMouseDown.bind(this)));this.stageHandlers.push(o.listen(this.root,'mouseup',this._zoomedImageMouseUp.bind(this)));}this.stageHandlers.push(o.listen(this.container,'click',function(event){var cc=event.getTarget();if(ca.byClass(cc,'rotateRight')){this.rotate('right');}else if(ca.byClass(cc,'rotateLeft')){this.rotate('left');}else if(ca.byClass(cc,'closeTheater')){if(q.isFullScreen()){q.toggleFullScreen();return;}this.closingAction=ga.X;this.spotlight.hide();return false;}else if(ca.byClass(cc,"_32_l")){var dc=ca.byClass(cc,"_32_l"),ec=dc.getAttribute('data-fbid'),fc=this.stream.getCursor(),gc=this.stream.calculateDistance(fc,ec),hc=this.stream.fbidList.indexOf(ec);ta.adjustCarousel(hc);this.page(gc,false);this.haltAutoplay=false;this.removeAutoplayOptionScreen();}else if(this.fullscreen)if(ca.byClass(cc,'fbPhotoSnowliftFullScreen')){this.toggleFullScreen();}else if(ca.byClass(cc,'fbPhotoSnowliftCollapse'))this.toggleCollapse();}.bind(this)));var ac=kb('fbPhotoSnowliftFeedback');if(ac)this.stageHandlers.push(o.listen(ac,'click',function(event){var cc=event.getTarget();if(ca.byClass(cc,'like_link')||(ca.byClass(cc,'UFILikeLink')&&ca.byClass(cc,'UIActionLinks')))this.toggleLikeButton();var dc=ca.byClass(event.getTarget(),'uiUfiCollapsedComment');if(dc)j.addClass(dc,'uiUfiCollapsedCommentToggle');}.bind(this)));var bc=kb('fbPhotoSnowliftOnProfile');if(bc)this.stageHandlers.push(o.listen(bc,'click',function(event){if(ca.byClass(event.getTarget(),'fbPhotoRemoveFromProfileLink'))this.refreshOnClose=true;}.bind(this)));if(this.resetUriStack)this.startingURI=za.getMostRecentURI().addQueryData({closeTheater:1}).getUnqualifiedURI();if(!zb)this.setLoadingState(xb.STATE_IMAGE_DATA,true);if(!this.transitionHandlerRegistered){ba.registerHandler(this.transitionHandler.bind(this));this.transitionHandlerRegistered=true;}ga.initLogging(ga.SNOWLIFT);if(this.pivots)ga.setRelevantCount(this.pivots.relevantCount);};xb.prototype.toggleFullScreen=function(){"use strict";var yb=q.toggleFullScreen(document.documentElement);if(yb){var zb=this.stream.getCurrentImageData();if(zb&&zb.url&&this.image.src!==zb.url&&this.shouldShowHiRes(zb))if(!this._log(zb.url))(new Image()).src=zb.url;ga.logEnterFullScreen(this.stream.getCursor());}};xb.prototype.getStream=function(){"use strict";return this.stream;};xb.prototype.fetchInitialData=function(){"use strict";this.stream.waitForInitData();ya.loadFromEndpoint('PhotoViewerInitPagelet',kb('pagelet_photo_viewer_init',this.root),this.loadQuery,{actorID:xa.getActorIDForFeedbackTargetIfExists(this.loadQuery.fbid),usePipe:true,jsNonblock:true,crossPage:true,allowIrrelevantRequests:this.allowIrrelevantRequests});};xb.prototype.toggleCollapse=function(){"use strict";if(this.rhcCollapsed){this.uncollapseRHC();}else this.collapseRHC();};xb.prototype.collapseRHC=function(){"use strict";this.rhcCollapsed=true;j.addClass(this.root,'collapseRHC');this.adjustForResize();};xb.prototype.uncollapseRHC=function(){"use strict";this.rhcCollapsed=false;j.removeClass(this.root,'collapseRHC');this.adjustForResize();};xb.prototype.closeHandler=function(){"use strict";if(!this.isOpen)return;this.closingAction=this.closingAction||ga.ESC;if(za.getMostRecentURI().addQueryData({closeTheater:1}).getUnqualifiedURI().toString()==this.startingURI.toString()){this.close();return;}this.returnToStartingURI(this.refreshOnClose);this.close();};xb.prototype.returnToStartingURI=function(yb,zb){"use strict";if(!yb)if(zb){this.squashNextTransition(mb.bind(null,zb));}else this.squashNextTransition();this.returningToStart=true;var ac=g.subscribe('page_transition',(function(){this.returningToStart=false;ac.unsubscribe();}).bind(this)),bc=yb||isNaN(ab.opera()),cc=this._uriStack.length;if(bc&&cc0){var yb=null;if(this.source===xb.COLLECTIONS_UNTAGGED_PHOTOS){yb='/ajax/photos/photo/edit/skiptag/';}else if(this.source===xb.PHOTOS_OF_YOU_SUGGESTIONS||this.source===xb.FRIENDS_IN_PHOTOS_SUGGESTIONS)yb='/ajax/photos/photo/add_to_star_grid/';if(yb)new h().setURI(yb).setAllowCrossPageTransition(true).setData({media_id:this.taggedPhotoIds,source:this.source}).send();}};xb.prototype.onTagSaved=function(yb,zb){"use strict";if(this.taggedPhotoIds){if(this.source===xb.PHOTOS_OF_YOU_SUGGESTIONS&&!zb.self_tag)return;this.taggedPhotoIds.push(zb.photo_fbid);}};xb.prototype.clearAlbumBoundaries=function(){"use strict";this._albumBoundaries={start:0,end:0,dir:0};};xb.prototype.close=function(){"use strict";if(!this.isOpen)return;this._albumFBID=null;this.hideMorePhotos();this.hidePivotSlide();this._pauseVideoIfNeeded();this.isOpen=false;this._navCount=0;this.clearAlbumBoundaries();if(this.fullscreen)q.disableFullScreen();ra.closeOverlayView('snowlift');this.spotlight.hide();this.openExplicitly=false;this.postProcessTaggedPhotos();g.unsubscribe(this.saveTagSubscription);this.taggedPhotoIds=[];this.closeDirty=true;ob(this.closeCleanup.bind(this),0);if(this.snowflake){j.removeClass(this.root,"snowflake");this.extraClasses.forEach(function(yb){j.removeClass(this.root,yb);},this);}this.extraClasses=[];this.snowflake=false;this.firstInSet=null;this.movementDelta=0;};xb.prototype.closeCleanup=function(){"use strict";this.closeDirty=false;j.removeClass(this.root,'dataLoading');ga.logPhotoViews(this.closingAction);this.destroy();j.hide(this.errorBox);j.hide(this.image);this.currentImageSize=null;this.thumbSrc=null;this.shouldStretch=false;this.resetUriStack=true;var yb=this.stream.getCursor();j.removeClass(this.stageWrapper,'showVideo');l.empty(this.videoStage);this.uncollapseRHC();this.currentMinSize=null;this.setStagePagersState('reset');this.recacheData();l.empty(this.sideAdUnit);this.stream.destroy();this.root.setAttribute('aria-busy','true');var zb=this.closingAction===ga.NAVIGATE;this.closingAction=null;if(!this.openHandlerRegistered){ba.registerHandler(this.openHandler.bind(this));this.openHandlerRegistered=true;}g.inform('layer_hidden',{type:'PhotoSnowlift'});g.inform('PhotoSnowlift.CLOSE',{is_navigating:zb,fbid:yb});this._setZoomOut();this._previousZoomScrollPercent=null;};xb.prototype.createLoader=function(yb){"use strict";if(this.currentImageSize===null){this.adjustStageSize(xb.STAGE_MIN);}else{var zb=this.getStageSize(this.currentImageSize);zb=new bb(Math.max(zb.x,xb.STAGE_MIN.x),Math.max(zb.y,xb.STAGE_MIN.y));var ac=this.getImageSizeInStage(this.currentImageSize,zb);if(this.thumbSrc===null){this.adjustStageSize(ac);}else this.useImage(l.create('img',{className:'spotlight',alt:'',src:this.thumbSrc,style:{width:ac.x+'px',height:ac.y+'px'}}),ac,false);}this.setLoadingState(this.STATE_IMAGE_PIXELS,true);if(yb)setTimeout((function(){var bc=new Image(),cc=function(){if(!this.isOpen)return;if(!this.stream||!this.stream.errorInCurrent()){this.switchImage(yb,this.currentImageSize);this.setLoadingState(xb.STATE_IMAGE_DATA,false);}}.bind(this),dc=o.listen(bc,'load',cc),ec=function(){if(dc){dc.remove();dc=null;}};g.subscribeOnce('PhotoSnowlift.SWITCH_IMAGE',ec);g.subscribeOnce('PhotoSnowlift.CLOSE',ec);this._log(yb);bc.src=yb;}).bind(this),0);j.hide(this.stageActions);this.setStagePagersState('disabled');};xb.prototype.initDataFetched=function(yb){"use strict";ga.setPhotoSet(this.stream.getPhotoSet());ga.setLogFbids(yb.logids);this._albumBoundaries.start=this.stream.getCursor();var zb=this.stream.getCurrentImageData();ga.addPhotoView(zb.info,this.shouldShowHiRes(zb),this.fullscreen&&q.isFullScreen());var ac=this.stream.getCurrentExtraData();if(this._showHover&&ac)na.logImageImpression('snowlift',String(this.stream.getCursor()),Object.keys(ac.tagRects));if(ac&&ac.source!==(void 0)){this.source=parseInt(ac.source,10);ga.setSource(this.source);}if(!this.pageHandlers)this.pageHandlers=[o.listen(this.root,'click',this.pageListener.bind(this)),o.listen(this.root,'mouseleave',this.mouseLeaveListener.bind(this))];j.show(this.stageActions);this.root.setAttribute('aria-busy','false');this.isLoggedInViewer=yb.loggedin;this.disableAds=!this.isLoggedInViewer||yb.fromad||this.stream.isInViewAsMode();this.loadAds();if(this._isZoomAvailable(zb)){ga.addPanoramaImpression();var bc=new bb(this.stage.clientWidth,this.stage.clientHeight);this._displayZoomInButton(bc);}else if(this._hasZoomCapability)j.hide(this.showZoomInButton);};xb.prototype.adjustScrollerIfNecessary=function(){"use strict";clearTimeout(this.scrollerTimeout);this.scrollerTimeout=setTimeout(this.adjustScroller.bind(this),0);};xb.prototype.adjustScroller=function(yb){"use strict";clearTimeout(this.scrollerTimeout);this.initializeScroller();this.scrollableArea.resize();var zb=bb.getElementDimensions(this.rhc),ac=zb.y;ac-=bb.getElementDimensions(this.rhcHeader).y;ac-=bb.getElementDimensions(this.ufiInputContainer).y;if(this.placeInfo){var bc=bb.getElementDimensions(this.placeInfo);ac-=bc.y;ua.set(this.sideAdUnit,'bottom',bc.y+'px');}if(yb==null)yb=this.resizeCommentsForAds?this.lastAdsHeight:0;this.lastAdsHeight=yb;ac=Math.max(0,ac);var cc=bb.getElementDimensions(this.scrollerBody).y,dc=Math.max(xb.MIN_UFI_HEIGHT,ac-yb);if(cc>=dc){if(ac>dc){j.removeClass(this.rhc,'pinnedUfi');ac-=dc;}else{j.addClass(this.rhc,'pinnedUfi');ac=0;}ua.set(this.scroller,'height',dc+'px');}else{ua.set(this.scroller,'height','auto');j.removeClass(this.rhc,'pinnedUfi');ac-=cc;}var ec=bb.getElementDimensions(this.ufiInputContainer).y;ua.set(this.ufiForm,'padding-bottom',ec+'px');ka.resize(new bb(zb.x,ac));this.scrollableArea.adjustGripper();};xb.prototype.adjustForResize=function(){"use strict";this.currentMinSize=null;this.adjustStageSize();this.adjustForNewData();if(this._hasZoomCapability){if(!this._isZoomOn)this._conditionDisplayZoomInButton();this._scrollZoomedImageToPercent(this._previousZoomScrollPercent);}};xb.prototype.shouldShowHiRes=function(yb){"use strict";if(!yb||!yb.smallurl)return false;var zb=this.getStageSize(yb.dimensions);zb=this._adjustStageSizeForPixelRatio(zb);var ac=this.getImageSizeInStage(yb.dimensions,zb);return (ac.x>xb.STAGE_NORMAL_MAX.x||ac.y>xb.STAGE_NORMAL_MAX.y);};xb.prototype._adjustStageSizeForPixelRatio=function(yb){"use strict";if(window.devicePixelRatio&&window.devicePixelRatio>1)yb=new bb(yb.x*window.devicePixelRatio,yb.y*window.devicePixelRatio);return yb;};xb.prototype.getImageURL=function(yb){"use strict";if(yb.video){return null;}else if(yb.smallurl&&!this.shouldShowHiRes(yb))return yb.smallurl;return yb.url;};xb.prototype.getImageOrVideoDimensions=function(yb){"use strict";if(yb.video){var zb=this.getVideoElement(yb.video);if(zb)return this.getVideoSize(zb);}return this.getImageDimensions(yb);};xb.prototype.getImageDimensions=function(yb){"use strict";if(this._isZoomOn)return yb.originalDimensions;if(yb.smalldims&&(!this.shouldShowHiRes(yb)||this.image.src===yb.smallurl))return yb.smalldims;return yb.dimensions;};xb.prototype.getStageSize=function(yb,zb){"use strict";var ac=bb.getViewportDimensions(),bc=new bb(yb.x,yb.y+this.getExtraVerticalSpace());if(zb)bc=new bb(Math.max(yb.x,zb.x),Math.max(yb.y,zb.y));var cc,dc;if(this.fullscreen&&q.isFullScreen()){return new bb((this.rhcCollapsed?screen.width:screen.width-xb.SIDEBAR_SIZE_MAX),screen.height-xb.FULL_SCREEN_PADDING*2);}else{cc=Math.min(bc.x,(ac.x-xb.SIDEBAR_SIZE_MAX-xb.STAGE_CHROME.x));dc=Math.min(bc.y,ac.y-xb.STAGE_CHROME.y);}if(cc===0&&dc===0)return new bb(0,0);var ec=cc/dc,fc=bc.x/bc.y;if(ec=zb.x||bc>=zb.y){var ec=zb.x/zb.y,fc=ac/bc;if(ecfc){bc=zb.y;ac=Math.round(bc*fc);}else{ac=zb.x;bc=zb.y;}}return new bb(ac,bc+cc);};xb.prototype.getStageSizeForZoomedImage=function(yb,zb){"use strict";if(this.fullscreen&&q.isFullScreen()){var ac=this.rhcCollapsed?screen.width:screen.width-xb.SIDEBAR_SIZE_MAX,bc=screen.height-xb.FULL_SCREEN_PADDING*2;return new bb(ac,bc);}var cc=bb.getViewportDimensions();if(zb===null)zb=new bb(0,0);var dc=new bb(Math.max(yb.x,xb.STAGE_MIN.x,zb.x),Math.max(yb.y,xb.STAGE_MIN.y,zb.y)),ec=cc.x-xb.STAGE_CHROME.x;if(!this.rhcCollapsed)ec-=xb.SIDEBAR_SIZE_MAX;ac=Math.min(dc.x,ec);bc=Math.min(dc.y,cc.y-xb.STAGE_CHROME.y);return new bb(ac,bc);};xb.prototype.adjustStageSize=function(yb){"use strict";var zb=this.currentImageSize;if(yb){zb=yb;}else{var ac=this.stream&&this.stream.getCurrentImageData();if(ac)zb=this.getImageOrVideoDimensions(ac);}if(!zb)return;this.currentImageSize=zb;var bc=this.getExtraVerticalSpace();if(this.shouldStretch&&!this.getVideoOnStage()&&zb.x>zb.y&&zb.x<=xb.TIMELINE_STRETCH_WIDTH&&zb.x>=xb.TIMELINE_STRETCH_MIN){zb.y=Math.round(zb.y*xb.TIMELINE_STRETCH_WIDTH/zb.x);zb.x=xb.TIMELINE_STRETCH_WIDTH;}var cc;if(this._isZoomOn){cc=this.getStageSizeForZoomedImage(zb,this.currentMinSize);}else cc=this.getStageSize(zb,this.currentMinSize);if(!this.currentMinSize)this.currentMinSize=new bb(0,0);this.currentMinSize=new bb(Math.max(cc.x,xb.STAGE_MIN.x,this.currentMinSize.x),Math.max(cc.y,xb.STAGE_MIN.y,this.currentMinSize.y));var dc=this.getImageSizeInStage(zb,this.currentMinSize),ec=this.currentMinSize.x-dc.x,fc=this.currentMinSize.y-dc.y;if(ec>0&&ec0&&fcoc){var pc=(zb.x/zb.y)*oc;ua.apply(this.zoomedImage,{width:pc+"px",height:oc+"px"});}else ua.apply(this.zoomedImage,{width:zb.x+"px",height:zb.y+"px"});}else{dc.y-=this.getComponentsHeight();this.setMediaElementSize(dc);}if(hc)this.setPivotCarouselElementWidth(nc);var qc=this.getTagger();if(qc)qc.repositionTagger();this.adjustScrollerIfNecessary();};xb.prototype.setMediaElementSize=function(yb){"use strict";var zb=this.image;if(this.getVideoOnStage())if(this._videoPlayerStateManager&&this._videoPlayerStateManager.setDimensions){this._videoPlayerStateManager.setDimensions(yb.x,yb.y);}else zb=l.scry(this.videoStage,"._53j5")[0]||zb;zb.style.cssText='width:'+yb.x+'px;'+'height:'+yb.y+'px;';};xb.prototype.setPivotCarouselElementWidth=function(yb){"use strict";var zb=this.videoStage.clientWidth;if(ab.firefox()){zb=(zb/parseFloat(yb))+'em';}else zb=zb+'px';this.pivotsCarouselElement.style.width=zb;};xb.prototype.adjustForNewData=function(){"use strict";if(!this.image)return;var yb=l.scry(this.stage,'div.tagsWrapper')[0],zb=bb.getElementDimensions(this.image);if(yb){ua.set(yb,'width',zb.x+'px');ua.set(yb,'height',zb.y+'px');}};xb.prototype.adsDisplayedCallback=function(yb,zb){"use strict";var ac=this.resizeCommentsForAds&&!this.inAdsDisplayedCallback&&!this.disableAds&&yb=xb.MIN_ADS_VISIBLE;if(ac){this.inAdsDisplayedCallback=true;var bc=zb[xb.MIN_ADS_VISIBLE-1];this.adjustScroller(bc);this.inAdsDisplayedCallback=false;}};xb.prototype.setLoadingState=function(yb,zb){"use strict";switch(yb){case xb.STATE_IMAGE_PIXELS:j.conditionClass(this.root,'imagePixelsLoading',zb);break;case xb.STATE_IMAGE_DATA:this.loadingStates[yb]=zb;j.conditionClass(this.root,'imageLoading',zb);break;case xb.STATE_HTML:this.loadingStates[yb]=zb;j.conditionClass(this.root,'dataLoading',zb);this.rhc.setAttribute('aria-busy',zb?'true':'false');break;}};xb.prototype.destroy=function(){"use strict";this.stageHandlers.forEach(function(yb){yb.remove();});if(this.pageHandlers){this.pageHandlers.forEach(function(yb){yb.remove();});this.pageHandlers=null;}this._slideshowToken&&clearInterval(this._slideshowToken);this._slideshowToken=null;this._videoPlayerStateManager=null;};xb.prototype.checkState=function(yb){"use strict";if(yb!=xb.STATE_ERROR&&!this.loadingStates[yb])return;switch(yb){case xb.STATE_IMAGE_DATA:var zb=this.stream.getCurrentImageData();if(zb){var ac=this.getImageURL(zb);if(ac){this.switchImage(ac,null,true);}else if(zb.video)this.switchVideo(zb.video,true);this.setLoadingState(yb,false);}break;case xb.STATE_HTML:if(this.stream.getCurrentHtml()){this.swapData();this.setLoadingState(yb,false);}break;default:if(this.stream.errorInCurrent()){j.hide(this.image);j.show(this.errorBox);}break;}};xb.prototype.buttonListener=function(event){"use strict";var yb=event.getTarget(),zb=Date.now();if(ca.byClass(yb,"_5qmg")){ga.addPanoramaClick();this.switchIntoZoomedImage();return;}if(ca.byClass(yb,"_5qmh")){this._setZoomOut();this.switchImage(this.getImageURL(this.stream.getCurrentImageData()));return false;}if(ca.byClass(yb,'fbPhotoTagApprovalBox'))return;if(zb-this.lastPage<350)return;if(ca.byClass(yb,'fbPhotosPhotoLike')){this.likePhoto();}else if(ca.byClass(yb,'tagApproveIgnore')){this.updateTagBox(event,yb);}else if(ca.byClass(yb,"_5ge9")){this.hideMorePhotos();this.toggleSlideshow();return false;}else if(ca.byClass(yb,"_5ymu")){if(!this._showingMorePhotos){na.logShowMorePhotos();var ac=this.stream.getCursor();if(ac)this.showMorePhotos(String(ac));if(this._hasZoomCapability)j.hide(this.showZoomInButton);}else{na.logHideMorePhotos();this._conditionDisplayZoomInButton();this.hideMorePhotos();}return;}else if(ca.byClass(yb,"_27n"))this._conditionDisplayZoomInButton();this.hideMorePhotos();};xb.prototype.toggleSlideshow=function(){"use strict";if(!this.slideshowGk)return;if(this._slideshowToken){this.stopSlideshow();}else this.startSlideshow();};xb.prototype.startSlideshow=function(){"use strict";this._slideshowToken=window.setInterval(this.page.bind(this,1,ab.chrome()&&q.isFullScreen()),xb.SLIDESHOW_TIME);j.addClass(this.root,'slideshowStarted');j.removeClass(this.root,'slideshowAvailable');};xb.prototype.stopSlideshow=function(){"use strict";this._slideshowToken&&clearInterval(this._slideshowToken);this._slideshowToken=null;j.addClass(this.root,'slideshowAvailable');j.removeClass(this.root,'slideshowStarted');};xb.prototype.likePhoto=function(){"use strict";ga.addButtonLike();var yb=db('fbPhotoSnowliftFeedback'),zb=l.scry(yb,'button.like_link')[0];if(!zb)zb=l.scry(yb,'a.UFILikeLink')[0];var ac=zb.getAttribute('href');if(q.isFullScreen())if(ab.chrome())zb.setAttribute('href','javascript:;');zb.click();zb.setAttribute('href',ac);};xb.prototype.toggleLikeButton=function(){"use strict";var yb=l.scry(this.buttonActions,'a.fbPhotosPhotoLike')[0];if(yb){var zb=l.find(this.root,'.likeCount'),ac=l.find(zb,'.likeCountNum');if(zb)if(j.hasClass(yb,'viewerLikesThis')){l.setContent(ac,parseInt(ac.textContent,10)-1);}else l.setContent(ac,parseInt(ac.textContent,10)+1);j.toggleClass(yb,'viewerLikesThis');j.removeClass(yb,'viewerAlreadyLikedThis');}};xb.prototype.likePhotoWithKey=function(){"use strict";return w.like(this.likePhoto.bind(this),lb());};xb.prototype.updateTagBox=function(yb,zb){"use strict";this.unhiliteAllTags();var ac=kb(yb);if(!ac)return;j.addClass(ac,'tagBox');j.addClass(ac,'tagBoxPendingResponse');j.removeClass(ac,'tagBoxPending');j.hide(l.find(ac,'span.tagForm'));if(zb){j.show(l.find(ac,'span.tagApproved'));}else j.show(l.find(ac,'span.tagIgnored'));};xb.prototype.rotate=function(yb){"use strict";var zb=this.stream.getCursor();if(this.getVideoOnStage()){var ac=(yb=='left')?270:90;nb(!!this.videoRotateURI);i.loadModules(["VideoRotate"],function(cc){new cc(zb,this.videoRotateURI).motionRotate(ac);}.bind(this));return;}var bc=fb({fbid:zb,opaquecursor:this.stream.getOpaqueCursor(zb),cs_ver:fa.VIEWER_SNOWLIFT},this.stream.getPhotoSetQuery());bc[yb]=1;this.setLoadingState(xb.STATE_IMAGE_DATA,true);this.setLoadingState(this.STATE_IMAGE_PIXELS,true);j.hide(this.image);new h('/ajax/photos/photo/rotate/').setAllowCrossPageTransition(true).setData(bc).setErrorHandler(this.rotationError.bind(this,zb)).setFinallyHandler(this.rotationComplete.bind(this,zb)).setMethod('POST').setReadOnly(false).send();};xb.prototype.rotationComplete=function(yb,zb){"use strict";if(yb==this.stream.getCursor()){this.setLoadingState(xb.STATE_IMAGE_DATA,false);this.switchImage(this.getImageURL(this.stream.getCurrentImageData()));this.swapData();}};xb.prototype.rotationError=function(yb,zb){"use strict";if(yb==this.stream.getCursor()){this.setLoadingState(xb.STATE_IMAGE_DATA,false);this.switchImage(this.getImageURL(this.stream.getCurrentImageData()));i.loadModules(["AsyncResponse"],function(ac){ac.defaultErrorHandler(zb);});}};xb.prototype.saveTagsFromPayload=function(yb){"use strict";this.storeFromData(yb);if('data' in yb&&this.stream.getCursor() in yb.data)this.swapData();};xb.prototype.saveEdit=function(){"use strict";if(!j.hasClass(this.root,'fbPhotoSnowliftEditMode'))return;i.loadModules(["PhotoInlineEditor","Form"],function(yb,zb){var ac=yb.getInstance(this.getViewerConst());ac&&zb.bootstrap(ac.getForm().controller);}.bind(this));};xb.prototype.mouseLeaveListener=function(event){"use strict";this.unhiliteAllTags();this.reHilitePendingTag();};xb.prototype.hilitePager=function(event){"use strict";var yb=bb.getEventPosition(event),zb=bb.getElementPosition(this.stage);if(aa.isRTL()){var ac=bb.getElementDimensions(this.stage);this.stagePagerPrev=ac.x-(yb.x-zb.x)0))){this.showPagers(xb.PAGER_FADE);return;}this.lastPage=Date.now();this.unhiliteAllTags();this.startingMousePos=null;this.haveLeftBufferRegion=false;this._seenTags={};this._navCount+=yb;var cc=this.stream.allLoaded?Math.abs(this._navCount)-this.stream.getLength():null;if(this._extraSlidePivot&&this._albumFBID){if(!this._albumBoundaries.end&&cc===0){this._albumBoundaries.end=this.stream.getCursor();this._albumBoundaries.dir=yb;}else if(cc===-1)ja.fetch(this._albumFBID,this.stream);if(!this.onExtraSlide){if(this.stream.getCursor()===this._albumBoundaries.end&&bc===this._albumBoundaries.start&&yb===this._albumBoundaries.dir){this.showPivotSlide(this._albumFBID,zb);return;}else if(this.stream.getCursor()===this._albumBoundaries.start&&bc===this._albumBoundaries.end&&yb===-this._albumBoundaries.dir)this.showPivotSlide(this._albumFBID,zb);}else{this.hidePivotSlide();if(yb===-this._albumBoundaries.dir)return;}}var dc=this.getVideoOnStage();if(dc)this.switchVideo(dc,false);if(this.pivots&&this.pivots.page(yb))return;g.inform('PhotoSnowlift.PAGE');va.hide();this.recacheData();this.stream.moveCursor(yb);j.hide(this.image);if(yb!==0){this.storyID=null;this._updateContainerOwnerID();}if(yb!==0&&this._isZoomOn)this._setZoomOut();if(this.stream.errorInCurrent()){this.setLoadingState(xb.STATE_HTML,true);j.show(this.errorBox);return;}this.movementDelta+=yb;var ec=this.stream.getCurrentImageData();if(ec){var fc=this.getImageURL(ec);if(fc){this.switchImage(fc,null,true);}else if(ec.video)this.switchVideo(ec.video,true,ac);if(!zb){this.replaceUrl=true;mb(ec.info.permalink);}this.setLoadingState(xb.STATE_IMAGE_DATA,false);}else{this.setLoadingState(xb.STATE_IMAGE_PIXELS,true);this.setLoadingState(xb.STATE_IMAGE_DATA,true);}if(this.stream.getCurrentHtml()){this.swapData();}else this.setLoadingState(xb.STATE_HTML,true);this.disableAds=!this.isLoggedInViewer||this.stream.isInViewAsMode();this.loadAds();this.setLeftAndRightPagersState();if(this._slideshowToken){j.addClass(this.root,'slideshowStarted');}else if(this.slideshowAvailable)j.addClass(this.root,'slideshowAvailable');if(!this._extraSlidePivot&&this._showMorePhotos&&this._albumFBID)if(cc===-1){ja.fetch(this._albumFBID,this.stream);}else if(cc===0){na.logSuggestMorePhotos();this.showMorePhotos(this._albumFBID,true);this.showPagers();this._navCount=0;}else{this.hideMorePhotos();this.hidePagers();}};xb.prototype.showMorePhotos=function(yb,zb){"use strict";if(this._showingMorePhotos)return;this._showingMorePhotos=true;if(!this.searchPivot)this.searchPivot=this.overlay.appendChild(document.createElement('div'));j.addClass(this.stageWrapper,"_5ymv");this.searchPivotComponent=pa.render(pa.createElement(ia,{className:"_27g",fbid:yb,onclose:this.hideMorePhotos.bind(this),endofalbum:zb||false,withBackground:true}),this.searchPivot);};xb.prototype.hideMorePhotos=function(){"use strict";if(this.searchPivotComponent&&this._showingMorePhotos){this._showingMorePhotos=false;j.removeClass(this.stageWrapper,"_5ymv");this.searchPivotComponent.setProps({fbid:null});}};xb.prototype.showPivotSlide=function(yb,zb){"use strict";if(this.onExtraSlide)return;this.onExtraSlide=true;j.addClass(this.stageWrapper,"_3tvf");if(!this.pivotSlide){this.pivotSlide=l.create('div');l.insertBefore(this.stageActions,this.pivotSlide);}this.pivotSlideComponent=pa.render(pa.createElement(ha,{fbid:yb,isAlbum:this._isAlbum,albumOwnerName:this._albumOwnerName,visible:true,onReturn:this.page.bind(this,this._albumBoundaries.dir,zb)}),this.pivotSlide);};xb.prototype.hidePivotSlide=function(){"use strict";if(this.pivotSlideComponent&&this.onExtraSlide){this.pivotSlideComponent.setProps({visible:false});j.removeClass(this.stageWrapper,"_3tvf");}this.onExtraSlide=false;};xb.prototype.logImpressionDetailsForPhoto=function(){"use strict";var yb=[].concat(l.scry(db('fbPhotoSnowliftTagList'),'input.photoImpressionDetails'),l.scry(db('fbPhotoSnowliftFeedback'),'input.photoImpressionDetails'));if(yb.length===0)return;var zb={};for(var ac=0;ac=2&&this._uriStack[zb-2]==yb.getQualifiedURI().toString())this._uriStack.pop();var ac=this.stream.getCursorForURI(yb.getUnqualifiedURI().toString());if(ac){var bc=this.stream.getRelativeMovement(ac);this.page(bc,true);ba.transitionComplete(false);return true;}if(this.isOpen){ba.transitionComplete(true);this.close();return true;}this.transitionHandlerRegistered=false;return false;};xb.prototype.recacheData=function(){"use strict";if(!this.loadingStates.html){var yb=this.stream.getCurrentHtml();for(var zb in yb){yb[zb]=gb(db(zb).childNodes);l.empty(db(zb));}}};xb.prototype.reloadIfTimeout=function(){"use strict";if(!r.hasLoaded(this.image)){var yb=this.makeNewImage(this.image.src,true);o.listen(yb,'load',this.useImage.bind(this,yb,null,true));this._log(yb.src);}};xb.prototype.useImage=function(yb,zb,ac){"use strict";if(ac&&r.hasLoaded(this.image))return;l.replace(this.image,yb);this.image=yb;this.adjustStageSize(zb);};xb.prototype.makeNewImage=function(yb,zb){"use strict";if(this.imageLoadingTimer){clearTimeout(this.imageLoadingTimer);this.imageLoadingTimer=null;}else if(!zb)this.imageRefreshTimer=setTimeout(this.reloadIfTimeout.bind(this),xb.LOADING_TIMEOUT);var ac=l.create('img',{className:'spotlight',alt:''});ac.setAttribute('aria-describedby','fbPhotosSnowliftCaption');ac.setAttribute('aria-busy','true');var bc=function(){clearTimeout(this.imageRefreshTimer);this.image.setAttribute('aria-busy','false');this.setLoadingState(this.STATE_IMAGE_PIXELS,false);setTimeout((function(){if(this.isOpen){this.adjustStageSize();this.adjustForNewData();}}).bind(this),0);}.bind(this);o.listen(ac,'load',bc);this._log(yb);ac.src=yb;return ac;};xb.prototype.switchImage=function(yb,zb,ac){"use strict";j.hide(this.image);j.hide(this.errorBox);this.setLoadingState(this.STATE_IMAGE_PIXELS,true);var bc=this.stream&&this.stream.getCurrentImageData();if(bc){ga.addPhotoView(bc.info,this.shouldShowHiRes(bc),this.fullscreen&&q.isFullScreen());if(this._showHover){var cc=this.stream.getCurrentExtraData();if(cc)na.logImageImpression('snowlift',String(this.stream.getCursor()),Object.keys(cc.tagRects));}}this.useImage(this.makeNewImage(yb,false),zb,false);if(ac)this.stream.preloadImages(this.shouldShowHiRes.bind(this));if(!this._isZoomOn&&this._isZoomAvailable(bc)){ga.addPanoramaImpression();var dc=new bb(this.stage.clientWidth,this.stage.clientHeight);this._displayZoomInButton(dc);}else if(this._hasZoomCapability)j.hide(this.showZoomInButton);if(this._isZoomOn)this.switchIntoZoomedImage();g.inform('PhotoSnowlift.SWITCH_IMAGE');};xb.prototype._conditionDisplayZoomInButton=function(){"use strict";if(!this._hasZoomCapability)return;if(this._isZoomAvailable()){var yb=new bb(this.stage.clientWidth,this.stage.clientHeight);this._displayZoomInButton(yb);}else j.hide(this.showZoomInButton);};xb.prototype._displayZoomInButton=function(yb){"use strict";var zb=parseInt(this.image.style.height,10),ac=(yb.y-zb)/2;if(ac>=xb.ZOOM_BUTTON_TOP_PAD+xb.ZOOM_BUTTON_BOT_PAD+xb.ZOOM_BUTTON_HEIGHT){var bc=ac-xb.ZOOM_BUTTON_HEIGHT-xb.ZOOM_BUTTON_TOP_PAD;ua.set(this.showZoomInButton,'bottom',bc+'px');}else ua.set(this.showZoomInButton,'bottom','60px');j.show(this.showZoomInButton);};xb.prototype._isZoomAvailable=function(yb){"use strict";if(typeof yb==="undefined")yb=this.stream&&this.stream.getCurrentImageData();if(!this._hasZoomCapability||!yb||!yb.originalDimensions)return false;var zb=new bb(this.stage.clientWidth,this.stage.clientHeight),ac=yb.originalDimensions,bc=ac.x/ac.y,cc=Math.min(zb.y*bc,ac.x);if(!isNaN(bc)&&bc>2&&ac.y>xb.MIN_PANORAMA_Y&&zb.x*xb.MIN_PANO_TO_STAGE_RATIOtb){var bc={tagPhoto:p._("Tag photo"),doneTagPhoto:p._("Done Tagging"),addLocation:p._("Add Location"),editPhoto:p._("Edit")};for(var cc=0;ccz)g.addClass(y,t);for(var ba=this.$TimelineNavLight1.length-1;ba>1;ba--)if(this.$TimelineNavLight1[ba].offsetLeft+this.$TimelineNavLight1[ba].offsetWidth>z){h.remove(this.$TimelineNavLight1[ba]);}else break;g.removeClass(j.byClass(y,s),s);o.subscribe('Medley/transitionToSection',function(ca,da){this.$TimelineNavLight3(da.slice(k.PREFIX_MEDLEY.length));}.bind(this));n.register(m.COVER_NAV,this);}x.prototype.handleTabChange=function(y){"use strict";this.$TimelineNavLight3(y);};x.prototype.$TimelineNavLight3=function(y){"use strict";this.$TimelineNavLight0&&g.removeClass(this.$TimelineNavLight0,r);this.$TimelineNavLight1.some(function(z){var aa=l.collectionTabKeyToAppTabKey[y]||y;if(z.getAttribute('data-tab-key')===aa){g.addClass(z,r);this.$TimelineNavLight0=z;return true;}}.bind(this));};e.exports=x;},null); __d("TimelineProfilePicConfig",["fbt"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();var h={loading:'timeline/profile_pic/loading',success:'timeline/profile_pic/success',leavingMessage:g._("Your profile picture is still uploading, are you sure you want to leave?")};e.exports=h;},null); __d("TimelineProfilePic",["Arbiter","CSS","Dialog","DOM","HTML","TimelineProfilePicConfig","Run","$","ge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){b.__markCompiled&&b.__markCompiled();var p;q.init=function(r,s){"use strict";q.destroyInstance();p=new q(r||'fbProfileCover',s||'.profilePicThumb');};function q(r,s){"use strict";this.$TimelineProfilePic0=n(r);this.$TimelineProfilePic1=s;this.$TimelineProfilePic2=[g.subscribe(l.loading,this.startLoading.bind(this)),g.subscribe(l.success,this.onUploadSuccess.bind(this))];m.onBeforeUnload(this.onBeforeUnload.bind(this));m.onLeave(this.destroy.bind(this));}q.prototype.$TimelineProfilePic3=function(r){"use strict";this.$TimelineProfilePic4=r;h.conditionClass(this.$TimelineProfilePic0,'profilePicLoading',r);};q.prototype.destroy=function(){"use strict";this.$TimelineProfilePic2.forEach(function(r){r.unsubscribe();});this.$TimelineProfilePic2=[];p=null;};q.prototype.startLoading=function(r,s){"use strict";this.$TimelineProfilePic3(!!s.isLoading);};q.prototype.onUploadSuccess=function(r,s){"use strict";this.$TimelineProfilePic3(false);if(!s.newPic)return;var t=i.getCurrent();if(t)t.hide();var u=s.newPic;j.replace(j.find(this.$TimelineProfilePic0,this.$TimelineProfilePic1),typeof u==='string'?k(u):u);if(typeof(s.profileId)!==(void 0)&&typeof(s.headerPicURL)!==(void 0)){var v=o('profile_pic_header_'+s.profileId);if(v)v.src=s.headerPicURL;}var w=o('fbProfilePicSelector');if(w)h.removeClass(w,'fbTimelineNullProfilePicSelector');};q.prototype.onBeforeUnload=function(){"use strict";if(p===this&&this.$TimelineProfilePic4)return l.leavingMessage;};q.destroyInstance=function(){"use strict";p&&p.destroy();};e.exports=q;},null); __d("TimelineURI",["BizSiteIdentifier.brands","BusinessURI.brands","ProfileTabConst","TimelineAppSectionConstants","URI","goURI"],function(a,b,c,d,e,f,g,h,i,j,k,l){b.__markCompiled&&b.__markCompiled();var m={parseURI:function(n){n=k(n);var o=n.getQueryData(),p=n.getPath(),q=p.split('/').slice(1);if(q[0]=='people'||q[0]=='pages')q=q.slice(2);var r=o.sk||q[1]||i.TIMELINE;if(r==i.WALL)r=i.TIMELINE;var s=null,t=null;if(r==i.TIMELINE){t=parseInt(q[2],10)||null;s=parseInt(q[3],10)||null;}return {path:p,id:o.id||q[0],key:r,viewas:o.viewas?o.viewas:0,filter:o.filter?o.filter:null,year:t,month:s,friendship:!!o.and};},goToProfileID:function(n){if(g.isBizSite()){l(h('/profile.php').addQueryData('id',n),true);}else l(k('/'+n),true);},getTabKeyFromURI:function(n){var o=m.getSectionKeyFromURI(n);return j.collectionTabKeyToAppTabKey[o]||o;},getSectionKeyFromURI:function(n){return n.getQueryData().sk||n.getPath().split('/')[2];},getVanityFromURI:function(n){if(n.getQueryData().id)return n.getQueryData.id;return n.getPath().split('/')[1];}};e.exports=m;},null); __d("legacy:TimelineCover",["TimelineCover"],function(a,b,c,d){b.__markCompiled&&b.__markCompiled();a.TimelineCover=b('TimelineCover');},3); __d("TypeaheadSubmitOnSelect",["Form","copyProperties"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();function i(j){"use strict";this._typeahead=j;}i.prototype.enable=function(){"use strict";this._subscription=this._typeahead.subscribe('select',function(){var j=this._typeahead.getCore().getElement().form;if(j)j.getAttribute('rel')=='async'?g.bootstrap(j):j.submit();}.bind(this));};i.prototype.disable=function(){"use strict";this._typeahead.unsubscribe(this._subscription);this._subscription=null;};h(i.prototype,{_subscription:null});e.exports=i;},null); __d("legacy:SubmitOnSelectTypeaheadBehavior",["TypeaheadSubmitOnSelect"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();if(!a.TypeaheadBehaviors)a.TypeaheadBehaviors={};a.TypeaheadBehaviors.submitOnSelect=function(h){h.enableBehavior(g);};},3);