if (self.CavalryLogger) { CavalryLogger.start_js(["3+mXn"]); } __d("FollowRequestResultEnum",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={REVERT:"revert"};}),null); __d("SeeFirstNuxEvents",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={SWITCHER_NUX_IMP:"switcher_nux_imp",SEE_FIRST_SELECTED:"see_first_selected",XOUT:"xout",NOT_NOW:"not_now",IMP:"imp",ENTER_DIALOG:"enter_dialog",BATCH_SEE_FIRST_SELECTED:"batch_see_first_selected"};}),null); __d('BrowseTopFiltersFullWidth',['cx','Arbiter','CSS','NavigationMessage','SubscriptionsHandler'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j=/(facebook\.com\/(search|hashtag|topic)\/)/,k={init:function l(){c('CSS').addClass(document.body,"_4dik");i=new (c('SubscriptionsHandler'))();i.addSubscriptions(c('Arbiter').subscribe(c('NavigationMessage').NAVIGATION_FIRST_RESPONSE,this.cleanup));c('Arbiter').inform('browse_top_filters_full_width_displayed');},cleanup:function l(){i&&i.release();if(!window.location.href.match(j))c('CSS').removeClass(document.body,"_4dik");}};f.exports=k;}),null); __d("XFollowPrivacyNuxLogViewAsyncController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/follow\/follow_privacy\/nux\/log\/view\/",{});}),null); __d("XPubcontentChainedSuggestionsController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/pubcontent\/chained_suggestions\/",{pageid:{type:"String"},profileid:{type:"Int"},eh:{type:"Bool",defaultValue:false},friendid:{type:"Int"}});}),null); __d('SubscribeButton',['Arbiter','AsyncRequest','Button','CSS','Event','TooltipData','XFollowPrivacyNuxLogViewAsyncController','XPubcontentChainedSuggestionsController'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={SUBSCRIBED:'FollowingUser',UNSUBSCRIBED:'UnfollowingUser',_enable:function i(j){c('Button').setEnabled(j,true);c('TooltipData').remove(j);},_disable:function i(j,k){c('Button').setEnabled(j,false);if(k)c('TooltipData').set(j,k);},init:function i(j,k,l,m,n,o,p,q,r,s){var t=!(r===undefined||r===null);if(t&&!p&&!q)h._disable(k,r);c('Event').listen(k,'click',function(){c('Arbiter').inform(h.SUBSCRIBED,{profile_id:m,suppress:true});if(s){s.show();var u=c('XFollowPrivacyNuxLogViewAsyncController').getURIBuilder().getURI();new (c('AsyncRequest'))(u).send();}});c('Arbiter').subscribe(h.SUBSCRIBED,function(u,v){if(m==v.profile_id){if(!n)l.suppressNextMouseEnter&&l.suppressNextMouseEnter();if(t){if(typeof v.connected!=='undefined')p=v.connected;if(p||q)h._enable(k);}j.swap();if(o===true&&v.chaining!==false){var w=c('XPubcontentChainedSuggestionsController').getURIBuilder().setInt('profileid',m).getURI();new (c('AsyncRequest'))().setURI(w).send();}}});c('Arbiter').subscribe(h.UNSUBSCRIBED,function(u,v){if(m==v.profile_id){j.unswap();l.hideFlyout&&l.hideFlyout();if(t){if(typeof v.connected!=='undefined')p=v.connected;if(!p&&!q)h._disable(k,r);}c('Arbiter').inform('SubMenu/Reset');}});},initSubscribe:function i(j,k){c('Event').listen(j,'click',function(){setTimeout(c('Arbiter').inform.bind(c('Arbiter'),h.SUBSCRIBED,{profile_id:k}),0);});},initUnsubscribe:function i(j,k){c('Event').listen(j,'click',function(){setTimeout(c('Arbiter').inform.bind(c('Arbiter'),h.UNSUBSCRIBED,{profile_id:k}),0);});},initSubscribeMenuItem:function i(j,k,l){c('CSS').hide(k);this._initMenuItem(j,k,l);},initUnsubscribeMenuItem:function i(j,k,l){c('CSS').hide(j);this._initMenuItem(j,k,l);},_initMenuItem:function i(j,k,l){this.initSubscribe(j,l);this.initUnsubscribe(k,l);c('Arbiter').subscribe(h.SUBSCRIBED,function(m,n){c('CSS').hide(j);c('CSS').show(k);});c('Arbiter').subscribe(h.UNSUBSCRIBED,function(m,n){c('CSS').hide(k);c('CSS').show(j);});}};f.exports=h;}),null); __d("XFeedSeeFirstNuxController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/feed\/control\/see_first\/nux\/",{});}),null); __d('ProfileHoverButton',['csx','cx','Arbiter','AsyncRequest','CSS','DOM','DOMQuery','Event','FeedBlacklistButton','FollowRequestResultEnum','MenuStaticItem','ProfileSubFollowStatus','Run','SeeFirstNuxEvents','SubscribeButton','SubscriptionsHandler','XFeedSeeFirstNuxController'],(function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=1;function k(l,m,n,o){'use strict';this.$ProfileHoverButton1=l;this.$ProfileHoverButton2=m;this.$ProfileHoverButton3=o;this.$ProfileHoverButton4=n;this.$ProfileHoverButton5=null;this.$ProfileHoverButton6=new (c('SubscriptionsHandler'))();this.$ProfileHoverButton2.subscribe('itemclick',function(p,q){if(q.item instanceof c('MenuStaticItem'))return;var r=q.item.getValue(),s=c('DOMQuery').scry(this.$ProfileHoverButton2.getRoot(),"._usu");if(s&&s.length>0)s=s[0];var t=c('DOMQuery').scry(this.$ProfileHoverButton2.getRoot(),"._usv");if(t)t=t[0];if(r==='unfollow'){c('Arbiter').inform(c('SubscribeButton').UNSUBSCRIBED,{profile_id:this.$ProfileHoverButton3.id});c('Arbiter').inform(c('FeedBlacklistButton').BLACKLIST,{profile_id:this.$ProfileHoverButton3.id});if(this.$ProfileHoverButton4)this.$ProfileHoverButton4.hide();if(s){c('CSS').addClass(s,'hidden_elem');c('CSS').addClass(t,'hidden_elem');}}else{if(r===c('ProfileSubFollowStatus').SEE_FIRST){s&&c('CSS').removeClass(s,'hidden_elem');t&&c('CSS').removeClass(t,'hidden_elem');}else{s&&c('CSS').addClass(s,'hidden_elem');t&&c('CSS').addClass(t,'hidden_elem');}this.setSelected(r);if(r===c('ProfileSubFollowStatus').SEE_FIRST&&this.$ProfileHoverButton4){this.$ProfileHoverButton4.hide();this.logNux(c('SeeFirstNuxEvents').SEE_FIRST_SELECTED);}}}.bind(this));this.$ProfileHoverButton6.addSubscriptions(c('Arbiter').subscribe(c('SubscribeButton').SUBSCRIBED,this.setSelected.bind(this,c('ProfileSubFollowStatus').REGULAR_FOLLOW)));this.$ProfileHoverButton6.addSubscriptions(c('Arbiter').subscribe(c('FollowRequestResultEnum').REVERT,this.handleResponse.bind(this)));if(this.$ProfileHoverButton4){this.$ProfileHoverButton4.show();this.logNux(c('SeeFirstNuxEvents').IMP);this.$ProfileHoverButton6.addSubscriptions(c('Event').listen(c('DOM').find(this.$ProfileHoverButton4.getRoot(),"._50zy"),'click',this.logNux.bind(this,c('SeeFirstNuxEvents').XOUT)));}c('Run').onLeave(this.cleanUp.bind(this));}k.prototype.logNux=function(event){'use strict';var l=c('XFeedSeeFirstNuxController').getURIBuilder().getURI();new (c('AsyncRequest'))(l).setData({event:event,id:this.$ProfileHoverButton3.id}).send();};k.prototype.getButtons=function(){'use strict';return c('DOM').scry(this.$ProfileHoverButton1,"._3oz-");};k.prototype.getSelected=function(){'use strict';var l=this.getButtons(),m=null;l.forEach(function(n){var o=n.getAttribute('data-status');if(c('CSS').matchesSelector(n,"._52-0"))m=o;});return m;};k.prototype.setSelected=function(l){'use strict';this.$ProfileHoverButton5=this.getSelected();var m=this.getButtons();m.forEach(function(n){var o=n.getAttribute('data-status');if(o===l){c('CSS').addClass(n,"_52-0");}else c('CSS').removeClass(n,"_52-0");});this.$ProfileHoverButton2.forEachItem(function(n){if(!n.getValue)return;var o=n.getValue();if(o==='unfollow')return;var p=n.getRoot();if(o===l){c('CSS').addClass(p,"_52-0");}else c('CSS').removeClass(p,"_52-0");});};k.prototype.handleResponse=function(event,l){'use strict';if(l.id!==this.$ProfileHoverButton3.id||l.location!==j)return;if(event===c('FollowRequestResultEnum').REVERT)this.revert();};k.prototype.revert=function(){'use strict';if(this.$ProfileHoverButton5===null)return;this.setSelected(this.$ProfileHoverButton5);};k.prototype.cleanUp=function(){'use strict';this.$ProfileHoverButton6&&this.$ProfileHoverButton6.release();this.$ProfileHoverButton6=null;this.$ProfileHoverButton1=null;this.$ProfileHoverButton2=null;this.$ProfileHoverButton3=null;};f.exports=k;}),null); __d('TimelineCoverCollapse',['$','Arbiter','DOMDimensions','Style','TidyArbiter','getViewportDimensions'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();g.collapse=function(h,i){i--;var j=c('getViewportDimensions')().height,k=c('DOMDimensions').getDocumentDimensions().height,l=j+i;if(k<=l)c('Style').set(c('$')('globalContainer'),'min-height',l+'px');window.scrollBy(0,i);c('TidyArbiter').inform('TimelineCover/coverCollapsed',i,c('Arbiter').BEHAVIOR_STATE);};}),null); __d('FacebarPlaceholderShortcut',['KeyEventController','Run','setTimeoutAcrossTransitions'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){'use strict';this._input=i;this._listener=null;}h.prototype.enable=function(){'use strict';this._registerListener();};h.prototype._registerListener=function(){'use strict';this._listener&&this._listener.remove();this._listener=c('KeyEventController').registerKey('SLASH',this._handleKeydown.bind(this));c('Run').onLeave(function(){c('setTimeoutAcrossTransitions')(this._registerListener.bind(this),0);}.bind(this));};h.prototype.disable=function(){'use strict';this._listener&&this._listener.remove();this._listener=null;};h.prototype._handleKeydown=function(i){'use strict';this._input.focus();return false;};f.exports=h;}),null); __d("XFacebarBootloadController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/typeahead\/search\/facebar\/bootload\/",{placeholder_id:{type:"String"}});}),null); __d('FacebarBootloader',['AsyncRequest','BanzaiODS','CSS','Event','FacebarPlaceholderShortcut','Run','SubscriptionsHandler','XFacebarBootloadController','getActiveElement'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h='facebar_bootloader',i=h+'_',j={isRequested:false,isFocused:false,isInitialized:false,init:function k(l,m,n,o){this.reset();this.subscriptions=new (c('SubscriptionsHandler'))();this.placeholder=n;this.searchInput=l;this.shortcutHandler=new (c('FacebarPlaceholderShortcut'))(l);this.loadingIndicator=m;this.shortcutHandler.enable();this.subscriptions.addSubscriptions(c('Event').listen(l,'focus',function(){this.requestSearch();this.showLoadingIndicator();}.bind(this)),c('Event').listen(n,'mouseover',this.requestSearch.bind(this)));if(o)this.subscriptions.addSubscriptions(c('Event').listen(window,'load',this.requestSearch.bind(this)));c('Run').onUnload(this.reset.bind(this));this.isInitialized=true;if(l.value||c('getActiveElement')()==l){this.requestSearch();this.showLoadingIndicator();}},showLoadingIndicator:function k(){if(this.loadingIndicator)c('CSS').show(this.loadingIndicator);},reset:function k(){this.subscriptions&&this.subscriptions.release();this.shortcutHandler&&this.shortcutHandler.disable();this.searchInput=this.subscriptions=this.shortcutHandler=null;this.loadingIndicator=null;this.isRequested=false;this.isFocused=false;this.isInitialized=false;},requestSearch:function k(){if(c('getActiveElement')()==this.searchInput&&!this.isFocused){this.isFocused=true;this.focusTime=Date.now();}if(this.isRequested||!this.isInitialized)return;this.isRequested=true;var l=c('XFacebarBootloadController').getURIBuilder().setString('placeholder_id',this.placeholder.getAttribute('id')).getURI(),m=new (c('AsyncRequest'))();m.setURI(l).setMethod('GET').setReadOnly(true).setAllowCrossPageTransition(true).setErrorHandler(function(n){c('BanzaiODS').bumpEntityKey(h,i+'request_failed');if(n&&n.errorSummary){c('BanzaiODS').bumpEntityKey(h,i+'request_failed_'+n.errorSummary);}else c('BanzaiODS').bumpEntityKey(h,i+'request_failed_no_error_summary');this.isRequested=false;}).send();},setFocus:function k(l,m,n){if(!this.searchInput)return;c('BanzaiODS').bumpEntityKey(h,i+'response_arrived');if(this.searchInput.value||this.isFocused){l.getCore().isFocused=true;l.getCore().input.setValue(n.fromString(this.searchInput.value),true);l.getCore().setStartTime(this.focusTime);m.focus();m.setSelection({length:this.searchInput.selectionEnd-this.searchInput.selectionStart,offset:this.searchInput.selectionStart});m.togglePlaceHolder&&m.togglePlaceholder();}this.reset();}};f.exports=j;}),null); __d('FacebarStructuredFragment',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(k,l){if(k&&l){return k.toLowerCase()==l.toLowerCase();}else return !k&&!l;}var i=new RegExp('['+'\\u0590-\\u07bf'+'\\u08a0-\\u08ff'+'\\ufb1d-\\ufb4f'+'\\ufb50-\\ufefc'+'\\u200e-\\u200f\\u202a-\\u202e'+']');function j(k){'use strict';this._text=String(k.text);this._uid=k.uid?String(k.uid):null;this._type=k.type?String(k.type):null;this._typeParts=null;this._isLocal=Boolean(k.isLocal);this._categoryName=k.categoryName?k.categoryName:null;}j.prototype.getText=function(){'use strict';return this._text;};j.prototype.getUID=function(){'use strict';return this._uid;};j.prototype.getType=function(){'use strict';return this._type;};j.prototype.getTypePart=function(k){'use strict';return this._getTypeParts()[k];};j.prototype.getLength=function(){'use strict';return this._text.length;};j.prototype.isType=function(k){'use strict';for(var l=0;l0)return m[0].getCategoryName();return null;};l.prototype.endsOnType=function(m){'use strict';var n=arguments,o=this._fragments[this._fragments.length-1];return !!o&&!o.isWhitespace()&&o.isType.apply(o,n);};l.prototype.isEmptyOrWhitespace=function(){'use strict';return !this._fragments.some(function(m){return !m.isWhitespace();});};l.prototype.hasRTL=function(){'use strict';return this._fragments.some(function(m){return m.hasRTL();});};l.prototype.isEmpty=function(){'use strict';return this.getLength()===0;};l.prototype.getFragment=function(m){'use strict';return this._fragments[m>=0?m:this._fragments.length+m];};l.prototype.getCount=function(){'use strict';return this._fragments.length;};l.prototype.getLength=function(){'use strict';return this._fragments.reduce(function(m,n){return m+n.getLength();},0);};l.prototype.toStruct=function(){'use strict';return this._fragments.map(function(m){return m.toStruct();});};l.prototype.toArray=function(){'use strict';return this._fragments.slice();};l.prototype.toString=function(){'use strict';return this._fragments.map(function(m){return m.getText();}).join('');};l.prototype.getHash=function(){'use strict';if(this._hash===null)this._hash=this._fragments.map(function(m){if(m.getUID()){return '[['+m.getHash(1)+']]';}else return m.getText();}).join('');return this._hash;};l.fromStruct=function(m){'use strict';return new l(i(m));};l.fromString=function(m){'use strict';return new l([j(m)]);};f.exports=l;}),null); __d('FacebarNavigation',['csx','Arbiter','DOMQuery','FacebarBootloader','FacebarStructuredText','Input','QueryHistory','URI'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=null,j=null,k=null,l=false,m=true,n=false;function o(r,s){if(!n)k=r;n=false;l=s;m=false;p();}function p(){if(m){return;}else if(j){l&&j.pageTransition();j.setPageQuery(k);m=true;}else if(i&&k&&!c('Input').getValue(i))c('Input').setValue(i,k.structure.toString()+' ');i&&i.blur();}c('Arbiter').subscribe('page_transition',function(r,s){if(!q.isTopControlTransition(s.uri)&&!q.isTimelineAbout(s.uri))o(c('QueryHistory').get(s.uri),true);});c('Arbiter').subscribe('save_facebar_query',function(r,s){n=true;});var q={registerInput:function r(s){i=c('DOMQuery').scry(s,"._586f")[0];if(i==null)i=c('DOMQuery').scry(s,"._1frb")[0];p();},registerBehavior:function r(s){j=s;p();},setPageQuery:function r(s){c('QueryHistory').set(c('URI').getNextURI(),s);if(!(s.structure instanceof c('FacebarStructuredText')))s.structure=c('FacebarStructuredText').fromStruct(s.structure);o(s,false);c('FacebarBootloader').requestSearch();},isTopControlTransition:function r(s){return String(s.getPath()).startsWith('/search/')&&s.getQueryData().ref==='top_filter'&&!s.getQueryData().hard_refresh;},isTimelineAbout:function r(s){return /\/about$/.test(s.getPath())&&!s.getQueryData().hard_refresh;}};f.exports=q;}),null);