/*!CK:3843188166!*//*1403491434,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["q9sOj"]); } __d("ComposerXPages",["DOM","DOMScroll","URI","Event","ge"],function(a,b,c,d,e,f,g,h,i,j,k){var l={initScrollToComposer:function(m){var n=k('pagelet_timeline_recent');j.listen(m,'click',function(){this._scrollAndFocus(n);}.bind(this));},scrollToComposer:function(m){if(!i.getRequestURI().getQueryData().scroll_to_composer)return;j.listen(window,'load',function(){this._scrollAndFocus(m);}.bind(this));},_scrollAndFocus:function(m){h.scrollTo(m,500,false,false,0,function(){g.find(m,'textarea.input').focus();});}};e.exports=l;},null); __d("PagesLikeToast",["CSS","Event","ViewportBounds","cx","tidyEvent"],function(a,b,c,d,e,f,g,h,i,j,k){var l={setup:function(m){this._node=m.getNode();this._scrollListener=h.listen(window,'scroll',function(){var n=i.getTop();m.setOffset(n);g.conditionClass(this._node,"_3st4",this._node.getBoundingClientRect().top<=n);}.bind(this));k(this._scrollListener);},initCloseNodes:function(m){m.forEach(function(n){k(h.listen(n,'click',function(){g.removeClass(this._node,"_3st4");this._scrollListener.remove();}.bind(this)));},this);}};e.exports=l;},null); __d("PagesPostsSections",["Arbiter","CSS","DOM","DOMScroll","Event","PagesTimelineController","ScrollingPager","Vector","csx","queryThenMutateDOM","tidyEvent"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=120,s='PagesPostsSections/scrollListener';function t(u){"use strict";this.$PagesPostsSections0=u;this.$PagesPostsSections1={};this.$PagesPostsSections2=0;this.$PagesPostsSections3=0;for(var v=0;vr)break;if(this.$PagesPostsSections0[v].loaded)u=v;}if(u!=this.$PagesPostsSections3)this.$PagesPostsSections3=u;};t.prototype.removeSection=function(u,v){"use strict";var w=this.$PagesPostsSections1[v.section_key].index;this.$PagesPostsSections0[w].loaded=false;h.hide(this.$PagesPostsSections1[v.section_key].section);};e.exports=t;},null); __d("PagesTimelineChaining",["Arbiter","PageLikeButton","Parent","Style","UIPagelet","cx","tidyEvent"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n={_recentlyLikedPageIDs:{},container:null,init:function(o,p){this.container=o;if(!this._showChainSuggestions(p.pageID)){this.subscription=g.subscribe(h.LIKED,this.onLike.bind(this,p.pageID));m(this.subscription);}},onLike:function(o,p,q){if(q.profile_id===o&&i.byClass(q.target,"_5d_i")){this._recentlyLikedPageIDs[o]=true;this._showChainSuggestions(o);this.subscription.unsubscribe();this.subscription=null;}},displayCallback:function(o){o();var p=this.container.firstChild;if(p)j.set(this.container,'height',p.offsetHeight+'px');},_showChainSuggestions:function(o){if(!(o in this._recentlyLikedPageIDs))return false;k.loadFromEndpoint('PagesTimelineChainingPagelet',this.container,{pageID:o},{displayCallback:this.displayCallback.bind(this)});return true;}};e.exports=n;},null); __d("ProfileCoverEditControls",["ArbiterMixin","Event","mixin"],function(a,b,c,d,e,f,g,h,i){var j=i(g);for(var k in j)if(j.hasOwnProperty(k))m[k]=j[k];var l=j===null?null:j.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=j;function m(n,o,p,q){"use strict";this.root=n;this.save=o;this.cancel=p;this.input=q;h.listen(o,'click',function(){this.inform('save');}.bind(this));h.listen(p,'click',function(){this.inform('cancel');}.bind(this));}m.prototype.getSaveButton=function(){"use strict";return this.save;};m.prototype.getCancelButton=function(){"use strict";return this.cancel;};m.prototype.getInput=function(){"use strict";return this.input;};e.exports=m;},null); __d("PagesComposer",["Arbiter","Bootloader","ComposerXMarauderLogger","ComposerXStore","DOM","Parent","Run","$","csx","cx","getObjectValues","goURI"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s;function t(){i.logCompleted(s.id);}function u(w){if(w.hidePost){t();return;}if(w.redirect){var x=j.getAllForComposer(s.id);q(x).forEach(function(z){if(z.reset)z.reset(z);});r(w.redirect);t();return;}if(!w.streamStory){window.location.reload();return;}if(w.backdatedTime){h.loadModules(["PagesStoryPublisher"],function(z){z.publish(w);});t();return;}var y=v.renderStory(s,w.streamStory);g.inform('TimelineComposer/on_after_publish',y,g.BEHAVIOR_PERSISTENT);t();}var v={init:function(w){s=n(w);var x=g.subscribe('composer/publish',function(event,y){if(y.composer_id===s.id)u(y);});m.onLeave(x.unsubscribe.bind(x));},renderStory:function(w,x){var y=l.byClass(w,"_5onn");if(!y)return;var z=k.scry(y,"._5sem")[0],aa=k.prependContent(z,x)[0];h.loadModules(["Animation"],function(ba){new ba(aa).from('backgroundColor','#fff8dd').to('backgroundColor','#fff').duration(2000).ease(ba.ease.both).go();});return aa;}};e.exports=a.PagesComposer||v;},null); __d("legacy:UIPagelet",["UIPagelet"],function(a,b,c,d){a.UIPagelet=b('UIPagelet');},3); __d("CovercardArrow",["ContextualDialogArrow","CSS","DOMQuery","Locale","Style","csx","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=-45,o=45,p=12;if(j.isRTL()){n=-n;o=-o;}function q(s){"use strict";this._layer=s;}q.prototype.enable=function(){"use strict";this._layer.enableBehavior(g);var s=this._layer.getContentRoot();this._arrowWrapper=i.scry(s,"._7lh")[0];if(!this._arrowWrapper)return;this._arrowShadow=i.scry(this._arrowWrapper,"._7li")[0];if(!this._arrowShadow)return;var t=null;if(r(this._arrowWrapper))t=this._renderArrowWithRotate.bind(this);if(!t)return;if(j.isRTL())h.addClass(s,"_7lf");this._subscription=this._layer.subscribe('reposition',function(u,v){var w=v.getPosition()=='below';h.conditionClass(s,"_53ih",w);w&&t(v);});};q.prototype.disable=function(){"use strict";this._subscription&&this._subscription.unsubscribe();this._subscription=null;};q.prototype._calculateArrowOffset=function(s){"use strict";var t=g.getOffsetPercent(s),u=g.getOffset(s,t,this._layer),v=k.get(this._layer.getContentRoot(),'width');return parseInt(v,10)*(t/100)+u;};q.prototype._renderArrowWithRotate=function(s){"use strict";var t=i.scry(this._arrowWrapper,"._7lj")[0];if(!t)return;var u=r(this._arrowWrapper);if(!u)return;var v=this._calculateArrowOffset(s),w=p+v;if(j.isRTL())w=-w;this._arrowWrapper.style[u]='translate('+w+'px, -'+p+'px) '+'rotate('+o+'deg)';t.style[u]='rotate('+n+'deg) '+'translate('+(-w)+'px, 0px)';};function r(s){if(!s)s=document.body;var t=['transform','WebkitTransform','msTransform','MozTransform','OTransform'],u;while(u=t.shift())if(s.style[u]!==undefined)return u;return null;}e.exports=q;},null);