if (self.CavalryLogger) { CavalryLogger.start_js(["xOaHw"]); }

__d("BasicTypeaheadLoggerJSConstants",[],(function a(b,c,d,e,f,g){f.exports={EventNames:{ADS_TARGETING:"ads_targeting",MENTIONS:"mentions",TINDER_MENTIONS:"tinder_mentions",REACT_COMPOSER_MENTIONS:"react_composer_mentions",PHOTO_TAGGER:"photo-tagger",PROFILE:"profile",TIMELINE_COLLECTION:"timeline_collection",OGCOMPOSER_TAGGER:"ogcomposer-tagger",PLACES_TYPEAHEAD:"places_typeahead",CHAT_MENTIONS_ENTITIES:"chat_mentions_entities",REACT_COMPOSER_OG_TAGGER:"react_composer_og_tagger",REACT_SHARE_DIALOG_OG_TAGGER:"react_share_dialog_og_tagger",REACT_COMPOSER_LOCATION_TAGGER:"react_composer_location_tagger",REACT_SHARE_DIALOG_LOCATION_TAGGER:"react_share_dialog_location_tagger",GROUP_SEARCH_TA:"group_search_ta"},Fields:{EVENT:"event",STRATEGY_NAME:"strategy_name",HAS_INTENT_MENTION:"has_intent_mention",USER_ID:"userid",SELECTED_POSITION:"selected_position",SELECTED_ID:"selected_id",QUERIES_HISTORY:"queries_history",NUM_QUERIES:"num_queries",CANDIDATE_RESULTS:"candidate_results",CANDIDATE_RESULTS_ADS:"candidate_results_ads",QUERY:"query",LAST_NOT_BACKSPACED_QUERY:"last_not_backspaced_query",REQUEST_ID:"request_id",REQUEST_IDS_HISTORY:"request_ids_history",SESSION_ID:"session_id",SESSION_TIME:"session_time",NORMALIZED_BACKEND_QUERY:"normalized_backend_query",SELECTED_TYPE:"selected_type",SELECTED_QUERY:"selected_query",SELECTED_ORIGINAL_ID:"selected_original_id",SELECTED_SCORE:"selected_score",PLACE_ID:"place_id",CLIENT_TIME:"client_time",TIMEZONE:"timezone",TIMEZONE_ID:"timezone_id",ACTION_TYPE_ID:"action_type_id",SELECTED_ID_INT:"selected_id_int",CLICK:"click",FILTERED_CANDIDATE_RESULTS:"filtered_candidate_results",FBTYPE:"fbtype",PAGE:"page",PAGE_VISIBILITY_DUMMY:"page_visibility_dummy",SEARCH_VERSION:"search_version",GK_STATUS:"gk_status",QE_GROUP:"qe_group",EVENT_SPECIFIC_DATA:"event_specific_data",REF:"ref",SOURCE:"source",GEO_PROFILE_COUNTRY:"geo_profile_country",CURRENT_GEO_PROFILE:"current_geo_profile",CURRENT_CITY_GLOBAL_ID:"current_city_global_id",CURRENT_REGION_ID:"current_region_id",CURRENT_COUNTRY:"current_country",COLLECTION_DATA:"collection_data",FILTERED_COUNT:"filtered_count",GOOD_CLICK:"good_click",GOOD_CLICK_INT:"good_click_int",FALLBACK_CLICK:"fallback_click",ENTITY_CLICK:"entity_click",ENTITY_CLICK_INT:"entity_click_int",HAD_RESULTS:"had_results",NUM_RESULTS:"num_results",PAGE_CATEGORY:"page_category",PAGE_VISIBILITY:"page_visibility",PAGE_IS_AUTHENTIC:"page_is_authentic",PRECISION:"precision",EVENT_CONTEXT:"event_context",PAGE_SOURCE:"page_source",ENTITY_TYPE:"entity_type",EVENT_VALID:"event_valid",QUERY_LENGTH:"query_length",FIRST_RESULT:"first_result",HAD_DUPLICATES:"had_duplicates",COMPLETE_APP_COUNT:"complete_app_count",APP_COLLECTION_SIZE:"app_collection_size",COLLECTION_SIZE:"collection_size",NON_EMPTY_FRIENDS_COUNT:"non_empty_friends_count",CAROUSEL_COLLECTION_SIZE:"carousel_collection_size",QUALITY_ACCURACY:"quality_accuracy",SELECTED_WITH_MOUSE:"selected_with_mouse",AVG_QUERY_LATENCY:"avg_query_latency",IS_EMPLOYEE:"is_employee",PROFILE_SECTION:"profile_section",TYPEAHEAD_SOURCE:"typeahead_source",MINUTIAE_COMPOSER_VERSION:"minutiae_composer_version",LAST_QUERY_LATENCY:"last_query_latency",AD_ACCOUNT_ID:"ad_account_id",SUGGESTION_MODE:"suggestion_mode",NEXT_SUGGESTION_MODE:"next_suggestion_mode"},MinutiaeComposerVersions:{LEGACY:"legacy",LEGACY_TOKENIZED:"legacy_tokenized",REACT:"react"}}}),null);
__d("PhotosUploadWaterfallErrorCodes",[],(function a(b,c,d,e,f,g){f.exports={SECURITY:1,FILE_IO:2,IMAGE_IO:3,UPLOAD_IO:4,INVALID_SERVER_RESULT:5,RESIZE_FAILURE:6,ENCODE_FAILURE:7,INVALID_DOMAIN:8,BAD_JPEG_MARKERS:9,BAD_SERVER_RESPONSE:10,EXTERNAL_INTERFACE_UNAVAILABLE:11,JS_CALL_FAILED:12,UNCAUGHT_ERROR:13,UPLOAD_SWF_FAILED_LOAD:14,FILE_IO_TIMEOUT:15,IMAGE_SECURITY:16,BAD_IMAGE_FILE:17,IMAGE_IO_TIMEOUT:18,BLACK_PHOTO:19,EMPTY_FILE_LOADED:20,FILE_READ_DISABLED:21,BAD_NETWORK:22,FLASH_LOAD_TIMEOUT:23,FLASH_LOAD_FAILURE:24,FLASH_UPGRADE_REQUIRED:25,SPHERICAL_CHECK_FAILED:26,SPHERICAL_CHECK_TIMEOUT:27}}),null);
__d("ReactComposerTypeaheadSearchSourceConfig",[],(function a(b,c,d,e,f,g){f.exports={ACTIVITY:{action:{auxiliaryFields:{default_icon:"default_icon",icon:"icon",original_id:"original_id",prompt:"prompt"}},object:{auxiliaryFields:{icon:"icon",icon_src:"icon_src",original_id:"original_id",verified:"is_verified"}}},LOCATION:{include_likes:false,include_subtext:true,include_address:1,exact_match:false,map_height:null,map_width:null,use_unicorn:true,allow_places:true,allow_cities:true,render_map:false,limit:15,use_searchable_entries:true}}}),null);
__d("TaggingLimits",[],(function a(b,c,d,e,f,g){f.exports={MAX_WITH_TAGS:100,MAX_SPONSOR_TAGS:1}}),null);
__d("MentionResultsPropTypes",["React","SearchableEntry","SelectionState"],(function a(b,c,d,e,f,g){var h=c("React").PropTypes,i={viewID:h.string.isRequired,selection:h.instanceOf(c("SelectionState")).isRequired,contextComponent:h.object.isRequired,mentionableEntries:h.array.isRequired,highlightedMentionable:h.instanceOf(c("SearchableEntry")),onMentionSelect:h.func.isRequired,onMentionHighlight:h.func.isRequired,onMentionRenderHighlight:h.func.isRequired};f.exports=i}),null);
__d("MentionsLayer.react",["Bootloader","Locale","MentionResultsPropTypes","React","areEqual"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=false,j=c("Locale").isRTL(),k,l,m,n,o=5,p=c("React").createClass({displayName:"MentionsLayer",propTypes:babelHelpers["extends"]({},c("MentionResultsPropTypes"),{typeaheadView:h.func.isRequired,typeaheadViewProps:h.object,autoflip:h.bool,position:h.oneOf(["above","below"])}),getInitialState:function r(){return{bootloaded:i}},componentDidMount:function r(){if(!this.state.bootloaded)q(function(){this.isMounted()&&this.setState({bootloaded:true})}.bind(this))},_onMentionSelect:function r(s,t){t.preventDefault();this.props.onMentionSelect(s,t)},shouldComponentUpdate:function r(s,t){return this.state.bootloaded!==t.bootloaded||!c("areEqual")(this.props.mentionableEntries,s.mentionableEntries)||this.props.highlightedMentionable!==s.highlightedMentionable||this.props.characterOffset!==s.characterOffset},render:function r(){__p&&__p();if(!this.state.bootloaded)return null;var s=this.props.mentionableEntries,t=this.props.selection,u=t.isCollapsed()&&t.getHasFocus()&&s&&s.length,v=null,w=this.props.typeaheadViewProps,x=false;if(w&&w.positionAtContext)x=true;else if(u)v=n(this.props.characterOffset,j);var y={};if(this.props.autoflip){y.ContextualLayerAutoFlip=l;y.ContextualLayerUpdateOnScroll=m}var z=this.props.typeaheadView;return c("React").createElement(k,{shown:u,context:this.props.contextComponent,contextBounds:v,containerWidthMatchContext:x,offsetY:o,offsetX:this.props.offset,position:this.props.position||"below",behaviors:y,shouldSetARIAProperties:false},c("React").createElement("div",{"data-testid":"mentions-contextual-layer"},c("React").createElement(z,{id:this.props.viewID,viewProps:this.props.typeaheadViewProps,highlightedEntry:this.props.highlightedMentionable,entries:s||[],onSelect:this._onMentionSelect,onHighlight:this.props.onMentionHighlight,onRenderHighlight:this.props.onMentionRenderHighlight})))}});function q(r){c("Bootloader").loadModules(["ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerUpdateOnScroll","getMentionableRect"],function(s,t,u,v){k=s;l=t;m=u;n=v;i=true;r()},"MentionsLayer.react")}f.exports=p}),null);
__d("CircularProgressBar.react",["cx","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("React").PropTypes,j=c("React").createClass({displayName:"CircularProgressBar",propTypes:{percentComplete:i.number.isRequired},render:function k(){var l=360*this.props.percentComplete/100,m=Math.max(l,180)-180,n=Math.min(l,180),o=this.props.percentComplete<100?"1":"0";return c("React").createElement("div",{className:"_1_bj",style:{opacity:o}},c("React").createElement("div",{className:"_1_bk"},c("React").createElement("div",{className:"_1_bl",style:{opacity:o}}),c("React").createElement("div",{className:"_1_bp _1_bq"},c("React").createElement("div",{className:"_1_br",style:{transform:"translateX(-100%) rotate("+m+"deg)",opacity:o}})),c("React").createElement("div",{className:"_1_bs _1_bq"},c("React").createElement("div",{className:"_1_br",style:{transform:"translateX(-100%) rotate("+n+"deg)",opacity:o}}))))}});f.exports=j}),null);
__d("createMentionEntityForContentState",[],(function a(b,c,d,e,f,g){"use strict";function h(i,j){var k=j.getType().toLowerCase();if(k==="hashtag")return i.createEntity("HASHTAG","IMMUTABLE");var l=k==="user"||k==="fb4c"?"SEGMENTED":"IMMUTABLE",m=j.getAuxiliaryData();return i.createEntity("MENTION",l,{id:j.getUniqueID(),uri:j.getURI(),isWeak:m&&m.renderType==="non_member",type:k})}f.exports=h}),null);
__d("MentionsInput.react",["cx","invariant","AbstractMentionsTextEditor.react","EditorState","Event","JSReliabilityFixesGatingConfig","MentionsLayer.react","React","ReactDOM","createMentionEntityForContentState","joinClasses"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){__p&&__p();var n,o;"use strict";for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.blur=function(){this.refs.textEditor.blur()}.bind(this),this.focus=function(){this.refs.textEditor&&this.refs.textEditor.focus()}.bind(this),this.click=function(){__p&&__p();var s=c("ReactDOM").findDOMNode(this);s||i(0);var t=null;try{t=new(c("Event"))("focus")}catch(u){if(c("JSReliabilityFixesGatingConfig").should_get_fix){t=document.createEvent("Event");t.initEvent("focus",true,true)}else throw u}s.dispatchEvent(t)}.bind(this),o}m.prototype.render=function(){"use strict";var n=c("joinClasses")(this.props.className,"_5yk1");return c("React").createElement("div",{className:n,onClick:this.click,onFocus:this.focus,role:"presentation"},c("React").createElement(c("AbstractMentionsTextEditor.react"),babelHelpers["extends"]({},this.props,{ariaMultiline:this.props.ariaMultiline,mentionResultsComponent:c("MentionsLayer.react"),mentionResultsProps:{typeaheadView:this.props.typeaheadView,typeaheadViewProps:this.props.typeaheadViewProps,offset:this.props.offset,autoflip:this.props.autoflip,position:this.props.position},mentionCreationForContentStateFn:c("createMentionEntityForContentState"),ref:"textEditor",className:"_5yk2",stripPastedStyles:this.props.stripPastedStyles})))};m.propTypes={editorState:l.instanceOf(c("EditorState")).isRequired,mentionsSource:l.object,typeaheadView:l.func.isRequired,typeaheadViewPropTypes:l.object,ariaMultiline:l.bool,spellCheck:l.bool,placeholder:l.string,className:l.string,autoflip:l.bool,position:l.oneOf(["above","below"]),renderEmoji:l.bool,webDriverTestID:l.string,handleContentReturn:l.func,handleDroppedFiles:l.func,handlePastedFiles:l.func,onAddMention:l.func,onShowMentions:l.func,onChange:l.func,onFocus:l.func,onBlur:l.func,stripPastedStyles:l.bool};m.defaultProps={stripPastedStyles:true};f.exports=m}),null);
__d("PhotoUploadFacerecWaterfallTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:PhotoUploadFacerecWaterfallLoggerConfig",this.$PhotoUploadFacerecWaterfallTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:PhotoUploadFacerecWaterfallLoggerConfig",this.$PhotoUploadFacerecWaterfallTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$PhotoUploadFacerecWaterfallTypedLogger1={};return this};h.prototype.updateData=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1=babelHelpers["extends"]({},this.$PhotoUploadFacerecWaterfallTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.event=j;return this};h.prototype.setFaceBoxID=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.face_box_id=j;return this};h.prototype.setPhotoFbid=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.photo_fbid=j;return this};h.prototype.setRecognizedUser=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.recognized_user=j;return this};h.prototype.setTaggedUser=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.tagged_user=j;return this};h.prototype.setVC=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.vc=j;return this};var i={event:true,face_box_id:true,photo_fbid:true,recognized_user:true,tagged_user:true,vc:true};f.exports=h}),null);
__d("createExponentialMovingAverage",[],(function a(b,c,d,e,f,g){__p&&__p();function h(k){var l=arguments.length<=1||arguments[1]===undefined?0:arguments[1],m=l;return function(n){return m+=k*(n-m)}}function i(k){return function(l){return 1-Math.exp(-l/k)}}function j(k){var l=arguments.length<=1||arguments[1]===undefined?0:arguments[1],m=l,n=i(k);return function(o,p){return m+=n(p)*(o-m)}}h.createContinuous=j;f.exports=h}),null);
__d("VelocityTracker",["createExponentialMovingAverage","performanceNow"],(function a(b,c,d,e,f,g){__p&&__p();function h(){var i=arguments.length<=0||arguments[0]===undefined?50:arguments[0],j=arguments.length<=1||arguments[1]===undefined?{x:0,y:0}:arguments[1];"use strict";this.$VelocityTracker5=j.x;this.$VelocityTracker6=j.y;this.$VelocityTracker1=c("performanceNow")();this.$VelocityTracker2=c("createExponentialMovingAverage").createContinuous(i,this.$VelocityTracker5);this.$VelocityTracker3=c("createExponentialMovingAverage").createContinuous(i,this.$VelocityTracker6)}h.prototype.update=function(i,j){"use strict";var k=0;if(this.$VelocityTracker4){k=c("performanceNow")()-this.$VelocityTracker1;k=this.updateVelocity((i-this.$VelocityTracker4.x)*1e3/k,(j-this.$VelocityTracker4.y)*1e3/k)}else this.$VelocityTracker1=c("performanceNow")();this.$VelocityTracker4={x:i,y:j};return k};h.prototype.updateVelocity=function(i,j){"use strict";var k=c("performanceNow")(),l=k-this.$VelocityTracker1;this.$VelocityTracker1=k;this.$VelocityTracker5=this.$VelocityTracker2(i,l);this.$VelocityTracker6=this.$VelocityTracker3(j,l);return l};h.prototype.getVelocityX=function(){"use strict";return Math.trunc(this.$VelocityTracker5)};h.prototype.getVelocityY=function(){"use strict";return Math.trunc(this.$VelocityTracker6)};h.prototype.getSpeed=function(){"use strict";return Math.trunc(Math.sqrt(this.$VelocityTracker5*this.$VelocityTracker5+this.$VelocityTracker6*this.$VelocityTracker6))};f.exports=h}),null);
__d("PagesComposerUnpublishedPostsStore",["ReactComposerStoreBase","PagesComposerActionsTypes"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j={isDraft:false,scheduledPublishTime:null,backdateConfig:null,isAdsPost:false,isReviewableBrandedContent:false,stopFeedDistributionDate:null,isOfferUpsellShown:false,isOfferUpsellAbandoned:false,offerConfig:null};h=babelHelpers.inherits(k,c("ReactComposerStoreBase"));i=h&&h.prototype;function k(){"use strict";__p&&__p();var l;i.constructor.call(this,function(){return Object.assign({},j)},function(m){__p&&__p();switch(m.type){case c("PagesComposerActionsTypes").BACKDATE:l&&l.$PagesComposerUnpublishedPostsStore1(m);break;case c("PagesComposerActionsTypes").SET_DRAFT:l&&l.$PagesComposerUnpublishedPostsStore2(m);break;case c("PagesComposerActionsTypes").SCHEDULE:l&&l.$PagesComposerUnpublishedPostsStore3(m);break;case c("PagesComposerActionsTypes").SET_ADS_POST:l&&l.$PagesComposerUnpublishedPostsStore4(m);break;case c("PagesComposerActionsTypes").SHOW_OFFER_UPSELL:l&&l.$PagesComposerUnpublishedPostsStore5(m);break;case c("PagesComposerActionsTypes").ABANDON_OFFER_UPSELL:l&&l.$PagesComposerUnpublishedPostsStore6(m);break;case c("PagesComposerActionsTypes").SET_IS_REVIEWABLE_BRANDED_CONTENT:l&&l.$PagesComposerUnpublishedPostsStore7(m);break;case c("PagesComposerActionsTypes").CLEAR_COMPOSER_DATA:l&&l.$PagesComposerUnpublishedPostsStore8(m);break}});l=this}k.prototype.getBackdateConfig=function(l){"use strict";return this.getComposerData(l).backdateConfig};k.prototype.getIsDraft=function(l){"use strict";return this.getComposerData(l).isDraft};k.prototype.getIsReviewableBrandedContent=function(l){"use strict";return this.getComposerData(l).isReviewableBrandedContent};k.prototype.getScheduledPublishTime=function(l){"use strict";return this.getComposerData(l).scheduledPublishTime};k.prototype.getStopFeedDistributionTime=function(l){"use strict";return this.getComposerData(l).stopFeedDistributionDate};k.prototype.getIsAdsPost=function(l){"use strict";return this.getComposerData(l).isAdsPost};k.prototype.getIsOfferUpsellShown=function(l){"use strict";return this.getComposerData(l).isOfferUpsellShown};k.prototype.getIsOfferUpsellAbandoned=function(l){"use strict";return this.getComposerData(l).isOfferUpsellAbandoned};k.prototype.getOfferConfig=function(l){"use strict";return this.getComposerData(l).offerConfig};k.prototype.$PagesComposerUnpublishedPostsStore1=function(l){"use strict";var m=this.getComposerData(l.composerID);m.backdateConfig={year:l.year,month:l.month,day:l.day,hideFromNewsFeed:l.hideFromNewsFeed}};k.prototype.$PagesComposerUnpublishedPostsStore3=function(l){"use strict";var m=this.getComposerData(l.composerID);m.scheduledPublishTime=l.scheduleDate;m.stopFeedDistributionDate=l.stopFeedDistributionDate};k.prototype.$PagesComposerUnpublishedPostsStore2=function(l){"use strict";var m=this.getComposerData(l.composerID);m.isDraft=true};k.prototype.$PagesComposerUnpublishedPostsStore4=function(l){"use strict";var m=this.getComposerData(l.composerID);m.isAdsPost=true};k.prototype.$PagesComposerUnpublishedPostsStore5=function(l){"use strict";var m=this.validateAction(l,["composerID","config"]),n=m[0],o=m[1],p=this.getComposerData(n);p.offerConfig=o;p.isOfferUpsellShown=true;this.emitChange(n)};k.prototype.$PagesComposerUnpublishedPostsStore6=function(l){"use strict";var m=this.getComposerData(l.composerID);m.isOfferUpsellAbandoned=true};k.prototype.$PagesComposerUnpublishedPostsStore7=function(l){"use strict";var m=this.getComposerData(l.composerID);m.isReviewableBrandedContent=true};k.prototype.$PagesComposerUnpublishedPostsStore8=function(l){"use strict";this.clearComposerData(l.composerID)};f.exports=new k()}),null);
__d("ReactComposerFocusStore",["ReactComposerFocusActionTypes","ReactComposerStoreBase"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){__p&&__p();var k=void 0;i.constructor.call(this,function(){return{focusConfig:{},isFocused:false}},function(l){__p&&__p();if(!k)return;switch(l.type){case c("ReactComposerFocusActionTypes").SUBSCRIBE:k.$ReactComposerFocusStore1(l.composerID,l.onFocusAcquiredCallback,l.onFocusLostCallback);k.emitChange(l.composerID);break;case c("ReactComposerFocusActionTypes").UNSUBSCRIBE:k.$ReactComposerFocusStore2(l.composerID);k.emitChange(l.composerID);break;case c("ReactComposerFocusActionTypes").FOCUS_ACQUIRED:k.$ReactComposerFocusStore3(l.composerID);k.emitChange(l.composerID);break;case c("ReactComposerFocusActionTypes").FOCUS_LOST:k.$ReactComposerFocusStore4(l.composerID);k.emitChange(l.composerID);break}});k=this}j.prototype.$ReactComposerFocusStore1=function(k,l,m){var n=this.getComposerData(k);n.focusConfig={onFocusAcquiredCallback:l,onFocusLostCallback:m}};j.prototype.$ReactComposerFocusStore2=function(k){var l=this.getComposerData(k);l.focusConfig={}};j.prototype.$ReactComposerFocusStore3=function(k){var l=this.getComposerData(k);if(l.focusConfig.onFocusAcquiredCallback)setTimeout(l.focusConfig.onFocusAcquiredCallback,0);l.isFocused=true};j.prototype.$ReactComposerFocusStore4=function(k){var l=this.getComposerData(k);if(l.focusConfig.onFocusLostCallback)setTimeout(l.focusConfig.onFocusLostCallback,0);l.isFocused=false};j.prototype.isComposerFocused=function(k){return this.getComposerData(k).isFocused};f.exports=new j()}),null);
__d("XAfterPartyWWWController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/afterparty/www/",{page_id:{type:"Int",required:true},scrolling_offset:{type:"Int",defaultValue:0}})}),null);
__d("XUnpublishedPostSuccessController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/unpublished_posts/post_success/",{type:{type:"String",required:true}})}),null);
__d("PagesComposer",["csx","cx","ActorURI","Arbiter","AsyncRequest","Bootloader","ReactComposerFocusStore","ComposerXMarauderLogger","ComposerXStore","DOM","PagesComposerUnpublishedPostsStore","Parent","ReloadPage","Run","XUnpublishedPostSuccessController","XAfterPartyWWWController","$","getObjectValues","goURI"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j=500,k=20,l=58,m=void 0,n=void 0;function o(){c("ComposerXMarauderLogger").logCompleted(m.id)}function p(s){__p&&__p();if(s.hidePost){var t=c("ComposerXStore").getAllForComposer(m.id);if(!c("getObjectValues")(t).length){var u=null;if(c("PagesComposerUnpublishedPostsStore").getIsDraft(m.id))u="draft";if(c("PagesComposerUnpublishedPostsStore").getScheduledPublishTime(m.id))u="scheduled";if(u){var v=c("XUnpublishedPostSuccessController").getURIBuilder().setString("type",u).getURI();v=c("ActorURI").create(v,n);new(c("AsyncRequest"))().setURI(v).send()}}o();return}if(s.redirect){var t=c("ComposerXStore").getAllForComposer(m.id);c("getObjectValues")(t).forEach(function(y){if(y.reset)y.reset(y)});c("goURI")(s.redirect);o();return}if(!s.streamStory){c("ReloadPage").now();return}if(s.backdatedTime){c("Bootloader").loadModules(["PagesStoryPublisher"],function(y){y.publish(s)},"PagesComposer");o();return}var w=r.renderStory(m,s.streamStory);c("Arbiter").inform("TimelineComposer/on_after_publish",w,c("Arbiter").BEHAVIOR_PERSISTENT);if(n){var x=c("XAfterPartyWWWController").getURIBuilder().setInt("page_id",n);q(x,0)}o()}function q(s,t){if(!c("ReactComposerFocusStore").isComposerFocused(m.id)){if(t>0)s.setInt("scrolling_offset",l);new(c("AsyncRequest"))().setURI(s.getURI()).send()}else if(t<k)setTimeout(q.bind(this,s,t+1),j)}var r={init:function s(t,u){m=c("$")(t);n=u;var v=c("Arbiter").subscribe("composer/publish",function(event,w){if(w.composer_id===m.id)p(w)});c("Run").onLeave(v.unsubscribe.bind(v))},renderStory:function s(t,u){var v=c("Parent").bySelector(t,"#pagelet_timeline_main_column");if(!v)return;var w=c("DOM").scry(v,"._5sem")[0],x=c("DOM").setContent(w,u)[0];c("Bootloader").loadModules(["Animation"],function(y){new y(x).from("backgroundColor","#fff8dd").to("backgroundColor","#fff").duration(2e3).ease(y.ease.both).go()},"PagesComposer");return x},replaceByID:function s(t,u){c("DOM").replace(c("$")(t),u)}};f.exports=b.PagesComposer||r}),null);
__d("SphericalPhotoUploadHelper",[],(function a(b,c,d,e,f,g){"use strict";f.exports={shouldResize360:function h(i,j,k){if(j&&Math.max(j.x,j.y)<=k||i==="cubestrip")return false;return true}}}),null);
__d("XComposerPhotoUploader",["regeneratorRuntime","Promise","AsyncUploadRequest","FileInputUploader","JSLogger","PhotosMimeType","PhotosUploadID","ReactComposerMediaUtils","SphericalImage","SphericalPhotoConfig","SphericalPhotoUploadHelper","curry","emptyFunction","performanceNow"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("SphericalPhotoUploadHelper").shouldResize360,i=b.URL||b.webkitURL||{};function j(k){__p&&__p();this.$XComposerPhotoUploader2=k.uploadData||{};this.$XComposerPhotoUploader1=k.uploadEndpoint;this.$XComposerPhotoUploader3=k.retryLimit;this.$XComposerPhotoUploader4=k.concurrentLimit;this.$XComposerPhotoUploader5=k.resizer;this.$XComposerPhotoUploader6=k.onUploadEnqueued||c("emptyFunction");this.$XComposerPhotoUploader7=k.onUploadsEnqueued||c("emptyFunction");this.$XComposerPhotoUploader8=k.onResizeStart||c("emptyFunction");this.$XComposerPhotoUploader11=k.onResizeProgress||c("emptyFunction");this.$XComposerPhotoUploader9=k.onResizeSuccess||c("emptyFunction");this.$XComposerPhotoUploader10=k.onResizeFailure||c("emptyFunction");this.$XComposerPhotoUploader12=k.onSphericalCheckFailure||c("emptyFunction");this.$XComposerPhotoUploader13=k.onSphericalCheckSuccess||c("emptyFunction");this.$XComposerPhotoUploader14=k.onUploadIsSpherical||c("emptyFunction");this.$XComposerPhotoUploader15=k.onUploadSent||c("emptyFunction");this.$XComposerPhotoUploader16=k.onUploadStart||c("emptyFunction");this.$XComposerPhotoUploader17=k.onUploadProgress||c("emptyFunction");this.$XComposerPhotoUploader18=k.onUploadSuccess||c("emptyFunction");this.$XComposerPhotoUploader19=k.onUploadFailure||c("emptyFunction");this.$XComposerPhotoUploader20=c("JSLogger").create("composer")}j.prototype.upload=function(k,l){__p&&__p();l=l||0;var m=Object.assign({},this.$XComposerPhotoUploader2),n=null;if(!this.$XComposerPhotoUploader21(k)){var o=c("PhotosUploadID").getNewID();k.uploadID=o;m.upload_id=o;this.$XComposerPhotoUploader6({uploadID:o,fileName:k.value.split("/").pop().split("\\").pop(),fileURL:i.createObjectURL?i.createObjectURL(k):null})}else{n=Array.from(k.files);n=n.filter(function(s){return!c("ReactComposerMediaUtils").hasVideos([s.name])});if(n.length===0)return;var p=n.length+l;n.forEach(function(s){if(!s.uploadID)s.uploadID=c("PhotosUploadID").getNewID();this.$XComposerPhotoUploader6({uploadID:s.uploadID,fileName:s.name,isSpherical:false,fileURL:i.createObjectURL?i.createObjectURL(s):null})}.bind(this))}this.$XComposerPhotoUploader7();var q=new(c("FileInputUploader"))(k).setURI(this.$XComposerPhotoUploader1).setData(m).setAllowCrossOrigin(true).setNetworkErrorRetryLimit(this.$XComposerPhotoUploader3).setUploadInParallel(true);if(n&&n.length>0){q.setFiles({farr:n});if(this.$XComposerPhotoUploader5)q.setPreprocessHandler(this.$XComposerPhotoUploader22.bind(this));else q.setPreprocessHandler(this.$XComposerPhotoUploader23.bind(this));if(this.$XComposerPhotoUploader4)q.setConcurrentLimit(this.$XComposerPhotoUploader4)}q.subscribe("progress",function(s,m){return this.$XComposerPhotoUploader17(this.$XComposerPhotoUploader24(m,k),m)}.bind(this));q.subscribe("failure",function(s,m){return this.$XComposerPhotoUploader19(this.$XComposerPhotoUploader24(m,k),m,n)}.bind(this));q.subscribe("start",function(s,m){return this.$XComposerPhotoUploader16(this.$XComposerPhotoUploader24(m,k),m)}.bind(this));q.subscribe("success",function(s,m){return this.$XComposerPhotoUploader18(this.$XComposerPhotoUploader24(m,k),m)}.bind(this));try{q.send();this.$XComposerPhotoUploader15(k)}catch(r){this.$XComposerPhotoUploader20.error("error_send_unpublished_files",r);throw r}};j.prototype.getAsyncUploadRequest=function(k,l){__p&&__p();var m=new(c("AsyncUploadRequest"))().setData(Object.assign({},l&&l.data,this.$XComposerPhotoUploader2)).setFiles({farr:k}).setAllowCrossOrigin(true).setURI(this.$XComposerPhotoUploader1);if(this.$XComposerPhotoUploader4)m.setLimit(this.$XComposerPhotoUploader4);if(this.$XComposerPhotoUploader5)m.setPreprocessHandler(this.$XComposerPhotoUploader22.bind(this));m.subscribe("start",function(n,o){return this.$XComposerPhotoUploader16(o.getFile().uploadID,{upload:o})}.bind(this));m.subscribe("progress",function(n,o){return this.$XComposerPhotoUploader17(o.getFile().uploadID,{upload:o,event:o.getProgressEvent()})}.bind(this));m.subscribe("success",function(n,o){return this.$XComposerPhotoUploader18(o.getFile().uploadID,{upload:o,response:o.getResponse()})}.bind(this));m.subscribe("failure",function(n,o){return this.$XComposerPhotoUploader19(o.getFile().uploadID,{upload:o,response:o.getResponse()},k)}.bind(this));return m};j.prototype.$XComposerPhotoUploader24=function(k,l){if(k.upload)return k.upload.getFile().uploadID;else return l.uploadID};j.prototype.$XComposerPhotoUploader23=function(k,l){(function m(){return c("regeneratorRuntime").async(function n(o){while(1)switch(o.prev=o.next){case 0:o.next=2;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader25(k,l));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},null,this)}).bind(this)().done()};j.prototype.$XComposerPhotoUploader25=function k(l,m){__p&&__p();var n,o;return c("regeneratorRuntime").async(function p(q){__p&&__p();while(1)switch(q.prev=q.next){case 0:n=l.getFile();q.next=3;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader26(n));case 3:o=q.sent;if(o&&o.isSpherical())this.$XComposerPhotoUploader14(n,o.isSpherical(),o.getProjectionType());else this.$XComposerPhotoUploader14(n,false,"");m(l);case 6:case"end":return q.stop()}},null,this)};j.prototype.$XComposerPhotoUploader22=function(k,l){(function m(){return c("regeneratorRuntime").async(function n(o){while(1)switch(o.prev=o.next){case 0:o.next=2;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader27(k,l));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},null,this)}).bind(this)().done()};j.prototype.$XComposerPhotoUploader26=function k(l){__p&&__p();var m,n;return c("regeneratorRuntime").async(function o(p){__p&&__p();while(1)switch(p.prev=p.next){case 0:m=c("performanceNow")();p.prev=1;p.next=4;return c("regeneratorRuntime").awrap(c("SphericalImage").createFromBlob(l));case 4:n=p.sent;this.$XComposerPhotoUploader13(l,c("performanceNow")()-m,n);return p.abrupt("return",n);case 9:p.prev=9;p.t0=p["catch"](1);this.$XComposerPhotoUploader12(l,c("performanceNow")()-m);return p.abrupt("return",null);case 14:case"end":return p.stop()}},null,this,[[1,9]])};j.prototype.$XComposerPhotoUploader28=function(k){return this.$XComposerPhotoUploader29(this.$XComposerPhotoUploader5.resizeBlob.bind(this.$XComposerPhotoUploader5),k)};j.prototype.$XComposerPhotoUploader30=function(k){return this.$XComposerPhotoUploader29(this.$XComposerPhotoUploader5.resize360Blob.bind(this.$XComposerPhotoUploader5),k,c("SphericalPhotoConfig").upload_size_limit)};j.prototype.$XComposerPhotoUploader29=function(k,l,m){__p&&__p();var n=c("curry")(this.$XComposerPhotoUploader11,l.uploadID),o=function(){return this.$XComposerPhotoUploader8(l)}.bind(this);return new(c("Promise"))(function(p,q){o();k(l,function(r,s,t,u,v){if(r)q(r);else if(t)p(null);else p({blob:s,originalWidth:u,originalHeight:v})},n,m)})};j.prototype.$XComposerPhotoUploader27=function k(l,m){__p&&__p();var n,o,p,q,r,s,t,u,v,w;return c("regeneratorRuntime").async(function x(y){__p&&__p();while(1)switch(y.prev=y.next){case 0:n=l.getFile();if(!(!n||!c("PhotosMimeType").isJpeg(n.type))){y.next=5;break}this.$XComposerPhotoUploader14(n,false,"");m(l);return y.abrupt("return");case 5:o=c("performanceNow")();p=void 0,q=void 0;y.prev=7;r=null;if(!c("SphericalPhotoConfig").spherical_photo_www_upload){y.next=13;break}y.next=12;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader26(n));case 12:r=y.sent;case 13:if(!(r&&r.isSpherical())){y.next=24;break}this.$XComposerPhotoUploader14(n,true,r.getProjectionType());s=r.getSize();t=c("SphericalPhotoConfig").upload_size_limit;u=r.getProjectionType();if(!h(u,s,t)){y.next=22;break}y.next=21;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader30(n));case 21:p=y.sent;case 22:y.next=28;break;case 24:this.$XComposerPhotoUploader14(n,false,"");y.next=27;return c("regeneratorRuntime").awrap(this.$XComposerPhotoUploader28(n));case 27:p=y.sent;case 28:if(p){q=p.blob;q.uploadID=n.uploadID;q.name=n.name;l.setFile(q);l.getAdditionalData().set("js_resized",true).set("original_width",p.originalWidth).set("original_height",p.originalHeight)}v=q===null;l.getFile().filename=n.name;this.$XComposerPhotoUploader9(n,q||n,v,c("performanceNow")()-o);y.next=39;break;case 34:y.prev=34;y.t0=y["catch"](7);w=c("performanceNow")()-o;this.$XComposerPhotoUploader10(n,q||n,y.t0,w);case 39:m(l);case 40:case"end":return y.stop()}},null,this,[[7,34]])};j.prototype.$XComposerPhotoUploader21=function(k){return!!k.files&&c("AsyncUploadRequest").isSupported()};f.exports=j}),null);
__d("ReactComposerSlideshowActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({AUDIO_FILE_UPLOAD_ERROR:null,AUDIO_FILE_UPLOAD_STARTED:null,AUDIO_FILE_UPLOAD_SUCCESS:null,CLOSE_EDIT_SLIDESHOW_DIALOG:null,CREATE:null,DURATION_CHANGE:null,FORMAT_CHANGE:null,HIDE_SLIDESHOW_EDIT_FIELD:null,IMAGE_REMOVE:null,IMAGES_SELECT_CONFIRM:null,MUSIC_CATEGORY_SELECT:null,PREVIEW_STATE_CHANGE:null,REORDER_IMAGES:null,SELECT_TAB:null,SHOW_EDIT_SLIDESHOW_DIALOG:null,SHOW_SLIDESHOW_EDIT_FIELD:null,SET_STORYLINE_MOOD_FILES:null,STORYLINE_MOOD_CHANGE:null,STORYLINE_MOOD_DELETE:null,STORYLINE_MOOD_SOURCE_CHANGE:null,STORYLINE_MOOD_SOURCE_MAP_CHANGE:null,TOGGLE_SLIDESHOW_DIALOG:null,TRANSITION_CHANGE:null},"ReactComposerSlideshowActionType")}),null);
__d("ReactComposerSelectedImagesStore",["ReactComposerDispatcher","ReactComposerMediaUploadActionType","ReactComposerMediaUploadStore","ReactComposerPhotoStore","ReactComposerSlideshowActionType","ReactComposerStoreBase","SlideshowConstants","SlideshowImageUtil","mergeDeepInto"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("SlideshowConstants").formats,k=c("SlideshowConstants").max_photo_num;h=babelHelpers.inherits(l,c("ReactComposerStoreBase"));i=h&&h.prototype;l.prototype.$ReactComposerSelectedImagesStore1=function(m,n,o){var p;if(m.isLoading)return{};var q=c("SlideshowImageUtil").calculateDefaultCoordinates({width:m.width,height:m.height},o);return p={},p[n]=q,p};l.prototype.$ReactComposerSelectedImagesStore2=function(m,n,o){var p=o;if(!p)p=this.getComposerData(m).format;return this.$ReactComposerSelectedImagesStore3(n,p)};l.prototype.$ReactComposerSelectedImagesStore3=function(m,n){__p&&__p();if(!m.length)return[];switch(n){case j.Original:var o=m[0];return m.map(function(p){return this.$ReactComposerSelectedImagesStore1(p,o.width+c("SlideshowConstants").SIZE_DELIMITER+o.height,o.width/o.height)}.bind(this));case j.Wide:return m.map(function(p){return this.$ReactComposerSelectedImagesStore1(p,n,c("SlideshowConstants").LANDSCAPE_ASPECT_RATIO)}.bind(this));case j.Square:return m.map(function(p){return this.$ReactComposerSelectedImagesStore1(p,n,c("SlideshowConstants").SQUARE_ASPECT_RATIO)}.bind(this));case j.Vertical:return m.map(function(p){return this.$ReactComposerSelectedImagesStore1(p,n,c("SlideshowConstants").VERTICAL_ASPECT_RATIO)}.bind(this));default:return[]}};function l(){__p&&__p();var m=void 0;i.constructor.call(this,function(){return{selectedImages:[],imagesCrops:[],editState:null,format:c("SlideshowConstants").formats.Original,removedUploadIDs:[],addedUploadIDs:[]}},function(n){__p&&__p();switch(n.type){case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_ENQUEUED:c("ReactComposerDispatcher").waitFor([c("ReactComposerMediaUploadStore").getDispatchToken()]);m&&m.$ReactComposerSelectedImagesStore4(n);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_DONE:c("ReactComposerDispatcher").waitFor([c("ReactComposerPhotoStore").getDispatchToken()]);m&&m.$ReactComposerSelectedImagesStore5(n);break;case c("ReactComposerSlideshowActionType").IMAGES_SELECT_CONFIRM:m&&m.$ReactComposerSelectedImagesStore6(n);break;case c("ReactComposerSlideshowActionType").IMAGE_REMOVE:m&&m.$ReactComposerSelectedImagesStore7(n);break;case c("ReactComposerSlideshowActionType").REORDER_IMAGES:m&&m.$ReactComposerSelectedImagesStore8(n);break;case c("ReactComposerSlideshowActionType").FORMAT_CHANGE:m&&m.$ReactComposerSelectedImagesStore9(n);break;case c("ReactComposerSlideshowActionType").TOGGLE_SLIDESHOW_DIALOG:m&&m.$ReactComposerSelectedImagesStore10(n);break;case c("ReactComposerSlideshowActionType").HIDE_SLIDESHOW_EDIT_FIELD:m&&m.$ReactComposerSelectedImagesStore11(n);break;case c("ReactComposerSlideshowActionType").SHOW_EDIT_SLIDESHOW_DIALOG:m&&m.$ReactComposerSelectedImagesStore12(n);break;case c("ReactComposerSlideshowActionType").CLOSE_EDIT_SLIDESHOW_DIALOG:m&&m.$ReactComposerSelectedImagesStore13(n);break;case c("ReactComposerSlideshowActionType").CREATE:m&&m.$ReactComposerSelectedImagesStore14(n);break;default:break}});m=this}l.prototype.$ReactComposerSelectedImagesStore4=function(m){var n=m.composerID,o=this.getComposerData(n),p=c("ReactComposerMediaUploadStore").getUploads(n),q=this.addNewImagesFromPhotoUploads(p,o.selectedImages,o.removedUploadIDs);o.selectedImages=o.selectedImages.concat(q);if(o.editState!==null)o.addedUploadIDs=o.addedUploadIDs.concat(q.map(function(r){return r.key}));this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore5=function(m){var n=m.composerID,o=this.getComposerData(n),p=c("ReactComposerPhotoStore").getPhotos(n);o.selectedImages=this.replacePhotoUploadsFromPhotos(p,o.selectedImages);o.imagesCrops=this.$ReactComposerSelectedImagesStore2(n,o.selectedImages);this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore11=function(m){var n=m.composerID,o=this.getComposerData(n);o.selectedImages=[];o.imagesCrops=[];this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore10=function(m){var n=m.composerID,o=this.getComposerData(n);if(!m.shouldShowSlideshowDialog){o.selectedImages=[];o.imagesCrops=[]}this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore6=function(m){var n=m.composerID,o=this.getComposerData(n);o.selectedImages=o.selectedImages.concat(m.selectedImages);o.imagesCrops=this.$ReactComposerSelectedImagesStore2(n,o.selectedImages);this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore7=function(m){var n=m.composerID,o=this.getComposerData(n);if(o.editState!==null)o.removedUploadIDs.push(m.removeImage.key);var p=o.selectedImages.filter(function(q){return q.key!==m.removeImage.key});o.selectedImages=p;o.imagesCrops=this.$ReactComposerSelectedImagesStore2(n,p);this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore8=function(m){var n=m.composerID,o=this.getComposerData(n),p=m.data,q=p.fromIndex,r=p.toIndex,s=o.selectedImages.slice(0),t=Object.assign({},s[q]);s[q].remove=true;s.splice(q>r?r:r+1,0,t);s=s.filter(function(u){return!u.remove});o.selectedImages=s;o.imagesCrops=this.$ReactComposerSelectedImagesStore2(n,s);this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore9=function(m){var n=m.composerID,o=this.getComposerData(n);o.format=m.format;o.imagesCrops=this.$ReactComposerSelectedImagesStore2(n,o.selectedImages,m.format);this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore12=function(m){var n=m.composerID,o=this.getComposerData(n),p={};c("mergeDeepInto")(p,o);o.editState=p;this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore13=function(m){var n=m.composerID,o=this.getComposerData(n),p=o.editState;o.selectedImages=p.selectedImages;o.imagesCrops=p.imagesCrops;o.format=p.format;o.editState=null;o.removedUploadIDs=[];o.addedUploadIDs=[];this.emitChange(n)};l.prototype.$ReactComposerSelectedImagesStore14=function(m){var n=m.composerID,o=this.getComposerData(n);o.editState=null;o.removedUploadIDs=[];o.addedUploadIDs=[];this.emitChange(n)};l.prototype.getImagesFromPhotoUploads=function(m){var n=[];m.forEach(function(o){n.push({height:null,isLoading:true,key:o.id,url:null,width:null})});return n};l.prototype.addNewImagesFromPhotoUploads=function(m,n,o){var p=this.getImagesFromPhotoUploads(m),q=p.filter(function(r){var s=n.findIndex(function(u){return u.key===r.key}),t=o.findIndex(function(u){return u===r.key});return s===-1&&t===-1});return q};l.prototype.replacePhotoUploadsFromPhotos=function(m,n){return n.map(function(o){var p=o,q=m.find(function(q){return q.uploadID===o.key});if(q!=null)p={height:q.height,isLoading:false,key:q.uploadID,photoID:q.id,thumbSrc:q.thumbSrc,url:q.imageSrc,width:q.width};return p})};l.prototype.getPhotoIDs=function(m){var n=this.getComposerData(m);return n.selectedImages.map(function(o){return o.photoID}).slice(0,k)};l.prototype.getRemovedUploadIDs=function(m){return this.getComposerData(m).removedUploadIDs};l.prototype.getAddedUploadIDs=function(m){return this.getComposerData(m).addedUploadIDs};l.prototype.getSelectedImages=function(m){return this.getComposerData(m).selectedImages};l.prototype.getThumbnailSrc=function(m){var n=this.getComposerData(m).selectedImages;if(n.length>0)return n[0].thumbSrc;return null};l.prototype.getImagesCrops=function(m){return this.getComposerData(m).imagesCrops};l.prototype.getNumberOfImages=function(m){return Math.min(this.getComposerData(m).selectedImages.length,k)};l.prototype.getFormat=function(m){return this.getComposerData(m).format};f.exports=new l()}),null);
__d("ReactComposerSlideshowActions",["ReactComposerDispatcher","ReactComposerSlideshowActionType"],(function a(b,c,d,e,f,g){__p&&__p();var h={showSlideshowEditField:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").SHOW_SLIDESHOW_EDIT_FIELD})},hideSlideshowEditField:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").HIDE_SLIDESHOW_EDIT_FIELD})},showSlideshowDialog:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,entrypoint:k,shouldShowSlideshowDialog:true,type:c("ReactComposerSlideshowActionType").TOGGLE_SLIDESHOW_DIALOG})},closeSlideshowDialog:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,shouldShowSlideshowDialog:false,type:c("ReactComposerSlideshowActionType").TOGGLE_SLIDESHOW_DIALOG})},showEditSlideshowDialog:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").SHOW_EDIT_SLIDESHOW_DIALOG})},closeEditSlideshowDialog:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").CLOSE_EDIT_SLIDESHOW_DIALOG})},selectImagesConfirm:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,selectedImages:k,type:c("ReactComposerSlideshowActionType").IMAGES_SELECT_CONFIRM})},removeImage:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,removeImage:k,type:c("ReactComposerSlideshowActionType").IMAGE_REMOVE})},reorderImages:function i(j,k,l){c("ReactComposerDispatcher").dispatch({composerID:j,data:{fromIndex:k,toIndex:l},type:c("ReactComposerSlideshowActionType").REORDER_IMAGES})},changeStorylineMoodFile:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,selectedStorylineMood:k,type:c("ReactComposerSlideshowActionType").STORYLINE_MOOD_CHANGE})},deleteStorylineMoodFile:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,selectedStorylineMood:k,type:c("ReactComposerSlideshowActionType").STORYLINE_MOOD_DELETE})},changeStorylineMoodIDSource:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,storylineMoodIDSource:k,type:c("ReactComposerSlideshowActionType").STORYLINE_MOOD_SOURCE_CHANGE})},changeStorylineMoodSourceMap:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,storylineMoodIDToSource:k,type:c("ReactComposerSlideshowActionType").STORYLINE_MOOD_SOURCE_MAP_CHANGE})},changeTransition:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,transitionInMS:k,type:c("ReactComposerSlideshowActionType").TRANSITION_CHANGE})},changeDuration:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,durationInMS:k,type:c("ReactComposerSlideshowActionType").DURATION_CHANGE})},setStorylineMoodFiles:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,storylineMoodFiles:k,type:c("ReactComposerSlideshowActionType").SET_STORYLINE_MOOD_FILES})},createSlideshow:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").CREATE})},changeFormat:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,format:k,type:c("ReactComposerSlideshowActionType").FORMAT_CHANGE})},selectTab:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,tab:k,type:c("ReactComposerSlideshowActionType").SELECT_TAB})},musicCategorySelect:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,selectedMusicCategory:k,type:c("ReactComposerSlideshowActionType").MUSIC_CATEGORY_SELECT})},previewStateChange:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,isPreviewPlaying:k,type:c("ReactComposerSlideshowActionType").PREVIEW_STATE_CHANGE})},audioFileUploadStarted:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_STARTED})},audioFileUploadError:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_ERROR})},audioFileUploadSuccess:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,uploadedMood:k,type:c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_SUCCESS})}};f.exports=h}),null);
__d("ReactComposerSlideshowStore",["ReactComposerSlideshowActionType","ReactComposerStoreBase","SlideshowConstants","SlideshowFlowTypes","mergeDeepInto"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("SlideshowFlowTypes").SlideshowTabKey;h=babelHelpers.inherits(k,c("ReactComposerStoreBase"));i=h&&h.prototype;function k(){"use strict";__p&&__p();var l=void 0;i.constructor.call(this,function(){return{durationInMS:1e3,editState:null,isSlideshowSelected:false,selectedTab:j.SETTINGS_TAB,shouldShowSlideshowDialog:false,transitionInMS:c("SlideshowConstants").transitions.None}},function(m){__p&&__p();switch(m.type){case c("ReactComposerSlideshowActionType").CREATE:l&&l.$ReactComposerSlideshowStore1(m);break;case c("ReactComposerSlideshowActionType").SHOW_SLIDESHOW_EDIT_FIELD:l&&l.$ReactComposerSlideshowStore2(m);break;case c("ReactComposerSlideshowActionType").HIDE_SLIDESHOW_EDIT_FIELD:l&&l.$ReactComposerSlideshowStore3(m);break;case c("ReactComposerSlideshowActionType").TOGGLE_SLIDESHOW_DIALOG:l&&l.$ReactComposerSlideshowStore4(m);break;case c("ReactComposerSlideshowActionType").TRANSITION_CHANGE:l&&l.$ReactComposerSlideshowStore5(m);break;case c("ReactComposerSlideshowActionType").DURATION_CHANGE:l&&l.$ReactComposerSlideshowStore6(m);break;case c("ReactComposerSlideshowActionType").SHOW_EDIT_SLIDESHOW_DIALOG:l&&l.$ReactComposerSlideshowStore7(m);break;case c("ReactComposerSlideshowActionType").CLOSE_EDIT_SLIDESHOW_DIALOG:l&&l.$ReactComposerSlideshowStore8(m);break;case c("ReactComposerSlideshowActionType").SELECT_TAB:l&&l.$ReactComposerSlideshowStore9(m);break;default:break}});l=this}k.prototype.$ReactComposerSlideshowStore1=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.isSlideshowSelected=true;n.shouldShowSlideshowDialog=false;n.editState=null;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore9=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.selectedTab=l.tab;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore2=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.isSlideshowSelected=true;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore3=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.isSlideshowSelected=false;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore4=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.shouldShowSlideshowDialog=l.shouldShowSlideshowDialog;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore5=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.transitionInMS=l.transitionInMS;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore6=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.durationInMS=l.durationInMS;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore7=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m),o={};c("mergeDeepInto")(o,n);n.editState=o;n.shouldShowSlideshowDialog=true;this.emitChange(m)};k.prototype.$ReactComposerSlideshowStore8=function(l){"use strict";var m=l.composerID,n=this.getComposerData(m);n.shouldShowSlideshowDialog=false;n.isSlideshowSelected=true;var o=n.editState;n.durationInMS=o.durationInMS;n.transitionInMS=o.transitionInMS;n.editState=null;this.emitChange(m)};k.prototype.isSlideshowSelected=function(l){"use strict";return this.getComposerData(l).isSlideshowSelected};k.prototype.isEditing=function(l){"use strict";return this.getComposerData(l).editState!==null};k.prototype.shouldShowSlideshowDialog=function(l){"use strict";return this.getComposerData(l).shouldShowSlideshowDialog};k.prototype.getDurationInMS=function(l){"use strict";return this.getComposerData(l).durationInMS};k.prototype.getTotalLength=function(l,m){"use strict";return this.getDurationInMS(l)*m+this.getTransitionInMS(l)*m};k.prototype.getTransitionInMS=function(l){"use strict";return this.getComposerData(l).transitionInMS};k.prototype.getSelectedTab=function(l){"use strict";return this.getComposerData(l).selectedTab};f.exports=new k()}),null);
__d("ReactComposerSlideshowAudioStore",["immutable","ReactComposerDispatcher","ReactComposerMediaUploadActionType","ReactComposerSelectedImagesStore","ReactComposerSlideshowActions","ReactComposerSlideshowActionType","ReactComposerSlideshowStore","ReactComposerStoreBase","SlideshowAudioUtil","SlideshowDataManager","SlideshowMusicCategory","SlideshowUtil","mergeDeepInto"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{audioFileUploadInfo:{isUploading:false,hasError:false},editState:null,isPreviewPlaying:false,recentlyUsedStorylineMoods:c("immutable").List(),selectedMusicCategory:c("SlideshowMusicCategory").ALL_TRACKS,selectedStorylineMood:null,storylineMoodFiles:c("immutable").List(),storylineMoodIDToSource:c("immutable").Map()}},function(l){__p&&__p();switch(l.type){case c("ReactComposerSlideshowActionType").IMAGES_SELECT_CONFIRM:k&&k.$ReactComposerSlideshowAudioStore1(l,function(){c("ReactComposerSlideshowActions").previewStateChange(l.composerID,false)});break;case c("ReactComposerSlideshowActionType").STORYLINE_MOOD_CHANGE:k&&k.$ReactComposerSlideshowAudioStore2(l);k&&k.$ReactComposerSlideshowAudioStore1(l,function(){c("ReactComposerSlideshowActions").previewStateChange(l.composerID,true)});break;case c("ReactComposerSlideshowActionType").STORYLINE_MOOD_DELETE:k&&k.$ReactComposerSlideshowAudioStore3(l);break;case c("ReactComposerSlideshowActionType").SHOW_EDIT_SLIDESHOW_DIALOG:k&&k.$ReactComposerSlideshowAudioStore4(l);break;case c("ReactComposerSlideshowActionType").CLOSE_EDIT_SLIDESHOW_DIALOG:k&&k.$ReactComposerSlideshowAudioStore5(l);break;case c("ReactComposerSlideshowActionType").DURATION_CHANGE:k&&k.$ReactComposerSlideshowAudioStore1(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_ENQUEUED:case c("ReactComposerSlideshowActionType").IMAGE_REMOVE:k&&k.$ReactComposerSlideshowAudioStore1(l);break;case c("ReactComposerSlideshowActionType").SET_STORYLINE_MOOD_FILES:k&&k.$ReactComposerSlideshowAudioStore6(l);break;case c("ReactComposerSlideshowActionType").STORYLINE_MOOD_SOURCE_CHANGE:k&&k.$ReactComposerSlideshowAudioStore7(l);break;case c("ReactComposerSlideshowActionType").STORYLINE_MOOD_SOURCE_MAP_CHANGE:k&&k.$ReactComposerSlideshowAudioStore8(l);break;case c("ReactComposerSlideshowActionType").MUSIC_CATEGORY_SELECT:k&&k.$ReactComposerSlideshowAudioStore9(l);break;case c("ReactComposerSlideshowActionType").PREVIEW_STATE_CHANGE:k&&k.$ReactComposerSlideshowAudioStore10(l);break;case c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_STARTED:k&&k.$ReactComposerSlideshowAudioStore11(l);break;case c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_ERROR:k&&k.$ReactComposerSlideshowAudioStore12(l);break;case c("ReactComposerSlideshowActionType").AUDIO_FILE_UPLOAD_SUCCESS:k&&k.$ReactComposerSlideshowAudioStore13(l);break;default:break}});k=this}j.prototype.$ReactComposerSlideshowAudioStore1=function(k,l){"use strict";__p&&__p();var m=k.composerID,n=this.getComposerData(m),o=n.selectedStorylineMood;if(!o)return;var p=o.moodID,q=this.getNumberOfImages(m),r=q===0?c("SlideshowUtil").getMaximumTotalLengthInMS():this.getTotalLength(m,q),s=this.getStorylineMoodIDToSource(m);c("SlideshowDataManager").fetchStorylineMoodSource(p,r,function(t){c("ReactComposerSlideshowActions").changeStorylineMoodIDSource(m,t);s=s.set(p,t);c("ReactComposerSlideshowActions").changeStorylineMoodSourceMap(m,s);if(l)l()});n.selectedStorylineMood.source=s.get(p);this.emitChange(m)};j.prototype.$ReactComposerSlideshowAudioStore11=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.audioFileUploadInfo.isUploading=true;m.audioFileUploadInfo.hasError=false;m.selectedMusicCategory=c("SlideshowMusicCategory").USER_UPLOADED;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore12=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.audioFileUploadInfo.isUploading=false;m.audioFileUploadInfo.hasError=true;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore13=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.audioFileUploadInfo.isUploading=false;m.audioFileUploadInfo.hasError=false;m.storylineMoodFiles=m.storylineMoodFiles.unshift(k.uploadedMood);this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore9=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.selectedMusicCategory=k.selectedMusicCategory;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore4=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l),n={};c("mergeDeepInto")(n,m);m.editState=n;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore5=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l),n=m.editState;m.selectedStorylineMood=n.selectedStorylineMood;m.selectedMusicCategory=n.selectedMusicCategory;m.editState=null;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore2=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.selectedStorylineMood=k.selectedStorylineMood;if(k.selectedStorylineMood!=null)m.recentlyUsedStorylineMoods=m.recentlyUsedStorylineMoods.unshift(k.selectedStorylineMood);this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore3=function(k){"use strict";__p&&__p();var l=k.composerID,m=this.getComposerData(l),n=k.selectedStorylineMood;if(c("SlideshowAudioUtil").storylineMoodCompare(n,m.selectedStorylineMood)){m.selectedStorylineMood=null;m.isPreviewPlaying=false}m.storylineMoodFiles=m.storylineMoodFiles.filter(function(o){return!c("SlideshowAudioUtil").storylineMoodCompare(o,n)});c("SlideshowDataManager").deleteAudioFile(n.moodID);this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore7=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);if(!m.selectedStorylineMood)return;m.selectedStorylineMood.source=k.storylineMoodIDSource;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore8=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.storylineMoodIDToSource=k.storylineMoodIDToSource;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore10=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.isPreviewPlaying=k.isPreviewPlaying;this.emitChange(l)};j.prototype.$ReactComposerSlideshowAudioStore6=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.storylineMoodFiles=k.storylineMoodFiles;this.emitChange(l)};j.prototype.getNumberOfImages=function(k){"use strict";c("ReactComposerDispatcher").waitFor([c("ReactComposerSelectedImagesStore").getDispatchToken()]);return c("ReactComposerSelectedImagesStore").getNumberOfImages(k)};j.prototype.getStorylineMoodFiles=function(k){"use strict";return this.getComposerData(k).storylineMoodFiles.toArray()};j.prototype.getRecentlyUsedStorylineMoods=function(k){"use strict";return this.getComposerData(k).recentlyUsedStorylineMoods.toArray()};j.prototype.getSelectedStorylineMood=function(k){"use strict";return this.getComposerData(k).selectedStorylineMood};j.prototype.getStorylineMoodIDToSource=function(k){"use strict";return this.getComposerData(k).storylineMoodIDToSource};j.prototype.getSelectedMusicCategory=function(k){"use strict";return this.getComposerData(k).selectedMusicCategory};j.prototype.getIsPreviewPlaying=function(k){"use strict";return this.getComposerData(k).isPreviewPlaying};j.prototype.getAudioFileUploadInfo=function(k){"use strict";return this.getComposerData(k).audioFileUploadInfo};j.prototype.getTotalLength=function(k,l){"use strict";c("ReactComposerDispatcher").waitFor([c("ReactComposerSlideshowStore").getDispatchToken()]);return c("ReactComposerSlideshowStore").getTotalLength(k,l)};f.exports=new j()}),null);
__d("ReactComposerVideoCopyrightDialog.react",["fbt","LayerHideOnEscape","React","XUIButton.react","XUIDialog.react","XUIDialogBody.react","XUIDialogFooter.react"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;"use strict";for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$ReactComposerVideoCopyrightDialog1=function(){this.props.onCancel&&this.props.onCancel()}.bind(this),this.$ReactComposerVideoCopyrightDialog2=function(){this.props.onCancel&&this.props.onCancel()}.bind(this),n}l.prototype.componentDidMount=function(){"use strict";this.refs.dialog.layer&&this.refs.dialog.layer.subscribe("hide",this.$ReactComposerVideoCopyrightDialog1)};l.prototype.render=function(){"use strict";return c("React").createElement(c("XUIDialog.react"),{ref:"dialog",shown:this.props.shown,width:500,layerHideOnBlur:false,behaviors:{LayerHideOnEscape:c("LayerHideOnEscape")},key:"dialog"},c("React").createElement(c("XUIDialogBody.react"),null,h._("Please confirm that the content you are uploading does not infringe upon the intellectual property rights of any third party and that you have secured all rights necessary to copy, display and publicly perform the uploaded content (including any musical compositions or sound recordings included in the content) on Facebook.")),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIButton.react"),{use:"confirm",onClick:this.props.onConfirm,label:h._("Confirm")}),c("React").createElement(c("XUIButton.react"),{onClick:this.props.onCancel,label:h._("Cancel")})))};l.propTypes={shown:k.bool,onConfirm:k.func,onCancel:k.func};f.exports=l}),null);
__d("ReactComposerLocationAttachmentActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({LOCATION_ATTACHMENT_ENABLED:null,FETCH_LOCATION_ATTACHMENT:null,SET_MINUTIAE_ACTION_CONTEXT:null,SET_LOCATION_MARKUP:null},"ReactComposerLocationAttachmentActionType")}),null);
__d("XReactComposerLocationAttachmentController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/location/attachment/",{composer_id:{type:"String",required:true},location_id:{type:"String",required:true},target_id:{type:"String",required:true}})}),null);
__d("ReactComposerLocationAttachmentStore",["AsyncRequest","ReactComposerAttachmentStore","ReactComposerAttachmentActionType","ReactComposerAttachmentType","ReactComposerLocationAttachmentActionType","ReactComposerStoreBase","XReactComposerLocationAttachmentController"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{isEnabled:false,isFetching:false,markup:null,pendingRequest:null,minutiaeTaggedPlace:null,isTimeline:false,sourceAttachment:null}},function(l){__p&&__p();switch(l.type){case c("ReactComposerLocationAttachmentActionType").LOCATION_ATTACHMENT_ENABLED:k&&k.$ReactComposerLocationAttachmentStore1(l);break;case c("ReactComposerLocationAttachmentActionType").FETCH_LOCATION_ATTACHMENT:k&&k.$ReactComposerLocationAttachmentStore2(l);break;case c("ReactComposerLocationAttachmentActionType").SET_MINUTIAE_ACTION_CONTEXT:k&&k.$ReactComposerLocationAttachmentStore3(l);break;case c("ReactComposerLocationAttachmentActionType").SET_LOCATION_MARKUP:k&&k.$ReactComposerLocationAttachmentStore4(l);break;case c("ReactComposerAttachmentActionType").SELECT_ATTACHMENT:k&&k.$ReactComposerLocationAttachmentStore5(l);break}});k=this}j.prototype.isEnabled=function(k){"use strict";return this.getComposerData(k).isEnabled};j.prototype.getMarkup=function(k){"use strict";return this.getComposerData(k).markup};j.prototype.getMinutiaeTaggedPlace=function(k){"use strict";return this.getComposerData(k).minutiaeTaggedPlace};j.prototype.getIsTimeline=function(k){"use strict";return this.getComposerData(k).isTimeline};j.prototype.isFetching=function(k){"use strict";return this.getComposerData(k).isFetching};j.prototype.$ReactComposerLocationAttachmentStore1=function(k){"use strict";var l=this.validateAction(k,["composerID","enabled"]),m=l[0],n=l[1],o=this.getComposerData(m);o.isEnabled=n};j.prototype.$ReactComposerLocationAttachmentStore2=function(k){"use strict";__p&&__p();var l=this.validateAction(k,["composerID","locationID","targetID"]),m=l[0],n=l[1],o=l[2];if(!this.isEnabled(m))return;var p=this.getComposerData(m);p.isFetching=true;var q=c("XReactComposerLocationAttachmentController").getURIBuilder().setString("composer_id",m).setString("location_id",n).setString("target_id",o).getURI();p.pendingRequest=new(c("AsyncRequest"))(q).setFinallyHandler(function(){p.isFetching=false;p.pendingRequest=null;this.emitChange(m)}.bind(this));p.pendingRequest.send();this.emitChange(m)};j.prototype.$ReactComposerLocationAttachmentStore3=function(k){"use strict";var l=this.validateAction(k,["composerID","objectID","isTimeline"]),m=l[0],n=l[1],o=l[2],p=this.getComposerData(m);p.minutiaeTaggedPlace=n;p.isTimeline=o;this.emitChange(m)};j.prototype.$ReactComposerLocationAttachmentStore4=function(k){"use strict";var l=this.validateAction(k,["composerID","markup"]),m=l[0],n=l[1],o=this.getComposerData(m);o.markup=n;o.sourceAttachment=c("ReactComposerAttachmentStore").getSelectedAttachmentID(m);this.emitChange(m)};j.prototype.$ReactComposerLocationAttachmentStore5=function(k){"use strict";var l=this.validateAction(k,["composerID","id"]),m=l[0],n=l[1],o=this.getComposerData(m);if(n===c("ReactComposerAttachmentType").STATUS||k.proxiedAttachmentID===o.sourceAttachment||o.sourceAttachment===null)return;o.markup=null;o.isFetching=false;o.pendingRequest&&o.pendingRequest.abandon();this.emitChange(m)};f.exports=new j()}),null);
__d("ReactComposerLocationAttachmentActions",["ReactComposerDispatcher","ReactComposerLocationAttachmentActionType","ReactComposerLocationAttachmentStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerLocationAttachmentStore");h.prototype.enabled=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerLocationAttachmentActionType").LOCATION_ATTACHMENT_ENABLED,enabled:j})};h.prototype.fetchLocationAttachment=function(i,j,k){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerLocationAttachmentActionType").FETCH_LOCATION_ATTACHMENT,locationID:j,targetID:k})};h.prototype.setMinutiaeActionContext=function(i,j,k){"use strict";var l={composerID:i,type:c("ReactComposerLocationAttachmentActionType").SET_MINUTIAE_ACTION_CONTEXT,objectID:j,isTimeline:k};c("ReactComposerDispatcher").dispatch(l)};h.prototype.setMarkup=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerLocationAttachmentActionType").SET_LOCATION_MARKUP,markup:j})};function h(){"use strict"}f.exports=new h()}),null);
__d("ReactComposerMinutiaeAttachmentActions",["ReactComposerDispatcher","ReactComposerMinutiaeAttachmentActionType","ReactComposerMinutiaeAttachmentStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerMinutiaeAttachmentStore");h.prototype.fetchMinutiaeAttachment=function(i,j,k,l,m,n){"use strict";var o={composerID:i,type:c("ReactComposerMinutiaeAttachmentActionType").FETCH_ATTACHMENT,actionID:j,objectID:k,targetID:l,actorID:m,isTimeline:n};c("ReactComposerDispatcher").dispatch(o)};h.prototype.setExplicitLocation=function(i,j){"use strict";var k={composerID:i,type:c("ReactComposerMinutiaeAttachmentActionType").SET_EXPLICIT_LOCATION,explicitLocation:j};c("ReactComposerDispatcher").dispatch(k)};h.prototype.setMarkup=function(i,j){"use strict";var k={composerID:i,type:c("ReactComposerMinutiaeAttachmentActionType").SET_MARKUP,markup:j};c("ReactComposerDispatcher").dispatch(k)};h.prototype.setHideAttachment=function(i,j){"use strict";var k={composerID:i,type:c("ReactComposerMinutiaeAttachmentActionType").SET_HIDE_OBJECT_ATTACHMENT,hideAttachment:j};c("ReactComposerDispatcher").dispatch(k)};function h(){"use strict"}f.exports=new h()}),null);
__d("ReactComposerTaggerButtons.react",["cx","React"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;k.prototype.render=function(){"use strict";return c("React").createElement("div",{className:"_47gt"},this.props.children)};function k(){"use strict";i.apply(this,arguments)}f.exports=k}),null);
__d("ShareDialogTagSummary.react",["cx","Arbiter","AsyncRequest","immutable","Parent","React","emptyFunction","ifRequired","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes,l=true;i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;function m(){__p&&__p();var n,o;"use strict";for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.state={socialText:null},this.$ShareDialogTagSummary1=undefined,this.$ShareDialogTagSummary2=undefined,this.$ShareDialogTagSummary4=function(s){this.setState({socialText:s.getPayload().rendered})}.bind(this),this.$ShareDialogTagSummary5=function(s){__p&&__p();var t=s.target;if(c("Parent").byClass(t,"withToken"))this.props.withTokenClick();else if(c("Parent").byClass(t,"placeToken"))this.props.placeTokenClick();else if(c("Parent").byClass(t,"og_composer_object")){var u=this.props.taggerData;if(!u.get("action")&&!u.get("object")){if(u.get("politicalRepresentativeInfo").politicalRepresentative)this.props.politicalRepresentativeClick();else if(u.get("tagEventData").eventID)this.props.tagEventClick()}else this.props.ogObjectClick()}else if(!c("Parent").byClass(t,"ogPickerIcon"))this.props.onTagSummaryClick()}.bind(this),o}m.prototype.componentWillMount=function(){"use strict";this.$ShareDialogTagSummary1=c("Arbiter").subscribe("composer/ogIconPickerOpened",function(event,n){l=false});this.$ShareDialogTagSummary3(this.props)};m.prototype.componentWillUnmount=function(){"use strict";if(this.$ShareDialogTagSummary2)this.$ShareDialogTagSummary2.abort()};m.prototype.componentWillReceiveProps=function(n){"use strict";if(!this.props.taggerData.equals(n.taggerData))this.$ShareDialogTagSummary3(n)};m.prototype.render=function(){"use strict";var n=c("joinClasses")(this.props.className,"_4zq4");return c("React").createElement("div",{className:n,onMouseDown:this.$ShareDialogTagSummary5,dangerouslySetInnerHTML:this.state.socialText})};m.prototype.$ShareDialogTagSummary3=function(n){"use strict";__p&&__p();if(this.$ShareDialogTagSummary2)this.$ShareDialogTagSummary2.abort();var o=n.taggerData,p=o.get("people"),q=o.get("place"),r=o.get("action"),s=o.get("actionIconID"),t=o.get("object"),u=o.get("products"),v=o.get("sponsors"),w=o.get("politicalRepresentativeInfo"),x=o.get("issues"),y=o.get("tagEventData"),z=p.filter(function(E){return!this.props.peopleToExclude.has(E.getUniqueID())}.bind(this));if(!(z&&z.length>0)&&!q&&!(r&&t)&&!(u&&u.length>0)&&!(v&&v.sponsors.length>0)&&!w.politicalRepresentative&&!(x&&x.length>0)&&!(y&&y.eventID)){if(this.state.socialText)this.setState({socialText:null});return}var A={};if(z)A.people=z.map(function(E){return E.getUniqueID()});if(q){A.place=q.getTitle();A.placeID=q.getUniqueID()}if(u)A.productIDs=u.map(function(E){return E.getUniqueID()});if(v){var B=c("ifRequired")("BrandedContentSponsorRelationship",function(E){return v.sponsorRelationship===E.PRESENTED_BY},function(){return false});if(!B)A.sponsorIDs=v.sponsors.map(function(E){return E.getUniqueID()})}if(x)A.issueIDs=x.map(function(E){return E.getUniqueID()});if(r&&t){A.actionID=r.getUniqueID();var C=t.getUniqueID(),D=t.getTitle();if(!C||C===D)A.objectStr=D;else A.objectID=C}else if(w.politicalRepresentative)c("ifRequired")("ContactYourRepresentativeConsts",function(E){A.actionID=E.composer_action_id;A.objectID=w.politicalRepresentative.getUniqueID()});else if(y&&y.eventID)c("ifRequired")("TagEventSproutConsts",function(E){A.actionID=E.composer_action_id;A.objectID=y.eventID});if(s)A.actionIconID=s;A.iconPickerOpened=l!==true;this.$ShareDialogTagSummary2=new(c("AsyncRequest"))();this.$ShareDialogTagSummary2&&this.$ShareDialogTagSummary2.setURI("/ajax/metacomposer/social_text.php").setData(A).setHandler(this.$ShareDialogTagSummary4).send()};m.propTypes={ogObjectClick:k.func.isRequired,onTagSummaryClick:k.func.isRequired,peopleToExclude:k.instanceOf(c("immutable").Set).isRequired,placeTokenClick:k.func.isRequired,politicalRepresentativeClick:k.func.isRequired,tagEventClick:k.func.isRequired,taggerData:k.instanceOf(c("immutable").Map).isRequired,withTokenClick:k.func.isRequired};m.defaultProps={peopleToExclude:c("immutable").Set(),ogObjectClick:c("emptyFunction"),onTagSummaryClick:c("emptyFunction"),placeTokenClick:c("emptyFunction"),politicalRepresentativeClick:c("emptyFunction"),tagEventClick:c("emptyFunction"),withTokenClick:c("emptyFunction")};f.exports=m}),null);
__d("ReactComposerTaggerSummaryContainer.react",["cx","Arbiter","immutable","React","ReactComposerContextTypes","ReactComposerLoggingName","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerTaggerActions","ReactComposerTaggerStore","ReactComposerTaggerType","ReactDOM","ShareDialogTagSummary.react","containsNode"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").createClass({displayName:"ReactComposerTaggerSummaryContainer",_ogSubscription:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerTaggerStore"))],statics:{calculateState:function j(k,l){var m=c("ReactComposerTaggerStore").getTaggersData(k),n=m[c("ReactComposerTaggerType").PEOPLE],o=m[c("ReactComposerTaggerType").LOCATION],p=m[c("ReactComposerTaggerType").ACTIVITY],q=o?o.place:null,r=m[c("ReactComposerTaggerType").PRODUCT],s=m[c("ReactComposerTaggerType").SPONSOR],t=m[c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE],u=m[c("ReactComposerTaggerType").ISSUE_TAG],v=m[c("ReactComposerTaggerType").TAG_EVENT];return{people:n,place:q,activity:p,products:r,sponsors:s,politicalRepresentativeInfo:t,issues:u,tagEventData:v}}},componentWillMount:function j(){this._ogSubscription=c("Arbiter").subscribe("composer/ogCustomIconSelected",function(event,k){if(!c("containsNode")(c("ReactDOM").findDOMNode(this.refs.taggerSummary),k.triggerElement))return;var l=c("ReactComposerTaggerStore").getTaggerData(this.context.composerID,c("ReactComposerTaggerType").ACTIVITY)||{};l.actionIconID=k.icon_id;l.actionIconURI=k.iconURI;c("ReactComposerTaggerActions").setTaggerDataWithoutLogging(this.context.composerID,c("ReactComposerTaggerType").ACTIVITY,l)}.bind(this))},componentWillUnmount:function j(){if(this._ogSubscription){this._ogSubscription.unsubscribe&&this._ogSubscription.unsubscribe();this._ogSubscription=null}},render:function j(){return c("React").createElement("div",{className:"_vww","data-testid":"tagger-summary"},c("React").createElement(c("ShareDialogTagSummary.react"),{ogObjectClick:this._ogObjectClick,onTagSummaryClick:this._onTagSummaryClick,peopleToExclude:c("immutable").Set([this.context.actorID]),placeTokenClick:this._placeTokenClick,politicalRepresentativeClick:this._onPoliticalRepresentativeClick,tagEventClick:this._onTagEventClick,ref:"taggerSummary",taggerData:c("immutable").Map({action:this.state.activity.action,actionIconID:this.state.activity.actionIconID,object:this.state.activity.object,people:this.state.people,place:this.state.place,products:this.state.products,sponsors:this.state.sponsors,politicalRepresentativeInfo:this.state.politicalRepresentativeInfo,issues:this.state.issues,tagEventData:this.state.tagEventData}),withTokenClick:this._withTokenClick}))},_withTokenClick:function j(){c("ReactComposerTaggerActions").selectTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_PEOPLE,c("ReactComposerTaggerType").PEOPLE)},_placeTokenClick:function j(){c("ReactComposerTaggerActions").selectTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_LOCATION,c("ReactComposerTaggerType").LOCATION)},_ogObjectClick:function j(){c("ReactComposerTaggerActions").selectTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_MINUTIAE,c("ReactComposerTaggerType").ACTIVITY)},_onTagSummaryClick:function j(){c("ReactComposerTaggerActions").deselectCurrentTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_ROW)},_onPoliticalRepresentativeClick:function j(){c("ReactComposerTaggerActions").selectTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_CONTACT_YOUR_REPRESENTATIVE,c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE)},_onTagEventClick:function j(){c("ReactComposerTaggerActions").selectTagger(this.context.composerID,c("ReactComposerLoggingName").TAGGER_SUMMARY_TAG_EVENT,c("ReactComposerTaggerType").TAG_EVENT)}});f.exports=i}),null);
__d("ReactComposerTaggers.react",["cx","React"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){"use strict";return c("React").createElement("div",{className:"_1idc"},this.props.children)};function k(){"use strict";i.apply(this,arguments)}f.exports=k}),null);
__d("DummySearchSource",["AbstractSearchSource"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AbstractSearchSource"));i=h&&h.prototype;j.prototype.searchImpl=function(k,l,m){"use strict";l([],k)};function j(){"use strict";h.apply(this,arguments)}f.exports=j}),null);
__d("ReactComposerActionTaggerItem.react",["cx","ImageBlock.react","React","TypeaheadViewItem","joinClasses"],(function a(b,c,d,e,f,g,h){var i=c("React").PropTypes,j=c("React").createClass({displayName:"ReactComposerActionTaggerItem",mixins:[c("TypeaheadViewItem").Mixin],propTypes:babelHelpers["extends"]({customIcon:i.object},c("TypeaheadViewItem").propTypes),render:function k(){var l=this.props.entry,m=l.getAuxiliaryData(),n=c("React").createElement("span",{dangerouslySetInnerHTML:m.icon||this.props.customIcon}),o="_599m _5mne"+(this.props.highlighted?" _599n":"")+" _18d1"+(this.props.highlighted?" _18d2":"");o=c("joinClasses")(o,this.props.className);return c("React").createElement("li",{"aria-selected":this.props.highlighted,className:o,onMouseDown:this._onSelect,onMouseEnter:this._onHighlight,role:this.props.role},c("React").createElement(c("ImageBlock.react"),{spacing:"medium"},n,c("React").createElement("div",{className:"_599p"},l.getTitle())),c("React").createElement("i",{className:"_18d3"}))}});f.exports=j}),null);
__d("ReactComposerActionTaggerView.react",["React","ReactComposerActionTaggerItem.react","ReactComposerTaggerViewMixin"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerActionTaggerView",mixins:[c("ReactComposerTaggerViewMixin")],getItemImpl:function i(){return c("ReactComposerActionTaggerItem.react")}});f.exports=h}),null);
__d("ReactComposerActionTaggerPresenter",["ReactComposerActionTaggerView.react"],(function a(b,c,d,e,f,g){f.exports={ViewRenderer:c("ReactComposerActionTaggerView.react"),useLayer:true,maxEntries:20}}),null);
__d("QueriesHistory",[],(function a(b,c,d,e,f,g){__p&&__p();function h(i){"use strict";this.$QueriesHistory1=i;this.reset()}h.prototype.getQueries=function(){"use strict";return this.$QueriesHistory2};h.prototype.getCurrentLength=function(){"use strict";return this.$QueriesHistory3};h.prototype.add=function(i){"use strict";this.$QueriesHistory2.push(i);this.$QueriesHistory3+=i.length;while(this.$QueriesHistory2.length!==0&&this.$QueriesHistory3>this.$QueriesHistory1){var j=this.$QueriesHistory2.shift();this.$QueriesHistory3-=j.length}};h.prototype.reset=function(){"use strict";this.$QueriesHistory3=0;this.$QueriesHistory2=[]};f.exports=h}),null);
__d("TypeaheadMetricCounter",[],(function a(b,c,d,e,f,g){__p&&__p();function h(){"use strict";this.reset()}h.prototype.reset=function(){"use strict";this.stats={};this.avgStats={}};h.prototype.recordStat=function(i,j){"use strict";this.stats[i]=j};h.prototype.recordCountStat=function(i){"use strict";var j=this.stats[i];this.stats[i]=j?j+1:1};h.prototype.recordAvgStat=function(i,j){"use strict";if(this.avgStats[i]){this.avgStats[i][0]+=j;this.avgStats[i][1]+=1}else this.avgStats[i]=[j,1]};h.prototype.hasStats=function(){"use strict";return!!Object.keys(this.stats).length};h.prototype.getStats=function(){"use strict";var i=babelHelpers["extends"]({},this.stats);for(var j in this.avgStats){var k=this.avgStats[j];i[j]=k[0]/k[1]}return i};f.exports=h}),null);
__d("TypeaheadMetricReporter",["AsyncRequest","QueriesHistory","TypeaheadMetricCounter","mixInEventEmitter"],(function a(b,c,d,e,f,g){__p&&__p();var h="/ajax/typeahead/record_basic_metrics.php",i=1e3;function j(k){"use strict";__p&&__p();this.counter=new(c("TypeaheadMetricCounter"))();this.extraData=Object.assign({},k);this.bootstrapped=false;this.bootstrapBegin=Date.now();this.queriesHistory=new(c("QueriesHistory"))(i);this.lastQuery=null;this.sessionActive=false;this.lastNotBackspacedQuery="";this.lastRequestID=null;this.requestIDHistory=[];this.$TypeaheadMetricReporter1()}j.prototype.getSID=function(){"use strict";return this.sid};j.prototype.sessionStart=function(){"use strict";this.sessionActive=true;this.sessionStartTime=Date.now()};j.prototype.sessionEnd=function(){"use strict";if(this.sessionActive){this.$TypeaheadMetricReporter2();this.$TypeaheadMetricReporter1();this.sessionActive=false}};j.prototype.setAdditionalStats=function(k){"use strict";if(k)Object.entries(k).forEach(function(l){var m=l[0],n=l[1];this.counter.recordStat(m,n)}.bind(this))};j.prototype.sessionPause=function(k){"use strict";if(this.sessionActive){this.setAdditionalStats(k);this.$TypeaheadMetricReporter2();this.sessionActive=false}};j.prototype.sessionDeactivate=function(){"use strict";this.sessionActive=false};j.prototype.reportSelect=function(k,l,m,n,o,p){"use strict";o=o==null?this.lastQuery:o;this.counter.recordStat("selected_id",k||"SELECT_NULL");this.counter.recordStat("selected_type",l);this.counter.recordStat("selected_position",m);this.counter.recordStat("selected_with_mouse",n?1:0);this.counter.recordStat("selected_query",o);for(var q in p)this.counter.recordStat(q,p[q])};j.prototype.reportStrategyName=function(k){"use strict";this.counter.recordStat("strategy_name",k)};j.prototype.reportBootstrapBegin=function(){"use strict";this.bootstrapBegin=Date.now()};j.prototype.reportBootstrapDirty=function(){"use strict";this.bootstrapped=false};j.prototype.reportBootstrapComplete=function(k){"use strict";this.counter.recordAvgStat("bootstrap_latency",Date.now()-this.bootstrapBegin);var l={};k.forEach(function(m){l[m]=(l[m]||0)+1});this.counter.recordStat("bootstrap_response_types",l);this.bootstrapped=true};j.prototype.reportQueryBegin=function(k){"use strict";this.counter.recordStat("query",k);this.counter.recordCountStat("num_queries");this.queriesHistory.add(k);if(this.lastNotBackspacedQuery.indexOf(k)!==0)this.lastNotBackspacedQuery=k;this.lastQuery=k;this.lastQueryTime=Date.now()};j.prototype.reportRequestID=function(k){"use strict";this.lastRequestID=k;this.requestIDHistory.push(k)};j.prototype.reportQueryComplete=function(k,l){"use strict";this.counter.recordAvgStat("avg_query_latency",k);if(l!==undefined)this.counter.recordStat("filtered_count",l)};j.prototype.reportResults=function(k,l){"use strict";this.results=k;if(l===this.lastQuery)this.counter.recordStat("last_query_latency",Date.now()-this.lastQueryTime)};j.prototype.reportResultsAds=function(k){"use strict";this.resultsAds=k};j.prototype.$TypeaheadMetricReporter1=function(){"use strict";__p&&__p();this.sid=Math.floor(Date.now()*Math.random());this.lastNotBackspacedQuery="";this.queriesHistory.reset();this.results=null;this.resultsAds=null;this.lastRequestID=null;this.requestIDHistory=[];this.counter.reset();this.emit&&this.emit("reset",{sid:this.sid})};j.prototype.$TypeaheadMetricReporter3=function(){"use strict";var k={};for(var l in this.extraData){var m=this.extraData[l];k[l]=typeof m==="function"?m():m}return k};j.prototype.$TypeaheadMetricReporter2=function(){"use strict";__p&&__p();if(this.counter.hasStats()){this.counter.recordStat("session_time",Date.now()-this.sessionStartTime);if(this.results)this.counter.recordStat("candidate_results",JSON.stringify(this.results));if(this.resultsAds)this.counter.recordStat("candidate_results_ads",JSON.stringify(this.resultsAds));if(this.sid)this.counter.recordStat("sid",this.sid);if(this.lastNotBackspacedQuery)this.counter.recordStat("last_not_backspaced_query",this.lastNotBackspacedQuery);this.counter.recordStat("queries_history",JSON.stringify(this.queriesHistory.getQueries()));if(this.bootstrapped)this.counter.recordStat("bootstrapped",1);if(this.lastRequestID)this.counter.recordStat("request_id",this.lastRequestID);if(this.requestIDHistory.length)this.counter.recordStat("request_ids",this.requestIDHistory);var k=babelHelpers["extends"]({},this.counter.getStats(),this.$TypeaheadMetricReporter3());new(c("AsyncRequest"))().setURI(h).setMethod("POST").setData({stats:k}).send();this.emit&&this.emit("submitted",k)}};c("mixInEventEmitter")(j,{reset:true,submitted:true});f.exports=j}),null);
__d("WebAsyncSearchSourceWithMetrics",["AbstractAsyncSearchSource","AbstractSearchSource","AsyncRequest","Map","TypeaheadMetricReporter","WebAsyncSearchSourceUtils","uuid"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AbstractSearchSource"));i=h&&h.prototype;function j(k,l){"use strict";i.constructor.call(this);this.$WebAsyncSearchSourceWithMetrics1=new(c("AbstractAsyncSearchSource"))(k,this.$WebAsyncSearchSourceWithMetrics4.bind(this),c("WebAsyncSearchSourceUtils").normalizeResponse);this.$WebAsyncSearchSourceWithMetrics2=new(c("TypeaheadMetricReporter"))(l);this.$WebAsyncSearchSourceWithMetrics3=new(c("Map"))();this.$WebAsyncSearchSourceWithMetrics2.addListener&&this.$WebAsyncSearchSourceWithMetrics2.addListener("reset",function(m){this.$WebAsyncSearchSourceWithMetrics1.setRequestData({sid:m.sid})}.bind(this))}j.prototype.bootstrapImpl=function(k){"use strict";this.$WebAsyncSearchSourceWithMetrics2.reportBootstrapBegin();this.$WebAsyncSearchSourceWithMetrics1.bootstrap(function(){this.$WebAsyncSearchSourceWithMetrics1.getBootstrappedEntries(function(l){this.$WebAsyncSearchSourceWithMetrics2.reportBootstrapComplete(l.map(function(m){return m.getType()}));k()}.bind(this))}.bind(this))};j.prototype.searchImpl=function(k,l,m){"use strict";this.$WebAsyncSearchSourceWithMetrics2.reportQueryBegin(k);if(m)this.$WebAsyncSearchSourceWithMetrics2.reportStrategyName(m.strategyName);var n=Date.now();this.$WebAsyncSearchSourceWithMetrics1.search(k,function(o,k,p){this.$WebAsyncSearchSourceWithMetrics2.reportQueryComplete(Date.now()-n,0);l(o,k,p)}.bind(this),m)};j.prototype.getBootstrappedEntries=function(k){"use strict";return this.$WebAsyncSearchSourceWithMetrics1.getBootstrappedEntries(k)};j.prototype.getAllEntriesMap=function(){"use strict";return this.$WebAsyncSearchSourceWithMetrics1.getAllEntriesMap()};j.prototype.getTypeaheadSessionID=function(){"use strict";return this.$WebAsyncSearchSourceWithMetrics2.getSID()};j.prototype.setRequestData=function(k){"use strict";this.$WebAsyncSearchSourceWithMetrics1.setRequestData(k)};j.prototype.sessionStart=function(){"use strict";this.$WebAsyncSearchSourceWithMetrics2.sessionStart()};j.prototype.sessionEnd=function(){"use strict";this.$WebAsyncSearchSourceWithMetrics2.sessionEnd()};j.prototype.reportResults=function(k){"use strict";this.$WebAsyncSearchSourceWithMetrics2.reportResults(k)};j.prototype.reportSelect=function(k,l,m,n,o,p){"use strict";this.$WebAsyncSearchSourceWithMetrics2.reportSelect(k,l,m,n,o,p)};j.prototype.reportRequestID=function(k){"use strict";this.$WebAsyncSearchSourceWithMetrics2.reportRequestID(this.$WebAsyncSearchSourceWithMetrics5(k))};j.prototype.$WebAsyncSearchSourceWithMetrics5=function(k){"use strict";var l=k;while(l.length>0){if(this.$WebAsyncSearchSourceWithMetrics3.has(l))return this.$WebAsyncSearchSourceWithMetrics3.get(l);l=l.slice(0,-1)}return this.$WebAsyncSearchSourceWithMetrics3.get("")};j.prototype.$WebAsyncSearchSourceWithMetrics4=function(k,l,m,n){"use strict";var o=k.value||"",p=c("uuid")();new(c("AsyncRequest"))(l.uri).setData(babelHelpers["extends"]({request_id:p},k,l.data)).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setInitialHandler(function(){this.$WebAsyncSearchSourceWithMetrics3.set(o,p)}.bind(this)).setHandler(m).setErrorHandler(n).send()};f.exports=j}),null);
__d("ReactComposerActionTaggerComponent.react",["cx","fbt","BasicTypeaheadLoggerJSConstants","DummySearchSource","React","ReactComposerActionTaggerPresenter","ReactComposerTaggerViewStyles","WebAsyncSearchSourceWithMetrics","XUITypeahead.react","emptyFunction"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("BasicTypeaheadLoggerJSConstants").Fields,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(o){"use strict";__p&&__p();k.constructor.call(this,o);this.$ReactComposerActionTaggerComponent1=function(p,event){var q={};q[l.SELECTED_ORIGINAL_ID]=p.getAuxiliaryData().original_id;q[l.PLACE_ID]=this.props.placeID;this.props.taggerSource.reportSelect(p.getUniqueID(),p.getType(),p.getOrder(),!!event&&event.button>=0,this.state.query,q);this.props.taggerSource.sessionEnd();this.setState({query:p.getTitle()});this.props.onSelect&&this.props.onSelect(p)}.bind(this);this.$ReactComposerActionTaggerComponent2=function(){this.setState({query:""});this.props.onSelect&&this.props.onSelect(null)}.bind(this);this.$ReactComposerActionTaggerComponent3=function(event){this.setState({query:event.target.value})}.bind(this);this.$ReactComposerActionTaggerComponent4=function(){this.props.taggerSource.sessionEnd()}.bind(this);this.$ReactComposerActionTaggerComponent5=function(){this.props.taggerSource.sessionStart()}.bind(this);this.$ReactComposerActionTaggerComponent6=function(p,q){this.props.taggerSource.reportRequestID(this.state.query);this.props.taggerSource.reportResults(p.map(function(r){return r.getUniqueID()}))}.bind(this);this.$ReactComposerActionTaggerComponent7=function(){this.props.taggerSource.reportRequestID(this.state.query)}.bind(this);o.taggerSource.sessionStart();this.state={query:""}}n.prototype.componentWillUnmount=function(){"use strict";this.props.taggerSource.sessionEnd()};n.prototype.render=function(){"use strict";return c("React").createElement("div",{className:"_3uco _5esl"},c("React").createElement(c("XUITypeahead.react"),{presenter:this.$ReactComposerActionTaggerComponent8(),focusedOnInit:this.props.autoFocus,showEntriesOnFocus:true,placeholder:i._("Choose a feeling or activity..."),className:"_5esx _3ucr",queryString:this.state.query,searchSource:this.props.taggerSource,highlightOnSelect:true,onSelectAttempt:this.$ReactComposerActionTaggerComponent1,onClear:this.$ReactComposerActionTaggerComponent2,onChange:this.$ReactComposerActionTaggerComponent3,onBlur:this.$ReactComposerActionTaggerComponent4,onFocus:this.$ReactComposerActionTaggerComponent5,onEntriesFound:this.$ReactComposerActionTaggerComponent6,onNoEntriesFound:this.$ReactComposerActionTaggerComponent7,tallInput:true,autoHighlight:true}))};n.prototype.$ReactComposerActionTaggerComponent8=function(){"use strict";var o={taggerViewStyle:this.props.taggerViewStyle};return Object.assign({},c("ReactComposerActionTaggerPresenter"),{layerPosition:this.props.layerPosition||undefined,extraRendererProps:o})};n.propTypes={autoFocus:m.bool,onSelect:m.func,placeID:m.string,taggerSource:m.instanceOf(c("WebAsyncSearchSourceWithMetrics")).isRequired,taggerViewStyle:m.shape(c("ReactComposerTaggerViewStyles").Shape)};n.defaultProps={autoFocus:true,onSelect:c("emptyFunction"),taggerSource:new(c("DummySearchSource"))(),taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT};f.exports=n}),null);
__d("ReactComposerActivityTaggerButton.react",["cx","fbt","React","ReactComposerLoggingName","ReactComposerTaggerButtonMixin","ReactComposerTaggerType"],(function a(b,c,d,e,f,g,h,i){var j=c("React").createClass({displayName:"ReactComposerActivityTaggerButton",mixins:[c("ReactComposerTaggerButtonMixin")],statics:{taggerID:c("ReactComposerTaggerType").ACTIVITY,loggingName:c("ReactComposerLoggingName").MINUTIAE_TAGGER},getTitle:function k(){return i._("Add what you're doing or how you're feeling")},getTooltip:function k(){return i._("Add what you're doing or how you're feeling")},getClassName:function k(){return"_3tdo"}});f.exports=j}),null);
__d("ReactComposerObjectTaggerItem.react",["cx","BackgroundImage.react","Badge.react","ImageBlock.react","Locale","React","TypeaheadViewItem","UnicodeBidi","joinClasses"],(function a(b,c,d,e,f,g,h){var i=c("React").createClass({displayName:"ReactComposerObjectTaggerItem",mixins:[c("TypeaheadViewItem").Mixin],propTypes:c("TypeaheadViewItem").propTypes,render:function j(){var k=this.props.entry,l=k.getSubtitle()?c("React").createElement("div",{className:"_599q"},k.getSubtitle()):null,m=k.getPhoto()?c("React").createElement(c("BackgroundImage.react"),{width:32,height:32,backgroundSize:"cover",src:k.getPhoto()}):c("React").createElement("span",null),n=k.getAuxiliaryData(),o=n&&n.verified?c("React").createElement(c("Badge.react"),null):null,p=n&&n.icon?c("React").createElement("span",{className:"_mbq",dangerouslySetInnerHTML:n.icon}):null,q="_599m"+(!l?" _5mne":"")+(this.props.highlighted?" _599n":"");q=c("joinClasses")(q,this.props.className);var r=c("UnicodeBidi").isDirectionRTL(k.getTitle()),s=c("Locale").isRTL(),t=r&&!s?"rtl":!r&&s?"ltr":null;return c("React").createElement("li",{"aria-selected":this.props.highlighted,className:q,onMouseDown:this._onSelect,onMouseEnter:this._onHighlight,role:this.props.role},c("React").createElement(c("ImageBlock.react"),{spacing:"medium"},m,c("React").createElement("div",null,c("React").createElement("div",{className:"_599p",dir:t},k.getTitle(),o),l),p))}});f.exports=i}),null);
__d("ReactComposerObjectTaggerView.react",["React","ReactComposerActionTaggerItem.react","ReactComposerObjectTaggerItem.react","ReactComposerTaggerViewMixin"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerObjectTaggerView",mixins:[c("ReactComposerTaggerViewMixin")],getItemImpl:function i(){return c("ReactComposerObjectTaggerItem.react")},getRegexItemImpl:function i(){return c("ReactComposerActionTaggerItem.react")}});f.exports=h}),null);
__d("ReactComposerObjectTaggerPresenter",["ReactComposerObjectTaggerView.react"],(function a(b,c,d,e,f,g){f.exports={ViewRenderer:c("ReactComposerObjectTaggerView.react"),useLayer:true,maxEntries:120}}),null);
__d("RegexMatchSearchSource",["AbstractSearchSource","SearchableEntry"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AbstractSearchSource"));i=h&&h.prototype;function j(k,l,m){"use strict";i.constructor.call(this);this.$RegexMatchSearchSource2=new RegExp(k);this.$RegexMatchSearchSource3=l||"";this.$RegexMatchSearchSource1=m||{}}j.prototype.searchImpl=function(k,l,m){"use strict";if(k&&this.$RegexMatchSearchSource2.test(k)){var n=new(c("SearchableEntry"))({uniqueID:k,title:k,type:this.$RegexMatchSearchSource3,auxiliaryData:babelHelpers["extends"]({},this.$RegexMatchSearchSource1,{isRegexEntry:true})});l([n],k);return}l([],k)};f.exports=j}),null);
__d("WebAsyncPlusRegexSearchSource",["invariant","AbstractSearchSource"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("AbstractSearchSource"));j=i&&i.prototype;function k(l){"use strict";j.constructor.call(this);this.$WebAsyncPlusRegexSearchSource1=l.asyncSource;this.$WebAsyncPlusRegexSearchSource2=l.regexSource;this.$WebAsyncPlusRegexSearchSource3=!!l.appendRegexEntries;this.$WebAsyncPlusRegexSearchSource4=!!l.preferRegexEntries;!!this.$WebAsyncPlusRegexSearchSource1||h(0);!!this.$WebAsyncPlusRegexSearchSource2||h(0)}k.prototype.bootstrapImpl=function(l){"use strict";this.$WebAsyncPlusRegexSearchSource1.bootstrap(l)};k.prototype.$WebAsyncPlusRegexSearchSource5=function(l,m){"use strict";__p&&__p();var n=[],o=false,p;for(var q=0;q<l.length;q++){p=l[q].getTitle();for(var r=0;r<m.length;r++)if(p===m[r].getTitle()){o=true;break}if(!o)n.push(l[q]);else o=false}return n};k.prototype.searchImpl=function(l,m,n){"use strict";__p&&__p();var o=this.$WebAsyncPlusRegexSearchSource1,p=this.$WebAsyncPlusRegexSearchSource3,q=this.$WebAsyncPlusRegexSearchSource4,r=this.$WebAsyncPlusRegexSearchSource5;this.$WebAsyncPlusRegexSearchSource2.search(l,function(s){__p&&__p();m(s,l);o.search(l,function(t){__p&&__p();var u=[],v=[];if(q){u=s;v=r(t,s)}else{v=t;u=r(s,t)}var w=p?v.concat(u):u.concat(v);m(w,l)},n)},n)};f.exports=k}),null);
__d("ReactComposerObjectTaggerComponent.react",["cx","DummySearchSource","Grid.react","ReactComposerObjectTaggerPresenter","ReactComposerTaggerViewStyles","React","RegexMatchSearchSource","BasicTypeaheadLoggerJSConstants","WebAsyncPlusRegexSearchSource","WebAsyncSearchSourceWithMetrics","XUITypeahead.react","emptyFunction"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("Grid.react").GridItem,l=c("BasicTypeaheadLoggerJSConstants").Fields,m=c("React").PropTypes;i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;function n(o){"use strict";__p&&__p();j.constructor.call(this,o);this.$ReactComposerObjectTaggerComponent1=function(u,event){var v={};v[l.SELECTED_ORIGINAL_ID]=u.getAuxiliaryData().original_id;v[l.PLACE_ID]=this.props.placeID;this.props.taggerSource.reportSelect(u.getUniqueID(),u.getType(),u.getOrder(),!!event&&event.button>=0,this.state.query,v);this.props.taggerSource.sessionEnd();this.setState({query:u.getTitle()});this.props.onSelect(u)}.bind(this);this.$ReactComposerObjectTaggerComponent2=function(event){if(this.props.object&&this.props.object.getTitle()===event.target.value)this.props.onSelect(null);if(event.target.value==="")this.props.onEmptyBackspace()}.bind(this);this.$ReactComposerObjectTaggerComponent3=function(){this.setState({query:""});this.props.onClear()}.bind(this);this.$ReactComposerObjectTaggerComponent4=function(event){this.setState({query:event.target.value})}.bind(this);this.$ReactComposerObjectTaggerComponent5=function(){this.props.onPrefixClick()}.bind(this);this.$ReactComposerObjectTaggerComponent6=function(){this.props.taggerSource.sessionEnd()}.bind(this);this.$ReactComposerObjectTaggerComponent7=function(){setTimeout(function(){this.props.taggerSource.sessionStart()}.bind(this),0)}.bind(this);this.$ReactComposerObjectTaggerComponent8=function(u,v){this.props.taggerSource.reportRequestID(this.state.query);this.props.taggerSource.reportResults(u.map(function(w){return w.getUniqueID()}))}.bind(this);this.$ReactComposerObjectTaggerComponent9=function(){this.props.taggerSource.reportRequestID(this.state.query)}.bind(this);var p=o.taggerSource,q=o.action.getUniqueID(),r=o.actionTypeIDsWithNoFreeForm,s=!r[q];if(s){var t=new(c("RegexMatchSearchSource"))(".+");p=new(c("WebAsyncPlusRegexSearchSource"))({asyncSource:p,regexSource:t,appendRegexEntries:true})}setTimeout(function(){o.taggerSource.sessionStart()},0);this.state={query:o.object?o.object.getTitle():"",searchSource:p}}n.prototype.componentWillUnmount=function(){"use strict";this.props.taggerSource.sessionEnd()};n.prototype.focusInput=function(){"use strict";var o=this.refs.objectTypeahead;if(o)o.focusInput&&o.focusInput()};n.prototype.render=function(){"use strict";var o=this.props.action.getAuxiliaryData(),p=o?o.prompt:"";return c("React").createElement(c("Grid.react"),{cols:2,className:"_5esl"},c("React").createElement(k,{className:"_5esm _4zdy",key:"prefix",role:"presentation",onClick:this.$ReactComposerObjectTaggerComponent5},this.props.action.getTitle()),c("React").createElement(k,{className:"_5esw",key:"suffix"},c("React").createElement(c("XUITypeahead.react"),{ref:"objectTypeahead",presenter:this.$ReactComposerObjectTaggerComponent10(),clearable:true,focusedOnInit:this.props.autoFocus,autoHighlight:true,showEntriesOnFocus:true,placeholder:p,selectedEntry:this.props.object,className:"_5esx _4zdz",queryString:this.state.query,searchSource:this.state.searchSource,highlightOnSelect:true,onSelectAttempt:this.$ReactComposerObjectTaggerComponent1,onBackspace:this.$ReactComposerObjectTaggerComponent2,onClear:this.$ReactComposerObjectTaggerComponent3,onChange:this.$ReactComposerObjectTaggerComponent4,onBlur:this.$ReactComposerObjectTaggerComponent6,onEntriesFound:this.$ReactComposerObjectTaggerComponent8,onNoEntriesFound:this.$ReactComposerObjectTaggerComponent9,onFocus:this.$ReactComposerObjectTaggerComponent7,tallInput:false})))};n.prototype.$ReactComposerObjectTaggerComponent10=function(){"use strict";var o={};o.taggerViewStyle=this.props.taggerViewStyle;o.customIcon=this.props.action.getAuxiliaryData().icon;return Object.assign({},c("ReactComposerObjectTaggerPresenter"),{layerPosition:this.props.layerPosition||undefined,extraRendererProps:o})};n.propTypes={action:m.object.isRequired,actionTypeIDsWithNoFreeForm:m.object.isRequired,autoFocus:m.bool,object:m.object,onClear:m.func.isRequired,onEmptyBackspace:m.func.isRequired,onPrefixClick:m.func.isRequired,onSelect:m.func.isRequired,placeID:m.string,taggerSource:m.instanceOf(c("WebAsyncSearchSourceWithMetrics")).isRequired,taggerViewStyle:m.shape(c("ReactComposerTaggerViewStyles").Shape)};n.defaultProps={actionTypeIDsWithNoFreeForm:{},autoFocus:true,onClear:c("emptyFunction"),onEmptyBackspace:c("emptyFunction"),onPrefixClick:c("emptyFunction"),onSelect:c("emptyFunction"),taggerSource:new(c("DummySearchSource"))(),taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT};f.exports=n}),null);
__d("ReactComposerObjectTaggerContainer.react",["React","ReactComposerObjectTaggerComponent.react","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerTaggerStore","ReactComposerTaggerType","ReactComposerTaggerViewStyles","emptyFunction"],(function a(b,c,d,e,f,g){var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerObjectTaggerContainer",mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerTaggerStore"))],propTypes:{action:h.object.isRequired,autoFocus:h.bool,onClear:h.func.isRequired,onEmptyBackspace:h.func.isRequired,onPrefixClick:h.func.isRequired,onSelect:h.func.isRequired,object:h.object,taggerViewStyle:h.shape(c("ReactComposerTaggerViewStyles").Shape)},getDefaultProps:function j(){return{autoFocus:true,onClear:c("emptyFunction"),onEmptyBackspace:c("emptyFunction"),onPrefixClick:c("emptyFunction"),onSelect:c("emptyFunction"),taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT}},statics:{calculateState:function j(k,l){var m=c("ReactComposerTaggerStore").getTaggerSource(k,c("ReactComposerTaggerType").OG);return{taggerSource:m}}},render:function j(){return c("React").createElement(c("ReactComposerObjectTaggerComponent.react"),babelHelpers["extends"]({ref:"objectTagger"},this.props,{taggerSource:this.state.taggerSource}))},focusInput:function j(){var k=this.refs.objectTagger;k&&k.focusInput()}});f.exports=i}),null);
__d("ReactComposerActivityTaggerComponent.react",["DummySearchSource","React","ReactComposerActionTaggerComponent.react","ReactComposerObjectTaggerContainer.react","ReactComposerTaggerViewStyles","WebAsyncSearchSourceWithMetrics","emptyFunction"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(){__p&&__p();var l,m;"use strict";for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.state={action:this.props.taggerData.action,object:this.props.taggerData.object},this.$ReactComposerActivityTaggerComponent3=function(q){this.props.onSelect&&this.props.onSelect(this.getTaggerData(q,null));this.setState({action:q})}.bind(this),this.$ReactComposerActivityTaggerComponent2=function(q){this.props.onSelect&&this.props.onSelect(this.getTaggerData(this.state.action,q));this.setState({object:q})}.bind(this),this.$ReactComposerActivityTaggerComponent1=function(){this.props.onSelect&&this.props.onSelect(this.getTaggerData(null,null));this.setState({action:null,object:null})}.bind(this),m}k.prototype.componentDidUpdate=function(){"use strict";if(this.state.action&&!this.state.object){var l=this.refs.objectTagger;l&&l.focusInput()}};k.prototype.componentWillUnmount=function(){"use strict";if(this.state.action&&!this.state.object)this.$ReactComposerActivityTaggerComponent1()};k.prototype.render=function(){"use strict";if(this.state.action)return c("React").createElement(c("ReactComposerObjectTaggerContainer.react"),{ref:"objectTagger",action:this.state.action,actionTypeIDsWithNoFreeForm:this.props.actionTypeIDsWithNoFreeForm,autoFocus:this.props.autoFocus,layerPosition:this.props.layerPosition,object:this.state.object,onClear:this.$ReactComposerActivityTaggerComponent1,onEmptyBackspace:this.$ReactComposerActivityTaggerComponent1,onPrefixClick:this.$ReactComposerActivityTaggerComponent1,onSelect:this.$ReactComposerActivityTaggerComponent2,placeID:this.props.placeID,taggerViewStyle:this.props.objectTaggerViewStyle});return c("React").createElement(c("ReactComposerActionTaggerComponent.react"),{autoFocus:this.props.autoFocus,layerPosition:this.props.layerPosition,onSelect:this.$ReactComposerActivityTaggerComponent3,placeID:this.props.placeID,taggerSource:this.props.taggerSource,taggerViewStyle:this.props.actionTaggerViewStyle})};k.prototype.getTaggerData=function(l,m){"use strict";var n=this.props.taggerData;n.action=l;n.object=m;return n};k.propTypes={actionTypeIDsWithNoFreeForm:j.object.isRequired,actorID:j.string.isRequired,autoFocus:j.bool,placeID:j.string,taggerData:j.object.isRequired,taggerSource:j.instanceOf(c("WebAsyncSearchSourceWithMetrics")).isRequired,onSelect:j.func.isRequired,actionTaggerViewStyle:j.shape(c("ReactComposerTaggerViewStyles").Shape),objectTaggerViewStyle:j.shape(c("ReactComposerTaggerViewStyles").Shape)};k.defaultProps={actionTypeIDsWithNoFreeForm:{},autoFocus:true,taggerData:{},taggerSource:new(c("DummySearchSource"))(),onSelect:c("emptyFunction"),actionTaggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT,objectTaggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT};f.exports=k}),null);
__d("ReactComposerTypeaheadSearchSourceType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ACTIVITY:"ACTIVITY",LOCATION:"LOCATION"})}),null);
__d("ReactComposerActivityTaggerContainer.react",["Arbiter","BasicTypeaheadLoggerJSConstants","Map","MinutiaeVerbs","React","ReactComposerActivityTaggerComponent.react","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerEvents","ReactComposerLocationAttachmentActions","ReactComposerLoggingName","ReactComposerMinutiaeAttachmentActions","ReactComposerTaggerActions","ReactComposerTaggerContainerMixin","ReactComposerTaggerType","ReactComposerTaggerViewStyles","ReactComposerTypeaheadSearchSourceConfig","ReactComposerTypeaheadSearchSourceType","WebAsyncSearchSourceWithMetrics","getObjectValues"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerActivityTaggerContainer",_actionTypeSearchSources:new(c("Map"))(),_objectSearchSources:new(c("Map"))(),_searchSourceConfig:null,mixins:[c("ReactComposerTaggerContainerMixin")()],statics:{taggerID:c("ReactComposerTaggerType").ACTIVITY,loggingName:c("ReactComposerLoggingName").MINUTIAE_TAGGER,taggerComponent:c("ReactComposerActivityTaggerComponent.react"),enableHideOnEscape:true,webDriverTestID:"activity-tagger-component"},propTypes:{actionTypeIDsToPrefetch:h.array.isRequired,actionTypeIDsWithNoFreeForm:h.object.isRequired,isPersonalTimeline:h.bool,rankVerbs:h.bool,placeID:h.string,typeaheadLoggerEventName:h.oneOf(c("getObjectValues")(c("BasicTypeaheadLoggerJSConstants").EventNames)).isRequired,actionTaggerViewStyle:h.shape(c("ReactComposerTaggerViewStyles").Shape),objectTaggerViewStyle:h.shape(c("ReactComposerTaggerViewStyles").Shape)},getDefaultProps:function j(){return{actionTypeIDsToPrefetch:[],actionTypeIDsWithNoFreeForm:{},isPersonalTimeline:false,placeID:null,rankVerbs:false,actionTaggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT,objectTaggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT}},getInitialState:function j(){return{hasDoneInitialObjectPrefetch:false}},componentWillMount:function j(){this._searchSourceConfig=c("ReactComposerTypeaheadSearchSourceConfig")[c("ReactComposerTypeaheadSearchSourceType").ACTIVITY];this._updateActionTypeSearchSource(this.props.placeID);this.state.taggerData&&this.__onTaggerDataChanged(this.state.taggerData)},componentWillReceiveProps:function j(k){if(k.placeID!==this.props.placeID){this._updateActionTypeSearchSource(k.placeID);this._prefetchObjectSearchSources(k.placeID)}},componentWillUpdate:function j(k,l){__p&&__p();if(!this.state.isSelected&&l.isSelected){var m=this._actionTypeSearchSources.get(this.props.placeID).getTypeaheadSessionID();this._createAndBootstrapActionTypeSearchSource(this.props.placeID,{sid:m});var n=this.state.hasDoneInitialObjectPrefetch||l.hasDoneInitialObjectPrefetch;if(!n)this._prefetchObjectSearchSources(this.props.placeID);var o=l.taggerData;if(o.action)this._updateObjectSearchSource(o.action.getUniqueID())}},_suppressUpdateLogging:function j(k){return k.action&&!k.object},__onTaggerDataChanged:function j(k){__p&&__p();if(k.action){this._updateObjectSearchSource(k.action.getUniqueID());if(!k.object){var l=this._objectSearchSources.get(k.action.getUniqueID()).getTypeaheadSessionID();this._createAndBootstrapObjectSearchSource(k.action.getUniqueID(),this.props.placeID,{sid:l})}}if(k.action&&k.object){c("ReactComposerTaggerActions").deselectCurrentTagger(this.context.composerID,this.constructor.loggingName);var m=this._shouldFetchMinutiaeAttachment(k.action,k.object);if(k.shouldRemoveDefaultAttachment)m=false;if(m){if(k.action.getUniqueID()==c("MinutiaeVerbs").COMPOSER_TRAVELS.toString())c("ReactComposerLocationAttachmentActions").setMinutiaeActionContext(this.context.composerID,k.object.getUniqueID(),!!this.props.isPersonalTimeline);else this._clearMinutiaeLocation();c("ReactComposerMinutiaeAttachmentActions").fetchMinutiaeAttachment(this.context.composerID,k.action.getUniqueID(),k.object.getUniqueID(),this.context.targetID,this.context.actorID,!!this.props.isPersonalTimeline);setTimeout(function(){c("Arbiter").inform(c("ReactComposerEvents").ACTIVATE_ATTACHMENT+this.context.composerID)}.bind(this),0)}}else{c("ReactComposerMinutiaeAttachmentActions").setMarkup(this.context.composerID,null);this._clearMinutiaeLocation()}},_clearMinutiaeLocation:function j(){c("ReactComposerLocationAttachmentActions").setMinutiaeActionContext(this.context.composerID,null,!!this.props.isPersonalTimeline)},_shouldFetchMinutiaeAttachment:function j(k,l){var m=c("ReactComposerAttachmentStore").getIsAttachmentSelected(this.context.composerID,c("ReactComposerAttachmentType").STATUS);if(!m)return false;if(l.getAuxiliaryData().isRegexEntry)return false;return true},_updateActionTypeSearchSource:function j(k){var l=null;if(this._actionTypeSearchSources.has(k))l=this._actionTypeSearchSources.get(k);else{l=this._createAndBootstrapActionTypeSearchSource(k,{is_prefetching:true});this._actionTypeSearchSources.set(k,l)}c("ReactComposerTaggerActions").setTaggerSource(this.context.composerID,c("ReactComposerTaggerType").ACTIVITY,l)},_createAndBootstrapActionTypeSearchSource:function j(k,l){var m="/ajax/metacomposer/attachment/og/typeahead/bootstrap/action_type_loader",n={place_id:k,rank_verbs:this.props.rankVerbs,viewer:this.props.actorID},o={getAllForEmptyQuery:true,bootstrapRequests:[{uri:m,data:Object.assign({},n)}],queryRequests:[],auxiliaryFields:this._searchSourceConfig.action&&this._searchSourceConfig.action.auxiliaryFields};if(this.props.rankVerbs)o.queryRequests=[{uri:m,data:Object.assign({},n)}];var p={event_name:this.props.typeaheadLoggerEventName,minutiae_composer_version:c("BasicTypeaheadLoggerJSConstants").MinutiaeComposerVersions.REACT,at_id:c("MinutiaeVerbs").COMPOSER_SELECTS_VERB},q=new(c("WebAsyncSearchSourceWithMetrics"))(o,p),r=q.getTypeaheadSessionID();q.setRequestData(l);q.bootstrap();q.setRequestData({sid:r});return q},_prefetchObjectSearchSources:function j(k){var l=this.props.actionTypeIDsToPrefetch,m=new(c("Map"))();l.forEach(function(n){var o=this._createAndBootstrapObjectSearchSource(n,k,{is_prefetching:true});m.set(n,o)}.bind(this));this._objectSearchSources=m;this.setState({hasDoneInitialObjectPrefetch:true})},_updateObjectSearchSource:function j(k){var l=null;if(this._objectSearchSources.has(k))l=this._objectSearchSources.get(k);else{l=this._createAndBootstrapObjectSearchSource(k,this.props.placeID,{is_prefetching:false});this._objectSearchSources.set(k,l)}c("ReactComposerTaggerActions").setTaggerSource(this.context.composerID,c("ReactComposerTaggerType").OG,l)},_createAndBootstrapObjectSearchSource:function j(k,l,m){var n="/ajax/metacomposer/attachment/og/typeahead/query/object_loader",o={at_id:k,place_id:l,viewer:this.props.actorID},p={getAllForEmptyQuery:true,bootstrapRequests:[{uri:n,data:Object.assign({},o,{is_bootstrap:true})}],queryRequests:[{uri:n,data:Object.assign({},o,{is_bootstrap:false})}],auxiliaryFields:this._searchSourceConfig.object&&this._searchSourceConfig.object.auxiliaryFields},q={event_name:this.props.typeaheadLoggerEventName,minutiae_composer_version:c("BasicTypeaheadLoggerJSConstants").MinutiaeComposerVersions.REACT,at_id:k},r=new(c("WebAsyncSearchSourceWithMetrics"))(p,q),s=r.getTypeaheadSessionID();r.setRequestData(m);r.bootstrap();r.setRequestData({sid:s});return r}});f.exports=i}),null);
__d("ReactComposerImplicitLocationComponent.react",["cx","React","XUICloseButton.react","emptyFunction"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("React").PropTypes,j=c("React").createClass({displayName:"ReactComposerImplicitLocationComponent",propTypes:{caption:i.string.isRequired,hasExplicitLocation:i.bool,onClear:i.func},defaultProps:{onClear:c("emptyFunction")},render:function k(){if(!this.props.caption)return c("React").createElement("noscript",null);var l=this.props.hasExplicitLocation?null:c("React").createElement(c("XUICloseButton.react"),{className:"_3s32",size:"small",onClick:this._onClear}),m="_3s33"+(this.props.hasExplicitLocation?" _3s34":"");return c("React").createElement("span",{className:m},c("React").createElement("span",null,this.props.caption.split(",")[0]),l)},_onClear:function k(event){event.stopPropagation();this.props.onClear&&this.props.onClear()}});f.exports=j}),null);
__d("ReactComposerImplicitLocationContainer.react",["AsyncRequest","React","ReactComposerImplicitLocationComponent.react","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerTaggerActions","ReactComposerTaggerStore","ReactComposerTaggerType","URI"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").createClass({displayName:"ReactComposerImplicitLocationContainer",mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerTaggerStore"))],statics:{calculateState:function i(j,k){var l=c("ReactComposerTaggerStore").getTaggerData(j,c("ReactComposerTaggerType").LOCATION)||{},m=l.implicitLocation||{};return{caption:m.citystring,hasExplicitLocation:!!l.place}}},render:function i(){if(!this.state.caption)return c("React").createElement("noscript",null);return c("React").createElement(c("ReactComposerImplicitLocationComponent.react"),babelHelpers["extends"]({},this.state,{onClear:this._onClear}))},_onClear:function i(){var j=c("ReactComposerTaggerStore").getTaggerData(this.context.composerID,c("ReactComposerTaggerType").LOCATION)||{};j.implicitLocation=null;c("ReactComposerTaggerActions").setTaggerDataWithoutLogging(this.context.composerID,c("ReactComposerTaggerType").LOCATION,j);var k=new(c("URI"))("/ajax/places/toggle_location_sharing").addQueryData({disable:1,session_id:j.sessionID});new(c("AsyncRequest"))(k).send()}});f.exports=h}),null);
__d("ReactComposerLocationSearchSource",["ReactComposerTypeaheadSearchSourceConfig","ReactComposerTypeaheadSearchSourceType","SearchableEntry","WebAsyncSearchSourceWithMetrics"],(function a(b,c,d,e,f,g){function h(i,j,k){var l=c("ReactComposerTypeaheadSearchSourceConfig")[c("ReactComposerTypeaheadSearchSourceType").LOCATION],m=Object.assign(l,j),n=Object.assign(l,i);l={bootstrapRequests:[{uri:"/ajax/places/typeahead",data:n}],getAllForEmptyQuery:true,queryRequests:[{uri:"/ajax/places/typeahead",data:m}],packageFn:function o(m){return m?new(c("SearchableEntry"))(m):null}};return new(c("WebAsyncSearchSourceWithMetrics"))(l,k)}f.exports=h}),null);
__d("ReactComposerLocationTaggerButton.react",["cx","fbt","React","ReactComposerLoggingName","ReactComposerTaggerButtonMixin","ReactComposerTaggerType"],(function a(b,c,d,e,f,g,h,i){var j=c("React").createClass({displayName:"ReactComposerLocationTaggerButton",mixins:[c("ReactComposerTaggerButtonMixin")],statics:{taggerID:c("ReactComposerTaggerType").LOCATION,loggingName:c("ReactComposerLoggingName").LOCATION_TAGGER},getTitle:function k(){return i._("Tag a location")},getTooltip:function k(){return i._("Check In")},getClassName:function k(){return"_3gqo"}});f.exports=j}),null);
__d("ReactComposerLocationTypeaheadComponent.react",["fbt","React","WebAsyncSearchSourceWithMetrics","XUITypeahead.react","emptyFunction"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(m){"use strict";__p&&__p();j.constructor.call(this,m);this.$ReactComposerLocationTypeaheadComponent9=function(){return Object.assign({},this.props.taggerData)}.bind(this);this.$ReactComposerLocationTypeaheadComponent8=function(o,event){this.props.taggerSource.reportSelect(o.getUniqueID(),o.getType(),o.getOrder(),!!event&&event.button>=0,this.state.query);this.props.taggerSource.sessionEnd();var p=this.$ReactComposerLocationTypeaheadComponent9();p.place=o;this.setState({query:o.getTitle()});this.props.onSelect&&this.props.onSelect(p)}.bind(this);this.$ReactComposerLocationTypeaheadComponent3=function(event){this.setState({query:event.target.value})}.bind(this);this.$ReactComposerLocationTypeaheadComponent1=function(event){if(this.state.query===event.target.value)this.$ReactComposerLocationTypeaheadComponent10()}.bind(this);this.$ReactComposerLocationTypeaheadComponent4=function(){this.$ReactComposerLocationTypeaheadComponent10();this.setState({query:""})}.bind(this);this.$ReactComposerLocationTypeaheadComponent2=function(){this.props.taggerSource.sessionEnd()}.bind(this);this.$ReactComposerLocationTypeaheadComponent6=function(){this.props.taggerSource.sessionStart()}.bind(this);this.$ReactComposerLocationTypeaheadComponent5=function(o,p){this.props.taggerSource.reportRequestID(this.state.query);this.props.taggerSource.reportResults(o.map(function(q){return q.getUniqueID()}))}.bind(this);this.$ReactComposerLocationTypeaheadComponent7=function(){this.props.taggerSource.reportRequestID(this.state.query)}.bind(this);m.taggerSource.sessionStart();var n={};if(m.defaultLocation)n.query=m.defaultLocation;else n.query=m.taggerData.place?m.taggerData.place.getTitle():"";this.state=n}l.prototype.componentWillUnmount=function(){"use strict";this.props.taggerSource.sessionEnd()};l.prototype.render=function(){"use strict";return c("React").createElement(c("XUITypeahead.react"),{className:this.props.className,clearable:true,focusedOnInit:this.props.autoFocus,highlightOnSelect:true,initialEntry:this.props.taggerData.place,onBackspace:this.$ReactComposerLocationTypeaheadComponent1,onBlur:this.$ReactComposerLocationTypeaheadComponent2,onChange:this.$ReactComposerLocationTypeaheadComponent3,onClear:this.$ReactComposerLocationTypeaheadComponent4,onEntriesFound:this.$ReactComposerLocationTypeaheadComponent5,onFocus:this.$ReactComposerLocationTypeaheadComponent6,onNoEntriesFound:this.$ReactComposerLocationTypeaheadComponent7,onSelectAttempt:this.$ReactComposerLocationTypeaheadComponent8,placeholder:this.props.placeholder,presenter:this.props.presenter,queryString:this.state.query,searchSource:this.props.taggerSource,selectedEntry:this.props.taggerData.place,showEntriesOnFocus:true,tallInput:false})};l.prototype.$ReactComposerLocationTypeaheadComponent10=function(){"use strict";var m=this.$ReactComposerLocationTypeaheadComponent9();m.place=null;if(!this.props.implicitLocationEnabled)m.implicitLocation=null;this.props.onSelect&&this.props.onSelect(m)};l.propTypes={autoFocus:k.bool,defaultLocation:k.string,implicitLocationEnabled:k.bool,onSelect:k.func,placeholder:k.string,presenter:k.object,taggerData:k.object.isRequired,taggerSource:k.instanceOf(c("WebAsyncSearchSourceWithMetrics")).isRequired};l.defaultProps={autoFocus:true,implicitLocationEnabled:false,onSelect:c("emptyFunction"),placeholder:h._("Where are you?"),taggerData:{}};f.exports=l}),null);
__d("ReactComposerLocationTaggerComponent.react",["cx","fbt","Grid.react","ReactComposerLocationTypeaheadComponent.react","ReactComposerTaggerPresenter","ReactComposerTaggerViewStyles","React","WebAsyncSearchSourceWithMetrics"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("Grid.react").GridItem,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;n.prototype.render=function(){"use strict";return c("React").createElement(c("Grid.react"),{cols:2,className:"_5esl"},c("React").createElement(l,{key:"prefix",className:"_5esm"},i._("At")),c("React").createElement(l,{key:"tagger",className:"_5esw"},c("React").createElement(c("ReactComposerLocationTypeaheadComponent.react"),babelHelpers["extends"]({},this.props,{className:"_5esx _1wqz",presenter:this.$ReactComposerLocationTaggerComponent1()}))))};n.prototype.$ReactComposerLocationTaggerComponent1=function(){"use strict";var o={taggerViewStyle:this.props.taggerViewStyle};return Object.assign({},c("ReactComposerTaggerPresenter"),{layerPosition:this.props.layerPosition||undefined,extraRendererProps:o,maxEntries:15})};function n(){"use strict";j.apply(this,arguments)}n.propTypes={autoFocus:m.bool,implicitLocationEnabled:m.bool,onSelect:m.func,placeholder:m.string,taggerData:m.object.isRequired,taggerSource:m.instanceOf(c("WebAsyncSearchSourceWithMetrics")).isRequired,taggerViewStyle:m.shape(c("ReactComposerTaggerViewStyles").Shape)};n.defaultProps={taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT};f.exports=n}),null);
__d("PlaceSearchConstants",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SOURCE_INTERN:"intern",SOURCE_W_COMPOSER:"web_composer",SOURCE_W_COMPOSER_MEDIA:"web_composer_media",SOURCE_ALBUM_CREATION:"album_creation",SOURCE_ALBUM_EDIT:"album_edit",SOURCE_PHOTO_EDIT:"photo_edit",SOURCE_ALBUM_ADD_PHOTOS:"album_add_photos",SOURCE_PLAN_EDIT:"plan_edit",SOURCE_GROUP_EDIT:"group_edit",SOURCE_DISSIMILARITY:"dissimilarity",SOURCE_TEST:"test",SOURCE_FQL:"fql",SOURCE_EVENTS:"events_create",SOURCE_PAGES:"pages_create",SOURCE_TOUCH:"touch",SOURCE_M:"m",SOURCE_M_PLAN:"m_plan",SOURCE_M_NO_GPS:"m_no_gps",SOURCE_PROFILE_MAP:"profile_map",SOURCE_WEB_DASH:"web_dashboard",SOURCE_MOBILE_DASH:"mobile_dashboard",SOURCE_UNKNOWN:"unknown",SOURCE_PHOTO_EDIT_EXIF:"photo_edit_exif",SOURCE_TIMELINE_LOCATION_EDIT:"timeline_location_edit",SOURCE_NETEGO_TAGGING:"netego_tagging",SOURCE_PPS_NETEGO:"netego_pps",SOURCE_PPS_SNOWLIFT:"snowlift_pps",SOURCE_PROXIMITY_GUESSER:"proximity_guesser",SOURCE_SEARCH_RESULTS_PAGE:"detailedsearch",SOURCE_PLACES_EDITOR:"places_editor",SOURCE_MAP_COMPOSER:"map_composer",SOURCE_W_MARKETPLACE_SEARCH:"web_marketplace_search",SOURCE_NEARBY:"nearby",SOURCE_SEARCH_MAP:"searchmap",SOURCE_TIMELINE_COMPOSER:"timeline_composer",SOURCE_M_EDIT_PROFILE:"m_edit_profile",SOURCE_M_EDIT_PAGE_INFO:"m_edit_page_info",SOURCE_PYML_NEARBY:"pyml_nearby",SOURCE_MOBILE_PLACE_COMPOSER:"mobile_place_composer",SOURCE_NEARBY_CHAT_ROOM:"nearby_chat_room",SOURCE_GRAPHQL:"graphql",SOURCE_CURRENT_PLACE:"current_place",SOURCE_AURA_PUSH_NOTIF:"aura_push_notif",SOURCE_SUGGESTIFIER:"suggestifier",SOURCE_PLACE_ADDRESS_LOCATED_IN:"place_address_located_in",SOURCE_IG_MEDIA_TAGGING:"instagram.media_tagging.place_search",SOURCE_MOBILE_STATUS:"mobile_status",SOURCE_MOBILE_CHECKIN:"mobile_checkin",SOURCE_SUGGESTED_CHECKIN_PROMPT:"suggested_checkin_prompt",SOURCE_MOBILE_PHOTO:"mobile_photo",SOURCE_CAMERA_MEDIA_EFFECT_UPLOAD:"camera_media_effect_upload",SOURCE_GEO_ADMIN_AREA_MATCHER:"geo_admin_area_matcher",SOURCE_INSTANT_WORKFLOWS:"instant_workflows",SOURCE_JOB_SEARCH:"job_search",SOURCE_INSPIRATIONS:"inspirations",SOURCE_IG_PLACE_TAGGING:"instagram.place_tagging",SOURCE_PAGES_MATCHER:"pages_matcher",SOURCE_HEALTH_BLOOD_DONATION_HOSPITAL:"blood_donation",PREDICTIONS_APPID:106712229428223})}),null);
__d("ReactComposerLocationTaggerContainer.react",["BasicTypeaheadLoggerJSConstants","MinutiaeVerbs","PlaceSearchConstants","React","ReactComposerLocationAttachmentActions","ReactComposerLocationAttachmentStore","ReactComposerLocationSearchSource","ReactComposerLocationTaggerComponent.react","ReactComposerLoggingName","ReactComposerMinutiaeAttachmentActions","ReactComposerTaggerActions","ReactComposerTaggerContainerMixin","ReactComposerTaggerType","ReactComposerTaggerViewStyles","areEqual","emptyFunction","getObjectValues"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("BasicTypeaheadLoggerJSConstants").EventNames,i=c("React").PropTypes,j=c("React").createClass({displayName:"ReactComposerLocationTaggerContainer",_taggerSourceInitialized:false,mixins:[c("ReactComposerTaggerContainerMixin")()],propTypes:{hideGeoHubs:i.bool,implicitLocationEnabled:i.bool,mediaLocation:i.shape({latitude:i.number.isRequired,longitude:i.number.isRequired}),onSelect:i.func.isRequired,taggerConfig:i.object,taggerViewStyle:i.shape(c("ReactComposerTaggerViewStyles").Shape),typeaheadLoggerEventName:i.oneOf(c("getObjectValues")(h)).isRequired,typeaheadSearchSource:i.oneOf(c("getObjectValues")(c("PlaceSearchConstants"))).isRequired},getDefaultProps:function k(){return{hideGeoHubs:false,onSelect:c("emptyFunction"),taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT}},componentWillMount:function k(){if(!this._taggerSourceInitialized){this._setNewSearchSource(this.props);this._taggerSourceInitialized=true;this.state.taggerData&&this.__onTaggerDataChanged(this.state.taggerData)}},componentWillReceiveProps:function k(l){if(!c("areEqual")(l.mediaLocation,this.props.mediaLocation))this._setNewSearchSource(l)},statics:{taggerID:c("ReactComposerTaggerType").LOCATION,loggingName:c("ReactComposerLoggingName").LOCATION_TAGGER,taggerComponent:c("ReactComposerLocationTaggerComponent.react"),enableHideOnEscape:true},__onTaggerDataChanged:function k(l){__p&&__p();var m=l.place&&l.place.getAuxiliaryData();if(m)l.implicitLocation={cityid:m.cityID,citypageid:m.cityPageID,citystring:m.cityName};var n=c("ReactComposerLocationAttachmentStore").getMinutiaeTaggedPlace(this.context.composerID),o=c("ReactComposerLocationAttachmentStore").getIsTimeline(this.context.composerID),p=function p(q,r,s,t){c("ReactComposerMinutiaeAttachmentActions").setExplicitLocation(q,s);if(n)c("ReactComposerMinutiaeAttachmentActions").fetchMinutiaeAttachment(q,c("MinutiaeVerbs").COMPOSER_TRAVELS.toString(),n,r,t,o)};if(l.place){p(this.context.composerID,this.context.targetID,l.place.getUniqueID(),this.context.actorID);c("ReactComposerTaggerActions").deselectCurrentTagger(this.context.composerID,this.constructor.loggingName);c("ReactComposerLocationAttachmentActions").fetchLocationAttachment(this.context.composerID,l.place.getUniqueID(),this.context.targetID)}else{p(this.context.composerID,this.context.targetID,null,this.context.actorID);c("ReactComposerLocationAttachmentActions").setMarkup(this.context.composerID,null)}},_setNewSearchSource:function k(l){var m={latitude:(l.mediaLocation||{}).latitude,longitude:(l.mediaLocation||{}).longitude},n={hide_geo:l.hideGeoHubs,latitude:(l.mediaLocation||{}).latitude,longitude:(l.mediaLocation||{}).longitude},o={event_name:l.typeaheadLoggerEventName,event_specific_data:{context:"places_typeahead:"+l.typeaheadSearchSource,source:l.typeaheadSearchSource,ref:"ReactComposerLocationTypeaheadComponent.react"}},p=c("ReactComposerLocationSearchSource")(m,n,o);c("ReactComposerTaggerActions").setTaggerSource(this.context.composerID,c("ReactComposerTaggerType").LOCATION,p)}});f.exports=j}),null);
__d("ReactComposerPeopleTaggerButton.react",["cx","fbt","React","ReactComposerLoggingName","ReactComposerTaggerButtonMixin","ReactComposerTaggerType","CurrentUser"],(function a(b,c,d,e,f,g,h,i){var j=c("React").PropTypes,k=c("React").createClass({displayName:"ReactComposerPeopleTaggerButton",mixins:[c("ReactComposerTaggerButtonMixin")],propTypes:{isMultiCompanyGroup:j.bool},statics:{taggerID:c("ReactComposerTaggerType").PEOPLE,loggingName:c("ReactComposerLoggingName").PEOPLE_TAGGER},getTitle:function l(){if(c("CurrentUser").isWorkUser()&&!this.props.isMultiCompanyGroup)return i._("Tag coworkers");return i._("Tag people")},getTooltip:function l(){if(c("CurrentUser").isWorkUser()&&!this.props.isMultiCompanyGroup)return i._("Tag coworkers in your post");return i._("Tag people in your post")},getClassName:function l(){return"_51y3"}});f.exports=k}),null);
__d("ReactComposerPeopleTaggerTokenizerToken.react",["cx","React","SearchableEntry","TokenizerToken.react","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.$ReactComposerPeopleTaggerTokenizerToken1=function(){"use strict";return c("React").createElement("span",{className:"_jsa"})};l.prototype.render=function(){"use strict";var m=this.props.entry&&this.props.entry.getAuxiliaryData().isFacebox,n=(m?"_jsb":"")+" _jsc";return c("React").createElement(c("TokenizerToken.react"),babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,n),glyph:this.$ReactComposerPeopleTaggerTokenizerToken1()}))};function l(){"use strict";i.apply(this,arguments)}l.propTypes={label:k.string.isRequired,entry:k.instanceOf(c("SearchableEntry")).isRequired,onRemove:k.func,highlighted:k.bool};f.exports=l}),null);
__d("ReactComposerPeopleTaggerComponent.react",["cx","fbt","Grid.react","ReactComposerPeopleTaggerTokenizerToken.react","ReactComposerTaggerPresenter","ReactComposerTaggerViewStyles","TaggingLimits","React","XUITokenizer.react","emptyFunction","CurrentUser"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("Grid.react").GridItem,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){__p&&__p();var o,p;"use strict";for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$ReactComposerPeopleTaggerComponent1=function(t){var u=this.props.taggerData,v=t.getUniqueID(),w=u.some(function(t){return t.getUniqueID()===v});if(w)return;else u.push(t);this.props.onSelect&&this.props.onSelect(u)}.bind(this),this.$ReactComposerPeopleTaggerComponent2=function(t){var u=this.props.taggerData,v=u.indexOf(t);if(v==-1)return;u.splice(v,1);this.props.onPeopleTagRemove&&this.props.onPeopleTagRemove(t);this.props.onSelect&&this.props.onSelect(u)}.bind(this),p}n.prototype.render=function(){"use strict";var o={};if(this.props.actorID)o[this.props.actorID]=true;return c("React").createElement(c("Grid.react"),{cols:2,className:"_5esl"},c("React").createElement(l,{key:"label",className:"_5esm"},i._("With")),c("React").createElement(l,{key:"tokenizer",className:"_5esw"},c("React").createElement(c("XUITokenizer.react"),babelHelpers["extends"]({presenter:this.$ReactComposerPeopleTaggerComponent3(),focusedOnInit:this.props.autoFocus,excludedEntries:o,entries:this.props.taggerData,className:"_5esx _2fzs",placeholder:this.props.placeholder,searchSource:this.props.taggerSource,onAddEntryAttempt:this.$ReactComposerPeopleTaggerComponent1,onRemoveEntryAttempt:this.$ReactComposerPeopleTaggerComponent2,limit:c("TaggingLimits").MAX_WITH_TAGS},this.props))))};n.prototype.$ReactComposerPeopleTaggerComponent3=function(){"use strict";var o=this.props.taggerConfig&&this.props.taggerConfig.presenter?this.props.taggerConfig.presenter:c("ReactComposerTaggerPresenter"),p={};p.taggerViewStyle=this.props.taggerViewStyle;p.viewProps=this.props.taggerConfig&&this.props.taggerConfig.typeaheadViewProps;return Object.assign({},o,{layerPosition:this.props.layerPosition||undefined,extraRendererProps:p,TokenRenderer:c("ReactComposerPeopleTaggerTokenizerToken.react")})};n.propTypes={actorID:m.string,autoFocus:m.bool,placeholder:m.string,taggerConfig:m.object,taggerData:m.array.isRequired,taggerSource:m.object.isRequired,onPeopleTagRemove:m.func,onSelect:m.func,taggerViewStyle:m.shape(c("ReactComposerTaggerViewStyles").Shape)};n.defaultProps=function(){var o=i._("Who are you with?");if(c("CurrentUser").isWorkUser())o=i._("Who do you want to tag?");return{autoFocus:true,onSelect:c("emptyFunction"),placeholder:o,taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT,taggerData:[]}}();f.exports=n}),null);
__d("ReactComposerPeopleTaggerContainer.react",["React","ReactComposerLoggingName","ReactComposerPeopleTaggerComponent.react","ReactComposerPhotoActions","ReactComposerTaggerActions","ReactComposerTaggerContainerStateMixin","ReactComposerTaggerHideOnEscapeKeyPress.react","ReactComposerTaggerType","ReactComposerTaggerViewStyles"],(function a(b,c,d,e,f,g){var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerPeopleTaggerContainer",mixins:[c("ReactComposerTaggerContainerStateMixin")()],propTypes:{actorID:h.string,taggerConfig:h.object,taggerViewStyle:h.shape(c("ReactComposerTaggerViewStyles").Shape)},getDefaultProps:function j(){return{taggerViewStyle:c("ReactComposerTaggerViewStyles").DEFAULT}},statics:{taggerID:c("ReactComposerTaggerType").PEOPLE},render:function j(){if(!this.state.isSelected)return c("React").createElement("noscript",null);return c("React").createElement("div",{"data-testid":"people-tagger-component"},c("React").createElement(c("ReactComposerTaggerHideOnEscapeKeyPress.react"),{shouldHideOnEscape:this.state.isSelected},c("React").createElement(c("ReactComposerPeopleTaggerComponent.react"),babelHelpers["extends"]({},this.props,{autoFocus:this.state.autoFocus,onPeopleTagRemove:this._onPeopleTagRemove,onSelect:this._onTaggerDataChanged,taggerData:this.state.taggerData,taggerSource:this.state.taggerSource}))))},_onTaggerDataChanged:function j(k){c("ReactComposerTaggerActions").setTaggerData(this.context.composerID,c("ReactComposerLoggingName").PEOPLE_TAGGER,c("ReactComposerTaggerType").PEOPLE,k);this.props.onSelect&&this.props.onSelect(k)},_onPeopleTagRemove:function j(k){c("ReactComposerPhotoActions").untagSubjectFromAllPhotos(this.context.composerID,k.getUniqueID())}});f.exports=i}),null);
__d("ComposerPerfEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CLIENT_BOOTSTRAPPED:"client_bootstrapped",CLIENT_BOOTLOADED:"client_bootloaded",CLIENT_POST_SUCCEEDED:"client_post_succeeded",CLIENT_POST_FAILED:"client_post_failed"})}),null);
__d("ComposerSharingSpacesEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({COMPOSER_SPACES_SHARESHEET_NEXT:"COMPOSER_SPACES_SHARESHEET_NEXT",COMPOSER_SPACES_SHARESHEET_BACK:"COMPOSER_SPACES_SHARESHEET_BACK",COMPOSER_SPACES_SHARESHEET_POST:"COMPOSER_SPACES_SHARESHEET_POST",COMPOSER_SPACES_SPACE:"COMPOSER_SELECT_SPACE",COMPOSER_SELECT_SPACE_CHOOSE:"COMPOSER_SELECT_SPACE_CHOOSE",COMPOSER_SELECT_SPACE_NEW:"COMPOSER_SELECT_SPACE_NEW",COMPOSER_SELECT_SPACE_NEW_CLICK:"COMPOSER_SELECT_SPACE_NEW_CLICK",COMPOSER_SELECT_SPACE_LOADED:"COMPOSER_SELECT_SPACE_LOADED",COMPOSER_SELECT_TIMELINE_CHOOSE:"COMPOSER_SELECT_TIMELINE_CHOOSE"})}),null);
__d("ExtensibleSproutsLayoutStateType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({EXPANDED_DEFAULT:"expanded_default",COLLAPSED:"collapsed",FULL_SCREEN:"full_screen",EXPANDED:"expanded"})}),null);
__d("FacerecWaterfallEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({RECOGNITION_RECEIVED_BY_CLIENT:"recognition_received_by_client",CLIENT_RECOGNITION_POLLER_TIMEOUT:"client_recognition_poller_timeout",CLIENT_RECOGNITION_POLLER_GIVE_UP:"client_recognition_poller_give_up",SERVER_PHOTO_PUBLISHED:"server_photo_published",SERVER_PHOTO_TAG_ADDED:"sever_photo_tag_added",SERVER_RECOGNITION_OF_PHOTO_POLLED:"server_recognition_of_photo_polled",SERVER_RECOGNITION_OF_FACE_BOX_RETURNED:"server_recognition_of_face_box_returned",CLIENT_PHOTO_PUBLISHED:"client_photo_published"})}),null);
__d("ReactComposerPerfLogger",["ComposerType","ComposerXSessionIDs","MarauderLogger"],(function a(b,c,d,e,f,g){__p&&__p();var h={},i=c("ComposerType").STATUS,j={logEvent:function k(l,m){__p&&__p();var n=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],o=h[m],p=c("ComposerXSessionIDs").getSessionID(m);if(!o||!p)return;if(n.logOncePerSession){if(!o.loggedEventTypes[p])o.loggedEventTypes[p]={};if(o.loggedEventTypes[p][l])return;o.loggedEventTypes[p][l]=true}var q=babelHelpers["extends"]({},n.extraData,{composer_type:i,target_type:o.targetType,target_id:o.targetID,ref:o.entryPointRef});c("MarauderLogger").log(l,"composer",q,undefined,undefined,p)},registerComposer:function k(l,m,n,o){h[l.id]={targetID:o,targetType:m,entryPointRef:n,loggedEventTypes:{}}},getInstance:function k(l){return h[l]}};f.exports=j}),null);
__d("ReactComposerLoggingStore",["invariant","Bootloader","ComposerEntryPointRef","ComposerPerfEvent","ComposerWaterfallEvent","ComposerXMarauderLogger","ComposerXSessionIDs","FacerecWaterfallEvent","immutable","PhotosUploadWaterfallXMixin","PhotoUploadFacerecWaterfallTypedLogger","PUWApplications","PUWMethods","PUWSteps","ReactComposerActionTypes","ReactComposerAlbumActionType","ReactComposerAttachmentActionType","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerAudienceActionTypes","ReactComposerAudienceStore","ReactComposerCollectionsActionTypes","ReactComposerDispatcher","ReactComposerFeatureType","ReactComposerLoggingQueue","ReactComposerMediaUploadActionType","ReactComposerMediaUploadStore","ReactComposerMediaUploadType","ReactComposerPerfLogger","ReactComposerPhotoActionType","ReactComposerPhotoStore","ReactComposerScrapedAttachmentActionType","ReactComposerScrapedAttachmentStore","ComposerSharingSpacesEvent","ReactComposerStatusStore","ReactComposerStore","ReactComposerStoreBase","ReactComposerTaggerActionType","ReactComposerTaggerStore","ReactComposerTaggerType","ReactComposerVideoUploadActionType","ReactComposerSproutsDisplayState","ExtensibleSproutsItemType","ExtensibleSproutsLayoutStateType","SATPPresetCollection","classWithMixins","ifRequired","mixin","nullthrows","performanceAbsoluteNow"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("classWithMixins")(c("ReactComposerStoreBase"),c("mixin")(c("PhotosUploadWaterfallXMixin"))));j=i&&i.prototype;function k(){var l=void 0;j.constructor.call(this,function(){return{activated:false,perfTimes:{},sessionID:null,uniqueEvents:c("immutable").Map([[c("PUWSteps").CLIENT_PUBLISH_SUCCESS,false],[c("PUWSteps").CLIENT_FLOW_SUCCESS,false]])}},function(m){l&&l.handler(m)});l=this}k.prototype.handler=function(l){__p&&__p();if(l.suppressWaterfallLogging)return;var m=this.getComposerData(l.composerID);if(!m.activated)return;switch(l.type){case c("ReactComposerAttachmentActionType").SELECT_ATTACHMENT:this.$ReactComposerLoggingStore1(l);break;case c("ReactComposerActionTypes").COMPOSER_ENTRY:this.$ReactComposerLoggingStore2(l);break;case c("ReactComposerAttachmentActionType").SET_BOOTLOADED:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerAttachmentStore").getDispatchToken()]);this.$ReactComposerLoggingStore3(l);break;case c("ReactComposerAttachmentActionType").SET_BOOTSTRAPPED:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerAttachmentStore").getDispatchToken()]);this.$ReactComposerLoggingStore4(l);break;case c("ReactComposerMediaUploadActionType").MEDIA_UPLOAD_INPUT_CLICKED:this.$ReactComposerLoggingStore5(l);break;case c("ReactComposerMediaUploadActionType").MEDIA_UPLOAD_INPUT_DONE:this.$ReactComposerLoggingStore6(l);break;case c("ReactComposerAlbumActionType").CREATE_ALBUM_SELECTOR_CLICKED:this.$ReactComposerLoggingStore7(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_ENQUEUED:this.$ReactComposerLoggingStore8(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RESIZE_STARTED:this.$ReactComposerLoggingStore9(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RESIZE_DONE:this.$ReactComposerLoggingStore10(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RESIZE_FAILED:this.$ReactComposerLoggingStore11(l);break;case c("ReactComposerMediaUploadActionType").SPHERICAL_PHOTO_CHECK_DONE:this.$ReactComposerLoggingStore12(l);break;case c("ReactComposerMediaUploadActionType").SPHERICAL_PHOTO_CHECK_FAILED:this.$ReactComposerLoggingStore13(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RESIZER_UNAVAILABLE:this.$ReactComposerLoggingStore14(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_UPLOADING:this.$ReactComposerLoggingStore15(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_DONE:this.$ReactComposerLoggingStore16(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_FAILED:this.$ReactComposerLoggingStore17(l);break;case c("ReactComposerMediaUploadActionType").MEDIA_UPLOAD_REMOVE:this.$ReactComposerLoggingStore18(l);break;case c("ReactComposerPhotoActionType").PHOTO_REMOVE:this.$ReactComposerLoggingStore19(l);break;case c("ReactComposerMediaUploadActionType").VIDEO_UPLOAD_ENQUEUED:this.$ReactComposerLoggingStore20(l);break;case c("ReactComposerVideoUploadActionType").VIDEO_UPLOAD_ADD:this.$ReactComposerLoggingStore21(l);break;case c("ReactComposerVideoUploadActionType").VIDEO_UPLOAD_REMOVE:this.$ReactComposerLoggingStore22(l);break;case c("ReactComposerTaggerActionType").DESELECT_TAGGER:this.$ReactComposerLoggingStore23(l);break;case c("ReactComposerTaggerActionType").SET_SELECTED_TAGGER:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerTaggerStore").getDispatchToken()]);this.$ReactComposerLoggingStore24(l);break;case c("ReactComposerTaggerActionType").SET_TAGGER_DATA:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerTaggerStore").getDispatchToken()]);this.$ReactComposerLoggingStore25(l);break;case c("ReactComposerActionTypes").POST_STARTED:this.$ReactComposerLoggingStore26(l);break;case c("ReactComposerActionTypes").POST_SUCCEEDED:this.$ReactComposerLoggingStore27(l);break;case c("ReactComposerActionTypes").POST_ERROR:this.$ReactComposerLoggingStore28(l);break;case c("ReactComposerMediaUploadActionType").PHOTOS_SELECT:this.$ReactComposerLoggingStore29(l);break;case c("ReactComposerPhotoActionType").PHOTO_EDIT_STARTED:this.$ReactComposerLoggingStore30(l);break;case c("ReactComposerPhotoActionType").PHOTO_EDIT_FINISHED:this.$ReactComposerLoggingStore31(l);break;case c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RETRY:this.$ReactComposerLoggingStore32(l);break;case c("ReactComposerPhotoActionType").PHOTO_ADD_FACEBOX:this.$ReactComposerLoggingStore33(l);break;case c("ReactComposerPhotoActionType").PHOTO_RECOGNITION_ALL_FINISHED:this.$ReactComposerLoggingStore34(l);break;case c("ReactComposerActionTypes").FEATURE_INTENT:this.$ReactComposerLoggingStore35(l);break;case c("ReactComposerActionTypes").FEATURE_DONE:this.$ReactComposerLoggingStore36(l);break;case c("ReactComposerActionTypes").FEATURE_CANCEL:this.$ReactComposerLoggingStore37(l);break;case c("ReactComposerActionTypes").SPROUT_VIEW_UPDATE:this.$ReactComposerLoggingStore38(l);break;case c("ReactComposerScrapedAttachmentActionType").ATTACHMENT_SCRAPED:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerScrapedAttachmentStore").getDispatchToken()]);this.$ReactComposerLoggingStore39(l);break;case c("ReactComposerAudienceActionTypes").SET_AUDIENCE:this.$ReactComposerLoggingStore40(l);break;case c("ReactComposerActionTypes").COMPOSER_CANCEL:this.$ReactComposerLoggingStore41(l);break;case c("ReactComposerActionTypes").COMPOSER_NAVIGATE_AWAY_ATTEMPT:this.$ReactComposerLoggingStore42(l);break;case c("ReactComposerCollectionsActionTypes").SHOW_COLLECTION_SELECTOR:this.$ReactComposerLoggingStore43(l);break;case c("ReactComposerCollectionsActionTypes").HIDE_COLLECTION_SELECTOR:this.$ReactComposerLoggingStore44(l);break;case c("ReactComposerAudienceActionTypes").SET_COLLECTION:if(c("ReactComposerDispatcher").isDispatching())c("ReactComposerDispatcher").waitFor([c("ReactComposerAudienceStore").getDispatchToken()]);this.$ReactComposerLoggingStore45(l);break;case c("ReactComposerCollectionsActionTypes").SHOW_CREATION_LAYER:case c("ReactComposerCollectionsActionTypes").SHOW_SHARING_SPACE_CREATION_LAYER:this.$ReactComposerLoggingStore46(l);break;case c("ReactComposerCollectionsActionTypes").HIDE_CREATION_LAYER:case c("ReactComposerCollectionsActionTypes").HIDE_SHARING_SPACE_CREATION_LAYER:this.$ReactComposerLoggingStore47(l);break;case c("ReactComposerCollectionsActionTypes").SPACE_SELECTOR_LOADED:this.$ReactComposerLoggingStore48(l);break;case c("ReactComposerActionTypes").COMPOSER_SHARESHEET_POST_CLICKED:this.$ReactComposerLoggingStore49(l);break;default:}};k.prototype.getSessionID=function(l){return c("ComposerXSessionIDs").getSessionID(l)};k.prototype.isActivated=function(l){return this.getComposerData(l).activated};k.prototype.activate=function(l){var m=this.getComposerData(l);m.activated=true;if(c("ReactComposerLoggingQueue").getLength()>0)this.$ReactComposerLoggingStore50()};k.prototype.$ReactComposerLoggingStore2=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").COMPOSER_ENTRY,{logOncePerSession:true,extraData:{composer_entry_point_name:l.uiElementName}})};k.prototype.$ReactComposerLoggingStore35=function(l){var m=this.validateAction(l,["composerID","featureType","uiElementName"]),n=m[0],o=m[1],p=m[2];this.$ReactComposerLoggingStore52(n,o,p)};k.prototype.$ReactComposerLoggingStore36=function(l){var m=this.validateAction(l,["composerID","featureType","uiElementName"]),n=m[0],o=m[1],p=m[2];this.$ReactComposerLoggingStore53(n,o,p)};k.prototype.$ReactComposerLoggingStore37=function(l){var m=this.validateAction(l,["composerID","featureType","uiElementName"]),n=m[0],o=m[1],p=m[2];this.$ReactComposerLoggingStore54(n,o,p)};k.prototype.$ReactComposerLoggingStore1=function(l){var m=this.validateAction(l,"composerID");if(c("ReactComposerAttachmentStore").isSelectedAttachmentActive(m))this.$ReactComposerLoggingStore2(l);if(l.loggingName&&Object.prototype.hasOwnProperty.call(c("ExtensibleSproutsItemType"),l.loggingName)){var n=this.validateAction(l,"sproutSurface");this.$ReactComposerLoggingStore52(m,l.loggingName,l.loggingName,n)}};k.prototype.$ReactComposerLoggingStore3=function(l){var m=this.validateAction(l,["id","composerID"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore55(o,c("ComposerPerfEvent").CLIENT_BOOTLOADED,{extraData:{attachment_type:n,duration:c("ReactComposerAttachmentStore").getBootloadDuration(o,n)}})};k.prototype.$ReactComposerLoggingStore4=function(l){var m=this.validateAction(l,["id","composerID"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore55(o,c("ComposerPerfEvent").CLIENT_BOOTSTRAPPED,{extraData:{attachment_type:n,duration:c("ReactComposerAttachmentStore").getBootstrapDuration(o,n)}})};k.prototype.$ReactComposerLoggingStore7=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").ALBUM_INTENT)};k.prototype.$ReactComposerLoggingStore5=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore52(n,c("ExtensibleSproutsItemType").MEDIA,o);this.$ReactComposerLoggingStore51(n,c("ComposerWaterfallEvent").MEDIA_INTENT);this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_FLOW_BEGIN,null,{logOncePerSession:true});this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_SELECT_BEGIN)};k.prototype.$ReactComposerLoggingStore6=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore53(n,c("ExtensibleSproutsItemType").MEDIA,o)};k.prototype.$ReactComposerLoggingStore8=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").PHOTO_ADD);this.$ReactComposerLoggingStore57(m,c("ExtensibleSproutsItemType").MEDIA)};k.prototype.$ReactComposerLoggingStore9=function(l){var m=this.validateAction(l,["composerID","loggingData"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_PROCESS_BEGIN,o)};k.prototype.$ReactComposerLoggingStore10=function(l){var m=this.validateAction(l,["composerID","loggingData"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_PROCESS_SUCCESS,o)};k.prototype.$ReactComposerLoggingStore11=function(l){var m=this.validateAction(l,["composerID","loggingData"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_PROCESS_FAIL,o)};k.prototype.$ReactComposerLoggingStore12=function(l){var m=this.validateAction(l,["composerID","loggingData"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_SPHERICAL_CHECK_SUCCESS,o)};k.prototype.$ReactComposerLoggingStore13=function(l){var m=this.validateAction(l,["composerID","loggingData"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_SPHERICAL_CHECK_FAIL,o)};k.prototype.$ReactComposerLoggingStore14=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_PROCESS_UNAVAILABLE)};k.prototype.$ReactComposerLoggingStore15=function(l){var m=this.validateAction(l,["composerID","fileUpload"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_TRANSFER_BEGIN,{bytes:o.getFile().size})};k.prototype.$ReactComposerLoggingStore16=function(l){var m=this.validateAction(l,["composerID","fileUpload","timeToUpload"]),n=m[0],o=m[1],p=m[2],q={};if(l.uploadID&&c("ReactComposerMediaUploadStore").getMediaUploadExists(n,l.uploadID))q=c("ReactComposerMediaUploadStore").getMediaUpload(n,l.uploadID);this.$ReactComposerLoggingStore51(n,c("ComposerWaterfallEvent").PHOTO_ADD_SUCCESS);this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_TRANSFER_SUCCESS,{bytes:o.getFile().size,auto_retry_count:o.getRetryCount(),dt:p,custom_tags:{manual_retry:!!o.getFile().manuallyRetried},projection_type:q.projectionType,fbid:l.photoID,sheight:q.height,swidth:q.width,theight:l.height,twidth:l.width})};k.prototype.$ReactComposerLoggingStore17=function(l){var m=this.validateAction(l,["composerID","fileUpload","error","timeToUpload"]),n=m[0],o=m[1],p=m[2],q=m[3],r={};if(l.uploadID&&c("ReactComposerMediaUploadStore").getMediaUploadExists(n,l.uploadID))r=c("ReactComposerMediaUploadStore").getMediaUpload(n,l.uploadID);this.$ReactComposerLoggingStore51(n,c("ComposerWaterfallEvent").PHOTO_ADD_FAILURE);this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_TRANSFER_FAIL,{bytes:o.getFile().size,error_code:p.code,error_info:p.description,auto_retry_count:o.getRetryCount(),dt:q,custom_tags:{manual_retry:!!o.getFile().manuallyRetried},projection_type:r.projectionType,sheight:r.height,swidth:r.width})};k.prototype.$ReactComposerLoggingStore18=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").PHOTO_REMOVE);this.$ReactComposerLoggingStore57(m,c("ExtensibleSproutsItemType").MEDIA);this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_TRANSFER_CANCEL)};k.prototype.$ReactComposerLoggingStore19=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").PHOTO_REMOVE);this.$ReactComposerLoggingStore57(m,c("ExtensibleSproutsItemType").MEDIA)};k.prototype.$ReactComposerLoggingStore20=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore57(m,c("ExtensibleSproutsItemType").MEDIA)};k.prototype.$ReactComposerLoggingStore21=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").VIDEO_ADD)};k.prototype.$ReactComposerLoggingStore22=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").VIDEO_REMOVE);this.$ReactComposerLoggingStore57(m,c("ExtensibleSproutsItemType").MEDIA)};k.prototype.$ReactComposerLoggingStore23=function(l){var m=this.validateAction(l,["composerID","taggerID","sourceLoggingName"]),n=m[0],o=m[1],p=m[2],q=this.$ReactComposerLoggingStore58(o);q!==null||h(0);if(q)this.$ReactComposerLoggingStore53(n,q,p)};k.prototype.$ReactComposerLoggingStore24=function(l){__p&&__p();var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1],p=c("ReactComposerTaggerStore").getSelectedTagger(n),event=null;switch(p){case c("ReactComposerTaggerType").PEOPLE:this.$ReactComposerLoggingStore52(n,c("ExtensibleSproutsItemType").WITH_TAG,o);event=c("ComposerWaterfallEvent").FRIEND_TAG_INTENT;break;case c("ReactComposerTaggerType").LOCATION:this.$ReactComposerLoggingStore52(n,c("ExtensibleSproutsItemType").LOCATION,o);event=c("ComposerWaterfallEvent").LOCATION_INTENT;break;case c("ReactComposerTaggerType").ACTIVITY:this.$ReactComposerLoggingStore52(n,c("ExtensibleSproutsItemType").MINUTIAE,o);event=c("ComposerWaterfallEvent").MINUTIAE_INTENT;break;case c("ReactComposerTaggerType").MARKDOWN:event=c("ComposerWaterfallEvent").MARKDOWN_INTENT;break;default:var q=this.$ReactComposerLoggingStore58(p);if(q)this.$ReactComposerLoggingStore52(n,q,o);break}if(event===null)return;this.$ReactComposerLoggingStore51(n,event)};k.prototype.$ReactComposerLoggingStore25=function(l){var m=this.validateAction(l,["composerID","taggerID","sourceLoggingName"]),n=m[0],o=m[1],p=m[2],q=this.$ReactComposerLoggingStore58(o);q!==null||h(0);if(q)this.$ReactComposerLoggingStore57(n,q,p)};k.prototype.$ReactComposerLoggingStore26=function(l){__p&&__p();var m=this.validateAction(l,"composerID"),n=this.getComposerData(m);n.perfTimes.postStartTime=c("performanceAbsoluteNow")();this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").COMPOSER_POST);if(this.$ReactComposerLoggingStore59(m)){this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_PUBLISH_BEGIN,this.$ReactComposerLoggingStore60(m));c("ReactComposerPhotoStore").getPhotos(m).forEach(function(o){o.faceboxes.forEach(function(p){return new(c("PhotoUploadFacerecWaterfallTypedLogger"))().setEvent(c("FacerecWaterfallEvent").CLIENT_PHOTO_PUBLISHED).setPhotoFbid(o.id).setFaceBoxID(p.id).setRecognizedUser(p.recognizedSubjectID).setTaggedUser(p.taggedSubjectID).log()})})}this.$ReactComposerLoggingStore61(m,"post")};k.prototype.$ReactComposerLoggingStore27=function(l){__p&&__p();var m,n=this,o=this.validateAction(l,"composerID"),p=this.getComposerData(o);this.$ReactComposerLoggingStore51(o,c("ComposerWaterfallEvent").COMPOSER_POST_SUCCESS);this.$ReactComposerLoggingStore55(o,c("ComposerPerfEvent").CLIENT_POST_SUCCEEDED,{extraData:{attachment_type:c("ReactComposerAttachmentStore").getSelectedAttachmentID(o),duration:c("performanceAbsoluteNow")()-p.perfTimes.postStartTime}});if(this.$ReactComposerLoggingStore59(o)){var q=this.$ReactComposerLoggingStore60(o);this.$ReactComposerLoggingStore56(o,c("PUWSteps").CLIENT_PUBLISH_SUCCESS,q);this.$ReactComposerLoggingStore56(o,c("PUWSteps").CLIENT_FLOW_SUCCESS);var r=c("ReactComposerPhotoStore").getPhotos(o);if(r&&r.forEach)(function(){var s=0;r.forEach(function(t){if(t.cubestripURI)s++});if(s>0)c("Bootloader").loadModules(["SphericalPhotoViewerLoggerUtil","SphericalMediaConstants"],function(t,u){t.logNumberOfSphericalPhoto({composerSessionID:this.getSessionID(o)||"",surface:u.LOGGER_SURFACES.composer,numberOfSphericalPhoto:s})}.bind(n),"ReactComposerLoggingStore")})()}};k.prototype.$ReactComposerLoggingStore28=function(l){var m=this.validateAction(l,"composerID"),n=this.getComposerData(m);this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").COMPOSER_POST_FAILURE);this.$ReactComposerLoggingStore55(m,c("ComposerPerfEvent").CLIENT_POST_FAILED,{extraData:{attachment_type:c("ReactComposerAttachmentStore").getSelectedAttachmentID(m),duration:c("performanceAbsoluteNow")()-n.perfTimes.postStartTime}});if(this.$ReactComposerLoggingStore59(m)){var o=l.response,p=Object.assign(this.$ReactComposerLoggingStore60(m),{error_code:o&&o.getError&&o.getError(),error_info:o&&o.getErrorDescription&&o.getErrorDescription()});this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_PUBLISH_FAIL,p)}};k.prototype.$ReactComposerLoggingStore29=function(l){var m=this.validateAction(l,["composerID","numPhotos","method"]),n=m[0],o=m[1],p=m[2],q={method:p,volume:o};this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_FLOW_BEGIN,null,{logOncePerSession:true});if(p!==c("PUWMethods").FILE_SELECTOR)this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_SELECT_BEGIN);this.$ReactComposerLoggingStore56(n,c("PUWSteps").CLIENT_SELECT_SUCCESS,q)};k.prototype.$ReactComposerLoggingStore30=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_PHOTO_EDIT_BEGIN)};k.prototype.$ReactComposerLoggingStore31=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_PHOTO_EDIT_SUCCESS)};k.prototype.$ReactComposerLoggingStore32=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore56(m,c("PUWSteps").CLIENT_TRANSFER_MANUAL_RETRY)};k.prototype.$ReactComposerLoggingStore33=function(l){var m=this.validateAction(l,["photoID","facebox"]),n=m[0],o=m[1],p=o.bestRecognition,q=null;if(p)q=p.subjectID;new(c("PhotoUploadFacerecWaterfallTypedLogger"))().setEvent(c("FacerecWaterfallEvent").RECOGNITION_RECEIVED_BY_CLIENT).setPhotoFbid(n).setFaceBoxID(o.id).setRecognizedUser(q).log()};k.prototype.$ReactComposerLoggingStore34=function(l){var m=this.validateAction(l,["photos","facerecWaterfallEvent"]),n=m[0],o=m[1];n.forEach(function(p){new(c("PhotoUploadFacerecWaterfallTypedLogger"))().setEvent(c("nullthrows")(o)).setPhotoFbid(p).log()})};k.prototype.$ReactComposerLoggingStore39=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore57(m,c("ReactComposerFeatureType").LINK,l.sourceLoggingName)};k.prototype.$ReactComposerLoggingStore40=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore57(m,c("ReactComposerFeatureType").PRIVACY,l.sourceLoggingName)};k.prototype.$ReactComposerLoggingStore41=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").COMPOSER_CANCEL)};k.prototype.$ReactComposerLoggingStore42=function(l){var m=this.validateAction(l,"composerID");this.$ReactComposerLoggingStore61(m,"cancel");this.$ReactComposerLoggingStore51(m,c("ComposerWaterfallEvent").NAVIGATE_AWAY)};k.prototype.$ReactComposerLoggingStore43=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore52(n,c("ReactComposerFeatureType").COLLECTIONS,o)};k.prototype.$ReactComposerLoggingStore44=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore53(n,c("ReactComposerFeatureType").COLLECTIONS,o)};k.prototype.$ReactComposerLoggingStore45=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore57(n,c("ReactComposerFeatureType").COLLECTIONS,o);if(Object.prototype.hasOwnProperty.call(c("ComposerSharingSpacesEvent"),o))this.$ReactComposerLoggingStore51(n,o.toLowerCase(),{extraData:{profile_channel_audience_type:c("ReactComposerAudienceStore").getPrivacyLabel(n)}})};k.prototype.$ReactComposerLoggingStore46=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];this.$ReactComposerLoggingStore52(n,c("ReactComposerFeatureType").COLLECTION_CREATION,o);if(Object.prototype.hasOwnProperty.call(c("ComposerSharingSpacesEvent"),o))this.$ReactComposerLoggingStore51(n,o.toLowerCase())};k.prototype.$ReactComposerLoggingStore47=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName","isCancel"]),n=m[0],o=m[1],p=m[2],q=p?this.$ReactComposerLoggingStore54.bind(this):this.$ReactComposerLoggingStore53.bind(this);q(n,c("ReactComposerFeatureType").COLLECTION_CREATION,o);if(Object.prototype.hasOwnProperty.call(c("ComposerSharingSpacesEvent"),o))this.$ReactComposerLoggingStore51(n,o.toLowerCase(),{extraData:{profile_channel_audience_type:c("ReactComposerAudienceStore").getPrivacyLabel(n)}})};k.prototype.$ReactComposerLoggingStore48=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName","spaceCount"]),n=m[0],o=m[1],p=m[2];if(Object.prototype.hasOwnProperty.call(c("ComposerSharingSpacesEvent"),o))this.$ReactComposerLoggingStore51(n,o.toLowerCase(),{extraData:{space_count:p}})};k.prototype.$ReactComposerLoggingStore49=function(l){var m=this.validateAction(l,["composerID","sourceLoggingName"]),n=m[0],o=m[1];if(Object.prototype.hasOwnProperty.call(c("ComposerSharingSpacesEvent"),o))this.$ReactComposerLoggingStore51(n,o.toLowerCase(),{extraData:{profile_channel_audience_type:c("ReactComposerAudienceStore").getPrivacyLabel(n)}})};k.prototype.$ReactComposerLoggingStore38=function(l){var m=this.validateAction(l,["composerID","visibilityMap","event","sproutsState"]),n=m[0],o=m[1],event=m[2],p=m[3];this.$ReactComposerLoggingStore51(n,event,{extraData:{sprouts_visibilities:o,state:p===c("ReactComposerSproutsDisplayState").INLINE?c("ExtensibleSproutsLayoutStateType").COLLAPSED:c("ExtensibleSproutsLayoutStateType").EXPANDED_DEFAULT,promoted_sprout_name:l.promotedSprout,promotion_id:l.promotionID}})};k.prototype.$ReactComposerLoggingStore59=function(l){var m=c("ReactComposerAttachmentStore").getIsAttachmentSelectedOrProxied(l,c("ReactComposerAttachmentType").MEDIA),n=c("ReactComposerMediaUploadStore").getUploadsOfType(l,c("ReactComposerMediaUploadType").PHOTO);return m&&!!n.size};k.prototype.$ReactComposerLoggingStore60=function(l){var m=c("ReactComposerTaggerStore").getTaggerData(l,c("ReactComposerTaggerType").PEOPLE)||[],n=c("ReactComposerMediaUploadStore").getTotalNumberOfStickersOnPhotos(l);return{volume:c("ReactComposerPhotoStore").getPhotos(l).size,with_tag_count:m.length,sticker_count:n}};k.prototype.$ReactComposerLoggingStore52=function(l,m,n,o){this.$ReactComposerLoggingStore51(l,c("ComposerWaterfallEvent").FEATURE_INTENT,{extraData:babelHelpers["extends"]({feature_type:m,source:n},o&&{sprout_surface:o})})};k.prototype.$ReactComposerLoggingStore57=function(l,m,n){this.$ReactComposerLoggingStore51(l,c("ComposerWaterfallEvent").FEATURE_UPDATE,{extraData:{feature_type:m,source:n}})};k.prototype.$ReactComposerLoggingStore54=function(l,m,n){this.$ReactComposerLoggingStore51(l,c("ComposerWaterfallEvent").FEATURE_CANCEL,{extraData:{feature_type:m,source:n}})};k.prototype.$ReactComposerLoggingStore53=function(l,m,n){this.$ReactComposerLoggingStore51(l,c("ComposerWaterfallEvent").FEATURE_DONE,{extraData:{feature_type:m,source:n}})};k.prototype.$ReactComposerLoggingStore51=function(l,event){__p&&__p();var m=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],n=this.getComposerData(l);if(n.uniqueEvents.has(event)){if(n.uniqueEvents.get(event))return;n.uniqueEvents=n.uniqueEvents.set(event,true)}if(c("ReactComposerStore").getRef(l)===c("ComposerEntryPointRef").RECENT_POSTS)c("Bootloader").loadModules(["FeedbackDigestNotifTypedLogger"],function(o){new o().setComposerWaterfallEvent(event).addToExtraData("payload",JSON.stringify(this.$ReactComposerLoggingStore62(l))).addToExtraData("message",c("ReactComposerStatusStore").getMessageText(l)).log()}.bind(this),"ReactComposerLoggingStore");m.extraData=Object.assign({is_markdown_enabled:!!c("ReactComposerTaggerStore").getTaggerData(l,c("ReactComposerTaggerType").MARKDOWN).isMarkdown,payload:this.$ReactComposerLoggingStore62(l),ordered_sprouts:c("ReactComposerStore").getOrderedSprouts(l),ranker_request_id:c("ReactComposerStore").getRankerRequestID(l),sprout_surface:c("ReactComposerStore").getSproutSurface(l)},m.extraData);c("ComposerXMarauderLogger").logEvent(event,l,m)};k.prototype.$ReactComposerLoggingStore55=function(l,event){var m=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],n=this.getComposerData(l);if(n.uniqueEvents.has(event)){if(n.uniqueEvents.get(event))return;n.uniqueEvents=n.uniqueEvents.set(event,true)}c("ReactComposerPerfLogger").logEvent(event,l,m)};k.prototype.$ReactComposerLoggingStore56=function(l,m,n,o,p){var q=this.getComposerData(l);if(q.uniqueEvents.has(m)){if(q.uniqueEvents.get(m))return;q.uniqueEvents=q.uniqueEvents.set(m,true)}this.logPUWStep(m,this.getSessionID(l),c("PUWApplications").WEB_REACT_COMPOSER,c("ReactComposerStore").getRef(l),n,o,p)};k.prototype.$ReactComposerLoggingStore50=function(){while(c("ReactComposerLoggingQueue").getLength()>0){var l=c("ReactComposerLoggingQueue").pop();this.handler(l)}};k.prototype.$ReactComposerLoggingStore62=function(l){return{character:c("ReactComposerStatusStore").getTextLength(l),location_tag:c("ReactComposerTaggerStore").hasLocationTag(l),implicit_location:c("ReactComposerTaggerStore").hasImplicitLocation(l),minutiae:c("ReactComposerTaggerStore").hasMinutiae(l),with_who_tag:c("ReactComposerTaggerStore").getNumberOfWithWhoTags(l),photo:c("ReactComposerMediaUploadStore").getNonsphericalPhotoCount(l),three_sixty_photo:c("ReactComposerMediaUploadStore").getSphericalPhotoCount(l),asset_3d:c("ReactComposerTaggerStore").hasData(l,c("ReactComposerTaggerType").ASSET_3D)?1:0,video:c("ReactComposerMediaUploadStore").getUploadsCount(l,c("ReactComposerMediaUploadType").VIDEO),shared_link:c("ReactComposerScrapedAttachmentStore").hasAttachment(l)?1:0,backdated:c("ReactComposerTaggerStore").hasBackdate(l)?c("ReactComposerTaggerStore").getTaggerData(l,c("ReactComposerTaggerType").BACKDATE):null,audience:c("ReactComposerAudienceStore").getAudience(l),collection:c("ReactComposerAudienceStore").getCollectionID(l)}};k.prototype.$ReactComposerLoggingStore58=function(l){__p&&__p();switch(l){case c("ReactComposerTaggerType").PEOPLE:return c("ExtensibleSproutsItemType").WITH_TAG;case c("ReactComposerTaggerType").LOCATION:return c("ExtensibleSproutsItemType").LOCATION;case c("ReactComposerTaggerType").ACTIVITY:return c("ExtensibleSproutsItemType").MINUTIAE;case c("ReactComposerTaggerType").MARKDOWN:return c("ExtensibleSproutsItemType").MARKDOWN;case c("ReactComposerTaggerType").BACKDATE:return c("ExtensibleSproutsItemType").BACKDATE;case c("ReactComposerTaggerType").SPONSOR:return c("ExtensibleSproutsItemType").SPONSOR_TAG;case c("ReactComposerTaggerType").PRODUCT:return c("ExtensibleSproutsItemType").TAG_PRODUCT;case c("ReactComposerTaggerType").PAGE_CTA:return c("ReactComposerFeatureType").PAGE_CTA;case c("ReactComposerTaggerType").FORMATTED_TEXT:return c("ExtensibleSproutsItemType").TEXT_BACKGROUND;case c("ReactComposerTaggerType").ISSUE_TAG:return c("ReactComposerFeatureType").ISSUE_TAG;case c("ReactComposerTaggerType").STICKER:return c("ExtensibleSproutsItemType").STICKER;case c("ReactComposerTaggerType").GIF:return c("ExtensibleSproutsItemType").GIF;case c("ReactComposerTaggerType").MESSAGING:return c("ReactComposerFeatureType").MESSAGING;case c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE:return c("ExtensibleSproutsItemType").CONTACT_YOUR_REPRESENTATIVE;case c("ReactComposerTaggerType").FUN_FACT:return c("ExtensibleSproutsItemType").FUN_FACT;case c("ReactComposerTaggerType").FUNDRAISER:return c("ExtensibleSproutsItemType").FUNDRAISER;case c("ReactComposerTaggerType").ALBUM:return c("ReactComposerFeatureType").ALBUM;case c("ReactComposerTaggerType").VISUAL_POLL:return c("ExtensibleSproutsItemType").VISUAL_POLLS;case c("ReactComposerTaggerType").RECOMMENDATION:return c("ExtensibleSproutsItemType").RECOMMENDATION;case c("ReactComposerTaggerType").SALES_PROMO:return c("ExtensibleSproutsItemType").SALES_PROMO;case c("ReactComposerTaggerType").TAG_EVENT:return c("ExtensibleSproutsItemType").TAG_EVENT;case c("ReactComposerTaggerType").BREAKING_NEWS:return c("ReactComposerFeatureType").BREAKING_NEWS;case c("ReactComposerTaggerType").ASSET_3D:return c("ReactComposerFeatureType").ASSET_3D;default:return null}};k.prototype.$ReactComposerLoggingStore61=function(l,m){c("ifRequired")("ReactComposerFormattedTextStore",function(n){var o=n.getTextFormatPresetID(l)||n.getPrevSelectedTextFormatPresetID(l),p=n.getTrackingString(l);if(o)c("ifRequired")("SATPInteractionsTypedLogger",function(q){new q().setTrackingString(p).setUserActionString(m).setPresetID(o).setRequestedCollection(c("SATPPresetCollection").COMPOSER_TOP).log()})})};f.exports=new k()}),null);
__d("ReactComposerPromptsActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({SET_MINUTIAE_DATA:null,SET_PROMPT_DATA:null,SET_PROMPT_XHP:null,SET_MEME_CATEGORY_ID:null},"ReactComposerPromptsActionTypes")}),null);
__d("ReactComposerPromptsStore",["ReactComposerPromptsActionTypes","ReactComposerStoreBase"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";var k=void 0;i.constructor.call(this,function(){return{promptData:null,promptXHP:null}},function(l){k&&k.handler(l)});k=this}j.prototype.handler=function(k){"use strict";__p&&__p();switch(k.type){case c("ReactComposerPromptsActionTypes").SET_MINUTIAE_DATA:this.$ReactComposerPromptsStore1(k);break;case c("ReactComposerPromptsActionTypes").SET_PROMPT_DATA:this.$ReactComposerPromptsStore2(k);break;case c("ReactComposerPromptsActionTypes").SET_PROMPT_XHP:this.$ReactComposerPromptsStore3(k);break;case c("ReactComposerPromptsActionTypes").SET_MEME_CATEGORY_ID:this.$ReactComposerPromptsStore4(k);break;default:}};j.prototype.$ReactComposerPromptsStore1=function(k){"use strict";var l=this.validateAction(k,["composerID","minutiaeData"]),m=l[0],n=l[1],o=this.getComposerData(m);o.minutiaeData=n};j.prototype.getMinutiaeData=function(k){"use strict";return this.getComposerData(k).minutiaeData};j.prototype.$ReactComposerPromptsStore2=function(k){"use strict";var l=this.validateAction(k,["composerID","promptData"]),m=l[0],n=l[1],o=this.getComposerData(m);o.promptData=n};j.prototype.getPromptData=function(k){"use strict";return this.getComposerData(k).promptData};j.prototype.$ReactComposerPromptsStore3=function(k){"use strict";var l=this.validateAction(k,["composerID","promptXHP"]),m=l[0],n=l[1],o=this.getComposerData(m);o.promptXHP=n;this.emitChange(m)};j.prototype.getPromptXHP=function(k){"use strict";return this.getComposerData(k).promptXHP};j.prototype.$ReactComposerPromptsStore4=function(k){"use strict";var l=this.validateAction(k,["composerID","memeCategoryID"]),m=l[0],n=l[1],o=this.getComposerData(m);o.memeCategoryID=n};j.prototype.getMemeCategoryID=function(k){"use strict";return this.getComposerData(k).memeCategoryID};f.exports=new j()}),null);
__d("PhotoEditorLoggingConstants",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({COMPOSER_IMAGE_STICKER:"composer_sticker",COMPOSER_IMAGE_TEXT_OVERLAY:"composer_text_overlay",COMPOSER_IMAGE_HAS_CROP:"composer_has_crop",COMPOSER_IMAGE_HAS_FILTER:"composer_has_filter",COMPOSER_IMAGE_CUSTOM_ACCESSIBILITY_CAPTION:"composer_custom_accessibility_caption"})}),null);
__d("PlaceAttachmentSetting",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({HIDE_ATTACHMENT:1,SHOW_ATTACHMENT:2})}),null);
__d("QuestionPollTypeJSEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NON_POLL:0,CHOOSE_ONE:1,CHOOSE_MULTIPLE:2,RANKED:3,GIF_CHOOSE_ONE:4,IMAGE_CHOOSE_ONE:5,VISUAL_TEXT_CHOOSE_ONE:6,IMAGE_CHOOSE_MULTIPLE:7})}),null);
__d("ReactComposerPostDataUtils",["ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerAudienceStore","ReactComposerEventAttachmentStore","ReactComposerLoggingStore","ReactComposerMediaUploadStore","ReactComposerMediaUploadType","ReactComposerMinutiaeAttachmentStore","ReactComposerPhotoStore","ReactComposerPostUtilsCore","ReactComposerPromptsStore","ReactComposerScrapedAttachmentStore","ReactComposerSelectedImagesStore","ReactComposerSessionMetricsStore","ReactComposerSlideshowAudioStore","ReactComposerSlideshowStore","ReactComposerStatusStore","ReactComposerStore","ReactComposerTaggerStore","ReactComposerTaggerType","ComposerXMarauderLogger","flattenPHPQueryData","ifRequired","isNumberLike","PlaceAttachmentSetting","PhotoEditorLoggingConstants","PhotoEditorSaveStates","PhotosUploadWaterfallApplications","PUWApplications","QuestionPollTypeJSEnum","SlideshowUtil"],(function aa(ba,a,ca,da,ea,fa){__p&&__p();var ga={getPostData:function b(c){__p&&__p();var d=c.composerID,e=c.targetID,f=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").PEOPLE)||[],g=[];f.forEach(function($){g.push($.getUniqueID())});var h=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").PRODUCT)||[];h=h.filter(function($){return!$.getAuxiliaryData().isFacebox});var i=h.map(function($){return $.getUniqueID()}),j=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").ISSUE_TAG)||[],k=j.map(function($){return $.getUniqueID()}),l=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE),m=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").TAG_EVENT),n=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").ACTIVITY),o=[],p=[],q=[],r=void 0;if(n&&n.action&&n.object){o.push(n.action.getUniqueID());r=n.actionIconID;if(a("isNumberLike")(n.object.getUniqueID())&&n.object.getUniqueID()!==n.object.getTitle()){p.push(n.object.getUniqueID());q.push("")}else q.push(n.object.getTitle())}else if(l.politicalRepresentative)a("ifRequired")("ContactYourRepresentativeConsts",function($){o.push($.composer_action_id);p.push(l.politicalRepresentative.getUniqueID());q.push("")});else if(m&&m.eventID)a("ifRequired")("TagEventSproutConsts",function($){o.push($.composer_action_id);p.push(m.eventID);q.push("")});var s=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").STICKER),t=s&&s.stickerID?s.stickerID:0,u=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").ASSET_3D),v=a("ReactComposerTaggerStore").isDisabled(d,a("ReactComposerTaggerType").ASSET_3D),ha=u&&u.asset3dID&&!v?u.asset3dID:null,ia=a("ReactComposerMinutiaeAttachmentStore").getHideObjectAttachment(d),ja=a("ifRequired")("ReactComposerLocationAttachmentStore",function($){return $.getMarkup(d)!==null?a("PlaceAttachmentSetting").SHOW_ATTACHMENT:a("PlaceAttachmentSetting").HIDE_ATTACHMENT},function(){return a("PlaceAttachmentSetting").HIDE_ATTACHMENT}),w=[],x=[],y="";a("ifRequired")("ReactComposerMultilingualStatusStore",function($){w=$.getMessages(d);x=$.getLanguageDialects(d);y=$.getSpecifiedPostLanguage(d)});var z=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").FUN_FACT),A=null,B=null;if(z)if(z.promptID)A=z.promptID;else B=z.askedPromptID;var C=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").FUNDRAISER),ka=C?C.charityID:null,D=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").LOCATION),E=a("ReactComposerEventAttachmentStore").getEventID(d),F=D?D.place:null,G=void 0;if(a("ReactComposerTaggerStore").hasBackdate(d)){var H=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").BACKDATE);G={year:this._sanitizeDateField(H.year),month:this._sanitizeDateField(H.month),day:this._sanitizeDateField(H.day),hour:this._sanitizeDateField(H.hour),minute:this._sanitizeDateField(H.minute)}}var I=D&&D.implicitLocation?D.implicitLocation.citypageid:null,J=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").SPONSOR)||{},K={directShareStatus:J.directShareStatus,sponsorRelationship:J.sponsorRelationship,sponsors:[]};J.sponsors.map(function($){K.sponsors.push($.getUniqueID())});var L=a("ReactComposerAudienceStore").getCollectionID(d),M=null;if(!L){var N=a("ReactComposerAudienceStore").getLegacyAudience(d);if(N)M=[{value:N}]}var O=c.useHints,P=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").TARGETING),Q=P&&!L?O?P.hints:P.targeting:null;if(Q!=null){if(!O&&Q.fan_of)Q.fan_of=Q.fan_of.map(function($){return $.id});a("ifRequired")("AdsAPITargetFields",function($){if($&&Q&&Q[$.INTERESTS])Q[$.INTERESTS]=Q[$.INTERESTS].map(function(Da){return Da.id})})}var la=P&&!L?P.gating:null;if(c.composerConfig.contextInfo.stopFeedDistributionDateFormatted){if(!Q)Q={};Q["relevant-until-date"]=c.composerConfig.contextInfo.stopFeedDistributionDateFormatted;Q["relevant-until-time"]=c.composerConfig.contextInfo.stopFeedDistributionTimeFormatted}var R=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").PUBLISHER_ABTEST_HOLDOUT);if(R)if(R.showStart==1&&R.showEnd==100||R.showStart==null&&R.showEnd==null)R=null;else R={showStart:R.showStart,showEnd:R.showEnd};var ma=a("ifRequired")("PagesComposerBoostedPostsStore",function($){return $.getConfig(d)},function(){return null}),S=a("ReactComposerScrapedAttachmentStore").getAttachmentConfig(d);if(S===null){a("ifRequired")("ReactComposerCTAStore",function($){S=$.getAttachmentConfig(d)});if(S===null)a("ifRequired")("ReactComposerCollectionStore",function($){S=$.getAttachmentConfig(d)})}var T=a("ReactComposerTaggerStore").hasData(d,a("ReactComposerTaggerType").BREAKING_NEWS),U=0;if(T)U=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").BREAKING_NEWS).expirationTime;if(T&&S&&S.params.url){S.params.breaking_news_selected=T;S.params.breaking_news_expiration=U}var V=a("ReactComposerTaggerStore").hasMarkdown(d);a("ifRequired")("ReactComposerMarkdownStore",function($){V=V||$.isMarkdownEnabled(d)});var na=a("ifRequired")("ReactComposerPostToGroupStore",function($){return $.getIsTabSelected(d)},function(){return false}),oa=a("ReactComposerTaggerStore").getPoliticalDistrictInfo(d),W=a("ReactComposerTaggerStore").getTaggerData(d,a("ReactComposerTaggerType").CONTENT_WARNINGS);if(W!=null)W=W.map(function($){return $.getUniqueID()});var pa=null;a("ifRequired")("ReactComposerTopicFeedsTaggerStore",function($){if(!$.getIsDarkLaunch(d))pa=$.getTaggedTopics(d).toArray()});var qa=null;a("ifRequired")("ReactComposerGroupPostTagsTaggerStore",function($){qa=$.getPostTagIDs(d)});var X=a("ReactComposerPromptsStore").getPromptData(d),ra=a("ReactComposerSessionMetricsStore").getComposerStartTime(d),sa=null;if(ra)sa=Math.round((Date.now()-ra)/1e3);var ta=false;a("ifRequired")("ReactComposerProfileBadgeStore",function($){ta=$.hasProfileBadge(d)});var Y=a("ComposerXMarauderLogger").getInstance(d),ua=Y&&Y.composerSourceSurface,Z=c.composerConfig.attachmentsConfig&&c.composerConfig.attachmentsConfig[a("ReactComposerAttachmentType").STATUS],va=Z&&Z.richTextEditor,wa=false;if(Z&&Z.isWelcomeToGroupPost)wa=true;var xa=L?null:a("ReactComposerAudienceStore").getAudience(d),ya=null;a("ifRequired")("ReactComposerFindPlayersStore",function($){ya={title:$.getTitle(d),tags:$.getTags(d),name:$.getName(d)}});var za=null;if(a("ReactComposerStore").getRankerRequestID(d))za={RequestID:a("ReactComposerStore").getRankerRequestID(d)};var Aa=null,Ba=S&&S.readOnly;if(Ba)Aa={xc_disable_link:Ba};var Ca=null;a("ifRequired")("ReactComposerCivicEngagementStore",function($){Ca=$.getCivicProductSource(d)});return Object.assign(babelHelpers["extends"]({},a("ReactComposerStatusStore").getRichTextBlocks(d),{action_type_id:o,album_id:L,asset3d_id:ha,asked_fun_fact_prompt_id:B,attachment:S,audience:M,backdated_date:G,boosted_post_config:ma,breaking_news_expiration:U,breaking_news_selected:T,charity_id:ka,composer_entry_time:a("ReactComposerSessionMetricsStore").getComposerEntryTime(d),composer_session_id:a("ReactComposerLoggingStore").getSessionID(d),composer_session_duration:sa,composer_source_surface:ua,composer_type:Y&&Y.composerType,composertags_city:I,composertags_issues:k,composertags_place:F&&F.getUniqueID()||I,composertags_place_name:F&&F.getTitle(),composertags_with:g,composertags_sponsors:K.sponsors,civic_product_source:Ca,direct_share_status:K.directShareStatus,sponsor_relationship:K.sponsorRelationship,composertags_product_items:i,content_warnings:W,extensible_sprouts_ranker_request:za,feed_targeted_data:Q,feed_topics:pa,find_players_info:ya,fun_fact_prompt_id:A,group_post_tag_ids:qa,hide_object_attachment:ia,icon_id:r,is_explicit_place:!!F,is_markdown:V,is_post_to_group:na,is_welcome_to_group_post:wa,is_q_and_a:a("ReactComposerAttachmentStore").getIsAttachmentSelectedOrProxied(d,a("ReactComposerAttachmentType").QANDA),is_profile_badge_post:ta,political_district_info:oa,story_list_attachment_data:this._getListAttachmentData(d),multilingual_statuses:w,multilingual_status_langs:x,multilingual_specified_lang:y,num_keystrokes:a("ReactComposerSessionMetricsStore").getKeystrokeCount(d),num_pastes:a("ReactComposerSessionMetricsStore").getPasteCount(d),object_id:p,object_str:q,place_attachment_setting:ja,poll_question_data:this._getVisualPollAttachmentData(d),privacyx:xa,prompt_id:X?X.promptID:null,prompt_tracking_string:X?X.trackingString:null,publisher_abtest_holdout:R,ref:a("ReactComposerStore").getRef(d),xc_sticker_id:t,event_tag:E&&{event_id:E},tagger_session_id:D&&D.sessionID,target_type:a("ReactComposerStore").getTargetType(d),targeted_privacy_data:la,xhpc_message:a("ReactComposerStatusStore").getMessage(d,va&&!V),xhpc_message_text:a("ReactComposerStatusStore").getMessageText(d),is_forced_reshare_of_post:S&&S.reshare_original_post,xc_disable_config:Aa}),this._getScrapedAttachmentData(S),a("ReactComposerPostUtilsCore").getCoreData(d,c.composerConfig.contextInfo,e))},getMediaUploadsData:function b(c,d){var e=a("ReactComposerPhotoStore").getPhotos(c);d=d.filter(function(f){return f.mediaType===a("ReactComposerMediaUploadType").VIDEO?true:e.some(function(g){return g.id===f.photoID})});return this.getMediaDataWithoutFiltering(c,d)},getMediaDataWithoutFiltering:function b(c,d){var e=d.map(function(j){return j.photoID}).toArray(),f=d&&d.size>0?d.first().holidayCardID:null,g=f!==null?{holiday_card_id:f,source:"promo"}:null,h=a("ReactComposerSlideshowStore").isSlideshowSelected(c),i=null;if(h)i=this._getSlideshowSpec(c);return Object.assign({application:a("PhotosUploadWaterfallApplications").COMPOSER,composer_unpublished_photo:e,qn:a("ReactComposerLoggingStore").getSessionID(c),slideshow_spec:i,waterfallxapp:a("PUWApplications").WEB_REACT_COMPOSER,xy_tags:this._getXYTagData(c),holiday_card:g},this._getCreativeEditingToolsData(d))},_sanitizeDateField:function b(c){return!c||c===-1||c===0?null:c},_getSlideshowSpec:function b(c){var d=a("ReactComposerSlideshowAudioStore").getSelectedStorylineMood(c),e=null;if(d!=null)e=d.moodID;var f=a("ReactComposerSlideshowStore").getDurationInMS(c),g=a("ReactComposerSlideshowStore").getTransitionInMS(c),h=a("ReactComposerSelectedImagesStore").getNumberOfImages(c),i=a("SlideshowUtil").getTotalLengthInSec(f,h),j=a("SlideshowUtil").getDurationParam(h,i,g);return{photo_ids:a("ReactComposerSelectedImagesStore").getPhotoIDs(c),images_crops:a("ReactComposerSelectedImagesStore").getImagesCrops(c),photo_duration:j.durationInMS,photo_transition_duration:j.transitionInMS,storyline_mood_id:e}},_getXYTagData:function b(c){var d=a("ReactComposerPhotoStore").getAllTaggedFaceboxes(c).map(function(f){return{fbid:f.get("photoID"),x:f.get("x"),y:f.get("y"),name:f.get("taggedValue"),subject:f.get("taggedSubjectID"),from_facebox:true,source:f.get("isMagicTag")?"composerx_suggestions":"composerx_flyout"}}),e=a("ReactComposerPhotoStore").getAllXYTags(c).map(function(f){return{fbid:f.get("photoID"),x:f.get("x"),y:f.get("y"),name:f.get("name"),subject:f.get("subject"),from_facebox:f.get("from_facebox"),source:f.get("source")}});return d.concat(e)},_getCreativeEditingToolsData:function b(c){__p&&__p();var d={},e={},f={},g={},h={};c.forEach(function(j){var k=j.get("photoID"),l=a("PhotoEditorSaveStates").getLoggingData(j.get("originalPhotoID"));if(l){d[k]=l.hasFilter?true:null;e[k]=l.hasCrop?true:null;f[k]=l.textOverlays;g[k]=l.stickers;if(l.customAccessibilityCaption)h[k]=l.customAccessibilityCaption}});var i={};i[a("PhotoEditorLoggingConstants").COMPOSER_IMAGE_HAS_FILTER]=d;i[a("PhotoEditorLoggingConstants").COMPOSER_IMAGE_HAS_CROP]=e;i[a("PhotoEditorLoggingConstants").COMPOSER_IMAGE_CUSTOM_ACCESSIBILITY_CAPTION]=h;i[a("PhotoEditorLoggingConstants").COMPOSER_IMAGE_TEXT_OVERLAY]=f;i[a("PhotoEditorLoggingConstants").COMPOSER_IMAGE_STICKER]=g;return i},_getScrapedAttachmentData:function b(c){if(!c||!c.params||c.readOnly)return null;return{xc_share_params:JSON.stringify(c.params),xc_share_target_type:c.type,xc_share_images:c.params.images,xc_share_title:c.params.title,xc_share_summary:c.params.summary,xc_link_url:c.params.url}},_getListAttachmentData:function b(c){__p&&__p();var d=a("ReactComposerAttachmentStore").getIsAttachmentSelectedOrProxied(c,a("ReactComposerAttachmentType").LIST),e=null;if(d)a("ifRequired")("ReactComposerListStore",function(f){var g=f.getListTitle(c),h=g.getCurrentContent().getPlainText().trim(),i=f.getListItems(c),j=f.getSelectedListStyle(c),k=f.getSelectedListColor(c),l=f.getListColors(c),m=f.getListPrompts(c),n=f.getSelectedListPrompt(c),o=n!==-1?m[n].prompt_id:null,p=[];i.forEach(function(q){var r=q.getCurrentContent().getPlainText();if(r.trim().length>0)p.push({description:r.trim()})});e={original_list_id:null,create_story_list_action_link:null,list_style:j,title:h,items:p,prompt_id:o,text_format_preset_id:l[k].preset_id}});return e},_getVisualPollAttachmentData:function b(c){__p&&__p();var d=a("ReactComposerAttachmentStore").getIsAttachmentSelectedOrProxied(c,a("ReactComposerAttachmentType").VISUAL_POLL),e=null;if(d)a("ifRequired")("ReactComposerQuestionStore",function(f){__p&&__p();var g=f.isRelativeEndTime(c),h=f.getVisualPollEndTimeInMillis(c),i=true,j=0,k=0;if(g)k=h/1e3;else j=h/1e3;var l=f.getVisualPollNumOptions(c),m=f.getVisualPollOptionTexts(c),n=f.getVisualPollOptionGifUrls(c),o=a("ReactComposerMediaUploadStore").getUploads(c),p=this.getMediaUploadsData(c,o).composer_unpublished_photo,q=f.getVisualPollOptionImageIndices(c),r=[],s=0,t=0;for(var u=0;u<l;u++){r.push({});if(u<m.length&&m[u])r[u].text=m[u];else i=false;if(u<n.length&&n[u]){r[u].external_image_url=n[u];s+=1}else if(u<q.length&&q[u]>=0&&q[u]<p.length){r[u].associated_image_id=p[q[u]];t+=1}}var v=s+t===r.length?a("QuestionPollTypeJSEnum").GIF_CHOOSE_ONE:a("QuestionPollTypeJSEnum").VISUAL_TEXT_CHOOSE_ONE;if(i)e={text:a("ReactComposerStatusStore").getMessage(c),question_type:v,poll_end_time:j,relative_poll_end_time:k,options:r}}.bind(this));return e},createFormData:function b(c){__p&&__p();var d={};Object.keys(c).forEach(function(g){__p&&__p();if(c[g]!==undefined&&c[g]!==null){var h=c[g]instanceof Object;if(!h)d[g]=c[g];else{var i=!Object.values(c[g]).every(function(j){return j===undefined||j===null});if(i)d[g]=c[g]}}});var e=new FormData(),f=a("flattenPHPQueryData")(d);Object.keys(f).forEach(function(g){e.append(g,f[g])});return e},getGroupMeetupData:function b(c){var d=null;a("ifRequired")("ReactComposerGroupMeetUpStore.react",function(e){d={meet_up_location_page:e.getPageID(c),meet_up_date_string:e.getDateString(c),meet_up_day_time:e.getDayTime(c),meet_up_rough_time:e.getRoughTimeID(c)}});return{meetup_info:d}}};ea.exports=ga}),null);
__d("CanvasVideoThumbnail",["Promise","DOM","EventListener","VideoThumbnail","canvasToBlob"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("VideoThumbnail"));i=h&&h.prototype;function j(k,l,m){"use strict";i.constructor.call(this,null);this.$CanvasVideoThumbnail1=k;this.$CanvasVideoThumbnail2=l;this.$CanvasVideoThumbnail3=m}j.prototype.getTime=function(){"use strict";return this.$CanvasVideoThumbnail3?this.$CanvasVideoThumbnail3:0};j.prototype.getURL=function(){"use strict";if(!this.$CanvasVideoThumbnail4)this.$CanvasVideoThumbnail4=this.$CanvasVideoThumbnail1.toDataURL("image/jpeg");return this.$CanvasVideoThumbnail4};j.prototype.getData=function(){"use strict";__p&&__p();var k=c("DOM").create("canvas"),l=k.getContext("2d"),m=this.$CanvasVideoThumbnail2;return new(c("Promise"))(function(n,o){var p=c("EventListener").listen(m,"seeked",function(){p.remove();k.width=m.videoWidth;k.height=m.videoHeight;l.drawImage(m,0,0,k.width,k.height);c("canvasToBlob")(k,"image/jpeg").then(n,o)});m.currentTime=this.$CanvasVideoThumbnail3}.bind(this))};j.prototype.getDataWithText=function(k,l,m,n,o,p,q,r){"use strict";__p&&__p();var s=c("DOM").create("canvas"),t=s.getContext("2d"),u=this.$CanvasVideoThumbnail2;return new(c("Promise"))(function(v,w){__p&&__p();var x=c("EventListener").listen(u,"seeked",function(){x.remove();s.width=u.videoWidth;s.height=u.videoHeight;t.fillStyle=q;t.textAlign=r;t.drawImage(u,0,0,s.width,s.height);t=c("VideoThumbnail").addTextToCanvasContext(t,k,l,m,n,o,p,q,r);c("canvasToBlob")(s,"image/jpeg").then(v,w).done()});u.currentTime=this.$CanvasVideoThumbnail3}.bind(this))};f.exports=j}),null);
__d("generateVideoThumbnails",["Promise","CanvasVideoThumbnail","EventListener","VideoFrameBuffer","VideoThumbnail"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j,k,l){__p&&__p();var m=arguments.length<=4||arguments[4]===undefined?"contain":arguments[4],n=arguments.length<=5||arguments[5]===undefined?0:arguments[5];return new(c("Promise"))(function(o,p){__p&&__p();var q=document.createElement("canvas"),r=[],s=0,t=(i.duration-n)/l,u=new(c("VideoThumbnail"))(""),v=new(c("VideoFrameBuffer"))(q,i,m),w;q.width=j;q.height=k;var x=function x(){v.updateFrameBuffer();var z=new(c("CanvasVideoThumbnail"))(q,i,n+(s-1)*t);r.push(z);if(z.getURL().length>u.getURL().length)u=z;y()},y=function y(){__p&&__p();if(s===0)w=c("EventListener").listen(i,"seeked",x);if(s<l){i.currentTime=n+s*t;s++}else{if(w)w.remove();o({thumbnails:r,selectedThumbnail:u})}};if(i.videoWidth===0||i.videoHeight===0){p();return}y()})}f.exports=h}),null);
__d("DocumentMentionsRegex",[],(function a(b,c,d,e,f,g){"use strict";var h="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;",i="\\b[A-Z][^\\s"+h+"]",j={PUNCTUATION:h,NAME:i};f.exports=j}),null);
__d("AtSignMentionsStrategy",["DocumentMentionsRegex"],(function a(b,c,d,e,f,g){var h=c("DocumentMentionsRegex").PUNCTUATION,i=["@","\\uff20"].join(""),j="[^"+i+h+"\\s]",k="(?:\\.[ |$]| |["+h+"]|)",l=new RegExp("(?:^|\\s|\\()(["+i+"]((?:"+j+k+"){0,20}))$"),m={name:"AtSignMentionsStrategy",findMentionableString:function n(o){var p=l.exec(o);if(p!==null){var q=p[2];if(q.length)return{matchingString:q,leadOffset:p[1].length}}return null}};f.exports=m}),null);
__d("DocumentCompositeMentionsSource",["invariant","emptyFunction","nullthrows"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(k,l){var m=k.getCharacterList().toSeq().slice(0,l).reverse().takeWhile(function(n){return n.getEntity()===null}).count();return k.getText().slice(l-m,l)}function j(k){k.length>0||h(0);this.$DocumentCompositeMentionsSource1=k;this.$DocumentCompositeMentionsSource2=false;this.$DocumentCompositeMentionsSource3=null}j.prototype.bootstrap=function(k){__p&&__p();if(this.$DocumentCompositeMentionsSource2)return;this.$DocumentCompositeMentionsSource2=true;k=k||c("emptyFunction");var l=this.$DocumentCompositeMentionsSource1.length;function m(){l--;if(!l)k&&k()}this.$DocumentCompositeMentionsSource1.forEach(function(n){n.bootstrap(m)})};j.prototype.search=function(k,l,m){var n=l.getAnchorKey(),o=k.getBlockForKey(n);this.$DocumentCompositeMentionsSource4(i(o,l.getAnchorOffset()),m)};j.prototype.$DocumentCompositeMentionsSource4=function(k,l){__p&&__p();var m=this.$DocumentCompositeMentionsSource1.length,n,o;for(var p=0;p<m;p++){n=this.$DocumentCompositeMentionsSource1[p];o=n.findMatch(k);if(o===null)continue;else{var q=c("nullthrows")(o).matchingString;this.$DocumentCompositeMentionsSource3=q;n.search(q,function(r,s){if(this.$DocumentCompositeMentionsSource3===s)l(r,o.leadOffset)}.bind(this));return}}this.$DocumentCompositeMentionsSource3=null;l(null,null)};f.exports=j}),null);
__d("DocumentMentionsSource",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j,k){typeof j.findMentionableString==="function"||h(0);this.$DocumentMentionsSource1=j;this.$DocumentMentionsSource2=k;this.$DocumentMentionsSource3=false}i.prototype.findMatch=function(j){return this.$DocumentMentionsSource1.findMentionableString(j)};i.prototype.bootstrap=function(j){if(!this.$DocumentMentionsSource3){this.$DocumentMentionsSource3=true;this.$DocumentMentionsSource2.bootstrap(j)}};i.prototype.search=function(j,k){this.$DocumentMentionsSource2.search(j,k,{strategyName:this.$DocumentMentionsSource1.name})};f.exports=i}),null);
__d("CommerceProductTaggerType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NONE:"none",SHOP_PAGE:"shop_page",NON_SHOP_PAGE:"non_shop_page",INFLUENCER_PAGE:"influencer_page"})}),null);
__d("CommerceSelfServeNUXType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ADD_SHIPPING_OPTIONS_PUX:"add_shipping_options_pux",ADMIN_PAYMENTS_NAV_ITEM_NUX:"admin_payments_nav_item_nux",COLLECTION_SHARE_UPSELL:"collection_share_upsell",COMMERCE_INTRO_LANDING_NUX:"commerce_intro_landing_nux",COMPOSER_PRODUCT_PHOTO_TAGGER_BUTTON:"composer_product_photo_tagger_button",COMPOSER_PRODUCT_TAGGER_BUTTON:"composer_product_tagger_button",DISCOUNT_CODES_UPSELL:"discount_codes_upsell",FIRST_ORDER_BANNER:"first_order_banner",FIRST_ORDER_MODAL:"first_order_modal",INVOICE_PAYMENTS_CONFIRM_PUX:"invoice_payments_confirm_pux",INVOICE_PAYMENTS_CREATION_PUX:"invoice_payments_creation_pux",INVOICE_PAYMENTS_INVOICE_CREATION_BUTTON:"invoice_payments_invoice_creation_button",INVOICE_PAYMENTS_PAGE_LANDING_UPSELL:"invoice_payments_page_landing_upsell",PHOTO_VIEWER_PRODUCT_TAGGER_BUTTON:"photo_viewer_product_tagger_button",PRODUCT_ATTACHMENT_COMPOSER:"product_attachment_composer_nux",SHOP_NOW_CTA:"shop_now_cta",SHOP_TAB_IN_PUBLISHING_TOOLS:"shop_tab_pt_self_serve_nux",SHOP_TAB_ON_PAGE:"shop_tab_page_self_serve_nux",VIDEO_COMPOSER_PRODUCT_TAGGER_BUTTON:"video_composer_product_tagger_button",VIDEO_EDITOR_PRODUCT_TAGGER_BUTTON:"video_editor_product_tagger_button",VIDEO_COMPOSER_MESSENGER_PROMPT_BUTTON:"video_composer_messenger_prompt_button",PHOTO_COMPOSER_MESSENGER_PROMPT_BUTTON:"photo_composer_messenger_prompt_button",PRODUCT_TAG_PAGE_LANDING_UPSELL:"product_tag_page_landing_upsell"})}),null);
__d("PUWErrorCodes",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({BAD_JPEG:9901,WORKER_TERMINATED:9902,UNKNOWN_RESIZE_ERROR:9903,WORKER_ABORT:9904})}),null);
__d("Emscripten",[],(function a(b,c,d,e,f,g){f.exports={isSupported:function h(){return typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set}}}),null);
__d("PooledWebWorker",["WebWorker"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("WebWorker"));i=h&&h.prototype;function j(k,l,m){"use strict";i.constructor.call(this,m);this.$PooledWebWorker1=l;this.$PooledWebWorker2=k}j.prototype.getIndex=function(){"use strict";return this.$PooledWebWorker1};j.prototype.getPool=function(){"use strict";return this.$PooledWebWorker2};f.exports=j}),null);
__d("WebWorkerPool",["PooledWebWorker","emptyFunction"],(function a(b,c,d,e,f,g){__p&&__p();h.isSupported=function(){"use strict";return c("PooledWebWorker").isSupported()};function h(i,j){"use strict";this.$WebWorkerPool1=[];for(var k=0;k<j;k++)this.$WebWorkerPool1.push(new(c("PooledWebWorker"))(this,k,i).setErrorHandler(this.$WebWorkerPool2).setMessageHandler(this.$WebWorkerPool3).execute());this.$WebWorkerPool4=0}h.prototype.setMessageHandler=function(i){"use strict";this.$WebWorkerPool5=i||c("emptyFunction");return this};h.prototype.setAllowCrossPageTransition=function(i){"use strict";this.$WebWorkerPool1.forEach(function(j){return j.setAllowCrossPageTransition(i)});return this};h.prototype.setErrorHandler=function(i){"use strict";this.$WebWorkerPool6=i||c("emptyFunction");return this};h.prototype.postMessage=function(){"use strict";var i=this.getWorker();for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];i.postMessage.apply(i,k);return i};h.prototype.$WebWorkerPool3=function(){"use strict";for(var i=arguments.length,j=Array(i),k=0;k<i;k++)j[k]=arguments[k];j.unshift(this);this.getPool().$WebWorkerPool5.apply(this.getPool(),j)};h.prototype.$WebWorkerPool2=function(){"use strict";for(var i=arguments.length,j=Array(i),k=0;k<i;k++)j[k]=arguments[k];j.unshift(this);return this.getPool().$WebWorkerPool6.apply(this.getPool(),j)};h.prototype.getWorker=function(){"use strict";var i=this.$WebWorkerPool1[this.$WebWorkerPool4];this.$WebWorkerPool4=(this.$WebWorkerPool4+1)%this.$WebWorkerPool1.length;return i};f.exports=h}),null);
__d("JpegResizer",["Emscripten","JpegResizerConfig","JpegResizeWorkerResource","PUWErrorCodes","WebWorker","WebWorkerPool"],(function a(b,c,d,e,f,g){__p&&__p();var h=null;i.isSupported=function(){"use strict";return c("WebWorkerPool").isSupported()&&c("Emscripten").isSupported()&&!c("JpegResizerConfig").isGKBlacklisted};i.getSingleton=function(j){"use strict";if(!h)h=new i(j||i.DEFAULT_POOL_SIZE).setAllowCrossPageTransition(true);return h};i.prepareResource=function(j){"use strict";c("WebWorker").prepareResource(c("JpegResizeWorkerResource"),j)};function i(j){"use strict";j=j||i.DEFAULT_POOL_SIZE;c("WebWorker").prepareResource(c("JpegResizeWorkerResource"));this.$JpegResizer1=new(c("WebWorkerPool"))(c("JpegResizeWorkerResource"),j).setErrorHandler(this.$JpegResizer2.bind(this)).setMessageHandler(this.$JpegResizer3.bind(this));this.$JpegResizer4={};this.$JpegResizer5=i.DEFAULT_RESIZE_HEIGHT;this.$JpegResizer6=i.DEFAULT_RESIZE_WIDTH;this.$JpegResizer7=0;this.$JpegResizer8=85}i.prototype.setHighQuality=function(j){"use strict";if(j){this.$JpegResizer5=i.DEFAULT_RESIZE_HEIGHT;this.$JpegResizer6=i.DEFAULT_RESIZE_WIDTH}else{this.$JpegResizer5=i.LOW_QUALITY_RESIZE_HEIGHT;this.$JpegResizer6=i.LOW_QUALITY_RESIZE_WIDTH}return this};i.prototype.setEncodeQuality=function(j){"use strict";this.$JpegResizer8=j;return this};i.prototype.setUndershoot=function(j){"use strict";this.$JpegResizer7=j;return this};i.prototype.setAllowCrossPageTransition=function(j){"use strict";this.$JpegResizer1.setAllowCrossPageTransition(j);return this};i.prototype.resizeBlob=function(j,k,l){"use strict";return this.$JpegResizer9(j,this.$JpegResizer6,this.$JpegResizer5,k,l)};i.prototype.resize360Blob=function(j,k,l,m){"use strict";var n=this.$JpegResizer6*3,o=this.$JpegResizer5*3;if(m){n=m;o=m}return this.$JpegResizer9(j,n,o,k,l)};i.prototype.$JpegResizer9=function(j,k,l,m,n){"use strict";__p&&__p();var o=this.$JpegResizer1.getWorker();if(o.isCurrentState("terminated")){var p=new Error("Worker terminated");p.code=c("PUWErrorCodes").WORKER_TERMINATED;m(p);return this}var q=o.postMessage({blob:j,height:l,width:k,quality:this.$JpegResizer8,undershoot:this.$JpegResizer7}).getIndex();this.$JpegResizer10(q).unshift({done:m,progress:n});return this};i.prototype.$JpegResizer10=function(j){"use strict";if(!Object.prototype.hasOwnProperty.call(this.$JpegResizer4,j))this.$JpegResizer4[j]=[];return this.$JpegResizer4[j]};i.prototype.$JpegResizer2=function(j,k){"use strict";j.terminate();var l=this.$JpegResizer10(j.getIndex());this.$JpegResizer11(k);l.forEach(function(m){return m.done(k)});l.length=0};i.prototype.$JpegResizer3=function(j,k){"use strict";if(k.error)this.$JpegResizer11(k.error);if(k.done)this.$JpegResizer10(j.getIndex()).pop().done(k.error,k.blob,k.skipped,k.originalWidth,k.originalHeight);else{var l=this.$JpegResizer10(j.getIndex()),m=l[l.length-1].progress;if(m)m({written:k.written,total:k.total})}};i.prototype.$JpegResizer11=function(j){"use strict";var k=j.message;if(k&&k.indexOf("Not a JPEG file")!==-1)j.code=c("PUWErrorCodes").BAD_JPEG;else if(k&&k.indexOf("abort()")!==-1)j.code=c("PUWErrorCodes").WORKER_ABORT;else j.code=c("PUWErrorCodes").UNKNOWN_RESIZE_ERROR};i.DEFAULT_POOL_SIZE=3;i.DEFAULT_RESIZE_HEIGHT=2048;i.DEFAULT_RESIZE_WIDTH=2048;i.LOW_QUALITY_RESIZE_HEIGHT=960;i.LOW_QUALITY_RESIZE_WIDTH=960;f.exports=i}),null);
__d("XCommerceSelfServeMerchantNUXSeenController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/commerce/self-serve/merchant/mark-nux-seen/",{page_id:{type:"Int",required:true},nux_type:{type:"Enum",required:true,enumType:1},event:{type:"Enum",defaultValue:"Actn_NuxSeen",enumType:1}})}),null);
__d("XVideoEditDialogSaveController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/video/edit/dialog/save/",{v:{type:"Int",required:true}})}),null);