/*!CK:2570184676!*//*1403492856,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["yIQQ1"]); } __d("OGCollectionAddCuration",["AsyncRequest","DataStore","DOM","copyProperties","tidyEvent"],function(a,b,c,d,e,f,g,h,i,j,k){var l='OGCollectionAddCuration';function m(n,o,p,q,r,s){this._container=n;this._control=o;this._itemID=p;this._surface=r;this._display=s.display;if(o)k([o.subscribe('reload',this.reloadControl.bind(this))]);if(q)h.set(String(q),l,this);if(p)h.set(String(p),l,this);}j(m,{handleDeleteAction:function(n){var o=h.get(String(n),l);if(o)o.reloadControl();},handleAddItemSuccess:function(n,o,p){var q=h.get(String(n),l);h.set(String(o),l,q);q.insertMenuIntoDialog(p);},hideControl:function(n){var o=h.get(String(n),l);o.hideControl();},insertControl:function(n,o){var p=h.get(String(n),l);p.replaceControl(o);},reloadControl:function(n){var o=h.get(String(n),l);if(o)o.reloadControl();}});j(m.prototype,{hideControl:function(){this._control.hide();},reloadControl:function(){var n=new g('/ajax/collections/add_curation').setData({itemid:this._itemID,surface:this._surface,forceedit:true,display:this._display}).setHandler(this._handleAddCurationResponse.bind(this));n.send();},insertMenuIntoDialog:function(n){this._control.insertMenuIntoDialog(n);},replaceControl:function(n){i.replace(this._container,n);},getMenuControl:function(){return this._control;},_handleAddCurationResponse:function(n){this._control.destroy();i.replace(this._container,n.payload);}});e.exports=m;},null); __d("OGCollectionAddObject",["AsyncRequest","CSS","DOM","DOMQuery","Form","JSLogger","Parent","TidyArbiterMixin","TimelineSection","copyProperties","csx","cx","ge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=l.create('og_collection_add_object'),u=p({ADD_PLACEHOLDER:'OGCollectionAddObject/addPlaceholder',NEW_ITEM:'OGCollectionAddObject/newItem',PLACEHOLDER:'OGCollectionAddObject/placeholder',REMOVE_PLACEHOLDER:'OGCollectionAddObject/removePlaceholder',init:function(v,w,x,y,z){o.callWithSection(z,function(aa){this.initImpl(v,w,x,y,aa.getNode(),z,aa.id);}.bind(this));},initInReport:function(v,w,x,y){var z=m.byClass(y,"_w8_");this.initImpl(v,w,x,y,z,null,null);},initImpl:function(v,w,x,y,z,aa,ba){var ca=j.scry(z,"._620")[0];if(!ca){t.error('grid_not_found',{collection_id:aa,section:ba,csx:'.public/fbTimelineCollectionGrid/root'});return;}w.subscribe('select',function(da,ea){if(!ea.selected.uid||ea.selected.type.indexOf('disabled')!=-1)return;u.inform(u.ADD_PLACEHOLDER,aa);var fa=ca.nextSibling,ga=null;if(fa&&h.hasClass(fa,"_3t3")){h.hide(ca.lastChild);ga=ca.lastChild;}var ha=i.prependContent(ca,x.cloneNode(true))[0];u.inform(u.PLACEHOLDER,{grid:ca});var ia=p({action:'add',mechanism:'typeahead'},k.serialize(y));ha.setAttribute('data-item',ia.item_id);new g().setURI(v).setData(ia).setRelativeTo(ca).setErrorHandler(function(ja){i.remove(ha);u.inform(u.REMOVE_PLACEHOLDER,aa);ga&&h.show(ga);}).setHandler(function(ja){ga&&i.remove(ga);}).setFinallyHandler(function(ja){u.inform(u.PLACEHOLDER,{grid:ca});}).send();});},replaceItem:function(v,w,x){var y=i.scry(v,'div[data-obj="'+w+'"]')[0];if(y){var z=m.byClass(y,"_30f");if(z)u.inform(u.REMOVE_PLACEHOLDER,z.id);i.remove(y.parentNode);}var aa=i.find(v,'[data-item="'+w+'"]'+"._gx9");i.replace(aa,x);this.inform(u.NEW_ITEM,{grid:v,newItem:x});},prependItem:function(v,w){var x=j.scry(s(v),"._620")[0];i.prependContent(x,w);this.inform(u.NEW_ITEM,{grid:x,newItem:w});}},n);e.exports=u;},null); __d("OGCollectionBatchAddCuration",["AsyncRequest","Event","OGCollectionAddCuration","Parent","Run"],function(a,b,c,d,e,f,g,h,i,j,k){var l={},m;function n(p){for(var q=0;qlc)hc-=ic.unfold(hc-lc);return hc;}function jb(){var hc=fa.cloneNode(true);hc.id='';var ic=new l();ic.init(k.scry(hc,'div.ego_unit'));var jc=true;ic.forEach(function(kc){if(jc){jc=false;}else k.remove(kc);});j.addClass(hc,'fixed_elem');return hc;}function kb(){ja=undefined;if(!q.pageHasScrubber(la)){ob(ra);rb();}else if(xa){pb(fa,false);var hc=ya;ya&&k.remove(ya);ya=jb();if(hc)cc();ob(q.sidebarInitialized()&&na?va:ua);rb();if(!oa){var ic=q.getCurrentScrubber();if(ic)bc(ic.getRoot(),ic.getOffset());}oa&&oa.start();}else gc.adjustAdsToFit();}function lb(){if(ya){k.remove(ya);ya=null;}if(oa){oa.stop();oa=null;}if(nb()){j.conditionClass(fa,'fixed_elem',!xa);j.conditionClass(fa,"_22s",!q.pageHasScrubber(la));}else j.conditionClass(fa,'fixed_elem',!xa&&q.pageHasScrubber(la));}function mb(hc){var ic=t.getViewportDimensions().y,jc=q.getCurrentScrubber(),kc=jc?jc.getOffset():p.SCRUBBER_DEFAULT_OFFSET,lc=ic-kc-y;if(jc||nb())return ib(lc,jc,hc);}function nb(){return q.fixedAds();}function ob(hc){ia=Math.min(hc,ka.getCount());ka.forEach(function(ic,jc){pb(ic,jc>=ia);});pb(fa,ia===0);}function pb(hc,ic){j.conditionClass(hc,"_22r",ic);hc.setAttribute('aria-hidden',ic?'true':'false');}function qb(hc){var ic=k.find(ka.getUnit(hc),"div._4u8"),jc=ic.getAttribute('data-ad');return JSON.parse(jc).adid;}function rb(){tb();sb();}function sb(){var hc;if(ja!==undefined){hc=ka.getHoldoutAdIDsForSpace(ja,xb);}else hc=ka.getHoldoutAdIDsForNumAds(ia);if(hc)hc.forEach(ub);}function tb(){if(!za)return;for(var hc=ia-1;hc>=0;--hc){if(oa&&oa.isFixed()&&((hc!==0)||(ya&&!j.shown(ya))))continue;var ic=qb(hc);if(!za[ic])return;ub(ic);}}function ub(hc){if(!za[hc])return;var ic=k.create('iframe',{src:s('/ai.php').addQueryData({aed:za[hc]}),width:0,height:0,frameborder:0,scrolling:'no',className:'fbEmuTracking'});ic.setAttribute('aria-hidden','true');k.appendContent(fa,ic);delete za[hc];}function vb(hc){var ic=0;while(hc>0&&ic=0)ic++;}return ic;}function wb(hc){var ic=ka.getUnit(hc);if(!ic)return 0;return xb(ic);}function xb(hc){if(!hc.getAttribute(z))yb(hc);return parseInt(hc.getAttribute(z),10);}function yb(hc){hc.setAttribute(z,hc.offsetHeight);}function zb(){for(var hc=0;hc=ba)&&!j.hasClass(document.documentElement,'tinyViewport')&&(!oa||oa.isFixed())&&(!za||!za[qb(0)])&&!gc.intentShown()&&!qa)gc.loadAds(la);gc.adjustAdsToFit();},forceReloadAdsWithCallback:function(hc,ic){ma=ic;ga=k.getID(fa);gc.loadAds(la);},forceReloadAds:function(){gc.loadAds(la);},adjustAdsType:function(hc){if(hc!=na){j.conditionClass(fa,"_22q",!hc);j.conditionClass(fa,"_35q",!hc);ya&&j.conditionClass(ya,"_22q",!hc);ya&&j.conditionClass(ya,"_35q",!hc);na=hc;zb();gc.adjustAdsToFit();var ic=x('rightColContent');if(ic)j.conditionClass(ic,'fbTimelineWideRightCol',hc);}},displayAdsPoll:function(){var hc=-1;for(var ic=0;ic0){pb(ka.getUnit(hc-1),true);pb(ka.getUnit(hc),false);}},hideAdsPoll:function(){zb();gc.adjustAdsToFit();},adjustAdsToFit:function(){if(!fa||fb)return;fb=true;var hc;if(xa){hc=na?va:ua;if(oa&&ya){oa.handleScroll();if(oa.isFixed()){j.conditionShow(ya,wb(0)<=mb(1)&&!j.hasClass(document.documentElement,'tinyViewport'));}else ob(hc);rb();}}else{hc=na?ta:sa;var ic=mb(hc);if(typeof ic!=='undefined'){ja=ic;ob(vb(ic));rb();}}fb=false;},reset:function(){oa&&oa.stop();wa&&wa.cancel();ka=new l();na=false;fa=null;oa=null;wa=null;ca=0;xa=null;ya=null;la=null;pa=Infinity;da=false;ab&&i.unsubscribe(ab);ab=null;bb&&i.unsubscribe(bb);bb=null;cb&&i.unsubscribe(cb);db&&i.unsubscribe(db);eb&&i.unsubscribe(eb);cb=null;qa=false;gb.forEach(function(hc){hc.remove();});gb=[];hb&&hb.reset();}};e.exports=a.TimelineSideAds||gc;},null); __d("TimelineStickyHeader",["Animation","Arbiter","Bootloader","CSS","DOM","Style","TimelineController","TimelineURI","Vector","ViewportBounds","$","ge","queryThenMutateDOM"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=200,u=false,v=false,w,x,y,z,aa,ba,ca={},da={VISIBLE:'TimelineStickyHeader/visible',ADJUST_WIDTH:'TimelineStickyHeader/adjustWidth',init:function(ea){if(u)return;u=true;w=ea;x=k.find(ea,'div.name');y=k.find(ea,'div.actions');v=j.hasClass(ea,'fbTimelineStickyHeaderVisible');var fa=q('blueBar'),ga,ha=false;s(function(){if(fa.offsetTop&&!r('page_admin_panel')&&m.getCurrentKey()!==n.TIMELINE_KEY){ga=o.getElementDimensions(fa).y;ha=true;}},function(){if(ha){i.loadModules(["StickyController"],function(ia){new ia(ea,ga).start();});}else j.addClass(ea,'fixed_elem');s(function(){aa=ea.offsetTop;ba=ea.scrollHeight;},function(){z=p.addTop(function(){return v?aa+ba:0;});},'TimelineStickyHeader/init');m.register(m.STICKY_HEADER,da);},'TimelineStickyHeader/init');},reset:function(){u=false;v=false;w=null;x=null;y=null;ca={};z.remove();z=null;},toggle:function(ea){if(ea!==v){var fa=ea?aa-ba:aa,ga=ea?aa:aa-ba;l.set(w,'top',fa+'px');j.addClass(w,'fbTimelineStickyHeaderAnimating');var ha=k.getID(w);ca[ha]&&ca[ha].stop();ca[ha]=new g(w).from('top',fa).to('top',ga).duration(t).ondone(function(){ca[ha]=null;j.conditionClass(w,'fbTimelineStickyHeaderHidden',!ea);w.setAttribute('aria-hidden',ea?'false':'true');j.removeClass(w,'fbTimelineStickyHeaderAnimating');l.set(w,'top','');h.inform(da.VISIBLE,ea);}).go();v=ea;if(v)da.adjustWidth();}},adjustWidth:function(){h.inform(da.ADJUST_WIDTH,x,h.BEHAVIOR_STATE);},getRoot:function(){return w;},setActions:function(ea){if(u&&ea){k.setContent(y,ea);y=ea;}}};e.exports=a.TimelineStickyHeader||da;},null); __d("TimelineStickyHeaderNav",["Arbiter","ButtonGroup","CSS","DataStore","DOM","Event","Parent","SelectorDeprecated","Style","SubscriptionsHandler","TimelineConstants","TimelineController","TimelineLegacySections","URI","Vector","ge","tx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){var x=false,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja={},ka={},la=[],ma=false,na=[],oa=[],pa,qa=["January","February","March","April","May","June","July","August","September","October","November","December"];function ra(){var eb=n.getSelectorMenu(ca);pa.addSubscriptions(l.listen(eb,'click',sa),g.subscribe(q.SECTION_REGISTERED,wa));}function sa(event){var eb=m.byTag(event.getTarget(),'a'),fb=eb&&j.get(eb,'key');if(fb){r.stickyHeaderNavWasClicked(fb);r.navigateToSection(fb);event.prevent();}}function ta(eb,fb){var gb=n.getValue(fb);if(gb==='allStories')s.get(eb).expandSubSections();if(gb!=='activityLog')ua(fb);}function ua(eb){cb(eb,'highlights');cb(eb,'allStories');var fb=k.find(eb,'li.separator');i.conditionShow(fb,fb.previousSibling);}function va(eb){if(ha===eb&&fa[eb]&&!z.custom_subsection_menu){ab(eb);}else xa();r.adjustStickyHeaderWidth();}function wa(eb,fb){var gb=fb.period,hb=gb.parentKey;if(!hb)return;var ib=za(hb),jb=r.getCurrentScrubber(),kb=gb.scrubberKey,lb=jb?jb.getLabelForSubnav(hb,kb):lb=ya(kb);if(lb){fa[hb]=true;bb(ib,{key:kb,label:lb});va(hb);}}function xa(){aa.hideItem(da);}function ya(eb){var fb=eb.split('_');return qa[fb.pop()-1];}function za(eb){var fb=ea[eb];if(!fb){fb=ea[eb]=da.cloneNode(true);var gb=k.scry(fb,'li.activityLog a')[0];if(gb)gb.href=t(gb.href).addQueryData({key:eb});pa.addSubscriptions(n.listen(fb,'change',ta.bind(null,eb,fb)),l.listen(fb,'click',sa));}return fb;}function ab(eb){var fb=za(eb);k.insertAfter(da,fb);i.hide(da);for(var gb in ea){var hb=ea[gb];i.conditionShow(hb,hb===fb);}aa.showItem(da);}function bb(eb,fb){var gb=k.create('a',{href:'#',rel:'ignore',className:'itemAnchor',tabIndex:0},k.create('span',{className:'itemLabel fsm'},fb.label));gb.setAttribute('data-key',fb.key);gb.setAttribute('aria-checked',false);var hb=k.create('li',{className:'uiMenuItem uiMenuItemRadio uiSelectorOption'},gb);hb.setAttribute('data-label',fb.label);var ib=k.find(eb,'ul.uiMenuInner'),jb=k.create('option',{value:fb.key},fb.label),kb=k.find(eb,'select');if(fb.key==='recent'){k.prependContent(ib,hb);k.insertAfter(kb.options[0],jb);}else{k.appendContent(ib,hb);k.appendContent(kb,jb);}}function cb(eb,fb){var gb=k.scry(eb,'li.uiMenuItem');if(!gb)return;for(var hb=0;hb=0)i.show(ia);}},removeTimePeriod:function(eb){cb(ca,eb);},hideSectionMenu:function(){x&&i.hide(ca);}};e.exports=db;},null); __d("TimelineOGCollectionReportGrid",["CSS","OGCollectionAddObject"],function(a,b,c,d,e,f,g,h){var i={init:function(j,k){h.subscribe([h.NEW_ITEM,h.PLACEHOLDER],i.hideOverflowNodes.bind(null,j,k));},hideOverflowNodes:function(j,k,l,m){if(m.grid!=j)return;for(var n=0;ny)this.fold(z-y);m.register(m.SCRUBBER,this);m.scrubberHasLoaded(this);}p.prototype.reset=function(){"use strict";this._root=null;this._navKeys={};this._subNavKeys={};this._rollups={};this._rolledup={};};p.prototype.getRoot=function(){"use strict";return this._root;};p.prototype.getNav=function(q){"use strict";return this._navKeys[q];};p.prototype.getSubnav=function(q,r){"use strict";var s=this._subNavKeys[q];return s&&s[r];};p.prototype.getHeight=function(){"use strict";return this._root.offsetHeight;};p.prototype.getLabelForNav=function(q){"use strict";var r=this.getNav(q);return r&&h.getText(h.scry(r,'a')[0]);};p.prototype.getLabelForSubnav=function(q,r){"use strict";var s=this.getSubnav(q,r);return s&&h.getText(h.scry(s,'a')[0]);};p.prototype.fold=function(q){"use strict";return this._adjustFolding(q,true);};p.prototype.unfold=function(q){"use strict";return this._adjustFolding(q,false);};p.prototype.getOffset=function(){"use strict";return this.OFFSET+(g.hasClass(document.body,'hasVoiceBar')?26:0)+(g.hasClass('rightColContent','pagesTimelineRightColumn')?48:0);};p.prototype.updateSection=function(q,r){"use strict";if(!this._navKeys[q])return;var s=this._navKeys[q].getAttribute('data-rollup');if(this._currentRollup&&this._currentRollup!=s){g.removeClass(this._currentRollup,'selected');g.removeClass(h.scry(this._currentRollup,'ul')[0],'loaded');delete this._currentRollup;}if(s&&this._rolledup[s]){var t=this._rolledup[s];if(t.getAttribute('data-rollup')){this._currentRollup=t;g.addClass(this._currentRollup,'selected');g.addClass(h.scry(this._currentRollup,'ul')[0],'loaded');}}this._currentNav&&g.removeClass(this._currentNav,'selected');this._currentSubNav&&g.removeClass(this._currentSubNav,'selected');this._currentNav=null;this._currentSubNav=null;if(this._navKeys[q]){this._currentNav=this._navKeys[q];g.addClass(this._currentNav,'selected');if(this.decadesAreSelectable&&this._navKeys[r]){this._currentSubNav=this._navKeys[r];g.addClass(this._currentSubNav,'selected');}else if(r&&this._subNavKeys[q][r]){this._currentSubNav=this._subNavKeys[q][r];g.addClass(this._currentSubNav,'selected');}}};p.prototype._getRollupSize=function(q){"use strict";var r=this._currentNav,s=r&&r.getAttribute('data-rollup'),t=this.KEY_HEIGHT*(this._rollups[q].length-1);if(q==s){t+=this.SUBKEY_HEIGHT*h.scry(r,'li').length;t-=this.SUBKEY_HEIGHT*(this._rollups[q].length-1);}return t;};p.prototype._adjustFolding=function(q,r){"use strict";var s=q,t=Object.keys(this._rollups);while(q>0&&t.length){var u=t[r?'pop':'shift']();if(!r==!this._rolledup[u])continue;var v=this._getRollupSize(u);if(v<=0)continue;if(!r&&v>q)break;this[r?'_collapseRollup':'_expandRollup'](u);q-=v;}return s-q;};p.prototype._collapseRollup=function(q){"use strict";var r=this._rollups[q];if(!r||r.length<2||this._rolledup[q])return;var s=r[0].previousSibling,t=r[0],u=h.create('a',{href:t.firstChild.href,rel:'ignore',tabindex:'-1'},[q]),v=h.create('ul',{className:'clearfix'});for(var w=0;w