if (self.CavalryLogger) { CavalryLogger.start_js(["1TU2h"]); } __d("ProfileTimelineUITypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:ProfileTimelineUILoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:ProfileTimelineUILoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:ProfileTimelineUILoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setEventMetadata=function(a){this.$1.event_metadata=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setProfileID=function(a){this.$1.profile_id=a;return this};c.setRelationshipType=function(a){this.$1.relationship_type=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setUIComponent=function(a){this.$1.ui_component=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={event:!0,event_metadata:!0,profile_id:!0,relationship_type:!0,time:!0,ui_component:!0,vc:!0,weight:!0};e.exports=a}),null); __d("TidyArbiterMixin",["Arbiter","ArbiterMixin","Run"],(function(a,b,c,d,e,f){a={};Object.assign(a,b("ArbiterMixin"),{_getArbiterInstance:function(){this._arbiter||(this._arbiter=new(b("Arbiter"))(),b("Run").onLeave(function(){delete this._arbiter}.bind(this)));return this._arbiter}});e.exports=a}),null); __d("TidyArbiter",["TidyArbiterMixin"],(function(a,b,c,d,e,f){a=babelHelpers["extends"]({},b("TidyArbiterMixin"));e.exports=a}),null); __d("DoublyLinkedListMap",[],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(){this._head=null,this._tail=null,this._nodes={},this._nodeCount=0}var b=a.prototype;b.get=function(a){a=(a=this._nodes[a])!=null?a.data:a;return a?a:null};b.getIndex=function(a){var b=this._head;for(var c=0;b;b=b.next,c++)if(b.key===a)return c;return null};b._insert=function(a,b,c,d){c&&!this._nodes[c]&&(c=null);c&&this._nodes[c]?c=this._nodes[c]:c=d?this._head:this._tail;b={data:b,key:a,next:null,prev:null};c&&(this.remove(a),d?(b.prev=c.prev,c.prev&&(c.prev.next=b),c.prev=b,b.next=c):(b.next=c.next,c.next&&(c.next.prev=b),c.next=b,b.prev=c));b.prev===null&&(this._head=b);b.next===null&&(this._tail=b);this._nodes[a]=b;this._nodeCount++;return this};b.insertBefore=function(a,b,c){return this._insert(a,b,c,!0)};b.insertAfter=function(a,b,c){return this._insert(a,b,c,!1)};b.prepend=function(a,b){return this.insertBefore(a,b,this._head&&this._head.key)};b.append=function(a,b){return this.insertAfter(a,b,this._tail&&this._tail.key)};b.remove=function(a){__p&&__p();var b=this._nodes[a];if(b){var c=b.next,d=b.prev;c&&(c.prev=d);d&&(d.next=c);this._head===b&&(this._head=c);this._tail===b&&(this._tail=d);delete this._nodes[a];this._nodeCount--}return this};b.find=function(a){for(var b=this._head;b;b=b.next)if(a(b.data))return b.key;return null};b.reduce=function(a,b){for(var c=this._head;c;c=c.next)b=a(c.data,b);return b};b.exists=function(a){return!!this._nodes[a]};b.isEmpty=function(){return!this._head};b.reset=function(){this._head=null,this._tail=null,this._nodes={},this._nodeCount=0};b.map=function(a){for(var b=this._head;b;b=b.next)a(b.data)};b.getCount=function(){return this._nodeCount};b.getHead=function(){var a;return(a=this._head)!=null?a.data:a};b.getTail=function(){var a;return(a=this._tail)!=null?a.data:a};b.getNext=function(a){return(a=this._nodes[a])!=null?(a=a.next)!=null?a.data:a:a};b.getPrev=function(a){return(a=this._nodes[a])!=null?(a=a.prev)!=null?a.data:a:a};b.getHeadKey=function(){var a;return(a=this._head)!=null?a.key:a};b.getTailKey=function(){var a;return(a=this._tail)!=null?a.key:a};return a}();e.exports=a}),null); __d("ProfileOverviewSection",["CallbackDependencyManager","DOMScroll","DoublyLinkedListMap","TidyArbiterMixin","ge"],(function(a,b,c,d,e,f){__p&&__p();var g=null,h=new(b("CallbackDependencyManager"))(),i={};a=function(){"use strict";__p&&__p();function a(a,c,d){this.id=a,this.label=d,this.nodeID=c,this._isLoaded=!1,this._parentSection=null,this.childSections=new(b("DoublyLinkedListMap"))(),i[a]=this,window.setTimeout(function(){return h.satisfyPersistentDependency(a)},0)}var c=a.prototype;c.reset=function(){this.childSections.map(function(a){return a.reset()})};c.appendSection=function(a){this.childSections.append(a.id,a),a._parentSection=this};c.freeze=function(){this.freezeChildren()};c.freezeChildren=function(){var a=this.childSections.getHead();while(a)a.isActive()||a.freeze(),a=a.getNext()};c.getParent=function(){return this._parentSection};c.getChildren=function(){return this.childSections};c.getNext=function(){return this._parentSection&&this._parentSection.childSections.getNext(this.id)};c.getPrev=function(){return this._parentSection&&this._parentSection.childSections.getPrev(this.id)};c.isActive=function(){var a=this;while(a){if(a.id===g)return!0;a=a._parentSection}return!1};c.isLoaded=function(){return this._isLoaded};c.setIsLoaded=function(a){this._isLoaded=a;return this};c.scrollTo=function(){if(!b("ge")(this.nodeID))return;b("DOMScroll").scrollTo(this.getNode(),!0,!1,0,0,b("DOMScroll").scrollTo.bind(this).bind(null,this.getNode(),0))};c.thaw=function(){this.thawChildren()};c.thawChildren=function(){var a=this.childSections.getHead();while(a)a.thaw(),a=a.getNext()};c.getNode=function(){throw new Error("This function needs to be implemented in children.")};a.callWithSection=function(a,b){h.registerCallback(function(){b(i[a])},[a])};a.setActiveSectionID=function(a){g=a};a.resetGlobalState=function(){g=null,h=new(b("CallbackDependencyManager"))(),i={}};return a}();Object.assign(a,b("TidyArbiterMixin"));e.exports=a}),null); __d("ProfileTabUtils",["ProfileTabConst"],(function(a,b,c,d,e,f){__p&&__p();function g(a){return a===null||a===void 0||a===b("ProfileTabConst").TIMELINE||a===b("ProfileTabConst").WALL}var h={isActivityLogTab:function(a){return a===b("ProfileTabConst").ALL_ACTIVITY||a===b("ProfileTabConst").APPROVAL},isTimelineOverviewTab:function(a){return a===b("ProfileTabConst").TIMELINE_OVERVIEW},isOverviewTab:function(a){return a===b("ProfileTabConst").INFO||a===b("ProfileTabConst").OVERVIEW},isTimelineTab:g,isMapTab:function(a){return a===b("ProfileTabConst").MAP},tabHasFixedAds:function(a){return!0},tabHasScrubber:function(a){return h.isActivityLogTab(a)},tabHasStickyHeader:function(a){return g(a)||h.isTimelineOverviewTab(a)},getIDForCollectionToken:function(a){return"pagelet_timeline_app_collection_"+a},getIDForSectionKey:function(a){return"pagelet_timeline_medley_"+a},isMedleyTab:function(a){return!h.isTimelineTab(a)&&!h.isTimelineOverviewTab(a)},normalizeTabKey:function(a){return h.isTimelineTab(a)?b("ProfileTabConst").TIMELINE:a},getIDForTabKey:function(a){if(h.isTimelineTab(a))return"timeline_tab_content";return h.isTimelineOverviewTab(a)?"timeline_overview":"timeline-medley"},getPageletForTabKey:function(a){if(h.isTimelineTab(a))return"TimelineJumperColumn";return h.isTimelineOverviewTab(a)?"TimelineOverviewColumn":"TimelineMedleyView"}};e.exports=h}),null); __d("TimelineComponentKeys",[],(function(a,b,c,d,e,f){a={CONTENT:"content",ESCAPE_HATCH:"escape_hatch",OVERVIEW_CONTAINER:"overview_container",NAV:"nav",SCRUBBER:"scrubber",STICKY_HEADER:"sticky_header",STICKY_HEADER_NAV:"sticky_header_nav",STICKY_HEADER_VIEW_SWITCHER:"sticky_header_view_switcher"};e.exports=a}),null); __d("TimelineConstants",[],(function(a,b,c,d,e,f){a=Object.freeze({DS_LOADED:"timeline-capsule-loaded",DS_COLUMN_HEIGHT_DIFFERENTIAL:"timeline-column-diff-height",SCROLL_TO_OFFSET:100,SCRUBBER_DEFAULT_OFFSET:38,SECTION_EXPAND:"TimelineConstants/sectionExpand",SECTION_LOADING:"TimelineConstants/sectionLoading",SECTION_LOADED:"TimelineConstants/sectionLoaded",SECTION_FULLY_LOADED:"TimelineConstants/sectionFullyLoaded",SECTION_REGISTERED:"TimelineConstants/sectionRegistered",UNIT_SEGMENT_LOADED:"TimelineConstants/unitSegmentLoaded"});e.exports=a}),null); __d("findTag",["ErrorSerializer","TAALOpcodes","$"],(function(a,b,c,d,e,f){__p&&__p();a=function(a,c){__p&&__p();var d=b("$")(a);if(!c){if(d instanceof HTMLElement)return d;throw new Error(b("ErrorSerializer").stringify({message:'Element with ID "%s" is not an HTMLElement',params:[a],taalOpcodes:[b("TAALOpcodes").PREVIOUS_FILE]}))}var e=d.tagName.toLowerCase();if(e!==c)throw new Error(b("ErrorSerializer").stringify({message:"Expected $('%s') to be of type '%s' but got '%s' instead.",params:[a,c,e],taalOpcodes:[b("TAALOpcodes").PREVIOUS_FILE]}));return d};e.exports=a}),null); __d("TimelineController",["Arbiter","BlueBar","CSS","DataStore","Event","ProfileTabConst","ProfileTabUtils","Run","TidyArbiter","TimelineComponentKeys","TimelineConstants","UITinyViewportAction","URI","Vector","findTag","forEachObject","ge","queryThenMutateDOM","tidyEvent"],(function(a,b,c,d,e,f){__p&&__p();var g=740,h="top",i="paddingTop",j="paddingTop",k=null,l=!1,m=null,n=null,o={},p={},q=null,r=[],s=null,t=null;b("Vector").getViewportDimensions();var u=!1,v=!1,w=!1;function x(a,b,c){c===void 0&&(c=[]);if(o[a])return o[a][b].apply(o[a],c);p[a]=p[a]||{};p[a][b]=c;return!1}function y(){u&&(u=C(b("ge")("rightCol"),j,I.getCurrentScrubber()));if(v){var a=b("ge")("pagelet_above_header_timeline");a&&(v=C(a,h))}w&&(w=C(b("BlueBar").getBar(),i))}function z(){t=b("Vector").getScrollPosition()}function A(){y(),t&&b("ProfileTabUtils").tabHasStickyHeader(k)&&x(b("TimelineComponentKeys").STICKY_HEADER,"check",[t.y]),x(b("TimelineComponentKeys").CONTENT,"checkCurrentSectionChange")}function B(){b("queryThenMutateDOM")(z,A,"TimelineController/scrollListener")}function C(a,c,d){__p&&__p();if(!a||!t)return!1;if(t.y<=0){D(a,c);return!1}if(d&&b("CSS").hasClass(d.getRoot(),"fixed_elem")){D(a,c);return!1}d=parseInt(a.style[c],10)||0;t.y