text: /*!CK:1514669995!*//*1419288494,*/
  
  if (self.CavalryLogger) { CavalryLogger.start_js(["SEV9s"]); }
  
  __d("AdBudgetType",[],function(a,b,c,d,e,f){e.exports={DAILY:"daily_budget",LIFETIME:"lifetime_budget"};},null);
  __d("AdmanagerAccountStatuses",[],function(a,b,c,d,e,f){e.exports={ACTIVE:1,DISABLED:2,UNSETTLED:3,PENDING_RISK_REVIEW:7,IN_GRACE_PERIOD:9,PENDING_CLOSURE:100,CLOSED:101,PENDING_SETTLEMENT:102,ANY_ACTIVE:201,ANY_CLOSED:202};},null);
  __d("AdsAccountCapabilities",[],function(a,b,c,d,e,f){e.exports={PE_GREEN_BUTTON_TEST_FEATURE:"PE_GREEN_BUTTON_TEST_FEATURE",GREEN_BUTTON_TEST_FEATURE_TEST_TEST:"GREEN_BUTTON_TEST_FEATURE_TEST_TEST",AD_SET_PROMOTED_OBJECT_APP:"AD_SET_PROMOTED_OBJECT_APP",AD_SET_PROMOTED_OBJECT_OFFER:"AD_SET_PROMOTED_OBJECT_OFFER",AD_SET_PROMOTED_OBJECT_PAGE:"AD_SET_PROMOTED_OBJECT_PAGE",AD_SET_PROMOTED_OBJECT_PIXEL:"AD_SET_PROMOTED_OBJECT_PIXEL",ADS_TARGETING_FLEXIBLE_UI_ACCOUNTS:"ADS_TARGETING_FLEXIBLE_UI_ACCOUNTS",DIRECT_SALES:"DIRECT_SALES",PREMIUM:"PREMIUM",VIEW_TAGS:"VIEW_TAGS",CUSTOM_CLUSTER_SHARING:"CUSTOM_CLUSTER_SHARING",LOOKALIKE_AUDIENCE:"LOOKALIKE_AUDIENCE",CUSTOM_AUDIENCES_OPT_OUT_LINK:"CUSTOM_AUDIENCES_OPT_OUT_LINK",CUSTOM_AUDIENCES_REV_SHARE:"CUSTOM_AUDIENCES_REV_SHARE",SYNDICATED_AUDIENCE:"SYNDICATED_AUDIENCE",CUSTOM_AUDIENCES_TOKEN_UPLOAD:"CUSTOM_AUDIENCES_TOKEN_UPLOAD",LOOKALIKE_ADVANCED_CONFIG:"LOOKALIKE_ADVANCED_CONFIG",CUSTOM_AUDIENCES_FOLDERS:"CUSTOM_AUDIENCES_FOLDERS",PLATFORM_ADVERTISER_TOKEN_UPLOAD:"PLATFORM_ADVERTISER_TOKEN_UPLOAD",OFFSITE_CONVERSION_HIGH_BID:"OFFSITE_CONVERSION_HIGH_BID",MOBILE_ADVERTISER_ID_UPLOAD:"MOBILE_ADVERTISER_ID_UPLOAD",CAN_SEND_FEEDBACK:"CAN_SEND_FEEDBACK",CAN_CREATE_LOOKALIKES_WITH_CUSTOM_RATIO:"CAN_CREATE_LOOKALIKES_WITH_CUSTOM_RATIO",MOBILE_APP_REENGAGEMENT_ADS:"MOBILE_APP_REENGAGEMENT_ADS",HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS:"HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS",NEKO_DESKTOP_CANVAS_APP_ADS:"NEKO_DESKTOP_CANVAS_APP_ADS",MOBILE_APP_VIDEO_ADS:"MOBILE_APP_VIDEO_ADS",CAN_USE_IMPROVED_GEO:"CAN_USE_IMPROVED_GEO",CAN_USE_REACH_AND_FREQUENCY:"CAN_USE_REACH_AND_FREQUENCY",HOLDOUT_VIEW_TAGS:"HOLDOUT_VIEW_TAGS",NEW_CAMPAIGN_STRUCTURE:"NEW_CAMPAIGN_STRUCTURE",CAN_USE_CONVERSION_LOOKALIKES:"CAN_USE_CONVERSION_LOOKALIKES",CAN_USE_INVENTORY_MANAGER:"CAN_USE_INVENTORY_MANAGER",CAN_UPDATE_CURRENCY:"CAN_UPDATE_CURRENCY",HAS_AVAILABLE_PAYMENT_METHODS:"HAS_AVAILABLE_PAYMENT_METHODS",CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE:"CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE",CAN_USE_OLD_AD_TYPES:"CAN_USE_OLD_AD_TYPES",PRORATED_BUDGET:"PRORATED_BUDGET",FAN_PLACEMENT_NON_DEFAULT:"FAN_PLACEMENT_NON_DEFAULT",CAN_USE_REACH_BLOCK:"CAN_USE_REACH_BLOCK",CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE_FOR_LPP:"CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE_FOR_LPP",HAS_AD_SET_TARGETING:"HAS_AD_SET_TARGETING",CAN_USE_VIDEO_METRICS_BREAKDOWN:"CAN_USE_VIDEO_METRICS_BREAKDOWN",HAS_EXTENDED_ARCHIVE_LIMIT:"HAS_EXTENDED_ARCHIVE_LIMIT",BULK_ACCOUNT:"BULK_ACCOUNT",CAN_USE_FLEXIBLE_START_END_TIME:"CAN_USE_FLEXIBLE_START_END_TIME",CAN_OVERRIDE_PAGE_ACTOR:"CAN_OVERRIDE_PAGE_ACTOR"};},null);
  __d("AdsAPIAdAccountFields",[],function(a,b,c,d,e,f){e.exports={ACCOUNT_GROUPS:"account_groups",ACCOUNT_ID:"account_id",ACCOUNT_STATUS:"account_status",ACTIONESTIMATE:"actionestimate",ADCAMPAIGNS:"adcampaigns",ADCAMPAIGNSTATS:"adcampaignstats",ADCREATIVES:"adcreatives",ADGROUPS:"adgroups",ADGROUPSTATS:"adgroupstats",ADIMAGES:"adimages",ADREPORTSPECS:"adreportspecs",ADS_CREATION_SAVED_STATE:"ads_creation_saved_state",ADSPAYMENTCYCLE:"adspaymentcycle",AGE:"age",AGENCY_CLIENT_DECLARATION:"agency_client_declaration",ALL_PAYMENT_METHODS:"all_payment_methods",AMOUNT_SPENT:"amount_spent",ARCHIVED_CAMPAIGN_GROUP_COUNT:"archived_campaign_group_count",ARCHIVED_CAMPAIGN_COUNT:"archived_campaign_count",ARCHIVED_ADGROUP_COUNT:"archived_adgroup_count",AUDIENCES:"audiences",BALANCE:"balance",BRANDS:"brands",BROADTARGETINGCATEGORIES:"broadtargetingcategories",BUSINESS:"business",BUSINESS_CITY:"business_city",BUSINESS_COUNTRY_CODE:"business_country_code",BUSINESS_ENTITY:"business_entity",BUSINESS_NAME:"business_name",BUSINESS_STATE:"business_state",BUSINESS_STREET:"business_street",BUSINESS_STREET2:"business_street2",BUSINESS_ZIP:"business_zip",BUSINESSLABELS:"businessprojects",CAN_CREATE_AD_WITHOUT_TAX_ID:"can_create_ad_without_tax_id",CAPABILITIES:"capabilities",CONNECTIONOBJECTS:"connectionobjects",CREATED_TIME:"created_time",CURRENCY:"currency",DAILY_SPEND_LIMIT:"daily_spend_limit",END_ADVERTISER:"end_advertiser",EXTENDED_CREDIT_INFO:"extended_credit_info",EXTENDED_CREDIT_STATUS:"extended_credit_status",FAILED_DELIVERY_CHECKS:"failed_delivery_checks",FUNDING_SOURCE:"funding_source",FUNDING_SOURCE_DETAILS:"funding_source_details",HAS_EXTENDED_CREDIT:"has_extended_credit",HAS_MIGRATED_PERMISSIONS:"has_migrated_permissions",ID:"id",IO_NUMBER:"io_number",IS_BR_ENTITY_ACCOUNT:"is_br_entity_account",IS_PERSONAL:"is_personal",IS_PREPAY_ACCOUNT:"is_prepay_account",IS_TAX_ID_REQUIRED:"is_tax_id_required",LINE_NUMBERS:"line_numbers",MAX_BILLING_THRESHOLD:"max_billing_threshold",MEDIA_AGENCY:"media_agency",MIN_BILLING_THRESHOLD:"min_billing_threshold",MIN_CAMPAIGN_GROUP_SPEND_CAP:"min_campaign_group_spend_cap",MIN_DAILY_BUDGET:"min_daily_budget",MOO_DEFAULT_CONVERSION_BID:"moo_default_conversion_bid",NAME:"name",OFFSITE_PIXELS_TOS_ACCEPTED:"offsite_pixels_tos_accepted",OWNER:"owner",PARTNER:"partner",PREPAY_ACCOUNT_BALANCE:"prepay_account_balance",REACHESTIMATE:"reachestimate",RF_SPEC:"rf_spec",SHOW_CURRENCY_SWAP_WARNING:"show_currency_swap_warning",SPEND_CAP:"spend_cap",SPEND_LIMITS:"spendlimits",STATS:"stats",TAX_ID:"tax_id",TAX_ID_TYPE:"tax_id_type",TIMEZONE_ID:"timezone_id",TIMEZONE_NAME:"timezone_name",TIMEZONE_OFFSET_HOURS_UTC:"timezone_offset_hours_utc",TIMEZONE_OFFSETS:"timezoneoffsets",TOS_ACCEPTED:"tos_accepted",TRANSACTIONS:"transactions",USER_ROLE:"user_role",USER_SETTINGS:"user_settings",USERPERMISSIONS:"userpermissions",USERS:"users",VAT_STATUS:"vat_status",TAX_ID_STATUS:"tax_id_status",VERTICAL_ID:"vertical_id",VERTICAL_NAME:"vertical_name"};},null);
  __d("AdsAPIAdgroupFields",[],function(a,b,c,d,e,f){e.exports={ACCOUNT_ID:"account_id",ADGROUP_REVIEW_FEEDBACK:"adgroup_review_feedback",ADGROUP_STATUS:"adgroup_status",AD_CAMPAIGN:"adcampaign",BID_INFO:"bid_info",BID_TYPE:"bid_type",CAMPAIGN_GROUP_ID:"campaign_group_id",CAMPAIGN_ID:"campaign_id",CAMPAIGN_GROUP_NAME:"campaign_group_name",CAMPAIGN_NAME:"campaign_name",CONVERSION_SPECS:"conversion_specs",CREATED_TIME:"created_time",CREATIVE:"creative",CREATIVE_IDS:"creative_ids",DELIVERY_INFO:"delivery_info",DEMOLINK_HASH:"demolink_hash",DISPLAY_SEQUENCE:"display_sequence",ENGAGEMENT_AUDIENCE:"engagement_audience",FAILED_DELIVERY_CHECKS:"failed_delivery_checks",FULLTEXT_SEARCH:"fulltext_search",HOLDOUT_END:"holdout_end",HOLDOUT_HASH:"holdout_hash",HOLDOUT_START:"holdout_start",HOLDOUT_VIEW_TAGS:"holdout_view_tags",ID:"id",IMPRESSION_CONTROL_MAP:"impression_control_map",IS_AUTOBID:"is_autobid",IS_DRAFT_ONLY:"is_draft_only",LAST_UPDATED_BY_APP_ID:"last_updated_by_app_id",LOCATIONS:"locations",NAME:"name",NO_SHOW_OFFSET:"no_show_offset",NO_SHOW_PERCENTAGE:"no_show_percentage",OBJECTIVE:"objective",OBJECTIVE_FOR_COST:"objective_for_cost",OBJECTIVE_FOR_RESULTS:"objective_for_results",OBJECTIVE_SOURCE:"objective_source",PLACEMENT:"name",PRIORITY:"priority",RELEVANCE_SCORE:"relevance_score",SHOW_START:"show_start",SHOW_END:"show_end",SOCIAL_PREFS:"social_prefs",TAG_IDS:"tag_ids",TARGETING:"targeting",TRACKING_AND_CONVERSION_WITH_DEFAULTS:"tracking_and_conversion_with_defaults",TRACKING_SPECS:"tracking_specs",UPDATED_TIME:"updated_time",URL_OVERRIDE:"url_override",VIEW_TAGS:"view_tags"};},null);
  __d("AdsAPIBidType",[],function(a,b,c,d,e,f){e.exports={CPC:"CPC",CPM:"CPM",FIXED_CPM:"FIXED_CPM",FIXED_PRICING:"FIXED_PRICING",MULTI_PREMIUM:"MULTI_PREMIUM",RELATIVE_OCPM:"RELATIVE_OCPM",ABSOLUTE_OCPM:"ABSOLUTE_OCPM",RTB:"RTB",CPA:"CPA"};},null);
  __d("AdsAPICreativeRotationTypes",[],function(a,b,c,d,e,f){e.exports={STANDARD:"standard",IMPRESSION_LIMIT:"impression_limit",TIME_LIMIT:"time_limit"};},null);
  __d("AdsAPIImageFields",[],function(a,b,c,d,e,f){e.exports={ID:"id",ACCOUNT_ID:"account_id",CREATED_TIME:"created_time",CREATIVES:"creatives",HASH:"hash",HEIGHT:"height",NAME:"name",ORIGINAL_WIDTH:"original_width",ORIGINAL_HEIGHT:"original_height",PERMALINK_URL:"permalink_url",STATUS:"status",UPDATED_TIME:"updated_time",URL:"url",URL_128:"url_128",WIDTH:"width"};},null);
  __d("AdsAPIObjectives",[],function(a,b,c,d,e,f){e.exports={NONE:"NONE",OFFER_CLAIMS:"OFFER_CLAIMS",PAGE_LIKES:"PAGE_LIKES",CANVAS_APP_INSTALLS:"CANVAS_APP_INSTALLS",EVENT_RESPONSES:"EVENT_RESPONSES",CANVAS_APP_ENGAGEMENT:"CANVAS_APP_ENGAGEMENT",POST_ENGAGEMENT:"POST_ENGAGEMENT",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",MOBILE_APP_INSTALLS:"MOBILE_APP_INSTALLS",WEBSITE_CLICKS:"WEBSITE_CLICKS",MOBILE_APP_ENGAGEMENT:"MOBILE_APP_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS",MEDIA_DOWNLOADS:"MEDIA_DOWNLOADS",LOCAL_AWARENESS:"LOCAL_AWARENESS",INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS",PRODUCT_CATALOG_SALES:"PRODUCT_CATALOG_SALES",IMPRESSIONS:"IMPRESSIONS",MILLE:"MILLE",LOCAL_IMPRESSIONS:"LOCAL_IMPRESSIONS",MULTIPLE:"MULTIPLE",DEPRECATED_CLICKS:"DEPRECATED_CLICKS",INCOMPATIBLE_OFFER_CLAIMS:"INCOMPATIBLE_OFFER_CLAIMS",INCOMPATIBLE_PAGE_LIKES:"INCOMPATIBLE_PAGE_LIKES",INCOMPATIBLE_CANVAS_APP_INSTALLS:"INCOMPATIBLE_CANVAS_APP_INSTALLS",INCOMPATIBLE_EVENT_RESPONSES:"INCOMPATIBLE_EVENT_RESPONSES",INCOMPATIBLE_CANVAS_APP_ENGAGEMENT:"INCOMPATIBLE_CANVAS_APP_ENGAGEMENT",INCOMPATIBLE_POST_ENGAGEMENT:"INCOMPATIBLE_POST_ENGAGEMENT",INCOMPATIBLE_WEBSITE_CONVERSIONS:"INCOMPATIBLE_WEBSITE_CONVERSIONS",INCOMPATIBLE_MOBILE_APP_INSTALLS:"INCOMPATIBLE_MOBILE_APP_INSTALLS",INCOMPATIBLE_WEBSITE_CLICKS:"INCOMPATIBLE_WEBSITE_CLICKS",INCOMPATIBLE_PAGE_ENGAGEMENT:"INCOMPATIBLE_PAGE_ENGAGEMENT"};},null);
  __d("AdsAPIPacingType",[],function(a,b,c,d,e,f){e.exports={STANDARD:"standard",DISABLED:"disabled",DAY_PARTING:"day_parting",NO_PACING:"no_pacing",PROBABILISTIC_PACING:"probabilistic_pacing"};},null);
  __d("AdsAPITargetGeoLocationTypes",[],function(a,b,c,d,e,f){e.exports={HOME:"home",RECENT:"recent",TRAVEL_IN:"travel_in"};},null);
  __d("AdsApplicationIDs",[],function(a,b,c,d,e,f){e.exports={ADS_CREATOR:"209787012415271",ADS_MANAGER:"484843564880080",ADS_PAYMENT:"123097351040126",ADS_AND_PAGES_MANAGER__DEPRECATED:"6802152230",ADS_CAMPAIGN_MANAGER:"624541620938530",ADS_POWER_EDITOR:"119211728144504"};},null);
  __d("AdsBugReportProduct",[],function(a,b,c,d,e,f){e.exports={ADS_CREATOR:"ads_creator",ADS_MANAGER:"ads_manager",POWER_EDITOR:"power_editor",BUSINESS_SITE:"business_site",CAMPAIGN_MANAGER:"campaign_manager",BOOSTED_POST:"boosted_post",PROMOTED_PAGELIKE:"promoted_pagelike",PROMOTED_WEBSITE:"promoted_website",COUPON:"coupon"};},null);
  __d("AdsCFApiSpecFields",[],function(a,b,c,d,e,f){e.exports={USER_PAGE_FIELDS:["id","name","global_brand_page_name","category","link","picture","likes","is_published","is_verified","userpermissions.fields(user,business,business_persona)"]};},null);
  __d("AdsCFCreationSources",[],function(a,b,c,d,e,f){e.exports={CF:"cf",CM:"cm",REDIRECT_DEBUG:"redirect_debug"};},null);
  __d("AdsCFErrorCode",[],function(a,b,c,d,e,f){e.exports={errorCodeMap:{ADMANAGER__ADGROUP_CREATE_FAILED_FUNDING:1359101,ADGROUP_CAMPAIGN_BUDGET_TOO_LOW_FOR_ADGROUP_BID:1487014,ADGROUP_INVALID_CAMPAIGN:1487006,BODY_ALL_CAPS:1487528,BODY_BAD_CHARS:1487539,BODY_BAD_START_CHAR:1487538,BODY_PUNCTUATION:1487518,BODY_TOO_LONG:1487527,BODY_WORD_LENGTH:1487519,CAMPAIGN_CREATE_MISSING_FRIENDLY_NAME:1487060,CAMPAIGN_GROUP_CREATE_MISSING_NAME:1487552,DEEP_LINK_TITLE_TOO_LONG:1487630,DEEP_LINK_TOO_LONG:1487629,EMPTY_BODY:1487513,EMPTY_IMAGE_URL:1487514,FACEBOOK_CAPITALIZATION:1487591,INVALID_AD_IMAGE_SIZE:1487867,INVALID_CUSTOM_LOCATION:1487851,LINK_DESCRIPTION_ALL_CAPS:1487783,LINK_DESCRIPTION_BAD_CHARS:1487784,LINK_DESCRIPTION_BAD_START_CHAR:1487785,LINK_DESCRIPTION_PUNCTUATION:1487786,LINK_DESCRIPTION_TOO_LONG:1487787,LINK_DESCRIPTION_WORD_LENGTH:1487788,MISSING_ACTOR:1487510,MISSING_DESTINATION:1487516,MISSING_LINK_URL:1487515,MISSING_STORY_ID:1487511,MISSING_TITLE:1487517,MISSING_VIDEO_ID:1487897,MISSING_VIDEO_THUMBNAIL:1487898,MOBILE_APP_AD_DATA_TERMS_NOT_ACCEPTED:1487572,TITLE_BAD_CHARS:1487540,TITLE_BAD_START_CHAR:1487523,TITLE_PUNC_START:1487522,TITLE_PUNCTUATION:1487524,TITLE_TOO_LONG:1487521,TITLE_WORD_LENGTH:1487655,AD_SET_CAN_NOT_BE_SELECTED:1487995,API_EC_ADS_GEO_CODING_FAILED:2621,API_EC_ADS_GEO_TARGETING_COUNTRY_UNAVAILABLE:2629,API_EC_ADS_SEARCH_DESTINATION_BLOCKED:2622}};},null);
  __d("AdsCFEventNames",[],function(a,b,c,d,e,f){e.exports={action_adv_bid_manual_actions:"ACTION_ADV_BID_MANUAL_ACTIONS",ad_api_error:"AD_API_ERROR",ad_block_active:"AD_BLOCK_ACTIVE",ad_image_validation_api_complete:"AD_IMAGE_VALIDATION_API_COMPLETE",ad_image_validation_api_init:"AD_IMAGE_VALIDATION_API_INIT",ad_image_validation_notice_shown:"AD_IMAGE_VALIDATION_NOTICE_SHOWN",ad_image_validation_tool_use:"AD_IMAGE_VALIDATION_TOOL_USE",add_coupon_init:"ADD_COUPON_INIT",admanager_create_async_ad_success_new:"ADMANAGER_CREATE_ASYNC_AD_SUCCESS_NEW",admanager_create_failure_new:"ADMANAGER_CREATE_FAILURE_NEW",admanager_create_secondary_ad_success_new:"ADMANAGER_CREATE_SECONDARY_AD_SUCCESS_NEW",admanager_create_result_new:"ADMANAGER_CREATE_RESULT_NEW",admanager_create_success_new:"ADMANAGER_CREATE_SUCCESS_NEW",admanager_enter_create_edit_new:"ADMANAGER_ENTER_CREATE_EDIT_NEW",admanager_enter_create_new:"ADMANAGER_ENTER_CREATE_NEW",admanager_enter_create_similar_new:"ADMANAGER_ENTER_CREATE_SIMILAR_NEW",admanager_enter_edit_existing_new:"ADMANAGER_ENTER_EDIT_EXISTING_NEW",admanager_generating_access_token_new:"ADMANAGER_GENERATING_ACCESS_TOKEN_NEW",admanager_inline_edit:"ADMANAGER_INLINE_EDIT",admanager_invalid_account_new:"ADMANAGER_INVALID_ACCOUNT_NEW",admanager_show_review_ad_new:"ADMANAGER_SHOW_REVIEW_AD_NEW",adscreator_data_ready:"ADSCREATOR_DATA_READY",adscreator_initial_data_err:"ADSCREATOR_INITIAL_DATA_ERR",adscreator_init:"ADSCREATOR_INIT",adscreator_render_views:"ADSCREATOR_RENDER_VIEWS",aymt_cf_dialog_close:"AYMT_CF_DIALOG_CLOSE",aymt_cf_dialog_confirm:"AYMT_CF_DIALOG_CONFIRM",aymt_cf_dialog_open:"AYMT_CF_DIALOG_OPEN",auto_entity_chosen:"AUTO_ENTITY_CHOSEN",bct_anyall_selection_click:"BCT_ANYALL_SELECTION_CLICK",bct_list_add_entry_click:"BCT_LIST_ADD_ENTRY_CLICK",bct_list_toggle_expand_click:"BCT_LIST_TOGGLE_EXPAND_CLICK",bct_typeahead_dropdown_click:"BCT_TYPEAHEAD_DROPDOWN_CLICK",bct_whitebox_category_click:"BCT_WHITEBOX_CATEGORY_CLICK",campaign_group_select:"CAMPAIGN_GROUP_SELECT",campaign_group_name_change:"CAMPAIGN_GROUP_SELECT_AND_UPDATE",campaign_groups_loaded:"CAMPAIGN_GROUPS_LOADED",campaign_select:"CAMPAIGN_SELECT",cancel_contact_importer:"CANCEL_CONTACT_IMPORTER",cancel_edited_campaign:"CANCEL_EDITED_CAMPAIGN",cancel_image_library_image_selector:"CANCEL_IMAGE_LIBRARY_IMAGE_SELECTOR",cancel_new_customer_list:"CANCEL_NEW_CUSTOMER_LIST",cancel_new_fb_page_category_local:"CANCEL_NEW_FB_PAGE_CATEGORY_LOCAL",cancel_new_fb_page_category_news_feed_format:"CANCEL_NEW_FB_PAGE_CATEGORY_NEWS_FEED_FORMAT",cancel_new_fb_page_form_local:"CANCEL_NEW_FB_PAGE_FORM_LOCAL",cancel_new_fb_page_form_news_feed_format:"CANCEL_NEW_FB_PAGE_FORM_NEWS_FEED_FORMAT",change_account_country:"CHANGE_ACCOUNT_COUNTRY",change_account_currency:"CHANGE_ACCOUNT_CURRENCY",change_account_timezone_id:"CHANGE_ACCOUNT_TIMEZONE_ID",change_auto_update_post:"CHANGE_AUTO_UPDATE_POST",change_bid_section_visibility:"CHANGE_BID_SECTION_VISIBILITY",change_body:"CHANGE_BODY",change_budget_mode:"CHANGE_BUDGET_MODE",change_campaign_budget:"CHANGE_CAMPAIGN_BUDGET",change_campaign_name:"CHANGE_CAMPAIGN_NAME",change_campaign_schedule:"CHANGE_CAMPAIGN_SCHEDULE",change_campaign_schedule_mode:"CHANGE_CAMPAIGN_SCHEDULE_MODE",change_campaign_status:"CHANGE_CAMPAIGN_STATUS",change_image_crops:"CHANGE_IMAGE_CROPS",change_linkDescription:"CHANGE_LINK_DESCRIPTION",change_placements:"CHANGE_PLACEMENTS",change_run_continuously:"CHANGE_RUN_CONTINUOUSLY",change_title:"CHANGE_TITLE",change_call_to_action:"CHANGE_CALL_TO_ACTION",click_adv_bid_manual_clicks:"CLICK_ADV_BID_MANUAL_CLICKS",click_adv_bid_optimization_change:"CLICK_ADV_BID_OPTIMIZATION_CHANGE",click_campaign_section_help:"CLICK_CAMPAIGN_SECTION_HELP",click_campaign_pricing_section_help:"CLICK_CAMPAIGN_PRICING_SECTION_HELP",click_contact_admin:"CLICK_CONTACT_ADMIN",click_contact_importer:"CLICK_CONTACT_IMPORTER",click_creative_section_help:"CLICK_CREATIVE_SECTION_HELP",click_rhc_redesign_help:"CLICK_RHC_REDESIGN_HELP",click_destination_section_help:"CLICK_DESTINATION_SECTION_HELP",click_entity_chosen:"CLICK_ENTITY_CHOSEN",click_fb_page_selector:"CLICK_FB_PAGE_SELECTOR",click_hide_adv_creative:"CLICK_HIDE_ADV_CREATIVE",click_image_cropper_item:"CLICK_IMAGE_CROPPER_ITEM",click_image_tab:"CLICK_IMAGE_LIBRARY_TAB",click_new_campaign:"CLICK_NEW_CAMPAIGN",click_new_customer_list:"CLICK_NEW_CUSTOMER_LIST",click_new_fb_page_local:"CLICK_NEW_FB_PAGE_LOCAL",click_new_fb_page_news_feed_format:"CLICK_NEW_FB_PAGE_NEWS_FEED_FORMAT",click_objective_section_help:"CLICK_OBJECTIVE_SECTION_HELP",click_pager_image_selector:"CLICK_PAGER_IMAGE_SELECTOR",click_place_order_main:"CLICK_PLACE_ORDER_MAIN",click_post_selector:"CLICK_POST_SELECTOR",click_pricing_section_help:"CLICK_PRICING_SECTION_HELP",click_review_ad_main:"CLICK_REVIEW_AD_MAIN",click_show_adv_creative:"CLICK_SHOW_ADV_CREATIVE",click_show_adv_pricing:"CLICK_SHOW_ADV_PRICING",click_simple_pricing_section_help:"CLICK_SIMPLE_PRICING_SECTION_HELP",click_targeting_section_help:"CLICK_TARGETING_SECTION_HELP",click_upload_image_selector:"CLICK_UPLOAD_IMAGE_SELECTOR",click_use_existing_campaign:"CLICK_USE_EXISTING_CAMPAIGN",click_xout_destination:"CLICK_XOUT_DESTINATION",clicked_keyword:"CLICKED_KEYWORD",confirm_image_library_image_selector:"CONFIRM_IMAGE_LIBRARY_IMAGE_SELECTOR",conversion_pixel_created:"CONVERSION_PIXEL_CREATED",conversion_pixel_email_send:"CONVERSION_PIXEL_EMAIL_SEND","conversion-pixel-removed":"CONVERSION_PIXEL_REMOVED","conversion-pixel-selected":"CONVERSION_PIXEL_SELECTED",conversion_pixel_support_seen:"CONVERSION_PIXEL_SUPPORT_SEEN",country_bounding_box_loaded:"COUNTRY_BOUNDING_BOX_LOADED",creative_changed:"CREATIVE_CHANGED",daoerror:"DAOERROR",destination_render:"DESTINATION_RENDER",detect_error_in_file:"DETECT_ERROR_IN_FILE",dismiss_campaign_save_success:"DISMISS_CAMPAIGN_SAVE_SUCCESS",dispatch:"DISPATCH",edit_campaign_button_click:"EDIT_CAMPAIGN_BUTTON_CLICK",edit_fb_page_selector:"EDIT_FB_PAGE_SELECTOR",edit_full_ad_link_clicked:"EDIT_FULL_AD_LINK_CLICKED",error_occurrence:"ERROR_OCCURRENCE",error_pending_object_service:"ERROR_PENDING_OBJECT_SERVICE",first_keyword:"FIRST_KEYWORD",geo_coordinates_loaded_fail:"GEO_COORDINATES_LOADED_FAIL",geo_coordinates_loaded_success:"GEO_COORDINATES_LOADED_SUCCESS",has_cpa_bid_option:"HAS_CPA_BID_OPTION",has_url_eligible_pages:"HAS_URL_ELIGIBLE_PAGES",hit_save:"HIT_SAVE",image_dialog_open:"IMAGE_DIALOG_OPEN",image_download_error:"IMAGE_DOWNLOAD_ERROR",import_contact_success:"IMPORT_CONTACT_SUCCESS",informed_error:"INFORMED_ERROR",init_data_fetch_error:"INIT_DATA_FETCH_ERROR",kpi_edit_objective:"KPI_EDIT_OBJECTIVE",kpi_objective_auto_confirm:"KPI_OBJECTIVE_AUTO_CONFIRM",kpi_objective_auto_select_confirm:"KPI_OBJECTIVE_AUTO_SELECT_CONFIRM",kpi_objective_confirm:"KPI_OBJECTIVE_CONFIRM",kpi_objective_see_more:"KPI_OBJECTIVE_SEE_MORE",kpi_objective_selected:"KPI_OBJECTIVE_SELECTED",local_map_zoom_changed:"LOCAL_MAP_ZOOM_CHANGED",mobile_optimized_msg_dismissed:"MOBILE_OPTIMIZED_MSG_DISMISSED",mobile_optimized_url_check_fail:"MOBILE_OPTIMIZED_URL_CHECK_FAIL",mobile_optimized_url_check_success:"MOBILE_OPTIMIZED_URL_CHECK_SUCCESS",mobile_optimized_url_check_suppressed:"MOBILE_OPTIMIZED_URL_CHECK_SUPPRESSED",mobile_optimized_url_check:"MOBILE_OPTIMIZED_URL_CHECK",modify_cpc_bid_value:"MODIFY_CPC_BID_VALUE",modify_cpm_bid_value:"MODIFY_CPM_BID_VALUE",modify_ocpm_action_bid_value:"MODIFY_OCPM_ACTION_BID_VALUE",navigation_click:"NAVIGATION_CLICK",navigation_section_entered:"NAVIGATION_SECTION_ENTERED",neko_device_toggled:"NEKO_DEVICE_TOGGLED",neko_eligible_user_entered:"NEKO_ELIGIBLE_USER_ENTERED",neko_icon_selected_invalid:"NEKO_ICON_SELECTED_INVALID",neko_icon_selected_valid:"NEKO_ICON_SELECTED_VALID",neko_image_selected_invalid:"NEKO_IMAGE_SELECTED_INVALID",neko_image_selected_valid:"NEKO_IMAGE_SELECTED_VALID",neko_os_updated:"NEKO_OS_UPDATED",no_url_eligible_pages:"NO_URL_ELIGIBLE_PAGES",objective_selected:"OBJECTIVE_SELECTED",one_link_flow_click_place_order_main:"ONE_LINK_FLOW_CLICK_PLACE_ORDER_MAIN",one_link_flow_click_review_ad_main:"ONE_LINK_FLOW_CLICK_REVIEW_AD_MAIN",one_link_flow_complete:"ONE_LINK_FLOW_COMPLETE",one_link_flow_edit:"ONE_LINK_FLOW_EDIT",one_link_flow_enter:"ONE_LINK_FLOW_ENTER",one_link_flow_upsell_xout:"ONE_LINK_FLOW_UPSELL_XOUT",page_chosen_local:"PAGE_CHOSEN_LOCAL",page_location_changed:"PAGE_LOCATION_CHANGED",page_location_error:"PAGE_LOCATION_ERROR",page_location_form_accept:"PAGE_LOCATION_FORM_ACCEPT",pagepost_composer_open:"PAGEPOST_COMPOSER_OPEN",pagepost_publish_linkshare:"PAGEPOST_PUBLISH_LINKSHARE",pagepost_publish_photo:"PAGEPOST_PUBLISH_PHOTO",pagepost_publish_status:"PAGEPOST_PUBLISH_STATUS",payment_cancelled:"PAYMENT_CANCELLED",payment_completed:"PAYMENT_COMPLETED",payment_initiated:"PAYMENT_INITIATED",payment_error:"PAYMENT_ERROR",payment_place_order_clicked:"PAYMENT_PLACE_ORDER_CLICKED",php_page_post_creation_failed:"PHP_PAGE_POST_CREATION_FAILED",preview_pagelet_error:"PREVIEW_PAGELET_ERROR",pricing_changed:"PRICING_CHANGED",render_add_funding:"RENDER_ADD_FUNDING",restore_pricing_defaults:"RESTORE_PRICING_DEFAULTS",review_ad_dialog_add_funding:"REVIEW_AD_DIALOG_ADD_FUNDING",review_ad_dialog_cancel:"REVIEW_AD_DIALOG_CANCEL",review_ad_dialog_place_order:"REVIEW_AD_DIALOG_PLACE_ORDER",review_ad_dialog_show:"REVIEW_AD_DIALOG_SHOW",rhc_redesign_change:"RHC_REDESGN_CHANGE",save_ad_success:"SAVE_AD_SUCCESS",save_edited_campaign_click:"SAVE_EDITED_CAMPAIGN_CLICK",save_edited_campaign_error:"SAVE_EDITED_CAMPAIGN_ERROR",save_edited_campaign_success:"SAVE_EDITED_CAMPAIGN_SUCCESS",save_edited_campaign_timeout:"SAVE_EDITED_CAMPAIGN_TIMEOUT",url_search_error:"URL_SEARCH_ERROR",selected_neko_eligible_app:"SELECTED_NEKO_ELIGIBLE_APP",selected_neko_ineligible_app:"SELECTED_NEKO_INELIGIBLE_APP",show_create:"SHOW_CREATE",show_create_reenter:"SHOW_CREATE_REENTER",show_create_similar:"SHOW_CREATE_SIMILAR",show_default_creative_image:"SHOW_DEFAULT_CREATIVE_IMAGE",show_edit_existing:"SHOW_EDIT_EXISTING",show_edit_existing_campaign:"SHOW_EDIT_EXISTING_CAMPAIGN",show_high_error_warning:"SHOW_HIGH_ERROR_WARNING",show_stock_image_guidelines:"SHOW_STOCK_IMAGE_GUIDELINES",show_image_cropper_dialog:"SHOW_IMAGE_CROPPER_DIALOG",start_constant_contact_auth:"START_CONSTANT_CONTACT_AUTH",start_file_uploading:"START_FILE_UPLOADING",start_mailchimp_auth:"START_MAILCHIMP_AUTH",search_stock_images:"SEARCH_STOCK_IMAGES",success_dialog_click_create_similar:"SUCCESS_DIALOG_CLICK_CREATE_SIMILAR",success_dialog_click_manage_ads:"SUCCESS_DIALOG_CLICK_MANAGE_ADS",success_dialog_fail_ad_creation:"SUCCESS_DIALOG_FAIL_AD_CREATION",success_dialog_ad_creation_timeout:"SUCCESS_DIALOG_AD_CREATION_TIMEOUT",success_dialog_fail_request_related_data:"SUCCESS_DIALOG_FAIL_REQUEST_RELATED_DATA",success_dialog_create_ad_started:"SUCCESS_DIALOG_CREATE_AD_STARTED",success_dialog_create_ad_success:"SUCCESS_DIALOG_CREATE_AD_SUCCESS",success_dialog_shown:"SUCCESS_DIALOG_SHOWN",success_fb_page_selector:"SUCCESS_FB_PAGE_SELECTOR",success_image_library_image_selector:"SUCCESS_IMAGE_LIBRARY_IMAGE_SELECTOR",success_image_library_image_deselect:"SUCCESS_IMAGE_LIBRARY_IMAGE_DESELECT",success_new_fb_page_local:"SUCCESS_NEW_FB_PAGE_LOCAL",success_new_fb_page_news_feed_format:"SUCCESS_NEW_FB_PAGE_NEWS_FEED_FORMAT",success_upload_image_selector:"SUCCESS_UPLOAD_IMAGE_SELECTOR",suggested_keyword:"SUGGESTED_KEYWORD",targeting_age_max_changed:"TARGETING_AGE_MAX_CHANGED",targeting_age_min_changed:"TARGETING_AGE_MIN_CHANGED",targeting_changed:"TARGETING_CHANGED",targeting_connections_changed:"TARGETING_CONNECTIONS_CHANGED",targeting_education_majors_changed:"TARGETING_EDUCATION_MAJORS_CHANGED",targeting_education_schools_changed:"TARGETING_EDUCATION_SCHOOLS_CHANGED",targeting_education_status_changed:"TARGETING_EDUCATION_STATUS_CHANGED",targeting_geolocations_add_country:"TARGETING_GEOLOCATIONS_ADD_COUNTRY",targeting_geolocations_add_region:"TARGETING_GEOLOCATIONS_ADD_REGION",targeting_geolocations_add_city:"TARGETING_GEOLOCATIONS_ADD_CITY",targeting_geolocations_add_zip:"TARGETING_GEOLOCATIONS_ADD_ZIP",targeting_geolocations_remove_country:"TARGETING_GEOLOCATIONS_REMOVE_COUNTRY",targeting_geolocations_remove_region:"TARGETING_GEOLOCATIONS_REMOVE_REGION",targeting_geolocations_remove_city:"TARGETING_GEOLOCATIONS_REMOVE_CITY",targeting_geolocations_remove_zip:"TARGETING_GEOLOCATIONS_REMOVE_ZIP",targeting_geolocations_radius_changed:"TARGETING_GEOLOCATIONS_RADIUS_CHANGED",targeting_interested_in_sex_changed:"TARGETING_INTERESTED_IN_SEX_CHANGED",targeting_loactions_changed:"TARGETING_LOACTIONS_CHANGED",targeting_locales_changed:"TARGETING_LOCALES_CHANGED",targeting_max_grad_year_changed:"TARGETING_MAX_GRAD_YEAR_CHANGED",targeting_min_grad_year_changed:"TARGETING_MIN_GRAD_YEAR_CHANGED",targeting_relationship_changed:"TARGETING_RELATIONSHIP_CHANGED",targeting_sex_changed:"TARGETING_SEX_CHANGED",targeting_target_all_graduation_years_changed:"TARGETING_TARGET_ALL_GRADUATION_YEARS_CHANGED",targeting_user_adclusters_changed:"TARGETING_USER_ADCLUSTERS_CHANGED",targeting_user_conjunctive_adclusters_changed:"TARGETING_USER_CONJUNCTIVE_ADCLUSTERS_CHANGED",targeting_work_employers_changed:"TARGETING_WORK_EMPLOYERS_CHANGED",unsupported_adgroup:"UNSUPPORTED_ADGROUP",upsell_click_conversion_pixel:"UPSELL_CLICK_CONVERSION_PIXEL",upsell_click_extend_campaign:"UPSELL_CLICK_EXTEND_CAMPAIGN",upsell_click_increase_budget:"UPSELL_CLICK_INCREASE_BUDGET",upsell_shown_conversion_pixel:"UPSELL_SHOWN_CONVERSION_PIXEL",upsell_shown_extend_campaign:"UPSELL_SHOWN_EXTEND_CAMPAIGN",upsell_shown_increase_budget:"UPSELL_SHOWN_INCREASE_BUDGET",upsell_shown_track_mobile_app_install:"UPSELL_SHOWN_TRACK_MOBILE_APP_INSTALL",upsell_shown_increase_account_spend_cap:"UPSELL_SHOWN_INCREASE_ACCOUNT_SPEND_CAP",upsell_click_track_mobile_app_install_compose:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_COMPOSE",upsell_click_track_mobile_app_install_send:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_SEND",upsell_click_track_mobile_app_install_info:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_INFO",use_audience_builder:"USE_AUDIENCE_BUILDER",video_encoding_duration:"VIDEO_ENCODING_DURATION",video_upload_cancel:"VIDEO_UPLOAD_CANCEL",video_upload_duration:"VIDEO_UPLOAD_DURATION",video_upload_error:"VIDEO_UPLOAD_ERROR"};},null);
  __d("AdsCMActionTypes",[],function(a,b,c,d,e,f){e.exports={ACCOUNT_DATA_LOADED:"ADS_CM_ACCOUNT_DATA_LOADED",ACCOUNT_INIT:"ADS_CM_ACCOUNT_INIT",ACCOUNT_LIST_LOADED:"ADS_CM_ACCOUNT_LIST_LOADED",ADD_BILLING_MESSAGE:"ADS_CM_ADD_BILLING_MESSAGE",ADD_MESSAGE:"ADS_CM_ADD_MESSAGE",ADD_TIPS_LOADED_CALLBACK:"ADS_CM_ADD_TIPS_LOADED_CALLBACK",ADGROUP_DRAFT_SAVE:"ADS_CM_ADGROUP_DRAFT_SAVE",ADGROUP_LIST_LOAD_ERROR:"ADS_CM_ADGROUP_LIST_LOAD_ERROR",ADGROUP_LIST_LOADED:"ADS_CM_ADGROUP_LIST_LOADED",ADGROUP_LOADED:"ADS_CM_ADGROUP_LOADED",ADGROUP_SAVE_ERROR:"ADS_CM_ADGROUP_SAVE_ERROR",ADGROUP_SAVE_START:"ADS_CM_ADGROUP_SAVE_START",ADGROUP_SAVE_SUCCESS:"ADS_CM_ADGROUP_SAVE_SUCCESS",APPLICATION_READY:"ADS_CM_APPLICATION_READY",BACK_FORWARD_PRESSED:"ADS_CM_BACK_FORWARD_PRESSED",BREAKDOWN_CHANGE:"ADS_CM_BREAKDOWN_CHANGE",CAMPAIGN_DRAFT_SAVE:"ADS_CM_CAMPAIGN_DRAFT_SAVE",CAMPAIGN_GROUP_DRAFT_SAVE:"ADS_CM_CAMPAIGN_GROUP_DRAFT_SAVE",CAMPAIGN_GROUP_LIST_LOAD_ERROR:"ADS_CM_CAMPAIGN_GROUP_LIST_LOAD_ERROR",CAMPAIGN_GROUP_LIST_LOADED:"ADS_CM_CAMPAIGN_GROUP_LIST_LOADED",CAMPAIGN_GROUP_LOADED:"ADS_CM_CAMPAIGN_GROUP_LOADED",CAMPAIGN_GROUP_SAVE_ERROR:"ADS_CM_CAMPAIGN_GROUP_SAVE_ERROR",CAMPAIGN_GROUP_SAVE_START:"ADS_CM_CAMPAIGN_GROUP_SAVE_START",CAMPAIGN_GROUP_SAVE_SUCCESS:"ADS_CM_CAMPAIGN_GROUP_SAVE_SUCCESS",CAMPAIGN_LIST_LOAD_ERROR:"ADS_CM_CAMPAIGN_LIST_LOAD_ERROR",CAMPAIGN_LIST_LOADED:"ADS_CM_CAMPAIGN_LIST_LOADED",CAMPAIGN_LOADED:"ADS_CM_CAMPAIGN_LOADED",CAMPAIGN_SAVE_ERROR:"ADS_CM_CAMPAIGN_SAVE_ERROR",CAMPAIGN_SAVE_START:"ADS_CM_CAMPAIGN_SAVE_START",CAMPAIGN_SAVE_SUCCESS:"ADS_CM_CAMPAIGN_SAVE_SUCCESS",CARD_STACK_ANIMATION:"ADS_CM_CARD_STACK_ANIMATION",CLEANUP_PAGES:"ADS_CM_CLEANUP_PAGES",COLUMN_PRESET_CREATE_ERROR:"ADS_CM_COLUMN_PRESET_CREATE_ERROR",COLUMN_PRESET_CREATED:"ADS_CM_COLUMN_PRESET_CREATED",COLUMN_PRESET_DELETE:"ADS_CM_COLUMN_PRESET_DELETE",COLUMN_PRESET_DELETE_ERROR:"ADS_CM_COLUMN_PRESET_DELETE_ERROR",COLUMN_PRESET_SAVE:"ADS_CM_COLUMN_PRESET_SAVE",COLUMN_PRESET_UPDATE_ERROR:"ADS_CM_COLUMN_PRESET_UPDATE_ERROR",COLUMN_SET_CHANGE:"ADS_CM_COLUMN_SET_CHANGE",COLUMN_SET_LOAD:"ADS_CM_COLUMN_SET_LOAD",CURVE_DATA_MISSING:"ADS_CM_CURVE_DATA_MISSING",DESELECT_ALL_COLUMNS:"ADS_CM_DESELECT_ALL_COLUMNS",DISMISS_MESSAGE:"ADS_CM_DISMISS_MESSAGE",DRAFT_CLEAR_LOADED:"ADS_CM_DRAFT_CLEAR_LOADED",DRAFT_CLOSE:"ADS_CM_DRAFT_CLOSE",DRAFT_CONFLICTS_ERROR:"ADS_CM_DRAFT_CONFLICTS_ERROR",DRAFT_CREATE:"ADS_CM_DRAFT_CREATE",DRAFT_CREATE_ERROR:"ADS_CM_DRAFT_CREATE_ERROR",DRAFT_CREATE_OBJECTS:"ADS_CM_DRAFT_CREATE_OBJECTS",DRAFT_DELETE:"ADS_CM_DRAFT_DELETE",DRAFT_DELETE_COMPLETE:"ADS_CM_DRAFT_DELETE_COMPLETE",DRAFT_DELETE_ERROR:"ADS_CM_DRAFT_DELETE_ERROR",DRAFT_DRAWER_CLOSE:"ADS_CM_DRAFT_DRAWER_CLOSE",DRAFT_DRAWER_OPEN:"ADS_CM_DRAFT_DRAWER_OPEN",DRAFT_FRAGMENT_DELETE:"ADS_CM_DRAFT_FRAGMENT_DELETE",DRAFT_FRAGMENT_DELETE_COMPLETE:"ADS_CM_DRAFT_FRAGMENT_DELETE_COMPLETE",DRAFT_FRAGMENT_DELETE_ERROR:"ADS_CM_DRAFT_FRAGMENT_DELETE_ERROR",DRAFT_FRAGMENT_DELETE_START:"ADS_CM_DRAFT_FRAGMENT_DELETE_START",DRAFT_FRAGMENT_SAVE_ERROR:"ADS_CM_DRAFT_FRAGMENT_SAVE_ERROR",DRAFT_FRAGMENT_SAVE_SUCCESS:"ADS_CM_DRAFT_FRAGMENT_SAVE_SUCCESS",DRAFT_FRAGMENT_UPDATE:"ADS_CM_DRAFT_FRAGMENT_UPDATE",DRAFT_FULL_LOADED:"ADS_CM_DRAFT_FULL_LOADED",DRAFT_LOAD_ERROR:"ADS_CM_DRAFT_LOAD_ERROR",DRAFT_LOADED:"ADS_CM_DRAFT_LOADED",DRAFT_PUBLISH:"ADS_CM_DRAFT_PUBLISH",DRAFT_PUBLISH_FAILED:"ADS_CM_DRAFT_PUBLISH_FAILED",DRAFT_PUBLISH_IN_PROGRESS:"ADS_CM_DRAFT_PUBLISH_IN_PROGRESS",DRAFT_PUBLISH_SUCCESS:"ADS_CM_DRAFT_PUBLISH_SUCCESS",DRAFT_SELECT:"ADS_CM_DRAFT_SELECT",DRAFT_UPDATE_OWNERSHIP:"ADS_CM_DRAFT_UPDATE_OWNERSHIP",DRAFT_UPDATE_OWNERSHIP_ERROR:"ADS_CM_DRAFT_UPDATE_OWNERSHIP_ERROR",DRAFT_USERS_LOADED:"ADS_CM_DRAFT_USERS_LOADED",FILTER_PANEL_TOGGLE:"ADS_CM_FILTER_PANEL_TOGGLE",FILTER_SET_CHANGE:"ADS_CM_FILTER_SET_CHANGE",HELP_TRAY_CLEANUP_HISTORY:"ADS_CM_HELP_TRAY_CLEANUP_HISTORY",HELP_TRAY_CLICK_LINK:"ADS_CM_HELP_TRAY_CLICK_LINK",HELP_TRAY_PUSH_CONTENT:"ADS_CM_HELP_TRAY_PUSH_CONTENT",HELP_TRAY_REQUEST_CMS_CONTENT:"ADS_CM_HELP_TRAY_REQUEST_CMS_CONTENT",HELP_TRAY_REQUEST_GLOSSARY:"ADS_CM_HELP_TRAY_REQUEST_GLOSSARY",HELP_TRAY_REQUEST_OPEN:"ADS_CM_HELP_TRAY_REQUEST_OPEN",HELP_TRAY_SET_CMS_CONTENT:"ADS_CM_HELP_TRAY_SET_CMS_CONTENT",HELP_TRAY_SET_CMS_CONTENT_LIST:"ADS_CM_HELP_TRAY_SET_CMS_CONTENT_LIST",HELP_TRAY_SET_FEATURED_CONTENT_LIST:"HELP_TRAY_SET_FEATURED_CONTENT_LIST",HELP_TRAY_SET_GLOSSARY_LIST:"ADS_CM_HELP_TRAY_SET_GLOSSARY_LIST",HELP_TRAY_SET_TAG:"ADS_CM_HELP_TRAY_SET_TAG",HELP_TRAY_TOGGLE:"ADS_CM_HELP_TRAY_TOGGLE",HISTORY_JUMP:"ADS_CM_HISTORY_JUMP",INIT_FROM_URL:"ADS_CM_INIT_FROM_URL",INITIAL_COMPONENT_BOOTLOADED:"ADS_CM_INITIAL_COMPONENT_BOOTLOADED",INITIAL_PAGE_STATE:"ADS_CM_INITIAL_PAGE_STATE",INITIATE_CREATION:"ADS_CM_INITIATE_CREATION",INSIGHT_SECTION_CHANGE:"ADS_CM_INSIGHT_SECTION_CHANGE",INSIGHT_SETTINGS_CHANGE:"ADS_CM_INSIGHT_SETTINGS_CHANGE",INSIGHTS_DATA_LOADED:"ADS_CM_INSIGHTS_DATA_LOADED",LIST_BY_OBJECTIVE_LOAD_ERROR:"ADS_CM_LIST_BY_OBJECTIVE_LOAD_ERROR",LIST_BY_OBJECTIVE_LOAD_SUCCESS:"ADS_CM_LIST_BY_OBJECTIVE_LOAD_SUCCESS",LOAD_CHILD_OBJECTS_ERROR:"ADS_CM_LOAD_CHILD_OBJECTS_ERROR",LOAD_CHILD_OBJECTS_SUCCESS:"ADS_CM_LOAD_CHILD_OBJECTS_SUCCESS",MAIN_CONTROLLER_SETUP:"ADS_CM_MAIN_CONTROLLER_SETUP",MESSAGE_BAR_HEIGHT_CHANGE:"ADS_CM_MESSAGE_BAR_HEIGHT_CHANGE",METRICS_TOUR_COMPLETED:"ADS_CM_METRICS_TOUR_COMPLETED",NEW_OBJECTS_CREATED:"ADS_CM_NEW_OBJECTS_CREATED",OBJECT_STATS_LOAD_ERROR:"ADS_CM_OBJECT_STATS_LOAD_ERROR",OBJECT_STATS_LOAD_SUCCESS:"ADS_CM_OBJECT_STATS_LOAD_SUCCESS",OVERVIEW_CARD_MOUNTED:"ADS_CM_OVERVIEW_CARD_MOUNTED",PAGE_CHANGE:"ADS_CM_PAGE_CHANGE",PAGE_CONTENT_MOUNTED:"ADS_CM_PAGE_CONTENT_MOUNTED",PAGE_ICON_MOUNTED:"ADS_CM_PAGE_ICON_MOUNTED",PAGE_LOADED:"ADS_CM_PAGE_LOADED",PAGE_POST_LOAD_FAILURE:"ADS_CM_PAGE_POST_LOAD_FAILURE",PAGE_POST_LOADED:"ADS_CM_PAGE_POST_LOADED",PAGE_REQUEST:"ADS_CM_PAGE_REQUEST",PAYMENTS_ACCOUNT_INITED:"ADS_CM_PAYMENTS_ACCOUNT_INITED",PERSISTENT_VIEW_UNMOUNT:"ADS_CM_PERSISTENT_VIEW_UNMOUNT",PREPAY_BALANCE_LOADED:"ADS_CM_PREPAY_BALANCE_LOADED",PREPAY_BALANCE_LOADING_ERROR:"ADS_CM_PREPAY_BALANCE_LOADING_ERROR",REFRESH_VIEW_REQUESTED:"ADS_CM_REFRESH_VIEW_REQUESTED",REMOVE_PAGES:"ADS_CM_REMOVE_PAGES",RENDER_INIT_CHROME:"ADS_CM_RENDER_INIT_CHROME",REPORT_STATS_LOAD_ERROR:"ADS_CM_REPORT_STATS_LOAD_ERROR",REPORT_STATS_LOAD_SUCCESS:"ADS_CM_REPORT_STATS_LOAD_SUCCESS",REPORTING_EXPORT_CANCEL:"ADS_CM_REPORTING_EXPORT_CANCEL",REPORTING_EXPORT_CREATE:"ADS_CM_REPORTING_EXPORT_CREATE",REPORTING_EXPORT_CREATED:"ADS_CM_REPORTING_EXPORT_CREATED",REPORTING_EXPORT_DOWNLOADED:"ADS_CM_REPORTING_EXPORT_DOWNLOADED",REPORTING_EXPORT_ERROR:"ADS_CM_REPORTING_EXPORT_ERROR",REPORTING_EXPORT_FETCHED:"ADS_CM_REPORTING_EXPORT_FETCHED",RESIZE_CHROME:"ADS_CM_RESIZE_CHROME",SAVED_FILTER_SET_CREATE:"ADS_CM_SAVED_FILTER_SET_CREATE",SAVED_FILTER_SET_DELETE:"ADS_CM_SAVED_FILTER_SET_DELETE",SAVED_FILTER_SET_INSERT_LOCALLY:"ADS_CM_SAVED_FILTER_SET_INSERT_LOCALLY",SAVED_FILTER_SET_SELECTED:"ADS_CM_SAVED_FILTER_SET_SELECTED",SAVED_FILTER_SET_UPDATE_ID:"ADS_CM_SAVED_FILTER_SET_UPDATE_ID",SAVED_FILTER_SET_UPDATE_TIME:"ADS_CM_SAVED_FILTER_SET_UPDATE_TIME",SELECT_ALL_COLUMNS:"ADS_CM_SELECT_ALL_COLUMNS",SELECTED_IDS:"ADS_CM_SELECTED_IDS",SET_CURRENT_DRAFT_ERROR:"ADS_CM_SET_CURRENT_DRAFT_ERROR",SET_CURRENT_DRAFT_SUCCESS:"ADS_CM_SET_CURRENT_DRAFT_SUCCESS",SET_DRAFT_MODE:"ADS_CM_SET_DRAFT_MODE",SETTINGS_CANCEL_EDIT:"ADS_CM_SETTINGS_CANCEL_EDIT",SETTINGS_EDITOR_ERROR:"ADS_CM_SETTINGS_EDITOR_ERROR",SHOW_OBJECTIVE_TIP:"ADS_CM_SHOW_OBJECTIVE_TIP",SORT_TOGGLED:"ADS_CM_SORT_TOGGLED",SPEND_LIMIT_HISTORY_LOADED:"ADS_CM_SPEND_LIMIT_HISTORY_LOADED",SPEND_LIMIT_HISTORY_LOADING_ERROR:"ADS_CM_SPEND_LIMIT_HISTORY_LOADING_ERROR",SPEND_LIMIT_INFO_LOADED:"ADS_CM_SPEND_LIMIT_INFO_LOADED",SPEND_LIMIT_INFO_LOADING_ERROR:"ADS_CM_SPEND_LIMIT_INFO_LOADING_ERROR",STORES_LOADED:"ADS_CM_STORES_LOADED",STORE_LOADED_OBJECTS:"ADS_CM_STORE_LOADED_OBJECTS",TAB_SELECTED:"ADS_CM_TAB_SELECTED",TIME_RANGE_CHANGE:"ADS_CM_TIME_RANGE_CHANGE",TIPS_LOADED:"ADS_CM_TIPS_LOADED",TIP_CLOSED:"ADS_CM_TIP_CLOSED",VIDEO_ENCODING_SUCCESS:"ADS_CM_VIDEO_ENCODING_SUCCESS",VIDEO_UPLOAD_ERROR:"ADS_CM_VIDEO_UPLOAD_ERROR",VIDEO_UPLOAD_CANCEL:"ADS_CM_VIDEO_UPLOAD_CANCEL",VIDEO_UPLOAD_PROGRESS:"ADS_CM_VIDEO_UPLOAD_PROGRESS",VIDEO_UPLOAD_START:"ADS_CM_VIDEO_UPLOAD_START",VIDEO_UPLOAD_SUCCESS:"ADS_CM_VIDEO_UPLOAD_SUCCESS",UNKNOWN_CREATIVE_EDITOR:"ADS_CM_UNKNOWN_CREATIVE_EDITOR",UPDATE_SPEND_LIMIT_INIT:"ADS_CM_UPDATE_SPEND_LIMIT_INIT",UPDATE_SPEND_LIMIT_FAIL:"ADS_CM_UPDATE_SPEND_LIMIT_FAIL",UPDATE_SPEND_LIMIT_SUCCESS:"ADS_CM_UPDATE_SPEND_LIMIT_SUCCESS"};},null);
  __d("AdsCMErrorTypes",[],function(a,b,c,d,e,f){e.exports={FATAL:"ADS_CM_ERROR_FATAL",EXCEPTION:"ADS_CM_ERROR_EXCEPTION",USER_ERROR:"ADS_CM_ERROR_USER",API_ERROR:"ADS_CM_API_ERROR"};},null);
  __d("AdsCMPageValues",[],function(a,b,c,d,e,f){e.exports={ADGROUP_PAGE:"ad_group",AUDIENCES_PAGE:"audiences",DATA_SOURCE_PAGE:"data_source",BILLING_PAGE:"billing",BILLING_DETAIL_PAGE:"billing_details",CAMPAIGN_GROUP_PAGE:"campaign_group",CAMPAIGN_PAGE:"campaign",CREATION_PAGE:"creation",HOME_PAGE:"account"};},null);
  __d("AdsCMTabUserFacingValues",[],function(a,b,c,d,e,f){e.exports={ADGROUP_TAB:"ads",AUDIENCES_TAB:"manage",PIXEL_TAB:"pixel",BILLING_DETAIL_TAB:"view",CAMPAIGN_GROUP_TAB:"campaigns",CAMPAIGN_TAB:"adsets",CREATION_TAB:"creation",OVERVIEW_TAB:"overview",PAYMENT_METHOD_TAB:"payment_methods",SETTINGS_TAB:"settings",SPEND_LIMIT_TAB:"spend_limit",TRANSACTION_TAB:"transactions"};},null);
  __d("AdsCMTabValues",[],function(a,b,c,d,e,f){e.exports={ADGROUP_TAB:"ad_groups",AUDIENCES_TAB:"audiences_manage",PIXEL_TAB:"pixel",BILLING_DETAIL_TAB:"view_billing_details",CAMPAIGN_GROUP_TAB:"campaign_groups",CAMPAIGN_TAB:"campaigns",CREATION_TAB:"creation",OVERVIEW_ACCOUNT_TAB:"overview_account",OVERVIEW_CAMPAIGN_GROUP_TAB:"overview_campaign_group_tab",OVERVIEW_CAMPAIGN_TAB:"overview_campaign_tab",OVERVIEW_ADGROUP_TAB:"overview_adgroup_tab",PAYMENT_METHOD_TAB:"payment_methods",SETTINGS_TAB:"settings",SPEND_LIMIT_TAB:"spend_limit",TRANSACTION_TAB:"transactions"};},null);
  __d("AdsCMURLParams",[],function(a,b,c,d,e,f){e.exports={ACCOUNT_ID:"act",ACTION_BREAKDOWN:"action_breakdown",AD_SET:"ad_set",AYMT_CACHE:"cache",AYMT_CHANNEL:"channel",AYMT_INVALIDATE:"invalidate",AYMT_TIP:"tip",AYMT_VALIDATE:"validate",BYPASS_CM_TEST:"bypass",CAMPAIGN:"campaign",COLUMN_PRESET:"column_preset",COLUMNS:"columns",CURRENT_IDS:"ids",DATE:"date",FILTER_SET:"filter_set",IMPRESSION_BREAKDOWN:"impression_breakdown",INSIGHTS_SECTION:"insights_section",INSIGHTS_SECTION_SETTINGS:"insights_section_settings",NO_REDIRECT:"no_redirect",OBJECTIVE:"objective",PAGE:"page",PAGE_ID:"pid",REACT_PERF:"react_perf",REQUEST_REDIRECT:"request_redirect",SHOW_LOG:"showlog",SORT:"sort",TAB:"tab",TARGETING_SPEC:"targeting_spec",TRANSACTION_ID:"txid",TRANSACTION_TYPE:"tx_type",TIME_BREAKDOWN:"time_breakdown"};},null);
  __d("AdsCMURLValuesMap",[],function(a,b,c,d,e,f){e.exports={ad_group:"ad",audiences:"audiences",data_source:"data_sources",billing:"billing",billing_details:"billing_details",campaign_group:"campaign",campaign:"adset",creation:"creation",account:"account",ad_groups:"ads",audiences_manage:"manage",pixel:"pixel",view_billing_details:"view",campaign_groups:"campaigns",campaigns:"adsets",overview_account:"overview",overview_campaign_group_tab:"overview",overview_campaign_tab:"overview",overview_adgroup_tab:"overview",payment_methods:"payment_methods",settings:"settings",spend_limit:"spend_limit",transactions:"transactions"};},null);
  __d("AdsOffsiteConversionConstants",[],function(a,b,c,d,e,f){e.exports={pixelTOS:"\/ads\/manage\/customaudiences\/tos.php",pixelNameMaxLength:100,statuses:{UNVERIFIED:"Unverified",ACTIVE:"Active",INACTIVE:"Inactive",DELETED:"Deleted"},statusOrdering:{Active:0,Inactive:1,Unverified:2},tags:["checkout","registration","lead","key_page_view","add_to_cart","other"],tagOrdering:{checkout:0,registration:1,lead:2,key_page_view:3,add_to_cart:4,other:5},tosProjectName:"offsite_conversion",emailSources:{ADS_MANAGER:"ads_manager",AYMT:"aymt",CREATE_FLOW:"create_flow",POWER_EDITOR:"power_editor"},uris:{HELP_PAGE_URL:"\/help\/435189689870514"}};},null);
  __d("AdsOtherConsts",[],function(a,b,c,d,e,f){e.exports={REACH_TOO_LOW_NUMBER:1000};},null);
  __d("AdsPaymentsFlowPlacement",[],function(a,b,c,d,e,f){e.exports={UNSETTLED:"unsettled",FUNDING_PAGE:"funding_page",CREATE_FLOW:"create_flow",PAGE_NAX:"page_nax",CF_COUPON_MEGAPHONE:"cf_coupon_megaphone",BOOSTED_POST:"boosted_post",BOOSTED_APP:"boosted_app",BOOSTED_PAGE_LIKE:"boosted_page_like",BOOSTED_PAGE_LIKE_PAGE_NAX:"boosted_page_like_page_nax",BOOSTED_WEBSITE:"boosted_website",GRACE_PERIOD:"grace_period",MARKETING_PAYMENT_METHOD:"marketing_payment_method",CM_PAYMENT_METHODS_TAB:"cm_payment_methods_tab",MIGRATE_TO_POSTPAY:"migrate_to_postpay"};},null);
  __d("AdsPEImportExportConstants",[],function(a,b,c,d,e,f){e.exports={Bid:{ABSOLUTE_OCPM:"multi absolute",CPC:"cpc",CPM:"cpm",CPA:"cpa",MULTI_PREMIUM:"multi",FIXED_CPM:"cpm fixed"},OS:{IOS:"iOS",ANDROID:"Android",FEATURE_DEPRECATED:"feature_phones",FEATURE:"Feature_Phone",FB_CANVAS:"fb_canvas",WINDOWS:"Windows"},Placement:{ALL:"",DESKTOP:"Desktop",DESKTOP_FEED:"News Feed Desktop",MOBILE:"News Feed Mobile",FEED:"News Feed",FEED_AND_EXTERNAL:"News Feed and Partner Mobile Apps",HOME:"Home",INSTAGRAM_STREAM:"Instagram",LOGOUT:"Logout",RIGHT_COLUMN:"Right Column",MOBILE_FEED_AND_EXTERNAL:"Mobile Feed and Partner Mobile Apps",DESKTOP_AND_MOBILE_AND_EXTERNAL:"Desktop, Mobile Feed, and Partner Mobile Apps",RIGHT_COLUMN_AND_MOBILE:"Right Column and Mobile",RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL:"Right Column and Mobile and Partner Mobile Apps"}};},null);
  __d("AdsPreviewApiFormats",[],function(a,b,c,d,e,f){e.exports={RIGHT_COLUMN_STANDARD:"RIGHT_COLUMN_STANDARD",DESKTOP_FEED_STANDARD:"DESKTOP_FEED_STANDARD",MOBILE_FEED_STANDARD:"MOBILE_FEED_STANDARD",MOBILE_FEED_BASIC:"MOBILE_FEED_BASIC",MOBILE_INTERSTITIAL:"MOBILE_INTERSTITIAL",MOBILE_BANNER:"MOBILE_BANNER",MOBILE_NATIVE:"MOBILE_NATIVE"};},null);
  __d("AdsShortURLConstants",[],function(a,b,c,d,e,f){e.exports={HASH_PARTS_SEPARATOR:":",IDS_SEPARATOR:",",HASH_INDICATOR:"h"};},null);
  __d("ApiAdCreativeFields",[],function(a,b,c,d,e,f){e.exports={ID:"id",NAME:"name",TYPE:"type",TITLE:"title",BODY:"body",IMAGE_HASH:"image_hash",URL_TAGS:"url_tags",LINK_URL:"link_url",LINK_DESTINATION_DISPLAY_URL:"link_destination_display_url",OBJECT_ID:"object_id",CREATIVE_ID:"creative_id",IMAGE_URL:"image_url",IMAGE_FILE:"image_file",IMAGE_CROPS:"image_crops",THUMBNAIL_URL:"thumbnail_url",THUMBNAIL_HEIGHT:"thumbnail_height",THUMBNAIL_WIDTH:"thumbnail_width",PREVIEWS:"previews",CREATIVE_OPTIONAL:"creative_optional",OBJECT_TYPE:"object_type",LINK_OG_ID:"link_og_id",RELATED_FAN_PAGE:"related_fan_page",ICON_IMAGE_HASH:"icon_image_hash",ICON_IMAGE_URL:"icon_image_url",AUTO_UPDATE:"auto_update",LINK_TYPE:"link_type",LINK_TARGET:"link_target",VIDEO_ID:"video_id",VIDEO_HD:"video_hd",QUESTION_ID:"question_id",STORY_ID:"story_id",CLUSTER_ID:"cluster_id",IMAGE_PATH:"image_path",RUN_STATUS:"run_status",ACTION_SPEC:"action_spec",DISABLE_PROFILE_PIC:"disable_profile_pic",COVER_PHOTO_ID:"cover_photo_id",FOLLOW_REDIRECT:"follow_redirect",APPLICATION_ID:"application_id",VIDEO_LIST:"video_list",VIDEO_PIVOT_BEHAVIOR:"video_pivot_behavior",MOBILE_STORE:"mobile_store",MOBILE_STORE_CONTENT_ID:"mobile_store_content_id",MOBILE_APPLINK_SPEC:"mobile_applink_spec",MOBILE_PRODUCT_NAME:"mobile_product_name",CALL_TO_ACTION_TYPE:"call_to_action_type",APP_STORE_TYPE:"app_store_type",MOVIE_TICKET_URL:"movie_ticket_url",ACTOR_ID:"actor_id",ACTOR_NAME:"actor_name",ACTOR_IMAGE_HASH:"actor_image_hash",ACTOR_IMAGE_URL:"actor_image_url",OBJECT_STORY_ID:"object_story_id",OBJECT_URL:"object_url",OBJECT_STORE_URL:"object_store_url",OBJECT_INSTAGRAM_ID:"object_instagram_id",LINK_DEEP_LINK_URL:"link_deep_link_url",OBJECT_STORY_SPEC:"object_story_spec",PRODUCT_SET_ID:"product_set_id",SUPPLEMENTAL_MEDIA_ID:"supplemental_media_id",USE_PAGE_ACTOR_OVERRIDE:"use_page_actor_override"};},null);
  __d("ApiAdObjectTypes",[],function(a,b,c,d,e,f){e.exports={APPLICATION:"APPLICATION",DOMAIN:"DOMAIN",EVENT:"EVENT",OFFER:"OFFER",PAGE:"PAGE",PHOTO:"PHOTO",SHARE:"SHARE",STATUS:"STATUS",STORE_ITEM:"STORE_ITEM",VIDEO:"VIDEO",INVALID:"INVALID",ACTION_SPEC:"ACTION_SPEC",INSTAGRAM_MEDIA:"INSTAGRAM_MEDIA"};},null);
  __d("ApiCreativeTypes",[],function(a,b,c,d,e,f){e.exports={STANDARD:1,INLINE_FAN:2,INLINE_RSVP:3,PLATFORM_CONTEXT:4,BASS_PLATFORM_STORY:8,BASS_PAGE_CONNECTIONS:9,BASS_PAGE_CHECKINS:10,PREMIUM_STANDARD:12,PREMIUM_PLATFORM:15,BASS_APP_CONNECTIONS:16,BASS_ENGAGEMENT:17,BASS_LINK_SHARE:19,BASS_QUESTIONS_VOTE:20,QUERY_BASED:25,PAGE_POSTS_V2:27,RESEARCH_POLL:28,TYPEAHEAD:31,CONTEXTUAL_APP_AD:32,PREMIUM_FEED_VIDEO_AD:34,INSTAGRAM_AD:35,EXOTIC_OR_INVALID:0};},null);
  __d("BoostedComponentClientEvent",[],function(a,b,c,d,e,f){e.exports={CREATE_DIALOG_CLOSE:"create_dialog_close",CREATE_DIALOG_OPEN:"create_dialog_open",DATA_LOADED:"data_loaded",INIT_DATA_LOADED:"init_data_loaded",ON_AUTO_OPEN:"on_auto_open",ON_DIALOG_CANCEL_BUTTON_CLICK:"on_dialog_cancel_button_click",ON_MOUSE_ENTER:"on_mouse_enter",ON_UPSELL_BUTTON_CLICK:"on_upsell_button_click",BUDGETS_AND_ESTIMATIONS_ERROR:"budgets_and_estimations_error",BUDGETS_AND_ESTIMATIONS_FETCHED:"budgets_and_estimations_fetched",BUDGETS_AND_ESTIMATIONS_TIMOUT:"budgets_and_estimations_timout",ESTIMATIONS_ERROR:"estimations_error",ESTIMATIONS_FETCHED:"estimations_fetched",ESTIMATIONS_TIMEOUT:"estimations_timeout",INPUT_BUDGET:"input_budget",SELECT_BUDGET:"select_budget",UPDATE_BUDGET_RESTRICTION:"update_budget_restriction",UPDATE_AGE:"update_age",UPDATE_CITIES:"update_cities",UPDATE_COUNTRIES:"update_countries",UPDATE_GENDER:"update_gender",UPDATE_INTERESTS:"update_interests",UPDATE_LOOKALIKE_COUNTRY:"update_lookalike_country",UPDATE_PRIVACY_GATING:"update_privacy_gating",UPDATE_RADIUS:"update_radius",UPDATE_REGIONS:"update_regions",UPDATE_TARGETING:"update_targeting",UPDATE_CREATIVE:"update_creative",UPDATE_IMAGE:"update_image",UPDATE_IMAGE_CROPS:"update_image_crops",UPDATE_ACCOUNT:"update_account",UPDATE_AUDIENCE:"update_audience",UPDATE_AUDIENCE_SIZE:"update_audience_size",UPDATE_CURRENCY:"update_currency",UPDATE_CURRENCY_FAIL:"update_currency_fail",UPDATE_DURATION:"update_duration",UPDATE_END_TIME:"update_end_time",UPDATE_NAME:"update_name",UPDATE_PIXEL:"update_pixel",SUBMIT:"submit",SUBMIT_ERROR:"submit_error",SUBMIT_SUCCESS:"submission_success",TARGETING_CONFLICTION:"targeting_confliction"};},null);
  __d("BoostedComponentConfigPayload",[],function(a,b,c,d,e,f){e.exports={CONTEXT_STORE_DATA:"context_store_data",CREATIVE_STORE_DATA:"creative_store_data",DIALOG_UI_STORE_DATA:"dialog_ui_store_data",DURATION_STORE_DATA:"duration_store_data",PRIVACY_GATING_STORE_DATA:"privacy_gating_store_data",URI_STORE_DATA:"uri_store_data",DIALOG_BUTTON_DATA:"dialog_button_data",DATA_OPTIONS:"data_options",SPECS:"specs",EXPERIMENTS:"experiments",CONSTRAINTS:"constraints",ERRORS:"errors",DIALOG_MODE:"dialog_mode"};},null);
  __d("BoostedComponentDialogMode",[],function(a,b,c,d,e,f){e.exports={CREATE:1,EDIT:2};},null);
  __d("BoostedComponentTestElement",[],function(a,b,c,d,e,f){e.exports={DIALOG_BODY:"boosted_component_dialog_body",CREATE_DIALOG_RHS:"create_dialog_rhs",PREVIEW_UNIT:"preview_unit",DESKTOP_PREVIEW_TAB:"desktop_preview_tab",MOBILE_PREVIEW_TAB:"mobile_preview_tab",RHS_PREVIEW_TAB:"rhs_preview_tab",ACTION_MENU_BUTTON:"action_menu_button",HELP_CENTER_BUTTON:"help_center_button",TERMS:"terms",TERMS_DIALOG_CLOSE_BUTTON:"terms_dialog_close_button",AUDIENCE_SECTION:"audience_section",AGE_SELECTOR:"age_selector",GENDER_SELECTOR:"gender_selector",BUDGET_SELECTOR:"budget_selector",REACH_ESTIMATES:"reach_estimates",CURRENCY_SELECTOR:"currency_selector",DURATION_SELECTOR:"duration_selector",MORE_OPTIONS:"more_options",ACCOUNT_SELECTOR:"account_selector",PAYMENT_METHOD:"payment_method"};},null);
  __d("BoostedComponentUnit",[],function(a,b,c,d,e,f){e.exports={CURRENCY:"currency",SELECTED_BUDGET:"default_budget",BUDGETS_INFO:"budgets_info",LAST_AUDIENCE_ID:"last_audience_id",DEFAULT_COUNTRIES:"default_countries",DEFAULT_TARGETING_SPEC:"default_targeting_spec",ACCOUNTS:"accounts",SELECTED_ACCOUNT_ID:"selected_account_id",ERROR_MESSAGE:"error_message",IS_INITIALIZED:"is_initialized",AUDIENCE_INFO:"audience_info",AUDIENCE_MANAGER:"audience_manager",BUDGETS:"budgets",DISPLAY_SECTIONS:"display_sections",DURATION:"duration",HEADER:"header",LOCATIONS:"locations",PIXELS:"conversion_pixels",VALIDATION_WARNING:"validation_warning"};},null);
  __d("BoostedPostColumns",[],function(a,b,c,d,e,f){e.exports={EVENT_TYPE:"event_type",APP_ID:"app_id",APP_VERSION:"app_version",FEEDBACK_TARGET_ID:"feedback_target_id",PAGE_ID:"page_id",POST_ID:"post_id",USER_ID:"user_id",ACTIVITY_ID:"activity_id",AD_ACCOUNT_ID:"ad_account_id",ADGROUP_CREATE_FINAL_RETRY:"adgroup_create_final_retry",ADGROUP_ERROR_MD5:"adgroup_error_md5",ADGROUP_ERROR_RAW:"adgroup_error_raw",ADGROUP_SPEC:"adgroup_spec",API_RESULTS:"api_results",AUDIENCE_ID:"audience_id",AUDIENCE_NAME:"audience_name",AUTO_OPEN_TYPE:"auto_open_type",NUM_APPROVED_ADGROUPS:"num_approved_adgroups",NUM_DISAPPROVED_ADGROUPS:"num_disapproved_adgroups",ASYNC_ARGS:"async_args",BOOSTING_STATUS:"boosting_status",BUDGET:"budget",BUDGET_DEFAULT:"budget_default",BUDGET_DEFAULT_USD:"budget_default_usd",BUDGET_MIN:"budget_min",BUDGET_SPENT:"budget_spent",BUDGET_SPENT_USD:"budget_spent_usd",BUDGET_REMAINING:"budget_remaining",BUDGET_TO_MAX_BUDGET_PERCENT:"budget_to_max_budget_percent",BUDGET_USD:"budget_usd",BUTTON_TYPE:"button_type",CAMPAIGN_CREATE_TIME:"campaign_create_time",CAMPAIGN_EXTEND_TIME:"campaign_extend_time",CAMPAIGN_ID:"campaign_id",CAMPAIGN_LENGTH:"campaign_length",CAMPAIGN_NAME:"campaign_name",CAMPAIGN_STATUS:"campaign_status",CODED_EXCEPTION_CODE:"coded_exception_code",CODED_EXCEPTION_MESSAGE:"coded_exception_message",CODED_EXCEPTION_SUMMARY:"coded_exception_summary",CODED_EXCEPTION_TRACE:"coded_exception_trace",CURRENCY:"currency",CUSTOM_BUDGET_SELECTED:"custom_budget_selected",CUSTOM_TARGETING_RAW:"custom_targeting_raw",DID_AUTO_EXTEND:"did_auto_extend",DID_SEND_NOTIF:"did_send_notif",DISPLAY_SECTION:"display_section",ERROR_MESSAGE:"error_message",ERROR_TRACE:"error_trace",FANS_PAID_REACH:"fans_paid_reach",FANS_REACH:"fans_reach",HAS_FUNDING_SOURCE:"has_funding_source",INCREMENTAL_REACH:"incremental_reach",INCREMENTAL_SPEND:"incremental_spend",INCREMENTAL_SPEND_USD:"incremental_spend_usd",INELIGIBLE_REASON:"ineligible_reason",MINI_STORY_EVENT_TYPE:"mini_story_event_type",IS_FIRST_CAMPAIGN:"is_first_campaign",LOWER_REACH_ESTIMATE:"lower_reach_estimate",MODIFIED_EXTERNALLY:"modified_externally",NEW_BUDGET:"new_budget",NEW_BUDGET_USD:"new_budget_usd",NEW_VALUE:"new_value",OBJECTIVE:"objective",OLD_VALUE:"old_value",ORGANIC_REACH:"organic_reach",PAID_REACH:"paid_reach",PAGE_CATEGORY:"page_category",PAGE_FANS:"page_fans",PERCENT_SPENT:"percent_spent",PLACEMENT:"placement",POST_AGE:"post_age",QE_GROUPS:"qe_groups",REACH_ACCURACY:"reach_accuracy",REACH_ESTIMATE_AVAILABLE:"reach_estimate_available",REACH_ESTIMATES:"reach_estimates",RESCHEDULE_COUNT:"reschedule_count",RESCHEDULED_NEW_JOB:"rescheduled_new_job",RETARGET_SUCCESS:"retarget_success",SAMPLE_RATE:"sample_rate",SIGNALS:"signals",STORY_TYPE:"story_type",SURVEY_STAR_RATING:"survey_star_rating",SURVEY_TEXT_FEEDBACK:"survey_text_feedback",TARGETING:"targeting",TARGETING_OPTIONS:"targeting_options",TOTAL_REACH:"total_reach",UPPER_REACH_ESTIMATE:"upper_reach_estimate",USE_AUDIENCE_MANAGER:"use_audience_manager",USE_CUSTOM_TARGETING:"use_custom_targeting",SOURCE_APP_ID:"source_app_id",ADGROUP_ID:"adgroup_id",ASYNC_AUTOAPPROVE:"async_autoapprove",IS_RETRY:"is_retry",ERRORS:"errors",WARNING_TYPE:"warning_type",IS_FIRST_AD:"is_first_ad",IS_FEATURED:"is_featured",CAMPAIGN_DB_ID:"campaign_db_id",IS_SYNC:"is_sync",EXPECTED_NUM_ADGROUPS:"expected_num_adgroups",CREATIVE_SPEC:"creative_spec",PROCESSING_TIME:"processing_time",AUDIENCE_OPTION:"audience_option",IS_SCHEDULED:"is_scheduled",CONFIG_STATE:"config_state",DATACENTER:"datacenter",DIALOG_ID:"dialog_id",ENGAGEMENT_PERCENTILE:"engagement_percentile"};},null);
  __d("BoostedPostCustomTargetingTypes",[],function(a,b,c,d,e,f){e.exports={AGE_MIN:"age_min",AGE_MAX:"age_max",GENDERS:"genders",GEO_LOCATIONS:"geo_locations",INTERESTS:"interests",KEYWORDS:"keywords",LOCALES:"locales",LOCATIONS:"locations",CUSTOM_AUDIENCE:"custom_audiences",RADIUS:"radius"};},null);
  __d("BoostedPostEventType",[],function(a,b,c,d,e,f){e.exports={INITIALIZE:"initialize",FIRST_INITIALIZE:"first_initialize",EXTEND:"extend",DELETE:"delete",ACTIVATE:"activate",PAUSE:"pause",ADD_BUDGET:"add_budget",ADGROUP_CREATE_FAIL:"adgroup_create_fail",ASYNC_DELETE_FAIL:"async_delete_fail",REVIEWED:"reviewed",CREATE_DIALOG_CLOSE:"create_dialog_close",CREATE_DIALOG_OPEN:"create_dialog_open",EDIT_DIALOG_CLOSE:"edit_dialog_close",EDIT_DIALOG_OPEN:"edit_dialog_open",ACTION_MENU_OPEN:"action_menu_open",ACTION_MENU_CLOSE:"action_menu_close",ADD_PAYMENT_HEADER_EDIT_CLICKED:"add_payment_header_edit_clicked",ADD_PAYMENT_HEADER_EDIT_COMPLETED:"add_payment_header_edit_completed",ADD_PAYMENT_HEADER_EDIT_NOT_COMPLETED:"add_payment_header_edit_not_completed",ADS_INTEGRITY_CHECK_FAILED:"ads_integrity_check_failed",BAD_ADD_BUDGET:"bad_add_budget",BOOST_BUTTON_RENDERED:"boost_button_rendered",BUDGET_CHANGED:"budget_changed",BUDGET_SELECTOR_EDIT_BUTTON:"budget_selector_edit_button",BUDGET_TEXT_CHANGED:"budget_text_changed",BUDGET_TEXT_TOO_LOW:"budget_text_too_low",CAMPAIGN_FINISHED:"campaign_finished",CLICKED_AFTER_BUDGET_NOTIFICATION:"clicked_after_budget_notification",CODED_EXCEPTION:"coded_exception",COMPOSER_CREATE_CANCEL:"composer_create_cancel",COMPOSER_CREATE_SAVE:"composer_create_save",COMPOSER_FLYOUT_OPEN:"composer_flyout_open",CREATE_MORE_OPTIONS:"create_more_options",CREATIVE_INVALID:"creative_invalid",CREATIVE_INVALID_CHECK_FAILED:"creative_invalid_check_failed",DURATION_CHANGED:"duration_changed",EDIT_BUDGET_BUTTON:"edit_budget_button",EDIT_BUDGET_SAVE:"edit_budget_save",ERROR_BOX_RENDER:"error_box_render",FEEDBACK_TARGET_ID_DIFFERENT:"feedback_target_id_different",FETCH_CONFIG_DATA:"fetch_config_data",FUNDING_SOURCE_CHECKED:"funding_source_checked",PAYMENT_FLOW_CANCELED:"payment_flow_canceled",PAYMENT_FLOW_COMPLETE:"payment_flow_complete",PAYMENT_FLOW_START:"payment_flow_start",RENDER_FAILED:"render_failed",RETARGET_BUTTON_RENDER:"retarget_button_render",RETARGET_ATTEMPT:"retarget_attempt",TIMELINE_CREATE_FLYOUT_OPEN:"timeline_create_flyout_open",TIMELINE_EDIT_FLYOUT_OPEN:"timeline_edit_flyout_open",TIMELINE_RESUME_BOOSTING:"timeline_resume_boosting",TIMELINE_STOP_BOOSTING:"timeline_stop_boosting",SNOWLIFT_FLYOUT_OPEN:"snowlift_flyout_open",PHOTO_PERMALINK_FLYOUT_OPEN:"photo_permalink_flyout_open",MONITOR_SCHEDULE:"monitor_schedule",MONITOR_HEARTBEAT:"monitor_heartbeat",NCPP_SELECTED:"ncpp_selected",GROUPER_SELECTED:"grouper_selected",SURVEY_STAR_RATING:"survey_star_rating",SURVEY_TEXT_FEEDBACK:"survey_text_feedback",SCHEDULE_CHANGED:"schedule_changed",TARGETING_CHANGED:"targeting_changed",ADGROUP_CREATE:"adgroup_create",TARGETING_WARNING_SHOWN:"targeting_warning_shown",OBJECTIVE_CHANGED:"objective_changed",UNKNOWN:"unknown",CAMPAIGN_UPDATE_FAILED:"campaign_update_failed",DELETE_ADGROUP_FAILED:"delete_adgroup_failed",DEBUG:"debug",USER_SAW_NAX:"user_saw_nax",HOT_POST_HEADER_RENDERED:"hot_post_header_rendered",AM_LAST_USED_AUDIENCE_SHOWN:"am_last_used_audience_shown",AM_LAST_USED_AUDIENCE_EDITED:"am_last_used_audience_edited",AM_FIRST_AUDIENCE_SHOWN:"am_first_audience_shown",AM_DEFAULT_AUDIENCE_SHOWN:"am_default_audience_shown",AM_DEFAULT_AUDIENCE_EDITED:"am_default_audience_edited",AM_AUDIENCE_CREATED:"am_audience_created",AM_AUDIENCE_EDITED:"am_audience_edited",AM_AUDIENCE_DELETED:"am_audience_deleted",AM_AUDIENCE_CHANGED:"am_audience_changed",CLIENT_AD_ACCOUNT_SELECTOR_CLICK:"client_ad_account_selector_click",CLIENT_AD_ACCOUNT_SELECTOR_SUBMIT:"client_ad_account_selector_submit",CLIENT_AD_ACCOUNT_SELECTOR_SUCCESS:"client_ad_account_selector_success",CLIENT_AD_ACCOUNT_SELECTOR_FAIL:"client_ad_account_selector_fail",CLIENT_ADD_BUDGET_CLICK:"client_add_budget_click",CLIENT_ADD_BUDGET_SUBMIT:"client_add_budget_submit",CLIENT_ADD_BUDGET_SUCCESS:"client_add_budget_success",CLIENT_ADD_BUDGET_FAIL:"client_add_budget_fail",CLIENT_ADD_PENDING_FUNDING_SOURCE_CLICK:"client_add_pending_funding_source_click",CLIENT_ADD_PENDING_FUNDING_SOURCE_SUBMIT:"client_add_pending_funding_source_submit",CLIENT_ADD_PENDING_FUNDING_SOURCE_SUCCESS:"client_add_pending_funding_source_success",CLIENT_ADD_PENDING_FUNDING_SOURCE_FAIL:"client_add_pending_funding_source_fail",CLIENT_CLEAR_BUDGET_CLICK:"client_clear_budget_click",CLIENT_CLEAR_BUDGET_SUCCESS:"client_clear_budget_success",CLIENT_CREATE_CLICK:"client_create_click",CLIENT_CREATE_SUBMIT:"client_create_submit",CLIENT_CREATE_SUCCESS:"client_create_success",CLIENT_CREATE_FAIL:"client_create_fail",CLIENT_CUSTOM_BUDGET_BUTTON_CLICK:"client_custom_budget_button_click",CLIENT_DELETE_CLICK:"client_delete_click",CLIENT_DELETE_CONFIRM:"client_delete_confirm",CLIENT_DELETE_CANCEL:"client_delete_cancel",CLIENT_DELETE_SUBMIT:"client_delete_submit",CLIENT_DELETE_SUCCESS:"client_delete_success",CLIENT_DELETE_FAIL:"client_delete_fail",CLIENT_DIALOG_TTI:"client_dialog_tti",CLIENT_HIDE_CLICK:"client_hide_click",CLIENT_INITIAL_RENDER_START:"client_initial_render_start",CLIENT_INITIAL_RENDER_SUCCESS:"client_initial_render_success",CLIENT_REACH_ESTIMATE_UNAVAILABLE:"client_reach_estimate_unavailable",CLIENT_RESUME_CLICK:"client_resume_click",CLIENT_RESUME_SUBMIT:"client_resume_submit",CLIENT_RESUME_SUCCESS:"client_resume_success",CLIENT_RESUME_FAIL:"client_resume_fail",CLIENT_RETARGET_CLICK:"client_retarget_click",CLIENT_RETARGET_SUBMIT:"client_retarget_submit",CLIENT_RETARGET_SUCCESS:"client_retarget_success",CLIENT_RETARGET_FAIL:"client_retarget_fail",CLIENT_SET_BUDGET_CLICK:"client_set_budget_click",CLIENT_SET_BUDGET_SUCCESS:"client_set_budget_success",CLIENT_STOP_CLICK:"client_stop_click",CLIENT_STOP_CONFIRM:"client_stop_confirm",CLIENT_STOP_CANCEL:"client_stop_cancel",CLIENT_STOP_SUBMIT:"client_stop_submit",CLIENT_STOP_SUCCESS:"client_stop_success",CLIENT_STOP_FAIL:"client_stop_fail"};},null);
  __d("CommerceUSAStates",[],function(a,b,c,d,e,f){e.exports={STATE_AL:"Alabama",STATE_AK:"Alaska",STATE_AZ:"Arizona",STATE_AR:"Arkansas",STATE_CA:"California",STATE_CO:"Colorado",STATE_CT:"Connecticut",STATE_DE:"Delaware",STATE_DC:"District of Columbia",STATE_FL:"Florida",STATE_GA:"Georgia",STATE_HI:"Hawaii",STATE_ID:"Idaho",STATE_IL:"Illinois",STATE_IN:"Indiana",STATE_IA:"Iowa",STATE_KS:"Kansas",STATE_KY:"Kentucky",STATE_LA:"Louisiana",STATE_ME:"Maine",STATE_MD:"Maryland",STATE_MA:"Massachusetts",STATE_MI:"Michigan",STATE_MN:"Minnesota",STATE_MS:"Mississippi",STATE_MO:"Missouri",STATE_MT:"Montana",STATE_NE:"Nebraska",STATE_NV:"Nevada",STATE_NH:"New Hampshire",STATE_NJ:"New Jersey",STATE_NM:"New Mexico",STATE_NY:"New York",STATE_NC:"North Carolina",STATE_ND:"North Dakota",STATE_OH:"Ohio",STATE_OK:"Oklahoma",STATE_OR:"Oregon",STATE_PA:"Pennsylvania",STATE_RI:"Rhode Island",STATE_SC:"South Carolina",STATE_SD:"South Dakota",STATE_TN:"Tennessee",STATE_TX:"Texas",STATE_UT:"Utah",STATE_VT:"Vermont",STATE_VA:"Virginia",STATE_WA:"Washington",STATE_WV:"West Virginia",STATE_WI:"Wisconsin",STATE_WY:"Wyoming"};},null);
  __d("CreditCardFormParam",[],function(a,b,c,d,e,f){e.exports={ACCOUNT_ID:"account_id",ACCOUNT_COUNTRY_CODE:"account_country_code",APP_ID:"app_id",CARD_EXPIRATION:"exp",CARD_FBID:"cc_fbid",CARD_ID:"cc_id",CARD_TYPE:"cardType",CITY:"city",CONTEXT_ID:"context_id",COUNTRY:"country",CSC_LENGTH:"csc_length",EMAIL:"email",FIRST_NAME:"firstName",TRACKING_ID:"tracking_id",JSFAIL_SOURCE:"jsfail_source",KEYPRESS_TIMES:"kpts",LAST_NAME:"lastName",MONTH:"month",STATE:"state",STREET:"street",STREET_2:"street2",VALIDATE_ADDRESS:"validate_address",VALIDATE_NAME:"validate_name",VALIDATE_ZIP:"validate_zip",YEAR:"year",ZIP:"zip",VALIDATOR_CHECKS:"checks",CARD_NUMBER:"creditCardNumber",CSC:"csc",CARD_NUMBER_FIRST_6:"creditCardNumber_first6",CARD_NUMBER_LAST_4:"creditCardNumber_last4",CARD_NUMBER_TOKEN:"creditCardNumber_token",CSC_TOKEN:"csc_token",AUTH_LEVEL_FLAG:"auth_level",AUTH_AMOUNT:"auth_amount",AUTH_CURRENCY:"auth_currency",PAYMENT_ITEM_TYPE:"payment_item_type",CREDENTIAL_ID:"credential_id"};},null);
  __d("OcpmAdConfig",[],function(a,b,c,d,e,f){e.exports={actionsMultiplier:.5,clicksMultiplier:.5,mobileInstallMultiplier:1,offsiteMultiplier:3,reachMultiplier:1.5};},null);
  __d("PaypalFormParam",[],function(a,b,c,d,e,f){e.exports={COUNTRY:"country",EMAIL:"email",PASSWORD:"password"};},null);
  __d("ServerBoostedPostConstants",[],function(a,b,c,d,e,f){e.exports={EXPECTED_AD_REVIEW_TIME:900};},null);
  __d("XCommerceCheckoutParam",[],function(a,b,c,d,e,f){e.exports={ADDRESS_ID:"address_id",ADDRESS_NAME:"name",ADDRESS_STREET_1:"address1",ADDRESS_STREET_2:"address2",ADDRESS_CITY:"city",ADDRESS_STATE:"state",ADDRESS_ZIP:"zip",ADDRESS_SAVE:"save",CONFIRMED:"confirmed",CC_ID:"cc_fbid",CC_SAVE:"cc_save",CONTACT_EMAIL:"co_email",CONTACT_PHONE:"co_phone",ORDER_ID:"order_id",CART_HASH:"chash",PRODUCT_ITEM_ID:"product_item_id",QUANTITY:"qty",SOURCE_SHARE_ID:"share_id",ADDRESSES:"addresses",CART:"cart",CCS:"ccs"};},null);
  __d("XCommerceErrorParam",[],function(a,b,c,d,e,f){e.exports={ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"};},null);
  __d("XPaymentsCreditCardMutatorParam",[],function(a,b,c,d,e,f){e.exports={MUTATION_TYPE:"mutation_type",CARD_FBID:"cc_fbid",ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"};},null);
  __d("WebApiApplication",["ApiClient","invariant"],function(a,b,c,d,e,f,g,h){'use strict';var i,j;e.exports={init:function(k,l,m,n,o){i=k;j=l;g.setAccessToken(k);g.setClientID(l);g.setDefaultParams({pretty:false});if(m){h(typeof m[n]==='function');m[n].apply(m,o);}},getAccessToken:function(){return i;},getClientID:function(){return j;}};},null);
  __d("URIInitDataUtil",["ApiCreativeTypes","URI","AdsAPIObjectives"],function(a,b,c,d,e,f,g,h,i){function j(x){return h().getQueryData()[x];}function k(){return j('fbid');}function l(){return j('ad_set');}function m(){return j('campaign');}function n(){if(j('storyid'))return i.POST_ENGAGEMENT;return j('objective');}function o(){return j('creativetype');}function p(){if(j('storyid'))return {creativeType:g.PAGE_POSTS_V2,objectId:k(),storyId:j('storyid'),enabled:true};if(o())return {creativeType:parseInt(j('creativetype'),10),objectId:k(),enabled:true};return;}function q(){return j('showlog');}function r(){return j('showqe');}function s(){return j('environment');}function t(){return j('daily_budget');}function u(){var x=j('targeting_spec');if(x)return JSON.parse(x);}function v(){return j('conversion_pixel_id');}function w(){return !!(p()||o()||k()||n()||u());}e.exports={getDailyBudget:t,getDefaultCampaignID:l,getDefaultCampaignGroupID:m,getDefaultCreative:p,getDefaultDestinationID:k,getDefaultObjective:n,getDefaultTargeting:u,getDefaultConversionPixel:v,getEnvironment:s,getShowLog:q,getShowQE:r,isPrefilledFromURI:w};},null);
  __d("AdsCFLoggerInternal",["AdsCFCreationSources","AsyncRequest","URIInitDataUtil","copyProperties"],function(a,b,c,d,e,f,g,h,i,j){var k;function l(n,o,p){i.getShowLog();var q=j({category:n,event:o,time_since_env_flush:Date.now()-a._cstart},p||{}),r=k===g.CM?'/ads/manage/adscreator/cmlogger/':'/ads/manage/adscreator/logger/';new h(r).setData(q).send();}var m={defaultData:{},setDefaultData:function(n){this.defaultData=n;return this;},getDefaultData:function(){return this.defaultData;},updateDefaultData:function(n){Object.assign(this.defaultData,n);return this;},CATEGORIES:{CREATE:'create',RETRIEVE:'retrieve',UPDATE:'update',DELETE:'delete',VALIDATION_ERROR:'validation_error',PAYMENT:'ads_payment',NO_DB_OP:'no_db_op'},setCreationSource:function(n){k=n;},log:function(n,o,p){p=j(p,this.getDefaultData());var q=j({message:n},{message:p}||{});try{q=JSON.parse(JSON.stringify(q));}catch(r){q={};}l(n||'js_info',o||'general_info',q);}};e.exports=m;},null);
  __d("AdsCurrencyFormatter",["AdsCurrency","NumberFormatConfig","intlNumUtils"],function(a,b,c,d,e,f,g,h,i){function j(da){return Math.round(Math.log(da)/Math.LN10);}function k(da,ea,fa){var ga=g.getFormat(da)||'{symbol}{amount}',ha=g.getSymbol(da)||'',ia=ga.replace('{symbol}',ha).replace('{amount}',ea);if(fa)return ia+' '+g.getISO(da);return ia;}function l(da,ea,fa,ga){var ha=g.getOffset(da)||100,ia=j(ha),ja=i.formatNumberRaw(ea/ha,ia,ga?h.numberDelimiter:'',h.decimalSeparator);return k(da,ja,fa);}function m(da,ea){return l(da,ea);}function n(da,ea){return l(da,ea,true);}function o(da,ea){return l(da,ea,false,true);}function p(da,ea){var fa=g.getOffset(da)||100,ga=j(fa);if(ga&&(ea%fa===0))ga=0;var ha=i.formatNumberRaw(ea/fa,ga,'',h.decimalSeparator);return k(da,ha,false);}function q(da,ea,fa){return t(m(da,ea),m(da,fa));}function r(da,ea,fa,ga){if(ga-fa<ea){return m(da,ga);}else return q(da,fa,ga);}var s='\u2013';function t(da,ea){return da+s+ea;}function u(da,ea,fa){return w(da,ea,fa)||0;}function v(da,ea,fa){return x(da,ea,fa)||0;}function w(da,ea,fa){var ga=g.getOffset(da),ha=j(ga),ia=i.parseNumberRaw(ea,fa);if(ia===null)return null;return +(ia*ga).toFixed(ha);}function x(da,ea,fa){var ga=g.getOffset(da),ha=i.parseNumberRaw(ea,fa);if(ha===null)return null;return Math.round(ha*ga);}function y(da,ea){return u(da,ea);}function z(da,ea){var fa=g.getOffset(da),ga=j(fa),ha=h.decimalSeparator,ia=i.parseNumberRaw(ea,ha)||0;return +(ia).toFixed(ga);}function aa(da,ea,fa){var ga=fa||h.decimalSeparator;return v(da,ea,ga);}function ba(da,ea,fa){var ga=fa||h.decimalSeparator;return x(da,ea,ga);}function ca(da,ea,fa,ga){return l(da,ea,fa,ga);}e.exports={formatCurrency:m,formatCurrencyFullFormat:ca,formatCurrencyRange:q,formatCurrencyRangeWithThreshold:r,formatCurrencyWithISO:n,formatCurrencyWithNumberDelimiters:o,formatCurrencyWithOptionalDecimals:p,formatRange:t,parseCurrency:aa,parseCurrencyL10nUnaware:y,parseOptionalCurrency:ba,parsePECurrency:z};},null);
  __d("XPaymentsCreditCardMutatorControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/payments\/credit_card\/mutator\/{mutation_type}\/",{mutation_type:{type:"Enum",required:true}});},null);
  __d("PaymentsAPI",["AsyncRequest","CreditCardFormParam","URI","XPaymentsCreditCardMutationType","XPaymentsCreditCardMutatorControllerURIBuilder","XPaymentsCreditCardMutatorParam"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m={createPayment:function(n,o){var p=new k().setEnum(l.MUTATION_TYPE,j.CREATE).getURI().getPath(),q=i('/ajax/payment/token_proxy.php').addQueryData('tpe',p);if(!i.getRequestURI().isSecure())throw new Error('Operation must be performed via HTTPS');if(n[h.CARD_NUMBER])n[h.CARD_NUMBER]=n[h.CARD_NUMBER].replace(/[\D]/g,'');var r=n[h.CARD_EXPIRATION];if(r&&r.indexOf('/')>-1){delete n[h.CARD_EXPIRATION];n[h.CARD_EXPIRATION+'['+h.MONTH+']']=Number(r.substr(0,2));n[h.CARD_EXPIRATION+'['+h.YEAR+']']=Number(r.substr(3,2));}(new g(q)).setData(n||{}).setHandler(o).send();}};e.exports=m;},null);
  __d("XCommerceResponse",["XCommerceErrorParam"],function(a,b,c,d,e,f,g){function h(i){"use strict";this.$XCommerceResponse0=i;}h.prototype.hasErrors=function(){"use strict";var i=this.getErrors();return !this.$XCommerceResponse1(i);};h.prototype.hasGeneralError=function(){"use strict";var i=this.getGeneralError();return !this.$XCommerceResponse1(i);};h.prototype.hasFieldErrors=function(){"use strict";var i=this.getFieldErrors();return !this.$XCommerceResponse1(i);};h.prototype.getErrors=function(){"use strict";return this.getPayload()[g.ERRORS];};h.prototype.getGeneralError=function(){"use strict";var i=this.getErrors();return i?i[g.GENERAL_ERROR]:null;};h.prototype.getFieldErrors=function(){"use strict";var i=this.getErrors();return i?i[g.FIELD_ERRORS]:null;};h.prototype.getFieldErrorCodes=function(){"use strict";var i=this.getFieldErrors();if(!i)return {};var j={};for(var k in i){if(!i.hasOwnProperty(k))continue;j[k]=i[k][g.ERROR_CODE];}return j;};h.prototype.getGeneralErrorMessage=function(){"use strict";var i=this.getGeneralError();return i?i[g.ERROR_MSG]:null;};h.prototype.getGeneralErrorCode=function(){"use strict";var i=this.getGeneralError();return i?i[g.ERROR_CODE]:null;};h.prototype.getPayload=function(){"use strict";return this.$XCommerceResponse0;};h.prototype.getAllErrorCodes=function(){"use strict";var i=[];if(this.getGeneralError())i.push(this.getGeneralErrorCode());var j=this.getFieldErrorCodes();if(j)for(var k in j){if(!j.hasOwnProperty(k))continue;i.push(j[k]);}return i;};h.prototype.$XCommerceResponse1=function(i){"use strict";if(!i)return true;for(var j in i)if(i.hasOwnProperty(j))return false;return true;};e.exports=h;},null);
  __d("AdsPaymentsFlowAPI",["PaymentsAPI","XCommerceResponse","XPaymentsCreditCardMutatorParam"],function(a,b,c,d,e,f,g,h,i){var j={saveCreditCard:function(k){var l=function(m){var n=new h(m.payload);if(n.getPayload()[i.CARD_FBID]){k.success&&k.success(n);}else k.error&&k.error(n);};g.createPayment(k.data,l);}};e.exports=j;},null);
  __d("DamerauLevenshtein",[],function(a,b,c,d,e,f){var g={DamerauLevenshteinDistance:function(h,i){if(h.length===0)return i.length;if(i.length===0)return h.length;if(h===i)return 0;var j,k,l=[];l[0]=[];l[1]=[];l[2]=[];for(k=0;k<=i.length;k++)l[0][k]=k;for(j=1;j<=h.length;j++)for(k=1;k<=i.length;k++){l[j%3][0]=j;var m=h.charAt(j-1)===i.charAt(k-1)?0:1;l[j%3][k]=Math.min(l[(j-1)%3][k]+1,l[j%3][k-1]+1,l[(j-1)%3][k-1]+m);if(j>1&&k>1&&h.charAt(j-1)==i.charAt(k-2)&&h.charAt(j-2)==i.charAt(k-1))l[j%3][k]=Math.min(l[j%3][k],l[(j-2)%3][k-2]+m);}return l[h.length%3][i.length];}};e.exports=g;},null);
  __d("PaymentMethodUtils",[],function(a,b,c,d,e,f){var g=[{pattern:/^5[1-5]/,name:'mc',cscDigits:3,digits:16,supported:true,code:77},{pattern:/^4/,name:'visa',cscDigits:3,digits:16,supported:true,code:86},{pattern:/^3[47]/,name:'amex',cscDigits:4,digits:15,supported:true,code:65},{pattern:/^35(2[8-9]|[3-8])/,name:'jcb',cscDigits:3,digits:16,supported:true,code:74},{pattern:/^(6011|65|64[4-9]|622([2-8]|1[3-9]|12[6-9]|9[0-1]|92[0-5]))/,name:'disc',cscDigits:3,digits:16,supported:true,code:68},{pattern:/^30[0-5]/,name:'diners',digits:14,cscDigits:3,supported:false,code:64},{name:'unknown',digits:16,cscDigits:3,supported:false,code:85}],h=function(j){return j.replace(/[iIl]/g,'1').replace(/[Oo]/g,'0').replace(/[^\d]/gi,'');},i={getCardType:function(j){j=h(j);j=j.substr(0,6);for(var k=0;k<g.length;k++)if(j.match(g[k].pattern))return g[k];},isValidCCNumber:function(j){j=h(j);var k=i.getCardType(j);if(k.digits!==j.length)return false;if(!k.supported)return false;return i.isValidLuhn(j);},isValidLuhn:function(j){j=h(j);var k=j.split('').reverse(),l='';for(var m=0;m<k.length;m++){var n=parseInt(k[m],10);if(m%2!==0)n=n*2;l=l+n;}var o=0;for(m=0;m<l.length;m++)o=o+parseInt(l.charAt(m),10);return !!(o!==0&&o%10===0);}};e.exports=i;},null);
  __d("CommerceInputNormalizer",["CommerceUSAStates","DamerauLevenshtein","PaymentMethodUtils"],function(a,b,c,d,e,f,g,h,i){var j={numericize:function(){return function(k){return k.replace(/[\D]/g,'');};},trim:function(){return function(k){return k.trim();};},USAState:function(){return function(k){var l=k;if(l.length>2){l=l.toLowerCase().replace(/^columbia/,'district of columbia').replace(/^n\.?\s+/,'north ').replace(/^s\.?\s+/,'south ');var m=1000,n=null;for(var o in g){if(!g.hasOwnProperty(o))continue;var p=g[o].toLowerCase(),q=h.DamerauLevenshteinDistance(l,p);if(l.charAt(0)!==p.charAt(0))q++;if(q===0){m=q;n=o;break;}else if(q<m){m=q;n=o;}}if(m<5)l=n.replace('STATE_','');}return l.replace(/[^a-zA-Z]/,'').substr(0,2).toUpperCase();};},USAZipCode:function(){return function(k){if(k.length>5)return k.substr(0,5)+'-'+k.substr(5);return k;};},email:function(){return function(k){return k.toLowerCase().replace(/[\s]/g,'');};},creditCardNumber:function(){return function(k){var l=i.getCardType(k);if('amex'===l.name)return (k.substr(0,4)+' '+k.substr(4,6)+' '+k.substr(10)).trim();return (k.substr(0,4)+' '+k.substr(4,4)+' '+k.substr(8,4)+' '+k.substr(12)).trim();};},expirationYear:function(){return function(k){return (k.length>0)?(parseInt(k,10)%100).toString():'';};},expirationSingleField:function(){return function(k){var l=k.substr(0,2).replace(/[\D]/g,''),m=k.substr(2,3).replace(/[\D]/g,'');if(l.length===0)return '';return ((l.length===1)?'0':'')+l+'/'+m;};}};e.exports=j;},null);
  __d("CommerceInputValidator",["CommerceUSAStates","CreditCardFormParam","PaymentMethodUtils"],function(a,b,c,d,e,f,g,h,i){var j={or:function(k,l){return function(m){return k(m)||l(m);};},notEmpty:function(){return function(k){return !!k.trim();};},lengthEquals:function(k){return function(l){return (l.length===k);};},numberBetween:function(k,l){return function(m){return (Number(m)>=k&&Number(m)<=l);};},USAState:function(){return function(k){return g.hasOwnProperty('STATE_'+k);};},cardNumber:function(){return function(k,l){return i.isValidCCNumber(k);};},cardLength:function(){return function(k,l){var m=i.getCardType(k);return (k.replace(/\D+/g,'').length==m.digits);};},CSC:function(){return function(k,l){var m=i.getCardType(l[h.CARD_NUMBER]);return (k.length==m.cscDigits);};},expiration:function(){return function(k,l){var m=h.CARD_EXPIRATION+'['+h.MONTH+']',n=h.CARD_EXPIRATION+'['+h.YEAR+']',o=l[m],p=l[n];if(!o||!p)return true;if(o==='12'){o='1';p=(parseInt(p,10)+1).toString();}else o=(parseInt(o,10)+1).toString();var q=new Date().getFullYear().toString().substring(0,2);p=(2===p.length)?q+p:p;var r=new Date(p,Math.max(o-1,0));return (r.getTime()>Date.now());};},expirationSingleField:function(){return function(k){var l=Number(k.substr(0,2)),m=Number(k.substr(3,2));if(l<1||l>12)return false;if(l==12){l=1;m++;}else l++;var n=new Date(2000+m,Math.max(l-1,0));return (n.getTime()>Date.now());};},email:function(){return function(k){var l=k.indexOf('@'),m=k.lastIndexOf('.');return (l>0&&m>l);};}};e.exports=j;},null);
  __d("AdsPaymentsFormConfig",["AdsPaymentsFormInputSpec","CommerceErrorCode","CommerceInputNormalizer","CommerceInputValidator","CreditCardFormParam","PaypalFormParam"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=function(){var p={},q=function(r){return g.creditCard[r]||{};};p[k.CARD_NUMBER]={attributes:q(k.CARD_NUMBER),normalizers:[i.numericize()],autotabbers:{cardLength:j.cardLength()},validators:{cardNumber:j.cardNumber()},errors:{cardNumber:h.COMMERCE__INVALID_CREDIT_CARD_NUMBER}};p[k.CARD_EXPIRATION]={attributes:q(k.CARD_EXPIRATION),normalizers:[i.expirationSingleField()],autotabbers:{expLength:j.lengthEquals(5)},validators:{expiration:j.expirationSingleField()},errors:{expiration:h.COMMERCE__INVALID_CREDIT_CARD_EXPIRATION}};p[k.CSC]={attributes:q(k.CSC),normalizers:[i.numericize()],autotabbers:{CSC:j.CSC()},validators:{CSC:j.CSC()},errors:{CSC:h.COMMERCE__INVALID_CREDIT_CARD_SECURITY_CODE}};p[k.ZIP]={attributes:q(k.ZIP),normalizers:[i.trim()],validators:{},errors:{}};return p;},n=function(){var p={},q=function(r){return g.paypal[r]||{};};p[l.EMAIL]={attributes:q(l.EMAIL),normalizers:[i.email()],validators:{email:j.email()},errors:{email:h.COMMERCE__INVALID_EMAIL}};p[l.PASSWORD]={attributes:q(l.PASSWORD),normalizers:[],validators:{notEmpty:j.notEmpty()},errors:{notEmpty:h.COMMERCE__FIELD_EMPTY}};return p;},o={creditCard:m,paypal:n};e.exports=o;},null);
  __d("AdsPaymentsFormEvents",[],function(a,b,c,d,e,f){var g={SAVE_CREDIT_CARD:'AdsPaymentsCreditCard_SaveCreditCard',SAVE_PAYPAL_CREDENTIALS:'AdsPaymentsPaypal_SavePaypalCredentials'};e.exports=g;},null);
  __d("CommerceAbstractFormMixin.react",["DOM","React","emptyFunction","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k={autocomplete:'autoComplete',maxlength:'maxLength',tabindex:'tabIndex'},l={ERROR_PREFIX:'3rr0r_',propTypes:{onDataChange:h.PropTypes.func},getDefaultProps:function(){return {onDataChange:i};},getFormData:function(){var m={};for(var n in this.state)if(this.state.hasOwnProperty(n)&&!this.getNonFormData().hasOwnProperty(n)&&n.substring(0,this.ERROR_PREFIX.length)!==this.ERROR_PREFIX)m[n]=this.state[n];return m;},_onChangeSetValue:function(m,n){j(this.getConfig&&this.getFormData);var o=n.value;if(!o&&n.target)if('checkbox'===n.target.type){o=n.target.checked;}else o=n.target.value;var p=this.getFormData();p[m]=o;var q=this.getConfig();if(q&&q[m]&&q[m].normalizeOnChange){this._normalizeInput(m,p);}else{var r={};r[m]=o;this.setState(r);this.props.onDataChange(r);}if(q&&q[m]&&q[m].autotabbers){var s=q[m].autotabbers;for(var t in s)if(s[t](o,p)){var u=g.scry(n.target.form,'[tabIndex="'+(Number(n.target.tabIndex)+1)+'"]');if(u.length){u[0].focus();break;}}}},_onBlurProcessValue:function(m,n){j(this.getFormData);var o=this.getFormData();o[m]=('checkbox'===n.target.type)?n.target.checked:n.target.value;this._processInput(m,o);},_onFocusClearError:function(m,n){var o={};o[this.ERROR_PREFIX+m]={show:false,msg:(this.state[this.ERROR_PREFIX+m]||{}).msg};this.setState(o);},_validateAllInputs:function(){j(this.getConfig);j(this.getFormData);var m=true;for(var n in this.getConfig()){if(!this.getConfig().hasOwnProperty(n))continue;var o=this._processInput(n,this.getFormData());if(!o)m=false;}return m;},_processInput:function(m,n){n[m]=this._normalizeInput(m,n);var o=this._validateInput(m,n),p={},q=true;if(o.success){p[this.ERROR_PREFIX+m]={show:false,msg:null};}else{q=false;p[this.ERROR_PREFIX+m]={show:true,msg:o.message||''};}this.setState(p);return q;},_normalizeInput:function(m,n){j(this.getConfig);var o=this.getConfig()[m];if(!o||!o.normalizers)return;var p=n[m];for(var q in o.normalizers){if(!o.normalizers.hasOwnProperty(q))continue;p=o.normalizers[q](p,n);n[m]=p;}var r={};r[m]=p;this.setState(r);this.props.onDataChange(r);return p;},_validateInput:function(m,n){j(this.getConfig);var o=this.getConfig()[m];if(!o||!o.validators)return {success:true,message:null};var p=true,q=null;for(var r in o.validators){if(!o.validators.hasOwnProperty(r))continue;p=p&&o.validators[r](n[m],n);if(!p){q=o.errors[r];break;}}return {success:p,message:q};},_errorAllInputs:function(m,n){j(this.getConfig);var o={},p=this.getConfig();for(var q in p){if(!p.hasOwnProperty(q))continue;var r=p[q].errorKey||q;if(m&&m.hasOwnProperty(r)){o[this.ERROR_PREFIX+q]={show:true,msg:m[r][n]};}else o[this.ERROR_PREFIX+q]={show:false,msg:null};}this.setState(o);},_getReactAttributes:function(m){var n={};for(var o in m){if(!m.hasOwnProperty(o))continue;n[k[o]||o]=m[o];}return n;}};e.exports=l;},null);
  __d("AdsPaymentsCreditCardForm.react",["AdsApplicationIDs","AdsPaymentsFlowAPI","AdsPaymentsFormConfig","AdsPaymentsFormEvents","Base64","CommerceAbstractFormMixin.react","CreditCardFormParam","EventEmitter","Layout.react","React","XCommerceCheckoutParam","XCommerceErrorParam","XPaymentsCreditCardMutatorParam","XUINotice.react","XUIText.react","XUITextInput.react","cx","fbt","getSafeBodyFromHTML"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){var z=o.Column,aa=p.createClass({displayName:"AdsPaymentsCreditCardForm",mixins:[l],propTypes:{pubSub:p.PropTypes.instanceOf(n).isRequired,accountID:p.PropTypes.string,defaultCountry:p.PropTypes.string,trackingID:p.PropTypes.string,onSubmit:p.PropTypes.func,onSubmitFailure:p.PropTypes.func,validatorChecks:p.PropTypes.array},getInitialState:function(){var ba=this.getNonFormData();ba[m.KEYPRESS_TIMES]='';ba[m.ACCOUNT_ID]=this.props.accountID;ba[m.APP_ID]=g.ADS_PAYMENT;ba[m.COUNTRY]=this.props.defaultCountry;ba[m.TRACKING_ID]=this.props.trackingID;for(var ca in this.props.validatorChecks){if(!this.props.validatorChecks.hasOwnProperty(ca))continue;ba[m.VALIDATOR_CHECKS+'['+this.props.validatorChecks[ca]+']']=true;}ba[q.CC_SAVE]=true;ba[m.CARD_NUMBER]='';ba[m.CARD_EXPIRATION]='';ba[m.CSC]='';ba[m.ZIP]='';return ba;},render:function(){var ba=[];for(var ca in this.props.validatorChecks){if(!this.props.validatorChecks.hasOwnProperty(ca))continue;ba.push(m.VALIDATOR_CHECKS+'['+this.props.validatorChecks[ca]+']');}return (p.createElement("div",{className:"_4r9n"},this._renderError(),this._renderHiddenInput(m.KEYPRESS_TIMES),this._renderHiddenInput(m.COUNTRY),ba.map(this._renderHiddenInput),p.createElement(o,null,p.createElement(z,{className:"_4r9o _3-90"},this._renderTextInput(m.CARD_NUMBER,{tabIndex:'1'})),p.createElement(z,{className:"_4r9o"},this._renderTextInput(m.CARD_EXPIRATION,{tabIndex:'2'}))),p.createElement(o,{className:"_3-8x"},p.createElement(z,{className:"_4r9o _3-90"},this._renderTextInput(m.CSC,{tabIndex:'3'})),p.createElement(z,{className:"_4r9o"},this._renderTextInput(m.ZIP,{tabIndex:'4'})))));},componentDidMount:function(){this.props.onDataChange(this.getFormData());this.props.pubSub.addListener(j.SAVE_CREDIT_CARD,function(){this._submitForm();}.bind(this));},componentWillUnmount:function(){this.props.pubSub.removeAllListeners(j.SAVE_CREDIT_CARD);},getConfig:function(){return i.creditCard();},getNonFormData:function(){return {errors:null,submitting:false};},_renderError:function(){if(!this.state.errors)return null;var ba=y(this.state.errors);if(ba){var ca=ba.innerText||ba.textContent;}else ca=this.state.errors;return (p.createElement(t,{use:"warn",className:"_3-96"},p.createElement(u,{size:"small",display:"block"},ca)));},_renderHiddenInput:function(ba){return (p.createElement("input",{key:ba,type:"hidden",autoComplete:"off",name:ba,value:this.state[ba]}));},_renderTextInput:function(ba,ca){var da=this.state[this.ERROR_PREFIX+ba],ea=da&&da.show,fa=this._getReactAttributes((this.getConfig()[ba]||{}).attributes||{});Object.assign(fa,ca);return (p.createElement(v,p.__spread({},fa,{className:"_53sm",height:"tall",value:this.state[ba],onChange:this._onChangeSetValue.bind(this,ba),onBlur:this._onBlurProcessValue.bind(this,ba),onFocus:this._onFocusClearError.bind(this,ba),xuiError:ea?'':null})));},_onKeyUpLog:function(ba){var ca=JSON.parse(k.decode(this.state[m.KEYPRESS_TIMES])||'[]'),da=this.state[m.CARD_NUMBER].replace(/\D/g,'')||'';if(da.length<ca.length)ca=ca.slice(0,da.length);var ea=Date.now();while(ca.length<da.length)ca[ca.length]=ea;var fa={};fa[m.KEYPRESS_TIMES]=k.encode(JSON.stringify(ca));this.setState(fa);},_submitForm:function(){if(this.state.submitting){this.props.onSubmitFailure();return false;}if(this._validateAllInputs()){this.setState({errors:null});}else{this.setState({errors:"Please fill out all the information"});this.props.onSubmitFailure();return false;}this.setState({submitting:true});h.saveCreditCard({data:this.getFormData(),error:function(ba){this.setState({submitting:false});if(ba.hasGeneralError()){this.setState({errors:ba.getGeneralErrorMessage()});}else if(ba.hasFieldErrors()){this._errorAllInputs(ba.getFieldErrors(),r.ERROR_MSG);}else this.setState({errors:"Unexpected error occured"});this.props.onSubmitFailure();}.bind(this),success:function(ba){var ca=ba.getPayload()[s.CARD_FBID];this.props.onSubmit(ca);}.bind(this)});}});e.exports=aa;},null);
  __d("AdsPaymentsPaypalForm.react",["AdsPaymentsFormConfig","AdsPaymentsFormEvents","CommerceAbstractFormMixin.react","EventEmitter","Layout.react","PaypalFormParam","React","XUINotice.react","XUIText.react","XUITextInput.react","cx","fbt","getSafeBodyFromHTML"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=k.Column,u=m.createClass({displayName:"AdsPaymentsPaypalForm",mixins:[i],propTypes:{pubSub:m.PropTypes.instanceOf(j).isRequired,defaultCountry:m.PropTypes.string,onSubmit:m.PropTypes.func,onSubmitFailure:m.PropTypes.func},getInitialState:function(){var v=this.getNonFormData();v[l.COUNTRY]=this.props.defaultCountry;v[l.EMAIL]='';v[l.PASSWORD]='';return v;},render:function(){var v=[];return (m.createElement("div",{className:"_4r9n"},this._renderError(),this._renderHiddenInput(l.COUNTRY),v.map(this._renderHiddenInput),m.createElement(k,null,m.createElement(t,{className:"_4r9o _3-90"},this._renderTextInput(l.EMAIL,{tabIndex:'1'})),m.createElement(t,{className:"_4r9o"},this._renderTextInput(l.PASSWORD,{tabIndex:'2'})))));},componentDidMount:function(){this.props.onDataChange(this.getFormData());this.props.pubSub.addListener(h.SAVE_PAYPAL_CREDENTIALS,function(){this._submitForm();}.bind(this));},componentWillUnmount:function(){this.props.pubSub.removeAllListeners(h.SAVE_PAYPAL_CREDENTIALS);},getConfig:function(){return g.paypal();},getNonFormData:function(){return {errors:null,submitting:false};},_renderError:function(){if(!this.state.errors)return null;var v=s(this.state.errors);return (m.createElement(n,{use:"warn",className:"_3-96"},m.createElement(o,{size:"small",display:"block"},v.innerText||v.textContent)));},_renderHiddenInput:function(v){return (m.createElement("input",{key:v,type:"hidden",autoComplete:"off",name:v,value:this.state[v]}));},_renderTextInput:function(v,w){var x=this.state[this.ERROR_PREFIX+v],y=x&&x.show,z=this._getReactAttributes((this.getConfig()[v]||{}).attributes||{});Object.assign(z,w);return (m.createElement(p,m.__spread({},z,{className:"_53sm",height:"tall",value:this.state[v],onChange:this._onChangeSetValue.bind(this,v),onBlur:this._onBlurProcessValue.bind(this,v),onFocus:this._onFocusClearError.bind(this,v),xuiError:y?'':null})));},_submitForm:function(){if(this.state.submitting){this.props.onSubmitFailure();return false;}if(this._validateAllInputs()){this.setState({errors:null});}else{this.setState({errors:"Please fill out all the information"});this.props.onSubmitFailure();return false;}this.setState({submitting:true});}});e.exports=u;},null);
  __d("XAdsPaymentDialogActionControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/fbpayments\/flows\/payment\/dialog_action\/",{context_id:{type:"Int"},selected_payment_method:{type:"String"},payment_method_id:{type:"Int"},paypal_token:{type:"String"},paypal_fb_entity:{type:"String"},selected_country:{type:"String"},payment_option:{type:"String"},coupon_checkbox:{type:"Bool"},skip_coupon:{type:"Bool"},back_press:{type:"Bool"},change_payment_method:{type:"Bool"},coupon_code:{type:"String"},provider_error:{type:"Bool"},provider_error_code:{type:"Int"},provider_error_message:{type:"String"},provider_pending:{type:"Bool"},provider_cancel:{type:"Bool"},brazil_tax_id:{type:"String"},brazil_street1:{type:"String"},brazil_street2:{type:"String"},brazil_city:{type:"String"},brazil_state:{type:"String"},brazil_postal_code:{type:"String"},business_name:{type:"String"},address_street1:{type:"String"},address_street2:{type:"String"},address_city:{type:"String"},address_postal_code:{type:"String"},address_state:{type:"String"},address_country:{type:"String"},eu_vat_country:{type:"String"},eu_vat_number:{type:"String"},business_ads_for_client:{type:"Bool"},business_target_france:{type:"Bool"},business_who_pays_facebook:{type:"String"},business_client_company_name:{type:"String"},business_client_email_address:{type:"String"},business_mandate_received:{type:"Bool"},disclaimer_decision:{type:"Bool"},amount_decision:{type:"Bool"},prepaid_amount:{type:"String"},activate_dcn:{type:"Bool"}});},null);
  __d("XAdsPaymentDialogCancelControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/fbpayments\/flows\/payment\/dialog_cancel\/",{context_id:{type:"Int",required:true}});},null);
  __d("PaymentsFlow",["AdsCurrencyFormatter","AdsPaymentsCreditCardForm.react","AdsPaymentsFormEvents","AdsPaymentsPaypalForm.react","Arbiter","AsyncRequest","Button","CSS","DOM","DOMEventListener","Event","EventEmitter","Form","FullScreen","React","URI","Vector","XAdsPaymentDialogActionControllerURIBuilder","XAdsPaymentDialogCancelControllerURIBuilder","$","csx","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){var ca="#141823",da="#B9BDC5",ea={_callback:null,_contextID:null,_currency:null,_eventEmitter:null,_form:null,_paymentMethodsConfig:null,_selectedMethod:null,_button:null,_popup:null,_popupSubmitted:false,_submitting:false,_pollPopup:function(){if(this._popupSubmitted)return;if(!this._popup||this._popup.closed){this._setSubmitting(false);}else setTimeout(this._pollPopup.bind(this),100);},_setSubmitting:function(fa){m.setEnabled(this._button,!fa);this._submitting=fa;},_openPopup:function(fa){var ga=this._selectedMethod=='paypal',ha=ga?420:800,ia=550,ja=Number(!ga),ka=Number(!ga),la=Number(!ga),ma='';if(!t.isFullScreen()){var na=0,oa=0;if(window.screenLeft){na=window.screenLeft;oa=window.screenTop;}else if(window.screenX){na=window.screenX;oa=window.screenY;}var pa=w.getViewportDimensions().x,qa=w.getViewportDimensions().y;na=na+(pa-ha)/2;oa=oa+(qa-ia)/2;ma='top='+oa+','+'left='+na+','+'width='+ha+','+'height='+ia+',';}ma=ma+'location=yes,'+'resizable='+ja+','+'toolbar='+ka+','+'menubar='+la+','+'scrollbars=yes';this._popup=window.open(fa.toString(),'FBPaymentsFlowPopupWindow',ma);},_updateSelectedPaymentMethod:function(){var fa=o.scry(z('payment_options'),"._3s1x");fa.forEach(function(ga){n.removeClass(ga,"_3s1y");var ha=o.find(ga,'input[type="radio"]');if(ha.checked){this._selectedMethod=ha.value;n.addClass(ga,"_3s1y");}},this);},onSubmit:function(fa){if(fa.preventDefault){fa.preventDefault();}else fa.returnValue=false;if(fa.stopPropagation)fa.stopPropagation();if(this._submitting)return;this._setSubmitting(true);this._updateSelectedPaymentMethod();if(!this._selectedMethod){this._setSubmitting(false);return;}var ga=this._paymentMethodsConfig[this._selectedMethod];if(ga&&ga.open_popup){this._openPopup(ga.popup_url);this._pollPopup();}else if(this._selectedMethod=='new_cc'){this.submitCreditCardForm();}else this._submitSelectState();},setCurrency:function(fa){this._currency=fa;},submitPrepaidAmount:function(fa){m.setEnabled(z('AdsPaymentsPrepaidAmountButton'),false);var ga=z('amount-entered'),ha=g.parsePECurrency(this._currency,ga.value),ia=(new x()).setInt('context_id',this._contextID).setBool('amount_decision',true).setString('prepaid_amount',ha.toString()).getURI();new l().setURI(ia).send();},submitClientBusinessInfo:function(){m.setEnabled(z('AdsPaymentsSubmitClientBusinessInfoButton'),false);var fa=document.getElementsByName('who_pays_facebook'),ga=s.getRadioValue(fa),ha=o.find(z('AdsPaymentClientBusinessCountryDropdown'),'input[type="hidden"]').value,ia=(new x()).setInt('context_id',this._contextID).setString('business_who_pays_facebook',ga).setString('business_client_company_name',z('client_company_name').value).setString('business_client_email_address',z('client_email_address').value).setString('address_street1',z('address_street1').value).setString('address_street2',z('address_street2').value).setString('address_city',z('address_city').value).setString('address_postal_code',z('address_postal_code').value).setString('address_state',z('address_state').value).setString('address_country',ha).setBool('business_mandate_received',z('mandate_declaration').checked).getURI();new l().setURI(ia).send();},submitBusinessInfo:function(fa){m.setEnabled(z('AdsPaymentsSubmitBusinessInfoButton'),false);var ga=o.find(z('AdsPaymentsVATCountryDropdown'),'input[type="hidden"]').value,ha=document.getElementsByName('ads_for_client'),ia=s.getRadioValue(ha),ja=document.getElementsByName('target_france'),ka=s.getRadioValue(ja),la=(new x()).setInt('context_id',this._contextID).setString('business_name',z('business_name').value).setString('address_street1',z('address_street1').value).setString('address_street2',z('address_street2').value).setString('address_city',z('address_city').value).setString('address_postal_code',z('address_postal_code').value).setString('address_state',z('address_state').value).setString('eu_vat_country',ga).setString('eu_vat_number',z('eu_vat_number').value).setBool('business_ads_for_client',ia=='yes').setBool('business_target_france',ka=='yes').getURI();new l().setURI(la).send();},initAgencyRepresentingClientRadio:function(){var fa=document.getElementsByName('ads_for_client');for(var ga=0;ga<fa.length;ga++)q.listen(fa[ga],'change',this.agencyRepresentingClientChanged.bind(this));},agencyRepresentingClientChanged:function(){var fa=document.getElementsByName('ads_for_client'),ga=s.getRadioValue(fa),ha=document.getElementsByName('target_france'),ia=z('target_france_text'),ja=z('france_yes'),ka=z('france_no');if(ga=='yes'){for(var la=0;la<ha.length;la++)ha[la].disabled=false;ia.style.color=ca;ja.style.color=ca;ka.style.color=ca;}else{for(la=0;la<ha.length;la++)ha[la].disabled=true;ia.style.color=da;ja.style.color=da;ka.style.color=da;}},submitTaxIDForm:function(fa){m.setEnabled(z('AdsPaymentsBrazilTaxIDButton'),false);var ga=(new x()).setInt('context_id',this._contextID).setString('selected_country',z('AdsPaymentsCountryDropdown').value).setString('brazil_tax_id',z('AdsPaymentsBrazilTaxID').value).getURI();new l().setURI(ga).send();},submitTaxAddressForm:function(fa){m.setEnabled(z('AdsPaymentsBrazilTaxAddressButton'),false);var ga=o.find(z('address_state'),'input[type="hidden"]'),ha=(new x()).setInt('context_id',this._contextID).setString('brazil_street1',z('address_street1').value).setString('brazil_street2',z('address_street2').value).setString('brazil_city',z('address_city').value).setString('brazil_state',ga.value).setString('brazil_postal_code',z('address_postal_code').value).getURI();new l().setURI(ha).send();},submitDeferredCredentialContinue:function(fa){if(m.isEnabled(z('AdsPaymentsDCNContinueButton')))this._submitDeferredCredentialForm(true);},submitDeferredCredentialBack:function(fa){this._submitDeferredCredentialForm(false);},_submitDeferredCredentialForm:function(fa){m.setEnabled(z('AdsPaymentsDCNContinueButton'),false);m.setEnabled(z('AdsPaymentsDCNBackButton'),false);var ga=(new x()).setInt('context_id',this._contextID).setBool('activate_dcn',fa).getURI();new l().setURI(ga).send();},_submitSelectState:function(fa){var ga=o.scry(z('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox'),ha=(new x()).setInt('context_id',this._contextID).setString('selected_payment_method',this._selectedMethod).setInt('payment_method_id',fa).setBool('coupon_checkbox',ga.length?ga[0].checked:false).getURI();new l().setURI(ha).send();},initSelectPaymentMethodButton:function(fa){this._button=fa;this._setSubmitting(false);q.listen(fa,'click',this.onSubmit.bind(this));},setContextID:function(fa){this._contextID=fa;},initSelectPaymentMethodForm:function(fa,ga,ha){this._contextID=fa;this._paymentMethodsConfig=ha;q.listen(ga._root,'submit',this.onSubmit.bind(this));},initIFrame:function(fa){this._iframe=fa;var ga=this.processIFrame.bind(this,true,false,0,'',false);if(!this._iframeChangeArbiter)this._iframeChangeArbiter=k.subscribe('Connect.Unsafe.PaymentIframe.changeMethod',ga);if(!this._iframeCancelArbiter)this._iframeCancelArbiter=k.subscribe('Connect.Unsafe.PaymentIframe.cancel',ga);if(!this._iframeSetSizeArbiter)this._iframeSetSizeArbiter=k.subscribe('Connect.Unsafe.setSize',function(ha,ia){this.setSize(ia);}.bind(this));},setSize:function(fa){if(fa.frame!='partner_iframe')return;var ga=Number(fa.width),ha=Number(fa.height);this._iframe.style.overflowY='hidden';if(ha&&!isNaN(ha))this._iframe.style.height=ha+'px';if(ga&&!isNaN(ga))this._iframe.style.width=ga+'px';},processIFrame:function(fa,ga,ha,ia,ja){var ka=(new x()).setInt('context_id',this._contextID).setBool('provider_cancel',fa).setBool('provider_error',ga).setInt('provider_error_code',ha).setString('provider_error_message',ia).setBool('provider_pending',ja);new l().setURI(ka.getURI()).send();},processPopup:function(fa){if(!fa.cancel&&fa.context_id!=this._contextID)return;this._popupSubmitted=true;if(this._popup){this._popup.close();if(!this._popup.closed){var ga=new v('/payments/message.php');if(fa.cancel)ga.addQueryData('cancel',1);this._popup.location=ga.toString();}this._popup=null;}if(fa.cancel){this._setSubmitting(false);return;}var ha=o.scry(z('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox'),ia=(new x()).setInt('context_id',this._contextID).setString('selected_payment_method',this._selectedMethod).setBool('coupon_checkbox',ha.length?ha[0].checked:false);if(this._selectedMethod=='new_cc'&&fa.success=='true'&&fa.credit_card_added=='true'){ia.setInt('payment_method_id',parseInt(fa.cc_cred_id,10));}else if(this._selectedMethod=='paypal'&&fa.success=='1'&&fa.paypal_added=='1'){ia.setString('paypal_token',fa.token).setString('paypal_fb_entity',fa.fbent);}else{this._setSubmitting(false);return;}new l().setURI(ia.getURI()).send();},onCancel:function(fa){var ga=(new y()).setInt('context_id',this._contextID).getURI();new l().setURI(ga).send();this.onErrorOrCancel();},onErrorOrCancel:function(){this.doCallback({});},initRadioInput:function(fa,ga){p.add(fa,'change',this.onChange.bind(this,ga));},initCouponCheckbox:function(fa){p.add(fa,'change',this.onCouponChange.bind(this));},initDCNCheckbox:function(fa){p.add(fa,'change',this.onToggleDCNCheckbox.bind(this));},initCountryDropdown:function(fa){fa.subscribe('change',this.onCountryChange.bind(this));},onChange:function(fa){this._updateSelectedPaymentMethod();var ga=o.scry(z('XPaymentDialogBody'),'#AdsPaymentsInlineCreditCard');if(ga.length)if(this._selectedMethod=='new_cc'){n.show(ga[0]);}else n.hide(ga[0]);var ha=o.scry(z('XPaymentDialogBody'),'#AdsPaymentsInlinePaypal');if(ha.length)if(this._selectedMethod=='paypal'){n.show(ha[0]);}else n.hide(ha[0]);var ia=o.scry(z('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox');if(ia.length)if(fa){n.hide('AdsPaymentsCouponMessage');n.hide('AdsCouponCheckboxLabel');if(ia[0].checked){ia[0].checked=false;n.show('AdsPaymentsCouponUnsupportedMessage');}}else{n.hide('AdsPaymentsCouponUnsupportedMessage');n.show('AdsCouponCheckboxLabel');this.onCouponChange();}},onCouponChange:function(){var fa=z('AdsPaymentsCouponCheckbox'),ga=z('AdsPaymentsCouponMessage');n.conditionClass(ga,'hidden_elem',!fa.checked);this._setDCNEnabledEnabledState(!fa.checked);},onToggleDCNCheckbox:function(){var fa=z('AdsPaymentsDCNCheckbox'),ga=z('AdsPaymentsDCNContinueButton');m.setEnabled(ga,fa.checked);},onCountryChange:function(fa,ga){this._setSubmitting(true);var ha=(new x()).setInt('context_id',this._contextID).setString('selected_country',ga.value).getURI();new l().setURI(ha).send();},_setDCNEnabledEnabledState:function(fa){var ga=o.scry(z('XPaymentDialogBody'),'#deferred_credential_element');if(ga.length)ga[0].style.borderStyle=fa?'solid':'dashed';var ha=o.scry(z('XPaymentDialogBody'),'#deferred_credential_input');if(ha.length)ha[0].disabled=!fa;var ia=o.scry(z('XPaymentDialogBody'),'#deferred_credential_title');if(ia.length)ia[0].style.color=fa?'black':'grey';var ja=o.scry(z('XPaymentDialogBody'),'#deferred_credential_logos');if(ja.length){var ka=o.scry(z('deferred_credential_logos'),"._3s1_");if(ka.length)ka[0].src=fa?'/images/payments/icons/deferred_credential.png':'/images/payments/icons/deferred_credential_disabled.png';}if(!fa&&ha.length&&ha[0].checked){if(ga.length)n.removeClass(ga[0],"_3s1y");n.addClass(z('new_cc_element'),"_3s1y");ha[0].checked=false;z('new_cc_input').checked=true;}},enableCouponButton:function(){m.setEnabled(z('coupon_submit_button'),true);},setCallback:function(fa){this._callback=fa;},doCallback:function(fa){this._callback(fa);},renderInlineCreditCardForm:function(fa,ga,ha,ia,ja){var ka={pubSub:this._getEventEmitter(),accountID:ga,defaultCountry:ha,trackingID:ia,onSubmit:function(la){this._submitSelectState(la);}.bind(this),onSubmitFailure:function(){this._setSubmitting(false);}.bind(this),validatorChecks:ja};u.constructAndRenderComponent(h,ka,fa);},renderInlinePaypalForm:function(fa,ga){var ha={pubSub:this._getEventEmitter(),defaultCountry:ga,onSubmit:function(ia){this._submitSelectState(ia);}.bind(this),onSubmitFailure:function(){this._setSubmitting(false);}.bind(this)};u.constructAndRenderComponent(j,ha,fa);},_getEventEmitter:function(){if(this._eventEmitter===null)this._eventEmitter=new r();return this._eventEmitter;},submitCreditCardForm:function(){this._getEventEmitter().emit(i.SAVE_CREDIT_CARD);}};a.PaymentsFlow=e.exports=ea;},null);
  __d("XAdsPaymentDialogControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/fbpayments\/flows\/payment\/dialog\/",{account_id:{type:"Int",required:true},altpay_method_name:{type:"String"},placement:{type:"String",required:true},prepay_shortcut_flow:{type:"Bool"},is_shortcut:{type:"Bool"},campaign_budget_amount:{type:"Int"},campaign_budget_currency:{type:"String"},campaign_budget_type:{type:"String"},campaign_end_time:{type:"String"},campaign_start_time:{type:"String"},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool"},coupon_code:{type:"String"},product_name:{type:"String"},pending_ad_id:{type:"Int"},shortcut_charge_flow:{type:"Bool"},funding_id:{type:"Int"},payment_method_type:{type:"String"},__asyncDialog:{type:"Int"}});},null);
  __d("XAdsPaymentFlowQEControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/fbpayments\/flows\/payment\/ads_flow_qe\/",{ad_account_id:{type:"Int"}});},null);
  __d("AdManagerFunding",["AdsCFLoggerInternal","AsyncRequest","GiftCredits","PaymentsFlow","URI","XAdsPaymentDialogControllerURIBuilder","XAdsPaymentFlowQEControllerURIBuilder","AdsPaymentsFlowPlacement","copyProperties","goURI","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=function(t,u,v,w){g.log(g.CATEGORIES.PAYMENT,t,{account_id:u,ncf:k(window.location.href).getQueryData().ncf,source:v,url_user:w?w:'No url user'});},s={CAMPAIGN_DATE_FORMAT:'m/d/Y',POWER_EDITOR_APP_ID:'119211728144504',_business_id:null,_flowLock:false,addCredentialCallbackFromFunding:function(t,u){if(u.credential_state){var v=k('/ads/manage/funding.php').addQueryData({credential_state:u.credential_state,has_hit_asl:u.has_hit_asl,act:t});if(s.getBusinessID())v.addQueryData({business_id:s.getBusinessID()});p(v);}},addCredentialCallbackFromFundingInPE:function(t){if(t){var u=k('/ads/manage/powereditor/funding').addQueryData({host:s.POWER_EDITOR_APP_ID}).addQueryData({account:t});if(s.getBusinessID())u.addQueryData({business_id:s.getBusinessID()});p(u);}},addCredentialCallbackFromUnsettled:function(t,u){if(u.credential_state){var v=k('/ads/manage/unsettled.php').addQueryData({primary:1}).addQueryData({act:t}).addQueryData({redirect:u.redirect});if(s.getBusinessID())v.addQueryData({business_id:s.getBusinessID()});p(v);}},addCredentialCallbackFromPageNAX:function(t){if(t.credential_state){var u=k().addQueryData({success:true});if(s.getBusinessID())u.addQueryData({business_id:s.getBusinessID()});p(u);}},addCredential:function(t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja){if(this._flowLock)return;this.setFlowLock(true);if(!aa)aa=0;r('payment_initiated',v,t,ba);if(!x)switch(t){case 'funding_page':case n.MIGRATE_TO_POSTPAY:if(z==s.POWER_EDITOR_APP_ID){x=function(){s.addCredentialCallbackFromFundingInPE(v);};}else x=function(na){s.addCredentialCallbackFromFunding(v,na);};break;case 'unsettled':case 'grace_period':x=function(na){s.addCredentialCallbackFromUnsettled(v,na);};break;case 'create_flow':case n.CM_PAYMENT_METHODS_TAB:q(false);break;case 'page_nax':x=s.addCredentialCallbackFromPageNAX;break;case 'boosted_page_like':case 'boosted_website':case 'boosted_page_like_page_nax':x=function(na){};break;default:return;}var ka=function(na){r(na&&na.credential_state?'payment_completed':'payment_cancelled',v,t,ba);x(na);},la=function(na){if(na.getPayload().test){if(!ea)ea=[];var oa=(new l()).setInt('account_id',v).setString('altpay_method_name',ea.altpay_method_name).setBool('prepay_shortcut_flow',ea.prepay_shortcut_flow).setString('placement',t).setBool('is_shortcut',ea.shortcut).setInt('credential_id',ea.credential_id).setBool('show_existing_coupon',da).setString('coupon_code',w).setString('product_name',y).setInt('pending_ad_id',aa).setBool('shortcut_charge_flow',ea.shortcut_charge_flow).setInt('funding_id',ea.funding_id).setString('payment_method_type',ea.payment_method_type).setInt('campaign_budget_amount',ga).setString('campaign_budget_currency',ha).setString('campaign_budget_type',fa).setString('campaign_end_time',ia).setString('campaign_start_time',ja).getURI();j.setCallback(ka);new h().setURI(oa).setFinallyHandler(this.setFlowLock.bind(this,false)).send();}else{this.setFlowLock(false);i.getPrompt(u,null,{},null,ka,'admanager',null,null,'ads',o({account_id:v,coupon_code:w,product_name:y,pending_ad_id:aa,show_existing_coupon:da,campaign_budget_type:fa,campaign_budget_amount:ga,campaign_budget_currency:ha,campaign_end_time:ia,campaign_start_time:ja},ea),{placement:t},null,null,null,null,null,null,null,null,null,null,ba,ca);}},ma=(new m()).setInt('ad_account_id',v).getURI();new h().setURI(ma).setHandler(la.bind(this)).send();},setFlowLock:function(t){this._flowLock=t;},setBusinessID:function(t){s._business_id=t;},getBusinessID:function(){return s._business_id;},verifyCredential:function(t,u,v,w,x,y){if(!y)y=s.addCredentialCallbackFromFunding;var z={shortcut:t,credential_id:u,account_id:w};i.getPrompt(v,null,{},null,y,'admanager',null,null,'ads',z,{placement:x});},chargeCredential:function(t,u,v,w,x,y){var z={funding_id:w,payment_method:x,payment_method_type:x,shortcut_charge_flow:true};s.addCredential(t,u,v,null,y,null,null,null,null,null,null,z);}};e.exports=s;},null);
  __d("AdsDispatchActionTypeUtils",[],function(a,b,c,d,e,f){"use strict";function g(h,i){var j={};for(var k in i)j[k]=h+k;return j;}e.exports={createActionTypeMap:g};},null);
  __d("AdsCommonTargetingActionTypes",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){var h='ADS_COMMON_TARGETING_',i={TARGETING_INIT:null,TARGETING_SET_FROM_EXTERNAL:null,TARGETING_CHANGE:null,TARGETABLE_AUDIENCES_CHANGE:null,BULK_API_SPEC_SET:null,GEO_COORDINATES_LOADED:null},j=g.createActionTypeMap(h,i);e.exports=j;},null);
  __d("keyMirrorRecursive",["invariant"],function(a,b,c,d,e,f,g){'use strict';function h(k){return i(k,null);}function i(k,l){var m={},n;g(j(k));for(n in k){if(!k.hasOwnProperty(n))continue;var o=k[n],p=l?l+'.'+n:n;if(j(o)){o=i(o,p);}else o=p;m[n]=o;}return m;}function j(k){return k instanceof Object&&!Array.isArray(k);}e.exports=h;},null);
  __d("AdsActionTypes",["keyMirrorRecursive"],function(a,b,c,d,e,f,g){'use strict';var h=g({ACCOUNT:{BATCH_LOADED:null,BATCH_LOAD_ERROR:null},PAGE_TRANSITION:null,RATE_CARD:{BATCH_LOADED:null,LIST:{BATCH_LOADED:null,BATCH_LOAD_ERROR:null}}});e.exports=h;},null);
  __d("Informer",["EventEmitter"],function(a,b,c,d,e,f,g){'use strict';function h(){this.$Informer0=new g();this.$Informer1=false;this.$Informer2={};}h.prototype.subscribe=function(i,j){var k=this.$Informer0.addListener(i,j);return {unsubscribe:function(){k.remove();}};};h.prototype.inform=function(i,j){if(this.$Informer1){this.$Informer2[i]=this.$Informer2[i]||[];var k=this.$Informer2[i].indexOf(j);if(k!==-1)this.$Informer2[i].splice(k,1);this.$Informer2[i].push(j);}else this.$Informer0.emit(i,i,j);};h.prototype.beginBatch=function(){this.$Informer1=true;};h.prototype.endBatch=function(){this.$Informer1=false;var i=this.$Informer2;this.$Informer2={};Object.keys(i).forEach(function(j){var k=i[j];k.forEach(function(l){this.$Informer0.emit(j,j,l);}.bind(this));}.bind(this));};e.exports=h;},null);
  __d("AdsInformer",["Informer"],function(a,b,c,d,e,f,g){'use strict';e.exports=new g();},null);
  __d("AdsPayloadSource",[],function(a,b,c,d,e,f){var g={CLEANUP_ACTION:'cleanup-action',INITIAL_SERVER:'initial-server',SERVER_RESPONSE:'server-response',UNKNOWN_SOURCE:'unknown-source',VIEW_ACTION:'view-action',URL_PARAM_LOAD:'url-param-load',PAGE_TRANSITION:'page-transition'};e.exports=g;},null);
  __d("AdsDispatcher",["AdsActionTypes","AdsDispatcherConfig","AdsInformer","AdsPayloadSource","BanzaiLogger","Dispatcher","ReactUpdates","Run","URI","copyProperties","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';var r=[];function s(u){return function(v){var w=Date.now();m.batchedUpdates(function(){i.beginBatch();this.dispatch({payloadsource:u,action:v});i.endBatch();}.bind(this));if(h.logDispatches){var x=Date.now()-w;k.log('AdsCFLoggerConfig',{event_name:'dispatch',time_since_load:Date.now()-a._cstart,event_detail:v.actionType,duration:x});}var y=r;r=[];y.forEach(function(z){z();});r.length=0;};}var t=p(new l(),{handleUpdateFromInitialServer:s(j.INITIAL_SERVER),handleUpdateFromServerResponse:s(j.SERVER_RESPONSE),handleUpdateFromURLParams:s(j.URL_PARAM_LOAD),handleUpdateFromUnknownSource:s(j.UNKNOWN_SOURCE),handleUpdateFromViewAction:s(j.VIEW_ACTION),handleUpdateFromCleanUpAction:s(j.CLEANUP_ACTION),handlePageTransition:function(){this.dispatch({payloadsource:j.PAGE_TRANSITION,action:{actionType:g.PAGE_TRANSITION}});},addPostDispatchCallback:function(u){if(this.isDispatching()){r.push(u);}else u();}});n.onAfterUnload(t.handlePageTransition.bind(t));e.exports=t;},null);
  /**
   * @providesModule underscore.ads
   * @preserve-header
   *
   * Underscore.js 1.5.2
   * ===================
  
   * > http://underscorejs.org
   * > Underscore may be freely distributed under the MIT license.
   * > (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative
   *   Reporters & Editors
  
   * Baseline setup
   * --------------
   */__d("underscore.ads",[],function(a,b,c,d,e,f){(function(){var g=this,h=g._,i={},j=Array.prototype,k=Object.prototype,l=Function.prototype,m=j.push,n=j.slice,o=j.concat,p=k.toString,q=k.hasOwnProperty,r=j.forEach,s=j.map,t=j.reduce,u=j.reduceRight,v=j.filter,w=j.every,x=j.some,y=j.indexOf,z=j.lastIndexOf,aa=Array.isArray,ba=Object.keys,ca=l.bind,da=function(ta){if(ta instanceof da)return ta;if(!(this instanceof da))return new da(ta);this._wrapped=ta;};if(typeof f!=='undefined'){if(typeof e!=='undefined'&&e.exports)f=e.exports=da;f._=da;}else g._=da;da.VERSION='1.5.2';var ea=da.each=da.forEach=function(ta,ua,va){if(ta==null)return;if(r&&ta.forEach===r){ta.forEach(ua,va);}else if(ta.length===+ta.length){for(var wa=0,xa=ta.length;wa<xa;wa++)if(ua.call(va,ta[wa],wa,ta)===i)return;}else{var ya=da.keys(ta);for(var wa=0,xa=ya.length;wa<xa;wa++)if(ua.call(va,ta[ya[wa]],ya[wa],ta)===i)return;}};da.map=da.collect=function(ta,ua,va){var wa=[];if(ta==null)return wa;if(s&&ta.map===s)return ta.map(ua,va);ea(ta,function(xa,ya,za){wa.push(ua.call(va,xa,ya,za));});return wa;};var fa='Reduce of empty array with no initial value';da.reduce=da.foldl=da.inject=function(ta,ua,va,wa){var xa=arguments.length>2;if(ta==null)ta=[];if(t&&ta.reduce===t){if(wa)ua=da.bind(ua,wa);return xa?ta.reduce(ua,va):ta.reduce(ua);}ea(ta,function(ya,za,ab){if(!xa){va=ya;xa=true;}else va=ua.call(wa,va,ya,za,ab);});if(!xa)throw new TypeError(fa);return va;};da.reduceRight=da.foldr=function(ta,ua,va,wa){var xa=arguments.length>2;if(ta==null)ta=[];if(u&&ta.reduceRight===u){if(wa)ua=da.bind(ua,wa);return xa?ta.reduceRight(ua,va):ta.reduceRight(ua);}var ya=ta.length;if(ya!==+ya){var za=da.keys(ta);ya=za.length;}ea(ta,function(ab,bb,cb){bb=za?za[--ya]:--ya;if(!xa){va=ta[bb];xa=true;}else va=ua.call(wa,va,ta[bb],bb,cb);});if(!xa)throw new TypeError(fa);return va;};da.find=da.detect=function(ta,ua,va){var wa;ga(ta,function(xa,ya,za){if(ua.call(va,xa,ya,za)){wa=xa;return true;}});return wa;};da.filter=da.select=function(ta,ua,va){var wa=[];if(ta==null)return wa;if(v&&ta.filter===v)return ta.filter(ua,va);ea(ta,function(xa,ya,za){if(ua.call(va,xa,ya,za))wa.push(xa);});return wa;};da.reject=function(ta,ua,va){return da.filter(ta,function(wa,xa,ya){return !ua.call(va,wa,xa,ya);},va);};da.every=da.all=function(ta,ua,va){ua||(ua=da.identity);var wa=true;if(ta==null)return wa;if(w&&ta.every===w)return ta.every(ua,va);ea(ta,function(xa,ya,za){if(!(wa=wa&&ua.call(va,xa,ya,za)))return i;});return !!wa;};var ga=da.some=da.any=function(ta,ua,va){ua||(ua=da.identity);var wa=false;if(ta==null)return wa;if(x&&ta.some===x)return ta.some(ua,va);ea(ta,function(xa,ya,za){if(wa||(wa=ua.call(va,xa,ya,za)))return i;});return !!wa;};da.contains=da.include=function(ta,ua){if(ta==null)return false;if(y&&ta.indexOf===y)return ta.indexOf(ua)!=-1;return ga(ta,function(va){return va===ua;});};da.invoke=function(ta,ua){var va=n.call(arguments,2),wa=da.isFunction(ua);return da.map(ta,function(xa){return (wa?ua:xa[ua]).apply(xa,va);});};da.pluck=function(ta,ua){return da.map(ta,function(va){return va[ua];});};da.where=function(ta,ua,va){if(da.isEmpty(ua))return va?void 0:[];return da[va?'find':'filter'](ta,function(wa){for(var xa in ua)if(ua[xa]!==wa[xa])return false;return true;});};da.findWhere=function(ta,ua){return da.where(ta,ua,true);};da.max=function(ta,ua,va){if(!ua&&da.isArray(ta)&&ta[0]===+ta[0]&&ta.length<65535)return Math.max.apply(Math,ta);if(!ua&&da.isEmpty(ta))return -Infinity;var wa={computed:-Infinity,value:-Infinity};ea(ta,function(xa,ya,za){var ab=ua?ua.call(va,xa,ya,za):xa;ab>wa.computed&&(wa={value:xa,computed:ab});});return wa.value;};da.min=function(ta,ua,va){if(!ua&&da.isArray(ta)&&ta[0]===+ta[0]&&ta.length<65535)return Math.min.apply(Math,ta);if(!ua&&da.isEmpty(ta))return Infinity;var wa={computed:Infinity,value:Infinity};ea(ta,function(xa,ya,za){var ab=ua?ua.call(va,xa,ya,za):xa;ab<wa.computed&&(wa={value:xa,computed:ab});});return wa.value;};da.shuffle=function(ta){var ua,va=0,wa=[];ea(ta,function(xa){ua=da.random(va++);wa[va-1]=wa[ua];wa[ua]=xa;});return wa;};da.sample=function(ta,ua,va){if(arguments.length<2||va)return ta[da.random(ta.length-1)];return da.shuffle(ta).slice(0,Math.max(0,ua));};var ha=function(ta){return da.isFunction(ta)?ta:function(ua){return ua[ta];};};da.sortBy=function(ta,ua,va){var wa=ha(ua);return da.pluck(da.map(ta,function(xa,ya,za){return {value:xa,index:ya,criteria:wa.call(va,xa,ya,za)};}).sort(function(xa,ya){var za=xa.criteria,ab=ya.criteria;if(za!==ab){if(za>ab||za===void 0)return 1;if(za<ab||ab===void 0)return -1;}return xa.index-ya.index;}),'value');};var ia=function(ta){return function(ua,va,wa){var xa={},ya=va==null?da.identity:ha(va);ea(ua,function(za,ab){var bb=ya.call(wa,za,ab,ua);ta(xa,bb,za);});return xa;};};da.groupBy=ia(function(ta,ua,va){(da.has(ta,ua)?ta[ua]:(ta[ua]=[])).push(va);});da.indexBy=ia(function(ta,ua,va){ta[ua]=va;});da.countBy=ia(function(ta,ua){da.has(ta,ua)?ta[ua]++:ta[ua]=1;});da.sortedIndex=function(ta,ua,va,wa){va=va==null?da.identity:ha(va);var xa=va.call(wa,ua),ya=0,za=ta.length;while(ya<za){var ab=(ya+za)>>>1;va.call(wa,ta[ab])<xa?ya=ab+1:za=ab;}return ya;};da.toArray=function(ta){if(!ta)return [];if(da.isArray(ta))return n.call(ta);if(ta.length===+ta.length)return da.map(ta,da.identity);return da.values(ta);};da.size=function(ta){if(ta==null)return 0;return (ta.length===+ta.length)?ta.length:da.keys(ta).length;};da.first=da.head=da.take=function(ta,ua,va){if(ta==null)return void 0;return (ua==null)||va?ta[0]:n.call(ta,0,ua);};da.initial=function(ta,ua,va){return n.call(ta,0,ta.length-((ua==null)||va?1:ua));};da.last=function(ta,ua,va){if(ta==null)return void 0;if((ua==null)||va){return ta[ta.length-1];}else return n.call(ta,Math.max(ta.length-ua,0));};da.rest=da.tail=da.drop=function(ta,ua,va){return n.call(ta,(ua==null)||va?1:ua);};da.compact=function(ta){return da.filter(ta,da.identity);};var ja=function(ta,ua,va){if(ua&&da.every(ta,da.isArray))return o.apply(va,ta);ea(ta,function(wa){if(da.isArray(wa)||da.isArguments(wa)){ua?m.apply(va,wa):ja(wa,ua,va);}else va.push(wa);});return va;};da.flatten=function(ta,ua){return ja(ta,ua,[]);};da.without=function(ta){return da.difference(ta,n.call(arguments,1));};da.uniq=da.unique=function(ta,ua,va,wa){if(da.isFunction(ua)){wa=va;va=ua;ua=false;}var xa=va?da.map(ta,va,wa):ta,ya=[],za=[];ea(xa,function(ab,bb){if(ua?(!bb||za[za.length-1]!==ab):!da.contains(za,ab)){za.push(ab);ya.push(ta[bb]);}});return ya;};da.union=function(){return da.uniq(da.flatten(arguments,true));};da.intersection=function(ta){var ua=n.call(arguments,1);return da.filter(da.uniq(ta),function(va){return da.every(ua,function(wa){return da.indexOf(wa,va)>=0;});});};da.difference=function(ta){var ua=o.apply(j,n.call(arguments,1));return da.filter(ta,function(va){return !da.contains(ua,va);});};da.zip=function(){var ta=da.max(da.pluck(arguments,"length").concat(0)),ua=new Array(ta);for(var va=0;va<ta;va++)ua[va]=da.pluck(arguments,''+va);return ua;};da.object=function(ta,ua){if(ta==null)return {};var va={};for(var wa=0,xa=ta.length;wa<xa;wa++)if(ua){va[ta[wa]]=ua[wa];}else va[ta[wa][0]]=ta[wa][1];return va;};da.indexOf=function(ta,ua,va){if(ta==null)return -1;var wa=0,xa=ta.length;if(va)if(typeof va=='number'){wa=(va<0?Math.max(0,xa+va):va);}else{wa=da.sortedIndex(ta,ua);return ta[wa]===ua?wa:-1;}if(y&&ta.indexOf===y)return ta.indexOf(ua,va);for(;wa<xa;wa++)if(ta[wa]===ua)return wa;return -1;};da.lastIndexOf=function(ta,ua,va){if(ta==null)return -1;var wa=va!=null;if(z&&ta.lastIndexOf===z)return wa?ta.lastIndexOf(ua,va):ta.lastIndexOf(ua);var xa=(wa?va:ta.length);while(xa--)if(ta[xa]===ua)return xa;return -1;};da.range=function(ta,ua,va){if(arguments.length<=1){ua=ta||0;ta=0;}va=arguments[2]||1;var wa=Math.max(Math.ceil((ua-ta)/va),0),xa=0,ya=new Array(wa);while(xa<wa){ya[xa++]=ta;ta+=va;}return ya;};var ka=function(){};da.bind=function(ta,ua){var va,wa;if(ca&&ta.bind===ca)return ca.apply(ta,n.call(arguments,1));if(!da.isFunction(ta))throw new TypeError();va=n.call(arguments,2);return wa=function(){if(!(this instanceof wa))return ta.apply(ua,va.concat(n.call(arguments)));ka.prototype=ta.prototype;var xa=new ka();ka.prototype=null;var ya=ta.apply(xa,va.concat(n.call(arguments)));if(Object(ya)===ya)return ya;return xa;};};da.partial=function(ta){var ua=n.call(arguments,1);return function(){return ta.apply(this,ua.concat(n.call(arguments)));};};da.bindAll=function(ta){var ua=n.call(arguments,1);if(ua.length===0)throw new Error("bindAll must be passed function names");ea(ua,function(va){ta[va]=da.bind(ta[va],ta);});return ta;};da.memoize=function(ta,ua){var va={};ua||(ua=da.identity);return function(){var wa=ua.apply(this,arguments);return da.has(va,wa)?va[wa]:(va[wa]=ta.apply(this,arguments));};};da.delay=function(ta,ua){var va=n.call(arguments,2);return setTimeout(function(){return ta.apply(null,va);},ua);};da.defer=function(ta){return da.delay.apply(da,[ta,1].concat(n.call(arguments,1)));};da.throttle=function(ta,ua,va){var wa,xa,ya,za=null,ab=0;va||(va={});var bb=function(){ab=va.leading===false?0:new Date();za=null;ya=ta.apply(wa,xa);};return function(){var cb=new Date();if(!ab&&va.leading===false)ab=cb;var db=ua-(cb-ab);wa=this;xa=arguments;if(db<=0){clearTimeout(za);za=null;ab=cb;ya=ta.apply(wa,xa);}else if(!za&&va.trailing!==false)za=setTimeout(bb,db);return ya;};};da.debounce=function(ta,ua,va){var wa,xa,ya,za,ab;return function(){ya=this;xa=arguments;za=new Date();var bb=function(){var db=(new Date())-za;if(db<ua){wa=setTimeout(bb,ua-db);}else{wa=null;if(!va)ab=ta.apply(ya,xa);}},cb=va&&!wa;if(!wa)wa=setTimeout(bb,ua);if(cb)ab=ta.apply(ya,xa);return ab;};};da.once=function(ta){var ua=false,va;return function(){if(ua)return va;ua=true;va=ta.apply(this,arguments);ta=null;return va;};};da.wrap=function(ta,ua){return function(){var va=[ta];m.apply(va,arguments);return ua.apply(this,va);};};da.compose=function(){var ta=arguments;return function(){var ua=arguments;for(var va=ta.length-1;va>=0;va--)ua=[ta[va].apply(this,ua)];return ua[0];};};da.after=function(ta,ua){return function(){if(--ta<1)return ua.apply(this,arguments);};};da.keys=ba||function(ta){if(ta!==Object(ta))throw new TypeError('Invalid object');var ua=[];for(var va in ta)if(da.has(ta,va))ua.push(va);return ua;};da.values=function(ta){var ua=da.keys(ta),va=ua.length,wa=new Array(va);for(var xa=0;xa<va;xa++)wa[xa]=ta[ua[xa]];return wa;};da.pairs=function(ta){var ua=da.keys(ta),va=ua.length,wa=new Array(va);for(var xa=0;xa<va;xa++)wa[xa]=[ua[xa],ta[ua[xa]]];return wa;};da.invert=function(ta){var ua={},va=da.keys(ta);for(var wa=0,xa=va.length;wa<xa;wa++)ua[ta[va[wa]]]=va[wa];return ua;};da.functions=da.methods=function(ta){var ua=[];for(var va in ta)if(da.isFunction(ta[va]))ua.push(va);return ua.sort();};da.extend=function(ta){ea(n.call(arguments,1),function(ua){if(ua)for(var va in ua)ta[va]=ua[va];});return ta;};da.pick=function(ta){var ua={},va=o.apply(j,n.call(arguments,1));ea(va,function(wa){if(wa in ta)ua[wa]=ta[wa];});return ua;};da.omit=function(ta){var ua={},va=o.apply(j,n.call(arguments,1));for(var wa in ta)if(!da.contains(va,wa))ua[wa]=ta[wa];return ua;};da.defaults=function(ta){ea(n.call(arguments,1),function(ua){if(ua)for(var va in ua)if(ta[va]===void 0)ta[va]=ua[va];});return ta;};da.clone=function(ta){if(!da.isObject(ta))return ta;return da.isArray(ta)?ta.slice():da.extend({},ta);};da.tap=function(ta,ua){ua(ta);return ta;};var la=function(ta,ua,va,wa){if(ta===ua)return ta!==0||1/ta==1/ua;if(ta==null||ua==null)return ta===ua;if(ta instanceof da)ta=ta._wrapped;if(ua instanceof da)ua=ua._wrapped;var xa=p.call(ta);if(xa!=p.call(ua))return false;switch(xa){case '[object String]':return ta==String(ua);case '[object Number]':return ta!=+ta?ua!=+ua:(ta==0?1/ta==1/ua:ta==+ua);case '[object Date]':case '[object Boolean]':return +ta==+ua;case '[object RegExp]':return ta.source==ua.source&&ta.global==ua.global&&ta.multiline==ua.multiline&&ta.ignoreCase==ua.ignoreCase;}if(typeof ta!='object'||typeof ua!='object')return false;var ya=va.length;while(ya--)if(va[ya]==ta)return wa[ya]==ua;var za=ta.constructor,ab=ua.constructor;if(za!==ab&&!(da.isFunction(za)&&(za instanceof za)&&da.isFunction(ab)&&(ab instanceof ab)))return false;va.push(ta);wa.push(ua);var bb=0,cb=true;if(xa=='[object Array]'){bb=ta.length;cb=bb==ua.length;if(cb)while(bb--)if(!(cb=la(ta[bb],ua[bb],va,wa)))break;}else{for(var db in ta)if(da.has(ta,db)){bb++;if(!(cb=da.has(ua,db)&&la(ta[db],ua[db],va,wa)))break;}if(cb){for(db in ua)if(da.has(ua,db)&&!(bb--))break;cb=!bb;}}va.pop();wa.pop();return cb;};da.isEqual=function(ta,ua){return la(ta,ua,[],[]);};da.isEmpty=function(ta){if(ta==null)return true;if(da.isArray(ta)||da.isString(ta))return ta.length===0;for(var ua in ta)if(da.has(ta,ua))return false;return true;};da.isElement=function(ta){return !!(ta&&ta.nodeType===1);};da.isArray=aa||function(ta){return p.call(ta)=='[object Array]';};da.isObject=function(ta){return ta===Object(ta);};ea(['Arguments','Function','String','Number','Date','RegExp'],function(ta){da['is'+ta]=function(ua){return p.call(ua)=='[object '+ta+']';};});if(!da.isArguments(arguments))da.isArguments=function(ta){return !!(ta&&da.has(ta,'callee'));};if(typeof(/./)!=='function')da.isFunction=function(ta){return typeof ta==='function';};da.isFinite=function(ta){return isFinite(ta)&&!isNaN(parseFloat(ta));};da.isNaN=function(ta){return da.isNumber(ta)&&ta!=+ta;};da.isBoolean=function(ta){return ta===true||ta===false||p.call(ta)=='[object Boolean]';};da.isNull=function(ta){return ta===null;};da.isUndefined=function(ta){return ta===void 0;};da.has=function(ta,ua){return q.call(ta,ua);};da.noConflict=function(){g._=h;return this;};da.identity=function(ta){return ta;};da.times=function(ta,ua,va){var wa=Array(Math.max(0,ta));for(var xa=0;xa<ta;xa++)wa[xa]=ua.call(va,xa);return wa;};da.random=function(ta,ua){if(ua==null){ua=ta;ta=0;}return ta+Math.floor(Math.random()*(ua-ta+1));};var ma={escape:{'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#x27;'}};ma.unescape=da.invert(ma.escape);var na={escape:new RegExp('['+da.keys(ma.escape).join('')+']','g'),unescape:new RegExp('('+da.keys(ma.unescape).join('|')+')','g')};da.each(['escape','unescape'],function(ta){da[ta]=function(ua){if(ua==null)return '';return (''+ua).replace(na[ta],function(va){return ma[ta][va];});};});da.result=function(ta,ua){if(ta==null)return void 0;var va=ta[ua];return da.isFunction(va)?va.call(ta):va;};da.mixin=function(ta){ea(da.functions(ta),function(ua){var va=da[ua]=ta[ua];da.prototype[ua]=function(){var wa=[this._wrapped];m.apply(wa,arguments);return sa.call(this,va.apply(da,wa));};});};var oa=0;da.uniqueId=function(ta){var ua=++oa+'';return ta?ta+ua:ua;};da.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var pa=/(.)^/,qa={"'":"'",'\\':'\\','\r':'r','\n':'n','\t':'t','\u2028':'u2028','\u2029':'u2029'},ra=/\\|'|\r|\n|\t|\u2028|\u2029/g;da.template=function(ta,ua,va){var wa;va=da.defaults({},va,da.templateSettings);var xa=new RegExp([(va.escape||pa).source,(va.interpolate||pa).source,(va.evaluate||pa).source].join('|')+'|$','g'),ya=0,za="__p+='";ta.replace(xa,function(cb,db,eb,fb,gb){za+=ta.slice(ya,gb).replace(ra,function(hb){return '\\'+qa[hb];});if(db)za+="'+\n((__t=("+db+"))==null?'':_.escape(__t))+\n'";if(eb)za+="'+\n((__t=("+eb+"))==null?'':__t)+\n'";if(fb)za+="';\n"+fb+"\n__p+='";ya=gb+cb.length;return cb;});za+="';\n";if(!va.variable)za='with(obj||{}){\n'+za+'}\n';za="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+za+"return __p;\n";try{wa=new Function(va.variable||'obj','_',za);}catch(ab){ab.source=za;throw ab;}if(ua)return wa(ua,da);var bb=function(cb){return wa.call(this,cb,da);};bb.source='function('+(va.variable||'obj')+'){\n'+za+'}';return bb;};da.chain=function(ta){return da(ta).chain();};var sa=function(ta){return this._chain?da(ta).chain():ta;};da.mixin(da);ea(['pop','push','reverse','shift','sort','splice','unshift'],function(ta){var ua=j[ta];da.prototype[ta]=function(){var va=this._wrapped;ua.apply(va,arguments);if((ta=='shift'||ta=='splice')&&va.length===0)delete va[0];return sa.call(this,va);};});ea(['concat','join','slice'],function(ta){var ua=j[ta];da.prototype[ta]=function(){return sa.call(this,ua.apply(this._wrapped,arguments));};});da.extend(da.prototype,{chain:function(){this._chain=true;return this;},value:function(){return this._wrapped;}});}).call(this);},null);
  __d("AdsUtils",["Assert","underscore.ads"],function(a,b,c,d,e,f,g,h){function i(ba){return ba===Object(ba);}function j(ba,ca){if(Array.isArray(ba)||typeof ba==='string')return ba.indexOf(ca)!==-1;return ca in ba;}function k(ba){if(Array.isArray(ba)||typeof ba==='string')return ba.length;return i(ba)?Object.keys(ba).length:0;}function l(ba,ca){if(ba.length!=ca.length){return false;}else{for(var da=0;da<ba.length;da++){var ea=false;for(var fa=0;fa<ca.length;fa++){var ga=true,ha=Object.keys(ba[da]);for(var ia=0;ia<ha.length;ia++){var ja=ha[ia];if(ba[da][ja]!=ca[fa][ja]){ga=false;break;}}if(ga)ea=true;}if(!ea)return false;}return true;}}function m(ba,ca,da){var ea={};for(var fa=0;fa<ba.length;++fa)ea[ba[fa][ca]]=(da===(void 0)?ba[fa]:ba[fa][da]);return ea;}function n(ba,ca){var da={};for(var ea=0;ea<ba.length;++ea){if(da[ba[ea][ca]]===(void 0))da[ba[ea][ca]]=[];da[ba[ea][ca]].push(ba[ea]);}return da;}function o(ba){var ca={};Object.keys(ba).forEach(function(da){return ca[ba[da]]=da;});return ca;}function p(ba,ca){var da={};Object.keys(ba).forEach(function(ea){da[ea]=ba[ea]?ba[ea][ca]:(void 0);});return da;}function q(ba){var ca=ba;if(Array.isArray(ba)){ca=ba.map(q);}else if(i(ba)){ca={};Object.keys(ba).forEach(function(da){return ca[da]=q(ba[da]);});}return ca;}function r(ba){return ba.replace(/([a-z])([A-Z])/g,'$1_$2').toLowerCase();}function s(ba){return ba.replace(/_[a-z]/g,function(ca){return ca.charAt(1).toUpperCase();});}function t(ba,ca){g.define('scalar',function(fa){return typeof fa==='number'||typeof fa==='boolean';});g.isScalar(ca);var da={};for(var ea=0;ea<ba.length;++ea)da[ba[ea]]=ca;return da;}function u(ba,ca,da){var ea={},fa=h.union(Object.keys(ba),Object.keys(ca));for(var ga=0;ga<fa.length;ga++){var ha=fa[ga],ia=da(ba.hasOwnProperty(ha),ca.hasOwnProperty(ha));if(ia<0){ea[ha]=ba[ha];}else if(ia>0)ea[ha]=ca[ha];}return ea;}function v(ba,ca){return u(ba,ca,function(da,ea){return da&&ea?-1:0;});}function w(ba,ca){return u(ba,ca,function(da,ea){return da?-1:1;});}var x=function(ba,ca,da,ea){ea=ea||(function(ha,ia){return ha==ia;});if(ba.length===0)return da;var fa=ca(ba[0]),ga=!ba.some(function(ha){return !ea(ca(ha),fa);});if(ga){return fa;}else return da;};function y(ba,ca){if(Array.isArray(ba)&&Array.isArray(ca)){if(ba.length!==ca.length)return false;for(var da=0;da<ba.length;++da)if(!y(ba[da],ca[da]))return false;return true;}if(i(ba)&&i(ca)){var ea=Object.keys(ba);for(var fa=0;fa<ea.length;fa++){var ga=ea[fa];if(!ca.hasOwnProperty(ga))return false;if(!y(ba[ga],ca[ga]))return false;}return true;}return ba==ca;}function z(ba){var ca={};Object.keys(ba).forEach(function(da){var ea=s(da);ca[ea]=ba[da];});return ca;}function aa(ba){var ca={};Object.keys(ba).forEach(function(da){var ea=r(da);ca[ea]=ba[da];});return ca;}e.exports={arraysOfMapEquals:l,camelCaseKey:s,camelCaseToUnderscoreKeys:aa,clone:q,contains:j,count:k,flip:o,getSharedValue:x,indexedMap:m,invertedMap:n,isEqualWeak:y,isObject:i,mapFill:t,mapIntersectKey:v,mapUnionKey:w,pluckPreserveKey:p,underscoreKey:r,underscoreToCamelCaseKeys:z};},null);
  __d("AdsCommonTargetingProperties",[],function(a,b,c,d,e,f){var g={ageMax:null,ageMin:null,ageMinLimit:null,behaviors:null,cities:null,countries:null,connections:null,conjunctiveUserAdclusters:null,customAudiences:null,educationMajors:null,educationSchools:null,educationStatuses:null,ethnicAffinity:null,excludedConnections:null,excludedCustomAudiences:null,excludedUserAdclusters:null,exclusions:null,familyStatuses:null,flexibleSpec:null,friendsOfConnections:null,generation:null,homeOwnership:null,homeType:null,homeValue:null,householdComposition:null,income:null,industries:null,interestedIn:null,interests:null,keywords:null,lifeEvents:null,locTargeting:null,locales:null,maxGradYear:null,minAndroidVersion:null,minGradYear:null,minIosVersion:null,mobileDevices:null,mobileOperatingSystem:null,moms:null,netWorth:null,officeType:null,pageTypes:null,politics:null,radiusIfValid:null,relationshipStatuses:null,regions:null,sex:null,syndicatedCustomAudiencesLibrary:null,targetAllGraduationYears:null,userAdclusters:null,userOs:null,wifiOnly:null,workEmployers:null,workPositions:null,zips:null,geoLocations:null,excludedGeoLocations:null};e.exports=g;},null);
  __d("whitelistObjectKeys",[],function(a,b,c,d,e,f){function g(h,i){var j={},k=Array.isArray(i)?i:Object.keys(i);for(var l=0;l<k.length;l++)if(typeof h[k[l]]!=='undefined')j[k[l]]=h[k[l]];return j;}e.exports=g;},null);
  __d("AdsCommonTargetingStore",["AdsCommonTargetingProperties","AdsCommonTargetingActionTypes","AdsDispatcher","AdsUtils","Arbiter","ImmutableObject","copyProperties","merge","whitelistObjectKeys"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';var p='canonical-id',q,r={targetAllGraduationYears:true},s={address_string:'',latitude:0,longitude:0,radius:0};function t(){q={};u(p);}function u(y){q[y]=m({},r);}t();function v(y,z){q[y]=n(q[y],z);}function w(y,z){return (q[z]||{})[y];}var x=m(new k(),{canonicalID:p,clearAllState:t,clearState:u,getState:function(y){return new l(q[y]||{});},getValue:function(y,z){return w(y,z||p);},dispatchToken:i.register(function(y){var z=y.action,aa=z.targetingID||p,ba=false;switch(z.actionType){case h.TARGETING_INIT:u(aa);ba=false;break;case h.TARGETING_SET_FROM_EXTERNAL:case h.TARGETING_CHANGE:v(z.targetingID||p,o(z,g));ba=true;break;}if(ba){var ca=o(z,g);x.inform('change',{payloadsource:y.payloadsource,changedProperties:ca,targetingID:aa});}}),getCustomLocationOrNull:function(y){var z=this.getValue('geoLocations',y);return (z&&z.custom_locations&&z.custom_locations[0])?z.custom_locations[0]:null;},getCompatibleCustomLocationOrDefaultStateForUI:function(y){var z=this.getCustomLocationOrNull(y);if(!z)z=s;return new l(j.underscoreToCamelCaseKeys(z));}});e.exports=x;},null);
  __d("AdsBaseStore",["AdsDispatcher","AdsInformer","Set","uniqueID"],function(a,b,c,d,e,f,g,h,i,j){'use strict';var k=false,l=new i(['AdsCMBaseCombinedStore','AdsCMBaseMetadataStore','AdsCMColumnStore','AdsCMOverviewStatsStore']);function m(){var n=this.getStoreName();this.$AdsBaseStore0=n+'-'+j()+'-';this.$AdsBaseStore1=new i();this.$AdsBaseStore2=null;var o='debug_'+n;if(!a.hasOwnProperty(o))a[o]=this;this.dispatchToken=g.register(this.$AdsBaseStore3.bind(this));}m.prototype.onDispatchToken=function(){};m.prototype.getStoreName=function(){return this.constructor.name;};m.prototype.$AdsBaseStore3=function(n){this.$AdsBaseStore1.clear();this.$AdsBaseStore2=n;this.onDispatchToken(n);};m.prototype.subscribe=function(n,o){return h.subscribe(this.$AdsBaseStore0+n,o);};m.prototype.unsubscribe=function(){h.unsubscribe();};m.prototype.inform=function(n,o){this.$AdsBaseStore1.add(n);h.inform(this.$AdsBaseStore0+n,o);};m.prototype.hasInformedOnPayload=function(n,o){return (this.$AdsBaseStore2===n&&this.$AdsBaseStore1.has(o));};e.exports=m;},null);
  __d("adsDaoUtils",["copyProperties","invariant"],function(a,b,c,d,e,f,g,h){'use strict';var i=1;function j(n,o,p){var q=Object.assign({},n);for(var r in p){if(!n.hasOwnProperty(r))continue;q[r]=k(n[r],o);}return q;}function k(n,o){var p=g({},n),q=['requiredParameters','constantParameters','optionalParameters'];q.forEach(function(r){var s=p[r]||{},t=o[r]||{};h(typeof s=='object');h(typeof t=='object');p[r]=Object.assign({},s,t);});return p;}function l(n,o,p){for(var q in n)if(n.hasOwnProperty(q))s[q]=n[q];var r=n===null?null:n.prototype;s.prototype=Object.create(r);s.prototype.constructor=s;s.__superConstructor__=n;function s(){if(n!==null)n.apply(this,arguments);}Object.assign(s.prototype,o,{dataCommandId:p||i++});var t=['requiredParameters','constantParameters','optionalParameters'];t.forEach(function(u){var v=n.prototype[u]||{},w=o[u]||{};h(typeof v=='object');h(typeof w=='object');s.prototype[u]=Object.assign({},v,w);});return new s();}function m(n){if(typeof n.id==='number')n.id=''+n.id;}e.exports={createDataCommand:l,primeDao:j,transformIdToString:m};},null);
  __d("adsDaoGraphPrimed",["adsDaoUtils"],function(a,b,c,d,e,f,g){f.forAccount=function(h){var i={constantParameters:{accountId:h}};this.fetch=g.primeDao(this.fetch,i,{adgroupsForAccount:true,connectionObjectsForAccount:true,audiencesForAccount:true,adsPixelsForAccount:true,imagesForAccount:true,videosForAccount:true,campaignsForAccount:true,customAudiencesForAccount:true,estimatesForAccount:true,targetingSentencesForAccount:true,accountInfo:true,customCluster:true,bctDataForAccount:true,partnerCategoriesForAccount:true,customaudiencestosForAccount:true,campaignGroupsForAccount:true,reportStatsForAccount:true,reportSpecsForAccount:true,asyncReportById:true,reportAsyncRunsForAccount:true,reportsScheduledForAccount:true,pixelsForAccount:true,pagesForUser:true,appsForUser:true,contactsLists:true,accountStats:true});this.add=g.primeDao(this.add,i,{audiencesImport:true,acceptCustomAudiencesTos:true,createNewSavedTargetSpec:true,imageForAccount:true,updateAccount:true,createCustomAudience:true,createWebRemarketingCustomAudience:true,createAdsPixel:true,createMobileAppRemarketingCustomAudience:true,createMobileAppCombinationCustomAudience:true,reportSpecs:true,scheduleReport:true});this.mutate=g.primeDao(this.mutate,i,{customAudience:true,reportSpecs:true,savedTargetSpec:true,updateAccount:true,reportStatsForAccountAsync:true,updateAsyncReport:true});return this;};f.forBrand=function(h,i){var j={fetch:this.fetch,add:this.add,remove:this.remove,mutate:this.mutate,download:this.download,primedForAccount:this.forAccount,primedForLocale:this.forLocale,primedForBrand:this.forBrand,primedForGeoLocation:this.forGeoLocation},k={constantParameters:{brandID:h,locale:i}};j.fetch=g.primeDao(this.fetch,k,{appsForBrand:true,brandInfo:true,pagesForBrand:true,adaccountsForBrand:true,productCatalogsForBrand:true,agenciesForBrand:true,clientsForBrand:true,fundingSourcesForBrand:true,projectsForBrand:true,userPermissionsForAccount:true,userPermissionsForPage:true,userPermissionsForBrand:true,businessSettingLogForObject:true,userPermissionsForApp:true});j.add=g.primeDao(this.add,k,{addPagesToBrand:true,addAccountsToBrand:true,acceptAgencyAdAccountPermRequest:true,acceptAgencyPagePermRequest:true,createAdAccount:true,createProductCatalog:true,createProjectForBrand:true,createSystemUserForBrand:true,updateBrand:true,updateBrandUserPermission:true});j.remove=g.primeDao(this.remove,k,{removePagePermission:true,pagesForBrand:true,accountsForBrand:true,systemUsersForBrand:true,removeAgency:true,removeClient:true,removeAgencyPagePermission:true,removeAgencyAdAccountPermission:true});j.mutate=g.primeDao(this.mutate,k,{brandPersona:true});return j;};f.forLocale=function(h){var i={constantParameters:{locale:h}};this.add=g.primeDao(this.add,i,{createLookalikeCluster:true,createActionsLookalike:true});this.fetch=g.primeDao(this.fetch,i,{adgroupForCF:true,adsDestinationInfo:true,bctDataForAccount:true,adTargetingCategory:true,partnerCategoriesForAccount:true,countries:true,estimatesForAccount:true,estimatesForAdgroup:true,geolocation:true,languages:true,reportStatsForAccount:true,targetingSentencesForAccount:true});this.download=g.primeDao(this.download,i,{reportStatsForAccount:true});return this;};},null);
  __d("AdsDaoDataPlan",["emptyFunction","invariant"],function(a,b,c,d,e,f,g,h){var i={fetch:true,thenFetch:true};function j(m,n){var o=n;for(var p=0;p<m.length;++p){var q=m[p];if(o&&o[q]){o=o[q];}else return (void 0);}return o;}function k(m,n,o){var p,q;for(var r=0;r<m.length;++r){q=m[r];if(!n[q])n[q]={};p=n;n=n[q];}if(p&&q)p[q]=o;}var l={create:function(m){for(var n in m)h(l.isValidPlan(m[n]));return m;},execute:function(m,n,o){var p={},q={};l.executeCompoundPlan(m,[],q,function(r){n(r,p);},function(r){o&&o(r);},p);},executeCompoundPlan:function(m,n,o,p,q,r){var s=Object.keys(m).length;if(s===0)p(o);var t=function(w,x){if(r&&r[w]){var y=r[w];y.latency=Date.now()-y.startTime;if(x)y.subplans=x;}if(--s===0)p(o);},u=function(w){q&&q(w);};for(var v in m){if(r)r[v]={startTime:Date.now()};l.executeSubPlan(v,m[v],n.concat(v),o,t,u);}},executeSubPlan:function(m,n,o,p,q,r){if(l.isTerminalPlan(n)){l.executeTerminalPlan(n,o,p,function(t){l.set(o,t)(p);q(m);},function(t){r&&r(t);});}else{if(!l.evaluateCondition(n,p)){q(m);return;}var s={};l.executeCompoundPlan(n.fetch,o,p,function(){if(n.thenFetch){l.executeCompoundPlan(n.thenFetch,o,p,function(){q(m,s);},function(t){r&&r(t);},s);}else q(m,s);},function(t){r&&r(t);},s);}},executeTerminalPlan:function(m,n,o,p,q){if(!l.evaluateCondition(m,o)){p((void 0));return;}var r=l.evaluateParameters(m,o),s,t=function(u,v){q&&q({plan:m,path:n,partialResult:o,error:u,rawData:v});};if(m.blocking===false){s=g;p((void 0));}else s=function(u){var v=m.thenDo||g.thatReturnsArgument;p(v(u));};l.evaluateCommand(m,r,s,t);},isValidPlan:function(m){if(l.isTerminalPlan(m))return true;for(var n in i)if(m[n]&&!l.isValidPlan(m[n]))return false;return true;},isTerminalPlan:function(m){return m.command&&!m.fetch;},evaluateCondition:function(m,n){if(!m.hasOwnProperty('when'))return true;var o=m.when;if(typeof o==='function')return o(n);return o;},evaluateParameters:function(m,n){var o=m.parameters;if(!o)return {};var p={};for(var q in o){var r=o[q];p[q]=(typeof r==='function'?r(n):r);}return p;},evaluateCommand:function(m,n,o,p){var q=m.command;if(!q){o((void 0));return;}if(p)n.handleError=p;if(typeof q==='function'){q(o,n);}else if(m.multi){q.multi(o,n);}else q.one(o,n);},futureIndexOf:function(m,n){return function(o){var p=m(o);return p&&p[n];};},get:function(m){return function(n){return j(m.split('.'),n);};},set:function(m,n){return function(o){return k(m,o,n);};},not:function(m){if(typeof m==='function')return function(n){return !m(n);};return !m;}};e.exports=l;},null);
  __d("AdsDaoEvents",["Arbiter"],function(a,b,c,d,e,f,g){'use strict';f.Arbiter=new g();f.ArbiterEvents={ERROR:'ads_dao_arbiter_error_event'};},null);
  __d("AdsDaoResult",[],function(a,b,c,d,e,f){var g={SUCCESS:1,NO_RESULT_RETURNED:2,RESULT_HAS_ERROR:3};e.exports=g;},null);
  __d("adsDaoCaching",["AdsUtils","Assert"],function(a,b,c,d,e,f,g,h){'use strict';function i(n){var o=Object.keys(n).sort(),p={};for(var q=0;q<o.length;++q){var r=o[q];p[r]=typeof n[r]==='number'?''+n[r]:n[r];}return JSON.stringify(p);}function j(){}j.prototype.isCached=function(){return false;};j.prototype.getCache=function(){return null;};j.prototype.setCache=function(){return null;};j.prototype.invalidateCache=function(){return null;};j.prototype.clear=function(){return null;};for(var k in j)if(j.hasOwnProperty(k))m[k]=j[k];var l=j===null?null:j.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=j;function m(){this.$InMemoryCacheMechanism0={};}m.prototype.isCached=function(n,o){return !!this.getCache(n,o);};m.prototype.getCache=function(n,o){var p=this.$InMemoryCacheMechanism1(n),q=this.$InMemoryCacheMechanism2(n,o);return p.hasOwnProperty(q)&&p[q];};m.prototype.setCache=function(n,o,p){var q=this.$InMemoryCacheMechanism1(n);q[this.$InMemoryCacheMechanism2(n,o)]=p;};m.prototype.invalidateCache=function(n,o){n.conflictDataCommands.forEach(function(p){delete this.$InMemoryCacheMechanism0[this.$InMemoryCacheMechanism3(p)];},this);};m.prototype.clear=function(n){delete this.$InMemoryCacheMechanism0[n.dataCommandId];};m.prototype.$InMemoryCacheMechanism1=function(n,o){var p=this.$InMemoryCacheMechanism3(n);if(!this.$InMemoryCacheMechanism0[p])this.$InMemoryCacheMechanism0[p]={};h.isTruthy(this.$InMemoryCacheMechanism0[p],'Cache bucket is null even after initialization');return this.$InMemoryCacheMechanism0[p];};m.prototype.$InMemoryCacheMechanism3=function(n){return n.dataCommandId;};m.prototype.$InMemoryCacheMechanism2=function(n,o){var p=this.$InMemoryCacheMechanism4(n,o);return i(p);};m.prototype.$InMemoryCacheMechanism4=function(n,o){var p=Object.assign({},n.requiredParameters,n.optionalParameters);return g.mapIntersectKey(o,p);};e.exports={BaseCacheMechanism:j,InMemoryCacheMechanism:m};},null);
  __d("AdsDao",["AdsDaoDataPlan","AdsDaoEvents","AdsDaoResult","Arbiter","Promise","adsDaoCaching","emptyFunction","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';var o=h.Arbiter,p=h.ArbiterEvents,q=l.BaseCacheMechanism,r=function(aa,ba,ca){var da={parameters:aa,rawData:ba};if(ca)da.commandName=ca;o.inform(p.ERROR,da,j.BEHAVIOR_EVENT);};function s(aa){this.$TransformParameterValue0=aa||m.thatReturnsNull;}s.prototype.transformParameterValue=function(aa){return this.$TransformParameterValue0(aa);};function t(){this.$RequestQueue0=[];}t.prototype.addRequest=function(aa){this.$RequestQueue0.push(aa);};t.prototype.fireCallbacks=function(aa){for(var ba=0;ba<this.$RequestQueue0.length;++ba)this.$RequestQueue0[ba].callback(aa);this.$RequestQueue0=[];};function u(){}u.prototype.handleError=function(){n(false);};u.prototype.execute=function(){return null;};u.prototype.one=function(aa,ba){this.execute(aa,this.$DataCommand0(ba));};u.prototype.promiseOne=function(aa){return new k(function(ba,ca){function da(ea,fa,ga){ca({result:ea,rawData:fa,actualParameters:ga});}this.one(ba,Object.assign(aa||{},{handleError:da}));}.bind(this));};u.prototype.multi=function(aa,ba){var ca=ba.requests,da=ca.length;if(da===0)aa&&aa();var ea=function(){if(--da===0)aa&&aa();};ca.forEach(function(fa){var ga=function(ha){fa.callback&&fa.callback(ha);ea();};this.one(ga,fa.parameters);},this);};u.prototype.clearCache=function(){this.cacheMechanism.clear(this);};u.prototype.isCached=function(aa){return this.cacheMechanism.isCached(this,aa);};u.prototype.getCache=function(aa){return this.cacheMechanism.getCache(this,aa);};u.prototype.setCache=function(aa,ba){this.cacheMechanism.setCache(this,aa,ba);};u.prototype.invalidateCache=function(aa){var ba=this.getCache(aa);if(!(ba instanceof t))this.cacheMechanism.invalidateCache(this,aa);};u.prototype.$DataCommand0=function(aa){aa=aa||{};var ba=Object.assign({},this.constantParameters,aa);this.$DataCommand1(ba);this.$DataCommand2(ba);return ba;};u.prototype.unittest__verifyParameters=function(aa){this.$DataCommand1(aa);};u.prototype.$DataCommand1=function(aa){for(var ba in this.requiredParameters)n(aa[ba]!=null);};u.prototype.$DataCommand2=function(aa){for(var ba in aa){var ca=aa[ba];if(ca instanceof s)aa[ba]=ca.transformParameterValue(aa);}};Object.assign(u.prototype,{constantParameters:{},requiredParameters:{},optionalParameters:{handleError:true},cacheMechanism:new q()});for(var v in u)if(u.hasOwnProperty(v))x[v]=u[v];var w=u===null?null:u.prototype;x.prototype=Object.create(w);x.prototype.constructor=x;x.__superConstructor__=u;function x(){if(u!==null)u.apply(this,arguments);}x.prototype.provideData=function(){return null;};x.prototype.validateData=function(){return i.SUCCESS;};x.prototype.processData=function(aa){return aa;};x.prototype.execute=function(aa,ba){var ca=function(da){var ea=this.validateData(da);this.setCache(ba,da);if(ea===i.SUCCESS){aa&&aa(this.processData(da),da);}else{r(ba,da,this.commandName);var fa=ba.handleError||this.handleError;fa.call(this,ea,da,ba);}}.bind(this);if(this.isCached(ba)){this.$DataProvider0(ba,ca);}else this.$DataProvider1(ba,ca);};x.prototype.$DataProvider0=function(aa,ba){var ca=this.getCache(aa);if(ca instanceof t){ca.addRequest({callback:ba});}else setTimeout(function(){ba(ca);},1);};x.prototype.$DataProvider1=function(aa,ba){var ca=new t();ca.addRequest({callback:ba});this.setCache(aa,ca);this.provideData(aa,function(da){ca.fireCallbacks(da);});};for(v in u)if(u.hasOwnProperty(v))y[v]=u[v];y.prototype=Object.create(w);y.prototype.constructor=y;y.__superConstructor__=u;function y(){if(u!==null)u.apply(this,arguments);}y.prototype.downloadData=function(){return null;};y.prototype.execute=function(aa,ba){var ca=function(da){var ea=da;if(ea){aa&&aa(ea);}else{r(ba,da,this.commandName);var fa=ba.handleError||this.handleError;fa.call(this,ea,da);}}.bind(this);this.downloadData(ba,ca);};for(v in u)if(u.hasOwnProperty(v))z[v]=u[v];z.prototype=Object.create(w);z.prototype.constructor=z;z.__superConstructor__=u;function z(){if(u!==null)u.apply(this,arguments);}z.prototype.mutateData=function(){return null;};z.prototype.validateData=function(){return i.SUCCESS;};z.prototype.execute=function(aa,ba){var ca=function(da){var ea=this.validateData(da);if(ea===i.SUCCESS){this.invalidateCache(ba);aa&&aa(da);}else{r(ba,da,this.commandName);var fa=ba.handleError||this.handleError;fa.call(this,ea,da);}}.bind(this);this.mutateData(ba,ca);};Object.assign(z.prototype,{conflictDataCommands:[]});e.exports={DataCommand:u,DataDownloadProvider:y,DataPlan:g,DataProvider:x,DataMutator:z,TransformParameterValue:s};},null);
  __d("AdsDaoGraphSpec",["AdsDaoResult","adsDaoCaching"],function(a,b,c,d,e,f,g,h){var i={requiredParameters:{endpoint:true},optionalParameters:{__after_id:true,after:true,before:true,limit:true,offset:true,version:true},validateData:function(j){if(!j){return g.NO_RESULT_RETURNED;}else if(j.error)return g.RESULT_HAS_ERROR;return g.SUCCESS;},handleError:function(j,k,l){},cacheMechanism:new h.InMemoryCacheMechanism()};e.exports=i;},null);
  __d("AdsDaoGraphAPIConstants",["AdsDaoConfig"],function(a,b,c,d,e,f,g){'use strict';var h='1.0';e.exports={DEFAULT_VERSION:g.graph_api_version||h};},null);
  __d("ads-lib-connect_DEPRECATED",["ApiClient","Arbiter","URI","copyProperties","flattenObject"],function(a,b,c,d,e,f,g,h,i,j,k){var l=j(new h(),{events:{NEW_NETWORK_DATA_AVAILABLE:'newNetworkDataAvailable'},api:function(p){var q={};Array.prototype.slice.call(arguments,1).forEach(function(x){q[typeof x]=x;});var r=q.string,s=q.object,t=q['function'],u=Date.now(),v=function(x){var y=Date.now();m({path:p,method:r,params:s,response:x,start:u,end:y,baseURL:window.location.href});t&&t(x);},w=[p,r,s,v].filter(function(x){return !!x;});g.graph.apply(g,w);},url:function(p,q,r){if(p&&p.substring(0,1)!='/')p='/'+p;q=q||{};q.access_token=r;q=k(q);return i().setPath(p).setSubdomain('graph').setQueryData(q).toString();}});function m(p){l.inform(l.events.NEW_NETWORK_DATA_AVAILABLE,p,h.BEHAVIOR_EVENT);}function n(p){return !p||p.error||p.error_msg;}function o(p){if(!p)return {};return {msg:p.error_msg||(p.error&&(p.error.error_user_msg||p.error.message))||p.error,code:p.error_code||(p.error&&p.error.code),type:p.error_type||(p.error&&p.error.type),subcode:p.error_subcode||(p.error&&p.error.error_subcode)};}f.FB=l;f.getErrorMessage=o;f.isError=n;},null);
  __d("GraphAPICore",["ApiClient","Promise","sdk.URI"],function(a,b,c,d,e,f,g,h,i){'use strict';var j=false,k=function(){},l=[];function m(y){l.push(y);}function n(y,z,aa,ba){return l.some(function(ca){return ca(y,z,aa,ba);});}function o(y){k=y;}function p(){j=true;}function q(){j=false;}function r(y,z,aa,ba,ca,da){if(!ca&&(!j||n(y,z,aa,ba))){g.graph(z,aa,ba,da);}else g.scheduleBatchCall(z,aa,ba,da);}function s(y,z,aa,ba,ca){return new h(function(da,ea){r(y,aa,z,ba,ca,function(fa){if(fa===true&&(z==='post'||z==='delete')){da(true);return;}var ga=t(fa);if(ga){k({name:y,path:aa,method:z,params:ba,error:ga});ea(u(ga));}else{var ha=function(ka){if(ka){var la=new i(ka);return function(){return w(y,la.getPath(),la.getQueryData());};}},ia=ha(fa.paging&&fa.paging.next);if(ia)fa.next=ia;var ja=ha(fa.paging&&fa.paging.previous);if(ja)fa.previous=ja;da(fa);}});});}function t(y){if(y.error)return y.error;if(y.error_code&&y.error_msg)return {message:y.error_msg,code:y.error_code,type:y.error_type,error_subcode:y.error_subcode};return (void 0);}function u(y){var z=new Error(y.message);Object.assign(z,y);return z;}function v(y,z,aa,ba){return s(y,'delete',z,aa,ba);}function w(y,z,aa,ba){return s(y,'get',z,aa,ba);}function x(y,z,aa,ba){return s(y,'post',z,aa,ba);}e.exports={blacklist:m,disableBatching:q,enableBatching:p,promiseDelete:v,promiseGet:w,promisePost:x,setErrorHandler:o};},null);
  __d("GraphAPI",["CurrentLocale","GraphAPICore"],function(a,b,c,d,e,f,g,h){'use strict';function i(o,p,q){this.name=o;this.path=p;this.params=q;}i.prototype.batched=function(){this.batch=true;return this;};i.prototype.get=function(o){o=this.$RequestSpec0(o);return h.promiseGet(this.name,this.path,o,this.batch);};i.prototype.post=function(o){o=this.$RequestSpec0(o);return h.promisePost(this.name,this.path,o,this.batch);};i.prototype.remove=function(o){o=this.$RequestSpec0(o);return h.promiseDelete(this.name,this.path,o,this.batch);};i.prototype.$RequestSpec0=function(o){return Object.assign({locale:g.get()},this.params,o);};for(var j in i)if(i.hasOwnProperty(j))l[j]=i[j];var k=i===null?null:i.prototype;l.prototype=Object.create(k);l.prototype.constructor=l;l.__superConstructor__=i;function l(){if(i!==null)i.apply(this,arguments);}l.prototype.edge=function(o){return new i((this.name+"/"+o),(this.path+"/"+o),this.params);};function m(o){this.version=o;}m.prototype.me=function(){return new l('me',this.$GraphAPI0('/me'));};m.prototype.object=function(o,p){return new l('object:'+o,this.$GraphAPI0('/'+p));};m.prototype.objects=function(o,p){return new i('objects:'+o,this.$GraphAPI0('/'),{ids:p.join(',')});};m.prototype.account=function(o){return new l('adaccount',this.$GraphAPI0('/act_'+o));};m.prototype.search=function(o){return new i('search:'+o,this.$GraphAPI0('/search'),{type:o});};m.prototype.path_DO_NOT_USE=function(o){return new i('path:'+o,this.$GraphAPI0(o));};m.prototype.$GraphAPI0=function(o){return ("/v"+this.version+o);};function n(o){return new m(o);}Object.assign(n,{blacklist:h.blacklist,disableBatching:h.disableBatching,enableBatching:h.enableBatching,setErrorHandler:h.setErrorHandler});e.exports=n;},null);
  __d("adsGKCheck",["AdsCreationConfig","invariant"],function(a,b,c,d,e,f,g){function h(j){return !!g.gk[j];}function i(j,k){g.gk[j]=k;}h.overrideGK=i;e.exports=h;},null);
  __d("adsDaoGraphDataMutator",["AdsDao","AdsDaoGraphSpec","AdsDaoGraphAPIConstants","GraphAPI","adsGKCheck","ads-lib-connect_DEPRECATED"],function(a,b,c,d,e,f,g,h,i,j,k){var l=b('ads-lib-connect_DEPRECATED').FB,m=g.DataMutator;for(var n in m)if(m.hasOwnProperty(n))p[n]=m[n];var o=m===null?null:m.prototype;p.prototype=Object.create(o);p.prototype.constructor=p;p.__superConstructor__=m;function p(){"use strict";if(m!==null)m.apply(this,arguments);}p.prototype.mutateData=function(r,s){"use strict";if(k('ads_dao_api_versioning')){j(r.version||i.DEFAULT_VERSION).path_DO_NOT_USE(r.endpoint).post(r).done(s,function(t){s({error:t});});}else l.api(r.endpoint,'POST',r,s);};Object.assign(p.prototype,h);for(n in m)if(m.hasOwnProperty(n))q[n]=m[n];q.prototype=Object.create(o);q.prototype.constructor=q;q.__superConstructor__=m;function q(){"use strict";if(m!==null)m.apply(this,arguments);}q.prototype.mutateData=function(r,s){"use strict";if(k('ads_dao_api_versioning')){j(r.version||i.DEFAULT_VERSION).path_DO_NOT_USE(r.endpoint).remove(r).done(s,function(t){s({error:t});});}else l.api(r.endpoint,'DELETE',r,s);};Object.assign(q.prototype,h);e.exports={GraphDataMutator:p,GraphDataRemover:q};},null);
  __d("AdsCFAccountFields",["AdsAPIAdAccountFields"],function(a,b,c,d,e,f,g){var h=[g.ACCOUNT_ID,g.ACCOUNT_STATUS,g.AGE,g.AMOUNT_SPENT,g.BUSINESS,g.BUSINESS_COUNTRY_CODE,g.CAPABILITIES,g.CURRENCY,g.DAILY_SPEND_LIMIT,g.FUNDING_SOURCE,g.FUNDING_SOURCE_DETAILS,g.ID,g.IS_PREPAY_ACCOUNT,g.IS_TAX_ID_REQUIRED,g.CAN_CREATE_AD_WITHOUT_TAX_ID,g.MIN_DAILY_BUDGET,g.MOO_DEFAULT_CONVERSION_BID,g.NAME,g.OFFSITE_PIXELS_TOS_ACCEPTED,g.SHOW_CURRENCY_SWAP_WARNING,g.SPEND_CAP,g.TIMEZONE_ID,g.TIMEZONE_OFFSET_HOURS_UTC,g.TOS_ACCEPTED,g.USERS,g.USER_ROLE];e.exports=h;},null);
  __d("AdsAPISpec",["AdsCFAccountFields","AdsCFApiSpecFields","fbt"],function(a,b,c,d,e,f,g,h,i){var j={BCT_FIELDS:{NAME:'name',PARENT_CATEGORY:'parent_category'},BID_INFO_FIELDS:{ACTIONS:55,REACH:44,CLICKS:1,IMPRESSIONS:38},EDUCATION_STATUSES:{ALL:0,HIGH_SCHOOL:1,IN_COLLEGE:2,COLLEGE_GRAD:3},RELATIONSHIP_STATUSES:{ALL:0,SINGLE:1,IN_A_RELATIONSHIP:2,MARRIED:3,ENGAGED:4,UNSPECIFIED:6},LINK_TYPES:{EXTERNAL:1,INTERNAL:2},GENDERS:{ALL:0,MEN:1,WOMEN:2},CREATIVE_FIELDS_MAP:{actor:"To show your ad in News Feed, you need to connect it to a Page. If you don't want your ad to show in News Feed, turn off the News Feed ad format in the creative section.",name:"Please give a name to your ad.",objectId:"Please choose a destination.",linkUrl:"Missing link URL.",type:"What do you want people to see?",title:"Please give your ad a headline.",body:"Please write something about your ad in the text field.",iconImageHash:null,iconImageUrl:null,imageHash:"Please choose an image for your ad.",imageUrl:"Please choose an image for your ad.",urlTags:null,storyId:"Please choose a Page post for your ad.",relatedFanPage:null,autoUpdate:"Please choose a Page post for your ad.",actionSpec:"Missing action spec",linkType:null,viewTags:null,urlOverride:null,coverPhotoId:null,mobileStore:null,mobileStoreContentId:null,applinkSpec:null,mobileProductName:null,callToActionType:null,videoId:"Please choose a video for your ad.",videoThumbnail:null},CREATIVE_FIELDS_OVERRIDE_MAP:{imageList:"Please choose an image for your ad."},CAMPAIGN_FIELDS:['id','accountId','name','startTime','endTime','lifetimeBudget','dailyBudget','campaignStatus'],CAMPAIGN_GROUP_FIELDS:['name','campaign_group_status','objective','updated_time'],ACCOUNT_FOR_BRAND_FIELDS:['id','accountId','account_status','name','business','currency','timezoneName','endAdvertiser','fundingSource','dailySpendLimit','businessCountryCode'],BRAND_FIELDS:['id','name','verticalId','timezoneId','picture.type(square)','primary_page.fields(name, picture, link)','link','created_time','created_by.fields(name, link)','updated_time','updated_by.fields(name, link)','extended_updated_time','two_factor_type'],BRAND_PAGE_FIELDS:['id','name','category','link','picture','access_status','business','likes','access_type','permitted_roles'],BRAND_PROJECT_FIELDS:['id','name','business','creator','created_time'],USER_PAGE_FIELDS:h.USER_PAGE_FIELDS,BRAND_ROLE_FIELDS:['id','name','type','actions'],BRAND_USER_FIELDS:['id','name','link','picture'],BRAND_ACCOUNT_FIELDS:['id','accountId','currency','timezoneId','business','access_status','name','permitted_roles'],BRAND_APP_FIELDS:['id','name','link','icon_url','logo_url','monthly_active_users','daily_active_users_rank','monthly_active_users_rank','access_status','access_type','permitted_roles','picture'],USER_APP_FIELDS:['id','name','link','icon_url','logo_url','monthly_active_users','daily_active_users_rank','monthly_active_users_rank','picture'],CC_FUNDING_SOURCE_FIELDS:['id','first_name','last_name','credit_card_suffix','address','expiration_month','expiration_year','credit_card_type'],EC_FUNDING_SOURCE_FIELDS:['id','currency','balance','max_balance'],PAGE_POST_FIELDS:['message','picture','full_picture','link','name','description','type','call_to_action','is_published'],REPORT_SPEC_FIELDS:['id','accountId','actionsGroupBy','dataColumns','exportColumns','datePreset','filters','timeIncrement','name','sortBy','sortDir','isPresetReport','userReport'],PRICING_FIELDS:['bidType','campaignId','bidInfo','maxBid','impressionControlMap','noShowPercentage','noShowOffset','priority'],TARGETING_FIELDS:['genders','ageMax','ageMin','regions','countries','cities','zips','radius','keywords','interests','connections','excludedConnections','friendsOfConnections','relationshipStatuses','interestedIn','collegeYears','educationStatuses','locales','userAdclusters','conjunctiveUserAdclusters','behaviors','userOs','userDevice','wirelessCarrier','workPositions','familyStatuses','industries','lifeEvents','politics','educationMajors','educationSchools','workEmployers','income','netWorth','homeType','homeOwnership','homeValue','ethnicAffinity','generation','householdComposition','moms','officeType','customAudiences','excludedCustomAudiences','excludedUserAdclusters','pageTypes','geoLocations','excludedGeoLocations','flexibleSpec','exclusions'],GEO_LOCATIONS_FIELDS:['cities','regions','countries','zips'],GEO_LOCATIONS_FIELD:{CITIES:'cities',REGIONS:'regions',COUNTRIES:'countries',ZIPS:'zips'},ADVANCED_TARGETING_FIELDS:['interestedIn','relationshipStatuses','educationStatuses','locales','workNetworks'],ACCOUNT_FIELDS:g,ADGROUP_FIELDS_FOR_CF:['objective','id','account_id','bid_info','bid_type','campaign_id','conversion_specs','creative_ids','impression_control_map','locations','name','targeting','tracking_specs','is_autobid'],OBJECTIVE_FIELDS:['objective'],SAVED_TARGET_SPEC_FIELDS:['audienceId','audienceName','parentAudienceId','accountId','timeUpdatedTimestamp','targetSpec','approximateCount','status','targetingSentenceLines'],USER_ADDRESS_PROPERTIES:['street','street2','city','state','country_code','zip'],ACTIVITY_LOG_FIELDS:['event_type','translated_event_type','actor_id','actor_name','application_id','application_name','action_type','object_id','object_name','object_type','event_time','extra_data','date_time_in_timezone'],CUSTOM_AUDIENCE_FIELDS:['account_id','approximate_count','data_source','delivery_status','description','excluded_custom_audiences','id','included_custom_audiences','lookalike_audience_ids','lookalike_spec','name','operation_status','opt_out_link','permission_for_actions','rule','retention_days','subtype','time_created','time_updated','time_content_updated'],CUSTOM_AUDIENCE_FIELDS_WITH_EXPANSION:['account_id','approximate_count','data_source','delivery_status','description','excluded_custom_audiences.fields(id, rule, retention_days)','id','included_custom_audiences.fields(id, rule, retention_days)','lookalike_audience_ids','lookalike_spec','name','operation_status','opt_out_link','permission_for_actions','rule','retention_days','subtype','time_created','time_updated','time_content_updated'],getAdGroupFieldsForCF:function(){var k=j.ADGROUP_FIELDS_FOR_CF.slice(0);k.push('campaign_group_id');return k;}};e.exports=j;},null);
  __d("AdsCreateFlowQueryLimits",[],function(a,b,c,d,e,f){e.exports={AD_DEST_QUERY_LIMIT:9,AD_KEYWORD_SUGGESTION_QUERY_LIMIT:15,AD_COUNTRY_QUERY_LIMIT:500,TYPEAHEAD_LIMIT:12};},null);
  __d("AdsDaoGraphDataProvider",["AdsDao","AdsDaoGraphAPIConstants","AdsDaoGraphSpec","GraphAPI","Promise","URI","adsGKCheck","ads-lib-connect_DEPRECATED"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=b('ads-lib-connect_DEPRECATED').FB,o=g.DataProvider;for(var p in o)if(o.hasOwnProperty(p))r[p]=o[p];var q=o===null?null:o.prototype;r.prototype=Object.create(q);r.prototype.constructor=r;r.__superConstructor__=o;function r(){"use strict";if(o!==null)o.apply(this,arguments);}r.prototype.provideData=function(s,t){"use strict";if(m('ads_dao_api_versioning')){j(s.version||h.DEFAULT_VERSION).path_DO_NOT_USE(s.endpoint).get(s).done(t,function(u){t({error:u});});}else n.api(s.endpoint,s,t);};r.prototype.processData=function(s){"use strict";return s.data||s;};r.prototype.accumulate=function(s,t,u){"use strict";var v=[],w=0,x=function(y,z,aa){v=v.concat(y);w++;var ba=(u>0)&&(w>=u)||(aa&&aa.summary&&aa.summary.total_count<=v.length);if(z&&!ba){z(x);}else s(v);};this.paged(x,t);};r.prototype.paged=function(s,t){"use strict";var u=this;function v(w,x){return function(y,z){var aa=z.paging&&z.paging.next,ba=l(aa);function ca(da){var ea=Object.assign({},x,ba.getQueryData());u.one(v(da,ea),ea);}w(y,aa?ca:null,z);};}this.one(v(s,t),t);};r.prototype.promiseAccumulate=function(s,t){"use strict";return new k(function(u,v){var w=function(x,y,z){v({result:x,rawData:y,actualParameters:z});};s=Object.assign(s,{handleError:w});this.accumulate(u,s,t);}.bind(this));};Object.assign(r.prototype,i);e.exports=r;},null);
  __d("AdsDestinationTypes",[],function(a,b,c,d,e,f){'use strict';var g={EXTERNAL_WEBPAGE:'external_webpage',PAGE:1,APP:2,EVENT:3,GROUP:4,REVIEW:5,PLACE:6,DOMAIN:7,STATUS:8,PLAN:9,PAGE_AND_PLACE:50,SEARCH:100,ENTER_URL:101,SEARCH_BY_ID:102};e.exports=g;},null);
  __d("adsDaoGraphFetch",["AdsAPISpec","AdsCreateFlowQueryLimits","AdsDao","AdsDaoGraphDataProvider","AdsDestinationTypes","AdsUtils","BizSiteIdentifier.brands","adsDaoCaching","copyProperties","adsDaoUtils","getObjectValues"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=i.TransformParameterValue,s=g.ACCOUNT_FIELDS,t=g.BRAND_FIELDS.map(l.underscoreKey),u=g.USER_APP_FIELDS.map(l.underscoreKey),v=g.BRAND_APP_FIELDS.map(l.underscoreKey),w=g.BRAND_PAGE_FIELDS.map(l.underscoreKey),x=g.PAGE_POST_FIELDS.map(l.underscoreKey),y=g.CAMPAIGN_FIELDS.map(l.underscoreKey),z=g.ACTIVITY_LOG_FIELDS.map(l.underscoreKey),aa={anyIDs:p.createDataCommand(j,{requiredParameters:{ids:true},optionalParameters:{metadata:true,fields:true},constantParameters:{endpoint:'/'}}),picture:p.createDataCommand(j,{requiredParameters:{fbid:true},constantParameters:{endpoint:new r(function(da){return '/'+da.fbid+'/picture';})}}),creativesForAdgroupId:p.createDataCommand(j,{requiredParameters:{adgroupId:true,fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.adgroupId+'/adcreatives';})}}),appEventTypesForApp:p.createDataCommand(j,{requiredParameters:{fbid:true},optionalParameters:{fields:false},constantParameters:{endpoint:new r(function(da){return '/'+da.fbid+'/app_event_types';})}}),adgroupsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{offset:true,limit:true,adgroup_ids:true,include_deleted:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adgroups';})}}),audiencesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/audiences';})}}),audiencesForAccountWithPagination:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{before:true,after:true,limit:true,fields:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/audiences';})},processData:function(da){da.data.forEach(function(ea,fa,ga){ea.isSavedTargetSpec=true;});return da;}}),adsPixelsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adspixels';}),fields:['id','code','last_fired_time']}}),pixel:p.createDataCommand(j,{requiredParameters:{pixelId:true},optionalParameters:{start_time:true,fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pixelId;})}}),pixelInsights:p.createDataCommand(j,{requiredParameters:{pixelId:true},optionalParameters:{start_time:true,fields:true,aggregation:true,event:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pixelId+'/stats';})}}),audienceStatuses:p.createDataCommand(j,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceID+'/statuses';})}}),audienceUsageHistory:p.createDataCommand(j,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceID+'/usage_history';}),fields:['time','action','extra_data']}}),contactsLists:p.createDataCommand(j,{requiredParameters:{accountId:true,third_party_data:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/emailimport';})}}),connectionObjectsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/connectionobjects';}),business_id:(m.getBusinessID()||null),non_business_only:(m.getBusinessID()?null:true)},optionalParameters:{business_id:true,non_business_only:true,offset:true,limit:true},processData:function(da){var ea=da.data.filter(function(fa){return fa.type!==k.DOMAIN;});return o({},da,{data:ea});}}),adConnectedApp:p.createDataCommand(j,{optionalParameters:{act:true,q:true},constantParameters:{endpoint:'/search',type:'adconnectedapp'}}),userInfo:p.createDataCommand(j,{constantParameters:{endpoint:'/me'}}),customaudiencestosForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/customaudiencestos';})}}),customAudiencesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/customaudiences';}),migrations_override:'{"ads_api_graphnode_q4_2014": true}'},optionalParameters:{before:true,after:true,limit:true,fields:true,filtering:true},processData:function(da){return da;}}),audience:p.createDataCommand(j,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceID;}),migrations_override:'{"ads_api_graphnode_q4_2014": true}'}}),savedTargetSpec:p.createDataCommand(j,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceID;})},processData:function(da){da.isSavedTargetSpec=true;return da;}}),adGroupsForCustomaudiences:p.createDataCommand(j,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceId+'/adgroups';}),adgroup_status:['ACTIVE'],fields:['id','name']}}),accountsForAudience:p.createDataCommand(j,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceId+'/adaccounts';})}}),capabilitiesForAudience:p.createDataCommand(j,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.audienceId+'/capabilities';})}}),assignedAdAccountsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/assigned_ad_accounts';})}}),assignedPagesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/assigned_pages';})}}),assignedProductCatalogsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/assigned_product_catalogs';})}}),ownedPagesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/owned_pages';})}}),ownedPageRequestsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/owned_page_requests';})}}),clientPagesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/client_pages';})}}),clientPageRequestsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/client_page_requests';})}}),ownedAdAccountsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/owned_ad_accounts';})}}),ownedAdAccountRequestsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/owned_ad_account_requests';})}}),clientAdAccountsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/client_ad_accounts';})}}),clientAdAccountRequestsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/client_ad_account_requests';})}}),pagesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/pages';}),fields:w}}),appsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/apps';}),fields:v}}),adaccountsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},optionalParameters:{summary:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/adaccounts';})}}),productCatalogsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/product_catalogs';})}}),agenciesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/agencies';})}}),clientsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/clients';})}}),projectsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/businessprojects';}),date_format:'U'}}),projectsForAsset:p.createDataCommand(j,{requiredParameters:{assetID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.assetID+'/businessprojects';}),date_format:'U'}}),fundingSourcesForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/creditcards';})}}),userPermissionsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{business:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/userpermissions';})}}),userPermissionsForPage:p.createDataCommand(j,{requiredParameters:{pageId:true},optionalParameters:{business:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageId+'/userpermissions';})}}),userPermissionsForApp:p.createDataCommand(j,{requiredParameters:{appId:true},optionalParameters:{business:true},constantParameters:{endpoint:new r(function(da){return '/'+da.appId+'/userpermissions';})}}),userPermissionsForProductCatalog:p.createDataCommand(j,{requiredParameters:{productCatalogId:true},optionalParameters:{business:true},constantParameters:{endpoint:new r(function(da){return '/'+da.productCatalogId+'/userpermissions';})}}),userPermissionsForBrand:p.createDataCommand(j,{requiredParameters:{brandID:true},optionalParameters:{user:true,fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID+'/userpermissions';})},processData:function(da){return da.data;}}),pagesForUser:p.createDataCommand(j,{optionalParameters:{fields:true},constantParameters:{endpoint:'/me/accounts',type:'page',limit:100,fields:g.USER_PAGE_FIELDS}}),accountsForUser:p.createDataCommand(j,{optionalParameters:{fields:true},constantParameters:{endpoint:'/me/adaccounts',fields:s}}),businessSettingLogForObject:p.createDataCommand(j,{requiredParameters:{objectId:true},optionalParameters:{business:true,since:true,until:true,limit:true,after:true},constantParameters:{endpoint:new r(function(da){return '/'+da.objectId+'/businesssettinglogs';}),date_format:'U'},processData:function(da){return da.data;}}),pagePostDetails:p.createDataCommand(j,{requiredParameters:{pageId:true,storyId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageId+"_"+da.storyId;}),fields:x}}),objectSearch:p.createDataCommand(j,{requiredParameters:{type:true,q:true},constantParameters:{endpoint:'/search',limit:h.AD_DEST_QUERY_LIMIT},optionalParameters:{fields:true}}),adsDestinationInfo:p.createDataCommand(j,{requiredParameters:{type:true,locale:true},constantParameters:{endpoint:'/search',type:'addestination',limit:h.AD_DEST_QUERY_LIMIT},optionalParameters:{account_id:true,object_id:true,object_url:true,q:true,forceMobileStore:true,use_app_links:true}}),adsEducationSchools:p.createDataCommand(j,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adeducationschool'}}),adsEducationMajors:p.createDataCommand(j,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adeducationmajor'}}),adsWorkEmployers:p.createDataCommand(j,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adworkemployer'}}),adsWorkPosition:p.createDataCommand(j,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adworkposition'}}),pagePromotablePostsForConnectionObject:p.createDataCommand(j,{requiredParameters:{objectId:true},optionalParameters:{is_published:true,until:true},constantParameters:{endpoint:new r(function(da){return '/'+da.objectId+'/promotable_posts';})}}),accessTokenForPage:p.createDataCommand(j,{requiredParameters:{pageId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageId+'/';}),fields:'access_token'}}),rolesOnPage:p.createDataCommand(j,{requiredParameters:{access_token:true,pageId:true,userId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageId+'/admins/'+da.userId;}),version:'2.1'}}),imagesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adimages';})},optionalParameters:{hashes:true}}),videosForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/advideos';})},optionalParameters:{fields:true}}),photosForPage:p.createDataCommand(j,{requiredParameters:{pageID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageID+'/photos/uploaded';}),fields:['height','width','source','picture']},optionalParameters:{limit:true}}),videosForPage:p.createDataCommand(j,{requiredParameters:{pageId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.pageId+'/videos';})},optionalParameters:{fields:true}}),campaignsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{campaign_ids:true,include_completed:true,include_deleted:true,fields:true,limit:true,offset:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adcampaigns';}),fields:y},processData:function(da){var ea={};da.data.forEach(function(fa){fa.campaign_id=fa.id;ea[fa.id]=fa;});return ea;}}),campaignGroupsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{fields:true,limit:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adcampaign_groups';})}}),stockImages:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{limit:true,offset:true},constantParameters:{endpoint:'/search',type:'adstockimage'}}),detailsForStockImage:p.createDataCommand(j,{requiredParameters:{image_id:true},constantParameters:{endpoint:new r(function(da){return '/'+da.image_id;})}}),userProfiles:p.createDataCommand(j,{requiredParameters:{ids:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/';})},processData:function(da){return da;}}),asyncReportById:p.createDataCommand(j,{requiredParameters:{reportRunId:true},cacheMechanism:new n.BaseCacheMechanism(),constantParameters:{endpoint:new r(function(da){var ea=da.reportRunId;delete da.reportRunId;return '/'+ea;}),cacheBust:new r(function(){return Date.now()+'_'+Math.random();})}}),reportSpecsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adreportspecs';})},processData:function(da){var ea=Array.isArray(da.data)?da.data:q(da.data);ea.forEach(p.transformIdToString);return ea;}}),reportStatsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true,asyncRunId:true,user_report:true,summary:true},constantParameters:{endpoint:new r(function(da){var ea=da.asyncRunId;delete da.asyncRunId;var fa='/act_'+da.accountId+'/reportstats';if(ea)fa+='/'+ea;return fa;})},processData:function(da){var ea=da.data;if(!ea)return [];var fa=(da.paging&&da.paging.next&&ea.length===parseInt(da.limit,10))?parseInt(da.offset,10)+ea.length:-1;return {data:ea,summary:da.summary,nextOffset:fa};}}),reportStatsMetadataForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/reportstatsmetadata';})}}),reportAsyncRunsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{limit:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adreportruns';})}}),reportAsyncRunsForSchedule:p.createDataCommand(j,{requiredParameters:{scheduledReportId:true},constantParameters:{endpoint:new r(function(da){var ea=da.scheduledReportId;delete da.scheduledReportId;return '/'+ea+'/adreportruns';})}}),reportsScheduledForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},cacheMechanism:new n.BaseCacheMechanism(),constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/adreportschedules';}),cacheBust:new r(function(){return Date.now()+'_'+Math.random();})}}),estimatesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true,targeting_spec:true},optionalParameters:{locale:true,currency:true,bid_for:true,creative_action_spec:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/reachestimate';})}}),estimatesForAdgroup:p.createDataCommand(j,{requiredParameters:{adgroupId:true,targeting_spec:true,locale:true},optionalParameters:{bid_for:true,creative_action_spec:true},constantParameters:{endpoint:new r(function(da){return '/'+da.adgroupId+'/reachestimate';})}}),targetingSentencesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true,targeting_spec:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/targetingsentencelines';})}}),accountStats:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{end_time:true,fields:true,start_time:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/stats';})}}),accountInfo:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId;}),fields:s}}),appInfo:p.createDataCommand(j,{requiredParameters:{appId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.appId;}),fields:u}}),brandInfo:p.createDataCommand(j,{requiredParameters:{brandID:true},constantParameters:{endpoint:new r(function(da){return '/'+da.brandID;}),fields:t,date_format:'U'}}),bctDataForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{remove_interest_categories:true,custom_categories_only:true,broad_categories_only:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/broadtargetingcategories';})}}),partnerCategoriesForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},optionalParameters:{locale:true,after:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/partnercategories';}),limit:600},processData:function(da){return {data:da.data,after:da.paging?da.paging.cursors.after:null,next:da.next};}}),adGeoLocationMetaInfo:p.createDataCommand(j,{requiredParameters:{locale:true},optionalParameters:{countries:true,regions:true,cities:true,custom_locations:true,geo_markets:true,zips:true},constantParameters:{endpoint:'/search',type:'adgeolocationmeta'}}),adCountryValidation:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['country']}}),adRegionValidation:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['region']}}),adCityValidation:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['city']}}),adZipValidation:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['zip']}}),adInterest:p.createDataCommand(j,{requiredParameters:{q:true},optionalParameters:{whitelisted_only:true},constantParameters:{endpoint:'/search',type:'adInterest'}}),adInterestValid:p.createDataCommand(j,{optionalParameters:{interest_list:true,interest_fbid_list:true,ignore_case:true,locale:true},constantParameters:{endpoint:'/search',type:'adInterestValid'}}),adInterestSuggestion:p.createDataCommand(j,{requiredParameters:{interest_list:true},optionalParameters:{locale:true,offset:true},constantParameters:{endpoint:'/search',type:'adInterestSuggestion',limit:h.AD_KEYWORD_SUGGESTION_QUERY_LIMIT}}),adInterestCategory:p.createDataCommand(j,{optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adInterestCategory'}}),adTargetingCategory:p.createDataCommand(j,{optionalParameters:{locale:true,'class':true},constantParameters:{endpoint:'/search',type:'adTargetingCategory'}}),languages:p.createDataCommand(j,{requiredParameters:{locale:true},optionalParameters:{q:true},constantParameters:{endpoint:'/search',type:'adlocale',limit:h.AD_COUNTRY_QUERY_LIMIT}}),countries:p.createDataCommand(j,{requiredParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adcountry',limit:h.AD_COUNTRY_QUERY_LIMIT},processData:function(da){return l.indexedMap(da.data,'country_code','name');}}),geolocation:p.createDataCommand(j,{requiredParameters:{locale:true,q:true},optionalParameters:{country_code:true,region_id:true},constantParameters:{endpoint:'/search',type:'adgeolocation'}}),geocoder:p.createDataCommand(j,{requiredParameters:{address:true},constantParameters:{endpoint:'/ads_geo_coding'}}),geoSuggestedRadii:p.createDataCommand(j,{requiredParameters:{latitude:true,longitude:true},optionalParameters:{distance_unit:true},constantParameters:{endpoint:'/search',type:'adradiussuggestion'}}),customAudiencesSearch:p.createDataCommand(j,{requiredParameters:{q:true,account_id:true},constantParameters:{endpoint:'/search',type:'customaudience'}}),objectByFBID:p.createDataCommand(j,{requiredParameters:{fbid:true},optionalParameters:{fields:true},constantParameters:{endpoint:new r(function(da){return '/'+da.fbid;})}}),adgroupForCF:p.createDataCommand(j,{requiredParameters:{adgroupId:true,locale:true},constantParameters:{endpoint:new r(function(da){return '/'+da.adgroupId;}),fields:new r(function(da){return g.getAdGroupFieldsForCF();})}}),adgroupForAudienceManager:p.createDataCommand(j,{requiredParameters:{adgroupId:true,locale:true},constantParameters:{endpoint:new r(function(da){return '/'+da.adgroupId;}),fields:['id','account_id','campaign_id','name']}}),validateAccountIDs:p.createDataCommand(j,{requiredParameters:{adaccounts:true},constantParameters:{endpoint:'/search',type:'adaccountvalid'}}),pixelsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/offsitepixels';}),limit:500},processData:function(da){return da.data;}}),geoPolygons:p.createDataCommand(j,{requiredParameters:{q:true,geo_type:true},constantParameters:{endpoint:'/search',type:'adgeopolygons'}}),logsForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true,locale:true},optionalParameters:{limit:true,since:true,until:true,uid:true,oid:true,extra_oids:true,business_id:true,category:true,after:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/activities';}),date_format:'U',fields:z},processData:function(da){return {data:da.data,after:da.paging?da.paging.cursors.after:null};},handleError:function(da,ea,fa){ea.params=fa;ea.path=fa.endpoint;ea.name='adaccount/activities';fa.errorHandler&&fa.errorHandler(ea);}}),partnerRequestByID:p.createDataCommand(j,{requiredParameters:{request_id:true},constantParameters:{endpoint:new r(function(da){return '/'+da.request_id;})}}),usersNamedForAccount:p.createDataCommand(j,{requiredParameters:{accountId:true},constantParameters:{endpoint:new r(function(da){return '/act_'+da.accountId+'/usersnamed';})}}),countryBoundingBox:p.createDataCommand(j,{requiredParameters:{code:true},constantParameters:{endpoint:'/ads_country_bounding_box'}}),productSetsForProductCatalog:p.createDataCommand(j,{requiredParameters:{productCatalogId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.productCatalogId+'/product_sets';})}}),productItemsForProductFeed:p.createDataCommand(j,{requiredParameters:{productFeedId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.productFeedId+'/products';})}}),productItemsForProductSet:p.createDataCommand(j,{requiredParameters:{productSetId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.productSetId+'/products';})}}),productGroupsForProductSet:p.createDataCommand(j,{requiredParameters:{productSetId:true},constantParameters:{endpoint:new r(function(da){return '/'+da.productSetId+'/groups';})}})};for(var ba in aa){var ca=aa[ba];if(ca)ca.commandName='fetch_'+ba;}f.fetch=aa;},null);
  __d("adsDaoGraphMutate",["AdsDao","BizSiteIdentifier.brands","adsDaoUtils","adsDaoGraphDataMutator","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i,j){var k=b('adsDaoGraphFetch').fetch,l=j.GraphDataMutator,m=j.GraphDataRemover,n=g.TransformParameterValue,o={imageForAccount:i.createDataCommand(l,{requiredParameters:{accountId:true,bytes:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/adimages';})},conflictDataCommands:[k.imagesForAccount]}),updateAccount:i.createDataCommand(l,{requiredParameters:{accountId:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId;})}}),updateAdgroup:i.createDataCommand(l,{requiredParameters:{adgroupId:true},optionalParameters:{locale:true},constantParameters:{endpoint:new n(function(r){return '/'+r.adgroupId;})}}),updateBrand:i.createDataCommand(l,{requiredParameters:{brandID:true},constantParameters:{endpoint:new n(function(r){var s=r.brandID;delete r.brandID;return '/'+s;})}}),updateSystemUserForBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,system_user_id:true,name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/system_users';})}}),activateCoupon:i.createDataCommand(l,{requiredParameters:{accountId:true,coupon_code:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/coupons';})}}),updateCampaignGroup:i.createDataCommand(l,{requiredParameters:{campaignGroupId:true},optionalParameters:{campaign_group_status:true,name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.campaignGroupId;})}}),updateCampaign:i.createDataCommand(l,{requiredParameters:{campaignId:true},optionalParameters:{name:true,daily_budget:true,campaign_status:true},constantParameters:{endpoint:new n(function(r){return '/'+r.campaignId;})}}),updateProject:i.createDataCommand(l,{requiredParameters:{projectID:true},optionalParameters:{name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.projectID;})}}),audiencesImport:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,third_party_data:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/emailimport';})}}),createLookalikeCluster:i.createDataCommand(l,{requiredParameters:{accountId:true,origin_audience_id:true,lookalike_spec:true},optionalParameters:{name:true,description:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{opt_out_link:true,rev_share_policy_id:true,is_category:true,creation_params:true,description:true,details:true,source:true,isPrivate:true,additionalMetadata:true,countries:true,minAge:true,maxAge:true,expectedSize:true,gender:true,partner_reference_key:true,subtype:true,partnerID:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),uploadUsersToCustomAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,payload:true,session:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceID+'/upload';})}}),createWebRemarketingCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,retention_days:true},optionalParameters:{prefill:true,opt_out_link:true,rev_share_policy_id:true,is_category:true,creation_params:true,rule:true},constantParameters:{subtype:'website',endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createWebsiteCombinationAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,inclusions:true},optionalParameters:{exclusions:true,prefill:true,creation_params:true},constantParameters:{subtype:'combination',endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createAdsPixel:i.createDataCommand(l,{requiredParameters:{accountId:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/adspixels';})}}),createMobileAppRemarketingCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,retention_days:true,rule:true},optionalParameters:{opt_out_link:true,rev_share_policy_id:true,is_category:true,creation_params:true},constantParameters:{subtype:'app',endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createMobileAppCombinationCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,inclusions:true},optionalParameters:{exclusions:true,opt_out_link:true,rev_share_policy_id:true,is_category:true,creation_params:true},constantParameters:{subtype:'combination',endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createActionsLookalike:i.createDataCommand(l,{requiredParameters:{accountId:true,lookalike_spec:true},optionalParameters:{name:true,description:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createConversionPixel:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{tag:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/offsitepixels';})},conflictDataCommands:[k.pixelsForAccount]}),reportSpecs:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{data_columns:true,export_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/adreportspecs';})}}),scheduleReport:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,schedule_frequency:true,status:true,emails:true},optionalParameters:{actions_group_by:true,data_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true,report_spec_id:true,start_date:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/adreportschedules';})}}),addPagesToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,page_id:true,access_type:true},optionalParameters:{add_current_users:true,permitted_roles:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/pages';})}}),addAccountsToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,adaccount_id:true},optionalParameters:{add_current_users:true},constantParameters:{access_type:'OWNER',endpoint:new n(function(r){return '/'+r.brandID+'/adaccounts';})}}),createAdAccount:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true,timezone_id:true,currency:true,end_advertiser:true,media_agency:true,partner:true},optionalParameters:{funding_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/adaccount';})}}),createProductCatalog:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/product_catalogs';})}}),addSharedLoginToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,email:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/add_shared_login';})}}),acceptAgencyAdAccountPermRequest:i.createDataCommand(l,{requiredParameters:{accountId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/agencies';})}}),acceptAgencyProductCatalogPermRequest:i.createDataCommand(l,{requiredParameters:{productCatalogId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.productCatalogId+'/agencies';})}}),acceptAgencyPagePermRequest:i.createDataCommand(l,{requiredParameters:{pageId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.pageId+'/agencies';})}}),updateBrandUserPermission:i.createDataCommand(l,{requiredParameters:{brandID:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/userpermissions';})}}),createProjectForBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/businessprojects';})}}),createSystemUserForBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/system_users';})}}),installAppForSystemUser:i.createDataCommand(l,{requiredParameters:{systemUserID:true,business_app:true},constantParameters:{endpoint:new n(function(r){return '/'+r.systemUserID+'/applications';})}}),generateTokenForSystemUser:i.createDataCommand(l,{requiredParameters:{systemUserID:true,business_app:true,scope:true,appsecret_proof:true},constantParameters:{endpoint:new n(function(r){return '/'+r.systemUserID+'/ads_access_token';})}}),acceptCustomAudiencesTos:i.createDataCommand(l,{requiredParameters:{accountId:true,tos_id:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/customaudiencestos';})}}),accountsForAudience:i.createDataCommand(l,{requiredParameters:{audienceId:true,adaccounts:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceId+'/adaccounts';})}}),createNewSavedTargetSpec:i.createDataCommand(l,{requiredParameters:{accountId:true,targeting_spec:true,name:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/audiences';})}})};f.remove={objectByFBID:i.createDataCommand(m,{requiredParameters:{fbid:true},optionalParameters:{fields:true},constantParameters:{endpoint:new n(function(r){return '/'+r.fbid;})}}),audience:i.createDataCommand(m,{requiredParameters:{audienceId:true},optionalParameters:{force_delete_lookalikes:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceId;})}}),brand:i.createDataCommand(m,{requiredParameters:{brandID:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID;})}}),removeAudienceCapabilities:i.createDataCommand(m,{requiredParameters:{audienceID:true,adaccounts:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceID+'/capabilities';})}}),adAccountFromGroup:i.createDataCommand(m,{requiredParameters:{accountId:true,accountGroupId:true},constantParameters:{endpoint:new n(function(r){return ('/'+r.accountGroupId+'/adaccounts/'+r.accountId);})}}),removePagePermission:i.createDataCommand(m,{requiredParameters:{business:true,pageId:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new n(function(r){return '/'+r.pageId+'/userpermissions';})}}),removeAgencyPagePermission:i.createDataCommand(m,{requiredParameters:{pageId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.pageId+'/agencies';})}}),removeAgencyProductCatalogPermission:i.createDataCommand(m,{requiredParameters:{productCatalogId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.productCatalogId+'/agencies';})}}),removeAgencyAdAccountPermission:i.createDataCommand(m,{requiredParameters:{accountId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/agencies';})}}),removeClient:i.createDataCommand(m,{requiredParameters:{brandId:true,business:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandId+'/clients';})}}),removeAgency:i.createDataCommand(m,{requiredParameters:{brandId:true,business:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandId+'/agencies';})}}),removeBrandUserPermission:i.createDataCommand(m,{requiredParameters:{brandID:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/userpermissions';})}}),removeBusinessFromUser:i.createDataCommand(m,{requiredParameters:{userID:true,business:true},constantParameters:{endpoint:new n(function(r){return '/'+r.userID+'/businesses';})}}),removePageFromProject:i.createDataCommand(m,{requiredParameters:{project_id:true,page_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.project_id+'/pages';})}}),removeAdAccountFromProject:i.createDataCommand(m,{requiredParameters:{project_id:true,adaccount_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.project_id+'/adaccounts';})}}),removeProductCatalogFromProject:i.createDataCommand(m,{requiredParameters:{project_id:true,product_catalog_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.project_id+'/product_catalogs';})}}),reportSpecs:i.createDataCommand(m,{requiredParameters:{reportSpecId:true},constantParameters:{endpoint:new n(function(r){return '/'+r.reportSpecId;})}}),reportAsyncRun:i.createDataCommand(m,{requiredParameters:{reportRunId:true},constantParameters:{endpoint:new n(function(r){return '/'+r.reportRunId;})}}),completedReportAsyncRuns:i.createDataCommand(m,{requiredParameters:{accountId:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId+'/adreportruns';})}}),scheduledReport:i.createDataCommand(m,{requiredParameters:{scheduledReportId:true},constantParameters:{endpoint:new n(function(r){var s=r.scheduledReportId;delete r.scheduledReportId;return '/'+s;})}}),accountsForBrand:i.createDataCommand(m,{requiredParameters:{brandID:true,adaccount_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/adaccounts';})}}),appsForBrand:i.createDataCommand(m,{requiredParameters:{app_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/apps';})}}),systemUsersForBrand:i.createDataCommand(m,{requiredParameters:{id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/apps';})}}),pagesForBrand:i.createDataCommand(m,{requiredParameters:{brandID:true,page_id:true},constantParameters:{endpoint:new n(function(r){return '/'+r.brandID+'/pages';})}}),productCatalog:i.createDataCommand(m,{requiredParameters:{productCatalogID:true},constantParameters:{endpoint:new n(function(r){return '/'+r.productCatalogID;})}}),project:i.createDataCommand(m,{requiredParameters:{projectID:true},constantParameters:{endpoint:new n(function(r){return '/'+r.projectID;})}}),accountsForAudience:i.createDataCommand(m,{requiredParameters:{audienceId:true,adaccounts:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceId+'/adaccounts';})}})};f.mutate={brandPersona:i.createDataCommand(l,{requiredParameters:{personaId:true},optionalParameters:{first_name:true,last_name:true,email:true},constantParameters:{endpoint:new n(function(r){return '/'+r.personaId;})}}),customAudience:i.createDataCommand(l,{requiredParameters:{id:true},optionalParameters:{name:true,description:true,rule:true,opt_out_link:true},constantParameters:{endpoint:new n(function(r){var s='/'+r.id;delete r.id;return s;})}}),reportSpecs:i.createDataCommand(l,{requiredParameters:{id:true},optionalParameters:{data_columns:true,export_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true},constantParameters:{endpoint:new n(function(r){var s='/'+r.id;delete r.id;return s;})}}),reportStatsForAccountAsync:i.createDataCommand(l,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true,user_report:true,business_id:true,summary:true},constantParameters:{async:true,endpoint:new n(function(r){return '/act_'+r.accountId+'/reportstats';}),business_id:(h.getBusinessID()||null)}}),updateAsyncReport:i.createDataCommand(l,{requiredParameters:{reportRunId:true},optionalParameters:{emails:true,is_bookmarked:true},constantParameters:{endpoint:new n(function(r){var s=r.reportRunId;delete r.reportRunId;return '/'+s;})}}),updateAccount:i.createDataCommand(l,{requiredParameters:{accountId:true},optionalParameters:{timezone_id:true,currency:true},constantParameters:{endpoint:new n(function(r){return '/act_'+r.accountId;})}}),scheduledReport:i.createDataCommand(l,{requiredParameters:{scheduledReportId:true,name:true,schedule_frequency:true,status:true,emails:true},optionalParameters:{actions_group_by:true,data_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true,report_spec_id:true,start_date:true},constantParameters:{endpoint:new n(function(r){var s=r.scheduledReportId;delete r.scheduledReportId;return '/'+s;})}}),sharedAccountsForAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,adaccounts:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceID+'/adaccounts';}),replace:true}}),updateCapabilitiesForAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,accounts_capabilities:true},constantParameters:{endpoint:new n(function(r){return '/'+r.audienceID+'/capabilities';})}}),savedTargetSpec:i.createDataCommand(l,{requiredParameters:{audienceId:true},optionalParameters:{name:true,targeting:true},constantParameters:{endpoint:new n(function(r){var s='/'+r.audienceId;return s;})}}),pageAddress:i.createDataCommand(l,{requiredParameters:{pageId:true,location:true,access_token:true},constantParameters:{endpoint:new n(function(r){return '/'+r.pageId;})},conflictDataCommands:[k.objectByFBID]})};for(var p in o){var q=o[p];if(q)q.commandName='add_'+p;}f.add=o;},null);
  __d("AdsDaoGraphDataDownloadProvider",["AdsDaoGraphSpec","AdsDao","ads-lib-connect_DEPRECATED"],function(a,b,c,d,e,f,g,h){var i=b('ads-lib-connect_DEPRECATED').FB,j=h.DataDownloadProvider;for(var k in j)if(j.hasOwnProperty(k))m[k]=j[k];var l=j===null?null:j.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=j;function m(){"use strict";if(j!==null)j.apply(this,arguments);}m.prototype.downloadData=function(n,o){"use strict";var p=n.target_window||"_blank";delete n.target_window;var q={};Object.assign(q,n);var r=q.endpoint;delete q.endpoint;var s=q.access_token;delete q.access_token;var t=i.url(r,q,s);window.open(t,p);o&&o(true);};m.prototype.processData=function(n){"use strict";return n;};Object.assign(m.prototype,g);e.exports=m;},null);
  __d("adsDaoGraphDownload",["copyProperties","adsDaoUtils","AdsDaoGraphDataDownloadProvider","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i){var j=b('adsDaoGraphFetch').fetch,k={reportStatsForAccount:h.createDataCommand(i,{requiredParameters:g({format:true},(j.reportStatsForAccount&&j.reportStatsForAccount.requiredParameters)),optionalParameters:(j.reportStatsForAccount&&j.reportStatsForAccount.optionalParameters),constantParameters:(j.reportStatsForAccount&&j.reportStatsForAccount.constantParameters)})};for(var l in k){var m=k[l];if(m)m.commandName='download_'+l;}f.download=k;},null);
  __d("AdsDaoGraph",["adsDaoGraphPrimed","adsDaoGraphMutate","adsDaoGraphDownload","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i,j){var k={fetch:j.fetch,add:h.add,remove:h.remove,mutate:h.mutate,download:i.download,primedForAccount:g.forAccount,primedForLocale:g.forLocale,primedForBrand:g.forBrand,primedForGeoLocation:g.forGeoLocation};e.exports=k;},null);
  __d("AdsMapActionTypes",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){'use strict';var h='ADS_MAP_',i={MAP_ZOOM_IN:null,MAP_ZOOM_OUT:null,MAP_ZOOM_RESET:null,BOUNDING_BOX_LOADED:null,MAP_DATA_RESET:null},j=g.createActionTypeMap(h,i);e.exports=j;},null);
  __d("AdsCommonGeocoderStore",["AdsBaseStore","AdsCFErrorCode","AdsCommonTargetingActionTypes","AdsDaoGraph","AdsDispatcher","AdsGeocoderActions","AdsMapActionTypes","merge","whitelistObjectKeys"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';var p={},q=['errorCode','isFetching','isValid','latitude','longitude'],r='US',s=false,t=j,u={US:{latitudeSouth:24.5018,longitudeWest:-124.749,latitudeNorth:49.3845,longitudeEast:-66.9406,isFetching:false,isValid:true}},v=['latitudeSouth','longitudeWest','latitudeNorth','longitudeEast','isFetching','isValid'];function w(fa){return t.fetch.geocoder.promiseOne({address:fa});}function x(fa,ga){var ha=l.handleGeocoderSuccessResponse.bind(null,fa,ga),ia=l.handleGeocoderFailureResponse.bind(null,fa,ga);w(fa).done(ha,ia);}function y(fa){var ga=h.errorCodeMap;if(fa===ga.API_EC_ADS_GEO_CODING_FAILED||fa===ga.API_EC_ADS_GEO_TARGETING_COUNTRY_UNAVAILABLE)return false;t.fetch.geocoder.clearCache();return true;}function z(fa){var ga=function(ia){k.handleUpdateFromServerResponse({actionType:m.BOUNDING_BOX_LOADED,country:fa,isValid:true,latitudeSouth:ia[0].latitude_south,longitudeWest:ia[0].longitude_west,latitudeNorth:ia[0].latitude_north,longitudeEast:ia[0].longitude_east});},ha=function(ia,ja){var ka=ja.error&&ja.error.code;k.handleUpdateFromServerResponse({actionType:m.BOUNDING_BOX_LOADED,country:fa,errorCode:ka,isValid:false});};t.fetch.countryBoundingBox.one(ga,{code:fa,handleError:ha});}function aa(){if(s)return;setTimeout(function(){k.handleUpdateFromServerResponse(n({actionType:m.BOUNDING_BOX_LOADED,country:r},u[r]));});s=true;}for(var ba in g)if(g.hasOwnProperty(ba))da[ba]=g[ba];var ca=g===null?null:g.prototype;da.prototype=Object.create(ca);da.prototype.constructor=da;da.__superConstructor__=g;function da(){if(g!==null)g.apply(this,arguments);}da.prototype.getDao=function(){return t;};da.prototype.setDao=function(fa){t=fa;};da.prototype.getStoreName=function(){return 'AdsCommonGeocoderStore';};da.prototype.getAddressCoordinates=function(fa,ga){var ha=p[fa];if(ha&&!ha.isFetching&&!(ha.nextRefetchTime&&ha.nextRefetchTime<Date.now()))return o(ha,q);if(!ha){ha={isFetching:false,isValid:false};p[fa]=ha;}if(!ha.isFetching){x(fa,ga);ha.isFetching=true;delete ha.nextRefetchTime;}return {isFetching:true};};da.prototype.promiseAddressCoordinates=function(fa){return w(fa);};da.prototype.getCountryBoundingBox=function(fa){if(fa===r)aa();var ga=u[fa];if(ga&&!ga.isFetching)return o(ga,v);if(!ga){ga={isFetching:false,isValid:false};u[fa]=ga;}if(!ga.isFetching){ga.isFetching=true;z(fa);}return {isFetching:true};};da.prototype.getUSABoundingBox=function(){return this.getCountryBoundingBox('US');};da.prototype.onDispatchToken=function(fa){var ga=fa.action;switch(ga.actionType){case i.GEO_COORDINATES_LOADED:var ha=ga.address,ia=ga.isValid,ja=p[ha];if(!ja){ja={};p[ha]=ja;}ja.isFetching=false;ja.isValid=ia;if(ia){ja.latitude=ga.latitude;ja.longitude=ga.longitude;}else{ja.errorCode=ga.errorCode;var ka=y(ga.errorCode);if(ka)ja.nextRefetchTime=Date.now()+10000;}ea.inform('change',{address:ha});break;case m.BOUNDING_BOX_LOADED:var la=ga.country;ia=ga.isValid;ja=u[la];if(!ja){ja={};u[la]=ja;}ja.isFetching=false;ja.isValid=ia;if(ia){ja.latitudeSouth=ga.latitudeSouth;ja.longitudeWest=ga.longitudeWest;ja.latitudeNorth=ga.latitudeNorth;ja.longitudeEast=ga.longitudeEast;}break;}};var ea=new da();e.exports=ea;},null);
  __d("LocationConstants",["CurrentLocale"],function(a,b,c,d,e,f,g){var h='km',i='kilometer',j='mi',k='mile',l,m={getSupportedRadii:function(){if(this.getLocalizedUnit()===k){return [0,10,25,50];}else return [0,20,50,70];},getLocalizedUnit:function(){if(l){return l;}else if(g.get()=='en_US'){return k;}else return i;},getCityMinRadius:function(){return 10;},getAddressMinRadius:function(){return 1;},getMaxRadius:function(){if(this.getLocalizedUnit()==='mile'){return 50;}else return 80;},getCityDefaultRadius:function(){if(this.getLocalizedUnit()==='mile'){return 25;}else return 20;},getAddressDefaultRadius:function(){if(this.getLocalizedUnit()==='mile'){return 10;}else return 16;},setLocalizedUnit:function(q){l=q;}},n={COUNTRY:'country',COUNTRIES:'countries',CUSTOM_LOCATION:'custom_location',CUSTOM_LOCATIONS:'custom_locations',GEO_MARKET:'geo_market',GEO_MARKETS:'geo_markets',REGION:'region',REGIONS:'regions',CITY:'city',CITIES:'cities',ZIP:'zip',ZIPS:'zips',RadiusInfo:m,LOCATION_LEVEL_COUNTRIES:3,LOCATION_LEVEL_REGIONS:2,LOCATION_LEVEL_GEO_MARKETS:2,LOCATION_LEVEL_CITIES:1,LOCATION_LEVEL_ZIPS:0,LOCATION_LEVEL_CUSTOM_LOCATIONS:0,KILOMETER_SYMBOL:h,KILOMETER_UNIT:i,MILE_SYMBOL:j,MILE_UNIT:k,TYPE_ALL:'home,recent',TYPE_HOME:'home',TYPE_RECENT:'recent',TYPE_TRAVELING:'travel_in',CLEAR_WARNING:'clear_warning'},o=[n.COUNTRIES,n.REGIONS,n.CUSTOM_LOCATIONS,n.GEO_MARKETS,n.CITIES,n.ZIPS],p={};p[n.COUNTRIES]=n.LOCATION_LEVEL_COUNTRIES;p[n.REGIONS]=n.LOCATION_LEVEL_REGIONS;p[n.GEO_MARKETS]=n.LOCATION_LEVEL_REGIONS;p[n.CITIES]=n.LOCATION_LEVEL_CITIES;p[n.ZIPS]=n.LOCATION_LEVEL_ZIPS;p[n.CUSTOM_LOCATIONS]=n.LOCATION_LEVEL_CUSTOM_LOCATIONS;n.locationTypes=o;n.locationLevels=p;e.exports=n;},null);
  __d("AdsGeoTargetingUtils",["AdsCommonGeocoderStore","AdsCountries","AdsCountriesConfig","AdsDaoGraph","LocationConstants"],function(a,b,c,d,e,f,g,h,i,j){'use strict';var k=b('LocationConstants').RadiusInfo,l='countries',m='cities',n=50;function o(aa){return p(aa,'whitelist').filter(function(ba){return !!h.countries[ba];});}function p(aa,ba){var ca=aa.geoGating||aa.geo_gating||{};if(!ca[ba]||typeof ca[ba]!=='object')return [];return Object.keys(ca[ba]);}function q(aa){var ba=aa.destinationCityInfo;if(ba)return true;var ca=o(aa);if(ca.length)return false;var da=aa.fanCountries||[];return !!da.length;}function r(aa,ba,ca){var da=o(aa);if(da.length){return da;}else{var ea=ba||ca||'US';return [ea];}}function s(aa){return {locTargeting:l};}function t(aa){if(!q(aa))return s(aa);var ba=aa.destinationCityInfo;if(ba)return {countries:[ba.country],cities:[{name:ba.name,id:ba.id}],locTargeting:m,radius:n,radiusIfValid:n};return s(aa);}function u(aa,ba,ca){if(!aa)return;ba=Object.assign({},ba);var da=!aa.radius&&(aa.hasOwnProperty('latitude')||aa.hasOwnProperty('longitude'));if(aa.hasOwnProperty('addressString')){var ea=aa.addressString||'';if(ea!==ba.addressString){ba.addressString=ea;var fa=g.getAddressCoordinates(ea,ca);if(!fa.isFetching&&fa.isValid){ba.latitude=fa.latitude;ba.longitude=fa.longitude;da=true;}else{ba.latitude=null;ba.longitude=null;}}}if(aa.hasOwnProperty('radius'))ba.radius=aa.radius||0;if(aa.hasOwnProperty('lastSuggestedRadius'))ba.lastSuggestedRadius=aa.lastSuggestedRadius;if(aa.hasOwnProperty('distanceUnit'))ba.distanceUnit=aa.distanceUnit;if(aa.hasOwnProperty('latitude'))ba.latitude=aa.latitude;if(aa.hasOwnProperty('longitude'))ba.longitude=aa.longitude;return {newCustomLocation:ba,shouldFetchSuggestedRadius:da};}function v(aa,ba,ca,da){j.fetch.geoSuggestedRadii.one(function(ea){da(aa,ba,ca,ea);},{latitude:aa,longitude:ba,distance_unit:k.getLocalizedUnit()});}function w(aa,ba,ca){if(!aa.isValid)return false;var da=aa.address;if(!ba||(ba.addressString!==da&&ca!==da))return null;if(ba.latitude!==null||ba.longitude!==null)return null;return {addressString:da,latitude:aa.latitude,longitude:aa.longitude};}function x(aa){if(aa)if(aa.customLocations&&aa.customLocations[0])return aa.customLocations[0];return null;}function y(aa,ba,ca,da){var ea=z.getDefaultGeoTargetingCountry(ba,ca,da),fa=ea&&(ea.length===1)&&ea[0],ga=i.countries[fa];if(!ga||(aa.indexOf(ga)>-1))return aa;return aa+' '+ga;}var z={getDefaultGeoTargetingCountry:r,getDefaultGeoTargeting:t,processLocalGeoChange:u,processGeoCoordinates:w,fetchSuggestedRadius:v,getFirstCustomLocation:x,getFallbackAddressWithCountry:y};e.exports=z;},null);
  __d("AdsLocalAwarenessRadiusOptions",[],function(a,b,c,d,e,f){var g={mile:[1,3,5,10,15,20,25,50],kilometer:[1,3,5,10,20,50,70],roundUpToNearestOption:function(h,i){var j=(i==='kilometer')?g.kilometer:g.mile,k=j[j.length-1];for(var l=j.length-2;l>=0;--l)if(j[l]>=h){k=j[l];}else break;return k;}};e.exports=g;},null);
  __d("AdsCommonTargetingActions",["AdsAPITargetGeoLocationTypes","AdsCommonTargetingActionTypes","AdsCommonTargetingStore","AdsDispatcher","AdsLocalAwarenessRadiusOptions","AdsMapActionTypes","AdsUtils","copyProperties","AdsGeoTargetingUtils"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';function o(r,s){var t=b('AdsGeoTargetingUtils'),u=i.getState(s).geoLocations,v=i.getCompatibleCustomLocationOrDefaultStateForUI(s),w=t.processLocalGeoChange(m.underscoreToCamelCaseKeys(r),m.underscoreToCamelCaseKeys(v),s);u=Object.assign({},u,{countries:[],custom_locations:[m.camelCaseToUnderscoreKeys(w.newCustomLocation)],location_types:[g.RECENT,g.HOME]});j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,geoLocations:u,targetingID:s});}function p(r,s,t,u){var v=i.getState(t).geoLocations;if(!v)return;var w=v.custom_locations&&v.custom_locations[0];if(!w||w.latitude!==r||w.longitude!==s)return;var x=u[0],y=k.roundUpToNearestOption(x.suggested_radius,x.distance_unit);j.handleUpdateFromServerResponse({actionType:l.MAP_ZOOM_RESET,targetingID:t});var z=Object.assign({},v,{custom_locations:[Object.assign({},w,{radius:y,last_suggested_radius:y,distance_unit:x.distance_unit})]});j.handleUpdateFromServerResponse({actionType:h.TARGETING_CHANGE,geoLocations:z,targetingID:t});}var q={initTargetingForID:function(r){j.handleUpdateFromUnknownSource({actionType:h.TARGETING_INIT,targetingID:r});},updateStoreFromExternal:function(r,s){j.handleUpdateFromUnknownSource(n({actionType:h.TARGETING_SET_FROM_EXTERNAL,targetingID:s},r));},updateBulkSpec:function(r,s){j.handleUpdateFromInitialServer(n({actionType:h.BULK_API_SPEC_SET,targetingID:s},r));},changeAndroidDeviceGroup:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,mobileDevices:r,targetingID:s});},changeInterestedIn:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,interestedIn:r,targetingID:s});},changeIOSDevices:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,mobileDevices:r,targetingID:s});},changeRelationshipStatuses:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,relationshipStatuses:r,targetingID:s});},changeEducationStatuses:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,educationStatuses:r,targetingID:s});},changeSex:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,sex:r,targetingID:s});},changeAgeMin:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,ageMin:r,targetingID:s});},changeUserAdclusters:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,userAdclusters:r,targetingID:s});},changeConjunctiveUserAdclusters:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,conjunctiveUserAdclusters:r,targetingID:s});},changeAgeMax:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,ageMax:r,targetingID:s});},changeAgeMaxAndAgeMin:function(r,s,t){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,ageMax:r,ageMin:s,targetingID:t});},changeMinAndroidVersion:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,minAndroidVersion:r,targetingID:s});},changeMinIOSVersion:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,minIosVersion:r,targetingID:s});},changeMobileOperatingSystem:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,mobileOperatingSystem:r,targetingID:s});},changeWifiOnly:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,wifiOnly:r,targetingID:s});},changeGeoLocations:function(r,s,t){r=Object.assign({},i.getValue('geoLocations',t),r);s=Object.assign({},i.getValue('excludedGeoLocations',t),s);j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,geoLocations:r,excludedGeoLocations:s,targetingID:t});},changeLanguages:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,locales:r,targetingID:s});},changeConnections:function(r,s){var t={actionType:h.TARGETING_CHANGE,targetingID:s};if(r.includedConnections)t.connections=r.includedConnections;if(r.excludedConnections)t.excludedConnections=r.excludedConnections;if(r.friendsOfConnections)t.friendsOfConnections=r.friendsOfConnections;j.handleUpdateFromViewAction(t);},changeEducationStatus:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,educationStatus:r,targetingID:s});},changeEducationMajors:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,educationMajors:r,targetingID:s});},changeEducationSchools:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,educationSchools:r,targetingID:s});},changeMaxGradYear:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,maxGradYear:r,targetingID:s});},changeMinGradYear:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,minGradYear:r,targetingID:s});},changeTargetAllGraduationYears:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,targetAllGraduationYears:r,targetingID:s});},changeWorkEmployers:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,workEmployers:r,targetingID:s});},changeKeywords:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,keywords:r,targetingID:s});},changeCustomAudiences:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,customAudiences:r,targetingID:s});},removeAudience:function(r,s){var t=i.getValue('customAudiences',s)||[],u=t.filter(function(x){return x.id!==r.id;}),v=i.getValue('excludedCustomAudiences',s)||[],w=v.filter(function(x){return x.id!==r.id;});j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,customAudiences:u,excludedCustomAudiences:w,targetingID:s});},excludeAudience:function(r,s){var t=i.getValue('customAudiences',s)||[],u=t.filter(function(x){return x.id!==r.id;}),v=i.getValue('excludedCustomAudiences',s)||[],w=v.concat(r);j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,customAudiences:u,excludedCustomAudiences:w,targetingID:s});},includeAudience:function(r,s){var t=i.getValue('customAudiences',s)||[],u=t.concat(r),v=i.getValue('excludedCustomAudiences',s)||[],w=v.filter(function(x){return x.id!==r.id;});j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,customAudiences:u,excludedCustomAudiences:w,targetingID:s});},changeInterests:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,interests:r,targetingID:s});},changeWorkPositions:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,workPositions:r,targetingID:s});},changeFamilyStatuses:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,familyStatuses:r,targetingID:s});},changeIndustries:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,industries:r,targetingID:s});},changeLifeEvents:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,lifeEvents:r,targetingID:s});},changePolitics:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,politics:r,targetingID:s});},changeIncome:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,income:r,targetingID:s});},changeNetWorth:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,netWorth:r,targetingID:s});},changeHomeType:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,homeType:r,targetingID:s});},changeHomeOwnership:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,homeOwnership:r,targetingID:s});},changeHomeValue:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,homeValue:r,targetingID:s});},changeEthnicAffinity:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,ethnicAffinity:r,targetingID:s});},changeGeneration:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,generation:r,targetingID:s});},changeHouseholdComposition:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,householdComposition:r,targetingID:s});},changeMoms:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,moms:r,targetingID:s});},changeOfficeType:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,officeType:r,targetingID:s});},changeBehaviors:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,behaviors:r,targetingID:s});},changeFlexibleSpec:function(r,s){j.handleUpdateFromViewAction({actionType:h.TARGETING_CHANGE,flexibleSpec:r,targetingID:s});},changeCustomLocation:function(r,s){o({address_string:r},s);},changeLocalGeoRadius:function(r,s){o({radius:r.radius,distance_unit:r.unit},s);},fetchSuggestedRadius:function(r,s,t){var u=b('AdsGeoTargetingUtils');u.fetchSuggestedRadius(r,s,t,p);},updateStoreFromUI:function(r,s){j.handleUpdateFromUnknownSource(n({actionType:h.TARGETING_CHANGE,targetingID:s},r));}};e.exports=q;},null);
  __d("AdsGeocoderActions",["AdsCommonTargetingActionTypes","AdsDispatcher","AdsUtils","AdsCommonTargetingStore","AdsGeoTargetingUtils","AdsCommonTargetingActions"],function(a,b,c,d,e,f,g,h,i){'use strict';function j(l,m,n){var o=b('AdsCommonTargetingStore'),p=b('AdsGeoTargetingUtils'),q=o.getCustomLocationOrNull(m);if(!q)return false;var r=p.processGeoCoordinates({address:l,isValid:true,latitude:n[0].latitude,longitude:n[0].longitude},i.underscoreToCamelCaseKeys(q),null);if(r){r=i.camelCaseToUnderscoreKeys(r);var s=Object.assign({},o.getState(m).geoLocations,{custom_locations:[r]});h.handleUpdateFromServerResponse({actionType:g.TARGETING_CHANGE,geoLocations:s,targetingID:m});var t=b('AdsCommonTargetingActions');t.fetchSuggestedRadius(r.latitude,r.longitude,m);}}var k={handleGeocoderSuccessResponse:function(l,m,n,o){h.handleUpdateFromServerResponse({actionType:g.GEO_COORDINATES_LOADED,address:l,isValid:true,latitude:n[0].latitude,logData:o,longitude:n[0].longitude});j(l,m,n);},handleGeocoderFailureResponse:function(l,m,n,o){var p=n.rawData,q=p.error&&p.error.code;h.handleUpdateFromServerResponse({actionType:g.GEO_COORDINATES_LOADED,address:l,errorCode:q,isValid:false,logData:o,targetingID:m});}};e.exports=k;},null);
  __d("AdsImageActionType",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){var h={LOAD_DIMENSION_ERROR:null,LOAD_DIMENSION_SUCCESS:null,LOAD_IMAGES_ERROR:null,LOAD_IMAGES_SUCCESS:null},i=g.createActionTypeMap('AdsImageAction_',h);e.exports=i;},null);
  __d("AdsImageValidationActionTypes",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){var h={AD_IMAGE_VALIDATION_API_INIT:null,AD_IMAGE_VALIDATION_API_COMPLETE:null,AD_IMAGE_VALIDATION_CACHE_COMPLETE:null,AD_IMAGE_VALIDATION_NOTICE_SHOWN:null,AD_IMAGE_VALIDATION_TOOL_USE:null},i=g.createActionTypeMap('ADS_IMAGE_VALIDATION_',h);e.exports=i;},null);
  __d("BoostedComponentDataState",[],function(a,b,c,d,e,f){'use strict';var g={ACTIVE:'active',ERROR:'error',INIT_DATA_LOADED:'init_data_loaded',LOADING:'loading',NOT_INITIALIZED:'not_initialized'};e.exports=g;},null);
  __d("BoostedComponentDispatcher",["AdsPayloadSource","Dispatcher","invariant"],function(a,b,c,d,e,f,g,h,i){'use strict';for(var j in h)if(h.hasOwnProperty(j))l[j]=h[j];var k=h===null?null:h.prototype;l.prototype=Object.create(k);l.prototype.constructor=l;l.__superConstructor__=h;function l(){if(h!==null)h.apply(this,arguments);}l.prototype.handleUpdate=function(m,n){this.dispatch({payloadsource:m,action:n});};l.prototype.handleUpdateFromServerResponse=function(m){this.handleUpdate(g.SERVER_RESPONSE,m);};l.prototype.handleUpdateFromViewAction=function(m){this.handleUpdate(g.VIEW_ACTION,m);};l.prototype.handleUpdateFromInitialServer=function(m){this.handleUpdate(g.INITIAL_SERVER,m);};e.exports=l;},null);
  __d("BoostedClientLogEventTypes",[],function(a,b,c,d,e,f){var g={CLICK:'click',CONFIRM:'confirm',CANCEL:'cancel',SUBMIT:'submit',SUCCESS:'success',FAIL:'fail'};e.exports=g;},null);
  __d("BoostedComponentConstants",[],function(a,b,c,d,e,f){var g={BOOSTED_POSTS_APP_ID:"205000946197077",DIALOG_MIN_HEIGHT:300,DIALOG_MAX_HEIGHT:600,DIALOG_WIDTH:962,LOADING_DIALOG_WIDTH:300,ERROR_DIALOG_WIDTH:445,ADS_PAYMENT_APP_ID:123097351040126,DURATION_SECTION:{CONTINUOUS_OPTION:'continuous',DATE_PICKER_OPTION:'date_picker'}};e.exports=g;},null);
  __d("BoostedPostLogging",["AsyncRequest","Banzai"],function(a,b,c,d,e,f,g,h){var i={log:function(j,k){k.event=j;if(h.isEnabled('boosted_posts'))h.post('boosted_posts',k,h.VITAL);},logClickConversionTracking:function(j,k,l,m){var n={page_id:j};if(k)n.post_id=k;if(l)n.campaign_id=l;if(m)n.campaign_placement=m;new g('/ads/ajax/boosted/convtrack.php').setData(n).send();}};e.exports=i;},null);
  __d("BrazilTaxIDCollectionFlow",["URI"],function(a,b,c,d,e,f,g){var h={getURIForTaxIDStep:function(i,j,k){var l=123097351040126,m=new g('/fbml/ajax/dialog/').setQueryData({_path:'pay',method:'pay',display:'async',action:'braziltaxid',account_id:i,app_id:l,placement:j,step:'id',is_optional:!!k});return m;},getURIForAddressStep:function(i,j,k){var l=123097351040126,m=new g('/fbml/ajax/dialog/').setQueryData({_path:'pay',method:'pay',display:'async',action:'braziltaxid',account_id:i,tax_id:j,app_id:l,placement:k,step:'address',is_optional:false});return m;}};e.exports=h;},null);
  __d("XPrepaidAccountLowBalanceControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/payments\/prepay_low_balance\/",{account_id:{type:"Int",required:true}});},null);
  __d("BoostedComponentSubmissionValidator",["AdBudgetType","AdManagerFunding","AsyncRequest","BoostedComponentConstants","BoostedPostLogging","BrazilTaxIDCollectionFlow","Dialog","XPrepaidAccountLowBalanceControllerURIBuilder","fbt","formatDate"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(r,s,t,u,v){"use strict";this.$BoostedComponentSubmissionValidator0=r;this.$BoostedComponentSubmissionValidator1=s.getAdAccountID();this.$BoostedComponentSubmissionValidator2=s.getCampaignEndTime();this.$BoostedComponentSubmissionValidator3=s.getBudget();this.$BoostedComponentSubmissionValidator4=s.getCurrency();this.$BoostedComponentSubmissionValidator5=t;this.$BoostedComponentSubmissionValidator6=u;this.$BoostedComponentSubmissionValidator7=v;this.$BoostedComponentSubmissionValidator8='boosted_post';}q.prototype.checkFundingSource=function(){"use strict";new i(this.$BoostedComponentSubmissionValidator5.toString()).setMethod('POST').setHandler(this.$BoostedComponentSubmissionValidator9.bind(this)).setTimeoutHandler(30000,this.$BoostedComponentSubmissionValidator7).send();};q.prototype.$BoostedComponentSubmissionValidator9=function(r){"use strict";var s=r.payload;if(s)if(s.has_funding_source&&s.is_tax_id_required){this.$BoostedComponentSubmissionValidatora(s.can_create_ad_without_tax_id);}else if(s.has_funding_source){this.$BoostedComponentSubmissionValidatorb();}else this.openAddPaymentDialog(this.$BoostedComponentSubmissionValidatorc);};q.prototype.$BoostedComponentSubmissionValidatora=function(r){"use strict";var s=l.getURIForTaxIDStep(this.$BoostedComponentSubmissionValidator1,'lwi_pux',r);new m().setAsync(new i(s)).setCloseHandler(function(t){if(r||(t&&t.success)){this.$BoostedComponentSubmissionValidator6();}else this.$BoostedComponentSubmissionValidator7();}.bind(this)).show();};q.prototype.$BoostedComponentSubmissionValidatorb=function(){"use strict";var r=(new n()).setInt('account_id',this.$BoostedComponentSubmissionValidator1).getURI();new i().setURI(r).setMethod('POST').setHandler(function(s){if(s.payload&&s.payload.open_payments_flow){this.$BoostedComponentSubmissionValidatord();}else this.$BoostedComponentSubmissionValidator6();}.bind(this)).setErrorHandler(function(s){this.$BoostedComponentSubmissionValidator6();}.bind(this)).send();};q.prototype.$BoostedComponentSubmissionValidatord=function(){"use strict";new m().setTitle("Add to Balance").setBody("Your account balance is low. Add money to your balance to make sure you can run your ad.").setButtons([m.newButton('skip',"Skip",'inputaux',function(){this.$BoostedComponentSubmissionValidator6();}.bind(this)),m.newButton('add_money',"Add Money",'',function(){this.openAddPaymentDialog(this.$BoostedComponentSubmissionValidatore);}.bind(this))]).setModal(true).show();};q.prototype.openAddPaymentDialog=function(r){"use strict";var s=new Date(this.$BoostedComponentSubmissionValidator2*1000);h.addCredential(this.$BoostedComponentSubmissionValidator8,j.ADS_PAYMENT_APP_ID,this.$BoostedComponentSubmissionValidator1,null,r.bind(this),null,null,null,this.$BoostedComponentSubmissionValidator0.getUserID(),this.$BoostedComponentSubmissionValidator0.getUserHash(),null,null,g.LIFETIME,this.$BoostedComponentSubmissionValidator3,this.$BoostedComponentSubmissionValidator4,p(s,h.CAMPAIGN_DATE_FORMAT));k.log('payment_flow_start',this.$BoostedComponentSubmissionValidatorf());};q.prototype.$BoostedComponentSubmissionValidatorc=function(r){"use strict";if(r&&r.credential_state){k.log('payment_flow_complete',this.$BoostedComponentSubmissionValidatorf());this.$BoostedComponentSubmissionValidator6();}else{k.log('payment_flow_canceled',this.$BoostedComponentSubmissionValidatorf());this.$BoostedComponentSubmissionValidator7();}};q.prototype.$BoostedComponentSubmissionValidatore=function(r){"use strict";if(!r)return;this.$BoostedComponentSubmissionValidator6();};q.prototype.$BoostedComponentSubmissionValidatorf=function(){"use strict";return {page_id:this.$BoostedComponentSubmissionValidator0.getPageID(),post_id:this.$BoostedComponentSubmissionValidator0.getPostID(),ad_account_id:this.$BoostedComponentSubmissionValidator1,placement:this.$BoostedComponentSubmissionValidator0.getPlacement()};};e.exports=q;},null);
  __d("BoostedActionConfirmReactivationDialog.react",["React","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=g.createClass({displayName:"BoostedActionConfirmReactivationDialog",mixins:[h],propTypes:{onConfirm:g.PropTypes.func,onCancel:g.PropTypes.func},renderLayers:function(){return {dialog:g.createElement(i,g.__spread({},this.props),g.createElement(m,{showCloseButton:false},"Keep Ad Account?"),g.createElement(j,null,"You recently asked to deactivate your ad account. If you continue, your account will stay active"),g.createElement(l,null,g.createElement(k,{action:"cancel",label:"Cancel",onClick:this.props.onCancel}),g.createElement(k,{action:"confirm",use:"confirm",label:"Continue",onClick:this.props.onConfirm})))};},render:function(){return (g.createElement("div",null));}});e.exports=o;},null);
  __d("BoostedPostStatusToAction",["BoostedPostStatus","BoostedPostUpdateStatusActions","fbt","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k={getPrimaryAction:function(l){switch(l){case g.INACTIVE:return h.CREATE;case g.DRAFT:return h.SET_BUDGET;case g.PAUSED:return h.RESUME;case g.ACTIVE:case g.EXTENDABLE:return h.ADD_BUDGET;case g.EDITING:return h.EDIT;case g.FINISHED:return h.RECREATE;default:return h.NONE;}},getSecondaryAction:function(l){switch(l){case g.PENDING:case g.ACTIVE:case g.PENDING_FUNDING_SOURCE:return h.STOP;case g.DRAFT:return h.CLEAR_BUDGET;default:return h.NONE;}},getCloseButtonAction:function(){return h.NONE;},getPrimaryActionLabel:function(l,m){var n=this.getPrimaryAction(l);switch(n){case h.CREATE:if(m)return (i._("Boost for {budget}",[i.param("budget",m)]));return ("Boost");case h.SET_BUDGET:return ("Set Budget");case h.ADD_BUDGET:return ("Add Budget");case h.RESUME:return ("Resume");case h.NONE:return ("OK");case h.EDIT:return ("Save");case h.RECREATE:return ("Create New Boost");default:j(false);}},getSecondaryActionLabel:function(l){var m=this.getSecondaryAction(l);switch(m){case h.STOP:return ("Pause");case h.CLEAR_BUDGET:return ("Clear");case h.NONE:if(l===g.INACTIVE)return ("Cancel");return ("Close");default:j(false);}},getCloseButtonActionLabel:function(){return ("Cancel");},isPrimaryActionAvailable:function(l){if(l===g.ERROR||l===g.REJECTED||l===g.INSIGHTS)return false;return true;},isSecondaryActionAvailable:function(l){return l!==g.PAUSED;},shouldAddCloseButton:function(l){return l===g.ACTIVE;},isAsyncAction:function(l){if(l===h.CREATE||l===h.EDIT||l===h.ADD_BUDGET||l===h.STOP||l===h.RESUME)return true;return false;},getLogEvent:function(l,event){if(l===h.NONE)l='hide';return 'client_'+l+'_'+event;}};e.exports=k;},null);
  __d("XBoostedComponentsSubmissionControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/boosted_components\/dialog\/submission\/",{app_id:{type:"String",required:true},page_id:{type:"String",required:true}});},null);
  __d("XBoostedReactivateAccountActionControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/boosted_action\/dialog\/reactivate_account_action\/",{account_id:{type:"Int",required:true}});},null);
  __d("BoostedComponentSubmissionServerActions",["Arbiter","AsyncRequest","AsyncResponse","BoostedClientLogEventTypes","BoostedComponentDialogMode","BoostedComponentClientEvent","BoostedComponentSubmissionValidator","BoostedPostLogging","BoostedPostPlacementOptions","BoostedActionConfirmReactivationDialog.react","BoostedPostStatusToAction","PromotedPostConstants","DOM","XBoostedComponentsSubmissionControllerURIBuilder","React","XBoostedReactivateAccountActionControllerURIBuilder","URI"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){function x(y,z){"use strict";this.$BoostedComponentSubmissionServerActions0=y;this.$BoostedComponentSubmissionServerActions1=z;this.$BoostedComponentSubmissionServerActions2=[1775011,1775012];this.$BoostedComponentSubmissionServerActions3=s.create('div');}x.prototype.submit=function(y){"use strict";var z=new t().setString('page_id',this.$BoostedComponentSubmissionServerActions1.getPageID()).setString('app_id',this.$BoostedComponentSubmissionServerActions1.getAppID()).getURI();new h().setURI(z).setMethod('POST').setData({spec:JSON.stringify(y)}).setReadOnly(true).setHandler(this.$BoostedComponentSubmissionServerActions4.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActions5.bind(this)).send();};x.prototype.$BoostedComponentSubmissionServerActions4=function(y){"use strict";this.$BoostedComponentSubmissionServerActions0.handleUpdateFromServerResponse({actionType:l.SUBMIT_SUCCESS});};x.prototype.$BoostedComponentSubmissionServerActions5=function(y){"use strict";this.$BoostedComponentSubmissionServerActions0.handleUpdateFromServerResponse({actionType:l.SUBMIT_ERROR,data:y});};x.prototype.saveBoostPostHandler=function(y,z,aa,ba,ca){"use strict";this.$BoostedComponentSubmissionServerActions6=y;this.$BoostedComponentSubmissionServerActions7=z;this.$BoostedComponentSubmissionServerActions8=aa;this.$BoostedComponentSubmissionServerActions9=ba;this.$BoostedComponentSubmissionServerActionsa=ca;this.$BoostedComponentSubmissionServerActionsb=this.$BoostedComponentSubmissionServerActions1.getPlacement();this.$BoostedComponentSubmissionServerActionsc=Date.now();this.$BoostedComponentSubmissionServerActionsd(j.CLICK);var da=new m(this.$BoostedComponentSubmissionServerActions1,aa,this.$BoostedComponentSubmissionServerActionse(aa),this.$BoostedComponentSubmissionServerActionsf.bind(this),ca);da.checkFundingSource();};x.prototype.clearComposerBoost=function(y,z,aa){"use strict";this.$BoostedComponentSubmissionServerActions6=y;this.$BoostedComponentSubmissionServerActions8=z;g.inform(r.CLEAR_COMPOSER_BOOST);this.$BoostedComponentSubmissionServerActionsd(j.SUCCESS);aa();};x.prototype.$BoostedComponentSubmissionServerActionse=function(){"use strict";return w('/ads/ajax/boosted/check_funding_source.php').setQueryData({page_id:this.$BoostedComponentSubmissionServerActions1.getPageID(),post_id:this.$BoostedComponentSubmissionServerActions1.getPostID(),config:this.$BoostedComponentSubmissionServerActionsg(),ad_account_id:this.$BoostedComponentSubmissionServerActions8.getAdAccountID()});};x.prototype.$BoostedComponentSubmissionServerActionsf=function(){"use strict";if(this.$BoostedComponentSubmissionServerActionsb===o.COMPOSER){this.$BoostedComponentSubmissionServerActionsh();return;}this.$BoostedComponentSubmissionServerActionsi();};x.prototype.$BoostedComponentSubmissionServerActionsh=function(){"use strict";var y={budgetLabel:this.$BoostedComponentSubmissionServerActions8.getBudgetLabel(),formData:{boosted_post_config:this.$BoostedComponentSubmissionServerActionsg()}};this.$BoostedComponentSubmissionServerActions9();g.inform(r.SET_COMPOSER_BOOST,y);this.$BoostedComponentSubmissionServerActionsd(j.SUCCESS,{new_value:y.formData.boosted_post_config});};x.prototype.$BoostedComponentSubmissionServerActionsi=function(){"use strict";var y=JSON.parse(this.$BoostedComponentSubmissionServerActionsg());this.$BoostedComponentSubmissionServerActionsj(w('/ads/ajax/boosted/create.php'),{page_id:this.$BoostedComponentSubmissionServerActions1.getPageID(),post_id:this.$BoostedComponentSubmissionServerActions1.getPostID(),config:this.$BoostedComponentSubmissionServerActionsg(),placement:y.placement,litestand:true,dialog_mode:k.CREATE});};x.prototype.$BoostedComponentSubmissionServerActionsj=function(y,z){"use strict";this.$BoostedComponentSubmissionServerActionsd(j.SUBMIT);new h(y).setData(z).setHandler(this.$BoostedComponentSubmissionServerActionsk.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActionsl.bind(this)).setMethod('POST').send();};x.prototype.$BoostedComponentSubmissionServerActionsk=function(y){"use strict";this.$BoostedComponentSubmissionServerActionsd(j.SUCCESS,{processing_time:Date.now()-this.$BoostedComponentSubmissionServerActionsc});this.$BoostedComponentSubmissionServerActions9();var z=document.getElementById(this.$BoostedComponentSubmissionServerActions7);s.replace(z,y.payload);};x.prototype.$BoostedComponentSubmissionServerActionsl=function(y){"use strict";this.$BoostedComponentSubmissionServerActionsd(j.FAIL,{coded_exception_code:y.error});if(this.$BoostedComponentSubmissionServerActions2.indexOf(y.error)>-1){this.$BoostedComponentSubmissionServerActionsm(true,y);}else{this.$BoostedComponentSubmissionServerActionsa();i.defaultErrorHandler(y);}};x.prototype.$BoostedComponentSubmissionServerActionsn=function(y){"use strict";var z=new v().setInt('account_id',this.$BoostedComponentSubmissionServerActions8.getAdAccountID()).getURI();new h(z).setMethod('POST').setHandler(function(aa){this.$BoostedComponentSubmissionServerActionsm(false);if(aa.payload.success){this.$BoostedComponentSubmissionServerActionsi();}else{this.$BoostedComponentSubmissionServerActionsa();i.defaultErrorHandler(y);}}.bind(this)).send();};x.prototype.$BoostedComponentSubmissionServerActionsm=function(y,z){"use strict";u.render(u.createElement(p,{width:450,shown:y,onConfirm:this.$BoostedComponentSubmissionServerActionsn.bind(this,z),onCancel:this.$BoostedComponentSubmissionServerActionsa.bind(this)}),this.$BoostedComponentSubmissionServerActions3);};x.prototype.$BoostedComponentSubmissionServerActionsg=function(){"use strict";var y=this.$BoostedComponentSubmissionServerActions8.getConfig();y.setPlacement(this.$BoostedComponentSubmissionServerActionsb);return y.getJSONString();};x.prototype.$BoostedComponentSubmissionServerActionsd=function(event,y){"use strict";n.log(q.getLogEvent(this.$BoostedComponentSubmissionServerActions6,event),this.$BoostedComponentSubmissionServerActionso(y));};x.prototype.$BoostedComponentSubmissionServerActionso=function(y){"use strict";var z=y||{};z.page_id=this.$BoostedComponentSubmissionServerActions1.getPageID();z.post_id=this.$BoostedComponentSubmissionServerActions1.getPostID();z.ad_account_id=this.$BoostedComponentSubmissionServerActions8.getAdAccountID();z.placement=this.$BoostedComponentSubmissionServerActionsb;return z;};e.exports=x;},null);
  __d("XBoostedComponentFetchDialogDataControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/boosted_components\/fetch_dialog_data\/",{app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},ref:{type:"String",required:true}});},null);
  __d("BoostedComponentDialogRenderServerActions",["AsyncRequest","BoostedComponentClientEvent","XBoostedComponentFetchDialogDataControllerURIBuilder"],function(a,b,c,d,e,f,g,h,i){function j(k,l){"use strict";this.$BoostedComponentDialogRenderServerActions0=k;this.$BoostedComponentDialogRenderServerActions1=l;}j.prototype.fetchDialogData=function(){"use strict";var k=new i().setInt('app_id',this.$BoostedComponentDialogRenderServerActions1.getAppID()).setInt('page_id',this.$BoostedComponentDialogRenderServerActions1.getPageID()).setInt('post_id',this.$BoostedComponentDialogRenderServerActions1.getPostID()).setString('ref',this.$BoostedComponentDialogRenderServerActions1.getPlacement()).getURI();new g(k).setHandler(function(l){this.$BoostedComponentDialogRenderServerActions0.handleUpdateFromServerResponse({actionType:h.DATA_LOADED,data:l.payload});}.bind(this)).setErrorHandler(function(){this.$BoostedComponentDialogRenderServerActions0.handleUpdateFromServerResponse({actionType:h.FETCH_CONFIG_DATA_FAILED});}.bind(this)).send();};e.exports=j;},null);
  __d("BoostedComponentDialogRenderViewActions",["BoostedComponentClientEvent"],function(a,b,c,d,e,f,g){'use strict';function h(i){this.$BoostedComponentDialogRenderViewActions0=i;}h.prototype.onMouseEnter=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.ON_MOUSE_ENTER});};h.prototype.onUpsellButtonClick=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.ON_UPSELL_BUTTON_CLICK});};h.prototype.onAutoOpen=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.ON_AUTO_OPEN});};h.prototype.onCreateDialogClose=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.CREATE_DIALOG_CLOSE});};h.prototype.onDialogCancelButtonClick=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.ON_DIALOG_CANCEL_BUTTON_CLICK});};h.prototype.onDialogSubmitSuccess=function(){this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:g.SUBMIT_SUCCESS});};e.exports=h;},null);
  __d("BoostedComponentBaseStore",["ArbiterMixin","mixin"],function(a,b,c,d,e,f,g,h){'use strict';var i=h(g);for(var j in i)if(i.hasOwnProperty(j))l[j]=i[j];var k=i===null?null:i.prototype;l.prototype=Object.create(k);l.prototype.constructor=l;l.__superConstructor__=i;function l(){if(i!==null)i.apply(this,arguments);}l.prototype.getDispatchToken=function(){return this.dispatchToken;};e.exports=l;},null);
  __d("BoostedComponentContextStore",["BoostedComponentBaseStore","BoostedComponentConfigPayload","BoostedComponentDataState","BoostedComponentClientEvent","invariant"],function(a,b,c,d,e,f,g,h,i,j,k){for(var l in g)if(g.hasOwnProperty(l))n[l]=g[l];var m=g===null?null:g.prototype;n.prototype=Object.create(m);n.prototype.constructor=n;n.__superConstructor__=g;function n(o){"use strict";this.$BoostedComponentContextStore0=i.NOT_INITIALIZED;this.dispatchToken=o.register(function(p){var q=p.action;switch(q.actionType){case j.INIT_DATA_LOADED:case j.DATA_LOADED:if(this.$BoostedComponentContextStore0==i.NOT_INITIALIZED){var r=q.data[h.CONTEXT_STORE_DATA];this.$BoostedComponentContextStore1=r.appID;this.$BoostedComponentContextStore2=r.userID;this.$BoostedComponentContextStore3=r.userHash;this.$BoostedComponentContextStore4=r.pageID;this.$BoostedComponentContextStore5=r.postInfo.id;this.$BoostedComponentContextStore6=r.postInfo.type;this.$BoostedComponentContextStore7=r.placement;}this.$BoostedComponentContextStore0=i.ACTIVE;this.inform('change');break;}}.bind(this));}n.prototype.getAppID=function(){"use strict";return this.$BoostedComponentContextStore1;};n.prototype.getUserID=function(){"use strict";return this.$BoostedComponentContextStore2;};n.prototype.getUserHash=function(){"use strict";return this.$BoostedComponentContextStore3;};n.prototype.getPageID=function(){"use strict";return this.$BoostedComponentContextStore4;};n.prototype.getPostID=function(){"use strict";k(this.$BoostedComponentContextStore5!==null);return this.$BoostedComponentContextStore5;};n.prototype.getPostType=function(){"use strict";return this.$BoostedComponentContextStore6;};n.prototype.getPlacement=function(){"use strict";k(this.$BoostedComponentContextStore7!==null);return this.$BoostedComponentContextStore7;};e.exports=n;},null);
  __d("AdsCMActionCategories",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){'use strict';var h='ADS_CM_CATEGORY_',i={API_CALL:null,CLEANUP:null,EDIT:null,EDIT_DRAFT:null,ERROR:null,HELP:null,LOAD_DATA:null,STATE_CHANGE:null,VIEW_PERSIST:null},j=g.createActionTypeMap(h,i);e.exports=j;},null);
  __d("AdsCMLoggerActions",["AdsCMActionCategories","AdsCMErrorTypes","AdsDispatcher","ErrorUtils"],function(a,b,c,d,e,f,g,h,i,j){var k=false,l=[];function m(o,p,q){var r=j.normalizeError(o),s=Object.assign({message:r.message,stack_trace:r.stack},q);n.log(p,s,g.ERROR);}var n={log:function(o,p,q,r){p.action_time=Date.now();var s={actionType:o,category:q,payloadSource:r,logData:p};if(k){i.addPostDispatchCallback(function(){i.handleUpdateFromServerResponse(s);});}else l.push(s);},setLoggerStoreReady:function(){l.forEach(function(o){i.addPostDispatchCallback(function(){i.handleUpdateFromServerResponse(o);o=null;});});l=null;k=true;},logFatal:function(o,p){m(o,h.FATAL,p);},logException:function(o,p){m(o,h.EXCEPTION,p);},logUserError:function(o,p){m(o,h.USER_ERROR,p);},logAPIError:function(o,p){var q=Object.assign({message:o.error.message,endpoint:o.path,call_name:o.name,params:JSON.stringify(o.params)},p);n.log(h.API_ERROR,q,g.ERROR);}};e.exports=n;},null);
  __d("AdsCMStateConfig",["AdsCMPageValues","AdsCMTabValues","AdsCMURLParams"],function(a,b,c,d,e,f,g,h,i){'use strict';var j,k={SELECTED_IDS:{defaultValue:{}},SELECTED_COUNT:{defaultValue:0},ACCOUNT_ID:{hashable:true},OFFSET:{hashable:true},CURRENT_IDS:{hashable:true},FILTER:{hashable:true},SORT:{hashable:true},PAGE:{hashable:true,defaultValue:g.HOME_PAGE,values:g},PAGE_ID:{defaultValue:0,hashable:true},TAB_HASHES:{},TAB:{hashable:true,values:h},CAMPAIGN_GROUP:{hashable:true},CAMPAIGN:{hashable:true},OBJECTIVE:{hashable:true},TARGETING_SPEC:{hashable:true},TRANSACTION_ID:{hashable:true},TRANSACTION_TYPE:{hashable:true},getKey:function(m){return k[m]._name;},getAllKeys:function(){if(j)return j;j=[];for(var m in k)if(typeof k[m]!=='function')j.push(m);return j;},getURLParamKey:function(m){if(!this._stateToURLParamMap){this._stateToURLParamMap={};this._stateToURLParamMap[this.getKey('PAGE')]=i.PAGE;this._stateToURLParamMap[this.getKey('PAGE_ID')]=i.PAGE_ID;this._stateToURLParamMap[this.getKey('SORT')]=i.SORT;this._stateToURLParamMap[this.getKey('CURRENT_IDS')]=i.CURRENT_IDS;this._stateToURLParamMap[this.getKey('TAB')]=i.TAB;this._stateToURLParamMap[this.getKey('ACCOUNT_ID')]=i.ACCOUNT_ID;this._stateToURLParamMap[this.getKey('CAMPAIGN_GROUP')]=i.CAMPAIGN;this._stateToURLParamMap[this.getKey('CAMPAIGN')]=i.AD_SET;this._stateToURLParamMap[this.getKey('OBJECTIVE')]=i.OBJECTIVE;this._stateToURLParamMap[this.getKey('TARGETING_SPEC')]=i.TARGETING_SPEC;this._stateToURLParamMap[this.getKey('TRANSACTION_ID')]=i.TRANSACTION_ID;this._stateToURLParamMap[this.getKey('TRANSACTION_TYPE')]=i.TRANSACTION_TYPE;}return this._stateToURLParamMap[m];}};for(var l in k){if(!k[l])k[l]={};k[l]._name=l;}e.exports=k;},null);
  __d("XAdsCMControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/manager\/{?page}\/{?tab}\/",{tab:{type:"Enum"},page:{type:"Enum"},act:{type:"Int"},ids:{type:"String"},campaign:{type:"Int"},ad_set:{type:"Int"},no_redirect:{type:"Bool"},objective:{type:"String"},targeting_spec:{type:"String"},channel:{type:"String"},tip:{type:"String"},validate:{type:"Int"},invalidate:{type:"Int"},cache:{type:"Int"},txid:{type:"String"},tx_type:{type:"Int"}});},null);
  __d("AdsCMURIUtil",["AdsCMLoggerActions","AdsCMPageValues","AdsCMStateConfig","AdsCMTabUserFacingValues","AdsCMTabValues","AdsCMURLParams","AdsCMURLValuesMap","AdsShortURLConstants","GraphAPI","URI","XAdsCMControllerURIBuilder","adsCMGKCheck","invariant","md5"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';var u=new q().getURI().getPath(),v={},w={},x=function(ea){return ea;},y=new p(window.location.href);w[i.getKey('ACCOUNT_ID')]={name:'act'};w[i.getKey('PAGE')]={name:'page'};w[i.getKey('PAGE_ID')]={name:'pid'};w[i.getKey('TAB')]={name:'tab'};w[i.getKey('SORT')]={name:'sort'};w[i.getKey('OFFSET')]={name:'offset'};w[i.getKey('CURRENT_IDS')]={name:'id',transformToQuery:function(ea){return ea.join(',');},transformToState:function(ea){return ea.split(',');}};w[i.getKey('OFFSET')]={name:'offset'};w[i.getKey('TRANSACTION_ID')]={name:'txid'};w[i.getKey('TRANSACTION_TYPE')]={name:'tx_type'};for(var z in w){var aa=w[z];aa.transform=aa.transformToQuery||x;v[aa.name]={name:z,transform:aa.transformToState||x};}function ba(ea,fa){var ga={};for(var ha in fa){var ia=fa[ha],ja=ea[ha];if(ja&&ia!=null)ga[ja.name]=ja.transform(ia);}return ga;}function ca(ea){if(ea in m)return m[ea];return ea;}var da={BASE_PATH:u,MAX_URI_LENGTH:1500,areSameURIs:function(ea,fa){return ea.getUnqualifiedURI().toString()===fa.getUnqualifiedURI().toString();},isCMLink:function(ea){return ea.getPath().startsWith(u);},_getInternalPageValue:function(ea){for(var fa in m)if(m[fa]===ea)return fa;return ea;},_getInternalTabValue:function(ea,fa){for(var ga in m)if(m[ga]===ea)if(ea===j.OVERVIEW_TAB){switch(fa){case h.HOME_PAGE:return k.OVERVIEW_ACCOUNT_TAB;case h.CAMPAIGN_GROUP_PAGE:return k.OVERVIEW_CAMPAIGN_GROUP_TAB;case h.CAMPAIGN_PAGE:return k.OVERVIEW_CAMPAIGN_TAB;case h.ADGROUP_PAGE:return k.OVERVIEW_ADGROUP_TAB;default:s(false);}}else return ga;return ea;},generateURI:function(ea){var fa=new p(u);fa.setQueryData(ba(w,ea));return fa;},getStateFromURI:function(ea){var fa=ea.getQueryData();return ba(v,fa);},getPageIDFromURI:function(ea){var fa=ea.getQueryData();return fa.pid;},getParamsFromURI:function(ea){var fa=ea.getQueryData(),ga=ea.getPath().split('/');if(ga[3]){fa[l.PAGE]=this._getInternalPageValue(ga[3]);if(ga[4])fa[l.TAB]=this._getInternalTabValue(ga[4],fa[l.PAGE]);}return fa;},getURIFromQueryData:function(ea,fa){var ga=Object.assign({},ea),ha=u;if(ga[l.PAGE]){ha+=ca(ga[l.PAGE])+'/';delete ga[l.PAGE];if(ga[l.TAB]){ha+=ca(ga[l.TAB])+'/';delete ga[l.TAB];}}var ia=new p(ha);ia.setQueryData(ga);if(ia.toString().length>this.MAX_URI_LENGTH&&ga[l.CURRENT_IDS]&&!this.isValidHash(ga[l.CURRENT_IDS])){var ja=this._createHashForIDs(ga[l.CURRENT_IDS].split(n.IDS_SEPARATOR),fa);ga[l.CURRENT_IDS]=ja;ia.setQueryData(ga);}return ia;},isValidHash:function(ea){return ea.length===33&&!!ea.match(n.HASH_INDICATOR+"[a-z0-9]{32}");},_createHashForIDs:function(ea,fa){var ga=ea.sort(),ha=t(ga.join(n.IDS_SEPARATOR)),ia=r('ads_cm_graph_api_2_2')?o('2.2'):o('1.0');ia.account(fa).edge('short_urls').post({current_ids:JSON.stringify(ea)})['catch'](function(ja){g.logException(new Error('Unable to create hash for current IDs'));});return n.HASH_INDICATOR+ha;},getInitialLoadURI:function(){return y;},getInitialLoadQueryData:function(){return da.getParamsFromURI(y);},getParamsForCurrentURI:function(){return da.getParamsFromURI(p());},getCarryForwardURLParams:function(){var ea={},fa=[l.NO_REDIRECT,l.SHOW_LOG,l.REACT_PERF,l.AYMT_CACHE,l.AYMT_CHANNEL,l.AYMT_INVALIDATE,l.AYMT_TIP,l.AYMT_VALIDATE],ga=da.getInitialLoadQueryData();fa.forEach(function(ha){if(ga[ha])ea[ha]=ga[ha];});return ea;}};e.exports=da;},null);
  __d("AdsApplicationUtils",["AdsCMURIUtil","URI"],function(a,b,c,d,e,f,g,h){'use strict';var i={isCampaignManager:function(){var j=g.BASE_PATH,k=g.BASE_PATH;if(j.endsWith('/')){k=j.slice(0,j.length-1);}else j+='/';var l=h.getRequestURI().getPath();return l===k||l.startsWith(j);}};e.exports=i;},null);
  __d("AdCreativeType",["AdsApplicationUtils","adsGKCheck","AdsUtils","bolt/util","fbt"],function(a,b,c,d,e,f,g,h,i,j,k){var l={FACEBOOK_ADS:'facebook_ads',SPONSORED_STORIES:'sponsored_stories'},m={1:'Standard',2:'Fan',3:'RSVP',4:'Platform Context',5:'Social Poll',6:'Comment',7:'Sample',8:'App Share Story',9:'Legacy Page Like Story',10:'Check-In Story',12:'Premium Standard',13:'Premium Fan',14:'Premium Event',15:'Premium Platform',16:'App Used Story',17:'Legacy Page Post Like Story',18:'Buy with Friends Story',19:'Domain Story',20:'Questions Vote Story',21:'Questions',24:'Page Endorsement',25:'Action Spec',27:'Page Post Ad',32:'Mobile App Install Ad',34:'Multi-Video Ad',35:'Instagram Ad',999:'Invalid',1001:'Offer Claimed Story',1002:'Game Played Story',1003:'Specific Page Post Like Story',1004:'Specific Page Post Comment Story',1005:'Specific Page Post Share Story',1006:'Event RSVP Story',1007:'Page Checkin Story',1008:'Wall Post Story',1009:'Page Like Story',1010:'Share From App Story',1011:'Page Post Like Story',1012:'Page Subscribe Story',1013:'Domain Share Story',1014:'Question Vote Story',1999:'Other'},n={STANDARD:1,INLINE_FAN:2,INLINE_RSVP:3,PLATFORM_CONTEXT:4,SOCIAL_POLL:5,COMMENT:6,SAMPLE:7,BASS_PLATFORM_STORY:8,BASS_PAGE_CONNECTIONS:9,BASS_PAGE_CHECKINS:10,PREMIUM_STANDARD:12,PREMIUM_FAN:13,PREMIUM_EVENT:14,PREMIUM_PLATFORM:15,BASS_APP_CONNECTIONS:16,BASS_ENGAGEMENT:17,BASS_LINK_SHARE:19,BASS_QUESTIONS_VOTE:20,QUESTIONS:21,PAGE_ENDORSEMENT:24,QUERY_BASED:25,PAGE_POSTS_V2:27,CONTEXTUAL_APP_AD:32,MULTI_VIDEO:34,INSTAGRAM_AD:35,FEED_URL:101,NEKO_LPP:102,AD_VIDEO:103,EXOTIC_OR_INVALID:999,OFFER_CLAIMED_STORY:1001,GAME_PLAYED_STORY:1002,SPECIFIC_POST_LIKE_STORY:1003,SPECIFIC_POST_COMMENT_STORY:1004,SPECIFIC_POST_SHARE_STORY:1005,EVENT_RSVP_STORY:1006,PAGE_CHECKIN_STORY:1007,WALL_POST_STORY:1008,PAGE_LIKE_STORY:1009,APP_USER_ACTION_STORY:1010,PAGE_POST_LIKE_STORY:1011,PAGE_SUBSCRIBE_STORY:1012,DOMAIN_SHARE_STORY:1013,QUESTION_VOTE_STORY:1014,OTHER:1999};f.__TEST__={};f.__TEST__.AD_CREATIVE_TYPE_TS=m;var o={8:1010,9:1009,10:1007,17:1011,19:1013,20:1014},p=[n.PAGE_POSTS_V2,n.SPECIFIC_POST_LIKE_STORY,n.SPECIFIC_POST_COMMENT_STORY,n.SPECIFIC_POST_SHARE_STORY],q=[8,9,10,16,17,19,20,25,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1999];function r(ja){return m[ja]||m[1];}var s=/[^a-z]/g;function t(ja){ja=ja.toLowerCase().replace(s,'');var ka=1;for(var la in m){var ma=m[la];ma=ma.toLowerCase().replace(s,'');if(ma==ja){ka=la;break;}}return ka;}function u(ja){return q.indexOf(1*ja)!=-1;}function v(ja){return u(ja)?l.SPONSORED_STORIES:l.FACEBOOK_ADS;}function w(ja){return o[ja];}function x(ja){return !!o[ja];}function y(ja){return ja>n.EXOTIC_OR_INVALID;}function z(ja){var ka=v(ja);return ka===l.SPONSORED_STORIES;}function aa(ja){return ja===n.CONTEXTUAL_APP_AD;}f.is_bass_type=u;f.getCategoryByCreativeType=v;f.id2string=r;f.string2id=t;f.AD_CREATIVE_TYPE=n;f.AD_CREATIVE_CATEGORY=l;f.AD_CREATIVE_BASS_TYPE_ARR=q;f.CREATIVES_WITH_STORY_ID=p;f.getActionSpecTypeAdForLegacyBass=w;f.isLegacyBassType=x;f.isQueryBasedSponsoredStory=y;f.isSponsoredStory=z;f.isLegacyNekoType=aa;var ba=f.keyToType={STORY_APP_SHARE:{id:8,name:k._("Stories about their friends sharing {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','urlTags']},STORY_APP_USED:{id:16,name:k._("Stories about their friends using {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','urlTags']},STORY_PAGE_LIKE:{id:9,name:k._("Stories about their friends liking {page_name}",[k.param("page_name",'{page_name}')])},STORY_PAGE_POST:{id:11,name:"When people post on my Page"},STORY_CHECKIN:{id:10,name:k._("Stories about their friends checking in {place_name}",[k.param("place_name",'{place_name}')])},STORY_DOMAIN_SHARE:{id:19,name:k._("Stories about their friends sharing {domain_name}",[k.param("domain_name",'{domain_name}')]),validFields:['objectId','urlTags']},STORY_QUERY_BASED:{id:25,name:"Query Based Story",requiredFields:['actionSpec'],validFields:['objectId','actionSpec','urlTags']},AD_EXTERNAL_URL:{id:1,name:k._("A new ad about {url}",[k.param("url",'{url}')]),validFields:['title','body','linkUrl','imageUrl','imageHash','relatedFanPage'],requiredFields:['title','body','linkUrl',['imageUrl','imageHash']]},FEED_URL:{id:101,validFields:['title','body','linkUrl','imageUrl','imageHash','storyId'],requiredFields:['actor','title','body','linkUrl',['imageUrl','imageHash']]},AD_FAN_LIKE:{id:2,name:k._("A new ad about {page_name}",[k.param("page_name",'{page_name}')]),validFields:['objectId','title','body','linkUrl','imageUrl','imageHash'],requiredFields:['objectId','body']},AD_EVENT_RSVP:{id:3,name:k._("A new ad about {event_name}",[k.param("event_name",'{event_name}')]),validFields:['objectId','body','imageUrl','imageHash'],requiredFields:['objectId','body',['imageUrl','imageHash']]},AD_APPLICATION:{id:4,name:k._("A new ad about {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','title','body','imageUrl','imageHash','linkUrl','urlTags'],requiredFields:['objectId','body',['imageUrl','imageHash']]},AD_PAGE_POST:{id:27,name:"Just my post",validFields:['objectId','autoUpdate','storyId','urlTags'],requiredFields:['objectId','storyId']},MOBILE_APP_INSTALL:{id:32,name:k._("Create a mobile ad about {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','mobileStoreContentId','videoId'],requiredFields:['objectId',['imageUrl','imageHash']]},MOBILE_APP_ENGAGEMENT:{id:32,name:k._("Create a mobile ad about {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','mobileApplinkSpec','mobileProductName','callToActionType'],requiredFields:['objectId',['imageUrl','imageHash']]},CANVAS_APP_INSTALL_ENGAGEMENT:{id:32,name:k._("Create a desktop ad about {app_name}",[k.param("app_name",'{app_name}')]),validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','urlTags','linkUrl'],requiredFields:['objectId',['imageUrl','imageHash']]},NEKO_LPP:{id:102,validFields:['body','callToActionType','imageHash','imageUrl','linkUrl','mobileProductName','storyId','title','videoId'],requiredFields:['callToActionType','linkUrl',['imageUrl','videoId']]}};if(h('ads_cf_video_objective'))ba.AD_VIDEO={id:103,validFields:['body','callToActionType','videoId'],requiredFields:['body','videoId']};if(!g.isCampaignManager()){ba.AD_EVENT_RSVP.validFields.push('linkUrl');ba.AD_EVENT_RSVP.requiredFields.push('linkUrl');}else ba.AD_EVENT_RSVP.validFields.push('title');var ca=j.values(ba);f.idToType=i.indexedMap(ca,'id');var da=i.pluckPreserveKey(ba,'id'),ea={};for(var fa=0;fa<ca.length;++fa){var ga=ca[fa].validFields;if(ga)for(var ha=0;ha<ga.length;++ha)ea[ga[ha]]=true;}var ia=Object.keys(ea);ia.push('id','type','imageCrops');ia.sort();f.ALL_CREATIVE_API_FIELDS=ia;f.isValidApiProperty=function(ja){return !!ea[ja];};f.fieldIsValid=function(ja,ka){var la=f.idToType[ka];if(!la)return false;if(!la.validFields)return ['objectId','storyId'].indexOf(ja)>=0;return la.validFields.indexOf(ja)>=0;};f.requiredFieldsForType=function(ja){var ka=f.idToType[ja];return ka?(ka.requiredFields||[]):[];};f.group={SS:[da.STORY_PAGE_LIKE,da.STORY_PAGE_POST,da.STORY_QUERY_BASED,da.STORY_CHECKIN,da.STORY_DOMAIN_SHARE,da.STORY_APP_SHARE,da.STORY_APP_USED]};},null);
  __d("AdsPageTypes",["ImmutableObject"],function(a,b,c,d,e,f,g){var h={DESKTOP_FEED:'desktopfeed',MOBILE_FEED:'mobilefeed',MOBILE_EXTERNAL:'mobileexternal',RIGHT_COLUMN:'rightcolumn',HOME:'home',INSTAGRAM_STREAM:'instagramstream',LOGOUT:'logout',LEGACY_EXTERNAL:'legacyexternal',ALL:'all',INVALID:'invalid-page-type',NONE:'none',DESKTOP:'desktop',DESKTOP_AND_MOBILE_AND_EXTERNAL:'desktop-and-mobile-and-external',FEED:'feed',FEED_AND_EXTERNAL:'feed-and-external',MOBILE:'mobile',MOBILE_FEED_AND_EXTERNAL:'mobilefeed-and-external',RIGHT_COLUMN_AND_MOBILE:'rightcolumn-and-mobile',RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL:'rightcolumn-and-mobile-and-external'};h.DEPRECATED={EXTERNAL:'external',MOBILE_EXTERNAL_ONLY:'mobile-external-only',DESKTOP_EXTERNAL_ONLY:'desktop-external-only'};e.exports=new g(h);},null);
  __d("ads-mobile-platforms",["AdsPEImportExportConstants","AdsPageTypes","AdsTargetingExtendedDevices","bolt/util","StrSet","fbt","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=b('AdCreativeType').AD_CREATIVE_TYPE,n=/(.*)_ver_(.*)_and_above/,o={IPHONE:'iPhone',IPOD:'iPod',IPAD:'iPad',ANDROID_SMARTPHONE:'Android_Smartphone',ANDROID_TABLET:'Android_Tablet',DESKTOP_CANVAS:'Desktop_Canvas',AMAZON:'amazon'},p=[{name:"Smartphones",id:o.ANDROID_SMARTPHONE},{name:"Tablets",id:o.ANDROID_TABLET}],q=new k(p.map(function(da){return da.id;})),r=[{name:"iPhone",id:o.IPHONE},{name:"iPod",id:o.IPOD},{name:"iPad",id:o.IPAD}],s=new k(r.map(function(da){return da.id;}));function t(da){return (s.contains(da)||!!i.iOS[da]);}function u(da){return (q.contains(da)||!!i.Android[da]);}function v(da,ea){var fa;if(da===w.IOS){fa=t;}else if(da===w.ANDROID){fa=u;}else fa=function(ga){return false;};return ea.filter(fa);}var w={IOS:g.OS.IOS,ANDROID:g.OS.ANDROID,FEATURE_DEPRECATED:g.OS.FEATURE_DEPRECATED,FEATURE:g.OS.FEATURE,FB_CANVAS:g.OS.FB_CANVAS,WINDOWS:g.OS.WINDOWS},x={ALL:'All',SPECIFIC:'Specific'},y={WIFI:'Wifi','3G':'3G'},z=[h.DESKTOP_AND_MOBILE_AND_EXTERNAL,h.FEED,h.FEED_AND_EXTERNAL,h.MOBILE,h.MOBILE_FEED_AND_EXTERNAL,h.RIGHT_COLUMN_AND_MOBILE,h.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL,h.DEPRECATED.EXTERNAL,h.DEPRECATED.MOBILE_EXTERNAL_APPS,h.DEPRECATED.MOBILE_EXTERNAL_ONLY];function aa(da){return (!da||da.length===0||j.intersect(z,da).length>0);}function ba(da){if(j.contains([m.STANDARD,m.INLINE_RSVP,m.PLATFORM_CONTEXT],da.type()))return false;return aa(da.page_types());}function ca(da){if(Array.isArray(da))da=da[0];if(!da)return {os:null,minimumVersion:null};var ea=da.match(n);if(ea&&ea.length>2){return {os:ea[1],minimumVersion:ea[2]};}else return {os:da,minimumVersion:null};}f.userOSRegex=n;f.deviceTypes=o;f.IOS_DEVICES=r;f.ANDROID_DEVICES=p;f.isIosDevice=t;f.isAndroidDevice=u;f.splitOSVersion=ca;f.filterDevicesCompatibleWithOS=v;f.operatingSystems=w;f.carriers=y;f.deviceAll=x;f.hasValidPageTypesForPlatformTargeting=aa;f.canUsePlatformTargeting=ba;},null);
  __d("ads-app-platforms",["arrayContains","fbt","invariant","ads-mobile-platforms"],function(a,b,c,d,e,f,g,h,i,j){var k=j.deviceTypes,l=j.operatingSystems,m={WEB:1,CANVAS:2,MOBILE_WEB:3,IPHONE:4,IPAD:5,ANDROID:6,IOS:7,DESKTOP_CANVAS:8,WINDOWS:9,AMAZON:10},n={INVALID:0,CANVAS:1,MOBILE_CANVAS:2,MOBILE_NATIVE:3},o={0:"The app does not support any mobile platforms",1:"Canvas",2:"Mobile Canvas",3:"Mobile Native"},p={ITUNES:'itunes',ITUNES_IPAD:'itunes_ipad',GOOGLE_PLAY:'google_play',WINDOWS_STORE:'windows_store',FB_CANVAS:'fb_canvas',AMAZON:'amazon_app_store'},q={FB_APPLICATION_ONLY:'application',FB_MOBILE_STORE_ONLY:'mobile_store',FB_MOBILE_STORE_WITH_BACKING_APP:'mobile_store_with_matching_application'},r={};r[m.IOS]="iTunes";r[m.IPAD]="iTunes for iPad";r[m.ANDROID]="Google Play";r[m.DESKTOP_CANVAS]="Facebook Canvas";r[m.AMAZON]="Amazon Appstore";var s={};s[p.ITUNES]="iTunes";s[p.ITUNES_IPAD]="iTunes for iPad";s[p.GOOGLE_PLAY]="Google Play";s[p.FB_CANVAS]="Facebook Canvas";s[p.AMAZON]="Amazon Appstore";var t={};t[n.INVALID]="The app does not support any native mobile platforms";t[m.IPHONE]="iPhone";t[m.IPAD]="iPad";t[m.ANDROID]="Android";t[m.IOS]="iOS";t[m.CANVAS]="Canvas";t[m.WINDOWS]="Windows";t[m.AMAZON]="Amazon";var u={};u[m.ANDROID]=p.GOOGLE_PLAY;u[m.CANVAS]=p.FB_CANVAS;u[m.DESKTOP_CANVAS]=p.FB_CANVAS;u[m.IOS]=p.ITUNES;u[m.IPAD]=p.ITUNES_IPAD;u[m.IPHONE]=p.ITUNES;u[m.WINDOWS]=p.WINDOWS_STORE;u[n.INVALID]='';u[m.AMAZON]=p.AMAZON;var v={};v[p.ITUNES]=m.IPHONE;v[p.ITUNES_IPAD]=m.IPAD;v[p.GOOGLE_PLAY]=m.ANDROID;v[p.FB_CANVAS]=m.CANVAS;v[p.WINDOWS_STORE]=m.WINDOWS;v[p.AMAZON]=m.AMAZON;var w={};w[l.ANDROID]=m.ANDROID;w[l.IOS]=m.IOS;var x={};x[l.ANDROID]=p.GOOGLE_PLAY;x[l.IOS]=p.ITUNES;function y(ta,ua){return ta.filter(function(va){return g(ua,va);});}function z(ta){ta=ta||{};var ua=[];Object.keys(m).forEach(function(va){var wa=m[va];if(ta[va.toLowerCase()])ua.push(wa);});return ua;}function aa(ta,ua){return !!y(ta,ua).length;}function ba(ta){if(!ta)return [];return ta.supported_platforms()||[];}function ca(ta){var ua=[],va=ba(ta);if(aa(va,[m.IPHONE,m.IPAD]))ua.push(l.IOS);if(aa(va,[m.ANDROID,m.AMAZON]))ua.push(l.ANDROID);return ua;}function da(ta){if(!ta||!ta.length)return false;return ta.some(function(ua){return (ua===m.CANVAS||ua===m.DESKTOP_CANVAS);});}function ea(ta){return g([m.IPHONE,m.IPAD,m.ANDROID,m.IOS,m.WINDOWS,m.AMAZON],ta);}function fa(ta){if(!ta||!ta.length)return false;return ta.some(ea);}function ga(ta,ua){var va=v[ua];return ha(ta,va);}function ha(ta,ua){return {mobileStore:u[ua],appPlatformValue:ua,storeId:ta[ua],contentType:'application'};}function ia(ta){var ua=[];ta=ta||{};function va(xa){ua.push(ja(xa));}var wa=m.IPAD in ta;if(m.IPHONE in ta)va(wa?m.IPHONE:m.IOS);if(wa)va(m.IPAD);if(m.ANDROID in ta)va(m.ANDROID);if(m.WINDOWS in ta)va(m.WINDOWS);if(m.AMAZON in ta)va(m.AMAZON);if(ua.length===0)va(n.INVALID);return ua;}function ja(ta){return {value:u[ta],text:t[ta]};}function ka(ta){return [{value:ta,text:t[v[ta]]}];}function la(ta,ua){switch(ta){case p.ITUNES:if(m.IPAD in ua)return [k.IPHONE,k.IPOD];return [k.IPHONE,k.IPOD,k.IPAD];case p.ITUNES_IPAD:return [k.IPAD];case p.GOOGLE_PLAY:return [];case p.WINDOWS_STORE:return [];case p.FB_CANVAS:return [];default:i(false);}}function ma(ta,ua){return {os:na(ta),devices:la(ta,ua)};}function na(ta){if(!ta)return;switch(ta){case p.ITUNES:case p.ITUNES_IPAD:return l.IOS;case p.GOOGLE_PLAY:return l.ANDROID;case p.WINDOWS_STORE:return l.WINDOWS;case p.FB_CANVAS:return l.FB_CANVAS;case p.AMAZON:return l.ANDROID;default:i(false);}}function oa(ta){if(!ta)return;var ua,va=Object.keys(t);for(var wa=0;wa<va.length;wa++){var xa=va[wa];if(t[xa]===ta){ua=xa;break;}}var ya=u[ua];i(typeof ya!=='undefined');return ya;}function pa(ta){return ta===p.ITUNES||ta===p.ITUNES_IPAD;}function qa(ta){if(!ta)return;switch(ta){case m.IOS:case m.IPAD:return l.IOS;case m.ANDROID:case m.AMAZON:return l.ANDROID;default:i(false);}}function ra(ta){return s[ta]||ta;}function sa(ta){var ua=function(va,wa){va=va.toLowerCase();return va.indexOf(wa.toLowerCase())>=0;};if(ua(ta,l.IOS)){return l.IOS;}else if(ua(ta,l.ANDROID)){return l.ANDROID;}else return null;}f.APP_PLATFORM=m;f.APP_PLATFORM_TO_STORE_NAME=r;f.APP_PLATFORM_TYPE=n;f.APP_PLATFORM_TYPE_NAME=o;f.constructNativeMobileAppOption=ja;f.getMobileOperatingSystemFromUserOS=sa;f.getMobileOSForPlatform=qa;f.getMobileStoreForOS=oa;f.getMobileStoreOptionsForMobileStore=ka;f.getNativeMobileApps=ia;f.getOSForMobileStore=na;f.getPlatformsFromGraph=z;f.getStoreName=ra;f.getStoreObjectInfoFromAppPlatform=ha;f.getStoreObjectInfoFromMobileStore=ga;f.getSupportedOS=ca;f.getTargetingOptionsByMobileStore=ma;f.isIOSMobileStore=pa;f.isPlatformSupported=aa;f.MOBILE_OPERATING_SYSTEM_TO_APP_PLATFORM=w;f.MOBILE_STORE=p;f.MOBILE_STORE_DESTINATION_TYPE=q;f.NATIVE_APP_TO_MOBILE_STORE_MAP=u;f.OPERATING_SYSTEM_TO_MOBILE_STORE=x;f.supportsDesktop=da;f.supportsNativeMobile=fa;},null);
  __d("AdsCFActionTypes",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){var h='ADS_CF_',i={RESET_CF_STORES:null,RHC_REDESIGN_CHANGE:null,IMAGE_CROP_CHANGE:null,IMAGE_CROP_ITEM_CLICK:null,IMAGE_CROP_DIALOG_SHOW:null,ACCOUNT_CAPABILITIES_ADD:null,ACCOUNT_INIT:null,CHANGE_ACCOUNT_COUNTRY:null,CHANGE_ACCOUNT_CURRENCY:null,CHANGE_ACCOUNT_NAME:null,CHANGE_ACCOUNT_TIMEZONE_ID:null,CHANGE_FUNDING_SOURCE:null,CONVERSION_PIXELS_CHANGE:null,COUPON_ACTIVATED:null,OFFSITE_PIXELS_TOS_ACCEPTED:null,ADD_ACTOR:null,CHANGE_ACTORS:null,INIT_ACTORS:null,CHANGE_AD_NAME:null,OBJECTIVE_CONFIRM_ANIMATION_CHANGE:null,OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CONFIRM:null,KPI_OBJECTIVE_SEE_MORE:null,CREATIVE_INIT:null,CREATIVE_CHANGE:null,CREATIVE_PLACEMENTS_CHANGE:null,CREATIVE_STATUS_CHANGE:null,IMAGE_VALIDATED:null,PREVIEW_LOADING_CHANGE:null,MEDIA_UPDATE:null,IMAGE_VERSION_ADD:null,IMAGE_DIMENSIONS_READY:null,STOCK_SEARCH:null,STOCK_SEARCH_RESULTS_READY:null,VIDEO_UPLOAD_START:null,VIDEO_UPLOAD_CANCEL:null,VIDEO_UPLOAD_SUCCESS:null,VIDEO_UPLOAD_ERROR:null,VIDEO_UPLOAD_PROGRESS:null,VIDEO_ENCODING_SUCCESS:null,IMAGE_UPLOAD_CLICK:null,IMAGE_UPLOAD_SUCCESS:null,IMAGE_DOWNLOAD_ERROR:null,IMAGE_SELECT_CLICK:null,IMAGE_SELECT_SUCCESS:null,IMAGE_DESELECT_SUCCESS:null,IMAGE_SELECT_CONFIRMED:null,IMAGE_SELECT_CANCEL:null,IMAGE_DIALOG_OPEN:null,IMAGE_LIBRARY_TAB_CLICK:null,STOCK_IMAGE_SEARCH:null,STOCK_IMAGE_SEARCH_TEXT_CHANGE:null,STOCK_IMAGE_GUIDELINES_SHOW:null,CAMPAIGNS_LOADED:null,CAMPAIGN_SELECT:null,CANCEL_EDITED_CAMPAIGN:null,CHANGE_CAMPAIGN:null,CHANGE_CAMPAIGN_BUDGET:null,CHANGE_CAMPAIGN_BUDGET_MODE:null,CHANGE_CAMPAIGN_CREATIVE_ROTATION:null,CHANGE_CAMPAIGN_DAY_PARTING_SCHEDULE:null,CHANGE_CAMPAIGN_NAME:null,CHANGE_CAMPAIGN_PACING:null,CHANGE_CAMPAIGN_SCHEDULE_MODE:null,CHANGE_CAMPAIGN_SCHEDULE:null,CHANGE_CAMPAIGN_STATUS:null,DISMISS_CAMPAIGN_SAVE_SUCCESS:null,EDIT_CAMPAIGN_BUTTON_CLICK:null,SAVE_EDITED_CAMPAIGN_CLICK:null,SAVE_EDITED_CAMPAIGN_ERROR:null,SAVE_EDITED_CAMPAIGN_SUCCESS:null,SAVE_EDITED_CAMPAIGN_TIMEOUT:null,SELECT_EXISTING_CAMPAIGN:null,SELECT_NEW_CAMPAIGN:null,CHANGE_BID_SECTION_VISIBILITY:null,CAMPAIGN_GROUPS_LOADED:null,CAMPAIGN_GROUP_LOAD:null,CAMPAIGN_GROUP_NAME_UPDATE:null,CAMPAIGN_GROUP_SELECT:null,CAMPAIGN_GROUP_SELECT_AND_UPDATE:null,INIT_DATA_FETCH_ERROR:null,INIT_DATA_LOADED:null,INIT_DATA_RECEIVED:null,INIT_STARTED:null,PLACE_ORDER_CLICKED:null,PLACE_ORDER_INITIATED:null,REVIEW_AD_INITIATED:null,REVIEW_DIALOG_SHOW:null,REVIEW_DIALOG_CANCEL:null,SAVE_AD_INITIATED:null,CREATE_MODE_CONFIG_CHANGE:null,SHOW_MODE_CHANGED:null,URI_CHANGE:null,HELP_LINK_CLICK:null,DESTINATION_CHANGE:null,DESTINATION_FETCH_ERROR:null,DESTINATION_SELECT:null,DESTINATION_UPDATE:null,KPI_DESTINATION_SELECT:null,MOBILE_OPTIMIZED_URL_CHECK_FAIL:null,MOBILE_OPTIMIZED_URL_CHECK_SUCCESS:null,NEW_PAGE_DESTINATION_SELECT:null,PAGE_POSTS_LOADED:null,PAGE_POSTS_LOAD_COMPLETE:null,PAGE_POSTS_PUBLISHED:null,POST_LINK_DATA_LOADED:null,RESET_DESTINATION:null,CLICK_CONTACT_ADMIN:null,PAGE_SELECTOR_CLICK:null,PAGE_CREATE_CLICK:null,NEKO_CREATE_PAGE:null,BID_ESTIMATE_CHANGE:null,AUDIENCE_ESTIMATE_CHANGE:null,TARGETING_SENTENCE_CHANGE:null,PAGE_LOCATION_CONFIRM:null,PAGE_LOCATION_FORM_CHANGE:null,PAGE_LOCATION_FORM_ACCEPT:null,PAGE_LOCATION_ERROR:null,TARGETING_INIT:null,TARGETING_CHANGE:null,TARGETABLE_AUDIENCES_CHANGE:null,TARGETING_RESET_DEFAULTS:null,PAGE_LOCATION_CHANGE:null,PAGE_LOCATION_CHANGED:null,BID_CHANGE:null,BID_OPTION_CHANGE:null,BID_PRICE_CHANGE:null,CONVERSION_PIXEL_CHANGE:null,CPA_BID_AVAILABLE:null,RESTORE_PRICING_DEFAULTS:null,CHANGE_PIXEL_EMAIL_PERSONAL_MESSAGE:null,ADD_PIXEL_EMAIL_RECIPIENT:null,REMOVE_PIXEL_EMAIL_RECIPIENT:null,CHANGE_PIXEL_SNIPPET_VIEW_MODE:null,CONFIRM_SNIPPET_VIEW:null,CONVERSION_PIXEL_CREATED:null,CODE_MAP_CHANGE:null,CODE_MAP_RESET:null,LOG:null,PAYMENTS_FLOW_CANCELLED:null,PAYMENTS_FLOW_ERROR:null,PAYMENTS_FLOW_SUCCESS:null,ADS_MANAGER_REDIRECT:null,CONVERSION_PIXEL_LINK_CLICK:null,CREATE_AD_SUCCESS:null,CREATE_AD_FAIL:null,CREATE_AD_FAIL_WITH_CAMPAIGN_SUCCESS:null,CREATE_AD_TIMEOUT:null,CREATE_SIMILAR_AD:null,CREATING_AD:null,EXTEND_CAMPAIGN:null,EXTEND_CAMPAIGN_FAIL:null,EXTEND_CAMPAIGN_SUCCESS:null,INCREASE_BUDGET:null,INCREASE_BUDGET_FAIL:null,INCREASE_BUDGET_SUCCESS:null,REQUEST_RELATED_DATA_FAIL:null,REQUEST_RELATED_DATA_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_COMPOSE:null,TRACK_MOBILE_APP_INSTALL_SEND:null,TRACK_MOBILE_APP_INSTALL_SEND_FAIL:null,TRACK_MOBILE_APP_INSTALL_SEND_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_INFO:null,SAVE_AD_SUCCESS:null,NAVIGATION_SECTION_ADD:null,NAVIGATION_SECTION_REMOVE:null,NAVIGATION_SECTION_ENTERED:null,NAVIGATION_SECTION_EXITED:null,NAVIGATION_SECTION_GO:null,NAVIGATION_SECTION_SCROLL_DONE:null,AD_API_ERROR:null,CLEAR_AND_START_OVER:null,SAVED_STATE_QUERIED:null},j=g.createActionTypeMap(h,i);e.exports=j;},null);
  __d("AdsPlacementID",["keyMirror"],function(a,b,c,d,e,f,g){var h=g({RHC:null,DESKTOP_NEWS_FEED:null,MOBILE_NEWS_FEED:null,FAN:null});e.exports=h;},null);
  __d("AdsPlacementIDStrings",["AdsPlacementID","fbt"],function(a,b,c,d,e,f,g,h){var i={};i[g.RHC]="Right Column";i[g.DESKTOP_NEWS_FEED]="News Feed";i[g.MOBILE_NEWS_FEED]="Mobile News Feed";i[g.FAN]="Facebook Audience Network";e.exports=i;},null);
  __d("AdsPlacementStates",[],function(a,b,c,d,e,f){var g={ENABLED:'enabled',DISABLED:'disabled',NOT_SUPPORTED:'not_supported'};e.exports=g;},null);
  __d("AdsCFConstants",["AdsPlacementID","AdsPlacementIDStrings","AdsPlacementStates","fbt","keyMirror"],function(a,b,c,d,e,f,g,h,i,j,k){var l=k({CAMPAIGN:null,CAMPAIGN_GROUP:null,ACCOUNT:null,CREATIVE:null}),m=k({PENDING:null,SUCCESS:null,FAILURE:null}),n={DAILY:'daily',LIFETIME:'lifetime'},o=k({EXTEND_CAMPAIGN:null,INCREASE_BUDGET:null,UNPAUSE:null}),p=k({ACTIVE:null,PAUSED:null}),q=k({ACTIVE:null,PAUSED:null}),r=k({CONTINUOUSLY:null,MIXED:null,SCHEDULED:null}),s=k({START_DATE_BEFORE_NOW:null,END_DATE_BEFORE_START_DATE:null,END_DATE_BEFORE_NOW:null,INSUFFICIENT_DAILY_BUDGET:null}),t='canonical-id',u="error entity",v={CREATE_NEW_CAMPAIGN_GROUP:'create-new-campaign-group',CREATE_NEW_CAMPAIGN:'create-new-campaign',CREATE_NEW_AD_GROUP:'create-new-ad-group',CREATE_SIMILAR:'create-similar',EDIT_EXISTING:'edit-existing',EDIT_EXISTING_CAMPAIGN:'edit-existing-campaign'},w={CREATIVE:'creative',TARGETING:'targeting',PRICING:'pricing'},x=k({AUTO_FILL_OTHER:null,PREFILLED_FROM_URL:null,SINGLE_OBJECT_PREFILL:null,USER_SELECTED:null}),y={};y[v.CREATE_NEW_CAMPAIGN_GROUP]="Advertise on Facebook";y[v.CREATE_NEW_CAMPAIGN]="Advertise on Facebook";y[v.CREATE_NEW_AD_GROUP]="Advertise on Facebook";y[v.CREATE_SIMILAR]="Create a Similar Ad";y[v.EDIT_EXISTING]="Edit Your Ad";var z=k({DEFAULT:null,AYMT_DIALOG:null,AYMT_REFERRAL:null}),aa={INCREASE_ACCOUNT_SPEND_CAP:1,EXTEND_CAMPAIGN:1,INCREASE_BUDGET:1,CONVERSION_PIXEL:2,TRACK_MOBILE_APP_INSTALL:2},ba={ACTIVE:1,DISABLED:2,UNSETTLED:3,PENDING_REVIEW:7,PENDING_CLOSURE:100,CLOSED:101},ca=k({EXTEND_CAMPAIGN:null,INCREASE_BUDGET:null,CONVERSION_PIXEL:null,TRACK_MOBILE_APP_INSTALL:null,INCREASE_ACCOUNT_SPEND_CAP:null}),da=k({DEFAULT:null,FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),ea=k({BEGIN:null,COMPOSE:null,SENDING:null,SUCCESS:null,FAILURE:null}),fa=k({OBJECTIVE_SELECTOR:null,SUGGESTION:null,PIXEL_UPSELL:null}),ga=i,ha=g,ia=h,ja=k({FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),ka={MOBILE_NEWS_FEED_DISABLED:'mobile-news-feed-disabled',NONE:'none',NOT_SUPPORTED:'not-supported',ONLY_PLACEMENT:'only-placement',ONLY_PLACEMENT_EXCEPT_FAN:'only-placement-except-fan',READ_ONLY:'read-only'},la={};la[ka.ONLY_PLACEMENT]="You need at least one placement to show your ad on Facebook. This is the only placement you've selected, so it can't be removed.";la[ka.ONLY_PLACEMENT_EXCEPT_FAN]="The mobile News Feed placement can't be removed if you want to show your ad in the Audience Network.";la[ka.MOBILE_NEWS_FEED_DISABLED]="The mobile News Feed placement must be turned on to show your ad in partner mobile apps that are part of the Audience Network.";e.exports={AccountStatus:ba,CampaignBudgetModes:n,CampaignDialogActionTypes:o,CampaignGroupRunStatuses:p,CampaignRunStatuses:q,CampaignScheduleModes:r,CampaignValidationErrors:s,CanonicalID:t,CreateMode:v,CreationSteps:l,DataStates:ja,DestinationSelectionSource:x,DocumentTitles:y,Environments:z,ErrorEntityID:u,MobileAppInstallUpsellStates:ea,NEW_CAMPAIGN_GROUP_ID:'NEW_CAMPAIGN_GROUP_ID',NEW_CAMPAIGN_ID:'NEW_CAMPAIGN_ID',ObjectiveChangeSource:fa,PlacementCannotChangeStatusDescription:la,PlacementCannotChangeStatusReason:ka,PlacementID:ha,PlacementIDStrings:ia,PlacementStates:ga,RemoteCallStatus:m,ShowMode:w,UpsellRankings:aa,UpsellTypes:ca,UpsellViewStates:da};},null);
  __d("AdsAccountUtils",["AdmanagerAccountStatuses","AdsAccountCapabilities","arrayContains","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k={isPremium:function(l){return i(l.capabilities||[],h.PREMIUM);},isCorporate:function(l){return i(l.capabilities||[],h.DIRECT_SALES);},hasContract:function(l){return k.isCorporate(l)&&l.io_number>0;},getIsCorporateFromCapabilities:function(l){if(!l)return false;return i(l,h.DIRECT_SALES);},validateAccountIDs:function(l,m,n){l=l.filter(function(o){return o.match(/^\d+$/);});if(l.length){m.fetch.validateAccountIDs.one(n,{adaccounts:l});}else n([]);},isStatusManageable:function(l){return (l===g.ACTIVE||l===g.UNSETTLED||l===g.PENDING_RISK_REVIEW||l===g.IN_GRACE_PERIOD);},hasCapability:function(l,m){j(m in h);return !!(l&&l.capabilities&&i(l.capabilities,m));}};e.exports=k;},null);
  __d("AdsCFPrimedDao",["AdsDaoGraph","CurrentLocale"],function(a,b,c,d,e,f,g,h){g.primedForLocale(h.get());var i={},j={getInstanceForAccount:function(k){if(!i[k])i[k]=g.primedForLocale(h.get()).primedForAccount(k);return i[k];}};e.exports=j;},null);
  __d("AdsCreationExperiments",["AdsCreationExperimentsConfig","AsyncRequest","URIInitDataUtil","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k='/ajax/ads/experiment/exposure/',l=function(n,o){var p=false;return {getParam:function(q){this._possiblyAutoExpose();return o.params&&o.params[q];},getParamBool:function(q){var r=this.getParam(q);if(!r||r==='false')return false;var s=parseInt(r,10);if(isNaN(s))return true;return !!s;},getGroup:function(){this._possiblyAutoExpose();return o.group;},getInExperiment:function(){return o.in_experiment;},logExposure:function(q){if(p)return;p=true;var r=new h(k),s={qe_name:n,data:q};r.setData(s).send();},_possiblyAutoExpose:function(){if(o.auto_exposure&&this.getInExperiment()){this.logExposure();return;}}};},m={_experiments:{},getExperiment:function(n){if(!this._experiments[n])this._experiments[n]=l(n,g[n]||{});return this._experiments[n];}};e.exports=m;},null);
  __d("AdsTimezone",["AdsTimezoneConfig","underscore.ads"],function(a,b,c,d,e,f,g,h){f.countryCodeToTimezoneIDsMap=g.countryCodeToTimezoneIDsMap;f.names=g.names;f.timezoneIDToCountryCodeMap=new Array(f.names.length);f.timezoneDataByID=g.tzDataByID;for(var i in g.countryCodeToTimezoneIDsMap)if(g.countryCodeToTimezoneIDsMap.hasOwnProperty(i)){var j=g.countryCodeToTimezoneIDsMap[i];for(var k=0;k<j.length;++k)f.timezoneIDToCountryCodeMap[j[k]]=i;}f.sortedTimezones=h(g.tzDataByID).chain().map(function(l,m){if(!l.name)return null;return {id:parseInt(m,10),displayName:"(GMT"+l.offset+") "+l.name.replace("_"," "),name:l.name,offset:l.offset};}).compact().sortBy(function(l){return (22+parseFloat(l.offset.replace(":","."),10))+l.name;}).value();},null);
  __d("AdsCFAccountStore",["AdsAccountCapabilities","AdsAccountUtils","AdsActionTypes","AdsBaseStore","AdsCFActionTypes","AdsCFPrimedDao","AdsCountries","AdsCreationConfig","AdsCreationExperiments","AdsDispatcher","FBDate","AdsPayloadSource","AdsTimezone","ImmutableObject","URI","merge","whitelistObjectKeys","AdsCFConstants"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){var x=b('AdsCFConstants').AccountStatus,y='USD',z=1,aa=[x.CLOSED,x.DISABLED,x.PENDING_CLOSURE,x.UNSETTLED],ba,ca,da,ea;function fa(){ba=false;ca={};da={};ea=false;}fa();for(var ga in j)if(j.hasOwnProperty(ga))ia[ga]=j[ga];var ha=j===null?null:j.prototype;ia.prototype=Object.create(ha);ia.prototype.constructor=ia;ia.__superConstructor__=j;function ia(){"use strict";if(j!==null)j.apply(this,arguments);}ia.prototype.getStoreName=function(){"use strict";return 'AdsCFAccountStore';};ia.prototype.getState=function(){"use strict";var sa=v(ca);sa.isConfigured=ka();return new t(sa);};ia.prototype.getInitialState=function(){"use strict";return new t(da);};ia.prototype.getAccountID=function(){"use strict";return ca.accountID;};ia.prototype.canCreateAds=function(){"use strict";return aa.indexOf(ca.accountStatus)===-1;};ia.prototype.hasAccountCapability=function(sa){"use strict";return h.hasCapability(ca,sa);};ia.prototype.getAccountCapabilities=function(){"use strict";return ca.capabilities||[];};ia.prototype.isCorporateAccount=function(){"use strict";return this.hasAccountCapability(g.DIRECT_SALES);};ia.prototype.isLikelyOnlineSales=function(){"use strict";return ea;};ia.prototype.getBasedInUS=function(){"use strict";return ca.country==='US';};ia.prototype.getDao=function(){"use strict";return l.getInstanceForAccount(ca.accountID);};ia.prototype.onDispatchToken=function(sa){"use strict";var ta=sa.action;switch(ta.actionType){case k.INIT_STARTED:ea=!!ta.is_likely_online_sales;break;case k.ACCOUNT_INIT:na(ta);la();break;case k.CHANGE_ACCOUNT_NAME:ma(ta,{name:null});break;case k.CHANGE_ACCOUNT_COUNTRY:var ua={country:ta.country,timezoneID:s.countryCodeToTimezoneIDsMap[ta.country][0]};if(!ba){ua.currency=m.getCurrencyByCountry(ta.country);ma(ua,{country:null,timezoneID:null,currency:null});la();}else ma(ua,{country:null,timezoneID:null});break;case k.CHANGE_ACCOUNT_CURRENCY:ma(ta,{currency:null});ba=sa.payloadsource===r.VIEW_ACTION;break;case k.CHANGE_ACCOUNT_TIMEZONE_ID:ma(ta,{timezoneID:null});la();break;case k.CONVERSION_PIXELS_CHANGE:ma(ta,{pixels:null});break;case k.OFFSITE_PIXELS_TOS_ACCEPTED:ca=v(ca,{isOffsitePixelsTOSAccepted:true});break;case k.ACCOUNT_CAPABILITIES_ADD:ca.capabilities=ca.capabilities.concat(ta.capabilities);break;case k.COUPON_ACTIVATED:ma(ta,{couponActivationResponse:null});if(ta.couponActivationResponse.success)ra();break;case k.CHANGE_FUNDING_SOURCE:ma(ta,{fundingSourceDetails:null});break;case i.PAGE_TRANSITION:case k.RESET_CF_STORES:fa();break;}};var ja=new ia();a.debug_AdsCFAccountStore=ja;function ka(){return !!(ca.dailySpendLimit||h.hasCapability(ca,g.DIRECT_SALES));}function la(){q.setupTimezoneFallback(ca.timezoneID,ca.timezoneOffsetHours);}function ma(sa,ta){ca=v(ca,w(sa,ta));ja.inform('change');}function na(sa){var ta=sa.accountConfig,ua=h.hasCapability(ta,g.CAN_UPDATE_CURRENCY),va=ta.country,wa=ta.currency,xa=ta.timezone_id,ya=ta.name;if(ua){if(wa===y&&n.userLocalCurrencyCode!==y)wa=n.userLocalCurrencyCode||wa;if(xa===z&&n.userLocalTimezoneID!==z)xa=n.userLocalTimezoneID||xa;va=ta.business_country_code||n.userLocalCountryCode||va||'US';ya=ya||n.userName;}ca=v(ca,{accountID:ta.account_id,age:ta.age,amountSpent:ta.amount_spent,businessCountryCode:ta.business_country_code,capabilities:ta.capabilities,country:va,currency:wa,dailySpendLimit:ta.daily_spend_limit,fundingSource:ta.funding_source,fundingSourceDetails:ta.funding_source_details,id:ta.id,isAllowedToEditCurrency:ua,isNUX:ua,isOffsitePixelsTOSAccepted:ta.offsite_pixels_tos_accepted,isPrepayAccount:ta.is_prepay_account,isTaxIDRequired:ta.is_tax_id_required,canCreateAdWithoutTaxID:ta.can_create_ad_without_tax_id,tosAccepted:ta.tos_accepted,minDailyBudget:ta.min_daily_budget,mooDefaultConversionBid:ta.moo_default_conversion_bid,name:ya,accountStatus:ta.account_status,showCurrencySwapWarning:ta.show_currency_swap_warning,spendCap:ta.spend_cap,timezoneID:xa,timezoneOffsetHours:ta.timezone_offset_hours_utc,users:ta.users});ca.timezoneOffsetHours=ca.timezoneOffsetHours||0;ja.inform('change');oa();qa();da=v(ca);var za=ja.getDao();za.fetch.connectionObjectsForAccount.one();za.fetch.audiencesForAccount.one();}function oa(){ja.getDao().fetch.pixelsForAccount.one(function(sa){p.handleUpdateFromServerResponse({actionType:k.CONVERSION_PIXELS_CHANGE,pixels:sa});}.bind(this));}var pa;function qa(){var sa=u.getRequestURI().getQueryData().coupon;if(!sa||pa)return;pa=true;var ta=o.getExperiment('ads_creation_streamline_coupon_3');if(ta.getInExperiment())ta.logExposure();if(!ta.getInExperiment()||ta.getParam('in_test')==='0')return;ja.getDao().add.activateCoupon.one(function(ua){p.handleUpdateFromServerResponse({actionType:k.COUPON_ACTIVATED,couponActivationResponse:ua});}.bind(this),{accountId:ca.accountID,coupon_code:sa});}function ra(){var sa=ja.getDao();sa.fetch.accountInfo.clearCache();sa.fetch.accountInfo.one(function(ta){p.handleUpdateFromServerResponse({actionType:k.CHANGE_FUNDING_SOURCE,fundingSourceDetails:ta.funding_source_details});}.bind(this),{accountId:ca.accountID,fields:'funding_source_details'});}e.exports=ja;},null);
  __d("AdsBidOptions",[],function(a,b,c,d,e,f){'use strict';var g={ACTIONS:'actions',CLICKS:'clicks',IMPRESSIONS:'impressions',OCPM_ACTIONS:'ocpm_actions',REACH:'reach'};e.exports=g;},null);
  __d("AdsDateUtils",["parseISODate"],function(a,b,c,d,e,f,g){'use strict';var h={parseISODate:function(i){return g(i);},sanitizeDateTimeFromAPI:function(i){if(!i)return null;if(i==='0')return null;var j=h.parseISODate(i);if(j.getUTCFullYear()<1970)return null;return i;}};e.exports=h;},null);
  __d("AdsCFApplicationStore",["AdsActionTypes","AdsBaseStore","AdsCFActionTypes","AdsCFConstants","AdsCFCreationSources","AdsCMActionTypes","AdsDispatcher","URI","AdsCFAccountStore","AdsCMDraftStore"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=j.CreationSteps,p={},q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da=n();function ea(){var qa=da.getQueryData();q=null;u=null;t=null;if(qa.adgroup_id&&qa.edit){q=qa.adgroup_id;}else if(qa.campaign){t=qa.campaign;}else if(qa.ad_set)u=qa.ad_set;}function fa(){var qa=da.getQueryData();if(qa.adgroup_id){if(qa.edit){v=j.CreateMode.EDIT_EXISTING;}else v=j.CreateMode.CREATE_SIMILAR;}else if(t){v=j.CreateMode.CREATE_NEW_CAMPAIGN;}else if(u){if(qa.edit){v=j.CreateMode.EDIT_EXISTING_CAMPAIGN;}else v=j.CreateMode.CREATE_NEW_AD_GROUP;}else v=j.CreateMode.CREATE_NEW_CAMPAIGN_GROUP;}function ga(){var qa=da.getQueryData();ba=qa.show_only;}function ha(){var qa=da.getQueryData();x=!!qa.dialog;}function ia(){var qa=da.getQueryData();y=!!qa.l2tm;}function ja(){var qa=da.getQueryData();if(qa.oid){aa=qa.oid;}else aa=null;}function ka(){p={};p[o.CAMPAIGN_GROUP]=1;var qa=b('AdsCFAccountStore');m.waitFor([qa.dispatchToken]);var ra=qa.getState(),sa=ra.isAllowedToEditCurrency;if(sa){p[o.ACCOUNT]=2;p[o.CAMPAIGN]=3;p[o.CREATIVE]=4;return;}p[o.CAMPAIGN]=2;p[o.CREATIVE]=3;}function la(){p={};r=false;w=j.DataStates.IN_PROGRESS;z=false;ea();fa();ja();ga();ha();ia();}la();for(var ma in h)if(h.hasOwnProperty(ma))oa[ma]=h[ma];var na=h===null?null:h.prototype;oa.prototype=Object.create(na);oa.prototype.constructor=oa;oa.__superConstructor__=h;function oa(){"use strict";if(h!==null)h.apply(this,arguments);}oa.prototype.getStoreName=function(){"use strict";return 'AdsCFApplicationStore';};oa.prototype.getCurrentMode=function(){"use strict";return v;};oa.prototype.getCampaignGroupID=function(){"use strict";return t;};oa.prototype.getCampainID=function(){"use strict";return u;};oa.prototype.getAdgroupID=function(){"use strict";return q;};oa.prototype.getDataState=function(){"use strict";return w;};oa.prototype.getShowMode=function(){"use strict";return ba;};oa.prototype.getAllowRedirect=function(){"use strict";return r;};oa.prototype.getPendingObjectID=function(){"use strict";return aa;};oa.prototype.getSavedStateTimeUpdated=function(){"use strict";return ca;};oa.prototype.getURI=function(){"use strict";return n(da.toString());};oa.prototype.getCreationStep=function(qa){"use strict";return p[qa];};oa.prototype.isCreatingNewCampaignGroup=function(){"use strict";return v===j.CreateMode.CREATE_NEW_CAMPAIGN_GROUP;};oa.prototype.isCreatingNewCampaign=function(){"use strict";return v===j.CreateMode.CREATE_NEW_CAMPAIGN;};oa.prototype.isCreatingNewAdgroup=function(){"use strict";return v===j.CreateMode.CREATE_NEW_AD_GROUP;};oa.prototype.isCreatingNew=function(){"use strict";return (v===j.CreateMode.CREATE_NEW_AD_GROUP||v===j.CreateMode.CREATE_NEW_CAMPAIGN||v===j.CreateMode.CREATE_NEW_CAMPAIGN_GROUP);};oa.prototype.isCreatingSimilar=function(){"use strict";return v===j.CreateMode.CREATE_SIMILAR;};oa.prototype.isDialog=function(){"use strict";return x;};oa.prototype.isEditMode=function(){"use strict";return this.isEditingExisting()||this.isEditingExistingCampaign();};oa.prototype.isEditingExisting=function(){"use strict";return v===j.CreateMode.EDIT_EXISTING;};oa.prototype.isEditingExistingCampaign=function(){"use strict";return v===j.CreateMode.EDIT_EXISTING_CAMPAIGN;};oa.prototype.isL2TargetingMigration=function(){"use strict";return y;};oa.prototype.isCampaignManager=function(){"use strict";return s===k.CM;};oa.prototype.isSerializedDataAvailable=function(){"use strict";return z;};oa.prototype.getCreationSource=function(){"use strict";return s||k.CF;};oa.prototype.isDraftEnabled=function(){"use strict";if(pa.isCampaignManager()){var qa=b('AdsCMDraftStore');return qa.isDraftEnabled();}return false;};oa.prototype.onDispatchToken=function(qa){"use strict";var ra=qa.action;switch(ra.actionType){case i.ACCOUNT_INIT:ka();pa.inform('change');break;case i.CREATE_MODE_CONFIG_CHANGE:r=!!ra.allowRedirect;break;case i.URI_CHANGE:da=ra.uri;la();pa.inform('change');break;case i.CREATE_SIMILAR_AD:v=j.CreateMode.CREATE_SIMILAR;q=null;aa=null;pa.inform('change');break;case i.INIT_STARTED:s=ra.creationSource;pa.inform('change');break;case i.SAVED_STATE_QUERIED:z=ra.success;ca=ra.time_updated;break;case i.REQUEST_RELATED_DATA_SUCCESS:r=true;pa.inform('change');break;case i.SHOW_MODE_CHANGED:ba=ra.showMode;pa.inform('change');break;case i.INIT_DATA_LOADED:w=j.DataStates.SUCCESS;pa.inform('change');break;case i.INIT_DATA_FETCH_ERROR:w=j.DataStates.FAILURE;pa.inform('change');break;case i.CLEAR_AND_START_OVER:z=false;pa.inform('change');break;case i.KPI_DESTINATION_SELECT:case i.KPI_OBJECTIVE_CONFIRM:z=false;break;case g.PAGE_TRANSITION:case i.RESET_CF_STORES:la();break;case l.SET_DRAFT_MODE:pa.inform('change');break;case i.CANCEL_EDITED_CAMPAIGN:case i.DISMISS_CAMPAIGN_SAVE_SUCCESS:if(pa.isCampaignManager())break;ba=null;pa.inform('change');break;case i.EDIT_CAMPAIGN_BUTTON_CLICK:if(pa.isCampaignManager())break;ba=j.ShowMode.PRICING;pa.inform('change');break;}};var pa=new oa();a.debug_AdsCFApplicationStore=pa;e.exports=pa;},null);
  __d("AdsCFCreativeProperties",["AdCreativeType","AdsApplicationUtils","AdsUtils","adsGKCheck","getObjectValues"],function(a,b,c,d,e,f,g,h,i,j,k){var l={STORY_APP_SHARE:{id:g.keyToType.STORY_APP_SHARE.id,validFields:['objectId','urlTags']},STORY_APP_USED:{id:g.keyToType.STORY_APP_USED.id,validFields:['objectId','urlTags']},STORY_PAGE_LIKE:{id:g.keyToType.STORY_PAGE_LIKE.id},STORY_PAGE_POST:{id:g.keyToType.STORY_PAGE_POST.id},STORY_CHECKIN:{id:g.keyToType.STORY_CHECKIN.id},STORY_DOMAIN_SHARE:{id:g.keyToType.STORY_DOMAIN_SHARE.id,validFields:['objectId','urlTags']},STORY_QUERY_BASED:{id:g.keyToType.STORY_QUERY_BASED.id,validFields:['objectId','urlTags']},AD_EXTERNAL_URL:{id:g.keyToType.AD_EXTERNAL_URL.id,validFields:['title','body','linkUrl','imageList','relatedFanPage','videoId','videoThumbnail','isVideoCreative'],requiredFields:['title','body','linkUrl','MULTI_IMAGE']},FEED_URL:{id:g.keyToType.FEED_URL.id,validFields:['actor','title','body','linkUrl','linkCaption','linkDescription','callToActionType','getDirectionsUrl','imageList','storyId','videoId','videoThumbnail','isVideoCreative'],requiredFields:['actor','title','body','linkUrl','MULTI_IMAGE']},AD_FAN_LIKE:{id:g.keyToType.AD_FAN_LIKE.id,validFields:['actor','body','imageList','isVideoCreative','linkUrl','objectId','title','videoId','videoThumbnail'],requiredFields:['body','objectId','MULTI_IMAGE_OR_VIDEO']},AD_EVENT_RSVP:{id:g.keyToType.AD_EVENT_RSVP.id,validFields:['objectId','body','imageList'],requiredFields:['objectId','body']},AD_APPLICATION:{id:g.keyToType.AD_APPLICATION.id,validFields:['objectId','title','body','imageList','linkUrl','urlTags'],requiredFields:['objectId','body','MULTI_IMAGE']},AD_PAGE_POST:{id:g.keyToType.AD_PAGE_POST.id,validFields:['objectId','storyId','urlTags']},MOBILE_APP_INSTALL:{id:g.keyToType.MOBILE_APP_INSTALL.id,validFields:['objectId','title','body','iconImage','imageList','mobileStore','videoId','applinkUrl','mobileProductName','callToActionType','urlTags','linkUrl'],requiredFields:['objectId','MULTI_IMAGE']},NEKO_LPP:{id:g.keyToType.NEKO_LPP.id,validFields:['actor','applinkUrl','body','callToActionType','imageList','linkUrl','platform','storyId','title','urlTags','videoId','videoThumbnail','isVideoCreative','productLinkUrl'],requiredFields:['actor','linkUrl','MULTI_IMAGE_OR_VIDEO']}};if(j('ads_cf_video_objective'))l.AD_VIDEO={id:g.keyToType.AD_VIDEO.id,validFields:['actor','body','callToActionLink','callToActionLinkCaption','callToActionType','isVideoCreative','videoId','videoThumbnail'],requiredFields:['actor','body','videoId','videoThumbnail']};if(!h.isCampaignManager()){l.AD_EVENT_RSVP.validFields.push('actor','linkUrl');l.AD_EVENT_RSVP.requiredFields.push('actor','linkUrl');}else{l.AD_EVENT_RSVP.validFields.push('title');l.AD_EVENT_RSVP.requiredFields.push('MULTI_IMAGE');}var m=i.indexedMap(k(l),'id'),n={idToType:m,keyToType:l,requiredFieldsForType:function(o){var p=m[o],q=p?p.requiredFields:(void 0);if(q)return q;p=g.idToType[o];return p?p.requiredFields||[]:[];}};e.exports=n;},null);
  __d("AdImageSpecs",["AdCreativeType","AdsCFConstants"],function(a,b,c,d,e,f,g,h){var i=g.AD_CREATIVE_TYPE,j=h.PlacementID;e.exports={PAGE_LIKE_DESKTOP_FEED:{placement:j.DESKTOP_NEWS_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[i.INLINE_FAN]},PAGE_LIKE_MOBILE_FEED:{placement:j.MOBILE_NEWS_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[i.INLINE_FAN]},PAGE_LIKE_RHC:{placement:j.RHC,width:1200,height:444,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[i.INLINE_FAN]},EVENT_DESKTOP_FEED:{placement:j.DESKTOP_NEWS_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.INLINE_RSVP],gkSucceeds:'ads_events_redesign'},EVENT_MOBILE_FEED:{placement:j.MOBILE_NEWS_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.INLINE_RSVP],gkSucceeds:'ads_events_redesign'},EVENT_RHC:{placement:j.RHC,width:1200,height:444,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[i.INLINE_RSVP]},PAGE_POST_DESKTOP_FEED:{placement:j.DESKTOP_NEWS_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.STANDARD,i.FEED_URL,i.PAGE_POSTS_V2]},PAGE_POST_MOBILE_FEED:{placement:j.MOBILE_NEWS_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.STANDARD,i.FEED_URL,i.PAGE_POSTS_V2]},PAGE_POST_DESKTOP_FEED_NEKO:{placement:j.DESKTOP_NEWS_FEED,width:1200,height:628,minWarningWidth:600,minWarningHeight:314,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.NEKO_LPP]},PAGE_POST_MOBILE_FEED_NEKO:{placement:j.MOBILE_NEWS_FEED,width:1200,height:628,minWarningWidth:600,minWarningHeight:314,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.NEKO_LPP]},PAGE_POST_RHC:{placement:j.RHC,width:1200,height:628,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[i.STANDARD,i.FEED_URL,i.PAGE_POSTS_V2,i.NEKO_LPP]},PAGE_PROFILE:{width:180,height:180,minWarningWidth:180,minWarningHeight:180,previewRatio:.5}};},null);
  __d("AdImageSpecsUtils",["adsGKCheck","AdImageSpecs"],function(a,b,c,d,e,f,g,h){var i={getImageSpecKey:function(j){for(var k in h)if(h[k]===j)return k;return null;},getImageSpecsForAdType:function(j,k){var l=[];Object.keys(h).forEach(function(m){var n=h[m].supportedTypes||[];if(n.indexOf(j)>=0){var o=true;if(h[m].gkSucceeds){o=g(h[m].gkSucceeds);}else if(h[m].gkFails)o=!g(h[m].gkFails);o&&l.push(h[m]);}});if(k)return l.filter(function(m){return k.indexOf(m.placement)>=0;});return l;},getCropImageSpecsForAdType:function(j,k){var l=[],m=i.getImageSpecsForAdType(j,k);return m.sort(function(n,o){return o.width-n.width;}).filter(function(n){if(!n.cropKey||l.indexOf(n.cropKey)!==-1)return false;l.push(n.cropKey);return true;});},getImageSpecForAdType:function(j,k){var l=i.getImageSpecsForAdType(j);for(var m=0;m<l.length;++m){var n=l[m];if(n.placement===k)return n;}return null;}};e.exports=i;},null);
  __d("AdsImageValidation",["AdsApplicationUtils","AdsCFConstants","AdImageSpecs","AdImageSpecsUtils","fbt","keyMirror"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=h.PlacementID,n={isSquare:function(o){return !!(o.getWidth()&&o.getWidth()===o.getHeight());},isExactSize:function(o,p){return (o.getWidth()===p.width&&o.getHeight()===p.height);},isWarningSize:function(o,p){return (o.getWidth()>=p.minWarningWidth&&o.getHeight()>=p.minWarningHeight);},isRecommendedSize:function(o,p){return (o.getHeight()>=p.height&&o.getWidth()>=p.width);},isLargeSize:function(o,p){return (n.isRecommendedSize(o,p)||(o.getWidth()>=p.minLargeWidth&&o.getHeight()>=p.minLargeHeight));},isSmallSize:function(o,p){return (n.isLargeSize(o,p)||n.isWarningSize(o,p));},hasSmallFormat:function(o){return !!(o.minLargeWidth&&o.minLargeHeight);},isWithinSizeTolerance:function(o,p){var q=p.dimensionTolerance,r=Math.abs(p.height-o.getHeight())<q,s=Math.abs(p.width-o.getWidth())<q;return r&&s;},validate:function(o,p,q){if(p.placement in o.validationMap){q(o,p,o.validationMap[p.placement]);return;}var r=this._imageDimensionsReady.bind(this,o,p,q);if(o.isStockImage()){o.fetchFullSizeDimensions(r);}else o.setDimensionsReadyCallback(r);},validateNow:function(o,p){if(p.placement in o.validationMap)return;if(!o.hasDimensions())return;var q=this._getValidation(o,p);o.validationMap[p.placement]=q;},_imageDimensionsReady:function(o,p,q){var r=this._getValidation(o,p);q(o,p,r);},_getValidation:function(o,p){var q,r,s,t,u,v,w,x=p.placement,y=k._("Minimum Size: {width} x {height} pixels",[k.param("width",p.minWarningWidth),k.param("height",p.minWarningHeight)]),z=k._("Recommended Size: {width} x {height} pixels",[k.param("width",p.width),k.param("height",p.height)]),aa="This image is too small. Please use a larger image."+'\n\n'+y+'\n'+z,ba=l(i),ca=j.getImageSpecKey(p);switch(ca){case ba.EVENT_DESKTOP_FEED:case ba.EVENT_MOBILE_FEED:case ba.EVENT_RHC:if(!g.isCampaignManager())break;default:t=n.isWarningSize(o,p);if(!t){s=aa;}else if((x===m.DESKTOP_NEWS_FEED||x===m.MOBILE_NEWS_FEED)&&n.hasSmallFormat(p)){w=n.isRecommendedSize(o,p);v=n.isLargeSize(o,p);u=n.isSmallSize(o,p);if(w){q="This image will display in high-resolution on Facebook.";}else if(v&&!w){q="This image will show in the wider format in News Feed."+'\n\n'+z;}else if(u&&!w)r="Upload a larger image to be eligible for the wider format in News Feed."+'\n\n'+z;}}return {successMessage:q,warningMessage:r,errorMessage:s};}};e.exports=n;},null);
  __d("AdsImageLegacy",["AdsDaoGraph","AdsImageValidation","CachedDOMImageSizePool","invariant","mergeDeepInto"],function(a,b,c,d,e,f,g,h,i,j,k){'use strict';var l=new i(1000,10*60*1000),m=['FullSize','Preview','Thumbnail'];n.prototype.toJSON=function(){var o=this.$AdsImageLegacy0;return {crops:this.crops,hash:this.$AdsImageLegacy1,height:this.height,previewHeight:this.getPreviewHeight(),previewUrl:this.getPreviewUrl(),previewWidth:this.getPreviewWidth(),stockImageID:this.$AdsImageLegacy2||null,thumbHeight:this.getThumbnailHeight(),thumbWidth:this.getThumbnailWidth(),url:o?o.toString():null,url_128:this.$AdsImageLegacy3||null,validationMap:this.validationMap||null,width:this.width};};n.prototype.clone=function(o){var p=new n();k(p,this,'Clobber');o&&k(p,o,'Clobber');return p;};function n(o){o=o||{};this.crops=o.crops||{};this.$AdsImageLegacy1=o.hash;this.$AdsImageLegacy0=o.url;this.$AdsImageLegacy3=o.url_128;this.$AdsImageLegacy2=o.stockImageID;if(this.isStockImage()){this.$AdsImageLegacy3=o.url;this.$AdsImageLegacy4=o.thumbWidth;this.$AdsImageLegacy5=o.thumbHeight;this.$AdsImageLegacy6=o.previewUrl;this.$AdsImageLegacy7=o.previewWidth;this.$AdsImageLegacy8=o.previewHeight;j(this.getThumbnailWidth()&&this.getThumbnailHeight());j(this.getPreviewUrl()&&this.getPreviewWidth()&&this.getPreviewHeight());}this.height=o.height;this.width=o.width;this.validationMap=o.validationMap||{};this.$AdsImageLegacy9();}n.prototype.$AdsImageLegacy9=function(){if(this.$AdsImageLegacy0&&!this.hasDimensions())l.get(this.$AdsImageLegacy0,this.$AdsImageLegacya,this);if(this.$AdsImageLegacy3&&!this.hasThumbnailDimensions())l.get(this.$AdsImageLegacy3,this.$AdsImageLegacyb,this);};n.prototype.isValidated=function(o){var p=this.getValidationMap();if(o)return !!p[o];return !!Object.keys(p).length;};n.prototype.getValidation=function(o){return this.getValidationMap()[o]||{};};n.prototype.getValidationMap=function(){return this.validationMap;};n.prototype.hasValidationError=function(o){var p=this.getValidation(o);return !!p.errorMessage;};n.prototype.getCrop=function(o){return this.crops[o];};n.prototype.getCrops=function(){var o={};Object.keys(this.crops).forEach(function(p){var q=this.getCrop(p);if(q)o[p]=q;}.bind(this));return o;};n.prototype.getAPICrops=function(){var o=this.getCrops();if(!Object.keys(o).length)return null;return o;};n.prototype.hasDimensions=function(){return this.width!==(void 0)&&this.height!==(void 0);};n.prototype.hasThumbnailDimensions=function(){return this.$AdsImageLegacy4!==(void 0)&&this.$AdsImageLegacy5!==(void 0);};n.prototype.getWidth=function(){return this.getFullSizeWidth()||this.getPreviewWidth()||this.width;};n.prototype.getHeight=function(){return this.getFullSizeHeight()||this.getPreviewHeight()||this.height;};n.prototype.setDimensionsReadyCallback=function(o){if(!o)return;if(this.hasDimensions()){setTimeout(o,0);}else if(this.$AdsImageLegacy0){l.get(this.$AdsImageLegacy0,o);}else{this.$AdsImageLegacya(0,0);this.$AdsImageLegacyb(0,0);setTimeout(o,0);}};n.prototype.validate=function(o,p){h.validate(this,o,p);};n.prototype.validateNow=function(o){h.validateNow(this,o);};n.prototype.getUrl=function(){return this.$AdsImageLegacy0;};n.prototype.getBiggestVersionDetails=function(){if(this.isStockImage())for(var o=0;o<m.length;o++){var p='get'+m[o],q=this[p+'Url']();if(q)return {url:q,width:this[p+'Width'](),height:this[p+'Height']()};}return {url:this.getUrl(),width:this.getWidth(),height:this.getHeight()};};n.prototype.getPreviewUrl=function(){return this.$AdsImageLegacy6;};n.prototype.getPreviewWidth=function(){return this.$AdsImageLegacy7;};n.prototype.getPreviewHeight=function(){return this.$AdsImageLegacy8;};n.prototype.getFullSizeUrl=function(){return this.$AdsImageLegacyc;};n.prototype.setFullSizeUrl=function(o){this.$AdsImageLegacyc=o;};n.prototype.getFullSizeWidth=function(){return this.$AdsImageLegacyd;};n.prototype.getFullSizeHeight=function(){return this.$AdsImageLegacye;};n.prototype.fetchStockImageDetails=function(o,p){j(this.isStockImage());var q={image_id:this.getStockImageID()};if(p)q.handleError=p;var r=function(s){this.$AdsImageLegacyc=s.preview_url;o&&o(this);}.bind(this);g.fetch.detailsForStockImage.one(r,q);};n.prototype.fetchFullSizeDimensions=function(o){j(this.isStockImage());if(this.getFullSizeUrl()){this.$AdsImageLegacyf(o);}else this.fetchStockImageDetails(this.$AdsImageLegacyf.bind(this,o));};n.prototype.$AdsImageLegacyf=function(o){if(this.hasFullSizeDimensions()){setTimeout(o,0);}else l.get(this.getFullSizeUrl(),function(p,q){this.$AdsImageLegacyd=p;this.$AdsImageLegacye=q;o&&o();},this);};n.prototype.hasFullSizeDimensions=function(){return !!(this.getFullSizeWidth()&&this.getFullSizeHeight());};n.prototype.getAdAccountHash=function(){return this.$AdsImageLegacy1;};n.prototype.equals=function(o){return this.getUniqueIdentifier()===o.getUniqueIdentifier();};n.prototype.getUniqueIdentifier=function(){if(this.isStockImage())return this.getStockImageID();return this.getAdAccountHash()||this.getUrl();};n.prototype.isStockImage=function(){return !!this.getStockImageID();};n.prototype.getStockImageID=function(){return this.$AdsImageLegacy2;};n.prototype.getThumbnailUrl=function(){return this.$AdsImageLegacy3;};n.prototype.getThumbnailHeight=function(){return this.$AdsImageLegacy5;};n.prototype.getThumbnailWidth=function(){return this.$AdsImageLegacy4;};n.prototype.$AdsImageLegacya=function(o,p){this.width=o;this.height=p;};n.prototype.$AdsImageLegacyb=function(o,p){this.$AdsImageLegacy4=o;this.$AdsImageLegacy5=p;};e.exports=n;},null);
  __d("AdsImageCollectionViews",["invariant"],function(a,b,c,d,e,f,g){var h=['LIBRARY','PAGE','SCRAPED','STOCK'],i={};h.forEach(function(p,q){i[p]=1<<q;});i.INVISIBLE=0;var j={};Object.keys(i).forEach(function(p){var q=i[p];j[q]=q;});i.ALL=(1<<h.length)-1;function k(p){return (p in j);}function l(p){return p>=0&&p<=i.ALL;}function m(p){g(k(p));}function n(p){g(l(p));}var o={views:i,isValidView:k,isValidViewBitmask:l,assertIsValidView:m,assertIsValidViewBitmask:n};e.exports=o;},null);
  __d("AdsImageCollection",["AdsImageCollectionViews","ArbiterMixin","copyProperties","invariant","mixin"],function(a,b,c,d,e,f,g,h,i,j,k){var l=k(h);for(var m in l)if(l.hasOwnProperty(m))o[m]=l[m];var n=l===null?null:l.prototype;o.prototype=Object.create(n);o.prototype.constructor=o;o.__superConstructor__=l;function o(p){"use strict";p=i({maxSelectedImages:1},p);this.$AdsImageCollection0=p.maxSelectedImages;j(this.$AdsImageCollection0%1===0);this.$AdsImageCollection1();}o.prototype.$AdsImageCollection1=function(){"use strict";this.$AdsImageCollection2=[];this.$AdsImageCollection3={};this.$AdsImageCollection4=[];};o.prototype.addImagesToFront=function(p,q){"use strict";this.$AdsImageCollection5(p);this.$AdsImageCollection6(p,0,q);};o.prototype.addImagesToBack=function(p,q){"use strict";this.$AdsImageCollection5(p);this.addImagesToBack_UNSAFE(p,q);};o.prototype.addImagesToBack_UNSAFE=function(p,q){"use strict";this.$AdsImageCollection6(p,this.$AdsImageCollection2.length,q);};o.prototype.$AdsImageCollection6=function(p,q,r){"use strict";g.assertIsValidView(r);var s=p.filter(function(t){var u=this.$AdsImageCollection3[t.getUniqueIdentifier()];if(u){u.view=r;return false;}else{this.$AdsImageCollection3[t.getUniqueIdentifier()]={selected:false,view:r,image:t};return true;}},this);Array.prototype.splice.apply(this.$AdsImageCollection2,[q,0].concat(s));this.inform('onChange');};o.prototype.$AdsImageCollection5=function(p){"use strict";p.forEach(function(q){var r=this.$AdsImageCollection3[q.getUniqueIdentifier()];if(r)j(0===(r.view&g.views.ALL));}.bind(this));};o.prototype.isImageSelected=function(p){"use strict";return !!this.$AdsImageCollection3[p.getUniqueIdentifier()].selected;};o.prototype.toggleImageSelected=function(p){"use strict";var q=!this.isImageSelected(p);this.setImageSelected(p,q);return q;};o.prototype.setImageSelected=function(p,q){"use strict";var r=this.$AdsImageCollection7(p,q);r&&this.inform('onChange');};o.prototype.setImagesSelected=function(p,q){"use strict";var r;for(var s=0,t=p.length;s<t;s++)if(this.$AdsImageCollection7(p[s],q))r=true;r&&this.inform('onChange');};o.prototype.$AdsImageCollection7=function(p,q){"use strict";p=this.$AdsImageCollection3[p.getUniqueIdentifier()].image;this.assertHasImage(p);if(q===this.isImageSelected(p))return false;if(q){this.$AdsImageCollection4.push(p);}else this.$AdsImageCollection4=this.$AdsImageCollection4.filter(function(s){return !p.equals(s);});this.$AdsImageCollection3[p.getUniqueIdentifier()].selected=q;if(this.$AdsImageCollection0>0)while(this.getSelectedImageCount()>this.$AdsImageCollection0){var r=this.$AdsImageCollection4.shift();this.$AdsImageCollection3[r.getUniqueIdentifier()].selected=false;}return true;};o.prototype.deselectAllImages=function(){"use strict";if(!this.hasSelectedImages())return;this.getSelectedImages().forEach(function(p){this.$AdsImageCollection3[p.getUniqueIdentifier()].selected=false;},this);this.$AdsImageCollection4=[];this.inform('onChange');};o.prototype.clearImagesByViewBitmask=function(p){"use strict";g.assertIsValidViewBitmask(p);var q=false;this.$AdsImageCollection2=this.$AdsImageCollection2.filter(function(r){var s=0!==(p&this.$AdsImageCollection3[r.getUniqueIdentifier()].view);if(s){q=true;if(this.isImageSelected(r)){this.$AdsImageCollection3[r.getUniqueIdentifier()].view=g.views.INVISIBLE;s=false;}else delete this.$AdsImageCollection3[r.getUniqueIdentifier()];}return !s;},this);if(q)this.inform('onChange');};o.prototype.hasImage=function(p){"use strict";return this.$AdsImageCollection3[p.getUniqueIdentifier()]!==(void 0);};o.prototype.hasImageInView=function(p,q){"use strict";var r=this.$AdsImageCollection3[p.getUniqueIdentifier()];return !!r&&(r.view&q)!==0;};o.prototype.assertHasImage=function(p){"use strict";j(this.hasImage(p));};o.prototype.getSelectedImages=function(){"use strict";return this.$AdsImageCollection4.slice(0);};o.prototype.getSelectedImageCount=function(){"use strict";return this.$AdsImageCollection4.length;};o.prototype.hasSelectedImages=function(){"use strict";return this.getSelectedImageCount()!==0;};o.prototype.canSelectImages=function(){"use strict";return !this.allowsMultiImageSelection()||this.getSelectedImageCount()<this.getMaxSelectedImageCount();};o.prototype.getImageByIndex=function(p){"use strict";return this.$AdsImageCollection2[p];};o.prototype.getImageByUniqueID=function(p){"use strict";return this.$AdsImageCollection3[p]&&this.$AdsImageCollection3[p].image;};o.prototype.getImages=function(p){"use strict";g.assertIsValidViewBitmask(p);return this.$AdsImageCollection2.filter(function(q){return (0!==(p&this.$AdsImageCollection3[q.getUniqueIdentifier()].view));},this);};o.prototype.getImageCount=function(p){"use strict";return this.getImages(p).length;};o.prototype.isEmpty=function(){"use strict";return this.getImageCount(g.views.ALL)===0;};o.prototype.getMaxSelectedImageCount=function(){"use strict";return this.$AdsImageCollection0;};o.prototype.allowsMultiImageSelection=function(){"use strict";return this.$AdsImageCollection0!==1;};e.exports=o;},null);
  __d("ads-objectives",["AdsAPIObjectives","AdsDestinationTypes","keyMirror"],function(a,b,c,d,e,f,g,h,i){var j=i({POST_ENGAGEMENT:null,PAGE_LIKES:null,WEBSITE_CLICKS:null,WEBSITE_CONVERSIONS:null,APP_INSTALLS:null,CANVAS_APP_INSTALLS:null,MOBILE_APP_INSTALLS:null,APP_ENGAGEMENT:null,CANVAS_APP_ENGAGEMENT:null,MOBILE_APP_ENGAGEMENT:null,EVENT_RESPONSES:null,OFFER_CLAIMS:null,APP_STORE_MEDIA_VISITS:null,LOCAL_AWARENESS:null,VIDEO_VIEWS:null,INSTAGRAM_BRAND_AWARENESS:null,PRODUCT_CATALOG_SALES:null,NONE:null,MIXED:null}),k=[g.OFFER_CLAIMS,g.POST_ENGAGEMENT],l={};l[h.APP]=[j.APP_INSTALLS,j.APP_ENGAGEMENT];l[h.EVENT]=[j.EVENT_RESPONSES];l[h.EXTERNAL_WEBPAGE]=[j.WEBSITE_CLICKS,j.WEBSITE_CONVERSIONS,j.PRODUCT_CATALOG_SALES];l[h.PAGE]=l[h.PLACE]=[j.PAGE_LIKES,j.POST_ENGAGEMENT,j.LOCAL_AWARENESS,j.VIDEO_VIEWS,j.OFFER_CLAIMS];var m={};m[j.PAGE_LIKES]=g.PAGE_LIKES;m[j.POST_ENGAGEMENT]=g.POST_ENGAGEMENT;m[j.WEBSITE_CLICKS]=g.WEBSITE_CLICKS;m[j.WEBSITE_CONVERSIONS]=g.WEBSITE_CONVERSIONS;m[j.OFFER_CLAIMS]=g.OFFER_CLAIMS;m[j.VIDEO_VIEWS]=g.VIDEO_VIEWS;m[j.EVENT_RESPONSES]=g.EVENT_RESPONSES;m[j.LOCAL_AWARENESS]=g.LOCAL_AWARENESS;m[j.APP_ENGAGEMENT]=g.CANVAS_APP_ENGAGEMENT;m[j.APP_INSTALLS]=g.MOBILE_APP_INSTALLS;m[j.APP_STORE_MEDIA_VISITS]=g.WEBSITE_CLICKS;m[j.PRODUCT_CATALOG_SALES]=g.PRODUCT_CATALOG_SALES;var n={};n[g.CANVAS_APP_ENGAGEMENT]=j.APP_ENGAGEMENT;n[g.CANVAS_APP_INSTALLS]=j.APP_INSTALLS;n[g.EVENT_RESPONSES]=j.EVENT_RESPONSES;n[g.LOCAL_AWARENESS]=j.LOCAL_AWARENESS;n[g.MOBILE_APP_ENGAGEMENT]=j.APP_ENGAGEMENT;n[g.MOBILE_APP_INSTALLS]=j.APP_INSTALLS;n[g.OFFER_CLAIMS]=j.OFFER_CLAIMS;n[g.VIDEO_VIEWS]=j.VIDEO_VIEWS;n[g.WEBSITE_CONVERSIONS]=j.WEBSITE_CONVERSIONS;n[g.POST_ENGAGEMENT]=j.POST_ENGAGEMENT;n[g.PAGE_LIKES]=j.PAGE_LIKES;n[g.WEBSITE_CLICKS]=j.WEBSITE_CLICKS;n[g.PRODUCT_CATALOG_SALES]=j.PRODUCT_CATALOG_SALES;var o=function(q){return [g.CANVAS_APP_INSTALLS,g.EVENT_RESPONSES,g.PAGE_LIKES].indexOf(q)>-1;},p=function(q){return [g.WEBSITE_CLICKS,g.WEBSITE_CONVERSIONS].indexOf(q)>-1;};e.exports={APItoKPIObjectives:n,isCreateConnectionObjective:o,isURLCachingEligibileObjective:p,KPIObjectives:j,KPIObjectivesByDestinationType:l,KPItoAPIObjectives:m,OBJECTIVES:g,APIObjectivesWithRequiredStoryID:k};},null);
  __d("AdsCFDestinationUtils",["ads-app-platforms","AdsCFConnectConfig","AdsCreationConfig","AdsDestinationTypes","AdsImageLegacy","AdsImageCollection","AdsImageCollectionViews","arrayContains","CurrentUser","SearchableEntry","fbt","ads-lib-urllib","ads-lib-connect_DEPRECATED","ads-objectives"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=b('ads-lib-connect_DEPRECATED').FB,t=b('ads-objectives').KPIObjectives,u=g.NATIVE_APP_TO_MOBILE_STORE_MAP,v='/images/icons/t_default.jpg';function w(da,ea){da=da||{};var fa={activeCoupons:da.active_coupons||[],infoAvailable:true,destinationId:da.id,destinationName:da.type===j.EXTERNAL_WEBPAGE?da.url:(da.name||da.title_fill||da.original_object_url||"No description available"),destinationTitle:da.title_fill||da.name||'',destinationSummary:da.body_fill||da.description||'',destinationPicture:z(da),destinationImages:aa(da.images),destinationOriginalObjectUrl:r.normalize(da.object_url||da.url),destinationIsOG:!!da.is_og,destinationUrl:da.url,destinationCityInfo:da.city_info,fanCountries:da.fan_countries,suggestedTopics:da.suggested_topics,destinationType:da.type,tabs:da.tabs||{},minAge:(+da.minimum_age<i.maxAge)?+da.minimum_age:i.minAge,canCreateAd:(da.can_create_ad===(void 0))?!!da.is_admin:!!da.can_create_ad,isAdmin:!!da.is_admin,isAppLinksUsed:!!da.app_links_used,isAppStoreMedia:!!da.is_app_store_media,isBlackholed:!!da.is_blackholed,canReceiveMessage:!!da.can_receive_message,isPublished:!!da.is_published,offerEligible:!!da.offer_eligible,eventCreatorId:da.event_creator_id,hasEnoughFansForOffers:da.has_enough_fans_for_offers,showOfferLWComposer:da.open_offer_lw_composer_in_ads_cf,geoGating:da.geo_gating,canCreatePageContent:da.can_create_page_content,storyId:da.story_id||'',warmup:!!ea,isGame:da.is_game,defaultObjective:da.default_objective,actualDestinationType:da.type,appPlatforms:g.getPlatformsFromGraph(da.app_platforms),appInstallsTracked:da.app_installs_tracked,defaultDailyBudget:da.default_daily_budget,nativeAppStoreIds:da.native_app_store_ids,category:da.category,subcategory:da.subcategory,mobileStoreObject:da.mobile_store_object,mobileStoreDestinationType:da.mobile_store_destination_type,originalObjectUrl:da.original_object_url,supportedDevices:da.supported_devices,mobileAppCPAAccess:da.mobile_app_cpa_access,nativeAppTargetingIDs:da.native_app_targeting_ids,interests:da.interests,objectStoreUrl:da.object_store_url,objectStoreUrls:da.object_store_urls,canEdit:da.canEdit},ga=fa.nativeAppTargetingIDs;if(ga){fa.nativeAppTargetingIDs={};Object.keys(ga).forEach(function(ha){fa.nativeAppTargetingIDs[ha]=ga[ha].toString();});}return fa;}function x(da,ea,fa,ga){ga=ga||ea.destinationName;if(ea.originalObjectUrl&&(fa===t.WEBSITE_CLICKS||fa===t.WEBSITE_CONVERSIONS))ga=ea.originalObjectUrl;var ha=new p({uniqueID:da,title:ga,photo:ea.destinationPicture});return ha;}function y(da,ea){var fa=o.getID();return da.fetch.accessTokenForPage.promiseOne({pageId:ea}).then(function(ga){return da.fetch.rolesOnPage.promiseOne({access_token:ga.access_token,pageId:ea,userId:fa});}).then(function(ga){return ga.some(function(ha){return ha.id===fa&&n(ha.perms,'EDIT_PROFILE');});},function(ga){return false;});}function z(da){switch(da.type){case j.EXTERNAL_WEBPAGE:return da.picture||v;case j.APP:return da.picture;default:var ea=da.id;if(!ea)return v;return s.url('/'+ea+'/picture',{type:'large'},h.access_token);}}function aa(da){da=da||[];var ea=new l();ea.addImagesToBack(da.map(function(fa){return new k({url:fa});}),m.views.LIBRARY);return ea;}function ba(da,ea){if(ea.isPublished||(da!==j.PAGE&&da!==j.PLACE))return false;return true;}function ca(da,ea){if(da.objectStoreUrl)return da.objectStoreUrl;var fa=u[ea];return da.objectStoreUrls[fa];}e.exports={convertAPIDataToFields:w,convertToSearchableEntry:x,getAppUrlForPlatform:ca,isUnpublishedPage:ba,promisePageEditRights:y};},null);
  __d("AdsCFCreativeViewActions",["AdsCFActionTypes","AdsCFDestinationUtils","AdsDispatcher"],function(a,b,c,d,e,f,g,h,i){'use strict';var j={setCreativeTitle:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,title:k});},setCreativeBody:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,body:k});},setCreativeDeepLink:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,applinkUrl:k});},setCreativeDeepLinkTitle:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,mobileProductName:k});},setCreativeCallToActionType:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,callToActionType:k,productLinkUrl:null});},setCreativeCallToActionLink:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,callToActionLink:k});},setCreativeCallToActionLinkCaption:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,callToActionLinkCaption:k});},setCreativeProductLink:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,productLinkUrl:k});},setIsVideoCreative:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,isVideoCreative:k});},setCreativeVideoID:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,videoId:k});},setVideoAndThumbnail:function(k,l){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,videoId:k,videoThumbnail:l});},setCreativeLinkUrl:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,linkUrl:k});},setCreativeIconImage:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,iconImage:k});},setCreativeMobileStore:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,mobileStore:k});},setCreativeImageList:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,imageList:k});},setCreativeLinkDescription:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,linkDescription:k});},setStoryId:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,storyId:k});},setURLTags:function(k){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,urlTags:k});},setActor:function(k,l){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,actor:k,eventSource:l});},setPlacements:function(k,l,m){i.handleUpdateFromViewAction({actionType:g.CREATIVE_PLACEMENTS_CHANGE,placementList:k,enabled:l,eventSource:m});},imageValidated:function(k,l,m){i.handleUpdateFromViewAction({actionType:g.IMAGE_VALIDATED,image:k,placement:l,validation:m});},updateImageCrop:function(k,l,m,n,o){i.handleUpdateFromViewAction({actionType:g.IMAGE_CROP_CHANGE,creativeType:k,image:l,cropKey:m,placement:n,coordinates:o});},setAppPlatform:function(k,l){i.handleUpdateFromViewAction({actionType:g.CREATIVE_CHANGE,applinkUrl:(k&&k.isAppLinksUsed)?k.originalObjectUrl:null,linkUrl:h.getAppUrlForPlatform(k,l),platform:l});},setRHCRedesign:function(k){i.handleUpdateFromViewAction({actionType:g.RHC_REDESIGN_CHANGE,value:k});}};e.exports=j;},null);
  __d("AdsCreateFlowConfig",["AdsCreationConfig"],function(a,b,c,d,e,f,g){var h={PAGE_POST_TIMEOUT_MS:6000,MAX_PAGE_POST_LEN:50,MAX_TITLE_LENGTH:g.maxTitleLength,MAX_URL_LENGTH:g.maxURLLength,NEW_CAMPAIGN_ID:0,AGE_MIN:g.minAge,AGE_MAX:g.maxAge,ONE_BOX_TYPEAHEAD_TRUNCATION:21,ONE_BOX_DEBOUNCE_MS:120,MAX_TEXT_LENGTH:52,MAX_SUGGESTED_KEYWORDS_OFFSET:45,SUGGESTED_KEYWORDS_PER_FETCH:15,DEFAULT_IMAGE_URL_SUFFIX:'/images/devsite/attachment_blank.png',SEE_ALL:'see_all',GO_BACK:'go_back'};e.exports=h;},null);
  __d("PagePostTypes",[],function(a,b,c,d,e,f){"use strict";var g={LINK:'link',OFFER:'offer',PHOTO:'photo',QUESTION:'question',STATUS:'status',VIDEO:'video',PREMIUM_VIDEO:'premiumVideo',TEMPLATE:'template'};e.exports=g;},null);
  __d("AdsPagePostUtils",["AdsAPIObjectives","ApiAdObjectTypes","GraphAPI","Map","PagePostTypes","Promise","adsGKCheck","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';function o(q){if(!q)return null;if(typeof q!=='string')q=q.toString();return q;}var p={isVisibleForObjective:function(q,r){if(!p.isNativeVideoPost(r)&&q===g.VIDEO_VIEWS)return false;if(!p.isWebsiteAdEligiblePost(r)&&(q===g.WEBSITE_CLICKS||q===g.WEBSITE_CONVERSIONS))return false;if(!p.isOfferPost(r)&&q===g.OFFER_CLAIMS)return false;if(!p.isPublishedPost(r)&&m('ads_pe_inline_posts_filter_unpublished')&&(q===g.VIDEO_VIEWS||q===g.WEBSITE_CLICKS||q===g.WEBSITE_CONVERSIONS||q===g.POST_ENGAGEMENT))return false;return true;},isWebsiteAdEligiblePost:function(q){return (q.type!==k.OFFER&&(!!q.link||!!q.entities));},isPagePostObjectType:function(q){return (q===h.OFFER||q===h.PHOTO||q===h.STATUS||q===h.SHARE||q===h.VIDEO);},isPublishedPost:function(q){return (!!q.is_published||!!q.published||!!q.scheduled);},isOfferPost:function(q){return q.type===k.OFFER;},isVideoPost:function(q){return q.type===k.VIDEO;},isNativeVideoPost:function(q){return p.isVideoPost(q)&&!!q.object_id;},getFilter:function(q){var r=[];if(q.hasLink)r.push(p.isWebsiteAdEligiblePost);if(q.isNativeVideo)r.push(p.isNativeVideoPost);if(q.isOffer)r.push(p.isOfferPost);if(q.isPublished)r.push(p.isPublishedPost);return function(s){return r.every(function(t){return t(s);});};},getVisiblePostTypes:function(q){switch(q){case g.WEBSITE_CLICKS:case g.WEBSITE_CONVERSIONS:return [k.LINK];case g.VIDEO_VIEWS:return [k.VIDEO];case g.OFFER_CLAIMS:return [k.OFFER];default:return [k.LINK,k.PHOTO,k.VIDEO,k.STATUS,k.OFFER];}},fetchAccessTokensForPageIDs:function(q,r){var s=new j(),t=new j(),u=q.map(function(v){return (i('2.2').object('page',v).batched().get({fields:'access_token'}).then(function(w){s.set(v,w.access_token);})["catch"](function(w){t.set(v,w.error_user_msg||w.message||'');}));});l.all(u).done(function(){return r(s,t);});},generatePagePostId:function(q,r){return q+"_"+r;},isPagePostId:function(q){q=o(q);if(!q)return false;var r=q.split('_');return r.length===2;},isInvalidPagePostId:function(q,r){r(/[^\d]/.test(q));},getPageIdFromPagePostId:function(q){q=o(q);if(!q)return null;var r=q.split('_');n(r.length===2);return r[0];},getPostIdFromPagePostId:function(q){q=o(q);if(!q)return null;var r=q.split('_');n(r.length===2);return r[1];},getPagePostURL:function(q,r){var s=p.getPostIdBestGuess(r);return '/'+q+'/posts/'+s;},getPostIdBestGuess:function(q){q=o(q);if(!q)return null;var r=q.split('_');n(r.length<=2);return r.pop();}};e.exports=p;},null);
  __d("adsGetCreativeTypeByCreativeFields",["ApiAdObjectTypes","ApiCreativeTypes"],function(a,b,c,d,e,f,g,h){'use strict';function i(j,k,l){switch(k){case g.DOMAIN:return h.STANDARD;case g.PAGE:return h.INLINE_FAN;case g.EVENT:return h.INLINE_RSVP;case g.OFFER:case g.PHOTO:case g.SHARE:case g.STATUS:return h.PAGE_POSTS_V2;case g.VIDEO:if(l&&l.length){return h.PREMIUM_FEED_VIDEO_AD;}else return h.PAGE_POSTS_V2;break;case g.ACTION_SPEC:return h.QUERY_BASED;case g.INSTAGRAM_MEDIA:return h.INSTAGRAM_AD;case g.INVALID:return h.EXOTIC_OR_INVALID;default:if(j)return h.INSTAGRAM_AD;return null;}}e.exports=i;},null);
  __d("AdsCreativeConverter",["AdCreativeType","AdsAPIAdgroupFields","AdsAPIObjectives","AdsPagePostUtils","AdsUtils","ApiAdCreativeFields","ApiAdObjectTypes","ApiCreativeTypes","adsGetCreativeTypeByCreativeFields","ads-app-platforms","invariant","merge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=g.AD_CREATIVE_TYPE,t=g.ALL_CREATIVE_API_FIELDS.map(k.underscoreKey),u={_getAliases:function(){return [{newField:l.ACTOR_ID,oldField:l.RELATED_FAN_PAGE,types:[n.STANDARD,n.PREMIUM_STANDARD]},{newField:l.ACTOR_NAME,oldField:l.TITLE,types:[n.CONTEXTUAL_APP_AD]},{newField:l.TITLE,oldField:l.MOBILE_PRODUCT_NAME,types:[n.CONTEXTUAL_APP_AD]},{newField:l.ACTOR_IMAGE_HASH,oldField:l.ICON_IMAGE_HASH},{newField:l.ACTOR_IMAGE_URL,oldField:l.ICON_IMAGE_URL},{newField:l.OBJECT_URL,oldField:l.LINK_URL,types:[n.STANDARD,n.PREMIUM_STANDARD]}];},getModernFields:function(){var v=[];t.forEach(function(w){switch(w){case l.ACTION_SPEC:case l.AUTO_UPDATE:case l.ICON_IMAGE_HASH:case l.ICON_IMAGE_URL:case l.MOBILE_STORE:case l.RELATED_FAN_PAGE:case l.STORY_ID:case l.TYPE:break;case l.IMAGE_URL:break;default:v.push(w);}});v.push(l.ACTOR_ID);v.push(l.ACTOR_IMAGE_HASH);v.push(l.ACTOR_IMAGE_URL);v.push(l.ACTOR_NAME);v.push(l.LINK_DEEP_LINK_URL);v.push(l.OBJECT_STORY_ID);v.push(l.OBJECT_STORY_SPEC);v.push(l.OBJECT_STORE_URL);v.push(l.OBJECT_TYPE);v.push(l.OBJECT_URL);return v;},toLegacySpec:function(v){var w=r(v);w.type=u.getCreativeType(v);delete w.object_type;var x=[],y=[];u._getAliases().forEach(function(da){var ea=da.types;if(!ea||ea.indexOf(w.type)!==-1){x.push(da.newField);y.push(da.oldField);w[da.oldField]=v[da.newField];}});x.forEach(function(da){if(y.indexOf(da)===-1)delete w[da];});var z=v.object_story_id;if(z){w.object_id=j.getPageIdFromPagePostId(z);w.story_id=j.getPostIdFromPagePostId(z);delete w.object_story_id;}var aa=v.object_store_url;if(aa){q(w.mobile_store&&w.mobile_store_content_id);delete w.object_store_url;}var ba=v.link_deep_link_url;if(ba!==null&&ba!==(void 0)){w.mobile_applink_spec={applink_url:ba,intent_package:w.mobile_store===p.MOBILE_STORE.GOOGLE_PLAY?w.mobile_store_content_id:null};delete w.link_deep_link_url;}var ca=v.object_id;if(ca&&w.type===n.CONTEXTUAL_APP_AD)w.mobile_store=p.MOBILE_STORE.FB_CANVAS;return w;},toModernSpec:function(v){var w=r(v),x=v.type;delete w.type;var y=[],z=[];u._getAliases().forEach(function(da){var ea=da.types;if(!ea||ea.indexOf(x)!==-1){y.push(da.newField);z.push(da.oldField);w[da.newField]=v[da.oldField];}});z.forEach(function(da){if(y.indexOf(da)===-1)delete w[da];});var aa=v.story_id;if(aa){w.object_story_id=j.generatePagePostId(v.object_id,v.story_id);delete w.object_id;delete w.story_id;}var ba=v.mobile_applink_spec;if(ba){w.link_deep_link_url=ba.applink_url;delete w.mobile_applink_spec;if(ba.ref)w.mobile_applink_spec={ref:ba.ref};}var ca=v.mobile_store;if(ca===p.MOBILE_STORE.FB_CANVAS){delete w.mobile_store;}else if(ca){delete w.object_id;if(v.mobile_store_content_id){q(w.object_store_url);delete w.mobile_store;delete w.mobile_store_content_id;}}return w;},getObjectTypeGuess:function(v){switch(v.type){case n.STANDARD:return m.DOMAIN;case n.INLINE_FAN:return m.PAGE;case n.INLINE_RSVP:return m.EVENT;case n.PAGE_POSTS_V2:return m.STATUS;case n.PREMIUM_FEED_VIDEO_AD:return m.VIDEO;case n.QUERY_BASED:return m.ACTION_SPEC;case n.INSTAGRAM_AD:return m.INSTAGRAM_MEDIA;case n.EXOTIC_OR_INVALID:return m.INVALID;default:return m.INVALID;}},getObjectTypeGuessForCF:function(v){switch(v.type){case s.FEED_URL:case s.NEKO_LPP:case s.AD_VIDEO:return m.SHARE;default:return u.getObjectTypeGuess(v);}},getCreativeType:function(v){return o(v.object_instagram_id,v.object_type,v.video_list);},getCreativeTypeForCF:function(v){var w=this.getCreativeType(v[h.CREATIVE]);if(w===n.PAGE_POSTS_V2)switch(v.objective){case i.CANVAS_APP_ENGAGEMENT:case i.CANVAS_APP_INSTALLS:case i.MOBILE_APP_ENGAGEMENT:case i.MOBILE_APP_INSTALLS:w=s.NEKO_LPP;break;case i.LOCAL_AWARENESS:case i.WEBSITE_CLICKS:case i.WEBSITE_CONVERSIONS:w=s.FEED_URL;break;case i.VIDEO_VIEWS:w=s.AD_VIDEO;break;case i.EVENT_RESPONSES:case i.POST_ENGAGEMENT:case i.OFFER_CLAIMS:break;default:q(false);}return w;},isDomainAd:function(v){var w=v[h.CREATIVE],x=this.getCreativeType(w),y=w[l.OBJECT_TYPE];return x===n.STANDARD||y===m.DOMAIN;}};e.exports=u;},null);
  __d("AdsCreativeUtils",["AdsAPIObjectives","AdsDateUtils","AdsCreateFlowConfig","AdsCreativeConverter","AdsDestinationTypes","AdsImageLegacy","AdsPagePostUtils","ApiAdCreativeFields","ApiAdObjectTypes","ApiCreativeTypes","ads-lib-formatters","PagePostTypes","URI","areEqual","keyMirror","merge","bolt/util","fbt","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){var y=b('AdCreativeType').keyToType,z=3;function aa(ra,sa){return t(ra,sa);}function ba(ra){ra=ca(ra).concat(ra);var sa={};return ra.filter(function(ta){if(!ta.is_published&&!ta.scheduled_publish_time)return false;if(ta.type===r.STATUS&&!ta.message)return false;if(sa[ta.id])return false;sa[ta.id]=true;return true;});}function ca(ra){var sa=[];for(var ta=0;ta<ra.length;ta++){if(ra[ta].is_popular)sa.push(ra[ta]);if(sa.length===z)break;}return sa;}function da(ra){if(!ra||ra.type!==r.OFFER||!ra.is_published)return false;var sa=ra.expiration_timestamp;return (typeof sa==='number')?sa<Date.now()/1000:false;}function ea(ra,sa){if(!ra||!sa)return null;var ta;for(var ua=0;ua<sa.length;ua++){ta=m.getPostIdBestGuess(sa[ua].id);if(ta===ra)return sa[ua];}return null;}function fa(ra){return (ra.comments&&ra.comments.summary&&ra.comments.summary.total_count)||0;}function ga(ra){var sa=ha(ra);if(ra.type===r.PHOTO)sa=ra.name&&ra.message?ra.name+" - "+ra.message:sa;var ta=oa(sa);if(this.getIsPagePostExpiredOffer(ra))ta+=' ('+"Expired"+')';return ta;}function ha(ra){var sa=ra.name||ra.message||ra.story||'';return sa.replace(/(\r\n|\n|\r)/gm,'');}function ia(ra){if(!ra.created_time)return 0;if(typeof ra.created_time==='number')return ra.created_time;return h.parseISODate(ra.created_time).getTime()/1000;}function ja(ra){var sa;if(ra instanceof l){sa=ra.getThumbnailUrl()||ra.getPreviewUrl()||ra.getUrl();}else sa=ra;return sa;}function ka(ra){return (ra.likes&&ra.likes.summary&&ra.likes.summary.total_count)||0;}function la(ra){return (ra.shares&&ra.shares.count)||0;}function ma(ra,sa,ta){var ua='FEED_URL';switch(ra){case k.PAGE:case k.PLACE:if(sa===g.POST_ENGAGEMENT||sa===g.OFFER_CLAIMS){ua='AD_PAGE_POST';}else if(sa===g.LOCAL_AWARENESS){ua='FEED_URL';}else if(sa===g.VIDEO_VIEWS){ua='AD_VIDEO';}else ua='AD_FAN_LIKE';break;case k.APP:if(sa===g.POST_ENGAGEMENT){ua='AD_PAGE_POST';}else ua='NEKO_LPP';break;case k.EVENT:ua='AD_EVENT_RSVP';break;}var va=u({AD_FAN_LIKE:null,AD_APPLICATION:null,AD_EVENT_RSVP:null}),wa=v(y[ua]);wa.isAdminOnly=!!va[ua];return wa;}var na=function(ra,sa){var ta,ua,va;if(w.isObject(ra))for(var wa in ra){if(!ra.hasOwnProperty(wa))continue;var xa=s(wa),ya=xa.getQueryData().sk;if(ya==='timeline'){ta=sa;}else if(ya==='wall'){ua=wa;}else if(!va)va=wa;}return ta||ua||va||sa;},oa=q.createTextTruncator(i.MAX_PAGE_POST_LEN,"No message");function pa(ra,sa){return s('https://graph.facebook.com/act_'+ra+'/adimages').addQueryData({hashes:[sa],redirect:true}).toString();}function qa(ra){var sa=j.getCreativeType(ra),ta=ra[n.OBJECT_TYPE],ua=ra[n.OBJECT_STORY_SPEC],va=ua&&!!ua.video_data;return ta===o.VIDEO||va||sa===p.PREMIUM_FEED_VIDEO_AD;}e.exports={filterPagePosts:ba,getDefaultLinkURL:na,getImageURLFromHash:pa,getIsPagePostExpiredOffer:da,getPagePostFromStoryId:ea,getPostCommentCount:fa,getPostContent:ga,getPostDate:ia,getPostImageURL:ja,getPostLikeCount:ka,getPostShareCount:la,getPrimaryCreativeConfig:ma,getRawPostContent:ha,isSameCreativeSpec:aa,isVideoCreative:qa};},null);
  __d("AdsCFCreativeUtils",["AdsAPIObjectives","ads-app-platforms","AdsCallToActionTypes","AdsCFApplicationStore","AdsCFCreativeProperties","AdsCFCreativeViewActions","AdsCFDestinationUtils","AdsCreationConfig","AdsCreativeUtils","AdsImageLegacy","ApiCreativeTypes","ads-lib-formatters","fbt","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=b('AdCreativeType').AD_CREATIVE_TYPE;function u(ja){return {id:''+ja.id,name:ja.name||(''+ja.id),globalBrandName:ja.global_brand_page_name||ja.name||(''+ja.id),picture:(ja.picture&&ja.picture.data&&ja.picture.data.url)||'https://graph.facebook.com/'+ja.id+'/picture',published:!!ja.is_published,detail:ja.category||'',stats:!ja.likes?'':s._("{Number} Likes",[s.param("Number",ja.likes)]),userPermissions:(ja.userpermissions&&ja.userpermissions.data)||[]};}function v(ja){var ka={category:ja.category,global_brand_page_name:ja.name,id:ja.id,is_published:true,link:ja.link,name:ja.name,picture:{data:{url:ja.picture}}};return u(ka);}function w(ja,ka){if(!ka)return true;var la=k.idToType[ja.creativeType].validFields;return la.some(function(ma){return ka[ma]!==ja[ma];});}function x(ja){var ka=ja.imageList;if(Array.isArray(ka)&&ka.length){var la={};Object.assign(la,ja);la.imageList=ka.map(function(ma){return ma.toJSON();});return la;}return ja;}function y(ja){var ka=ja.imageList;if(Array.isArray(ka)&&ka.length)ja.imageList=ka.map(function(la){return new p({hash:la.hash,url:la.url,width:la.width,height:la.height});});return ja;}function z(ja){return (ja!==q.PAGE_POSTS_V2&&ja!==t.AD_VIDEO);}function aa(ja){l.setStoryId(ja.value);}function ba(ja,ka){if(ja.creativeType!==t.NEKO_LPP||ka!==g.CANVAS_APP_ENGAGEMENT)return false;var la=ja.callToActionType||'';if(la!==i.TYPES.BUY_NOW.name&&la!==i.TYPES.GET_OFFER.name)return false;return true;}function ca(ja){return !!(ja.creativeType===t.AD_VIDEO||ja.isVideoCreative);}function da(ja){return !j.isCampaignManager()&&ja.creativeType===t.INLINE_RSVP;}var ea=r.createTextTruncator(n.maxBodyLength),fa=r.createTextTruncator(n.maxTitleLength),ga=r.createTextTruncator(n.maxDeepLinkTitleLength);function ha(ja,ka,la,ma,na,oa){var pa=oa.title||na.destinationTitle,qa=oa.body||na.destinationSummary,ra;if(na.destinationImages&&!na.destinationImages.isEmpty()){ra=na.destinationImages.getImageByIndex(0).getUrl();}else if(ja===t.NEKO_LPP){ra=null;}else ra=na.destinationPicture;var sa=oa.imageList,ta=oa.imageUrl||ra;if(!(sa&&sa.length)){sa=[];if(ta)sa.push(new p({url:ta}));}var ua=null;if((ka===g.WEBSITE_CLICKS||ka===g.WEBSITE_CONVERSIONS)&&na.originalObjectUrl){ua=na.originalObjectUrl;}else ua=oa.linkUrl||o.getDefaultLinkURL(na.tabs,na.destinationUrl);var va;if(ja===t.NEKO_LPP){if(ka===g.CANVAS_APP_INSTALLS||ka===g.CANVAS_APP_ENGAGEMENT){va=h.APP_PLATFORM.DESKTOP_CANVAS;}else va=na.appPlatforms[0];ua=m.getAppUrlForPlatform(na,va);}var wa={body:ea(qa),iconImage:new p({url:oa.iconImageUrl||na.destinationPicture}),imageList:sa,imageUrl:ta,linkUrl:ua,mobileProductName:(ka===g.MOBILE_APP_ENGAGEMENT)?ga(pa):null,objectId:la,platform:va,storyId:oa.storyId||ma,title:fa(pa)};if(ka===g.MOBILE_APP_INSTALLS){wa.callToActionType=i.TYPES.INSTALL_MOBILE_APP.name;}else if(ka===g.MOBILE_APP_ENGAGEMENT){wa.callToActionType=i.TYPES.USE_MOBILE_APP.name;}else if(ka===g.CANVAS_APP_INSTALLS||ka===g.CANVAS_APP_ENGAGEMENT)wa.callToActionType=i.TYPES.PLAY_GAME.name;return wa;}function ia(ja){var ka=(/^http:\/\/apps\.facebook\.com\/[^\/]*\//).exec(ja)||(/^http:\/\/apps\.facebook\.com\/.*\?/).exec(ja);return ka&&ka[0].slice(0,-1);}e.exports={convertNewPageResultToActor:v,convertPageApiSpecToActor:u,creativeTypeHasImage:z,deserializeCreativeState:y,getCanvasAppUrlFromDeepLink:ia,getDefaultCreativeData:ha,handleChangeForStoryID:aa,hasCreativeChanged:w,isEventRedesignAd:da,isProductLinkURLRequired:ba,isVideoCreative:ca,serializeCreativeState:x};},null);
  __d("AdsAddressUtils",["fbt"],function(a,b,c,d,e,f,g){var h={formatSingleLineAddress:function(i){if(i.street){if(i.state){return g._("{house_number_and_street}, {city}, {state}, {country}",[g.param("house_number_and_street",i.street),g.param("city",i.city),g.param("state",i.state),g.param("country",i.country)]);}else return g._("{house_number_and_street}, {city}, {country}",[g.param("house_number_and_street",i.street),g.param("city",i.city),g.param("country",i.country)]);}else if(i.state){return g._("{city}, {state}, {country}",[g.param("city",i.city),g.param("state",i.state),g.param("country",i.country)]);}else return g._("{city}, {country}",[g.param("city",i.city),g.param("country",i.country)]);}};e.exports=h;},null);
  __d("XAdsPageLocationControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/createflow\/page_location\/",{id:{type:"String",required:true}});},null);
  __d("AdsCFDestinationDataLoader",["AdsCFAccountStore","AdsCFActionTypes","AdsDestinationTypes","AdsDispatcher","AdsPagePostUtils","AsyncRequest","Promise","XAdsPageLocationControllerURIBuilder","invariant","ads-lib-urllib"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=3,r=30000,s=false;function t(y){var z=[];y&&y.forEach(function(aa){aa.id=k.getPostIdBestGuess(aa.id);z.push(aa);});return z;}function u(y){if(y){var z=y.split(/\s+/);for(var aa=0;aa<z.length;aa++)if(p.isUrl(z[aa]))return z[aa];}}function v(y,z){j.handleUpdateFromServerResponse({actionType:h.POST_LINK_DATA_LOADED,storyId:y,data:z});}function w(y){j.handleUpdateFromServerResponse({actionType:h.PAGE_POSTS_LOAD_COMPLETE,requestId:y});}var x={fetchPagePosts:function(y,z,aa,ba){o(s);ba=ba||0;aa=aa||[];var ca=aa.length;if(ba>q){w(y);return;}var da=g.getDao();function ea(fa){if(!s)return;if(!fa||!fa.length){w(y);return;}aa.push.apply(aa,t(fa));j.handleUpdateFromServerResponse({actionType:h.PAGE_POSTS_LOADED,apiData:aa,requestId:y});this.fetchPagePosts(y,z,aa,ba+1);}da.fetch.pagePromotablePostsForConnectionObject.one(ea.bind(this),{objectId:z,until:ca?aa[ca-1].updated_time:null,handleError:w.bind(y),fields:['message','picture','full_picture','link','name','description','type','is_published','comments.summary(true)','icon','is_popular','likes.summary(true)','object_id','scheduled_publish_time','shares','story','updated_time']});},fetchPostLinkData:function(y,z,aa){o(s);var ba=z&&z.type,ca=null;if(ba=='link'){ca=z.link;}else if(['photo'].indexOf(ba)!==-1)ca=u(z.message);if(!ca){aa&&aa(null);return;}var da=g.getDao();function ea(){if(!s)return;v(y,null);aa&&aa(null);}function fa(ga){if(!s)return;var ha=null,ia=ga&&ga[0];if(ia&&ia.id&&ia.type)ha=ia;v(y,ha);aa&&aa(ha);}da.fetch.adsDestinationInfo.one(fa,{object_url:ca,handleError:ea});},promisePageLocation:function(y){o(s);return new m(function(z,aa){var ba=new n().setString('id',y).getURI();new l().setURI(ba).setMethod('GET').setReadOnly(true).setHandler(function(ca){z(ca.payload);}).setErrorHandler(function(ca){aa(ca);}).setTimeoutHandler(r,function(ca){aa(new Error('Timeout when trying to fetch page location.'));}).send();});},promiseDestinationDetails:function(y,z){o(s);var aa;if(z===i.PLACE||z===i.PAGE)aa=['can_post','location'];var ba={fbid:y};if(aa)ba.fields=aa;var ca=g.getDao();return ca.fetch.objectByFBID.promiseOne(ba);},setActiveState:function(y){s=y;}};e.exports=x;},null);
  __d("AdsCFLogger",["AdsCFAccountStore","AdsCFBanzaiConfig","AdsCFConstants","AdsCFEventNames","BanzaiLogger","Run","AdsCFLoggerInternal","URIInitDataUtil","adsGKCheck","copyProperties","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){function r(){return {environment:n.getEnvironment()||i.Environments.DEFAULT};}var s=r(),t={},u,v,w={resetDefaultData:function(){s=r();m.setDefaultData(s);},updateDefaultData:function(x){Object.assign(s,x);m.updateDefaultData(s);},logOnce:function(event,x){if(t[event])return;this.log(event,x);t[event]=true;},resetLogOnceForEvent:function(event){delete t[event];},resetLogOnceForAllEvents:function(){t={};},log:function(event,x){if(!u){u=k.create(h);v=0;}x=x||{};Object.assign(x,{log_count:v++,logger_source:'AdsCFLogger'});var y=p({ad_account_id:g.getAccountID(),event_name:event,time_since_load:Date.now()-a._cstart},s,x||{});if(o('ads_createflow_banzai_logger'))u.log('AdsCFLoggerConfig',y);m.log(m.CATEGORIES.NO_DB_OP,event,x);}};l.onAfterUnload(w.resetDefaultData.bind(w));e.exports=w;},null);
  __d("AdsCFNavigationSections",["createObjectFrom","keyMirror"],function(a,b,c,d,e,f,g,h){var i=['ACCOUNT','CAMPAIGN','CAMPAIGN_GROUP','CREATIVE','IMAGES','IMAGE_AND_VIDEO','PRICING','TARGETING','VIDEO'],j=['FOCUS','SCROLL','MOUSE'],k={id:h(g(i)),event:h(g(j)),ids:i,events:j};e.exports=k;},null);
  __d("AdsCFNavigationStore",["AdsActionTypes","AdsBaseStore","AdsCFActionTypes","AdsCFNavigationSections","invariant","removeFromArray"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m='NAVIGATE';k(!(m in j.event));var n,o,p,q,r;function s(){n={};o={};p=[];q={};}s();function t(ea){k(ea in j.id);}function u(event){k(event in j.event);}function v(ea){return ea in n;}function w(ea,fa){k(!v(ea));n[ea]=fa;}function x(ea){delete n[ea];}function y(ea,event){l(p,event);p.unshift(event);o[event]=ea;q[ea]=true;}function z(ea,event){if(o[event]===ea){l(p,event);delete o[event];}}for(var aa in h)if(h.hasOwnProperty(aa))ca[aa]=h[aa];var ba=h===null?null:h.prototype;ca.prototype=Object.create(ba);ca.prototype.constructor=ca;ca.__superConstructor__=h;function ca(){"use strict";if(h!==null)h.apply(this,arguments);}ca.prototype.getStoreName=function(){"use strict";return 'AdsCFNavigationStore';};ca.prototype.getSectionIDs=function(){"use strict";return j.ids.filter(v);};ca.prototype.getSectionDetails=function(ea){"use strict";return n[ea];};ca.prototype.getHighglightedSectionID=function(){"use strict";if(o[m])return o[m];if(p.length>0)return o[p[0]];return null;};ca.prototype.hasVisitedSection=function(ea){"use strict";return q[ea]===true;};ca.prototype.getScrollContainer=function(){"use strict";return r;};ca.prototype.onDispatchToken=function(ea){"use strict";var fa=ea.action;switch(fa.actionType){case i.INIT_STARTED:r=fa.scrollContainer;da.inform('change');break;case i.NAVIGATION_SECTION_ADD:t(fa.id);w(fa.id,fa.data);da.inform('change');break;case i.NAVIGATION_SECTION_REMOVE:t(fa.id);x(fa.id);da.inform('change');break;case i.NAVIGATION_SECTION_ENTERED:u(fa.event);y(fa.id,fa.event);da.inform('change');break;case i.NAVIGATION_SECTION_EXITED:u(fa.event);z(fa.id,fa.event);da.inform('change');break;case i.NAVIGATION_SECTION_GO:t(fa.id);if(v(fa.id)){o[m]=fa.id;da.inform('change');da.inform('go',{id:fa.id,animationDuration:fa.animationDuration});}break;case i.NAVIGATION_SECTION_SCROLL_DONE:delete o[m];break;case g.PAGE_TRANSITION:case i.RESET_CF_STORES:s();da.inform('change');break;}};var da=new ca();a.debug_AdsCFNavigationStore=da;e.exports=da;},null);
  __d("XAdsCFMobileOptimizedCheckControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/createflow\/mobile_check\/",{url:{type:"String",required:true}});},null);
  __d("isNumberLike",[],function(a,b,c,d,e,f){function g(h){return !isNaN(parseFloat(h))&&isFinite(h);}e.exports=g;},null);
  __d("XAdsMobileAppEngagementLegalDialogControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/manage\/mobile_app_engagement\/tos_dialog\/",{act:{type:"Int",required:true},agree:{type:"Int"},__asyncDialog:{type:"Int"}});},null);
  __d("AdsCFMobileAppEngagementUtils",["AdsAccountCapabilities","AdsAPIObjectives","AdsCFAccountStore","Link.react","React","XAdsMobileAppEngagementLegalDialogControllerURIBuilder","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(s){return (s===h.MOBILE_APP_ENGAGEMENT&&!i.hasAccountCapability(g.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS));}function o(){var s=new l();s.setInt('act',i.getAccountID());return s.getURI();}function p(){return (m._("You'll need to accept the \"Data Use Terms for App Ads on Mobile\" before your Ad can be successfully created. {=Read and accept terms}.",[m.param("=Read and accept terms",k.createElement(j,{ajaxify:o(),rel:"dialog-post"},"Read and accept terms"))]));}function q(){return ("You have accepted the terms for this account. Thank you.");}function r(){return p();}e.exports={hasNotAcceptedRequiredTOS:n,getLegalNotice:p,getLegalError:r,getAcceptedNotice:q};},null);
  __d("AdsCFObjectiveUtils",["AdsAPIObjectives","ads-app-platforms","AdsCFApplicationStore","AdsCFConstants","AdsCFDestinationStore","AdsCFDestinationUtils","AdsCFMobileAppEngagementUtils","AdsCreativeUtils","AdsDestinationTypes","ads-objectives","adsGKCheck"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';var r=p.APIObjectivesWithRequiredStoryID,s=h.MOBILE_STORE_DESTINATION_TYPE;function t(z,aa,ba){var ca=ba.storyID,da=ba.pagePosts,ea=ba.destinationType,fa=aa.appPlatforms,ga=r.indexOf(z)>-1,ha;if(ga){var ia=n.getPagePostFromStoryId(ca,da);ha=n.getIsPagePostExpiredOffer(ia);}var ja=aa.offerEligible,ka=l.isUnpublishedPage(ea,aa);return {isUnpublishedPage:ka,noPlatforms:!fa||!fa.length,noPosts:!da.length,offerEligible:ja,offerExpired:ha,requiresStoryID:ga,storyID:ca};}function u(z,aa,ba,ca,da){if(i.getDataState()!==j.DataStates.SUCCESS)return false;var ea=t(z,ca,da);if(!aa||!ba||ea.isUnpublishedPage||ca.isBlackholed||(ea.requiresStoryID&&(!ea.storyID||ea.offerExpired||ea.noPosts))||(z===g.OFFER_CLAIMS&&!ea.offerEligible)||((!ca.isAdmin||!ca.canCreateAd)&&(z===g.PAGE_LIKES||z===g.LOCAL_AWARENESS||z===g.VIDEO_VIEWS))||(z===g.EVENT_RESPONSES&&!ca.canCreateAd)||(ea.noPlatforms&&(z===g.MOBILE_APP_ENGAGEMENT||z===g.MOBILE_APP_INSTALLS||z===g.CANVAS_APP_INSTALLS||z===g.CANVAS_APP_ENGAGEMENT))||m.hasNotAcceptedRequiredTOS(z))return false;if(z===g.MOBILE_APP_ENGAGEMENT){if(q('neko_engagement_continue_btn')||ca.isAdmin)return true;switch(ca.mobileStoreDestinationType){case s.FB_APPLICATION_ONLY:case s.FB_MOBILE_STORE_WITH_BACKING_APP:return true;default:return false;}}if(z===g.LOCAL_AWARENESS)if(q('ads_cf_local_page_address_form')&&!da.isLocationConfirmed)return false;return true;}function v(z,aa,ba,ca,da,ea){if(i.getDataState()===j.DataStates.FAILURE)return true;var fa=t(z,da,ea);if(!ba||!ca||fa.isUnpublishedPage||da.isBlackholed||(fa.requiresStoryID&&fa.offerExpired)||(z===g.MOBILE_APP_ENGAGEMENT&&!da.isAdmin&&!q('neko_engagement_continue_btn'))||(z===g.OFFER_CLAIMS&&aa&&!fa.offerEligible))return true;return false;}function w(z){if(!z)return null;var aa=null;if(z instanceof Array){for(var ba=0;ba<z.length;++ba){var ca=z[ba];if(ca.offsite_pixel){aa=ca.offsite_pixel;break;}}}else if(z.offsite_pixel)aa=z.offsite_pixel;if(aa instanceof Array)return aa[0];return aa;}function x(z,aa){var ba=w(aa);if(!ba)ba=w(z);return ba;}function y(){if(k.getHasNativeMobileApp())return g.MOBILE_APP_INSTALLS;var z=k.getDestinationDetails();if(z.defaultObjective)return z.defaultObjective;var aa=k.getDestinationType();if(!aa)return g.NONE;switch(aa){case o.PAGE:case o.PLACE:return g.PAGE_LIKES;case o.APP:return g.CANVAS_APP_INSTALLS;case o.EVENT:return g.EVENT_RESPONSES;default:return g.DEPRECATED_CLICKS;}}e.exports={canContinue:u,canNeverContinue:v,getDefaultAPIObjective:y,getTrackingPixelIDs:x,getTrackingPixelIDsFromSpecs:w};},null);
  __d("AdsObjectivesConfig",["cx","fbt","ix","mapObject","ads-objectives"],function(a,b,c,d,e,f,g,h,i,j){var k=b('ads-objectives').KPIObjectives,l={};l[k.WEBSITE_CLICKS]={name:"Clicks to Website",englishName:'Clicks to Website',objectivePhrase:"Send people to your website",shortName:"Website Clicks",className:"_51ao",continueTooltip:"Enter a website address to continue",desc:"Get people to visit your website.",descReskinV1:"Increase the number of visits to your website.",icon:i('/images/ads/createflow/objectives/icons_large/website_clicks.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/website_clicks.png'),selectorTooltip:"Create ads to encourage people to visit your website.",selectorTooltipReskinV1:"Use the clicks to website objective to send people to your website.",typeaheadSubtitle:"Enter URL for a website",typeaheadTooltip:"Enter the website URL you want to promote. Start typing to see the websites you've already advertised.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Clicks to Website your ads will be served to people more likely to visit your website."};l[k.WEBSITE_CONVERSIONS]={name:"Website Conversions",englishName:'Website Conversions',objectivePhrase:"Increase conversions on your website",className:"_51ap",continueTooltip:"Enter a website address and conversion pixel to continue",desc:"Promote actions you want people to take on your website.",descReskinV1:"Send people to your website to take a specific action, like signing up for a newsletter. Use a conversion pixel to measure your results.",icon:i('/images/ads/createflow/objectives/icons_large/website_conversions.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/website_conversions.png'),selectorTooltip:"Create ads to promote specific actions for people to take on your website. You'll need to use a conversion-tracking pixel to measure your results.",selectorTooltipReskinV1:"Use the website conversions objective to promote conversions on your website.",typeaheadSubtitle:"Enter URL for a website",typeaheadTooltip:"Enter the website URL you want to promote. Start typing to see the websites you've already advertised.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Website Conversions your ads will be served to people more likely to visit your website and complete an action."};l[k.POST_ENGAGEMENT]={name:"Page Post Engagement",englishName:'Page Post Engagement',objectivePhrase:"Boost your posts",shortName:"Post Engagement",className:"_51aq",continueTooltip:"Select a Page and post to continue",desc:"Boost your Page post.",descReskinV1:"Get more people to see and engage with your Page posts.",icon:i('/images/ads/createflow/objectives/icons_large/post_engagement.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/post_engagement.png'),selectorTooltip:"Create ads that boost your posts and increase likes, comments, shares, video plays and photo views.",selectorTooltipReskinV1:"Use the Page post engagement objective to boost your post.",typeaheadSubtitle:"Enter URL for a Page or Page post",typeaheadTooltip:"Choose the Page for the post you want to boost. Start typing to find the Page or use the post's URL.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Page Post Engagement your ads will be served to people more likely to engage with your post."};l[k.PAGE_LIKES]={name:"Page Likes",englishName:'Page Likes',objectivePhrase:"Promote your Page",className:"_51ar",continueTooltip:"Select a Page to continue",desc:"Get Page likes to grow your audience and build your brand.",descReskinV1:"Connect more people with your Page.",icon:i('/images/ads/createflow/objectives/icons_large/page_likes.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/page_likes.png'),selectorTooltip:"Create ads to build your audience on Facebook.",selectorTooltipReskinV1:"Use the Page likes objective to promote your Facebook Page.",typeaheadSubtitle:"Enter URL for a Page",typeaheadTooltip:"Choose the Facebook Page you want to promote. Start typing to find the Page you want to advertise or use its URL. If the Page isn't listed, contact the Page admin.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Page Likes your ads will be served to people more likely to like your Page."};l[k.APP_INSTALLS]={name:"App Installs",englishName:'App Installs',objectivePhrase:"Get installs of your app",className:"_51as",continueTooltip:"Select an app to continue",desc:"Get people to install your app.",descReskinV1:"Send people to the store where they can purchase your app.",icon:i('/images/ads/createflow/objectives/icons_large/app_installs.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your app.",selectorTooltipReskinV1:"Use the app installs objective to get people to install your app.",typeaheadSubtitle:"Enter URL for a mobile or desktop app",typeaheadTooltip:"Choose the app you want to advertise. Start typing to find the app or use its App Store or Play Store URL. You can advertise any app that you've registered on Facebook's developer site.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is App Installs your ads will be served to people more likely to install your app."};l[k.CANVAS_APP_INSTALLS]={name:"Desktop App Installs",englishName:'Desktop App Installs',className:"_51as",continueTooltip:"Select an app to continue",desc:"Get people to install your desktop app.",icon:i('/images/ads/createflow/objectives/icons_large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your desktop app.",selectorTooltipReskinV1:"Use the app installs objective to get people to install your app.",typeaheadSubtitle:"Enter URL for a desktop app",oCPMActionBidTooltip:l[k.APP_INSTALLS].oCPMActionBidTooltip};l[k.MOBILE_APP_INSTALLS]={name:"Mobile App Installs",englishName:'Mobile App Installs',className:"_51as",continueTooltip:"Select an app to continue",desc:"Get people to install your mobile app.",icon:i('/images/ads/createflow/objectives/icons_large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your mobile app.",selectorTooltipReskinV1:"Use the app installs objective to get people to install your app.",typeaheadSubtitle:"Enter URL for a mobile app",oCPMActionBidTooltip:l[k.APP_INSTALLS].oCPMActionBidTooltip};l[k.APP_ENGAGEMENT]={name:"App Engagement",englishName:'App Engagement',objectivePhrase:"Increase engagement in your app",className:"_51at",continueTooltip:"Select an app to continue",desc:"Get more activity on your Facebook or mobile app.",descReskinV1:"Get more people to use your Facebook or mobile app.",icon:i('/images/ads/createflow/objectives/icons_large/app_engagement.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your app.",selectorTooltipReskinV1:"Use the app engagement objective to increase engagement in your app.",typeaheadSubtitle:"Enter URL for an app",typeaheadTooltip:"Choose the app you want to advertise. Start typing to find the app or use its App Store or Play Store URL. You can advertise any app that you've registered on Facebook's developer site.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is App Engagement your ads will be served to people more likely to engage with your app."};l[k.CANVAS_APP_ENGAGEMENT]={name:"Desktop App Engagement",englishName:'Desktop App Engagement',className:"_51at",continueTooltip:"Select an app to continue",desc:"Get more activity on your desktop app.",icon:i('/images/ads/createflow/objectives/icons_large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your desktop app.",selectorTooltipReskinV1:"Use the app engagement objective to increase engagement in your app.",typeaheadSubtitle:"Enter URL for a desktop app",oCPMActionBidTooltip:l[k.APP_ENGAGEMENT].oCPMActionBidTooltip};l[k.MOBILE_APP_ENGAGEMENT]={name:"Mobile App Engagement",englishName:'Mobile App Engagement',className:"_51at",continueTooltip:"Select an app to continue",desc:"Get more activity on your mobile app.",icon:i('/images/ads/createflow/objectives/icons_large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your mobile app.",selectorTooltipReskinV1:"Use the app engagement objective to increase engagement in your app.",typeaheadSubtitle:"Enter URL for a mobile app",oCPMActionBidTooltip:l[k.APP_ENGAGEMENT].oCPMActionBidTooltip};l[k.OFFER_CLAIMS]={name:"Offer Claims",englishName:'Offer Claims',objectivePhrase:"Get people to claim your offer",className:"_51av",continueTooltip:"Select a Page and offer to continue",desc:"Create offers for people to redeem in your store.",descReskinV1:"Promote timely discounts or other deals for people to claim in your store.",icon:i('/images/ads/createflow/objectives/icons_large/offer_claims.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/offer_claims.png'),selectorTooltip:"Create ads to promote offers you created. You'll need to use an offer you've created on Facebook or create a new one right here.",selectorTooltipReskinV1:"Use the offer claims objective to promote your online offer.",typeaheadSubtitle:"Enter URL for a Page or offer on Facebook",typeaheadTooltip:"Choose the Page for the offer you want to promote. Start typing to find the Page or use its URL.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Offer Claims your ads will be served to people more likely to claim offers you create on Facebook."};l[k.EVENT_RESPONSES]={name:"Event Responses",englishName:'Event Responses',objectivePhrase:"Raise attendance at your event",className:"_51ay",continueTooltip:"Select an event to continue",desc:"Increase attendance at your event.",descReskinV1:"Promote your Facebook Page's event to increase your attendance.",icon:i('/images/ads/createflow/objectives/icons_large/event_responses.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/event_responses.png'),selectorTooltip:"Create ads to increase the attendance of your Facebook Page's event.",selectorTooltipReskinV1:"Use the event responses objective to raise attendance at your Facebook Page's event.",typeaheadSubtitle:"Enter URL for a Facebook event",typeaheadTooltip:"Choose the Facebook event you want to promote. Start typing to find the event or enter its URL. If your event occurs today or has already passed, it can't be advertised.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Event Responses your ads will be served to people more likely to respond to events you create on Facebook."};l[k.LOCAL_AWARENESS]={name:"Local Awareness",englishName:'Local Awareness',objectivePhrase:"Reach people near your business",shortName:"Local Awareness",className:"_51az",continueTooltip:"Select or create a Page to continue",desc:"Reach people who are near your business.",descReskinV1:"Promote your business to people who are nearby.",icon:i('/images/ads/createflow/objectives/icons_large/local_awareness.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/local_awareness.png'),selectorTooltip:"Create ads that reach people near your business.",selectorTooltipReskinV1:"Use the local awareness objective to reach people near your business.",typeaheadSubtitle:"Select a Page from the list, or enter its URL.",typeaheadTooltip:"Choose a Facebook Page that represents your business. Start typing to find the Page you want to advertise, or use its URL. If your business does not yet have a Page, you can start creating one right here."};l[k.VIDEO_VIEWS]={name:"Video Views",englishName:'Video Views',objectivePhrase:"Get video views",className:"_51b1",continueTooltip:"Select a Page to continue",desc:"Tell a story with a video in your ad.",descReskinV1:"Promote videos that show behind-the-scenes footage, product launches or customer stories to raise awareness about your brand.",icon:i('/images/ads/createflow/objectives/icons_large/video_views.png'),iconReskinV1:i('/images/ads/createflow/objectives/icons_reskin_v1/large/video_views.png'),selectorTooltip:"Create ads that get more people to view a video.",selectorTooltipReskinV1:"Use the video views objective to get people to watch your video.",typeaheadSubtitle:"Enter URL for a Page",typeaheadTooltip:"Choose the Facebook Page your video will promote. Start typing to find the Page you want to advertise or use its URL. If the Page isn't listed, contact the Page admin.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Video Views your ads will be served to people more likely to view your video."};l[k.INSTAGRAM_BRAND_AWARENESS]={name:"Instagram Brand Awareness",englishName:'Instagram Brand Awareness',className:"_51b1",desc:"Increase Brand Awareness",icon:i('/images/ads/createflow/objectives/icons_large/event_responses.png'),selectorTooltip:"Create ads to promote your brand on Instagram."};l[k.PRODUCT_CATALOG_SALES]={name:"Product Catalog Sales",englishName:'Product Catalog Sales',className:"_rws",desc:"Promote products you want people to purchase on your website.",icon:i('/images/ads/createflow/objectives/icons_large/product_catalog_sales.png'),selectorTooltip:"Create dynamic product ads to remarket products from your website to people who have looked for them before.",oCPMActionBidTooltip:"Optimizing for actions charges you for impressions. We'll optimize your ads for the specific action associated with your objective. For example, if your objective is Product Catalog Sales your ads will be served to people more likely to visit your website and complete the purchase."};l[k.NONE]={name:"No Objective",englishName:'No Objective',className:"_51b2",desc:"No objective",icon:i('/images/ads/createflow/objectives/icons_large/event_responses.png'),selectorTooltip:"No objective will be selected"};l[k.MIXED]={name:"Mixed Objectives",englishName:'Mixed Objectives'};function m(fa){var ga=l[fa];if(!ga)return {};return ga;}function n(fa){return m(fa).name||fa;}function o(fa){var ga=m(fa),ha=n(fa);if(ga.objectivePhrase)ha=ga.objectivePhrase;return ha;}function p(fa){return m(fa).shortName||n(fa);}function q(fa){return !!m(fa).hiddenByDefault;}function r(fa){return m(fa).continueTooltip||null;}function s(fa){return m(fa).selectorTooltip||null;}function t(fa){return (m(fa).selectorTooltipReskinV1||s(fa));}function u(fa){return m(fa).typeaheadSubtitle||null;}function v(fa){return m(fa).typeaheadTooltip||null;}function w(fa){return m(fa).icon||null;}function x(fa){return m(fa).iconReskinV1||null;}function y(fa){return m(fa).desc||null;}function z(fa){return m(fa).descReskinV1||null;}function aa(fa){return m(fa).className||null;}function ba(fa){return m(fa).oCPMActionBidTooltip||m(k.WEBSITE_CLICKS).oCPMActionBidTooltip;}function ca(fa){return !!fa&&!!l[fa];}function da(){return j(l,function(fa){return fa.englishName;});}var ea={getContinueTooltip:r,getCssClassName:aa,getDescription:y,getDescriptionForReskinV1:z,getLargeIcon:w,getLargeIconForReskinV1:x,getName:n,getEnglishNames:da,getOCPMActionBidTooltip:ba,getObjectivePhrase:o,getSelectorTooltip:s,getSelectorTooltipForReskinV1:t,getShortName:p,getTypeaheadSubtitle:u,getTypeaheadTooltip:v,isHiddenByDefault:q,isValid:ca};e.exports=ea;},null);
  __d("AdsCFNamingUtils",["ads-lib-formatters","AdsObjectivesConfig","fbt"],function(a,b,c,d,e,f,g,h,i){var j=30,k={generateCampaignGroupName:function(l,m){var n=h.getShortName(m);if(!l)return n;var o=g.chopString(l.replace(/^https?:\/\//i,''),j,"...");return i._("{destination} - {objective}",[i.param("destination",o),i.param("objective",n)]);}};e.exports=k;},null);
  __d("AdsCFCampaignGroupStore",["AdsAPIObjectives","AdsActionTypes","AdsBaseStore","AdsCFAccountStore","AdsCFActionTypes","AdsCFConstants","AdsCFDestinationStore","AdsCFNamingUtils","AdsCFObjectiveStore","AdsDispatcher","ImmutableObject","invariant","whitelistObjectKeys"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=l.CampaignGroupRunStatuses,u=l.NEW_CAMPAIGN_GROUP_ID,v,w;function x(){v=new q();var ha=new q({id:u,isDraftOnly:false,isNew:true,name:null,objective:g.NONE,status:t.ACTIVE,updatedTime:null});v=q.setProperty(v,u,ha);z(u);}x();function y(ha){var ia=s(ha,{name:null});ba(ha.id,ia);}function z(ha){r(ha in v);w=ha;}function aa(){p.waitFor([m.dispatchToken,o.dispatchToken]);var ha=m.getDestinationDetails().destinationName,ia=o.getKPIObjective();if(!ia)return null;var ja=n.generateCampaignGroupName(ha,ia);ba(u,{name:ja});return ja;}function ba(ha,ia){v=q.setProperty(v,ha,q.set(v[ha],ia));}function ca(ha){v=q.set(v,ga.parseUpdates(ha));}for(var da in i)if(i.hasOwnProperty(da))fa[da]=i[da];var ea=i===null?null:i.prototype;fa.prototype=Object.create(ea);fa.prototype.constructor=fa;fa.__superConstructor__=i;function fa(){"use strict";if(i!==null)i.apply(this,arguments);}fa.prototype.getStoreName=function(){"use strict";return 'AdsCFCampaignGroupStore';};fa.prototype.onDispatchToken=function(ha){"use strict";p.waitFor([j.dispatchToken]);var ia=ha.action;switch(ia.actionType){case k.CAMPAIGN_GROUPS_LOADED:ca(ia.campaignGroupAPISpecs);break;case k.CAMPAIGN_GROUP_NAME_UPDATE:y(ia);ga.inform('change');break;case k.CAMPAIGN_GROUP_SELECT:if(ia.campaignGroup)ca([ia.campaignGroup]);z(ia.id);ga.inform('change');break;case k.CAMPAIGN_GROUP_SELECT_AND_UPDATE:z(ia.id);y(ia);ga.inform('change');break;case k.CREATE_SIMILAR_AD:if(ga.getSelectedState().id===u){var ja=q.set(ga.getSelectedState(),{id:ia.campaignGroupID,isNew:false,objective:o.getAPIObjective(),campaign_group_status:t.ACTIVE});ca([ja]);z(ia.campaignGroupID);ga.inform('change');}break;case k.DESTINATION_CHANGE:if(aa())ga.inform('change');break;case k.KPI_OBJECTIVE_CHANGE:case k.OBJECTIVE_CHANGE:if(aa()){z(u);ga.inform('change');}break;case k.CAMPAIGN_GROUP_LOAD:ca([ia.campaignGroupApiSpec]);ga.inform('change');break;case h.PAGE_TRANSITION:case k.CLEAR_AND_START_OVER:case k.RESET_CF_STORES:x();break;}};fa.prototype.deserialize=function(ha){"use strict";var ia=ha.id;v=q.setProperty(v,ia,new q(ha));z(ia);return true;};fa.prototype.getAllStates=function(){"use strict";return v;};fa.prototype.getExistingCampaignGroups=function(){"use strict";var ha=[],ia;Object.keys(v).forEach(function(ja){if(v.hasOwnProperty(ja)){ia=v[ja];if(!ia.isNew)ha.push(ia);}});return ha;};fa.prototype.getValidExistingCampaignGroups=function(ha){"use strict";var ia=[],ja=[],ka;Object.keys(v).forEach(function(la){ka=v[la];if(!ka.isNew){if(ka.objective===ha)ia.push(ka);if(ka.objective===g.NONE)ja.push(ka);}});return new q({matchingObjective:ia,noneObjective:ja});};fa.prototype.getNewCampaignGroup=function(){"use strict";return this.getState(u);};fa.prototype.getSelectedState=function(){"use strict";return this.getState(w);};fa.prototype.getState=function(ha){"use strict";return v[ha];};fa.prototype.__createCampaignGroup=function(ha){"use strict";return new q({id:ha.id,isDraftOnly:ha.is_draft_only,isNew:false,name:ha.name,objective:ha.objective,status:ha.campaign_group_status,updatedTime:ha.updated_time});};fa.prototype.parseUpdates=function(ha){"use strict";var ia={};ha.forEach(function(ja){ia[ja.id]=this.__createCampaignGroup(ja);}.bind(this));return ia;};fa.prototype.serialize=function(){"use strict";return this.getSelectedState();};var ga=new fa();a.debug_AdsCFCampaignGroupStore=ga;e.exports=ga;},null);
  __d("AdsCFObjectiveStore",["AdsActionTypes","AdsAPIObjectives","AdsBaseStore","AdsCFActionTypes","AdsCFApplicationStore","AdsCFDestinationStore","AdsCFObjectiveUtils","AdsDispatcher","ads-objectives","AdsPayloadSource","ads-app-platforms","AdsCFCampaignGroupStore"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=b('ads-objectives').KPIObjectives,r=o.APItoKPIObjectives,s=o.KPItoAPIObjectives,t=b('ads-app-platforms').APP_PLATFORM,u,v,w,x;function y(){u=false;v=false;w=null;x=h.NONE;}y();for(var z in i)if(i.hasOwnProperty(z))ba[z]=i[z];var aa=i===null?null:i.prototype;ba.prototype=Object.create(aa);ba.prototype.constructor=ba;ba.__superConstructor__=i;function ba(){"use strict";if(i!==null)i.apply(this,arguments);}ba.prototype.getStoreName=function(){"use strict";return 'AdsCFObjectiveStore';};ba.prototype.getIsKPIObjectiveManuallySet=function(){"use strict";return u;};ba.prototype.getIsObjectiveManuallySet=function(){"use strict";return v;};ba.prototype.getKPIObjective=function(){"use strict";return w;};ba.prototype.getAPIObjective=function(){"use strict";return x;};ba.prototype.deserialize=function(da){"use strict";return Object.keys(da).every(function(ea){var fa=da[ea];switch(ea){case 'isKPIObjectiveManuallySet':u=fa;return true;case 'isObjectiveManuallySet':v=fa;return true;case 'kpiObjective':w=fa;return true;case 'apiObjective':x=fa;return true;}return false;});};ba.prototype.serialize=function(){"use strict";return {isKPIObjectiveManuallySet:this.getIsKPIObjectiveManuallySet(),isObjectiveManuallySet:this.getIsObjectiveManuallySet(),kpiObjective:this.getKPIObjective(),apiObjective:this.getAPIObjective()};};ba.prototype.onDispatchToken=function(da){"use strict";var ea=da.action;switch(ea.actionType){case j.RESET_DESTINATION:case j.DESTINATION_CHANGE:n.waitFor([l.dispatchToken]);if(u||v)if(w===q.APP_INSTALLS||w===q.APP_ENGAGEMENT){var fa=l.getDestinationDetails().appPlatforms,ga=(fa!==(void 0)&&fa[0]===t.DESKTOP_CANVAS);if(w===q.APP_INSTALLS){x=ga?h.CANVAS_APP_INSTALLS:h.MOBILE_APP_INSTALLS;}else if(w===q.APP_ENGAGEMENT)x=ga?h.CANVAS_APP_ENGAGEMENT:h.MOBILE_APP_ENGAGEMENT;}ca.inform('change');break;case j.OBJECTIVE_CHANGE:if(da.payloadsource===p.VIEW_ACTION)v=true;x=ea.objectiveType;w=r[x];ca.inform('change');break;case j.CAMPAIGN_GROUP_SELECT:case j.CAMPAIGN_SELECT:var ha=b('AdsCFCampaignGroupStore');n.waitFor([ha.dispatchToken]);var ia=ha.getSelectedState().objective;if(ia===h.NONE)break;x=ia;w=o.APItoKPIObjectives[ia];ca.inform('change');break;case j.KPI_OBJECTIVE_CHANGE:if(da.payloadsource===p.VIEW_ACTION)u=true;n.waitFor([l.dispatchToken]);w=ea.kpiObjective;if(w===q.APP_INSTALLS&&l.hasDestination()){x=m.getDefaultAPIObjective();}else if(w===q.APP_ENGAGEMENT&&l.isMobilePlatformOnlyApp()){x=h.MOBILE_APP_ENGAGEMENT;}else x=s[w];ca.inform('change');break;case j.CLEAR_AND_START_OVER:n.waitFor([k.dispatchToken]);y();ca.inform('change');break;case g.PAGE_TRANSITION:case j.RESET_CF_STORES:y();break;}};var ca=new ba();a.debug_AdsCFObjectiveStore=ca;e.exports=ca;},null);
  __d("AdsBaseCampaignUtils",[],function(a,b,c,d,e,f){'use strict';var g=1000*60*60*24,h={getCampaignDayCountFrom:function(i,j){var k=j.valueOf()-i.valueOf();return k/g;},isSameDayUTC:function(i,j){return (i.getUTCDate()===j.getUTCDate()&&i.getUTCMonth()===j.getUTCMonth()&&i.getUTCFullYear()===j.getUTCFullYear());},isStartDateEditable:function(i,j){return i||j>Date.now();},getCampaignDayLeftCount:function(i,j){var k=new Date();j=j||k;if(j<k){return 0;}else if(k>=i){return this.getCampaignDayCountFrom(k,j);}else return this.getCampaignDayCountFrom(i,j);}};e.exports=h;},null);
  __d("AdsDefaultBudget",["AdsDefaultBudgetConfig"],function(a,b,c,d,e,f){var g=b('AdsDefaultBudgetConfig').currencies;function h(j){if(g[j])return g[j].default_daily_budget;return g.USD.default_daily_budget;}function i(j){if(g[j])return g[j].default_lifetime_budget;return g.USD.default_lifetime_budget;}f.getDefaultDailyBudget=h;f.getDefaultLifetimeBudget=i;},null);
  __d("AdsVideoBudgetUtils",["AdsApplicationIDs","AdsCreationExperiments","CampaignDefaultBudgetConfig","WebApiApplication"],function(a,b,c,d,e,f,g,h,i,j){'use strict';function k(n,o){var p;switch(j.getClientID()){case g.ADS_CREATOR:case g.ADS_CAMPAIGN_MANAGER:p=h.getExperiment('ads_cf_video_default_budget');break;case g.ADS_POWER_EDITOR:p=h.getExperiment('ads_pe_video_default_budget');break;default:return o;}return parseFloat(p.getParam(n));}function l(){return k('default_daily_budget_usd',i.default_budget.daily);}function m(){return k('default_lifetime_budget_usd',i.default_budget.lifetime);}e.exports={getDefaultDailyBudgetUSD:l,getDefaultLifetimeBudgetUSD:m};},null);
  __d("AdsCampaignUtils",["AdsUniformValue","AdsAPIObjectives","AdsBaseCampaignUtils","AdsCFConstants","AdsCurrencyFormatter","AdsDefaultBudget","AdsTargetingConstants","AdsVideoBudgetUtils","CampaignDefaultBudgetConfig","DatePickerRestraints","URIInitDataUtil","XUICalendar.react","XUIDateTimePickerUtils","fbt","invariant","intlList"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';var w=j.CampaignValidationErrors,x=parseInt(o.campaign_length_month,10),y=100,z=10000,aa=[2000,5000,20000,50000],ba=50,ca=1000*60*60*24;function da(ja){switch(ja){case m.GENDERS.Men:return "M";case m.GENDERS.Women:return "W";}return null;}function ea(ja){return (ja+100+'').substr(1);}function fa(ja){var ka=[],la=0;for(var ma=0;ma<ja.length;ma++){var na=ja[ma];if(la&&na.length+la>ba)return ga(v(ka,v.CONJUNCTIONS.NONE));ka.push(na);la+=na.length;}if(ka.length>0)return v(ka,v.CONJUNCTIONS.NONE);return ga(ja[0].substring(0,ba));}function ga(ja){return (t._("{list of items}...",[t.param("list of items",ja)]));}function ha(ja){var ka=ja.split(/(?:,| )+/);if(ka.length&&!isNaN(ka[0]))ka=ka.slice(1);if(!ka.length){return '';}else if(ka.length===1){return ka[0];}else{var la=t._("{address_part_one} {address_part_two}",[t.param("address_part_one",ka[0]),t.param("address_part_two",ka[1])]);if(ka.length===2){return la;}else return ga(la);}}var ia={getDailyBudgetEstimate:function(ja,ka,la,ma){if(ja)if(!ka){return ja;}else return null;if(ka){if(!la||!ma)return null;var na=ia.getCampaignDayCount(la,ma);if(na)return ka/na;}return null;},getDateRestraints:function(ja,ka,la){var ma=[p.enforceDateIsNoEarlierThan(ja)];if(la&&la>ja)ma.push(p.enforceDateIsNoLaterThan(la));return {start:ma,end:[p.enforceDateIsNoEarlierThan(ka)]};},getOffsetDateRestraints:function(ja,ka,la){var ma=s.getOffsetUIDate(ja,la),na=ka&&s.getOffsetUIDate(ka,la);return this.getDateRestraints(r.normalizeDate(s.getOffsetUIDate(new Date(),la)),r.normalizeDate(ma),na&&r.normalizeDate(na));},getGenericDateTimeString:function(ja,ka){var la=s.offsetDate(ja,ka),ma=ea(la.getUTCMonth()+1)+'/'+ea(la.getUTCDate())+'/'+ea(la.getUTCFullYear()%100),na=(la.getUTCHours()===0||la.getUTCHours()===12)?'12':la.getUTCHours()%12,oa=ea(la.getUTCMinutes()),pa=ea(la.getUTCSeconds()),qa=(la.getUTCHours()>=12?'pm':'am'),ra=na+':'+oa+':'+pa+' '+qa;return ma+' '+ra;},dateToBulkString:function(ja,ka){if(!ja)return new g(null);var la=ia.getGenericDateTimeString(ja,ka),ma=ia.convertGenericDateTimeToISOString(la,ka);return new g(ma);},convertGenericDateTimeToISOString:function(ja,ka){var la=ja.split(' '),ma=la[0].split('/'),na=la[1].split(':'),oa=la[2],pa=ma[0],qa=ma[1],ra='20'+ma[2],sa=parseInt(na[0],10),ta=na[1],ua=na[2]||'00';if(oa==='pm'&&sa<12){sa=sa+12;}else if(oa==='am'&&sa===12)sa=0;var va=ra+'-'+pa+'-'+qa+'T'+ea(sa)+':'+ta+':'+ua,wa=60*Math.abs(ka),xa=Math.floor(wa/60),ya=wa%60,za=(ka>=0?'+':'-')+ea(xa)+ea(ya);return va+za;},getValidationMessage:function(ja,ka,la){switch(ja){case w.START_DATE_BEFORE_NOW:return ("The start date for your ad set was adjusted because it occurred in the past. Use this new start date or choose a new one.");case w.END_DATE_BEFORE_START_DATE:return ("The end date for your ad set was adjusted because it was before the start date. Use this new end date or choose a new one.");case w.END_DATE_BEFORE_NOW:return ("The end date for your ad set was adjusted because it occurred in the past. Use this new end date or choose a new one.");case w.INSUFFICIENT_DAILY_BUDGET:u(ka&&la);la=k.formatCurrency(ka,la);return (t._("The end date for your ad set was adjusted to make sure you're budgeting at least {min} for every day your ad will run. Use this end date, choose a new one or increase your budget to extend your campaign.",[t.param("min",la)]));}},generateName:function(ja,ka,la,ma,na,oa,pa){var qa=[];if(ma){var ra=[],sa={},ta=[],ua=[];if(ma.countries)ma.countries.forEach(function(ya){sa[ya]=1;});if(ma.zips)ma.zips.forEach(function(ya){if(ya.name)ua.push(ya.name);if(ya.country)sa[ya.country]=1;});if(ma.cities)ma.cities.forEach(function(ya){if(ya.name)ra.push(ya.name);if(ya.country)sa[ya.country]=1;});if(ma.regions)ma.regions.forEach(function(ya){if(ya.name)ta.push(ya.name);if(ya.country)sa[ya.country]=1;});sa=Object.keys(sa);if(sa.length===1&&ua.length>0){qa.push(fa(ua));}else if(sa.length===1&&ra.length>0){qa.push(fa(ra));}else if(sa.length===1&&ta.length>0){qa.push(fa(ta));}else if(sa.length>0)qa.push(fa(sa));}else if(la.length>0)qa.push(fa(la));var va=da(na);if(va)qa.push(va);if(pa<65){qa.push(oa+'-'+pa);}else qa.push(oa+'+');if(ma&&ma.customLocations&&ma.customLocations.length){var wa=ma.customLocations[0].addressString;if(wa){var xa=ha(wa);if(xa)qa.push(xa);}}return qa.join(' - ');},getDefaultStartDate:function(){var ja=new Date();return ja;},getDefaultEndDate:function(ja,ka,la){if(la===h.LOCAL_AWARENESS){var ma=ia.getDefaultScheduleLength(ka);return ia.convertDurationToEndDate(ma,ja);}var na=new Date(ja);na.setMonth(na.getMonth()+x);return na;},getScheduleLengthsDays:function(ja){switch(ja){case h.LOCAL_AWARENESS:return {defaults:[1,7,14],other:30};default:return {defaults:[1,7,14],other:30};}},getDefaultScheduleLength:function(ja){return ja.defaults[1];},getExtendedEndDate:function(ja){var ka=ca*14,la=new Date(Math.max(Date.now()+ka,ja.valueOf()+ka));return la;},getCampaignDaysLabel:function(ja){ja=Math.ceil(ja);return (t._({"days":"{days} days","day":"{days} day"},[t.param("days",ja),t['enum'](ja>1||ja===0?'days':'day',{days:"days",day:"day"})]));},convertDurationToEndDate:function(ja,ka){var la=new Date(ka.getTime()+ja*ca);return la;},getDefaultDailyBudget:function(ja,ka){var la;switch(ka){case h.VIDEO_VIEWS:la=n.getDefaultDailyBudgetUSD();break;default:la=o.default_budget.daily;break;}var ma=q.getDailyBudget();if(ma&&ma>=y&&ma<=z)la=ma;return ia.convertUSDBudgetToCurrency(ja,la);},getDefaultLifetimeBudget:function(ja,ka){var la;switch(ka){case h.LOCAL_AWARENESS:la=aa[1];break;case h.VIDEO_VIEWS:la=n.getDefaultLifetimeBudgetUSD();break;default:la=o.default_budget.lifetime;break;}return ia.convertUSDBudgetToCurrency(ja,la);},convertUSDBudgetToCurrency:function(ja,ka){var la=l.getDefaultDailyBudget(ja)/l.getDefaultDailyBudget('USD');return ka*la;},isSameDayUTC:function(ja,ka){return i.isSameDayUTC(ja,ka);},getCampaignDayLeftCount:function(ja,ka){return i.getCampaignDayLeftCount(ja,ka);},getCampaignDayCount:function(ja,ka){return i.getCampaignDayCountFrom(ja,ka);},isStartDateEditable:function(ja,ka){return i.isStartDateEditable(ja,ka);}};e.exports=ia;},null);
  __d("AdsCFCampaignUtils",["AdsBidOptions","AdsCampaignUtils","AdsCFConstants","AdsCFPrimedDao","ImmutableObject","adsGKCheck","fbt","AdsDateUtils"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';var o=i.CampaignBudgetModes,p=i.CampaignRunStatuses;function q(s,t){if(!s.updatedTime||!t.updatedTime)return 0;var u=n.parseISODate(s.updatedTime).valueOf(),v=n.parseISODate(t.updatedTime).valueOf();if(u===v)return 0;return u>v?-1:1;}var r={saveCampaign:function(s,t,u){var v=j.getInstanceForAccount(s);return v.add.updateCampaign.promiseOne(Object.assign({campaignId:t},u));},generateTimeoutMessage:function(){return ("We're sorry, but your browser has received no response from the server in a long time. Please check your connection and try saving your campaign again.");},getUIStatus:function(s){switch(s.status){case p.ACTIVE:var t=new Date();if(s.endDate&&t>s.endDate){return "Completed";}else if(t<s.startDate)return "Scheduled";return "On";case p.PAUSED:return "Off";}},getDailyBudget:function(s,t){if(s.budgetMode===o.DAILY)return s.budget;var u=h.getCampaignDayCount(s.startDate,s.endDate);return s.budget/u;},toFilteredSortedArray:function(s){return k.values(s).sort(q).filter(function(t){return !t.isNewCampaign;});},getCampaignCannotBeSelectedReason:function(s,t,u,v){if(l('neko_force_same_app_in_l2')&&s.nekoHasMixedPromotedObjects&&v)return "This ad set contains ads for more than one app. Ad sets can now only contain ads for one app. Please choose a different ad set or create a new one.";var w=s.promotedObject.applicationId,x=s.promotedObject.objectStoreUrl;if(l('neko_force_same_app_in_l2')&&!s.isNewCampaign&&w&&x&&v){var y=w||x;if(y!==v)return "This ad set contains ads for a different app than the one you have selected. Ad sets can only contain ads for one app. Please choose a different ad set or create a new one.";}if(s.targeting&&s.targeting.userOs&&t.userOs&&s.targeting.userOs[0]!==t.userOs[0])return "This ad set is used to advertise apps running on a different operating system than the app you are creating an ad for. Please select a different ad set, or create a new one.";if(s.pricing&&u.validBidOptions&&u.validBidOptions.indexOf(s.pricing.bidOption)<0)return "This ad set is using a bid option, which is unavailable for currently selected destination. Please select a different ad set, or create a new one.";if(s.pricing&&s.pricing.conversionPixelID&&s.pricing.bidOption===g.OCPM_ACTIONS&&u.conversionPixelID!==s.pricing.conversionPixelID)return "This ad set is using a conversion pixel, which is different than the currently selected one. Please select a different ad set, or create a new one.";return null;}};e.exports=r;},null);
  __d("AdsCFAudienceEstimateUtils",["AdsCFAccountStore","AdsCFActionTypes","AdsCFApplicationStore","AdsCFConstants","AdsDispatcher","AdsBidOptions","throttle","AdsCFPricingStore"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=1000,o=0,p=0;function q(){var w=b('AdsCFPricingStore'),x=w.getState(j.CanonicalID).bidOption;switch(x){case l.OCPM_ACTIONS:return ['conversion'];case l.CLICKS:return ['click'];case l.IMPRESSIONS:case l.REACH:return ['impression'];}}function r(w,x){if(w!==o)return;k.handleUpdateFromServerResponse({targetingID:j.CanonicalID,actionType:h.AUDIENCE_ESTIMATE_CHANGE,users:x.users,minReach:x.min_reach,maxReach:x.max_reach,estimateReady:x.estimate_ready,estimateErrors:[]});k.handleUpdateFromServerResponse({bidEstimateID:j.CanonicalID,actionType:h.BID_ESTIMATE_CHANGE,estimates:x.bid_estimations[0]});}function s(w,x,y){if(w!==o)return;if(!y.error)return;var z={targetingID:j.CanonicalID,actionType:h.AUDIENCE_ESTIMATE_CHANGE,users:NaN,estimateErrors:[]};if(y.error.error_data)z.estimateErrors=y.error.error_data.showable_errors;k.handleUpdateFromServerResponse(z);}function t(w,x){if(w!==p)return;k.handleUpdateFromServerResponse({targetingID:j.CanonicalID,actionType:h.TARGETING_SENTENCE_CHANGE,sentences:x.targetingsentencelines});}function u(w){if(!this._refetchEstimatesThrottled)this._refetchEstimatesThrottled=m(function(x){o++;x.handleError=s.bind(this,o);x.currency=g.getState().currency;x.bid_for=q();var y;if(i.getAdgroupID()>0){y=g.getDao().fetch.estimatesForAdgroup;x.adgroupId=i.getAdgroupID();}else y=g.getDao().fetch.estimatesForAccount;y.one(r.bind(this,o),x);},n,this);this._refetchEstimatesThrottled(w);}function v(w){if(!this._refetchTargetingSentencesThrottled)this._refetchTargetingSentencesThrottled=m(function(x){p++;g.getDao().fetch.targetingSentencesForAccount.one(t.bind(this,p),x);},n,this);this._refetchTargetingSentencesThrottled(w);}e.exports={refetchEstimates:u,refetchTargetingSentences:v};},null);
  __d("AdsFetchedTargetingData",["AdsUtils"],function(a,b,c,d,e,f,g){var h;function i(){"use strict";this.$TargetingTypeMap0={};this.$TargetingTypeMap1='id';}i.prototype.normalizeID=function(k){"use strict";return ""+k;};i.prototype.addTargetingObject=function(k,l){"use strict";l=l||this.$TargetingTypeMap1;var m=this.normalizeID(k[l]);this.$TargetingTypeMap0[m]=k;};i.prototype.addTargetingObjects=function(k,l){"use strict";k.forEach(function(m){return this.addTargetingObject(m,l);}.bind(this));};i.prototype.fetchByID=function(k){"use strict";return this.$TargetingTypeMap0[this.normalizeID(k)];};function j(){"use strict";this.$AdsFetchedTargetingData0={};}j.prototype.$AdsFetchedTargetingData1=function(k){"use strict";return g.underscoreKey(k);};j.prototype.$AdsFetchedTargetingData2=function(k){"use strict";k=this.$AdsFetchedTargetingData1(k);if(this.$AdsFetchedTargetingData0[k]===(void 0))this.$AdsFetchedTargetingData0[k]=new i();return this.$AdsFetchedTargetingData0[k];};j.prototype.addTargetingObject=function(k,l,m){"use strict";var n=this.$AdsFetchedTargetingData2(k);n.addTargetingObject(l,m);};j.prototype.addTargetingObjects=function(k,l,m){"use strict";var n=this.$AdsFetchedTargetingData2(k);n.addTargetingObjects(l,m);};j.prototype.getAllFromTargetingType=function(k){"use strict";return this.$AdsFetchedTargetingData2(k);};j.prototype.getAllFromTargetingTypes=function(k){"use strict";var l={};k.forEach(function(m){l[this.$AdsFetchedTargetingData1(m)]=this.getAllFromTargetingType(m);}.bind(this));return l;};j.getInstance=function(){if(!h)h=new j();return h;};e.exports=j;},null);
  __d("AdsCreativePlacementUtils",["AdsAPIObjectives","AdsApplicationUtils","AdsAccountCapabilities","ads-app-platforms","AdsCFConstants","AdsDestinationTypes","ApiCreativeTypes","PagePostTypes","arrayContains","invariant","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';var q=k.PlacementID,r=k.PlacementStates,s=b('AdCreativeType').AD_CREATIVE_TYPE,t=j.APP_PLATFORM;function u(ba,ca){var da=ca.accountCapabilities,ea=ca.creativeType,fa=ca.destinationType,ga=ca.isVideoCreative,ha=ca.pagePostType,ia=ca.targetedPlatform,ja=v({accountCapabilities:da,creativeType:ea,destinationType:fa});switch(ea){case m.INLINE_RSVP:if(!h.isCampaignManager())return (ba===q.DESKTOP_NEWS_FEED||ba===q.MOBILE_NEWS_FEED||ba===q.RHC);return ba===q.RHC;case m.PLATFORM_CONTEXT:return ba===q.RHC;case s.NEKO_LPP:if(ia===t.DESKTOP_CANVAS){return ba===q.RHC||ba===q.DESKTOP_NEWS_FEED;}else if(ja){if(ga)return ba===q.MOBILE_NEWS_FEED;return ba===q.MOBILE_NEWS_FEED||ba===q.FAN;}return ba===q.MOBILE_NEWS_FEED;case s.AD_VIDEO:return (ba===q.DESKTOP_NEWS_FEED||ba===q.MOBILE_NEWS_FEED);case s.PAGE_POSTS_V2:if(ba===q.RHC)return !!ha&&ha!==n.STATUS;return ba!==q.FAN;case s.INLINE_FAN:if(ga)return (ba===q.DESKTOP_NEWS_FEED||ba===q.MOBILE_NEWS_FEED);if(ja)return true;return ba!==q.FAN;default:if(ja)return true;return ba!==q.FAN;}p(false);}function v(ba){var ca=ba.accountCapabilities,da=ba.creativeType,ea=ba.destinationType;if(da===s.NEKO_LPP){return x(ca,i.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE);}else if((da===s.FEED_URL||da===s.STANDARD)&&ea===l.EXTERNAL_WEBPAGE){return x(ca,i.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE_FOR_LPP);}else return false;return false;}function w(ba,ca){var da=ca.accountCapabilities,ea=ca.creativeType,fa=ca.destinationType,ga=ca.isVideoCreative,ha=ca.mobileStore,ia=ca.objective,ja=ca.pagePostType,ka=ca.placementStates,la=ca.targetedPlatform;p(ba in q);var ma=ka||{},na=ma[ba],oa=u(ba,{accountCapabilities:da,creativeType:ea,destinationType:fa,isVideoCreative:ga,mobileStore:ha,objective:ia,pagePostType:ja,targetedPlatform:la});if(!oa){na=r.NOT_SUPPORTED;}else if(na){return na;}else if(ba===q.FAN&&y()){na=r.DISABLED;}else if(ia===g.LOCAL_AWARENESS&&ba===q.RHC){na=r.NOT_SUPPORTED;}else na=r.ENABLED;return na;}function x(ba,ca){return ba?o(ba,ca):false;}function y(ba){return x(ba,i.FAN_PLACEMENT_NON_DEFAULT);}function z(ba){var ca=ba.accountCapabilities,da=ba.creativeType,ea=ba.destinationType,fa=ba.isVideoCreative,ga=ba.mobileStore,ha=ba.objective,ia=ba.pagePostType,ja=ba.placementStates,ka=ba.targetedPlatform,la={};Object.keys(q).forEach(function(ma){la[ma]=w(ma,{accountCapabilities:ca,creativeType:da,destinationType:ea,isVideoCreative:fa,mobileStore:ga,objective:ha,pagePostType:ia,placementStates:ja,targetedPlatform:ka});});return la;}var aa={getPlacementState:w,getPlacementsState:z,isThirdPartyMobileAppPlacementEnabled:v};e.exports=aa;},null);
  __d("AdsCFCreativePlacementUtils",["AdsCFAccountStore","AdsCFConstants","AdsCFCreativeUtils","AdsCFDestinationStore","AdsCreativePlacementUtils","AdsPageTypes","adsGKCheck","areEqual","arraySort","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=h.PlacementCannotChangeStatusReason,q=h.PlacementID,r=h.PlacementStates,s=b('AdCreativeType').AD_CREATIVE_TYPE,t=q.DESKTOP_NEWS_FEED,u=q.MOBILE_NEWS_FEED,v=q.RHC,w={};w[l.FEED]=[l.DESKTOP_FEED,l.MOBILE];w[l.DESKTOP]=[l.DESKTOP_FEED,l.RIGHT_COLUMN];w[l.RIGHT_COLUMN_AND_MOBILE]=[l.RIGHT_COLUMN,l.MOBILE];w[l.MOBILE_FEED_AND_EXTERNAL]=[l.MOBILE,l.MOBILE_EXTERNAL];w[l.FEED_AND_EXTERNAL]=[l.DESKTOP_FEED,l.MOBILE,l.MOBILE_EXTERNAL];w[l.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL]=[l.RIGHT_COLUMN,l.MOBILE,l.MOBILE_EXTERNAL];w[l.DESKTOP_AND_MOBILE_AND_EXTERNAL]=[l.DESKTOP_FEED,l.RIGHT_COLUMN,l.MOBILE,l.MOBILE_EXTERNAL];function x(oa,pa){var qa=da(oa,pa);return Object.keys(qa).some(function(ra){return y(oa,ra,pa);});}function y(oa,pa,qa){return ha(oa,pa,qa)===r.ENABLED;}function z(oa,pa){return (!y(oa,t,pa)&&!y(oa,u,pa));}function aa(){return [t,u,v,q.FAN];}function ba(oa,pa){return aa().filter(function(qa){return ca(oa,qa,pa);});}function ca(oa,pa,qa){var ra=ha(oa,pa,qa);return ra!==r.NOT_SUPPORTED;}function da(oa,pa){return k.getPlacementsState({accountCapabilities:g.getAccountCapabilities(),creativeType:oa.creativeType,destinationType:j.getDestinationTypeIgnoringKPI(),isVideoCreative:i.isVideoCreative(oa),mobileStore:oa.mobileStore,objective:pa,pagePostType:ma(oa),placementStates:oa.placements,targetedPlatform:oa.platform});}function ea(oa,pa,qa){var ra=ga(oa,pa,qa,u,false)===p.NONE,sa=ga(oa,pa,qa,t,false)===p.NONE;return pa.creativeType!==s.NEKO_LPP&&(sa||ra);}function fa(oa,pa,qa){var ra=ga(oa,pa,qa,u,true)===p.NONE,sa=ga(oa,pa,qa,t,true)===p.NONE;return sa||ra;}function ga(oa,pa,qa,ra,sa){if(oa.targeting){return p.READ_ONLY;}else if(!ca(pa,ra,qa))return p.NOT_SUPPORTED;if(sa){if(ra===q.FAN&&!y(pa,u,qa))return p.MOBILE_NEWS_FEED_DISABLED;return p.NONE;}else{var ta=false;for(var ua in q)if(ua!==ra&&y(pa,ua,qa)){if(ua===q.FAN){ta=true;continue;}return p.NONE;}return ta?p.ONLY_PLACEMENT_EXCEPT_FAN:p.ONLY_PLACEMENT;}}function ha(oa,pa,qa){return k.getPlacementState(pa,{accountCapabilities:g.getAccountCapabilities(),creativeType:oa.creativeType,destinationType:j.getDestinationTypeIgnoringKPI(),isVideoCreative:i.isVideoCreative(oa),mobileStore:oa.mobileStore,objective:qa,pagePostType:ma(oa),placementStates:oa.placements,targetedPlatform:oa.platform});}function ia(oa){return k.isThirdPartyMobileAppPlacementEnabled({accountCapabilities:g.getAccountCapabilities(),creativeType:oa,destinationType:j.getDestinationTypeIgnoringKPI()});}function ja(){return m('ads_cf_mbasic_default');}function ka(oa,pa){var qa=da(oa,pa),ra=qa.DESKTOP_NEWS_FEED===r.ENABLED,sa=qa.MOBILE_NEWS_FEED===r.ENABLED,ta=qa.RHC===r.ENABLED,ua=qa.FAN===r.ENABLED;if(qa){var va=[];ra&&va.push(l.DESKTOP_FEED);sa&&va.push(l.MOBILE);ta&&va.push(l.RIGHT_COLUMN);ua&&va.push(l.MOBILE_EXTERNAL);va=la(va,oa);return va;}return null;}function la(oa){if(!oa.length){return null;}else if(oa.length===1)return oa;oa=o(oa);for(var pa in w)if(n(o(w[pa]),oa))return [pa];return null;}function ma(oa){if(!oa.storyId)return (void 0);var pa=j.getPagePostDetails(oa.storyId);return pa?pa.type:(void 0);}var na={canChangeStatus:ga,canDisableNewsFeedStatus:ea,canEnableNewsFeedStatus:fa,getDefaultPlacementOrder:aa,getPageTypes:ka,getPlacementsState:da,getSupportedPlacements:ba,hasEnabledPlacement:x,isMBasicDefaultExperimentEnabled:ja,isNewsFeedDisabled:z,isPlacementEnabled:y,isPlacementSupported:ca,isThirdPartyMobileAppPlacementEnabled:ia};e.exports=na;},null);
  __d("combinePath",["trim"],function(a,b,c,d,e,f,g){'use strict';function h(){for(var i=[],j=0,k=arguments.length;j<k;j++)i.push(arguments[j]);if(i.length===0)return '';var l=i[0].startsWith('/'),m=i[i.length-1].endsWith('/'),n=i.map(function(o){return g(o,'/');}).join('/');if(l)n='/'+n;if(m)n+='/';return n;}e.exports=h;},null);
  __d("AdsAppUtils",["AdsAPIObjectives","ads-mobile-platforms","URI","arrayContains","combinePath","dotAccess","getObjectValues","isFacebookURI","ads-app-platforms"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';var o=b('ads-app-platforms').MOBILE_STORE,p=[g.MOBILE_APP_INSTALLS,g.MOBILE_APP_ENGAGEMENT],q=[g.CANVAS_APP_INSTALLS,g.CANVAS_APP_ENGAGEMENT];function r(t){try{return new i(t);}catch(u){return null;}}var s={isAppObjective:function(t){return this.isMobileAppObjective(t)||this.isCanvasAppObjective(t);},isMobileAppObjective:function(t){return j(p,t);},isCanvasAppObjective:function(t){return j(q,t);},isMobileAppAd:function(t){return this.isMobileAppObjective(t.objective);},isCanvasAppAd:function(t){return this.isCanvasAppObjective(t.objective);},getDeepLink:function(t){var u=l(t,'creative.object_story_spec.link_data.link');if(u)return u;var v=l(t,'creative.object_story_spec.video_data.call_to_action.value.link');if(v)return v;return null;},getAppStoreName:function(t){var u=this.getDeepLink(t);if(!u)return null;var v=this.getMobileAppStoreNameFromUrl(u);if(v)return v;if(this.isCanvasAppAd(t))return o.FB_CANVAS;return null;},getMobileAppStoreNameFromUrl:function(t){if(!t)return null;if(this.isItunesURL(t))return o.ITUNES;if(this.isGooglePlayURL(t))return o.GOOGLE_PLAY;if(this.isAmazonURL(t))return o.AMAZON;return null;},getPlatformsForObjectives:function(t){var u=false,v=false;t.forEach(function(x){if(!(x===g.NONE))if(s.isMobileAppObjective(x)){u=true;}else if(s.isCanvasAppObjective(x))v=true;});if(u&&v)return [];if(v)return [o.FB_CANVAS];var w=m(o);if(u)return w.filter(function(x){return x!==o.FB_CANVAS;});return w;},appHasPlatform:function(t,u){return !!t.object_store_urls[u];},getDefaultAppLink:function(t,u){var v=s.getPlatformsForObjectives(u);for(var w=0;w<v.length;w++){var x=v[w],y=t.object_store_urls[x];if(y)return y;}return null;},isItunesURL:function(t){t=r(t);return !!t&&t.getDomain()==='itunes.apple.com';},isGooglePlayURL:function(t){t=r(t);return !!t&&t.getDomain()==='play.google.com';},isAmazonURL:function(t){t=r(t);return !!t&&t.getDomain()==='www.amazon.com';},isCanvasLink:function(t){if(typeof t==='string')t=r(t);return !!t&&n(t)&&t.getSubdomain()==='apps';},getCanvasDeepLink:function(t){var u=s.splitDeepLinkFromCanvasLink(t);return u&&u.deepLink;},splitDeepLinkFromCanvasLink:function(t){if(typeof t==='string')t=r(t);if(!t)return null;if(!s.isCanvasLink(t))return null;var u=t.getPath().indexOf('/',1);if(u===-1)return {canvasLink:t.toString(),deepLink:null};var v=t.getPath().slice(0,u+1),w=t.getPath().slice(u+1),x=new i().setProtocol(t.getProtocol()).setDomain(t.getDomain()).setPath(v).toString(),y=new i().setPath(w).setQueryData(t.getQueryData()).setFragment(t.getFragment()).toString();return {canvasLink:x,deepLink:y};},appendDeepLinkToCanvasLink:function(t){var u=!!l(t,'object_story_spec.link_data.call_to_action.value.app_link')&&!!l(t,'object_story_spec.link_data.link')&&s.isCanvasLink(t.object_story_spec.link_data.link);if(!u)return;t.object_story_spec=JSON.parse(JSON.stringify(t.object_story_spec));t.object_story_spec.link_data.link=k(t.object_story_spec.link_data.link,t.object_story_spec.link_data.call_to_action.value.app_link);t.object_story_spec.link_data.call_to_action.value.link=t.object_story_spec.link_data.link;delete t.object_story_spec.link_data.call_to_action.value.app_link;},splitDeepLinkFromCanvasLinkInAdSpec:function(t){var u=s.isCanvasAppAd(t)&&!!l(t,'object_story_spec.link_data.link')&&s.isCanvasLink(t.object_story_spec.link_data.link);if(!u)return;var v=s.splitDeepLinkFromCanvasLink(t.object_story_spec.link_data.link);if(!v||!v.deepLink)return;l(t,'object_story_spec.link_data.call_to_action.value',true).app_link=v.deepLink;t.object_story_spec.link_data.link=v.canvasLink;t.object_story_spec.link_data.call_to_action.value.link=v.canvasLink;},getAppStoreNameFromUrl:function(t,u){if(!u||!t)return null;for(var v in t)if(t[v]===u)return v;if(this.isGooglePlayURL(u)){return !!t[o.GOOGLE_PLAY]?o.GOOGLE_PLAY:null;}else if(this.isAmazonURL(u)){return !!t[o.AMAZON]?o.AMAZON:null;}else if(this.isCanvasLink(u)){return !!t[o.FB_CANVAS]?o.FB_CANVAS:null;}else if(this.isItunesURL(u))return s.getAppStoreNameFromITunesUrl(t,u);return null;},getAppStoreNameFromITunesUrl:function(t,u){var v=!!t[o.ITUNES],w=!!t[o.ITUNES_IPAD];if(v&&!w){return o.ITUNES;}else if(w&&!v){return o.ITUNES_IPAD;}else if(!v&&!w)return null;var x=s.getItunesContentId(u);if(!x)return null;var y=s.getItunesContentId(t[o.ITUNES]),z=s.getItunesContentId(t[o.ITUNES_IPAD]);if(x===y){return o.ITUNES;}else if(x===z){return o.ITUNES_IPAD;}else return null;},getItunesContentId:function(t){if(!s.isItunesURL(t))return null;var u=/\/app\/id([0-9]+)/i.exec(t);if(u&&u[1])return u[1];return null;},isValidDeviceForStore:function(t,u){if(t===o.ITUNES||t===o.ITUNES_IPAD){return h.isIosDevice(u);}else if(t===o.GOOGLE_PLAY){return (h.isAndroidDevice(u)&&u!==h.deviceTypes.AMAZON);}else if(t===o.AMAZON){return u===h.deviceTypes.AMAZON;}else return false;},getDefaultUserDevices:function(t){if(t===o.AMAZON){return [h.deviceTypes.AMAZON];}else if(t===o.ITUNES_IPAD){return [h.deviceTypes.IPAD];}else return [];}};e.exports=s;},null);
  __d("AdsCFUserViewActions",["AdsDispatcher","AdsCFActionTypes"],function(a,b,c,d,e,f,g,h){var i={addActor:function(j){g.handleUpdateFromViewAction({actionType:h.ADD_ACTOR,actor:j});}};e.exports=i;},null);
  __d("AdsCFUserStore",["AdsActionTypes","GraphAPI","AdsBaseStore","AdsCFAccountStore","AdsCFActionTypes","AdsCFCreativeUtils","AdsCFUserViewActions","AdsDispatcher","BizSiteIdentifier.brands","CurrentUser"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q,r,s,t;function u(){q=[];r=[];s=null;t=null;}u();function v(ba){s=null;t=ba.message;aa.inform('change');aa.inform('neko_create_page_error');}function w(ba){if(ba.feedPage){var ca=l.convertPageApiSpecToActor(ba.feedPage);r=[ca];q=[ca];}var da=function(ea,fa){if(!ea)return;var ga=r.slice(),ha=q.slice(),ia=ea||[],ja=function(ka){if(ca&&ca.id===ka.id)return;if(ka.published)ga.push(ka);ha.push(ka);};ia.forEach(function(ka){var la=l.convertPageApiSpecToActor(ka);if(p.isGray()||!la.userPermissions||la.userPermissions.length===0){ja(la);return;}la.userPermissions.forEach(function(ma){if((o.isBizSite()&&ma.user&&ma.user.id==p.getID()&&ma.business&&ma.business.id==o.getBusinessID())||(!o.isBizSite()&&ma.user&&ma.user.id==p.getID()&&(!ma.business||!ma.business_persona)))ja(la);});});ga.sort(function(ka,la){return ka.name.localeCompare(la.name);});n.handleUpdateFromServerResponse({actionType:k.CHANGE_ACTORS,availableActors:ga,allActors:ha});fa&&fa(da);};j.getDao().fetch.pagesForUser.paged(da);}for(var x in i)if(i.hasOwnProperty(x))z[x]=i[x];var y=i===null?null:i.prototype;z.prototype=Object.create(y);z.prototype.constructor=z;z.__superConstructor__=i;function z(){"use strict";if(i!==null)i.apply(this,arguments);}z.prototype.getStoreName=function(){"use strict";return 'AdsCFUserStore';};z.prototype.getLastCreatedPage=function(){"use strict";return s;};z.prototype.getPageCreationErrorMessage=function(){"use strict";return t;};z.prototype.getAllActors=function(){"use strict";return q;};z.prototype.getAvailableActors=function(){"use strict";return r;};z.prototype.onDispatchToken=function(ba){"use strict";var ca=ba.action;switch(ca.actionType){case k.NEKO_CREATE_PAGE:t=null;h('2.2').me().edge('accounts').post({name:ca.name,category_enum:ca.category_enum,picture:ca.picture,website:ca.website}).then(function(fa){return h('2.2').object('page',fa.id).get();},v).done(function(fa){if(!fa)return;s=fa;m.addActor(l.convertNewPageResultToActor(fa));aa.inform('change');aa.inform('neko_create_page_success');},v);break;case k.CHANGE_ACTORS:r=ca.availableActors?ca.availableActors.slice(0):[];q=ca.allActors?ca.allActors.slice(0):r.slice(0);aa.inform('change');break;case k.ADD_ACTOR:ca.actor.published=true;q.push(ca.actor);r.push(ca.actor);aa.inform('change');break;case k.NEW_PAGE_DESTINATION_SELECT:var da=ca.pageInfo;q.push(da);r.push(da);aa.inform('change');break;case k.INIT_ACTORS:w(ca);break;case g.PAGE_TRANSITION:case k.RESET_CF_STORES:u();break;case k.PAGE_LOCATION_CHANGE:var ea=j.getDao();ea.fetch.accessTokenForPage.promiseOne({pageId:ca.pageID}).then(function(fa){return ea.mutate.pageAddress.promiseOne({pageId:fa.id,location:ca.location,access_token:fa.access_token});}).then(function(fa){return {changed:true};},function(fa){return {changed:false,error:fa};}).done(function(fa){n.handleUpdateFromServerResponse({actionType:k.PAGE_LOCATION_CHANGED,error:fa.error,locationDetails:ca.locationDetails,newLocation:ca.location,pageID:ca.pageID,success:fa.changed});});break;}};var aa=new z();a.debug_AdsCFUserStore=aa;e.exports=aa;},null);
  __d("adsGetPlacementsForPageType",["AdsPageTypes","AdsPlacementID","AdsPlacementStates","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k=i.ENABLED,l=i.DISABLED;function m(n){var o=null;switch(n){case g.FEED:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:k,RHC:l,FAN:l};break;case g.DESKTOP_FEED:o={MOBILE_NEWS_FEED:l,DESKTOP_NEWS_FEED:k,RHC:l,FAN:l};break;case g.HOME:case g.RIGHT_COLUMN:o={MOBILE_NEWS_FEED:l,DESKTOP_NEWS_FEED:l,RHC:k,FAN:l};break;case g.RIGHT_COLUMN_AND_MOBILE:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:l,RHC:k,FAN:l};break;case g.MOBILE:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:l,RHC:l,FAN:l};break;case g.MOBILE_FEED_AND_EXTERNAL:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:l,RHC:l,FAN:k};break;case g.FEED_AND_EXTERNAL:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:k,RHC:l,FAN:k};break;case g.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:l,RHC:k,FAN:k};break;case g.DESKTOP_AND_MOBILE_AND_EXTERNAL:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:k,RHC:k,FAN:k};break;case g.DESKTOP:o={MOBILE_NEWS_FEED:l,DESKTOP_NEWS_FEED:k,RHC:k,FAN:l};break;case g.NONE:o={MOBILE_NEWS_FEED:l,DESKTOP_NEWS_FEED:l,RHC:l,FAN:l};break;case null:o={MOBILE_NEWS_FEED:k,DESKTOP_NEWS_FEED:k,RHC:k,FAN:l};break;default:break;}if(o)Object.keys(o).forEach(function(p){j(p in h);});return o;}e.exports=m;},null);
  __d("isL2TargetingSupported",["AdsAccountCapabilities","AdsCFAccountStore","AdsCFApplicationStore"],function(a,b,c,d,e,f,g,h,i){function j(){return h.hasAccountCapability(g.HAS_AD_SET_TARGETING)||i.isCampaignManager();}e.exports=j;},null);
  __d("AdsCFCreativeStore",["AdCreativeType","AdImageSpecsUtils","AdsAPIObjectives","AdsActionTypes","AdsAppUtils","AdsBaseStore","AdsCFActionTypes","AdsCFApplicationStore","AdsCFConstants","AdsCFCreativePlacementUtils","AdsCFCreativeProperties","AdsCFCreativeUtils","AdsCFCreativeViewActions","AdsCFDestinationDataLoader","AdsCFDestinationStore","AdsCFObjectiveStore","AdsCFUserStore","AdsCallToActionTypes","AdsCreationConfig","AdsCreativeUtils","AdsDestinationTypes","AdsDispatcher","AdsImageLegacy","AdsPlacementStates","ApiCreativeTypes","adsGetPlacementsForPageType","copyProperties","invariant","isL2TargetingSupported","merge","mergeDeep","whitelistObjectKeys","AdsCFCampaignStore"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la){'use strict';var ma=h.getImageSpecForAdType,na=p.getPlacementsState,oa=p.hasEnabledPlacement,pa=p.isPlacementSupported,qa=g.AD_CREATIVE_TYPE,ra=o.PlacementID,sa=o.PlacementStates,ta,ua,va;function wa(){ta={};ua={};va=false;}wa();function xa(ob){ta=ja(ta,ob);}function ya(ob,pb){var qb={apiCreativeID:null,creativeType:null,objectStoreUrl:null,placements:null};pb.forEach(function(rb){qb[rb]=null;});return qb;}function za(ob){if(u.getCachedPostLinkData(ob))return;t.fetchPostLinkData(ob,u.getPagePostDetails(ob));}function ab(){var ob=nb.getState(),pb=ob.creativeType,qb=function(sb,tb,ub){if(tb.placement in sb.validationMap)return;s.imageValidated(sb,tb.placement,ub);},rb=ob.imageList;if(rb)rb.forEach(function(sb){Object.keys(ra).forEach(function(tb){var ub=pa(ob,tb,v.getAPIObjective());if(ub){var vb=ma(pb,tb);vb&&sb.validate(vb,qb);}else delete sb.validationMap[tb];});});}function bb(ob,pb,qb){var rb=nb.getState(),sb=rb.imageList;sb&&sb.some(function(tb){if(tb.equals(ob)){tb.validationMap[pb]=qb;return true;}});}function cb(ob){var pb=ob.creativeType||ta.creativeType;ha(pb);if(ob.storyId){var qb=ob.storyId;za(qb);}xa(la(ob,ya(pb,q.idToType[pb].validFields)));}function db(ob){var pb=ob.creativeType;if(!pb)return;ua=la(ob,ya(pb,q.idToType[pb].validFields));}function eb(ob,pb,qb,rb){var sb=ob.id,tb=ga({creativeType:sb},pb);if(rb===i.MOBILE_APP_ENGAGEMENT&&qb&&qb.isAppLinksUsed){tb.applinkUrl=qb.originalObjectUrl;}else if(rb===i.LOCAL_AWARENESS&&qb.isPageLocationAddressValid){tb.callToActionType=x.TYPES.GET_DIRECTIONS.name;tb.getDirectionsUrl='fbgeo://'+Number(qb.validLatitude)+','+Number(qb.validLongitude)+',"'+qb.validAddress+'"';}var ub=la(tb,ya(ob.id,q.idToType[ob.id].validFields));ub.placements=(void 0);ub.storyId&&za(ub.storyId);xa(ub);}function fb(ob,pb,qb,rb,sb){var tb=z.getPrimaryCreativeConfig(rb,ob,{destinationDetails:sb});eb(tb,r.getDefaultCreativeData(tb.id,ob,pb,qb,sb,ta),sb,ob);var ub={id:pb,name:sb.destinationName};if(ob===i.VIDEO_VIEWS||ob===i.PAGE_LIKES){xa({actor:ub});}else if(ob===i.CANVAS_APP_INSTALLS||ob===i.CANVAS_APP_ENGAGEMENT||ob===i.MOBILE_APP_INSTALLS||ob===i.MOBILE_APP_ENGAGEMENT){xa({actor:hb()});}else if(ob===i.LOCAL_AWARENESS){xa({linkDescription:'',actor:ub});}else if(rb===aa.EXTERNAL_WEBPAGE){xa({linkDescription:'',actor:hb()});}else if(rb===aa.EVENT)if(!n.isCampaignManager()){var vb=w.getAvailableActors()||[],wb=vb.some(function(xb){return xb.id==sb.eventCreatorId;});cb({actor:wb?{id:sb.eventCreatorId}:hb()});}}function gb(){if(ta.creativeType!==ea.STANDARD&&ta.creativeType!==qa.FEED_URL)return;var ob=ta.placements,pb=ob[ra.DESKTOP_NEWS_FEED]===sa.ENABLED||ob[ra.MOBILE_NEWS_FEED]===sa.ENABLED?qa.FEED_URL:ea.STANDARD;if(pb===ta.creativeType)return;if(ta.creativeType===qa.STANDARD){xa({creativeType:qa.FEED_URL,linkDescription:'',actor:hb()});}else if(ta.creativeType===qa.FEED_URL){xa({creativeType:qa.STANDARD});delete ta.actor;delete ta.linkDescription;delete ta.storyId;}}function hb(){var ob=w.getAvailableActors()||[],pb=u.getDestinationDetails().relatedFanPage;pb=pb+'';var qb=ob.filter(function(rb){return rb.id===pb;})[0];if(!qb&&ob.length&&ob.length<=y.maxPagesForUrlDefaulting)qb=ob[0];return qb;}function ib(ob){return ob.map(function(pb){return new ca(pb);});}function jb(ob){return ob.map(function(pb){return pb.toJSON();});}for(var kb in l)if(l.hasOwnProperty(kb))mb[kb]=l[kb];var lb=l===null?null:l.prototype;mb.prototype=Object.create(lb);mb.prototype.constructor=mb;mb.__superConstructor__=l;function mb(){if(l!==null)l.apply(this,arguments);}mb.prototype.getStoreName=function(){return 'AdsCFCreativeStore';};mb.prototype.resetCreative=function(){};mb.prototype.isPlacedOnNewsFeed=function(){return ta.creativeType===qa.FEED_URL;};mb.prototype.getCreativeData=function(){return ta;};mb.prototype.getInitialCreativeData=function(){return ua;};mb.prototype.getShouldApplyLatestPagePostOnPostsReload=function(){return va;};mb.prototype.getState=function(){if(!ta.creativeType)return {};var ob=la(ta,ya(ta.creativeType,q.idToType[ta.creativeType].validFields));ob.hasChanged=r.hasCreativeChanged(ob,ua);if((ta.creativeType===qa.FEED_URL||ta.creativeType===qa.NEKO_LPP)&&ob.hasChanged)ob.storyId=(void 0);if(ta.isVideoCreative){delete ob.imageList;}else if(ta.isVideoCreative===false)delete ob.videoId;return ob;};mb.prototype.deserialize=function(ob){return Object.keys(ob).every(function(pb){var qb=ob[pb];switch(pb){case 'creativeData':ta=qb;if(ta&&ta.imageList)ta.imageList=ib(ta.imageList);return true;case 'initialCreativeData':ua=qb;if(ua&&ua.imageList)ua.imageList=ib(ua.imageList);return true;case 'shouldApplyLatestPagePostOnPostsReload':va=qb;return true;}return false;});};mb.prototype.serialize=function(){var ob=ka(this.getCreativeData()),pb=ka(this.getInitialCreativeData());if(ob&&ob.imageList)ob.imageList=jb(ta.imageList);if(pb&&pb.imageList)pb.imageList=jb(ua.imageList);return {creativeData:ob,initialCreativeData:pb,shouldApplyLatestPagePostOnPostsReload:this.getShouldApplyLatestPagePostOnPostsReload()};};mb.prototype.onDispatchToken=function(ob){var pb=ob.action,qb;switch(pb.actionType){case m.INIT_STARTED:nb.inform('change');break;case m.CREATIVE_INIT:var rb=pb;if(!pb.hasOwnProperty('callToActionType')&&ta&&ta.callToActionType)rb=ja(pb,{callToActionType:''});cb(rb);ab();db(rb);nb.inform('change');break;case m.ADD_ACTOR:cb({actor:pb.actor});nb.inform('change');break;case m.CREATIVE_CHANGE:cb(pb);pb.imageList&&ab();nb.inform('change');break;case m.RHC_REDESIGN_CHANGE:nb.inform('change');break;case m.IMAGE_VALIDATED:bb(pb.image,pb.placement,pb.validation);nb.inform('change');break;case m.CREATIVE_PLACEMENTS_CHANGE:var sb=pb.placementList,tb=pb.enabled?sa.ENABLED:sa.DISABLED;qb=ja(na(ta,v.getAPIObjective()));sb.forEach(function(ec){qb[ec]=tb;});if(qb[ra.FAN]===sa.ENABLED&&qb[ra.MOBILE_NEWS_FEED]===sa.DISABLED)qb[ra.FAN]=sa.DISABLED;var ub=v.getAPIObjective();if(!oa(ja(ta,{placements:qb}),ub))Object.keys(qb).some(function(ec){if(pa(ta,ec,ub)&&sb.indexOf(ec)===-1){qb[ec]=sa.ENABLED;return true;}});cb({placements:qb});gb();nb.inform('change');break;case m.MOBILE_OPTIMIZED_URL_CHECK_SUCCESS:if(!pb.showDialog)break;ba.waitFor([u.dispatchToken,v.dispatchToken]);if(!pb.isMobileOptimized){qb=ja(na(ta,v.getAPIObjective()));qb[ra.MOBILE_NEWS_FEED]=sa.DISABLED;if(qb[ra.FAN]===sa.ENABLED)qb[ra.FAN]=sa.DISABLED;cb({placements:qb});nb.inform('change');}break;case m.PAGE_POSTS_LOADED:ba.waitFor([u.dispatchToken]);if((va||!ta.storyId)&&ta.creativeType&&ta.creativeType!==ea.INLINE_FAN){cb({storyId:u.getDefaultStoryIDForCreative()});nb.inform('change');}va=false;break;case m.PAGE_POSTS_PUBLISHED:ba.waitFor([u.dispatchToken]);var vb=u.getDefaultStoryIDForCreative();if(vb){cb({storyId:vb});}else va=true;nb.inform('change');break;case m.RESET_DESTINATION:if(n.isCreatingSimilar())break;wa();nb.inform('change');break;case m.DESTINATION_CHANGE:case m.OBJECTIVE_CHANGE:case m.KPI_OBJECTIVE_CHANGE:case m.PAGE_LOCATION_CHANGED:ba.waitFor([v.dispatchToken,u.dispatchToken]);if(pb.actionType===m.DESTINATION_CHANGE)wa();if(!u.hasDestination())break;fb(v.getAPIObjective(),u.getDestinationID(),u.getDefaultStoryIDForCreative(),u.getDestinationType(),u.getDestinationDetails());ab();nb.inform('change');break;case m.IMAGE_CROP_CHANGE:var wb=pb.coordinates,xb=pb.cropKey,yb=ta.imageList;yb=yb.map(function(ec){if(!ec.equals(pb.image))return ec;var fc={};fc[xb]=wb;return ec.clone({crops:fc});});xa({imageList:yb});nb.inform('change');break;case m.CAMPAIGN_SELECT:if(!ia()||!pb.targeting)break;var zb=b('AdsCFCampaignStore'),ac=zb.getState(pb.campaignID),bc=ac.promotedObject,cc=bc.objectStoreUrl;ub=v.getAPIObjective();if(k.isAppObjective(ub)&&cc)xa({linkUrl:cc});var dc=pb.targeting.pageTypes?pb.targeting.pageTypes[0]:null;qb=fa(dc);if(ub===i.LOCAL_AWARENESS)qb.RHC=da.NOT_SUPPORTED;xa({placements:qb});gb();nb.inform('change');break;case m.CLEAR_AND_START_OVER:wa();v.inform('change');break;case j.PAGE_TRANSITION:case m.RESET_CF_STORES:wa();break;}};var nb=new mb();a.debug_AdsCFCreativeStore=nb;nb.__processImageValidationChange=bb;nb.__validateImages=ab;e.exports=nb;},null);
  __d("AdsCFTargetingStore",["AdsActionTypes","AdsAPIObjectives","AdsAPISpec","AdsAPITargetGeoLocationTypes","ads-app-platforms","AdsBaseStore","AdsCFAccountStore","AdsCFActionTypes","AdsCFApplicationStore","AdsCFCampaignGroupStore","AdsCFConstants","AdsCFCreativePlacementUtils","AdsCFCreativeStore","AdsCFDestinationStore","AdsCFObjectiveStore","AdsCommonGeocoderStore","AdsCommonTargetingActionTypes","AdsCommonTargetingProperties","AdsCountries","AdsCreationConfig","AdsGeoTargetingUtils","AdsDispatcher","AdsLocalAwarenessRadiusOptions","AdsMapActionTypes","ads-mobile-platforms","AdsPayloadSource","AdsTargetingAdvancedDemoConstants","ImmutableObject","URIInitDataUtil","copyProperties","isL2TargetingSupported","merge","whitelistObjectKeys","LocationConstants"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma){'use strict';var na=b('LocationConstants').RadiusInfo,oa=k.APP_PLATFORM,pa=q.CanonicalID,qa=k.NATIVE_APP_TO_MOBILE_STORE_MAP,ra='countries',sa='cities',ta='regions',ua='zips',va=[g.PAGE_TRANSITION,n.CAMPAIGN_GROUP_SELECT,n.CAMPAIGN_GROUP_SELECT_AND_UPDATE,n.CAMPAIGN_SELECT,n.CANCEL_EDITED_CAMPAIGN,n.CLEAR_AND_START_OVER,n.CREATE_SIMILAR_AD,n.EDIT_CAMPAIGN_BUTTON_CLICK,n.KPI_OBJECTIVE_CHANGE,n.OBJECTIVE_CHANGE,n.RESET_CF_STORES,n.SAVE_EDITED_CAMPAIGN_SUCCESS,n.SELECT_NEW_CAMPAIGN],wa,xa,ya={},za,ab={targetAllGraduationYears:true},bb={addressString:'',latitude:0,longitude:0,radius:0};function cb(cc){ab=la(ab,cc);}function db(){za=false;wa={};wa[pa]=ja({},ab);}db();function eb(cc,dc){wa[cc]=la(wa[cc],dc);}function fb(cc,dc){var ec=ma(wa[cc],dc);wa[cc]=la(ab,ec);}function gb(cc){return wa[pa][cc];}function hb(cc){var dc=Math.max(+cc.minAge,z.minAge);return {ageMinLimit:dc,ageMin:Math.max(dc,z.minAgeDefault)};}function ib(){var cc=gb(ra);return cc&&cc.length===1&&cc[0];}function jb(cc,dc,ec){var fc=ab.connections||[],gc=ab.excludedConnections||[];if(dc.isAdmin){switch(ec){case h.CANVAS_APP_ENGAGEMENT:fc=[cc];break;}switch(ec){case h.PAGE_LIKES:case h.EVENT_RESPONSES:case h.CANVAS_APP_INSTALLS:case h.MOBILE_APP_INSTALLS:gc=[cc];break;}}return {connections:fc,excludedConnections:gc};}function kb(cc,dc){var ec=[],fc,gc;if(dc===h.MOBILE_APP_INSTALLS||dc===h.MOBILE_APP_ENGAGEMENT){var hc=cc.appPlatforms;if(hc&&hc.length){fc=k.getMobileOSForPlatform(hc[0]);ec=lb(cc,hc[0]);gc=qa[hc[0]];}}return {mobileDevices:ec,mobileOperatingSystem:fc,mobileStore:gc};}function lb(cc,dc){var ec=[];if(cc.supportedDevices&&cc.supportedDevices.length>0){ec=cc.supportedDevices;}else switch(dc){case oa.IOS:ec=[ea.deviceTypes.IPAD,ea.deviceTypes.IPOD,ea.deviceTypes.IPHONE];break;case oa.IPAD:ec=[ea.deviceTypes.IPAD];break;case oa.ANDROID:ec=[ea.deviceTypes.ANDROID_SMARTPHONE,ea.deviceTypes.ANDROID_TABLET];break;case oa.AMAZON:ec=[ea.deviceTypes.AMAZON];break;}return ec;}var mb=x;function nb(){var cc=u.getAPIObjective(),dc=t.getDestinationDetails(),ec=t.getDestinationID();if(cc===h.LOCAL_AWARENESS){fb(pa,['ageMax','ageMin','sex']);if(wa[pa].geoLocations&&wa[pa].geoLocations.countries)eb(pa,{geoLocations:{countries:[],regions:[],cities:[],zips:[]}});ob();return;}var fc={id:ec,name:dc.destinationName},gc=jb(fc,dc,cc),hc=kb(dc,cc),ic=ja({},gc,hc,{wifiOnly:false});if(dc.interests)if(!gb('interests'))ic.interests=dc.interests;eb(pa,ic);ob();}function ob(){if(o.isEditingExistingCampaign())return;var cc=r.getPageTypes(s.getState(),u.getAPIObjective());eb(pa,{pageTypes:cc});}function pb(cc,dc){var ec=cc.localGeo;if(!ec&&cc.geoLocations)ec=aa.getFirstCustomLocation(cc.geoLocations);if(!ec)return;ec=Object.assign({},ec);var fc=wa[dc].geoLocations||{},gc=fc.customLocations&&fc.customLocations[0];if(!gc)gc=bb;var hc=aa.processLocalGeoChange(ec,gc,dc);fc=la(fc,{countries:[],customLocations:[hc.newCustomLocation],locationTypes:[j.RECENT,j.HOME]});eb(dc,{geoLocations:fc});if(hc.shouldFetchSuggestedRadius)aa.fetchSuggestedRadius(hc.newCustomLocation.latitude,hc.newCustomLocation.longitude,dc,tb);}function qb(cc,dc){var ec=xb(dc);if(!ec)return false;var fc=cc.address;if(!cc.isValid){if(cc.address!==ec.addressString)return false;fc=sb(cc.address);if(fc!==cc.address)v.getAddressCoordinates(fc,dc);return false;}fc=sb(ec.addressString);var gc=aa.processGeoCoordinates(cc,ec,fc);if(gc)setTimeout(function(){ba.handleUpdateFromServerResponse({actionType:n.TARGETING_CHANGE,localGeo:gc,targetingID:dc});},0);return !!gc;}function rb(cc){return aa.getDefaultGeoTargetingCountry(cc||t.getDestinationDetails(),m.getState().businessCountryCode,z.userLocalCountryCode);}function sb(cc){return aa.getFallbackAddressWithCountry(cc,t.getDestinationDetails(),m.getState().businessCountryCode,z.userLocalCountryCode);}function tb(cc,dc,ec,fc){var gc=wa[ec].geoLocations;if(!gc)return;var hc=gc.customLocations&&gc.customLocations[0];if(!hc||hc.latitude!==cc||hc.longitude!==dc)return;var ic=fc[0],jc=ca.roundUpToNearestOption(ic.suggested_radius,ic.distance_unit);ba.handleUpdateFromServerResponse({actionType:da.MAP_ZOOM_RESET});ba.handleUpdateFromServerResponse({actionType:n.TARGETING_CHANGE,localGeo:{radius:jc,lastSuggestedRadius:jc,distanceUnit:ic.distance_unit},targetingID:ec});}function ub(cc,dc){var ec=u.getAPIObjective();if(ec!==h.LOCAL_AWARENESS)return false;if(!cc.isPageLocationAddressValid)return false;var fc={localGeo:{addressString:cc.validAddress,latitude:cc.validLatitude,longitude:cc.validLongitude}};pb(fc,pa);return true;}function vb(cc){setTimeout(function(){ba.handleUpdateFromViewAction({actionType:da.MAP_DATA_RESET,reason:cc});},0);}function wb(cc){var dc,ec;if(cc.mobileDevices&&cc.mobileDevices.length===0){dc=t.getDestinationDetails();ec=gb('mobileOperatingSystem');if(dc&&ec)cc.mobileDevices=lb(dc,ec);}eb(pa,ma(cc,mb));if(cc.syndicatedCustomAudiencesLibrary)cc.syndicatedCustomAudiencesLibrary.forEach(function(fc){ya[fc.id]=true;});pb(cc,pa);ob();}function xb(cc){var dc=wa[cc];return (dc&&dc.geoLocations&&dc.geoLocations.customLocations)?dc.geoLocations.customLocations[0]:null;}for(var yb in l)if(l.hasOwnProperty(yb))ac[yb]=l[yb];var zb=l===null?null:l.prototype;ac.prototype=Object.create(zb);ac.prototype.constructor=ac;ac.__superConstructor__=l;function ac(){if(l!==null)l.apply(this,arguments);}ac.prototype.getStoreName=function(){return 'AdsCFTargetingStore';};ac.prototype.deserialize=function(cc){return Object.keys(cc).every(function(dc){var ec=cc[dc];switch(dc){case 'isReadOnly':za=ec;return true;case 'syndicatedCustomAudiencesMap':ya=ec;return true;case 'targetableAudiences':xa=ec;return true;case 'targetingData':wa=ec;return true;}return false;});};ac.prototype.getMutableSyndicatedCustomAudiencesMap=function(){return ya;};ac.prototype.getState=function(cc){return new ha(wa[cc]||{});};ac.prototype.getValue=function(cc){return gb(cc);};ac.prototype.getSyndicatedCustomAudiencesMap=function(){return new ha(ya);};ac.prototype.getTargetableAudiences=function(){return xa;};ac.prototype.getTargetingData=function(){return wa;};ac.prototype.isReadOnly=function(){return za;};ac.prototype.onDispatchToken=function(cc){var dc=cc.action,ec,fc;if(za&&va.indexOf(dc.actionType)<0)return;var gc=cc.payloadsource===fa.VIEW_ACTION,hc=cc.payloadsource===fa.URL_PARAM_LOAD,ic=false;switch(dc.actionType){case n.CREATIVE_CHANGE:if(!dc.mobileStore&&!dc.platform)break;var jc=dc.platform,kc=null;if(jc){kc=qa[jc];if(!kc||kc===k.MOBILE_STORE.FB_CANVAS)break;}else{ba.waitFor([s.dispatchToken]);kc=s.getState().mobileStore;}if(!kc)break;ec=t.getDestinationDetails();var lc=k.getOSForMobileStore(kc);eb(pa,{mobileOperatingSystem:lc,mobileDevices:lb(ec,jc),mobileStore:kc});ic=true;break;case n.TARGETING_INIT:cb(dc);if(!o.isSerializedDataAvailable())wb(dc);ic=true;break;case n.TARGETING_CHANGE:wb(dc);ic=true;break;case n.TARGETABLE_AUDIENCES_CHANGE:xa=la(xa,dc.audiences);ic=true;break;case w.GEO_COORDINATES_LOADED:ba.waitFor([v.dispatchToken]);ic=qb(dc,pa);break;case n.TARGETING_RESET_DEFAULTS:case n.DESTINATION_CHANGE:ba.waitFor([u.dispatchToken,t.dispatchToken,s.dispatchToken]);vb(dc.actionType);if(ia.getDefaultTargeting()){nb();break;}ec=t.getDestinationDetails();if(o.isCreatingSimilar()||(!gc&&!hc&&dc.actionType!==n.TARGETING_RESET_DEFAULTS)){var mc=hb(ec),nc=gb('ageMin');if(mc.ageMin<nc)mc.ageMin=nc;eb(pa,mc);if(o.isCreatingSimilar()){nb();}else ob();ic=true;break;}var oc=aa.getDefaultGeoTargeting(ec),pc=hb(ec),qc=rb(ec),rc=[];if(u.getAPIObjective()!==h.LOCAL_AWARENESS){if(ec.destinationCityInfo){var sc={key:ec.destinationCityInfo.id,id:ec.destinationCityInfo.id,name:ec.destinationCityInfo.name,radius:oc.radius,distance_unit:na.getLocalizedUnit(),country:ec.destinationCityInfo.country,region_id:ec.destinationCityInfo.region_id};rc.push(sc);}qc=rc.length?[]:qc;}oc.geoLocations={countries:qc,regions:[],cities:rc,zips:[],custom_locations:[],geo_markets:[]};oc.excludedGeoLocations={};fc=ja({userAdclusters:[],locales:[],educationStatuses:[],friendsOfConnections:[]},oc,pc);eb(pa,fc);nb();var tc=bc.getLocalGeoState(pa);if(dc.actionType===n.DESTINATION_CHANGE&&!tc.addressString)ub(ec,pa);ic=true;break;case n.OBJECTIVE_CHANGE:case n.KPI_OBJECTIVE_CHANGE:if(!gc&&!hc)break;ba.waitFor([p.dispatchToken,s.dispatchToken,t.dispatchToken,u.dispatchToken]);var uc=p.getSelectedState();if(uc.isNew)za=false;if(za)break;nb();ic=true;break;case n.CREATIVE_PLACEMENTS_CHANGE:ba.waitFor([s.dispatchToken]);ob();ic=true;break;case n.RESET_DESTINATION:if(o.isCreatingSimilar())break;db();ic=true;break;case n.PAGE_POSTS_LOADED:ob();ic=true;break;case n.CAMPAIGN_SELECT:case n.CANCEL_EDITED_CAMPAIGN:if(!ka()||!dc.targeting){za=false;break;}db();if(!o.isEditingExistingCampaign())za=true;wb(dc.targeting);ic=true;break;case n.EDIT_CAMPAIGN_BUTTON_CLICK:case n.SELECT_NEW_CAMPAIGN:case n.CAMPAIGN_GROUP_SELECT:case n.CAMPAIGN_GROUP_SELECT_AND_UPDATE:za=false;break;case n.SAVE_EDITED_CAMPAIGN_SUCCESS:za=!!dc.targeting;break;case n.CREATE_SIMILAR_AD:za=ka();break;case g.PAGE_TRANSITION:case n.RESET_CF_STORES:db();break;case n.CLEAR_AND_START_OVER:db();ic=true;break;}if(ic){var vc=ma(dc,mb);bc.inform('change',{payloadsource:cc.payloadsource,changedProperties:vc});}};ac.prototype.serialize=function(){return {isReadOnly:this.isReadOnly(),syndicatedCustomAudiencesMap:this.getMutableSyndicatedCustomAudiencesMap(),targetableAudiences:this.getTargetableAudiences(),targetingData:this.getTargetingData()};};ac.prototype.getCountryHasOptions=function(){return this.getCountryHasCities()||this.getCountryHasZips()||this.getCountryHasRegions();};ac.prototype.getSingleCountry=function(){return ib();};ac.prototype.getCountryHasRegions=function(){var cc=ib();return cc&&y.hasRegions(cc);};ac.prototype.getCountryHasCities=function(){var cc=ib();return cc&&y.hasCities(cc);};ac.prototype.getCountryHasZips=function(){var cc=ib();return cc==='US';};ac.prototype.getLocTargeting=function(){var cc=gb('locTargeting');if(cc===sa)return this.getCountryHasCities()?sa:ra;if(cc===ta)return this.getCountryHasRegions()?ta:ra;if(cc===ua)return this.getCountryHasZips()?ua:ra;return ra;};ac.prototype.getLocalGeoState=function(cc){return new ha(xb(cc)||{});};ac.prototype.getDefaultGeoTargeting=function(){var cc=t.getDestinationDetails();return aa.getDefaultGeoTargeting(cc);};ac.prototype.getHasCollege=function(){var cc=this.getEducationStatuses()||[];return (cc.indexOf(i.EDUCATION_STATUSES.IN_COLLEGE)>=0||cc.indexOf(i.EDUCATION_STATUSES.COLLEGE_GRAD)>=0);};ac.prototype.getMaxGradYear=function(){return gb('maxGradYear')||ga.graduationYearBounds.maxGraduationYear;};ac.prototype.getMinGradYear=function(){return gb('minGradYear')||ga.graduationYearBounds.minGraduationYear;};ac.prototype.getMobileMinVersion=function(cc){var dc=ea.operatingSystems,ec;if(cc===dc.IOS){ec=gb('minIosVersion');}else if(cc===dc.ANDROID)ec=gb('minAndroidVersion');return ec;};var bc=new ac();a.debug_AdsCFTargetingStore=bc;e.exports=bc;},null);
  __d("AdsModelAdapterMixin",["bolt/util","AdsUtils","bolt/mixins/events","bolt/model"],function(a,b,c,d,e,f,g,h){var i=b('bolt/mixins/events').Events,j=b('bolt/model').Model,k={isModelAdapter:true,isBaseProperty:function(l){return g.getter(l) in this;},getSafe:function(l){return this[g.getter(l)]();},setSafe:function(l,m,n){return this[g.setter(l)](m,n);},get:function(l){return this.getSafe(l);},set:function(l,m){return this.setSafe(l,m,false);},unset:function(l,m){this.setSafe(l,null,m);},merge:function(l,m){l=l instanceof j?l._properties:l;Object.keys(l).forEach(function(n){if(typeof l[n]!=='function')this.setSafe(n,l[n],m);}.bind(this));},invokeChanged:function(l){this.invoke('changed',{model:this,changedProperties:l});},_getApiSpecForFields:function(l){var m={};for(var n=0;n<l.length;n++)m[h.underscoreKey(l[n])]=this.getSafe(l[n]);return m;},_setApiSpecForFields:function(l,m){var n={};for(var o=0;o<l.length;o++)if(m[h.underscoreKey(l[o])]!==(void 0))n[l[o]]=m[h.underscoreKey(l[o])];this.merge(n);}};Object.assign(k,i);e.exports=k;},null);
  __d("trimObject",["isEmpty"],function(a,b,c,d,e,f,g){function h(i,j){if(!i)return i;var k=JSON.parse(JSON.stringify(i));for(var l in k)if(k.hasOwnProperty(l)){var m=j&&j[l]===true,n=k[l];if(n===''){if(!m)delete k[l];}else if(n instanceof Array){if(!m&&n.length===0)delete k[l];}else if(typeof n==='object'){var o=h(n,j&&j[l]);if(j||!g(o)){k[l]=o;}else if(!m)delete k[l];}}return k;}e.exports=h;},null);
  __d("AdsTargetingModelAdapter",["AdsAPISpec","AdsCFActionTypes","AdsCFTargetingStore","AdsCreationConfig","AdsDispatcher","AdsModelAdapterMixin","AdsPayloadSource","AdsUtils","ads-mobile-platforms","copyProperties","getAdsTargetingLocationsCount","LocationConstants","merge","trimObject"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){var u=o.deviceTypes,v=o.operatingSystems,w=false,x={};function y(fa,ga){return function(){var ha=i.getValue(fa);return ha===(void 0)?ga:ha;};}function z(fa){return i[fa];}function aa(fa,ga){if(w){x=p(x,fa);return;}var ha=p({actionType:h.TARGETING_CHANGE},fa);if(!ga){k.handleUpdateFromUnknownSource(ha);}else k.handleUpdateFromViewAction(ha);}function ba(fa){return function(ga,ha){var ia={};ia[fa]=ga;aa(ia,!!ha);};}function ca(fa,ga){if(!fa)return ga;return ga.toLowerCase()+'_ver_'+fa+'_and_above';}function da(fa){return function(){var ga=Array.prototype.slice.apply(arguments);ga[1]=true;fa.apply(this,ga);};}var ea=s(l,{initSubscriptions:function(fa){i.subscribe('change',function(ga,ha){this.invokeChanged({ageMax:this.getAgeMax(),ageMin:this.getAgeMin(),behaviors:this.getBehaviors(),cities:this.getCities(),connections:this.getConnections(),countries:this.getCountries(),countryHasCities:this.getCountryHasCities(),countryHasOptions:this.getCountryHasOptions(),countryHasRegions:this.getCountryHasOptions(),countryHasZips:this.getCountryHasZips(),customLocations:this.getCustomLocations(),geoMarkets:this.getGeoMarkets(),friendsOfConnections:this.getFriendsOfConnections(),hasCollege:this.getHasCollege(),geoLocations:this.getGeoLocations(),excludedGeoLocations:this.getExcludedGeoLocations(),locTargeting:this.getLocTargeting(),loggedCities:this.getCities(),loggedConnections:this.getConnections(),loggedCountries:this.getCountries(),loggedExcludedConnections:this.getExcludedConnections(),loggedLocTargeting:this.getLocTargeting(),loggedFriendsOfConnections:this.getFriendsOfConnections(),loggedInterestedIn:this.getInterestedIn(),loggedLocales:this.getLocales(),loggedAgeMax:this.getAgeMax(),loggedAgeMin:this.getAgeMin(),loggedSex:this.getSex(),loggedEducationSchools:this.getEducationSchools(),loggedEducationMajors:this.getEducationMajors(),loggedMinGradYear:this.getMinGradYear(),loggedMaxGradYear:this.getMaxGradYear(),loggedWorkEmployers:this.getWorkEmployers(),loggedRadius:this.getRadius(),loggedRegions:this.getRegions(),loggedZips:this.getZips(),radius:this.getRadius(),regions:this.getRegions(),mobileOperatingSystem:this.getMobileOperatingSystem(),targetAllGraduationYears:this.getTargetAllGraduationYears(),wifiOnly:this.getWifiOnly(),zips:this.getZips()});if(ha.payloadsource===m.VIEW_ACTION)Object.keys(ha.changedProperties).forEach(function(ia){this.invoke('changedByUser',ia);}.bind(this));}.bind(this));},getCities:function(){return this.getLocTargeting()==='cities'?i.getValue('cities'):[];},getCountries:y('countries',[]),getCountryHasCities:z('getCountryHasCities'),getCountryHasOptions:z('getCountryHasOptions'),getCountryHasRegions:z('getCountryHasRegions'),getCountryHasZips:z('getCountryHasZips'),getCustomLocations:y('customLocations',[]),getGeoMarkets:y('geoMarkets',[]),getLocTargeting:z('getLocTargeting'),getRadius:function(){var fa=this.getRadiusIfValid();if(fa===(void 0))fa=0;return this.getLocTargeting()==='cities'?fa:0;},getRadiusIfValid:y('radiusIfValid'),getRegions:function(){return this.getLocTargeting()==='regions'?i.getValue('regions'):[];},getSingleCountry:z('getSingleCountry'),getZips:function(){return this.getLocTargeting()==='zips'?i.getValue('zips'):[];},getAgeMinLimit:y('ageMinLimit',j.minAge),getAgeMax:function(){var fa=i.getValue('ageMax');if(!fa){return j.maxAge;}else return fa;},getAgeMin:function(){var fa=i.getValue('ageMin'),ga=0;if(!fa){ga=j.minAgeDefault;}else ga=fa;return Math.max(this.getAgeMinLimit(),ga);},getGenders:function(){var fa=this.getSex();return fa===g.GENDERS.ALL?[]:[fa];},getSex:y('sex',g.GENDERS.ALL),getInterests:y('interests'),getKeywords:y('keywords'),getUserAdclusters:y('userAdclusters'),getConjunctiveUserAdclusters:y('conjunctiveUserAdclusters'),getCustomAudiences:y('customAudiences'),getNonSyndicatedCustomAudiences:function(){var fa=this.getCustomAudiences()||[],ga=i.getSyndicatedCustomAudiencesMap(),ha=[];fa.forEach(function(ia){if(!ga[ia.id])ha.push(ia);});return ha;},getSyndicatedCustomAudiences:function(){var fa=this.getCustomAudiences()||[],ga=i.getSyndicatedCustomAudiencesMap(),ha=[];fa.forEach(function(ia){if(ga[ia.id])ha.push(ia);});return ha;},getSyndicatedCustomAudiencesLibrary:y('syndicatedCustomAudiencesLibrary'),getExcludedCustomAudiences:y('excludedCustomAudiences'),getConnections:y('connections'),getExcludedConnections:y('excludedConnections'),getFriendsOfConnections:y('friendsOfConnections'),getInterestedIn:y('interestedIn',[]),getRelationshipStatuses:y('relationshipStatuses'),getFamilyStatuses:y('familyStatuses'),getIndustries:y('industries'),getLifeEvents:y('lifeEvents'),getMarkets:y('markets'),getPolitics:y('politics'),getIncome:y('income'),getNetWorth:y('netWorth'),getHomeType:y('homeType'),getHomeOwnership:y('homeOwnership'),getHomeValue:y('homeValue'),getEthnicAffinity:y('ethnicAffinity'),getGeneration:y('generation'),getHouseholdComposition:y('householdComposition'),getMoms:y('moms'),getOfficeType:y('officeType'),getLocales:y('locales'),getMinIosVersion:y('minIosVersion'),getMinAndroidVersion:y('minAndroidVersion'),getMobileDevices:y('mobileDevices',[]),getMobileMinVersion:z('getMobileMinVersion'),getMobileOperatingSystem:y('mobileOperatingSystem'),getUserOs:function(){var fa=this.getMobileOperatingSystem();if(!fa)return [];var ga;if(fa===v.IOS){ga=this.getMinIosVersion();}else if(fa===v.ANDROID)ga=this.getMinAndroidVersion();return [ca(ga,fa)];},getUserDevice:function(){var fa=this.getMobileDevices()||[],ga={};fa.forEach(function(ha){ga[ha]=1;});if(u.ANDROID_SMARTPHONE in ga&&u.ANDROID_TABLET in ga)fa=[];return fa;},getWifiOnly:y('wifiOnly',false),getWirelessCarrier:function(){var fa=o.carriers;if(this.getWifiOnly())return [fa.WIFI];return [];},getEducationMajors:function(){return i.getValue('educationMajors')||[];},getEducationSchools:function(){return i.getValue('educationSchools')||[];},getCollegeYears:function(){if(this.getTargetAllGraduationYears())return [];var fa=this.getMinGradYear(),ga=this.getMaxGradYear(),ha=[];for(var ia=fa;ia<=ga;ia++)ha.push(ia);return ha;},getEducationStatuses:y('educationStatuses'),getHasCollege:z('getHasCollege'),getGeoLocations:y('geoLocations'),getExcludedGeoLocations:y('excludedGeoLocations'),getMaxGradYear:z('getMaxGradYear'),getMinGradYear:z('getMinGradYear'),getTargetAllGraduationYears:y('targetAllGraduationYears'),getWorkEmployers:function(){return i.getValue('workEmployers')||[];},getWorkPositions:y('workPositions'),getBehaviors:y('behaviors'),getExcludedUserAdclusters:y('excludedUserAdclusters'),getPageTypes:y('pageTypes'),getFlexibleSpec:y('flexibleSpec'),getExclusions:y('exclusions'),setCities:function(fa,ga){fa=fa||[];fa.length&&this.setLocTargeting('cities');aa({cities:fa},ga);},setCountries:ba('countries'),setLocTargeting:ba('locTargeting'),setGeoLocations:ba('geoLocations'),setExcludedGeoLocations:ba('excludedGeoLocations'),setRadius:ba('radiusIfValid'),setRadiusIfValid:ba('radiusIfValid'),setRegions:function(fa,ga){fa=fa||[];fa.length&&this.setLocTargeting('regions');aa({regions:fa},ga);},setZips:function(fa,ga){fa=fa||[];fa.length&&this.setLocTargeting('zips');aa({zips:fa},ga);},setAgeMax:ba('ageMax'),setAgeMin:ba('ageMin'),setAgeMinLimit:ba('ageMinLimit'),setGenders:function(fa,ga){var ha=fa&&fa.length===1?fa[0]:g.GENDERS.ALL;aa({sex:ha},ga);},setSex:ba('sex'),setCustomAudiences:ba('customAudiences'),setExcludedCustomAudiences:ba('excludedCustomAudiences'),setKeywords:ba('keywords'),setInterests:ba('interests'),setNonSyndicatedCustomAudiences:function(fa,ga){var ha=fa.concat(this.getSyndicatedCustomAudiences());this.setCustomAudiences(ha,ga);},setSyndicatedCustomAudiences:function(fa){var ga=fa.concat(this.getNonSyndicatedCustomAudiences());this.setCustomAudiences(ga);},setSyndicatedCustomAudiencesLibrary:ba('syndicatedCustomAudiencesLibrary'),setUserAdclusters:ba('userAdclusters'),setConjunctiveUserAdclusters:ba('conjunctiveUserAdclusters'),setConnections:ba('connections'),setExcludedConnections:ba('excludedConnections'),setFriendsOfConnections:function(fa,ga){fa=fa.filter(function(ha){return !!ha.name&&!!ha.id;});aa({friendsOfConnections:fa},ga);},setInterestedIn:ba('interestedIn'),setRelationshipStatuses:ba('relationshipStatuses'),setFamilyStatuses:ba('familyStatuses'),setIndustries:ba('industries'),setLifeEvents:ba('lifeEvents'),setMarkets:ba('markets'),setPolitics:ba('politics'),setIncome:ba('income'),setNetWorth:ba('netWorth'),setHomeType:ba('homeType'),setHomeOwnership:ba('homeOwnership'),setHomeValue:ba('homeValue'),setEthnicAffinity:ba('ethnicAffinity'),setGeneration:ba('generation'),setHouseholdComposition:ba('householdComposition'),setMoms:ba('moms'),setOfficeType:ba('officeType'),setLocales:ba('locales'),setMobileOperatingSystem:ba('mobileOperatingSystem'),setMobileDevices:ba('mobileDevices'),setWifiOnly:ba('wifiOnly'),setMinIosVersion:ba('minIosVersion'),setMinAndroidVersion:ba('minAndroidVersion'),setMobileMinVersion:function(fa,ga){if(fa===v.IOS){this.setMinIosVersion(ga);}else if(fa===v.ANDROID)this.setMinAndroidVersion(ga);},setWirelessCarrier:function(fa,ga){var ha=o.carriers;if(fa&&fa.length&&fa[0]===ha.WIFI){this.setWifiOnly(true,ga);}else this.setWifiOnly(false,ga);},setUserDevice:function(fa,ga){this.setMobileDevices(fa,ga);},setUserOs:function(fa,ga){fa=fa||[];aa({userOs:fa});fa.forEach(function(ha){var ia=null;if(ha.indexOf('_ver_')>=0){var ja=ha.split('_ver_')[1];ia=ja.split('_')[0];}var ka=function(la,ma){la=la.toLowerCase();return la.indexOf(ma.toLowerCase())>=0;};if(ka(ha,v.IOS)){this.setMobileOperatingSystem(v.IOS,ga);this.setMinIosVersion(ia,ga);}else if(ka(ha,v.ANDROID)){this.setMobileOperatingSystem(v.ANDROID,ga);this.setMinAndroidVersion(ia,ga);}else this.setMobileOperatingSystem(null,ga);},this);},setEducationStatus:ba('educationStatus'),setMinGradYear:ba('minGradYear'),setMaxGradYear:ba('maxGradYear'),setTargetAllGraduationYears:ba('targetAllGraduationYears'),setEducationSchools:ba('educationSchools'),setEducationMajors:ba('educationMajors'),setCollegeYears:function(fa,ga){fa.sort(function(ha,ia){return ha-ia;});if(fa&&fa.length){this.setMinGradYear(fa[0],ga);this.setMaxGradYear(fa[fa.length-1],ga);this.setTargetAllGraduationYears(false,ga);}else this.setTargetAllGraduationYears(true,ga);},setEducationStatuses:ba('educationStatuses'),setWorkEmployers:ba('workEmployers'),setWorkPositions:ba('workPositions'),setBehaviors:ba('behaviors'),setExcludedUserAdclusters:ba('excludedUserAdclusters'),setPageTypes:ba('pageTypes'),setFlexibleSpec:ba('flexibleSpec'),setExclusions:ba('exclusions'),getApiSpec:function(){var fa=this._getApiSpecForFields(g.TARGETING_FIELDS);if(fa.custom_audiences)fa.custom_audiences=fa.custom_audiences.map(function(ga){return {id:ga.id,name:ga.name};});if(fa.excluded_custom_audiences)fa.excluded_custom_audiences=fa.excluded_custom_audiences.map(function(ga){return {id:ga.id,name:ga.name};});delete fa.countries;delete fa.cities;delete fa.zips;delete fa.regions;delete fa.radius;delete fa.keywords;fa.geo_locations=this._transformNewGeoAPISpec(fa.geo_locations||{},false);fa.excluded_geo_locations=this._transformNewGeoAPISpec(fa.excluded_geo_locations||{},true);return t(fa);},getGeoLocationsApiSpecMetaData:function(){var fa=this._getApiSpecForFields(g.TARGETING_FIELDS);return fa.geo_locations||{};},_transformNewGeoAPISpec:function(fa,ga){var ha={countries:fa.countries||[],cities:(fa.cities||[]).map(function(ja){return {key:ja.key,radius:ja.radius,distance_unit:ja.distance_unit};}),regions:(fa.regions||[]).map(function(ja){return {key:ja.key};}),zips:(fa.zips||[]).map(function(ja){return {key:ja.key};}),custom_locations:(fa.custom_locations||[]).map(function(ja){return {address_string:ja.key,distance_unit:ja.distance_unit,radius:ja.radius,latitude:ja.latitude,longitude:ja.longitude};}),geo_markets:(fa.geo_markets||[]).map(function(ja){return {key:ja.key};})};if(fa.customLocations)ha.custom_locations=fa.customLocations.map(function(ja){return {address_string:ja.addressString,distance_unit:ja.distanceUnit,latitude:ja.latitude,longitude:ja.longitude,radius:ja.radius};});var ia=q(ha)===0;if(!ga&&!ia)ha.location_types=fa.location_types||[r.TYPE_HOME,r.TYPE_RECENT];return t(ha);},_underscoreToCamelCaseKeys:function(fa){var ga={};Object.keys(fa).forEach(function(ha){var ia=n.camelCaseKey(ha);ga[ia]=fa[ha];});return ga;},getInterfaceSpecFromApiSpec:function(fa){var ga=n.clone(fa);if(!ga.hasOwnProperty('relationship_statuses'))ga.relationship_statuses=null;w=true;this._setApiSpecForFields(g.TARGETING_FIELDS,ga);w=false;if(x.geoLocations&&x.geoLocations.custom_locations){var ha=x.geoLocations.custom_locations.map(this._underscoreToCamelCaseKeys);x.geoLocations.customLocations=ha;delete x.geoLocations.custom_locations;}var ia=x;x={};return ia;},setApiSpec:function(fa,ga){var ha=this.getInterfaceSpecFromApiSpec(fa),ia=ga?h.TARGETING_INIT:h.TARGETING_CHANGE;k.handleUpdateFromUnknownSource(p({actionType:ia},ha));}});ea=s(ea,{getLoggedCountries:ea.getCountries,getLoggedCities:ea.getCities,getLoggedRegions:ea.getRegions,getLoggedZips:ea.getZips,getLoggedRadiusIfValid:ea.getRadiusIfValid,getLoggedLocTargeting:ea.getLocTargeting,getLoggedGeoLocations:ea.getGeoLocations,getLoggedExcludedGeoLocations:ea.getExcludedGeoLocations,getLoggedAgeMinLimit:ea.getAgeMinLimit,getLoggedAgeMin:ea.getAgeMin,getLoggedAgeMax:ea.getAgeMax,getLoggedSex:ea.getSex,getLoggedKeywords:ea.getKeywords,getLoggedUserAdclusters:ea.getUserAdclusters,getLoggedConjunctiveAdclusters:ea.getConjunctiveUserAdclusters,getLoggedCustomAudiences:ea.getCustomAudiences,getLoggedSyndicatedCustomAudiencesLibrary:ea.getSyndicatedCustomAudiencesLibrary,getLoggedExcludedCustomAudiences:ea.getExcludedCustomAudiences,getLoggedConnections:ea.getConnections,getLoggedExcludedConnections:ea.getExcludedConnections,getLoggedFriendsOfConnections:ea.getFriendsOfConnections,getLoggedInterestedIn:ea.getInterestedIn,getLoggedLocales:ea.getLocales,getLoggedMobileOperatingSystem:ea.getMobileOperatingSystem,getLoggedMobileDevices:ea.getMobileDevices,getLoggedWifiOnly:ea.getWifiOnly,getLoggedMinIosVersion:ea.getMinIosVersion,getLoggedMinAndroidVersion:ea.getMinAndroidVersion,getLoggedEducationSchools:ea.getEducationSchools,getLoggedEducationMajors:ea.getEducationMajors,getLoggedMinGradYear:ea.getMinGradYear,getLoggedMaxGradYear:ea.getMaxGradYear,getLoggedTargetAllGraduationYears:ea.getTargetAllGraduationYears,getLoggedWorkEmployers:ea.getWorkEmployers,getLoggedExcludedUserAdclusters:ea.getExcludedUserAdclusters,getLoggedPageTypes:ea.getPageTypes,setLoggedCountries:da(ea.setCountries),setLoggedCities:da(ea.setCities),setLoggedRegions:da(ea.setRegions),setLoggedZips:da(ea.setZips),setLoggedRadiusIfValid:da(ea.setRadiusIfValid),setLoggedLocTargeting:da(ea.setLocTargeting),setLoggedGeoLocations:da(ea.setGeoLocations),setLoggedExcludedGeoLocations:da(ea.setExcludedGeoLocations),setLoggedAgeMinLimit:da(ea.setAgeMinLimit),setLoggedAgeMin:da(ea.setAgeMin),setLoggedAgeMax:da(ea.setAgeMax),setLoggedSex:da(ea.setSex),setLoggedKeywords:da(ea.setKeywords),setLoggedUserAdclusters:da(ea.setUserAdclusters),setLoggedConjunctiveUserAdclusters:da(ea.setConjunctiveUserAdclusters),setLoggedCustomAudiences:da(ea.setCustomAudiences),setLoggedSyndicatedCustomAudiencesLibrary:da(ea.setSyndicatedCustomAudiencesLibrary),setLoggedExcludedCustomAudiences:da(ea.setExcludedCustomAudiences),setLoggedConnections:da(ea.setConnections),setLoggedExcludedConnections:da(ea.setExcludedConnections),setLoggedFriendsOfConnections:da(ea.setFriendsOfConnections),setLoggedInterestedIn:da(ea.setInterestedIn),setLoggedLocales:da(ea.setLocales),setLoggedMobileOperatingSystem:da(ea.setMobileOperatingSystem),setLoggedMobileDevices:da(ea.setMobileDevices),setLoggedWifiOnly:da(ea.setWifiOnly),setLoggedMinIosVersion:da(ea.setMinIosVersion),setLoggedMinAndroidVersion:da(ea.setMinAndroidVersion),setLoggedEducationSchools:da(ea.setEducationSchools),setLoggedEducationMajors:da(ea.setEducationMajors),setLoggedMinGradYear:da(ea.setMinGradYear),setLoggedMaxGradYear:da(ea.setMaxGradYear),setLoggedTargetAllGraduationYears:da(ea.setTargetAllGraduationYears),setLoggedWorkEmployers:da(ea.setWorkEmployers),setLoggedExcludedUserAdclusters:da(ea.setExcludedUserAdclusters),setLoggedPageTypes:da(ea.setPageTypes)});ea.initSubscriptions();e.exports=ea;},null);
  __d("AdsTargetingSectionsLabels",["fbt"],function(a,b,c,d,e,f,g){e.exports={interestedIn:"Interested In",relationshipStatuses:"Relationship Status",educationStatuses:"Education Level",educationMajors:"Fields of Study",educationSchools:"Schools",collegeYears:"Undergrad Years",workEmployers:"Employers",workPositions:"Job Titles",officeType:"Office Type",familyStatuses:"All Parents",parents:"Parents",politics:"Politics (US)",industries:"Industries",lifeEvents:"Life Events",markets:"Market Segments",education:"Education",work:"Work",relationship:"Relationship",financial:"Financial",income:"Income",netWorth:"Net Worth",home:"Home",homeType:"Home Type",homeOwnership:"Home Ownership",homeValue:"Home Value",ethnicAffinity:"Ethnic Affinity",generation:"Generation",householdComposition:"Household Composition",moms:"Moms",userAdclusters:"More Categories",interests:"Interests",behaviors:"Behaviors"};},null);
  __d("AdsCFAudienceEstimateValidator",["AdsCountriesConfig","AdsUtils","AdsFetchedTargetingData","AdsTargetingModelAdapter","AdsTargetingSectionsLabels","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=['behaviors','ethnicAffinity','generation','homeOwnership','homeType','homeValue','householdComposition','income','industries','lifeEvents','moms','netWorth','officeType','politics','userAdclusters'];function n(y,z){return {isValid:!!y,errorMessage:z||''};}function o(y){return {geoLocations:p(y),countrySpecificTargeting:q(y)};}function p(y){if(!y){var z=false;}else if(y.custom_audiences||(y.connections&&y.connections.length)){z=true;}else{var aa=y.geo_locations||{};aa={countries:aa.countries||[],regions:aa.regions||[],cities:aa.cities||[],zips:aa.zips||[],geoMarkets:aa.geo_markets||[],customLocations:aa.custom_locations||[]};z=aa.countries.length||aa.regions.length||aa.cities.length||aa.zips.length||aa.geoMarkets.length||aa.customLocations.some(function(ba){return (((!!ba.latitude||!!ba.longitude)&&ba.radius)||(ba.address_string));});}return n(z,!!z?'':r());}function q(y){var z=u(y),aa=t(),ba=Object.keys(aa).length>1,ca=true,da;Object.keys(z).forEach(function(ea){if(ca)if(aa[ea]===(void 0)||ba){ca=false;da=s(ea,z[ea]);}});return n(ca,da);}function r(){return "Please pick at least one country to target.";}function s(y,z){var aa=g.countries[y],ba=l._("Some of your targeting is for {localizedCountryName}-based audiences only. Remove the following audience segments to reach people in other locations:",[l.param("localizedCountryName",aa)]),ca=Object.keys(z).map(function(da){return (k[h.camelCaseKey(da)]+': '+z[da].map(function(ea){return ea.name;}).join(', '));});return {content:ba,children:ca};}function t(){var y=j.getGeoLocationsApiSpecMetaData(),z={};(y.countries||[]).forEach(function(aa){w(aa)&&(z[aa]=null);});(y.cities||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});(y.regions||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});(y.zips||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});return z;}function u(y){var z=i.getInstance(),aa=z.getAllFromTargetingTypes(m),ba=x(y,m),ca={};Object.keys(ba).forEach(function(da){var ea=ba[da];ea.forEach(function(fa){var ga=aa[da]&&aa[da].fetchByID(fa);if(!ga)return;v(ca,ga,da);});});return ca;}function v(y,z,aa){var ba=z.country;if(!w(ba))return;!y[ba]&&(y[ba]={});!y[ba][aa]&&(y[ba][aa]=[]);y[ba][aa].push(z);}function w(y){return !!(y&&typeof(y)==='string'&&y.length);}function x(y,z){var aa={};z.forEach(function(ba){var ca=h.underscoreKey(ba),da={};(y[ca]||[]).forEach(function(ea){ea.id&&(da[ea.id]=null);});aa[ba]=Object.keys(da);});return aa;}e.exports={validateTargetingSpec:o};},null);
  __d("AdsCFAudienceEstimateStore",["AdsActionTypes","AdsAPIObjectives","AdsBaseStore","AdsCFAccountStore","AdsCFActionTypes","AdsCFAudienceEstimateUtils","AdsCFAudienceEstimateValidator","AdsCFConstants","AdsCFCreativeStore","AdsCFObjectiveStore","AdsCFTargetingStore","AdsDispatcher","AdsTargetingModelAdapter","ImmutableObject","isL2TargetingSupported","merge","whitelistObjectKeys"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';var x,y={cpa_max:1000,cpa_median:700,cpa_min:400,cpc_max:90,cpc_median:70,cpc_min:50,cpm_max:200,cpm_median:160,cpm_min:120},z,aa,ba=false;function ca(){x={};x[n.CanonicalID]={};z={};z[n.CanonicalID]={};aa={};aa[n.CanonicalID]={};}ca();for(var da in i)if(i.hasOwnProperty(da))fa[da]=i[da];var ea=i===null?null:i.prototype;fa.prototype=Object.create(ea);fa.prototype.constructor=fa;fa.__superConstructor__=i;function fa(){if(i!==null)i.apply(this,arguments);}fa.prototype.getStoreName=function(){return 'AdsCFAudienceEstimateStore';};fa.prototype.getBidEstimateState=function(na){return new t(x[na]||{});};fa.prototype.getTargetingSentencesState=function(na){return new t(aa[na]||{});};fa.prototype.getTargetingEstimateState=function(na){return new t(z[na]||{});};fa.prototype.getReachApiSpec=function(){return ia();};fa.prototype.onDispatchToken=function(na){var oa=na.action;switch(oa.actionType){case k.AUDIENCE_ESTIMATE_CHANGE:la(oa);ba=false;ga.inform('change');break;case k.TARGETING_SENTENCE_CHANGE:ka(oa);ga.inform('change');break;case k.BID_ESTIMATE_CHANGE:ma(oa);ga.inform('change');break;case k.BID_OPTION_CHANGE:case k.RESTORE_PRICING_DEFAULTS:ja(ia());ga.inform('change');break;case g.PAGE_TRANSITION:case k.RESET_CF_STORES:ca();break;case k.CREATIVE_CHANGE:if(!oa.mobileStore)break;case k.CREATIVE_PLACEMENTS_CHANGE:case k.OBJECTIVE_CHANGE:case k.DESTINATION_CHANGE:case k.TARGETING_CHANGE:case k.TARGETING_INIT:case k.MOBILE_OPTIMIZED_URL_CHECK_SUCCESS:case k.CAMPAIGN_SELECT:case k.CANCEL_EDITED_CAMPAIGN:if(oa.actionType===k.CAMPAIGN_SELECT&&!u())break;r.waitFor([q.dispatchToken,j.dispatchToken,o.dispatchToken]);var pa=ia(),qa=ha(pa.targeting_spec);if(qa.length){z[n.CanonicalID]=v(z[n.CanonicalID],{users:NaN,estimateErrors:qa,estimateReady:true});ba=false;}else ja(pa);var ra=p.getAPIObjective();if(ra!==h.LOCAL_AWARENESS||!qa.length)l.refetchTargetingSentences(pa);ga.inform('change');break;case k.CHANGE_ACCOUNT_CURRENCY:r.waitFor([j.dispatchToken]);ja(ia());break;case k.RESET_DESTINATION:ca();ga.inform('change');break;}};fa.prototype.isEstimateLoading=function(){return ba;};var ga=new fa();a.debug_AdsCFAudienceEstimateStore=ga;function ha(na){var oa=m.validateTargetingSpec(na),pa=[];Object.keys(oa).forEach(function(qa){var ra=oa[qa];if(!ra.isValid)pa.push(ra.errorMessage);});return pa;}function ia(){return {targeting_spec:s.getApiSpec()};}function ja(na){ba=true;l.refetchEstimates(na);}function ka(na){aa[na.targetingID]=v(aa[na.targetingID],w(na,{sentences:null}));}function la(na){z[na.targetingID]=v(z[na.targetingID],w(na,{users:null,minReach:null,maxReach:null,estimateErrors:null,estimateReady:null}));}function ma(na){if(!na.bidEstimateID)throw new Error('Pricing action received with no associated ID.');var oa=Object.keys(y);oa.forEach(function(pa){if(!na.estimates[pa])na.estimates[pa]=y[pa];});x[na.bidEstimateID]=v(x[na.bidEstimateID],na.estimates);}e.exports=ga;},null);
  __d("AdsCFBidUtils",["AdsAPIBidType","AdsAPIObjectives","AdsBidOptions","AdsCFConstants","adsGKCheck","fbt","isL2TargetingSupported"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){'use strict';var n={};n[h.EVENT_RESPONSES]={bidTypeDescription:"We'll serve your ads to people who are more likely to be interested in your event.",bidTypeLabel:k('ads_creation_new_bid_types')?"Event Responses":"Optimize for event responses",bidString:"Your bid will be optimized to get more responses to your event."};n[h.OFFER_CLAIMS]={bidTypeDescription:"We'll serve your ads to people who are more likely to claim the offer.",bidTypeLabel:k('ads_creation_new_bid_types')?"Offer Claims":"Optimize for offer claims",bidString:"Your bid will be optimized to get more offer claims."};n[h.PAGE_LIKES]={bidTypeDescription:"We'll serve your ads to people who are more likely to like your Facebook Page.",bidTypeLabel:k('ads_creation_new_bid_types')?"Page Likes":"Optimize for Page likes",bidString:"Your bid will be optimized to get more Page likes."};n[h.POST_ENGAGEMENT]={bidTypeDescription:"We'll serve your ads to people who are more likely to engage with your post.",bidTypeLabel:k('ads_creation_new_bid_types')?"Post Engagement":"Optimize for Page post engagement",bidString:"Your bid will be optimized to get more engagement on your Page post."};n[h.CANVAS_APP_ENGAGEMENT]={bidTypeDescription:"We'll serve your ads to people who are more likely to use your app.",bidTypeLabel:k('ads_creation_new_bid_types')?"Desktop app engagement":"Optimize for app engagement",bidString:"Your bid will be optimized to increase engagement on your app."};n[h.CANVAS_APP_INSTALLS]={bidTypeDescription:"We'll serve your ads to people who are more likely to install your app.",bidTypeLabel:k('ads_creation_new_bid_types')?"Desktop app Installs":"Optimize for desktop app installs",bidString:"Your bid will be optimized to get more desktop app installs."};n[h.MOBILE_APP_ENGAGEMENT]={bidTypeDescription:"We'll serve your ads to people who are more likely to use your app.",bidTypeLabel:k('ads_creation_new_bid_types')?"Mobile App Engagement":"Optimize for app engagement",bidString:"Your bid will be optimized to increase engagement on your app."};n[h.MOBILE_APP_INSTALLS]={bidTypeDescription:"We'll serve your ads to people who are more likely to install your app.",bidTypeLabel:k('ads_creation_new_bid_types')?"Mobile App Installs":"Optimize for mobile app installs",bidString:"Your bid will be optimized to get more mobile app installs."};n[h.WEBSITE_CLICKS]={bidTypeDescription:"We'll serve your ads to people who are more likely to click from your ads to your website.",bidTypeLabel:k('ads_creation_new_bid_types')?"Clicks to Website":"Optimize for website clicks",bidString:"Your bid will be optimized to get more clicks to your website."};n[h.VIDEO_VIEWS]={bidTypeDescription:"We'll serve your ads to people who are more likely to view your video.",bidTypeLabel:k('ads_creation_new_bid_types')?"Video Views":"Optimize for video views",bidString:"Your bid will be optimized to get more video views."};n[h.WEBSITE_CONVERSIONS]={bidTypeDescription:"We'll serve your ads to people who are more likely to complete an action on your website.",bidTypeLabel:k('ads_creation_new_bid_types')?"Website Conversions":"Optimize for website conversions",bidString:"Your bid will be optimized to get more conversions for your website."};var o={getBidTypeLabel:function(p,q){switch(p){case i.OCPM_ACTIONS:var r=n[q];return r&&r.bidTypeLabel;case i.CLICKS:return (k('ads_creation_new_bid_types')?"Clicks":"Optimize for clicks");case i.IMPRESSIONS:return (k('ads_creation_new_bid_types')?"Impressions":"Optimize for impressions");case i.REACH:return (k('ads_creation_new_bid_types')?"Daily unique reach":"Optimize for reach");}},getBidTypeDescription:function(p,q){switch(p){case i.OCPM_ACTIONS:var r=n[q];return r&&r.bidTypeDescription;case i.CLICKS:return "We'll serve your ads to people who might click on your ad (CPC).";case i.REACH:return "We'll serve your ad to people up to once per day.";case i.IMPRESSIONS:return "We'll serve your ads to people as many times as possible (CPM).";}},getValidBidOptionsByObjective:function(p,q,r,s,t){var u=[i.CLICKS];switch(p){case h.WEBSITE_CLICKS:if(k('ads_creation_new_bid_types'))u.push(i.REACH);u.push(i.IMPRESSIONS);u.unshift(i.OCPM_ACTIONS);break;case h.WEBSITE_CONVERSIONS:if(s)u.unshift(i.OCPM_ACTIONS);if(k('ads_creation_new_bid_types'))u.push(i.REACH);u.push(i.IMPRESSIONS);break;case h.MOBILE_APP_INSTALLS:if(!q&&!r)u.unshift(i.OCPM_ACTIONS);break;case h.MOBILE_APP_ENGAGEMENT:break;case h.CANVAS_APP_INSTALLS:case h.CANVAS_APP_ENGAGEMENT:u.unshift(i.OCPM_ACTIONS);break;case h.POST_ENGAGEMENT:u=[i.OCPM_ACTIONS];if(k('ads_creation_new_bid_types'))u.push(i.REACH);u.push(i.IMPRESSIONS);if(!t)u.push(i.CLICKS);break;case h.VIDEO_VIEWS:u=[i.OCPM_ACTIONS];if(k('ads_creation_new_bid_types'))u.push(i.REACH);break;case h.LOCAL_AWARENESS:u=[i.REACH];break;case h.EVENT_RESPONSES:if(k('ads_creation_new_bid_types')){u=[i.OCPM_ACTIONS,i.REACH,i.CLICKS,i.IMPRESSIONS];}else u=[i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];break;default:u=[i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];}return u;},getValidBidOptionsByObjectiveAndValidBidTypes:function(p,q,r,s){var t=[i.CLICKS];switch(p){case h.WEBSITE_CLICKS:if(k('ads_creation_new_bid_types'))t.push(i.REACH);t.push(i.IMPRESSIONS);t.unshift(i.OCPM_ACTIONS);break;case h.WEBSITE_CONVERSIONS:if(r||s===i.OCPM_ACTIONS)t.unshift(i.OCPM_ACTIONS);if(k('ads_creation_new_bid_types'))t.push(i.REACH);t.push(i.IMPRESSIONS);break;case h.MOBILE_APP_INSTALLS:if(q.indexOf(g.CPA)>=0)t.unshift(i.OCPM_ACTIONS);break;case h.MOBILE_APP_ENGAGEMENT:break;case h.CANVAS_APP_INSTALLS:case h.CANVAS_APP_ENGAGEMENT:t.unshift(i.OCPM_ACTIONS);break;case h.POST_ENGAGEMENT:t=[i.OCPM_ACTIONS];if(k('ads_creation_new_bid_types'))t.push(i.REACH);t.push(i.IMPRESSIONS);if(q.indexOf(g.CPC)>=0)t.push(i.CLICKS);break;case h.VIDEO_VIEWS:t=[i.OCPM_ACTIONS];if(k('ads_creation_new_bid_types'))t.push(i.REACH);break;case h.LOCAL_AWARENESS:t=[i.REACH];break;case h.EVENT_RESPONSES:if(k('ads_creation_new_bid_types')){t=[i.OCPM_ACTIONS,i.REACH,i.CLICKS,i.IMPRESSIONS];}else t=[i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];break;default:t=[i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];}return t;},getBidString:function(p){var q=n[p];return q&&q.bidString;},getBidSentence:function(p,q,r){var s,t="You'll be charged each time your ad is served.";switch(q.bidOption){case i.OCPM_ACTIONS:if(r){t=null;switch(p){case h.MOBILE_APP_INSTALLS:s="You will be charged every time someone installs your app due to this ad.";break;case h.WEBSITE_CLICKS:s="You will be charged every time someone clicks the link to your website in this ad.";break;}}else s=o.getBidString(p);break;case i.CLICKS:if(o.isAutoBidEnabled(q,p)&&!m()){s="Your bid will be optimized to get more clicks on your ad.";}else{t=null;s="You will be charged every time someone clicks on your ad.";}break;case i.IMPRESSIONS:t=null;s="You'll be charged each time your ad is served.";break;case i.REACH:if(k('ads_creation_new_bid_types')){s="Set the amount reaching people is worth to you.";}else s="Your bid will be optimized to get more people to see your ad.";}if(t)return l._("{sentence1} {sentence2}",[l.param("sentence1",s),l.param("sentence2",t)]);return s;},showBidPriceOptions:function(p,q,r){var s;switch(q){case i.OCPM_ACTIONS:if(k('ads_creation_new_bid_types')||p===h.WEBSITE_CONVERSIONS||r){s=true;}else s=false;break;case i.CLICKS:s=true;break;case i.IMPRESSIONS:s=false;break;case i.REACH:s=false;break;}return s;},showBidPriceInput:function(p,q,r,s){if(r)return false;switch(q){case i.OCPM_ACTIONS:if(p===h.WEBSITE_CONVERSIONS||k('ads_creation_new_bid_types')||s)return true;break;case i.IMPRESSIONS:case i.CLICKS:return true;case i.REACH:if(p===h.LOCAL_AWARENESS)return false;return true;}return false;},getMinBid:function(p,q){var r;switch(q){case i.OCPM_ACTIONS:r=p.cpa_min;break;case i.CLICKS:r=p.cpc_min;break;case i.IMPRESSIONS:case i.REACH:r=p.cpm_min;break;}return r||0;},getBidAmount:function(p,q,r){var s;switch(p.bidOption){case i.OCPM_ACTIONS:if(r){s=p.cpaPrice;}else if(q===h.WEBSITE_CONVERSIONS||k('ads_creation_new_bid_types'))s=p.ocpmActionPrice;break;case i.CLICKS:s=p.cpcPrice;break;case i.IMPRESSIONS:s=p.cpmPrice;break;case i.REACH:s=p.ocpmReachPrice;break;}return s||0;},isAutoBidEnabled:function(p,q){var r;switch(p.bidOption){case i.OCPM_ACTIONS:r=p.actionAutobidEnabled;break;case i.REACH:r=q===h.LOCAL_AWARENESS;break;case i.CLICKS:r=p.clickAutobidEnabled;break;}return r||false;},getBiddingBehaviorLogging:function(p,q,r,s){var t=b('AdsAPIBidType'),u=!o.isAutoBidEnabled(p,s),v,w,x;switch(r){case t.CPC:v=q.cpc_min;w=q.cpc_max;x=q.cpc_median;break;case t.CPM:v=q.cpm_min;w=q.cpm_max;x=q.cpm_median;break;case t.CPA:v=q.cpa_min;w=q.cpa_max;x=q.cpa_median;break;}return {manualBidEnabled:u,bid_min:v,bid_med:x,bid_max:w};},isL2Pricing:function(p,q,r){return m()&&(p.isNewCampaign||p.pricing||q===j.CreateMode.EDIT_EXISTING_CAMPAIGN&&r===j.ShowMode.PRICING);}};e.exports=o;},null);
  __d("AdsPixelConstants",["AdsOffsiteConversionConstants","Link.react","React","fbt","ix"],function(a,b,c,d,e,f,g,h,i,j,k){var l={UNVERIFIED:g.statuses.UNVERIFIED,ACTIVE:g.statuses.ACTIVE,INACTIVE:g.statuses.INACTIVE,DELETED:g.statuses.DELETED},m={};m[l.INACTIVE]={statusUI:{iconImage:k('images/ads/conversions/pixel/status_inactive.png'),text:"Inactive",desc:"We haven't received any events from this pixel in the last 24 hours."}};m[l.ACTIVE]={statusUI:{iconImage:k('images/ads/conversions/pixel/status_active.png'),text:"Active",desc:"We have received events from this pixel in the last 24 hours."}};m[l.UNVERIFIED]={statusUI:{iconImage:k('images/ads/conversions/pixel/status_unverified.png'),text:"Unverified",desc:"We haven't received any events from this pixel. Make sure the pixel code is properly installed or configured on your website."}};m[l.DELETED]={statusUI:{iconImage:k('images/ads/conversions/pixel/status_unverified.png'),text:"Deleted"}};var n=[j._("Copy and paste the following code between {=\u003Chead>} and {=\u003C\/head>} on the page of your website you want to track actions. For example, to track registrations, place the code on your 'registration completed' web page.",[j.param("=<head>",'<head>'),j.param("=</head>",'</head>')]),j._("To include a monetary value for each conversion, edit the code to assign a conversion value using the 'value' and 'currency' fields. You'll also need to modify the Javascript code and image URL within {noscript}. {Learn more}.",[j.param("noscript",'<noscript>'),j.param("Learn more",i.createElement(h,{href:"https://www.facebook.com/help/www/464828030234857",target:"_blank"},"Learn more"))]),"To verify that the pixel is working correctly, test it by navigating to the web page you put the pixel on. If it's working, the pixel will send that information back to Facebook.","Come back to Facebook to start using your website conversion-tracking pixel in your campaigns."];e.exports={categoryLabels:{checkout:"Checkouts",registration:"Registrations",lead:"Leads",key_page_view:"Key Page Views",add_to_cart:"Adds to Cart",other:"Other Website Conversions"},statuses:l,pixelStatusToUI:m,pixelVerificationSteps:n};},null);
  __d("AdsConversionPixelSnippetViewMode",["keyMirror"],function(a,b,c,d,e,f,g){"use strict";var h=g({NONE:null,VIEW_CODE:null,EMAIL_CODE:null});e.exports=h;},null);
  __d("XAdsConversionPixelInlineAcceptingTOSControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/manage\/convtrack\/inline_accept_tos\/",{adaccount_id:{type:"Int",required:true}});},null);
  __d("XAdsConversionPixelInstallEmailControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/conversion_pixel\/send_email\/",{});},null);
  __d("AdsConversionPixelUtils",["AdsOffsiteConversionConstants","AdsPixelConstants","AdsConversionPixelSnippetViewMode","AsyncRequest","CIWebmailValidator","GraphAPI","Promise","XAdsConversionPixelInlineAcceptingTOSControllerURIBuilder","XAdsConversionPixelInstallEmailControllerURIBuilder","fbt","getObjectValues","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=g.statusOrdering,t={getPixelDetails:function(u,v){if(u)for(var w=0;w<v.length;++w)if(v[w].id===u)return v[w];},labelForPixel:function(u){if(u.status===h.statuses.DELETED)return {labelName:u.name,labelStatus:"Delete"};var v;if(u.tag)v=h.categoryLabels[u.tag]||u.tag;var w='';switch(u.status){case h.statuses.ACTIVE:w="Active";break;case h.statuses.INACTIVE:w="Inactive";break;case h.statuses.UNVERIFIED:w="Unverified";break;default:break;}return {labelName:u.name,labelStatus:w,labelTag:v};},canPixelSnippetSharerContinue:function(u,v){switch(u){case i.VIEW_CODE:return true;case i.EMAIL_CODE:if(v.length===0)return false;return v.reduce(function(w,x){return w&&k.isValidEmail(x);},true);default:return false;}},acceptTOS:function(u,v,w){var x=new n().setInt('adaccount_id',u).getURI();new j().setURI(x).setHandler(v).setErrorHandler(w).send();},createPixel:function(u,v,w,x,y){var z=y&&y.onTOSAccepted,aa=y&&y.onTOSError,ba=y&&y.onPixelCreated,ca=y&&y.onPixelCreationError,da=new m(function(ea,fa){if(x){this.acceptTOS(w,ea,fa);}else ea();}.bind(this));da.done(function(){z&&z();l('2.2').account(w).edge('offsitepixels').post({name:u,tag:v}).then(function(ea){return ba(ea.id);},ca);},aa);},pixelOrdering:function(u,v){if(u.status!==v.status)return (s[u.status]-s[v.status]);return u.name.localeCompare(v.name);},sendConversionPixelCodeViaEmail:function(u,v,w,x,y,z){var aa=new o().getURI(),ba=new j(aa).setMethod('POST').setData({recipients:w,snippet_text:v,personal_message:x,email_source:u});if(y)ba.setHandler(y);if(z)ba.setErrorHandler(z);ba.send();}};e.exports=t;},null);
  __d("AdsConversionTrackingUtils",["AdsAPIObjectives","AdsCFApplicationStore","ApiCreativeTypes","adsGKCheck","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=b('AdCreativeType').AD_CREATIVE_TYPE,l={isSupportedInCreative:function(m){return (m===i.PAGE_POSTS_V2||m===i.STANDARD||m===k.FEED_URL||m===k.NEKO_LPP);},isSupportedInObjective:function(m){return ((m===g.WEBSITE_CONVERSIONS&&!h.isEditMode())||m===g.WEBSITE_CLICKS||m===g.POST_ENGAGEMENT||((m===g.MOBILE_APP_ENGAGEMENT||m===g.MOBILE_APP_INSTALLS||m===g.CANVAS_APP_ENGAGEMENT||m===g.CANVAS_APP_INSTALLS)&&j('neko_tracking_pixel_interfaces')));}};e.exports=l;},null);
  __d("areArraysEqual",[],function(a,b,c,d,e,f){function g(h,i){if(!h||!i||h.length!==i.length)return false;var j={},k=h.length,l=k;while(k--)j[h[k]]=true;while(l--)if(!j[i[l]])return false;return true;}e.exports=g;},null);
  __d("isNonPlatformMobileApp",["AdsAPIObjectives","AdsDestinationTypes","ads-app-platforms"],function(a,b,c,d,e,f,g,h){var i=b('ads-app-platforms').MOBILE_STORE_DESTINATION_TYPE;function j(k,l){return (k===h.APP&&l.mobileStoreDestinationType===i.FB_MOBILE_STORE_ONLY);}j.withMobileInstallsObjective=function(k,l,m){return (j(k,l)&&m===g.MOBILE_APP_INSTALLS);};e.exports=j;},null);
  __d("isUntrackedMobileApp",["AdsAPIObjectives","AdsDestinationTypes"],function(a,b,c,d,e,f,g,h){function i(j,k){return (j===h.APP&&!k.appInstallsTracked);}i.withMobileInstallsObjective=function(j,k,l){return (i(j,k)&&l===g.MOBILE_APP_INSTALLS);};i.withoutMobileInstallsObjective=function(j,k,l){return (i(j,k)&&l!=g.MOBILE_APP_INSTALLS);};e.exports=i;},null);
  __d("shouldEnableCPABidType",["AdsAPIObjectives","ads-app-platforms"],function(a,b,c,d,e,f,g,h){var i=h.OPERATING_SYSTEM_TO_MOBILE_STORE;function j(k,l,m,n){switch(k){case g.MOBILE_APP_INSTALLS:if(n)return true;var o=l&&i[l];return !!(m&&o&&m[o]);case g.CANVAS_APP_INSTALLS:if(n)return true;return !!(m&&m[h.MOBILE_STORE.FB_CANVAS]);}return false;}e.exports=j;},null);
  __d("AdsCFPricingStore",["AdsActionTypes","AdsAPIObjectives","AdsBaseStore","AdsBidOptions","AdsCFAccountStore","AdsCFActionTypes","AdsCFApplicationStore","AdsCFAudienceEstimateStore","AdsCFBidUtils","AdsCFCampaignGroupStore","AdsCFConstants","AdsCFCreativeStore","AdsCFDestinationStore","AdsCFObjectiveStore","AdsCFTargetingStore","AdsConversionPixelUtils","AdsConversionTrackingUtils","AdsDestinationTypes","AdsDispatcher","AdsOffsiteConversionConstants","AdsPayloadSource","ImmutableObject","OcpmAdConfig","PagePostTypes","URIInitDataUtil","areArraysEqual","arrayContains","isL2TargetingSupported","isNonPlatformMobileApp","isUntrackedMobileApp","merge","mergeDeep","shouldEnableCPABidType","whitelistObjectKeys","ads-objectives"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na){'use strict';var oa=b('ads-objectives').KPIObjectives,pa=z.statuses,qa=b('AdsOffsiteConversionConstants').statuses,ra=[g.PAGE_TRANSITION,l.CAMPAIGN_GROUP_SELECT,l.CAMPAIGN_GROUP_SELECT_AND_UPDATE,l.CAMPAIGN_SELECT,l.CANCEL_EDITED_CAMPAIGN,l.CLEAR_AND_START_OVER,l.CREATE_SIMILAR_AD,l.EDIT_CAMPAIGN_BUTTON_CLICK,l.KPI_OBJECTIVE_CHANGE,l.OBJECTIVE_CHANGE,l.RESET_CF_STORES,l.SAVE_EDITED_CAMPAIGN_SUCCESS,l.SELECT_NEW_CAMPAIGN],sa={bidOption:j.OCPM_ACTIONS,actionAutobidEnabled:true,clickAutobidEnabled:true},ta={bidOption:j.CLICKS,actionAutobidEnabled:true,clickAutobidEnabled:true},ua={bidOption:j.OCPM_ACTIONS,actionAutobidEnabled:true,clickAutobidEnabled:false},va={bidOption:j.OCPM_ACTIONS,actionAutobidEnabled:false,clickAutobidEnabled:false},wa={bidOption:j.CLICKS,clickAutobidEnabled:true},xa={bidOption:j.CLICKS,clickAutobidEnabled:false},ya={bidOption:j.REACH},za,ab;function bb(){ab=false;za={};za[q.CanonicalID]={};}bb();function cb(rb,sb){if(!rb.pricingID)throw new Error('Pricing action received with no associated ID.');eb(rb.pricingID,na(rb,sb));}function db(){return ma(t.getAPIObjective(),u.getState(q.CanonicalID).mobileOperatingSystem,s.getDestinationDetails().mobileAppCPAAccess,za[q.CanonicalID].cpaAvailable);}function eb(rb,sb){za[rb]=ka(za[rb],sb);}function fb(){var rb,sb=t.getAPIObjective();if(s.getDestinationType()===x.EXTERNAL_WEBPAGE){rb=sa;}else if(sb===h.LOCAL_AWARENESS){rb=ya;}else rb=sa;return rb;}function gb(){var rb,sb=s.getDestinationDetails(),tb=s.getDestinationType(),ub=t.getAPIObjective();switch(ub){case h.WEBSITE_CONVERSIONS:var vb=v.getPixelDetails(za[q.CanonicalID].conversionPixelID,k.getState().pixels);if(vb&&vb.status!==pa.UNVERIFIED){rb=sa;}else rb=wa;break;case h.WEBSITE_CLICKS:rb=sa;break;case h.CANVAS_APP_INSTALLS:rb=db()?va:sa;break;case h.MOBILE_APP_INSTALLS:if(ja(tb,sb)||ia(tb,sb)){rb=xa;}else rb=db()?va:ua;break;case h.MOBILE_APP_ENGAGEMENT:rb=wa;break;case h.LOCAL_AWARENESS:rb=ya;break;default:rb=sa;break;}return rb;}function hb(){var rb=v.getPixelDetails(za[q.CanonicalID].conversionPixelID,k.getState().pixels||[]);return !!rb&&rb.status!==pa.UNVERIFIED;}function ib(){y.waitFor([k.dispatchToken,s.dispatchToken,t.dispatchToken]);var rb=false,sb=false,tb=false,ub=s.getDestinationType(),vb=s.getDestinationDetails(),wb=t.getAPIObjective();if(ub&&vb&&wb){rb=ja.withMobileInstallsObjective(ub,vb,wb);sb=!!ia.withMobileInstallsObjective(ub,vb,wb);}if(wb===h.POST_ENGAGEMENT){y.waitFor([r.dispatchToken,s.dispatchToken]);var xb=r.getState().storyId,yb=s.getPagePostDetails(xb).type;tb=yb===da.VIDEO;}var zb=o.getValidBidOptionsByObjective(wb,rb,sb,hb(),tb),ac=za[q.CanonicalID].validBidOptions;za[q.CanonicalID].validBidOptions=zb;return ac&&fa(zb,ac);}function jb(){y.waitFor([t.dispatchToken,s.dispatchToken]);var rb=s.getDestinationType(),sb=s.getDestinationDetails(),tb=t.getAPIObjective();if(tb===h.MOBILE_APP_ENGAGEMENT){eb(q.CanonicalID,wa);}else if(ja.withMobileInstallsObjective(rb,sb,tb)||ia.withMobileInstallsObjective(rb,sb,tb)){eb(q.CanonicalID,xa);}else if(ja.withoutMobileInstallsObjective(rb,sb,tb)){eb(q.CanonicalID,sa);}else if(tb===h.MOBILE_APP_INSTALLS)if(db()){eb(q.CanonicalID,va);}else eb(q.CanonicalID,ua);}function kb(rb){var sb=ea.getDefaultConversionPixel(),tb=v.getPixelDetails(sb,rb),ub=null;if(sb&&tb)ub=sb;var vb=t.getKPIObjective();if(vb===oa.WEBSITE_CONVERSIONS){if(!ub&&rb.length>0)ub=rb[0].id;eb(q.CanonicalID,{conversionPixelID:ub});lb(ub);}else if(w.isSupportedInObjective(vb)){eb(q.CanonicalID,{conversionPixelID:ub});}else eb(q.CanonicalID,{conversionPixelID:null});}function lb(rb){if(s.getDestinationType()===x.EXTERNAL_WEBPAGE)if(rb){var sb=v.getPixelDetails(rb,k.getState().pixels);if(sb.status===qa.UNVERIFIED){eb(q.CanonicalID,ta);}else eb(q.CanonicalID,sa);}else{var tb=za[q.CanonicalID].bidOption===j.OCPM_ACTIONS;if(tb)eb(q.CanonicalID,wa);}}function mb(rb){if(w.isSupportedInCreative(rb))return false;eb(q.CanonicalID,{conversionPixelID:null});return true;}for(var nb in i)if(i.hasOwnProperty(nb))pb[nb]=i[nb];var ob=i===null?null:i.prototype;pb.prototype=Object.create(ob);pb.prototype.constructor=pb;pb.__superConstructor__=i;function pb(){if(i!==null)i.apply(this,arguments);}pb.prototype.getStoreName=function(){return 'AdsCFPricingStore';};pb.prototype.deserialize=function(rb){return Object.keys(rb).every(function(sb){var tb=rb[sb];switch(sb){case 'isReadOnly':ab=tb;return true;case 'pricingData':za=la(tb);return true;}return false;});};pb.prototype.getPricingData=function(){return za;};pb.prototype.getState=function(rb){var sb=za[rb]||{};sb=ka(sb);var tb=n.getBidEstimateState(rb);if(sb.bidOption==j.CLICKS&&!sb.clickAutobidEnabled&&!sb.cpcPrice){sb.cpcPrice=tb.cpc_median;}else if(sb.bidOption==j.IMPRESSIONS&&!sb.cpmPrice){sb.cpmPrice=tb.cpm_median;}else if(sb.bidOption==j.OCPM_ACTIONS&&!sb.actionAutobidEnabled){if(sb.isManualBidUsingOCPM){if(!sb.ocpmActionPrice){var ub=!sb.conversionPixelID?ca.actionsMultiplier:ca.offsiteMultiplier,vb=k.getState();sb.ocpmActionPrice=vb.mooDefaultConversionBid*ub;}}else if(!sb.cpaPrice)sb.cpaPrice=tb.cpa_median;}else if(sb.bidOption===j.REACH&&!sb.ocpmReachPrice){var wb=t.getAPIObjective()===h.LOCAL_AWARENESS,xb=k.getState().mooDefaultConversionBid*ca.reachMultiplier;sb.ocpmReachPrice=wb?xb:tb.cpm_median;}return new ba(sb);};pb.prototype.isReadOnly=function(){return ab;};pb.prototype.onDispatchToken=function(rb){var sb=rb.action,tb=k.getState().pixels,ub;if(ab&&!ga(ra,sb.actionType))return;var vb=(rb.payloadsource===aa.VIEW_ACTION),wb=false;switch(sb.actionType){case l.BID_CHANGE:case l.BID_OPTION_CHANGE:case l.BID_PRICE_CHANGE:cb(sb,{clickAutobidEnabled:null,actionAutobidEnabled:null,isManualBidUsingOCPM:null,advancedOptions:null,ocpmActionPrice:null,ocpmReachPrice:null,cpaPrice:null,cpcPrice:null,cpmPrice:null,bidInfo:null,bidOption:null});wb=true;break;case l.CONVERSION_PIXEL_CHANGE:y.waitFor([k.dispatchToken,s.dispatchToken]);cb(sb,{conversionPixelID:null});wb=true;if(!vb)break;if(t.getKPIObjective()===oa.WEBSITE_CONVERSIONS){ib();lb(sb.conversionPixelID);}break;case l.OBJECTIVE_CHANGE:y.waitFor([p.dispatchToken,r.dispatchToken]);ub=p.getSelectedState();if(ub.isNew)ab=false;if(ab)break;var xb=r.getState().creativeType,yb=t.getAPIObjective();if(s.hasDestination()){za[q.CanonicalID]=gb();}else bb();if(vb||yb===h.MOBILE_APP_ENGAGEMENT)jb();ib();wb=true;break;case l.DESTINATION_SELECT:case l.DESTINATION_UPDATE:case l.RESET_DESTINATION:case l.CREATIVE_INIT:case l.CREATIVE_CHANGE:y.waitFor([r.dispatchToken]);xb=r.getState().creativeType;if(mb(xb))wb=true;if(sb.mobileStore&&vb)jb();if(ib())wb=true;break;case l.PAGE_POSTS_LOAD_COMPLETE:if(ib())wb=true;break;case l.DESTINATION_CHANGE:y.waitFor([s.dispatchToken,r.dispatchToken]);xb=r.getState().creativeType;if(mb(xb))wb=true;var zb=!za[q.CanonicalID].hasOwnProperty('bidOption');if(!m.isCreatingSimilar()||zb)za[q.CanonicalID]=fb();jb();if(vb&&tb)kb(tb);ib();wb=true;break;case l.KPI_OBJECTIVE_CHANGE:y.waitFor([p.dispatchToken,s.dispatchToken]);ub=p.getSelectedState();if(ub.isNew)ab=false;if(ab)break;if(s.hasDestination()){za[q.CanonicalID]=gb();ib();}else bb();if(tb)kb(tb);wb=true;break;case l.RESTORE_PRICING_DEFAULTS:var ac=za[q.CanonicalID].conversionPixelID;za[q.CanonicalID]=gb();ib();if(ac)eb(q.CanonicalID,{conversionPixelID:ac});wb=true;break;case g.PAGE_TRANSITION:case l.CLEAR_AND_START_OVER:case l.RESET_CF_STORES:bb();break;case l.TRACKING_PIXEL_CHANGE:eb(q.CanonicalID,{trackingPixelID:sb.trackingPixelID});wb=true;break;case l.CAMPAIGN_SELECT:case l.CANCEL_EDITED_CAMPAIGN:if(!ha())break;if(sb.pricing){eb(q.CanonicalID,sb.pricing);if(!sb.pricing.validBidOptions)za[q.CanonicalID].validBidOptions=o.getValidBidOptionsByObjectiveAndValidBidTypes(t.getAPIObjective(),sb.pricing.validBidTypes,hb(),sb.pricing.bidOption);if(!m.isEditingExistingCampaign())ab=true;}else{if(m.isEditingExistingCampaign())za[q.CanonicalID]=gb();ab=false;ib();}wb=true;break;case l.EDIT_CAMPAIGN_BUTTON_CLICK:case l.SELECT_NEW_CAMPAIGN:case l.CAMPAIGN_GROUP_SELECT:case l.CAMPAIGN_GROUP_SELECT_AND_UPDATE:ab=false;break;case l.CREATE_SIMILAR_AD:ab=ha();break;case l.SAVE_EDITED_CAMPAIGN_SUCCESS:ab=!!sb.pricing;break;}if(wb)qb.inform('change');};pb.prototype.serialize=function(){return {isReadOnly:this.isReadOnly(),pricingData:la(this.getPricingData())};};var qb=new pb();a.debug_AdsCFPricingStore=qb;e.exports=qb;},null);
  __d("DayPartingUtils",["AdsAPIPacingType","Assert","removeFromArray"],function(a,b,c,d,e,f,g,h,i){'use strict';var j={DAYS_IN_WEEK:7,HOURS_IN_DAY:24,mergeDays:function(k){h.isTrue(k.length===7);var l=j.createArray(j.DAYS_IN_WEEK,function(){return 0;}),m=[];while(true){var n=null,o=0;while(o<7){if(l[o]<k[o].length){n=k[o][l[o]];l[o]++;break;}o++;}if(n===null)break;var p={start_minute:n.start_minute,end_minute:n.end_minute,days:[o]};while(o<7){if(l[o]<k[o].length){var q=k[o][l[o]],r=q.start_minute===n.start_minute&&q.end_minute===n.end_minute;if(r){p.days.push(o);l[o]++;}}o++;}m.push(p);}return m;},normalizeDayparts:function(k){if(!k.length)return [];var l=j.createArray(j.DAYS_IN_WEEK,function(){return [];});k.forEach(function(q){q.days.forEach(function(r){l[r].push({start_minute:q.start_minute,end_minute:q.end_minute});});});for(var m=0;m<7;m++)l[m].sort(function(q,r){if(q.start_minute!==r.start_minute){return q.start_minute-r.start_minute;}else return q.end_minute-r.end_minute;});var n=j.createArray(j.DAYS_IN_WEEK,function(){return [];});for(m=0;m<7;m++)if(l[m].length>0){var o=l[m][0];for(var p=1;p<l[m].length;p++)if(l[m][p].start_minute<=o.end_minute){o.end_minute=Math.max(o.end_minute,l[m][p].end_minute);}else{n[m].push(o);o=l[m][p];}n[m].push(o);}return j.mergeDays(n);},createArray:function(k,l){var m=new Array(k);for(var n=0;n<k;n++)m[n]=l();return m;},setDayPartingEnabled:function(k,l){var m=j.setDayParting((k.pacing_type()||[]).slice(),l);k.pacing_type(m);if(!l)k.campaign_schedule([]);k.validate('campaign_schedule');},setNoPacing:function(k,l){i(k,g.NO_PACING);i(k,g.STANDARD);if(l){k.push(g.NO_PACING);}else if(k.length===0)k.push(g.STANDARD);return k;},setDayParting:function(k,l){i(k,g.DAY_PARTING);i(k,g.STANDARD);if(l){k.push(g.DAY_PARTING);}else if(k.length===0)k.push(g.STANDARD);return k;}};e.exports=j;},null);
  __d("AdsCFCampaignStore",["AdsActionTypes","AdsAPICreativeRotationTypes","AdsAPIObjectives","AdsAPIPacingType","AdsBaseStore","AdsCampaignUtils","AdsCFAccountStore","AdsCFApplicationStore","AdsCFActionTypes","AdsCFCampaignGroupStore","AdsCFCampaignUtils","AdsCFConstants","AdsCFDestinationStore","AdsCFObjectiveStore","AdsCFPricingStore","AdsCFTargetingStore","AdsCreationConfig","AdsDateUtils","AdsDispatcher","AdsPayloadSource","DayPartingUtils","ImmutableObject","Promise","invariant","isL2TargetingSupported","merge","whitelistObjectKeys"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';var ha=r.CampaignBudgetModes,ia=r.CampaignRunStatuses,ja=r.CampaignScheduleModes,ka=r.CampaignValidationErrors,la=r.RemoteCallStatus,ma=r.NEW_CAMPAIGN_ID,na=30000,oa,pa,qa,ra;function sa(){qa=ma;ra={};oa={};oa[ma]={budgetMode:ha.DAILY,campaignID:ma,isDraftOnly:false,lifetimeBudgetSpent:0,scheduleMode:ja.CONTINUOUSLY,startDate:l.getDefaultStartDate(),status:ia.ACTIVE,updatedTime:null};pa=fa({},oa);}sa();var ta=1000*60*60*24,ua=1000*60*60;function va(lb){return lb===ma;}function wa(lb,mb){oa[lb]=fa(oa[lb],mb);}function xa(lb){oa[lb]=fa({},pa[lb]);}function ya(lb){pa[lb]=fa({},oa[lb]);}function za(lb){var mb=lb.action,nb=mb.campaignID;da(nb);var ob=lb.payloadsource===z.VIEW_ACTION,pb={},qb=ga(mb,{budgetMode:null,campaignSchedule:null,creativeRotationParameter:null,creativeRotationType:null,dailyBudget:null,endDate:null,lifetimeBudget:null,name:null,nekoHasMixedPromotedObjects:null,pacingType:null,promotedObject:null,scheduleMode:null,startDate:null,status:null}),rb=kb.getState(nb),sb=mb.budgetMode||rb.budgetMode,tb=mb.budget;if(tb!==(void 0))if(sb===ha.DAILY){qb.dailyBudget=tb;}else qb.lifetimeBudget=tb;if(ob){if(!rb.isNewCampaign&&rb.startDate<Date.now()){qb.startDate=rb.startDate;}else if(qb.startDate||qb.endDate){pb.adjustedStart=ab(qb.startDate,rb);if(pb.adjustedStart)qb.startDate=pb.adjustedStart.date;pb.adjustedEnd=bb(qb.startDate,qb.endDate,rb);}if(!pb.adjustedEnd&&rb.budgetMode===ha.LIFETIME&&(qb.startDate||qb.endDate||tb!==(void 0)))eb(pb,qb,rb);if(pb.adjustedEnd)qb.endDate=pb.adjustedEnd.date;if(pb.adjustedBudget)if(sb===ha.DAILY){qb.dailyBudget=pb.adjustedBudget.budget;}else qb.lifetimeBudget=pb.adjustedBudget.budget;}wa(nb,qb);return pb;}function ab(lb,mb){var nb=new Date(Date.now()-ua);if(lb<nb)return {date:new Date(),reason:ka.START_DATE_BEFORE_NOW};return;}function bb(lb,mb,nb){var ob=new Date(),pb,qb;if(mb<lb){pb=new Date(lb);pb.setUTCHours(pb.getUTCHours()+1,pb.getUTCMinutes(),0,0);qb={date:pb,reason:ka.END_DATE_BEFORE_START_DATE};}else if(mb<ob){pb=ob;pb.setUTCHours(pb.getUTCHours()+1,pb.getUTCMinutes(),0,0);qb={date:pb,reason:ka.END_DATE_BEFORE_NOW};}return qb;}function cb(lb){var mb=lb.budgetMode===ha.DAILY,nb=mb?lb.dailyBudget:lb.lifetimeBudget;if(!nb){var ob=m.getState().currency;if(!ob)return null;if(mb){nb=l.getDefaultDailyBudget(ob,t.getAPIObjective());}else nb=l.getDefaultLifetimeBudget(ob,t.getAPIObjective());}return nb;}function db(lb){Object.keys(lb).forEach(function(mb){var nb=fa(lb[mb]);if(nb.budgetMode===ha.LIFETIME&&nb.budgetRemaining){nb.lifetimeBudgetSpent=nb.lifetimeBudget-nb.budgetRemaining;}else nb.lifetimeBudgetSpent=0;lb[mb]=nb;});return lb;}function eb(lb,mb,nb){var ob=mb.startDate||nb.startDate,pb=mb.endDate||nb.endDate,qb=mb.lifetimeBudget||nb.budget,rb=m.getState().minDailyBudget,sb=pb-ob,tb=Math.ceil(sb/ta),ub=qb/tb,vb=ub>=rb;if(vb)return;var wb=Math.floor(qb/rb),xb=wb*ta,yb=ob.getTime()+xb,zb=new Date(yb);lb.adjustedEnd={date:zb,reason:ka.INSUFFICIENT_DAILY_BUDGET};}for(var fb in k)if(k.hasOwnProperty(fb))hb[fb]=k[fb];var gb=k===null?null:k.prototype;hb.prototype=Object.create(gb);hb.prototype.constructor=hb;hb.__superConstructor__=k;function hb(){if(k!==null)k.apply(this,arguments);}hb.prototype.getStoreName=function(){return 'AdsCFCampaignStore';};hb.prototype.deserialize=function(lb){qa=lb.campaignID;lb.startDate=x.parseISODate(lb.startDate);if(lb.endDate)lb.endDate=x.parseISODate(lb.endDate);oa[qa]=lb;ya(qa);return true;};hb.prototype.getNewCampaignState=function(){return kb.getState(ma);};hb.prototype.getSelectedCampaignState=function(){return kb.getState(qa);};hb.prototype.getAllCampaignStates=function(){var lb={};Object.keys(oa).forEach(function(mb){lb[mb]=this.getState(mb);}.bind(this));return new ba(lb);};hb.prototype.getAllStatesForCampaignGroup=function(lb){if(ra[lb])return ra[lb];var mb={},nb;Object.keys(oa).forEach(function(ob){nb=this.getState(ob);if(nb.campaignGroupID===lb)mb[ob]=nb;}.bind(this));mb[ma]=this.getState(ma);ra[lb]=new ba(mb);return ra[lb];};hb.prototype.getAllSelectableStatesForCampaignGroup=function(lb){var mb=p.getState(lb);if(mb.objective===i.LOCAL_AWARENESS&&(n.isCreatingNewCampaign()||n.isCreatingNewCampaignGroup()))return new ba({});var nb=kb.getAllStatesForCampaignGroup(lb),ob=ba.values(nb).filter(function(pb){var qb=q.getCampaignCannotBeSelectedReason(pb,v.getState(r.CanonicalID),u.getState(r.CanonicalID),s.getDestinationID());return qb===null&&!pb.isNewCampaign;});return new ba(ob);};hb.prototype.getState=function(lb){var mb=oa[lb];if(!mb)return null;var nb=va(lb),ob=t.getAPIObjective();if(ob===i.LOCAL_AWARENESS){mb.budgetMode=nb?ha.LIFETIME:mb.budgetMode;mb.isLifetimeOnly=mb.budgetMode===ha.LIFETIME;}var pb=cb(mb),qb=mb.scheduleMode;mb.pacingType=mb.pacingType||[j.STANDARD];mb.creativeRotationType=mb.creativeRotationType||h.STANDARD;mb.creativeRotationParameter=mb.creativeRotationParameter||0;if(mb.budgetMode===ha.DAILY){var rb=mb.pacingType.slice(0);aa.setDayParting(rb,false);mb.pacingType=rb;mb.campaignSchedule=[];}if(mb.budgetMode!==ha.DAILY)qb=ja.SCHEDULED;var sb=l.getScheduleLengthsDays(ob),tb=mb.startDate||l.getDefaultStartDate(),ub=mb.endDate;if(!ub)ub=l.getDefaultEndDate(tb,sb,ob);var vb={budget:parseInt(pb,10),budgetMode:mb.budgetMode,campaignGroupID:mb.campaignGroupID,campaignID:lb,campaignSchedule:mb.campaignSchedule,creativeRotationParameter:mb.creativeRotationParameter,creativeRotationType:mb.creativeRotationType,endDate:ub,errorMessage:mb.errorMessage,isDayParted:mb.isDayParted,isDraftOnly:mb.isDraftOnly,isLifetimeOnly:!!mb.isLifetimeOnly,isNewCampaign:nb,lifetimeBudgetSpent:mb.lifetimeBudgetSpent,name:mb.name||mb.defaultName,pacingType:mb.pacingType,saveStatus:mb.saveStatus,scheduleLengthOptions:sb,scheduleMode:qb,startDate:tb,status:mb.status,updatedTime:mb.updatedTime,nekoHasMixedPromotedObjects:mb.nekoHasMixedPromotedObjects};if(ea()){vb.targeting=mb.targeting;vb.pricing=mb.pricing;vb.promotedObject=mb.promotedObject;}vb.promotedObject=vb.promotedObject||{};return new ba(vb);};hb.prototype.$AdsCFCampaignStoreClass0=function(lb,mb){y.handleUpdateFromServerResponse({actionType:o.SAVE_EDITED_CAMPAIGN_ERROR,campaignID:lb,error:mb,logData:{campaignData:this.getState(lb)}});};hb.prototype.$AdsCFCampaignStoreClass1=function(lb){y.handleUpdateFromServerResponse({actionType:o.SAVE_EDITED_CAMPAIGN_SUCCESS,campaignID:lb,pricing:oa[lb].pricing&&u.getState(r.CanonicalID),targeting:oa[lb].targeting&&v.getState(r.CanonicalID)});};hb.prototype.__onSaveEditedCampaignTimeout=function(lb){y.handleUpdateFromServerResponse({actionType:o.SAVE_EDITED_CAMPAIGN_TIMEOUT,campaignID:lb});};hb.prototype.onDispatchToken=function(lb){var mb=lb.action,nb=mb.campaignID,ob=lb.payloadsource===z.VIEW_ACTION;switch(mb.actionType){case o.CAMPAIGNS_LOADED:var pb=db(mb.campaigns);oa=fa(oa,pb);pa=fa(pa,pb);ra={};kb.inform('change');break;case o.CHANGE_ACCOUNT_CURRENCY:if(ob&&qa===ma){y.waitFor([t.dispatchToken]);oa[qa].lifetimeBudget=l.getDefaultLifetimeBudget(mb.currency,t.getAPIObjective());oa[qa].dailyBudget=l.getDefaultDailyBudget(mb.currency,t.getAPIObjective());kb.inform('change');}break;case o.CHANGE_CAMPAIGN:case o.CHANGE_CAMPAIGN_BUDGET:case o.CHANGE_CAMPAIGN_BUDGET_MODE:case o.CHANGE_CAMPAIGN_CREATIVE_ROTATION:case o.CHANGE_CAMPAIGN_NAME:case o.CHANGE_CAMPAIGN_PACING:case o.CHANGE_CAMPAIGN_SCHEDULE:case o.CHANGE_CAMPAIGN_SCHEDULE_MODE:case o.CHANGE_CAMPAIGN_STATUS:case o.CHANGE_CAMPAIGN_DAY_PARTING_SCHEDULE:var qb=za(lb);kb.inform('change',qb);break;case o.CAMPAIGN_GROUP_SELECT:case o.CAMPAIGN_GROUP_SELECT_AND_UPDATE:qa=ma;kb.inform('change');break;case o.CAMPAIGN_SELECT:da(nb);if(mb.campaign){var rb={};rb[nb]=mb.campaign;rb=db(rb);oa=fa(oa,rb);ya(nb);ra={};}da(nb in oa);if(nb in oa){qa=nb;var sb=kb.getSelectedCampaignState(),tb=p.getSelectedState();da(sb.isNewCampaign||sb.campaignGroupID===tb.id);kb.inform('change');}break;case o.SELECT_NEW_CAMPAIGN:qa=ma;kb.inform('change');break;case o.SELECT_EXISTING_CAMPAIGN:var ub=q.toFilteredSortedArray(kb.getAllSelectableStatesForCampaignGroup(mb.campaignGroupID));qa=ub.length>0?ub[0].campaignID:ma;kb.inform('change');break;case o.DISMISS_CAMPAIGN_SAVE_SUCCESS:da(nb);oa[nb].saveStatus=null;ya(nb);kb.inform('change');break;case o.CANCEL_EDITED_CAMPAIGN:xa(nb);kb.inform('change');break;case o.SAVE_EDITED_CAMPAIGN_CLICK:da(nb);oa[nb].saveStatus=la.PENDING;oa[nb].errorMessage=null;var vb=m.getAccountID(),wb=mb.campaignSpec,xb=q.saveCampaign(vb,nb,wb),yb=new ca(function(fc,gc){setTimeout(gc,na);});ca.race([xb,yb]).done(function(){kb.$AdsCFCampaignStoreClass1(nb);},function(fc){if(fc&&fc.error){kb.$AdsCFCampaignStoreClass0(nb,fc.error);return;}kb.__onSaveEditedCampaignTimeout(nb);});kb.inform('change');break;case o.SAVE_EDITED_CAMPAIGN_ERROR:oa[nb].saveStatus=la.FAILURE;oa[nb].errorMessage=mb.error.message;kb.inform('change');break;case o.SAVE_EDITED_CAMPAIGN_SUCCESS:oa[nb].saveStatus=la.SUCCESS;if(oa[nb].budgetMode===ha.DAILY)oa[nb].lifetimeBudgetSpent=0;if(ea()){oa[nb].pricing=mb.pricing;oa[nb].targeting=mb.targeting;}ra[oa[nb].campaignGroupID]=null;ya(nb);kb.inform('change');break;case o.SAVE_EDITED_CAMPAIGN_TIMEOUT:oa[nb].saveStatus=la.FAILURE;oa[nb].errorMessage=q.generateTimeoutMessage();kb.inform('change');break;case o.CREATE_AD_FAIL_WITH_CAMPAIGN_SUCCESS:case o.CREATE_SIMILAR_AD:if(qa===ma){qa=nb;oa[qa]={};Object.assign(oa[qa],oa[ma]);oa[qa].campaignID=qa;oa[qa].campaignGroupID=mb.campaignGroupID;if(ea())Object.assign(oa[qa],{nekoHasMixedPromotedObjects:false,nekoPromotedObjectId:s.getDestinationID(),pricing:u.getState(r.CanonicalID),targeting:v.getState(r.CanonicalID)});pa[qa]=oa[qa];delete ra[mb.campaignGroupID];kb.inform('change');}break;case o.EXTEND_CAMPAIGN_SUCCESS:var zb=mb.value,ac=kb.getSelectedCampaignState().endDate,bc=new Date(ac.getTime()+zb*3600*24*1000);oa[qa].endDate=bc;kb.inform('change');break;case o.INCREASE_BUDGET_SUCCESS:var cc=mb.value,dc=kb.getSelectedCampaignState().budget,ec=dc+cc;oa[qa].lifetimeBudget=ec;kb.inform('change');break;case o.OBJECTIVE_CHANGE:case o.KPI_OBJECTIVE_CHANGE:ib();jb();y.waitFor([p.dispatchToken]);tb=p.getSelectedState();if(tb.isNew)qa=ma;kb.inform('change');break;case o.DESTINATION_CHANGE:case o.TARGETING_CHANGE:case o.TARGETING_RESET_DEFAULTS:ib();kb.inform('change');break;case g.PAGE_TRANSITION:case o.CLEAR_AND_START_OVER:case o.RESET_CF_STORES:sa();break;}};hb.prototype.serialize=function(){var lb=fa({},oa[qa]);lb.startDate=lb.startDate.toISOString();if(lb.endDate)lb.endDate=lb.endDate.toISOString();return lb;};function ib(){y.waitFor([s.dispatchToken,t.dispatchToken]);var lb=v.getState(r.CanonicalID),mb=l.generateName(s.getDestinationDetails().destinationName,t.getKPIObjective(),lb.countries||[],lb.geoLocations||null,lb.sex,lb.ageMin||w.minAge,lb.ageMax||w.maxAge);wa(ma,{defaultName:mb});}function jb(){y.waitFor([m.dispatchToken,t.dispatchToken]);var lb=m.getState().currency;if(!lb)return;var mb=t.getAPIObjective(),nb,ob,pb=l.getDefaultLifetimeBudget(lb,mb);switch(mb){case i.LOCAL_AWARENESS:nb=ha.LIFETIME;ob=true;break;default:nb=oa[ma].budgetMode;ob=false;break;}wa(ma,{budgetMode:nb,isLifetimeOnly:ob,lifetimeBudget:pb});}var kb=new hb();a.debug_AdsCFCampaignStore=kb;e.exports=kb;},null);
  __d("AdsCFDestinationStore",["AdsActionTypes","AdsAddressUtils","AdsAPIObjectives","ads-app-platforms","AdsBaseStore","AdsCFAccountStore","AdsCFActionTypes","AdsCFConstants","AdsCFDestinationDataLoader","AdsCFLogger","AdsCFNavigationSections","AdsCFNavigationStore","AdsCFPrimedDao","AdsCFDestinationUtils","AdsCommonGeocoderStore","AdsCreationExperiments","AdsDestinationTypes","AdsDispatcher","AdsGeocoderActions","ads-objectives","AdsPayloadSource","AsyncRequest","PagePostTypes","Promise","SearchableEntry","URI","XAdsCFMobileOptimizedCheckControllerURIBuilder","adsGKCheck","arrayContains","copyProperties","isNumberLike","merge","ads-lib-urllib","AdsCFObjectiveStore","AdsCFCampaignStore","AdsCFCampaignGroupStore","AdsCreativeUtils"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma){'use strict';var na=b('ads-objectives').KPIObjectives,oa=z.KPIObjectivesByDestinationType,pa=n.DestinationSelectionSource.SINGLE_OBJECT_PREFILL,qa=30000,ra=v.getExperiment('ads_cf_os_disable_mobile_placement_2'),sa={},ta,ua,va,wa,xa,ya,za,ab,bb,cb,db,eb,fb,gb=false;function hb(){ta={};ua=null;va=null;wa=null;xa=false;ya=true;za=null;ab=false;bb=null;cb=false;db=[];fb={};}hb();function ib(ub){return ub.requestId>=eb;}function jb(){return b('AdsCFObjectiveStore').getKPIObjective();}function kb(){cb=false;db=[];eb=eb+1||0;var ub=jb();if((wa===w.PLACE||wa===w.PAGE)&&ub!==z.KPIObjectives.LOCAL_AWARENESS)o.fetchPagePosts(eb,va);}var lb=function(ub,vb,wb){x.handleUpdateFromViewAction({actionType:m.DESTINATION_FETCH_ERROR,entityID:wb.object_id,entityURL:wb.object_url,error:vb.error});};function mb(ub,vb,wb,xb){var yb=l.getAccountID(),zb=s.getInstanceForAccount(yb);if(xb&&(xb.type===w.EXTERNAL_WEBPAGE))ub=null;var ac=la(wb,{account_id:yb,handleError:lb});if(ub){ac.object_id=ub;}else if(!vb||!vb.length){za={entityID:n.ErrorEntityID,searchableEntry:xb};return;}else if(ka(vb)){ac.object_id=vb.replace(/^0+/,'');}else if(ma.isUrlSimple(vb))ac.object_url=ma.normalize(vb);fb={entityID:ac.object_id,entityURL:ac.object_url,searchableEntry:xb};if(bb===na.APP_ENGAGEMENT)ac.use_app_links=true;zb.fetch.adsDestinationInfo.promiseOne(ac).then(function(bc){var cc=bc&&bc.length&&bc[0];if(!cc||!cc.id){za=fb;fb={};tb.inform('change');return;}var dc=t.convertAPIDataToFields(cc);if(!tb.hasPendingEntity())return;var ec;if(fb.entityID)ec=!((fb.entityID===dc.destinationId)||(fb.entityID===dc.storyId));var fc=fb.entityURL&&fb.entityURL!==dc.originalObjectUrl;if(ec||fc)return;var gc=jb(),hc={destinationDetails:dc};if(gc===z.KPIObjectives.LOCAL_AWARENESS){if(ha('ads_cf_instore_unified_location')){hc.location=o.promisePageLocation(dc.destinationId).then(null,function(ic){return null;});}else hc.pageDetails=o.promiseDestinationDetails(dc.destinationId,dc.destinationType).then(null,function(ic){return null;});hc.canEditPage=t.promisePageEditRights(zb,cc.id);}return da.allObject(hc);},function(bc){lb(bc.result,bc.rawData,bc.actualParameters);}).then(function(bc){if(!bc)return bc;var cc=null;if(bc.location&&bc.location.street_address){cc=h.formatSingleLineAddress({street:bc.location.street_address,city:bc.location.city.name,state:bc.location.region&&bc.location.region.name,country:bc.location.country.name});}else if(bc.pageDetails&&bc.pageDetails.location&&bc.pageDetails.location.street){cc=h.formatSingleLineAddress(bc.pageDetails.location);}else return bc;return da.allObject(Object.assign({},bc,{addressResults:u.promiseAddressCoordinates(cc).then(function(dc){return {address:cc,success:dc};},function(dc){return {address:cc,error:dc};})}));}).done(function(bc){if(!bc)return;var cc=bc.destinationDetails,dc=bc.pageDetails;if(dc){cc.canPost=dc.can_post;cc.pageLocation=dc.location;}cc.canEdit=bc.canEditPage;if(bc.addressResults)if(bc.addressResults.success){var ec=bc.addressResults.success;y.handleGeocoderSuccessResponse(bc.addressResults.address,n.CanonicalID,ec,{pageID:cc.destinationId});cc.isPageLocationAddressValid=true;cc.validAddress=bc.addressResults.address;cc.validLatitude=ec[0].latitude;cc.validLongitude=ec[0].longitude;}else if(bc.addressResults.error)y.handleGeocoderFailureResponse(bc.addressResults.address,n.CanonicalID,bc.addressResults.error,{pageID:cc.destinationId});var fc=cc.destinationType,gc=cc.destinationId;delete cc.destinationType;x.handleUpdateFromViewAction({actionType:m.DESTINATION_CHANGE,destinationType:fc,destinationID:gc,destinationDetails:cc,destSource:ab?n.DestinationSelectionSource.SINGLE_OBJECT_PREFILL:n.DestinationSelectionSource.USER_SELECTED});});}function nb(ub){p.log('mobile_optimized_url_check',{url:ub});var vb=new ga().setString('url',ub).getURI();new ba().setURI(vb).setHandler(function(wb){if(r.hasVisitedSection(q.id.TARGETING)){p.log('mobile_optimized_url_check_suppressed',{reason:'user_scroll'});return;}var xb=ra.getParamBool('show_ui'),yb=fa(wb.payload.url).toString(),zb=fb?fa(fb.entityURL).toString():'',ac=ta?fa(ta.originalObjectUrl).toString():'';if(zb===yb||ac===yb){var bc=wb.payload.is_mobile_optimized;x.handleUpdateFromServerResponse({actionType:m.MOBILE_OPTIMIZED_URL_CHECK_SUCCESS,url:yb,isMobileOptimized:bc,showDialog:xb});}}).setErrorHandler(function(wb){x.handleUpdateFromServerResponse({actionType:m.MOBILE_OPTIMIZED_URL_CHECK_FAIL,url:ub,errorType:'server_error',error:wb.error});}).setTimeoutHandler(qa,function(wb){x.handleUpdateFromServerResponse({url:ub,actionType:m.MOBILE_OPTIMIZED_URL_CHECK_FAIL,errorType:'request_timeout',error:wb.error});}).send();}function ob(){var ub=l.getAccountID(),vb=s.getInstanceForAccount(ub);vb.fetch.connectionObjectsForAccount.one(function(wb){var xb=wb.data.filter(function(ac){var bc=oa[ac.type];return (bc&&ia(bc,bb));}),yb=xb[0];if(xb.length===1){var zb=new ea({uniqueID:yb.id,title:yb.name,photo:yb.picture,subtitle:yb.category});zb.id=yb.id;x.handleUpdateFromServerResponse({actionType:m.KPI_DESTINATION_SELECT,destinationEntry:zb,source:pa});}});}function pb(ub){var vb=ub.destinationID!==va||ub.destinationType!==wa;if(ub.destinationID){va=ub.destinationID;fb={};}if(ub.destinationType)wa=ub.destinationType;if(ub.destinationDetails)ja(ta,ub.destinationDetails);xa=!bb;vb&&kb();}for(var qb in k)if(k.hasOwnProperty(qb))sb[qb]=k[qb];var rb=k===null?null:k.prototype;sb.prototype=Object.create(rb);sb.prototype.constructor=sb;sb.__superConstructor__=k;function sb(){if(k!==null)k.apply(this,arguments);}sb.prototype.getStoreName=function(){return 'AdsCFDestinationStore';};sb.prototype.hasLoadedInitialDestinationDetails=function(){return gb;};sb.prototype.getCachedPostLinkData=function(ub){return ub?sa[ub]:null;};sb.prototype.getDestinationDetails=function(){return ta;};sb.prototype.getDestinationID=function(){return va;};sb.prototype.getDestinationType=function(){if((bb===z.KPIObjectives.WEBSITE_CLICKS||bb===z.KPIObjectives.WEBSITE_CONVERSIONS)&&(ta.originalObjectUrl||ta.destinationUrl))return w.EXTERNAL_WEBPAGE;return wa;};sb.prototype.getDestinationTypeIgnoringKPI=function(){return wa;};sb.prototype.getHasDesktopCanvas=function(){var ub=this.getDestinationDetails().appPlatforms;return j.supportsDesktop(ub);};sb.prototype.getHasLoadCompleted=function(){return cb;};sb.prototype.getHasNativeMobileApp=function(){var ub=this.getDestinationDetails().appPlatforms;return j.supportsNativeMobile(ub);};sb.prototype.getKpiObjective=function(){return bb;};sb.prototype.getInvalidEntity=function(){return za;};sb.prototype.getIsDestinationAppStoreMedia=function(){return (this.getDestinationDetails().isAppStoreMedia&&ha('neko_media_ads_cf'));};sb.prototype.getIsObjectiveAppStoreMedia=function(ub){return (this.getIsDestinationAppStoreMedia()&&ub===i.WEBSITE_CLICKS);};sb.prototype.getPagePostDetails=function(ub){var vb;for(var wb=0;wb<db.length;++wb){vb=db[wb];if(vb.id===ub)return vb;}return {};};sb.prototype.getPagePosts=function(){return db;};sb.prototype.getPagePostsForKPI=function(){if(!db||!db.length)return db;if(bb===z.KPIObjectives.OFFER_CLAIMS)return db.filter(function(ub){return ub.type===ca.OFFER;});return db;};sb.prototype.getPagePostsRequestId=function(){return eb;};sb.prototype.getPendingEntity=function(){return fb;};sb.prototype.getDestinationForTypeahead=function(){if(!this.hasPendingEntity()&&this.hasPromotableDestinationEntity()&&!this.hasDestination())return null;var ub=fb&&fb.searchableEntry,vb=za&&za.searchableEntry;if(ub||vb)return ub||vb;return t.convertToSearchableEntry(va,ta,bb);};sb.prototype.getDefaultStoryIDForCreative=function(){var ub,vb=this.getPagePostsForKPI();if(vb.length)ub=ta.storyId||vb[0].id;return ub;};sb.prototype.hasDestination=function(){return !!va;};sb.prototype.hasDestinationWithoutKPIObjective=function(){return xa;};sb.prototype.hasMobileOptimizedExternalURL=function(){return ya;};sb.prototype.hasPromotableDestinationEntity=function(){return !za;};sb.prototype.hasPendingEntity=function(){return Object.keys(fb).length>0;};sb.prototype.getDestinationError=function(){return ua;};sb.prototype.isInvalidDestinationInput=function(){return (za&&za.entityID===n.ErrorEntityID);};sb.prototype.isInputPersonalEvent=function(){return ta.isAdmin&&!ta.canCreateAd&&ta.eventCreatorId;};sb.prototype.hasPageAnalystRole=function(){return ta.isAdmin&&!ta.canCreateAd&&(wa===w.PAGE||wa===w.PLACE);};sb.prototype.isSingleObjectPrefill=function(){return ab;};sb.prototype.isMobilePlatformOnlyApp=function(){if(wa!==w.APP)return false;return (this.getHasNativeMobileApp()&&!this.getHasDesktopCanvas());};sb.prototype.isMultiPlatformApp=function(){if(wa!==w.APP)return false;return (this.getHasNativeMobileApp()&&this.getHasDesktopCanvas());};sb.prototype.deserialize=function(ub){return Object.keys(ub).every(function(vb){var wb=ub[vb];switch(vb){case 'destinationDetails':ta=wb;return true;case 'destinationError':ua=wb;return true;case 'destinationID':va=wb;return true;case 'destinationType':wa=wb;return true;case 'hasDestinationWithoutKPIObjective':xa=wb;return true;case 'hasMobileOptimizedExternalURL':ya=wb;return true;case 'invalidEntity':za=wb;return true;case 'isSingleObjectPrefill':ab=wb;return true;case 'kpiObjective':bb=wb;return true;case 'loadComplete':cb=wb;return true;case 'pagePosts':db=wb;return true;case 'pagePostsRequestId':eb=wb;return true;case 'pendingEntity':fb=wb;return true;}return false;});};sb.prototype.serialize=function(){return {destinationDetails:this.getDestinationDetails(),destinationError:this.getDestinationError(),destinationID:this.getDestinationID(),destinationType:this.getDestinationType(),hasDestinationWithoutKPIObjective:this.hasDestinationWithoutKPIObjective(),hasMobileOptimizedExternalURL:this.hasMobileOptimizedExternalURL(),invalidEntity:this.getInvalidEntity(),isSingleObjectPrefill:this.isSingleObjectPrefill(),kpiObjective:this.getKpiObjective(),loadComplete:this.getHasLoadCompleted(),pagePosts:this.getPagePosts(),pagePostsRequestId:this.getPagePostsRequestId(),pendingEntity:this.getPendingEntity()};};sb.prototype.onDispatchToken=function(ub){var vb=ub.action;switch(vb.actionType){case m.CAMPAIGN_SELECT:var wb=b('AdsCFCampaignStore'),xb=l.getAccountID(),yb=s.getInstanceForAccount(xb);x.waitFor([wb.dispatchToken]);var zb=wb.getState(vb.campaignID);if(!zb)break;var ac,bc=zb.promotedObject.applicationId,cc=zb.promotedObject.objectStoreUrl;if(bc){ac={account_id:xb,handleError:lb,object_id:bc};}else if(cc){ac={account_id:xb,handleError:lb,object_url:cc};}else break;yb.fetch.adsDestinationInfo.promiseOne(ac).done(function(lc){var mc=t.convertAPIDataToFields(lc[0]);pb({destinationType:w.APP,destinationID:mc.destinationId,destinationDetails:mc});tb.inform('change');},lb);break;case m.ACCOUNT_INIT:x.waitFor([l.dispatchToken]);o.setActiveState(true);break;case m.DESTINATION_FETCH_ERROR:if(vb.entityID===fb.entityID||vb.entityURL===fb.entityURL){za=fb;fb={};ua=vb.error;tb.inform('change');}break;case m.DESTINATION_SELECT:case m.KPI_DESTINATION_SELECT:var dc,ec;if(vb.actionType===m.KPI_DESTINATION_SELECT){dc=vb.destinationEntry.id;ec=vb.destinationEntry.getTitle();ab=(vb.source===pa);}else{dc=vb.entityID;ec=vb.typeaheadInput;}mb(dc,ec,vb.queryParams,vb.destinationEntry);if(ec&&l.isLikelyOnlineSales()&&(bb===z.KPIObjectives.WEBSITE_CLICKS||bb===z.KPIObjectives.WEBSITE_CONVERSIONS)){if(ra.getParamBool('show_ui'))ra.logExposure();if(ra.getParamBool('do_mobile_check'))nb(ec);}tb.inform('change');break;case m.DESTINATION_CHANGE:gb=true;pb(vb);tb.inform('change');break;case m.NEW_PAGE_DESTINATION_SELECT:mb(vb.pageInfo.id,null,null,null);break;case m.CAMPAIGN_GROUP_SELECT:var fc=b('AdsCFCampaignGroupStore');x.waitFor([fc.dispatchToken]);var gc=fc.getSelectedState().objective;if(gc===i.NONE)break;bb=z.APItoKPIObjectives[gc];tb.inform('change');break;case m.KPI_OBJECTIVE_CHANGE:if(vb.source===n.ObjectiveChangeSource.OBJECTIVE_SELECTOR&&!xa){hb();ob();tb.inform('change');}bb=vb.kpiObjective;break;case m.OBJECTIVE_CHANGE:if(ub.payloadsource!==aa.SERVER_RESPONSE)break;var hc=vb.objectiveType;if(tb.getIsObjectiveAppStoreMedia(hc)){bb=z.KPIObjectives.APP_STORE_MEDIA_VISITS;}else bb=z.APItoKPIObjectives[hc];if(tb.hasDestination())xa=!bb;break;case m.PAGE_POSTS_PUBLISHED:l.getDao().fetch.pagePromotablePostsForConnectionObject.clearCache();cb=false;db=[];ta.storyId='';o.fetchPagePosts(++eb,va);tb.inform('change');break;case m.PAGE_POSTS_LOADED:if(!ib(vb))return;db.push.apply(db,vb.apiData);db=b('AdsCreativeUtils').filterPagePosts(db);tb.inform('change');break;case m.POST_LINK_DATA_LOADED:var ic=vb.data;if(!ic)break;sa[vb.storyId]={id:ic.id,type:ic.type,objective:ic.default_objective,url:ic.original_object_url};tb.inform('change');break;case m.PAGE_LOCATION_CHANGED:if(vb.pageID!==va)break;var jc=vb.locationDetails;ta.isPageLocationAddressValid=true;ta.validLatitude=jc.latitude;ta.validLongitude=jc.longitude;ta.validAddress=jc.addressString;tb.inform('change');break;case m.PAGE_POSTS_LOAD_COMPLETE:if(!ib(vb))return;cb=true;tb.inform('change');break;case m.CLEAR_AND_START_OVER:hb();break;case g.PAGE_TRANSITION:case m.RESET_CF_STORES:gb=false;o.setActiveState(false);hb();break;case m.RESET_DESTINATION:var kc=bb;hb();bb=kc;tb.inform('change');break;case m.MOBILE_OPTIMIZED_URL_CHECK_SUCCESS:if(vb.showDialog){ya=vb.isMobileOptimized;tb.inform('change');}break;}};var tb=new sb();a.debug_AdsCFDestinationStore=tb;e.exports=tb;},null);
  __d("actionSpecConstants",["createArrayFromMixed","fbt","AdsAPIObjectives"],function(a,b,c,d,e,f,g,h,i){var j={PAGE_LIKES:'PAGE_LIKES',PAGE_SUBSCRIBES:'PAGE_SUBSCRIBES',ALL_POST_LIKES:'ALL_POST_LIKES',ALL_POST_COMMENTS:'ALL_POST_COMMENTS',ALL_POST_SHARES:'ALL_POST_SHARES',POST_BY_PAGE_LIKE:'POST_BY_PAGE_LIKE',WALL_POSTS:'WALL_POSTS',PAGE_CHECKINS:'PAGE_CHECKINS',PAGE_AND_CHILD_CHECKINS:'PAGE_AND_CHILD_CHECKINS',POST_LIKES:'POST_LIKES',POST_COMMENTS:'POST_COMMENTS',POST_SHARES:'POST_SHARES',OFFER_CLAIMS:'OFFER_CLAIMS',APP_SHARE:'APP_SHARE',APP_USE:'APP_USE',GAME_PLAY:'GAME_PLAY',EVENT_RSVP:'EVENT_RSVP',DOMAIN_SHARE:'DOMAIN_SHARE',URL_SHARE:'URL_SHARE',QUESTION_VOTE:'QUESTION_VOTE'};function k(u,v){return function(w,x,y){var z={'action.type':u};if(v.objectID)g(v.objectID).forEach(function(aa){z[aa]=w;});if(v.storyID)g(v.storyID).forEach(function(aa){z[aa]=x;});if(v.url)g(v.url).forEach(function(aa){z[aa]=y;});return z;};}var l={};l[j.PAGE_LIKES]=k('like',{objectID:'page'});l[j.PAGE_SUBSCRIBES]=k('follow',{objectID:'page'});l[j.ALL_POST_LIKES]=k('like',{objectID:['post.wall','post.author']});l[j.ALL_POST_COMMENTS]=k('comment',{objectID:['post.wall','post.author']});l[j.ALL_POST_SHARES]=k('post',{objectID:'post.author'});l[j.POST_BY_PAGE_LIKE]=k('like',{objectID:['post.wall','post.author']});l[j.WALL_POSTS]=k('post',{objectID:'post.wall'});l[j.PAGE_CHECKINS]=k('checkin',{objectID:'page'});l[j.PAGE_AND_CHILD_CHECKINS]=function(u){return [{'action.type':'checkin',page:u},{'action.type':'checkin','page.parent':u}];};l[j.POST_LIKES]=k('like',{storyID:'post'});l[j.POST_COMMENTS]=k('comment',{storyID:'post'});l[j.POST_SHARES]=k('post',{storyID:'post.object'});l[j.OFFER_CLAIMS]=k('receive_offer',{storyID:'offer'});l[j.APP_SHARE]=k('post',{objectID:'application'});l[j.APP_USE]=k('apps.uses',{objectID:'application'});l[j.GAME_PLAY]=k('games.plays',{objectID:'application'});l[j.EVENT_RSVP]=k('rsvp',{objectID:'event'});l[j.DOMAIN_SHARE]=k(['post','like'],{objectID:'post.object.domain'});l[j.URL_SHARE]=k('post',{url:'post.object'});l[j.QUESTION_VOTE]=function(u,v,w,x){return x?{'action.type':'vote',question:x.object_id}:null;};var m={};m[j.PAGE_LIKES]="People liking your Page";m[j.PAGE_SUBSCRIBES]="People following your Page";m[j.ALL_POST_LIKES]="People liking any of your Page posts";m[j.ALL_POST_COMMENTS]="People commenting on any of your Page posts";m[j.ALL_POST_SHARES]="People sharing on any of your Page posts";m[j.POST_BY_PAGE_LIKE]="People liking any of your Page posts";m[j.WALL_POSTS]="People posting on your wall";m[j.PAGE_CHECKINS]="People checking-in to your location";m[j.PAGE_AND_CHILD_CHECKINS]="People checking-in to your location";m[j.POST_LIKES]="People liking your Page post";m[j.POST_COMMENTS]="People commenting on your Page post";m[j.POST_SHARES]="People sharing your Page post";m[j.OFFER_CLAIMS]="People claiming your offer";m[j.APP_SHARE]="Stories published through your app";m[j.APP_USE]="People using your app";m[j.GAME_PLAY]="People playing your game";m[j.EVENT_RSVP]="People joining your event";m[j.DOMAIN_SHARE]="People sharing links from your website";m[j.URL_SHARE]="People sharing the specific URL you entered above";m[j.QUESTION_VOTE]="People voting on your question";var n={};n[i.PAGE_LIKES]=[j.PAGE_LIKES];n[i.POST_ENGAGEMENT]=[j.POST_LIKES,j.POST_COMMENTS,j.POST_SHARES];n[i.OFFER_CLAIMS]=[j.POST_LIKES,j.OFFER_CLAIMS];n[i.DEPRECATED_CLICKS]=[j.PAGE_LIKES,j.ALL_POST_LIKES,j.ALL_POST_COMMENTS];var o={};o[i.PAGE_LIKES]=[j.PAGE_LIKES,j.PAGE_CHECKINS];o[i.POST_ENGAGEMENT]=[j.POST_LIKES,j.POST_COMMENTS,j.POST_SHARES];o[i.OFFER_CLAIMS]=[j.OFFER_CLAIMS];o[i.DEPRECATED_CLICKS]=[j.PAGE_LIKES,j.ALL_POST_LIKES,j.ALL_POST_COMMENTS,j.PAGE_CHECKINS];var p={};p[i.CANVAS_APP_INSTALLS]=p[i.CANVAS_APP_ENGAGEMENT]=p[i.DEPRECATED_CLICKS]=[j.APP_SHARE];var q={};q[i.CANVAS_APP_INSTALLS]=q[i.CANVAS_APP_ENGAGEMENT]=q[i.DEPRECATED_CLICKS]=[j.APP_SHARE,j.GAME_PLAY];var r={};r[i.EVENT_RESPONSES]=r[i.DEPRECATED_CLICKS]=[j.EVENT_RSVP];var s={};s[i.POST_ENGAGEMENT]=s[i.DEPRECATED_CLICKS]=[j.QUESTION_VOTE,j.POST_COMMENTS,j.POST_SHARES];var t={SPONSORED_STORIES:1,NEWS_FEED_AD:2,MULTI_IMAGE_AD:3,MULTI_IMAGE_NEWS_FEED_AD:4};e.exports={ACTION_SPECS_KEYS:j,ACTION_SPECS:l,ACTION_SPECS_DISPLAY_NAME:m,PAGE_SS_SPECS:n,PLACE_SS_SPECS:o,APP_SS_SPECS:p,GAME_SS_SPECS:q,EVENT_SS_SPECS:r,QUESTION_SS_SPECS:s,SECONDARY_AD_TYPES:t};},null);
  __d("adsGetPageTypeForAdgroup",["AdCreativeType","ads-app-platforms","AdsPageTypes","ApiCreativeTypes","ads-app-platforms"],function(a,b,c,d,e,f,g,h,i,j,k){var l=g.AD_CREATIVE_TYPE,m=k.APP_PLATFORM,n=k.MOBILE_OPERATING_SYSTEM_TO_APP_PLATFORM;function o(p){var q=p.targeting&&p.targeting.page_types;if(p.creative.type===l.NEKO_LPP){var r;if(p.targeting.user_os)r=n[h.getMobileOperatingSystemFromUserOS(p.targeting.user_os[0])];if(r){p.creative.platform=r;}else p.creative.platform=m.DESKTOP_CANVAS;}else if(p.creative.type===j.STANDARD)q=[i.RIGHT_COLUMN];var s=(q&&q.length)?q[0]:null;return s;}e.exports=o;},null);
  __d("AdsCFCreativeAPIConverter",["AdCreativeType","AdsAPIObjectives","ads-app-platforms","AdsCallToActionTypes","AdsCFApplicationStore","AdsCFCreativeUtils","AdsCFDestinationStore","AdsCFObjectiveStore","AdsImageLegacy","ApiCreativeTypes","actionSpecConstants","adsGetPageTypeForAdgroup","adsGetPlacementsForPageType","copyProperties","invariant","merge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){var w=i.MOBILE_STORE_DESTINATION_TYPE,x=g.AD_CREATIVE_TYPE,y=q.SECONDARY_AD_TYPES;function z(pa){Object.keys(pa).forEach(function(qa){if(pa[qa]===(void 0))delete pa[qa];});return pa;}function aa(pa,qa){if(!pa.hasChanged&&pa.apiCreativeID)return {creative_id:pa.apiCreativeID};var ra=pa.creativeType===x.AD_VIDEO,sa=pa.creativeType===x.NEKO_LPP,ta=sa&&pa.videoId,ua=ca(pa),va=pa.creativeType===x.INLINE_FAN,wa=va&&pa.videoId;if(ra||ta||wa){var xa={};if(pa.actor)xa.page_id=pa.actor.id;if(pa.videoId){xa.video_data={video_id:pa.videoId,description:pa.body||'',title:''};if(pa.videoThumbnail&&pa.videoThumbnail.uri)xa.video_data.image_url=pa.videoThumbnail.uri;if(pa.callToActionType)xa.video_data.call_to_action={type:pa.callToActionType,value:z({link:pa.linkUrl||pa.callToActionLink,link_caption:pa.callToActionLinkCaption,app_link:ua&&ua.applink_url,link_title:pa.title,product_link:pa.productLinkUrl})};if(wa)xa.video_data.call_to_action={type:j.TYPES.LIKE_PAGE.name,value:({page:pa.actor.id})};}return {object_story_spec:xa};}var ya,za,ab,bb=pa.imageList;if(bb&&bb.length){qa=qa||0;var cb=pa.imageList[qa];ab=cb.getAdAccountHash();ya=cb.getAPICrops();za=cb.isStockImage()?'shutterstock://'+cb.getStockImageID().replace(/^ssimg_/,''):cb.getUrl();}var db,eb;if(pa.iconImage){db=pa.iconImage.getUrl();eb=pa.iconImage.getAdAccountHash();}var fb,gb=pa.mobileStore,hb;if(gb&&m.getDestinationType()){var ib=m.getDestinationDetails(),jb=ib.objectStoreUrls||{};fb=i.getStoreObjectInfoFromMobileStore(ib.nativeAppStoreIds,gb).storeId;hb=ib.objectStoreUrl||jb[gb];}if(pa.creativeType===x.FEED_URL||pa.creativeType===x.NEKO_LPP||!k.isCampaignManager()&&pa.creativeType===x.INLINE_RSVP)return ba(pa,za,ab,ya,ua);var kb={body:pa.body,call_to_action_type:pa.callToActionType,type:pa.creativeType,icon_image_hash:eb,icon_image_url:db,image_crops:ya,image_url:za,image_hash:ab,link_description:pa.linkDescription,link_url:pa.linkUrl,mobile_applink_spec:ua,mobile_product_name:pa.mobileProductName,mobile_store:gb,mobile_store_content_id:fb,object_id:pa.objectId||(pa.actor&&pa.actor.id),object_store_url:hb,url_tags:pa.urlTags,story_id:pa.storyId,title:pa.title,video_id:pa.videoId};return z(kb);}function ba(pa,qa,ra,sa,ta){var ua={object_story_spec:{},type:pa.creativeType,url_tags:pa.urlTags},va={image_crops:sa,image_hash:ra,link:pa.linkUrl,message:pa.body};if(!ra)va.picture=qa;if(pa.linkCaption)va.caption=pa.linkCaption;var wa={link:da(pa)},xa=null,ya=m.getDestinationDetails();if(ya.mobileStoreDestinationType===w.FB_APPLICATION_ONLY)xa=m.getDestinationID();switch(pa.creativeType){case x.FEED_URL:va=v(va,{description:pa.linkDescription||' ',name:pa.title});break;case x.NEKO_LPP:wa=v(wa,{application:xa,app_link:ta?ta.applink_url:(void 0),link_title:pa.title,product_link:pa.productLinkUrl});break;}if(pa.callToActionType)va.call_to_action={type:pa.callToActionType,value:z(wa)};if(pa.actor)ua.object_story_spec.page_id=pa.actor.id;ua.object_story_spec.link_data=z(va);return z(ua);}function ca(pa){var qa,ra=n.getAPIObjective();if(pa.applinkUrl){if(ra===h.CANVAS_APP_ENGAGEMENT||ra===h.CANVAS_APP_INSTALLS){pa.linkUrl=pa.applinkUrl;}else qa={applink_url:pa.applinkUrl};}else if(n.getAPIObjective()===h.MOBILE_APP_ENGAGEMENT)qa={applink_url:''};return qa;}function da(pa){var qa=pa.linkUrl,ra=n.getAPIObjective();if(ra===h.LOCAL_AWARENESS)if(pa.getDirectionsUrl){qa=pa.getDirectionsUrl;}else qa='';return qa;}function ea(pa){var qa=[],ra=pa.imageList;if(ra&&ra.length){for(var sa=0;sa<ra.length;sa++)qa.push(aa(pa,sa));}else qa.push(aa(pa));return qa;}function fa(pa,qa){var ra=pa.image_hash,sa=ra&&qa[ra]?qa[ra]:pa.image_url;if(!sa)return null;return new o({hash:ra,url:sa,crops:pa.image_crops});}function ga(pa,qa){var ra,sa=fa(pa,qa);if(sa)ra=[sa];var ta=pa.story_id;if(ta)ta=''+ta;var ua=pa.video_id?''+pa.video_id:pa.video_id,va={actor:pa.actor,apiCreativeID:pa.id,applinkUrl:pa.applink_url,body:pa.body,callToActionType:pa.call_to_action_type,creativeType:pa.type,getDirectionsUrl:pa.get_directions_url,imageList:ra,linkDescription:pa.link_description,linkUrl:pa.link_url,mobileProductName:pa.mobile_product_name,mobileStore:pa.mobile_store,objectId:pa.object_id,placements:pa.placements,platform:pa.platform,productLinkUrl:pa.product_link_url,storyId:ta,title:pa.title,urlTags:pa.url_tags,videoId:ua},wa=pa.object_story_spec;if(wa){var xa=wa.video_data;if(xa){var ya=null;if(xa.call_to_action&&xa.call_to_action.value)ya=xa.call_to_action.value.link;va=t(va,z({body:xa.description,videoThumbnail:{id:xa.image_url,uri:xa.image_url},videoId:xa.video_id,isVideoCreative:true,linkUrl:ya}));}var za=wa.link_data;if(za&&za.caption)va.linkCaption=za.caption;}return z(va);}function ha(pa,qa,ra){var sa=fa(qa,ra);sa&&pa.imageList.push(sa);}function ia(pa,qa){t(pa,{title:qa.name,body:qa.message,link_description:qa.description,link_url:qa.link,image_url:qa.full_picture||qa.picture});var ra=l.getCanvasAppUrlFromDeepLink(qa.link);if(ra){pa.link_url=ra;pa.applink_url=qa.link;}if(qa.call_to_action){if(qa.call_to_action.type)pa.call_to_action_type=qa.call_to_action.type;var sa=qa.call_to_action.value;if(sa.link_title)pa.title=sa.link_title;if(sa.app_link)pa.applink_url=sa.app_link;if(sa.product_link)pa.product_link_url=sa.product_link;if(sa.link&&sa.link.indexOf('fbgeo')===0)pa.get_directions_url=sa.link;}}function ja(pa){var qa=pa.object_story_spec.link_data;if(!qa)return;var ra={caption:'link_caption',description:'link_description',image_crops:'image_crops',image_hash:'image_hash',message:'body',name:'title',link:'link_url',picture:'image_url'};Object.keys(ra).forEach(function(va){var wa=qa[va];if(wa){if(va==='description'&&wa===' ')wa='';pa[ra[va]]=wa;}});var sa=qa.call_to_action;if(sa){pa.call_to_action_type=sa.type;var ta=sa.value,ua=ta.link;if(ua&&ua.indexOf('fbgeo://')===0)pa.get_directions_url=ua;}}function ka(pa,qa){var ra=(qa&&qa.pages)||[],sa,ta=ra.some(function(ua){if(ua.id!==pa)return false;sa=l.convertPageApiSpecToActor(ua);return true;});if(!ta)if(qa.feedPage){sa=l.convertPageApiSpecToActor(qa.feedPage);}else sa={id:pa};return sa;}function la(pa){if(pa.object_id)pa.object_id=''+pa.object_id;if(pa.story_id)pa.story_id=''+pa.story_id;}function ma(pa,qa){if(pa)la(pa.creative);if(pa.creative.type===p.PAGE_POSTS_V2){switch(pa.objective){case h.CANVAS_APP_ENGAGEMENT:case h.CANVAS_APP_INSTALLS:case h.MOBILE_APP_ENGAGEMENT:case h.MOBILE_APP_INSTALLS:pa.creative.type=x.NEKO_LPP;break;case h.LOCAL_AWARENESS:case h.WEBSITE_CLICKS:case h.WEBSITE_CONVERSIONS:pa.creative.type=x.FEED_URL;break;case h.VIDEO_VIEWS:pa.creative.type=x.AD_VIDEO;break;case h.POST_ENGAGEMENT:case h.OFFER_CLAIMS:break;case h.EVENT_RESPONSES:pa.creative.type=x.INLINE_RSVP;break;default:u(false);}if(qa.pagePost){ia(pa.creative,qa.pagePost);}else if(pa.creative.object_story_spec)ja(pa.creative);pa.creative.actor=ka(pa.creative.object_id,qa);}var ra=r(pa),sa=s(ra);pa.creative.placements=sa;}function na(pa){var qa=ea(pa),ra=qa.shift(),sa=qa.map(function(ta){return {creative:ta,secondary_type:y.MULTI_IMAGE_AD};});return {creative:ra,secondary_adgroups:sa};}function oa(pa,qa){var ra={};ma(pa,qa);ra.primaryState=ga(pa.creative,qa.temporaryImageURLsByHash);if(pa.secondary_adgroups&&pa.secondary_adgroups.length)pa.secondary_adgroups.forEach(function(sa){if(sa.secondary_type===y.MULTI_IMAGE_AD)ha(ra.primaryState,sa.creative,qa.temporaryImageURLsByHash);});return ra;}e.exports={fromAPI:oa,toAPI:na};},null);
  __d("AdsAdgroupValidationMessages",["AdsCreationConfig","fbt"],function(a,b,c,d,e,f,g,h){var i=h._("Your app name includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[h.param("lessThan",'<')]),j=h._("Your text includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[h.param("lessThan",'<')]),k="Your text can't consist of all capital letters.",l="Your text can't include 2 punctuation marks or signs in a row. Please remove these to continue.",m=h._("Your text is too long. It needs to be {max length} characters or less.",[h.param("max length",g.maxBodyLength)]),n="Your text has a word that is longer than 30 characters. Remove this word to continue.",o="A website URL is required when using a call to action button.",p="A display link is required when using a call to action button",q=h._("Your deep link title is too long. It needs to be {maxDeepLinkTitleLength} characters or less.",[h.param("maxDeepLinkTitleLength",g.maxDeepLinkTitleLength)]),r=h._("Your deep link is too long. It needs to be {maxLength} characters or less.",[h.param("maxLength",g.maxDeepLinkLength)]),s="When you spell Facebook in your ads please capitalize it this way: Facebook.",t=h._("Your link description includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[h.param("lessThan",'<')]),u="Your link description can't consist of all capital letters.",v="Your link description can't include 2 punctuation marks or signs in a row. Please remove these to continue.",w=h._("Your link description is too long. It needs to be {maxTitleLength} characters or less.",[h.param("maxTitleLength",g.maxLinkDescriptionLength)]),x="Your link description can't include a word longer than 30 characters. Remove this word to continue.",y=h._("Your headline includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[h.param("lessThan",'<')]),z="Your headline can't contain 2 punctuation marks or signs in a row. Please remove these to continue.",aa="Your headline can't start with punctuation. Please change your headline to continue",ba=h._("Your headline is too long. It needs to be {max length} characters or less.",[h.param("max length",g.maxTitleLength)]),ca="Your headline has a word that is longer than 30 characters. Remove this word to continue.",da={APP_NAME_BAD_CHARS:i,BODY_ALL_CAPS:k,BODY_BAD_CHARS:j,BODY_CONSECUTIVE_PUNCTUATIONS_SIGNS:l,BODY_TOO_LONG:m,BODY_TOO_LONG_WORD:n,CTA_URL_EMPTY:o,CTA_CAPTION_EMPTY:p,DEEP_LINK_TITLE_TOO_LONG:q,DEEP_LINK_TOO_LONG:r,FACEBOOK_CAPITALIZATION:s,LINK_DESCRIPTION_ALL_CAPS:u,LINK_DESCRIPTION_BAD_CHARS:t,LINK_DESCRIPTION_CONSECUTIVE_PUNCTUATIONS_SIGNS:v,LINK_DESCRIPTION_TOO_LONG:w,LINK_DESCRIPTION_TOO_LONG_WORD:x,TITLE_BAD_CHARS:y,TITLE_CONSECUTIVE_PUNCTUATIONS_SIGNS:z,TITLE_START_PUNCTUATION:aa,TITLE_TOO_LONG:ba,TITLE_TOO_LONG_WORD:ca};e.exports=da;},null);
  __d("isInvalidFacebookCapitalization",[],function(a,b,c,d,e,f){var g=function(h){var i=!!(/(\s|^)\b(?!Facebook)[Ff][Aa][Cc][Ee][Bb][Oo][Oo][Kk]\b(?!.com)/).test(h);return i;};e.exports=g;},null);
  __d("AdsCFValidateUtils",["AdCreativeType","AdsAPIObjectives","AdsAPISpec","AdsCFActionTypes","AdsCFCampaignUtils","AdsCFCreativeProperties","AdsCFCreativeUtils","AdsCFCreativeValidator","AdsCFErrorCode","AdsCurrencyFormatter","AdsDispatcher","arrayContains","dotAccess","removeFromArray","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=g.idToType,w=o.errorCodeMap,x=i.CREATIVE_FIELDS_MAP,y=i.CREATIVE_FIELDS_OVERRIDE_MAP,z={actor:w.MISSING_ACTOR,body:w.EMPTY_BODY,imageUrl:w.EMPTY_IMAGE_URL,imageList:w.EMPTY_IMAGE_URL,linkUrl:w.MISSING_LINK_URL,objectId:w.MISSING_DESTINATION,storyId:w.MISSING_STORY_ID,title:w.MISSING_TITLE,videoId:w.MISSING_VIDEO_ID,videoThumnail:w.MISSING_VIDEO_THUMBNAIL};function aa(ia,ja){if(!ia.name.trim())ja[w.CAMPAIGN_GROUP_CREATE_MISSING_NAME]="Please specify a Campaign name.";}function ba(ia,ja){if(!ia.name.trim())ja[w.CAMPAIGN_CREATE_MISSING_FRIENDLY_NAME]="Please specify an Ad Set name.";}function ca(ia,ja,ka,la){if(ja.bidOption=='clicks'&&ja.cpcPrice*2>ia.budget){var ma=p.formatCurrency(ka.currency,ja.cpcPrice),na=p.formatCurrency(ka.currency,ja.cpcPrice*2);la[w.ADGROUP_CAMPAIGN_BUDGET_TOO_LOW_FOR_ADGROUP_BID]=u._("Campaign Budget Too Low: The campaign budget you have set is too low. You bid {CPC bid}, but the budget needs to be at least twice your cost per click (CPC) bid, or {minimum budget}.",[u.param("CPC bid",ma),u.param("minimum budget",na)]);}}function da(ia,ja){var ka=ia.creativeType,la=l.requiredFieldsForType(ka).slice(0),ma=[];if(r(la,'MULTI_IMAGE_OR_VIDEO')){t(la,'MULTI_IMAGE_OR_VIDEO');if(m.isVideoCreative(ia)){ma.push('videoId');ma.push('videoThumbnail');}else ma.push('MULTI_IMAGE');ma=Array.prototype.concat(la,ma);}else ma=la;var na=v[ka].validFields,oa={body:[],title:[]};ma.forEach(function(pa){if(pa==='MULTI_IMAGE'){var qa=ia.imageList,ra=ia.imageUrl||ia.imageHash||(qa&&qa.length);if(!ra){ja[w.EMPTY_IMAGE_URL]="Please choose an image for your ad.";}else if(qa&&qa.length)qa.some(function(ta){var ua=ta.getValidationMap();return Object.keys(ua).some(function(va){if(ta.hasValidationError(va)){ja[w.INVALID_AD_IMAGE_SIZE]="You are using an image that does not meet size requirements. Please adjust the size of your image or select a different one.";return true;}});});return;}if(Array.isArray(pa)){for(var sa=0;sa<pa.length;sa++)if(ia[pa[sa]])return;pa=pa[0];}if(!ia[pa])ja[z[pa]]=y[pa]||x[pa];});na.map(function(pa){var qa=ia[pa];if(!qa)return;switch(pa){case 'body':oa.body=n.validateBody(qa,ka,ja);break;case 'title':oa.title=n.validateTitle(qa,ja);break;case 'linkDescription':oa.linkDescription=n.validateLinkDescription(qa,ja);break;default:break;}});}function ea(ia,ja,ka){var la=s(ia,'geo_locations.custom_locations')||[],ma="Location Required: Before you can place your order, you need to enter an address in the targeting section so you can reach people near your business.";if(ja===h.LOCAL_AWARENESS&&la.length===0)ka[w.INVALID_CUSTOM_LOCATION]=ma;la.forEach(function(na){if(!na.latitude&&!na.longitude)ka[w.INVALID_CUSTOM_LOCATION]=na.address_string?"Missing or incorrectly formatted address: Please check the address you entered for your business.":ma;});}function fa(ia,ja,ka,la,ma){var na=k.getCampaignCannotBeSelectedReason(ia,ja,ka,la);if(na)ma[w.AD_SET_CAN_NOT_BE_SELECTED]=na;}function ga(){q.handleUpdateFromViewAction({actionType:j.CODE_MAP_RESET});}function ha(ia){q.handleUpdateFromViewAction({actionType:j.CODE_MAP_CHANGE,errors:ia});}e.exports={clearValidationErrors:ga,onValidationErrors:ha,validateCampaign:ba,validateCampaignGroup:aa,validateCreative:da,validatePricing:ca,validateTargeting:ea,validateDestination:fa};},null);
  __d("AdsImageDataLoader",["AdsAPIAdAccountFields","AdsAPIImageFields","GraphAPI","Promise","adsCMGKCheck","getDOMImageSize"],function(a,b,c,d,e,f,g,h,i,j,k,l){'use strict';var m=[h.HASH,h.HEIGHT,h.WIDTH,h.URL,h.URL_128];function n(q,r){var s={fields:m};if(r&&r.length)s.hashes=r;var t=k('ads_cm_graph_api_2_2')?i('2.2'):i('1.0');return t.account(q).edge(g.ADIMAGES).get(s);}function o(q){return new j(function(r,s){var t=function(u,v,w){var x={data:{height:v,url:w,width:u}};if(u&&v){r(x);}else s(x);};l(q,t);});}var p={loadImageDimensionsForURL:o,loadImagesForAccountID:n};e.exports=p;},null);
  __d("AdsImageDataDispatcher",["AdsDispatcher","AdsImageActionType","AdsImageDataLoader"],function(a,b,c,d,e,f,g,h,i){'use strict';function j(p,q){g.handleUpdateFromServerResponse({accountID:p,actionType:h.LOAD_IMAGES_SUCCESS,images:q});}function k(p){g.handleUpdateFromServerResponse({actionType:h.LOAD_IMAGES_ERROR,error:p});}function l(p,q,r){g.handleUpdateFromServerResponse({actionType:h.LOAD_DIMENSION_SUCCESS,height:r,url:p,width:q});}function m(p){g.handleUpdateFromServerResponse({actionType:h.LOAD_DIMENSION_ERROR,url:p});}function n(){}n.prototype.loadImagesForAccountID=function(p,q){var r=function(s){j(p,s.data);if(typeof s.next==='function'){s.next().done(r,k);}else{p=null;r=null;}};i.loadImagesForAccountID(p,q).done(r,k);};n.prototype.loadImageDimensionsForURL=function(p){var q=function(r){var s=r.data;l(s.url,s.width,s.height);};i.loadImageDimensionsForURL(p).done(q,m.bind(null,p));};var o=new n();e.exports=o;},null);
  __d("AdsImageStore",["AdsBaseStore","AdsImageActionType","AdsImageDataDispatcher","deepFreezeValue","curry"],function(a,b,c,d,e,f,g,h,i,j,k){'use strict';var l=[];j(l);var m={};j(m);var n={};for(var o in g)if(g.hasOwnProperty(o))q[o]=g[o];var p=g===null?null:g.prototype;q.prototype=Object.create(p);q.prototype.constructor=q;q.__superConstructor__=g;function q(){g.call(this);this.$AdsImageStoreClass0={};}q.prototype.getStoreName=function(){return 'AdsImageStore';};q.prototype.onDispatchToken=function(t){var u=t.action;switch(u.actionType){case h.LOAD_IMAGES_SUCCESS:this.$AdsImageStoreClass1(u.accountID,u.images);break;case h.LOAD_DIMENSION_SUCCESS:var v={width:u.width,height:u.height};j(v);n[u.url]=v;break;case h.LOAD_DIMENSION_ERROR:delete n[u.url];break;default:return;}this.inform('change');};q.prototype.getImages=function(t){var u=this.$AdsImageStoreClass0[t];if(u===m)return l;if(u)return u.list;this.$AdsImageStoreClass0[t]=m;i.loadImagesForAccountID(t);return l;};q.prototype.getImageByHash=function(t,u){var v=this.$AdsImageStoreClass0[t];if(v===m)return null;if(!v){this.getImages(t);return null;}var w=v.map[u];if(w===m)return null;if(typeof w==='number')return v.list[w];v.map[u]=m;i.loadImagesForAccountID(t,[u]);return null;};q.prototype.getImageDimensionsByURL=function(t){var u=n[t];if(u)return u===m?null:u;n[t]=m;i.loadImageDimensionsForURL(t);return null;};q.prototype.$AdsImageStoreClass1=function(t,u){var v=this.$AdsImageStoreClass0[t];if(!(v&&v!==m))v={list:[],map:{}};u.forEach(k(this.$AdsImageStoreClass2,v.list,v.map));this.$AdsImageStoreClass0[t]=v;};q.prototype.$AdsImageStoreClass2=function(t,u,v){if(v.url&&v.width&&v.height){var w={width:v.width,height:v.height};j(w);n[v.url]=w;}var x=r(v),y=u[x];if(typeof y==='number'){t[y]=v;}else{t.push(v);y=t.length-1;u[x]=y;}};function r(t){if(t.stockImageID)return t.stockImageID;return t.hash||t.url;}var s=new q();e.exports=s;},null);
  __d("BoostedComponentCreativeStore",["AdsAPIAdgroupFields","AdsAPIObjectives","AdsCFCreativeAPIConverter","AdsCFCreativePlacementUtils","AdsCFCreativeValidator","AdsCFErrorCode","AdsCFValidateUtils","AdsDispatcher","AdsImageActionType","AdsImageLegacy","AdsImageValidation","AdImageSpecsUtils","AdsImageStore","AdsUtils","ApiAdCreativeFields","ApiCreativeTypes","BoostedComponentConfigPayload","BoostedComponentClientEvent","BoostedComponentBaseStore","WebApiApplication","areEqual","adsGetCreativeTypeByCreativeFields"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){var ca=t.flip(u),da=function(ha){Object.keys(ha).forEach(function(ia){if(!ca[ia])throw new Error('"'+ia+'" is not a valid API creative spec field!');});};for(var ea in y)if(y.hasOwnProperty(ea))ga[ea]=y[ea];var fa=y===null?null:y.prototype;ga.prototype=Object.create(fa);ga.prototype.constructor=ga;ga.__superConstructor__=y;function ga(ha,ia,ja){"use strict";var ka=this.$BoostedComponentCreativeStore0.bind(this);this.$BoostedComponentCreativeStore1={};this.$BoostedComponentCreativeStore2=null;this.dispatchToken=ha.register(ka);this.adsDispatcherDispatchToken=n.register(ka);this.accessToken=ia;this.clientID=ja;}ga.prototype.getAdAccountID=function(){"use strict";return this.$BoostedComponentCreativeStore2;};ga.prototype.getBody=function(){"use strict";return this.$BoostedComponentCreativeStore1[u.BODY];};ga.prototype.getBodyValidationErrors=function(){"use strict";var ha={};if(this.getBody()!==null&&this.getBody()!==(void 0))k.validateBody(this.getBody(),this.getCreativeType(),ha);return ha;};ga.prototype.getImageValidationError=function(){"use strict";var ha=j.getSupportedPlacements(this.getCreateFlowCreativeSpec(),h.PAGE_LIKES),ia=r.getCropImageSpecsForAdType(this.getCreativeType(),ha),ja=this.getImageLegacy(),ka;if(ja)ia.forEach(function(la){q.validateNow(ja,la);var ma=ja.validationMap[la.placement];if(ma){ka=ma.errorMessage;return true;}});return ka;};ga.prototype.getCreateFlowCreativeSpec=function(){"use strict";var ha={},ia={temporaryImageURLsByHash:{}},ja=null;if(this.getImageHash()&&!this.getImageURL()){var ka='placeholderurl.com';ia.temporaryImageURLsByHash[this.getImageHash()]=ka;}ha[g.CREATIVE]=this.getCreativeSpec();ha[g.CREATIVE][u.TYPE]=this.getCreativeType();ja=i.fromAPI(ha,ia);return ja.primaryState;};ga.prototype.getCreativeSpec=function(){"use strict";return t.clone(this.$BoostedComponentCreativeStore1);};ga.prototype.getCreativeType=function(){"use strict";var ha=this.$BoostedComponentCreativeStore1[u.TYPE];if(ha!==(void 0)&&ha!==null){return ha;}else{var ia=ba(this.$BoostedComponentCreativeStore1[u.OBJECT_INSTAGRAM_ID],this.$BoostedComponentCreativeStore1[u.OBJECT_TYPE],this.$BoostedComponentCreativeStore1[u.VIDEO_LIST]);return ia||v.EXOTIC_OR_INVALID;}};ga.prototype.getImageCrops=function(){"use strict";return this.getCreativeSpec()[u.IMAGE_CROPS];};ga.prototype.getImageHash=function(){"use strict";return this.$BoostedComponentCreativeStore1[u.IMAGE_HASH];};ga.prototype.getImageLegacy=function(){"use strict";var ha=this.$BoostedComponentCreativeStore3()||this.$BoostedComponentCreativeStore4();return ha?new p(ha):null;};ga.prototype.getImageURL=function(){"use strict";return this.$BoostedComponentCreativeStore1[u.IMAGE_URL];};ga.prototype.getIsCreativeOptional=function(){"use strict";return !!this.$BoostedComponentCreativeStore1[u.CREATIVE_OPTIONAL];};ga.prototype.getIsValid=function(){"use strict";return this.$BoostedComponentCreativeStore5().isValid&&!this.getImageValidationError();};ga.prototype.getValidationErrors=function(){"use strict";return this.$BoostedComponentCreativeStore5().errorCodeToMessage;};ga.prototype.setCreativeSpec=function(ha){"use strict";this.$BoostedComponentCreativeStore1={};this.updateCreativeSpec(ha);};ga.prototype.setImageLegacy=function(ha){"use strict";var ia={};ia[u.IMAGE_HASH]=ha.getAdAccountHash();ia[u.IMAGE_URL]=ha.getUrl();ia[u.IMAGE_CROPS]=ha.getCrops();this.updateCreativeSpec(ia);};ga.prototype.updateCreativeSpec=function(ha){"use strict";var ia=this.getCreativeSpec();da(ha);Object.assign(ia,ha);if(!aa(ia,this.getCreativeSpec())){this.$BoostedComponentCreativeStore1=ia;this.inform('change');}};ga.prototype.updateImageCrops=function(ha){"use strict";var ia={},ja=this.getImageCrops()||{};Object.assign(ja,ha);ia[u.IMAGE_CROPS]=ja;this.updateCreativeSpec(ia);};ga.prototype.$BoostedComponentCreativeStore3=function(){"use strict";var ha=null;this.$BoostedComponentCreativeStore6();if(this.$BoostedComponentCreativeStore7()&&this.getAdAccountID()){ha=s.getImageByHash(this.getAdAccountID(),this.$BoostedComponentCreativeStore7());if(ha)ha=Object.assign({},ha,{crops:this.getImageCrops()});}return ha;};ga.prototype.$BoostedComponentCreativeStore4=function(){"use strict";var ha={hash:this.getImageHash(),url:this.getImageURL(),crops:this.getImageCrops()},ia=this.getImageURL()?s.getImageDimensionsByURL(this.getImageURL()):null;if(!ia)return null;Object.assign(ha,ia);return ha;};ga.prototype.$BoostedComponentCreativeStore0=function(ha){"use strict";var ia=ha.action;switch(ia.actionType){case x.DATA_LOADED:if(!ia.data[w.CREATIVE_STORE_DATA]){this.inform('change');return;}this.setCreativeSpec(ia.data[w.CREATIVE_STORE_DATA]);this.$BoostedComponentCreativeStore2=ia.data[w.SPECS].adAccountID;break;case x.UPDATE_CREATIVE:this.updateCreativeSpec(ia.creativeSpec);break;case x.UPDATE_IMAGE:this.setImageLegacy(ia.image);break;case x.UPDATE_IMAGE_CROPS:this.updateImageCrops(ia.imageCrops);break;case x.UPDATE_ACCOUNT:if(ia.accountID!==this.$BoostedComponentCreativeStore2){this.$BoostedComponentCreativeStore2=ia.accountID;this.inform('change');}break;case o.LOAD_IMAGES_SUCCESS:case o.LOAD_DIMENSION_SUCCESS:n.waitFor([s.dispatchToken]);this.inform('change');break;default:}};ga.prototype.$BoostedComponentCreativeStore7=function(){"use strict";return this.getImageHash()||this.getImageURL();};ga.prototype.$BoostedComponentCreativeStore6=function(){"use strict";if(this.accessToken&&this.clientID)z.init(this.accessToken,this.clientID);};ga.prototype.$BoostedComponentCreativeStore5=function(){"use strict";var ha=this.getCreateFlowCreativeSpec(),ia={},ja=false,ka=l.errorCodeMap.EMPTY_IMAGE_URL,la=false,ma=true;try{m.validateCreative(ha,ia);}catch(na){ja=true;}if(ia[ka]&&this.getCreativeType()===v.INLINE_FAN&&this.getIsCreativeOptional())delete ia[ka];la=!!Object.keys(ia).length;ma=!la&&!ja;return {isValid:ma,errorCodeToMessage:ia};};ga.prototype.setCreativeInvalidReason_DONOTUSE=function(ha){"use strict";this.$BoostedComponentCreativeStore8=ha;};ga.prototype.getCreativeInvalidReason_DONOTUSE=function(){"use strict";return this.$BoostedComponentCreativeStore8;};e.exports=ga;},null);
  __d("BoostedComponentDialogButtonStore",[],function(a,b,c,d,e,f){function g(h,i){"use strict";this.$BoostedComponentDialogButtonStore0=h;this.$BoostedComponentDialogButtonStore1=i;}g.prototype.getLabel=function(){"use strict";return this.$BoostedComponentDialogButtonStore0;};g.prototype.getIconUrl=function(){"use strict";return this.$BoostedComponentDialogButtonStore1;};e.exports=g;},null);
  __d("BoostedComponentStoreType",[],function(a,b,c,d,e,f){var g={CONTEXT_STORE:'context_store',CREATIVE_STORE:'creative_store',PRIVACY_GATING_STORE:'privacy_gating_store',URI_STORE:'uri_store',DIALOG_UI_STORE:'dialog_ui_store',LOGGER_STORE:'logger_store',isRequiredForDialogRender:function(h){var i=[this.DIALOG_UI_STORE,this.LOGGER_STORE];return i.indexOf(h)==-1;}};e.exports=g;},null);
  __d("BoostedComponentDialogUIStore",["BoostedComponentBaseStore","BoostedComponentClientEvent","BoostedComponentConfigPayload","BoostedComponentDataState","BoostedComponentDialogRenderServerActions","BoostedComponentStoreType"],function(a,b,c,d,e,f,g,h,i,j,k,l){'use strict';for(var m in g)if(g.hasOwnProperty(m))o[m]=g[m];var n=g===null?null:g.prototype;o.prototype=Object.create(n);o.prototype.constructor=o;o.__superConstructor__=g;function o(p,q,r){this.$BoostedComponentDialogUIStore0=p;this.$BoostedComponentDialogUIStore1=j.NOT_INITIALIZED;this.$BoostedComponentDialogUIStore2=false;this.$BoostedComponentDialogUIStore3=r;this.$BoostedComponentDialogUIStore4=new k(p,q);this.dispatchToken=p.register(function(s){var t=s.action;switch(t.actionType){case h.INIT_DATA_LOADED:this.$BoostedComponentDialogUIStore1=j.INIT_DATA_LOADED;this.$BoostedComponentDialogUIStore5=t.data[i.DIALOG_UI_STORE_DATA];break;case h.DATA_LOADED:this.$BoostedComponentDialogUIStore1=j.ACTIVE;this.$BoostedComponentDialogUIStore0.waitFor(this.$BoostedComponentDialogUIStore6());this.$BoostedComponentDialogUIStore3.loadData(t.data);this.setDialogState(j.ACTIVE);break;case h.FETCH_CONFIG_DATA_FAILED:this.setDialogState(j.ERROR);break;case h.ON_AUTO_OPEN:this.setDialogState(j.LOADING);this.$BoostedComponentDialogUIStore4.fetchDialogData();this.$BoostedComponentDialogUIStore7(true);break;case h.ON_MOUSE_ENTER:if(this.$BoostedComponentDialogUIStore1!==j.INIT_DATA_LOADED||this.$BoostedComponentDialogUIStore8())return;this.setDialogState(j.LOADING);this.$BoostedComponentDialogUIStore4.fetchDialogData();break;case h.ON_UPSELL_BUTTON_CLICK:if(this.$BoostedComponentDialogUIStore1===j.INIT_DATA_LOADED){this.setDialogState(j.LOADING);this.$BoostedComponentDialogUIStore4.fetchDialogData();}this.$BoostedComponentDialogUIStore7(true);break;case h.ON_DIALOG_CANCEL_BUTTON_CLICK:case h.SUBMIT_SUCCESS:this.$BoostedComponentDialogUIStore7(false);break;default:return;}this.inform('change');}.bind(this));}o.prototype.getDialogShown=function(){return this.$BoostedComponentDialogUIStore2;};o.prototype.getDialogState=function(){return this.$BoostedComponentDialogUIStore1;};o.prototype.setDialogState=function(p){this.$BoostedComponentDialogUIStore1=p;this.$BoostedComponentDialogUIStore3.onConfigUpdate();};o.prototype.$BoostedComponentDialogUIStore8=function(){if(!this.$BoostedComponentDialogUIStore5)return false;return !!this.$BoostedComponentDialogUIStore5.disableDataPrefetch;};o.prototype.$BoostedComponentDialogUIStore7=function(p){this.$BoostedComponentDialogUIStore2=p;this.$BoostedComponentDialogUIStore3.onConfigUpdate();};o.prototype.isDataReady=function(){return (this.$BoostedComponentDialogUIStore1!==j.INIT_DATA_LOADED&&this.$BoostedComponentDialogUIStore1!==j.LOADING);};o.prototype.$BoostedComponentDialogUIStore6=function(){var p=this.$BoostedComponentDialogUIStore3.getStores(),q=Object.keys(p),r=[];for(var s=0;s<q.length;s++)if(l.isRequiredForDialogRender(q[s]))r.push(p[q[s]].getDispatchToken());return r;};e.exports=o;},null);
  __d("BoostedComponentLoggerStore",["BoostedComponentBaseStore","BoostedComponentConstants","BoostedComponentDataState","BoostedComponentClientEvent","BoostedComponentStoreType","BoostedPostLogging"],function(a,b,c,d,e,f,g,h,i,j,k,l){for(var m in g)if(g.hasOwnProperty(m))o[m]=g[m];var n=g===null?null:g.prototype;o.prototype=Object.create(n);o.prototype.constructor=o;o.__superConstructor__=g;function o(p,q,r){"use strict";this.$BoostedComponentLoggerStore0=p;this.$BoostedComponentLoggerStore1=q;this.$BoostedComponentLoggerStore2=r;this.$BoostedComponentLoggerStore3=i.NOT_INITIALIZED;this.dispatchToken=p.register(function(s){var t=s.action;switch(t.actionType){case j.INIT_DATA_LOADED:this.$BoostedComponentLoggerStore0.waitFor([this.$BoostedComponentLoggerStore4().getDispatchToken()]);switch(this.$BoostedComponentLoggerStore4().getAppID()){case h.BOOSTED_POSTS_APP_ID:this.$BoostedComponentLoggerStore5=l;break;}this.$BoostedComponentLoggerStore3=i.ACTIVE;this.inform('change');break;}if(!this.$BoostedComponentLoggerStore5)return;this.$BoostedComponentLoggerStore5.log(t.actionType,this.$BoostedComponentLoggerStore6(this.$BoostedComponentLoggerStore7(t.actionType)));this.$BoostedComponentLoggerStore8(t);}.bind(this));}o.prototype.$BoostedComponentLoggerStore8=function(p){"use strict";switch(p.actionType){case j.DATA_LOADED:if(this.$BoostedComponentLoggerStore9().getDialogShown())this.$BoostedComponentLoggerStorea();break;case j.ON_UPSELL_BUTTON_CLICK:if(this.$BoostedComponentLoggerStore9().isDataReady())this.$BoostedComponentLoggerStorea();break;}};o.prototype.$BoostedComponentLoggerStore7=function(p){"use strict";var q={},r=this.$BoostedComponentLoggerStore9();switch(p){case j.ON_AUTO_OPEN:this.$BoostedComponentLoggerStoreb=Date.now();this.$BoostedComponentLoggerStorec=Date.now();break;case j.ON_MOUSE_ENTER:if(!this.$BoostedComponentLoggerStoreb)this.$BoostedComponentLoggerStoreb=Date.now();break;case j.ON_UPSELL_BUTTON_CLICK:if(!r.isDataReady()){this.$BoostedComponentLoggerStorec=Date.now();}else this.$BoostedComponentLoggerStored=0;break;case j.DATA_LOADED:q.processing_time=Date.now()-this.$BoostedComponentLoggerStoreb;if(this.$BoostedComponentLoggerStorec)this.$BoostedComponentLoggerStored=Date.now()-this.$BoostedComponentLoggerStorec;delete this.$BoostedComponentLoggerStoreb;delete this.$BoostedComponentLoggerStorec;break;case j.CREATE_DIALOG_OPEN:q.processing_time=this.$BoostedComponentLoggerStored;delete this.$BoostedComponentLoggerStored;break;}return q;};o.prototype.$BoostedComponentLoggerStorea=function(){"use strict";this.$BoostedComponentLoggerStore5.log(j.CREATE_DIALOG_OPEN,this.$BoostedComponentLoggerStore6(this.$BoostedComponentLoggerStore7(j.CREATE_DIALOG_OPEN)));};o.prototype.$BoostedComponentLoggerStore6=function(p){"use strict";var q=p||{},r=this.$BoostedComponentLoggerStore9();q.page_id=this.$BoostedComponentLoggerStore4().getPageID();q.post_id=this.$BoostedComponentLoggerStore4().getPostID();q.config_state=r.getDialogState();q.placement=this.$BoostedComponentLoggerStore4().getPlacement();if(r.getDialogState()==i.ACTIVE)q.ad_account_id=this.$BoostedComponentLoggerStore2.getSpecs().getAdAccountID();return q;};o.prototype.$BoostedComponentLoggerStore4=function(){"use strict";return this.$BoostedComponentLoggerStore1[k.CONTEXT_STORE];};o.prototype.$BoostedComponentLoggerStore9=function(){"use strict";return this.$BoostedComponentLoggerStore1[k.DIALOG_UI_STORE];};e.exports=o;},null);
  __d("BoostedComponentURIStore",["BoostedComponentBaseStore","BoostedComponentConfigPayload","BoostedComponentDataState","BoostedComponentClientEvent","invariant"],function(a,b,c,d,e,f,g,h,i,j,k){for(var l in g)if(g.hasOwnProperty(l))n[l]=g[l];var m=g===null?null:g.prototype;n.prototype=Object.create(m);n.prototype.constructor=n;n.__superConstructor__=g;function n(o){"use strict";this.$BoostedComponentURIStore0={};this.$BoostedComponentURIStore1=i.NOT_INITIALIZED;this.dispatchToken=o.register(function(p){var q=p.action;switch(q.actionType){case j.DATA_LOADED:this.$BoostedComponentURIStore0=q.data[h.URI_STORE_DATA];this.$BoostedComponentURIStore1=i.ACTIVE;this.inform('change');break;}}.bind(this));}n.prototype.getLink=function(o){"use strict";return this.$BoostedComponentURIStore0[o]?this.$BoostedComponentURIStore0[o]:'#';};n.prototype.getNullableLink=function(o){"use strict";return this.$BoostedComponentURIStore0[o];};e.exports=n;},null);
  __d("AdsBulkValueTypes",[],function(a,b,c,d,e,f){"use strict";function g(){for(var h=[],i=0,j=arguments.length;i<j;i++)h.push(arguments[i]);this.$AdsBulkValueTypes0=h;}g.prototype.getTypes=function(){return this.$AdsBulkValueTypes0;};e.exports=g;},null);
  __d("isSpecEmpty",[],function(a,b,c,d,e,f){'use strict';function g(i){if(i===(void 0)||i===null||i==='')return true;if(Array.isArray(i))return i.length===0;var j,k;if(h(i)){for(j in i){k=i[j];if(!g(k))return false;}return true;}return false;}function h(i){return Object.prototype.toString.call(i)==='[object Object]';}e.exports=g;},null);
  __d("areSpecsEqual",["invariant","isSpecEmpty"],function(a,b,c,d,e,f,g,h){'use strict';function i(m,n){if(m===n)return true;var o=h(m),p=h(n);if(o||p)return o===p;var q=typeof m;switch(q){case 'number':return isNaN(m)?false:m===n;case 'boolean':case 'string':return m===n;case 'object':if(Array.isArray(m))return Array.isArray(n)?j(m,n):false;if(!(l(m)&&l(n))){g(false);return false;}var r=Object.keys(m).length,s=Object.keys(n).length;if(r<s){var t=m;m=n;n=t;}for(var u in m)if(!i(m[u],n[u]))return false;return true;default:g(false);}}function j(m,n){if(m.length!==n.length)return false;if(m.length===1)return i(m[0],n[0]);for(var o=0,p=m.length;o<p;o++)if(!k(m[o],n))return false;return true;}function k(m,n){for(var o=0,p=n.length;o<p;o++)if(i(m,n[o]))return true;return false;}function l(m){return Object.prototype.toString.call(m)==='[object Object]';}e.exports=i;},null);
  __d("AdsUniformSetValue",["AdsUniformValue","areSpecsEqual"],function(a,b,c,d,e,f,g,h){for(var i in g)if(g.hasOwnProperty(i))k[i]=g[i];var j=g===null?null:g.prototype;k.prototype=Object.create(j);k.prototype.constructor=k;k.__superConstructor__=g;function k(){"use strict";if(g!==null)g.apply(this,arguments);}k.create=function(l){"use strict";var m=l[0];for(var n=1;n<l.length;n++)if(!h(l[n],m))return null;return new k(m);};e.exports=k;},null);
  __d("AdsBulkValueTypesConfig",["AdsBulkValueTypes","AdsEmptyValue","AdsMixedValue","AdsNullValue_LEGACY","AdsUniformSetValue","AdsUniformValue"],function(a,b,c,d,e,f,g,h,i,j,k,l){"use strict";var m={EMPTY_SET_MIXED:new g(h,k,i),EMPTY_UNIFORM_MIXED:new g(h,l,i),MIXED:new g(i),NULL:new g(j),NULL_UNIFORM_MIXED:new g(j,l,i),NULL_SET_MIXED:new g(j,k,i),UNIFORM:new g(l),UNIFORM_OR_MIXED:new g(l,i),UNIFORM_SET_OR_MIXED:new g(k,i)};e.exports=m;},null);
  __d("AdsPropTypes",["React"],function(a,b,c,d,e,f,g){var h={bulk:i};function i(j){return g.PropTypes.oneOfType(j.getTypes().map(function(k){return g.PropTypes.instanceOf(k);}));}e.exports=h;},null);
  __d("getValueDeep",[],function(a,b,c,d,e,f){function g(h,i){var j=h,k;for(var l=0,m=i.length;l<m;l++){var n=i[l];if(!(n in j))return (void 0);k=j[n];if(!k)return k;j=k;}return k;}e.exports=g;},null);
  __d("setValueDeep",["invariant"],function(a,b,c,d,e,f,g){function h(i,j,k){var l=i,m,n=j.length-1;for(var o=0;o<=n;o++){m=j[o];if(o===n){l[m]=k;return;}if(!(m in l)){l[m]={};}else g(typeof l[m]==='object'&&l[m]);l=l[m];}}e.exports=h;},null);
  __d("AdsBulkValueUtils",["AdsBulkValue","AdsBulkValueTypes","AdsEmptyValue","AdsMixedValue","AdsNullValue_LEGACY","AdsPropTypes","AdsUniformValue","ImmutableObject","React","Set","StrSet","areEqual","areSpecsEqual","curry","emptyFunction","getValueDeep","invariant","mapObject","setValueDeep"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){var z=[],aa=new n(),ba={aggregateDeep:ga,aggregate:fa,areObjectsEqual:sa,areValuesEqual:ra,cleanBulkSpec:eb,deaggregateDeep:ha,deaggregateDeepByID:ia,getObjectDiff:ta,getUniformValue:da,getUniformValueDeep:ea,getValue:ab,getValueDeepAt:bb,getValueOrMixed:ca,hasBulkValue:xa,areBulkValuesEqual:ya,hasValueDeep:za,schemaToShape:ka,traverseSpec:db,wrapValue:cb,MIXED_VALUE:aa};function ca(fb){if(fb instanceof k){return null;}else if(fb instanceof m){return fb.getValue();}else if(fb instanceof j){return aa;}else w(false);}function da(fb,gb){if(fb instanceof m){return fb.getValue();}else return gb;}function ea(fb,gb,hb){if(!fb)return hb;var ib=ba.deaggregateDeep(fb,gb);if(ib.length<=1)return ib[0];var jb=ib[0];if(ib.every(function(kb){return r(kb,jb);})){return jb;}else return hb;}function fa(fb,gb){var hb;fb.getTypes().some(function(ib){hb=ib.create(gb);if(hb)return true;});if(hb instanceof m&&!(hb instanceof i)&&hb.getValue()===(void 0))return (void 0);w(hb);return hb;}function ga(fb,gb){var hb=t(oa,gb),ib=la(fb,hb);return ib;}function ha(fb,gb){var hb=[],ib=0;while(ib<gb){var jb={},kb=t(pa,jb,ib);la(fb,kb);hb[ib]=jb;ib++;}return hb;}function ia(fb){if(!fb.id&&!wa(fb))return [];w(fb.id instanceof g);return ha(fb,fb.id.getValues().length);}var ja=u.thatReturns();ja.isRequired=u.thatReturns();function ka(fb){return ja;}function la(fb,gb){return ma(fb,gb,{},[]);}function ma(fb,gb,hb,ib){w(na(fb));if(fb instanceof h||fb instanceof g)return gb(fb,ib);for(var jb in fb)if(fb[jb]!==(void 0)){ib.push(jb);hb[jb]=ma(fb[jb],gb,{},ib);ib.pop();}return hb;}function na(fb){if(!fb||typeof fb!=='object'||Array.isArray(fb))return false;return true;}function oa(fb,gb,hb){var ib=[],jb=false;fb.forEach(function(lb){var mb=v(lb,hb);if(mb!==(void 0))jb=true;ib.push(mb);});var kb;gb.getTypes().some(function(lb){if(!jb&&lb!==k&&lb!==i)return;kb=lb.create(ib);if(kb)return true;});if(jb){w(kb);}else w(kb===(void 0)||kb instanceof k||kb instanceof i);return kb;}function pa(fb,gb,hb,ib){var jb=hb.getValueForIndex(gb);if(jb!==(void 0))y(fb,ib,hb.getValueForIndex(gb));}function qa(fb){return (fb===(void 0)||fb===null||fb instanceof k||fb instanceof i);}function ra(fb,gb){if(fb===gb)return true;var hb=qa(fb),ib=qa(gb);if(hb||ib)return hb&&ib;var jb=fb instanceof g?fb.getValues():z,kb=gb instanceof g?gb.getValues():z;if(jb.length!==kb.length)return false;return !kb.some(function(lb,mb){return !s(lb,jb[mb]);});}function sa(fb,gb){if(fb===gb)return true;var hb=qa(fb),ib=qa(gb);if(hb||ib)return hb&&ib;if(!ua(fb)||!ua(gb))return r(fb,gb);var jb=Object.keys(fb).concat(Object.keys(gb));jb=new p(jb);return Array.from(jb).every(function(kb){var lb=fb[kb],mb=gb[kb];if(lb instanceof g||mb instanceof g){if(!ra(lb,mb))return false;}else if(!sa(lb,mb))return false;return true;});}function ta(fb,gb){if(qa(fb)||qa(gb))return fb;var hb=Object.keys(fb).concat(Object.keys(gb));hb=new p(hb);var ib={};Array.from(hb).forEach(function(jb){var kb=gb[jb],lb=fb[jb];if(kb instanceof g||lb instanceof g){if(!ra(kb,lb))ib[jb]=lb;}else if(!sa(kb,lb))ib[jb]=lb;});if(fb.id)ib.id=fb.id;return ib;}function ua(fb){return Object.prototype.toString.call(fb)==='[object Object]';}function va(fb){var gb;for(gb in fb)return false;return true;}function wa(fb){var gb,hb;for(gb in fb){hb=fb[gb];if(hb===(void 0)||hb instanceof k)continue;if(hb instanceof g)return true;if(ua(hb)){if(wa(hb))return true;continue;}w(false);}return false;}function xa(fb){var gb,hb;for(gb in fb){hb=fb[gb];if(hb===(void 0))continue;if(hb instanceof g)return true;if(ua(hb)){if(xa(hb))return true;continue;}w(false);}return false;}function ya(fb,gb){var hb=new q(fb.getValues()),ib=new q(gb.getValues());return hb.equals(ib);}function za(fb,gb){var hb;if(gb.length){hb=function(jb,kb){return !!gb.some(function(lb){return v(lb,kb)!==(void 0);});};}else hb=function(){return false;};var ib=la(fb,hb);return ib;}function ab(fb){if(fb instanceof k){return null;}else if(fb instanceof m){return fb.getValue();}else if(fb instanceof j){return aa;}else w(false);}function bb(fb,gb){var hb={},ib=t(pa,hb,gb);la(fb,ib);return va(hb)?(void 0):hb;}function cb(fb){if(fb instanceof g)return fb;return new m(fb);}function db(fb,gb){Object.keys(fb).forEach(function(hb){if(fb[hb] instanceof g){gb(fb[hb]);}else if(Object.prototype.toString.call(fb[hb])==='[object Object]')db(fb[hb],gb);});}function eb(fb){var gb={},hb=[],ib=function(jb){if(jb instanceof g){if(!qa(jb))y(gb,hb,jb);}else if(ua(jb))Object.keys(jb).forEach(function(kb){hb.push(kb);ib(jb[kb]);hb.pop();});};ib(fb);return new n(gb);}e.exports=ba;},null);
  __d("hasAdblock",[],function(a,b,c,d,e,f){var g;function h(l){var m=document.createElement('div'),n=document.createElement('img');m.className='AdBox Ad advert';document.body.appendChild(m);document.body.appendChild(n);n.onload=function(){i(this,l);};n.onerror=function(){j(this,l);};n.src='//fbcdn-creative-a.akamaihd.net/hads-ak-prn2/'+'1487645_6012475414660_1439393861_n.png';var o=window.getComputedStyle&&window.getComputedStyle(m);if(!o){g=false;return;}if(o.display==='none')g=true;if(o.MozBinding&&o.MozBinding.indexOf('url')===0)g=true;}function i(l,m){var n=window.getComputedStyle&&window.getComputedStyle(l);if(!n){if(g===(void 0))g=false;l.parentNode.removeChild(l);m(g);return;}if(n.display==='none'){g=true;}else if(g===(void 0))g=false;l.parentNode.removeChild(l);m(g);}function j(l,m){g=true;l.parentNode.removeChild(l);m(g);}function k(l){if(g===(void 0)){h(l);}else l(g);}e.exports=k;},null);
  __d("AdsAdblockWarning.react",["React","XUINotice.react","fbt","hasAdblock"],function(a,b,c,d,e,f,g,h,i,j){var k=g.createClass({displayName:"AdsAdblockWarning",getInitialState:function(){return {hasAdblock:false};},componentWillMount:function(){j(function(l){this.setState({hasAdblock:l});}.bind(this));},render:function(){if(!this.state.hasAdblock)return (g.createElement("div",{className:"hidden_elem"}));return (g.createElement(h,{use:"warn",className:"mtl"},"Facebook's advertising tools might not work as expected when an ad blocker is enabled in a web browser. Turn off the ad blocker or add this web page's URL as an exception so you can create ads without any problems. After you turn off the ad blocker, you'll need to refresh your screen."));}});e.exports=k;},null);
  __d("XUISingleSelector.react",["Image.react","InlineBlock.react","React","ReactSelectorUtils","ReactXUIMenu","SingleSelectorBase","SubscriptionsHandler","XUIPopoverButton.react","areEqual","cloneWithProps","ix"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=k.SelectableMenu,s=k.SelectableItem,t=i.createClass({displayName:"XUISingleSelectorButton",render:function(){return (i.createElement(n,i.__spread({},this.props,{chevron:i.createElement(g,{src:q('/images/ui/x/selector/chevron.png')})})));}}),u=i.createClass({displayName:"XUISingleSelector",propTypes:{name:i.PropTypes.string,maxheight:i.PropTypes.number,defaultValue:i.PropTypes.string,size:i.PropTypes.oneOf(['small','medium','large','xlarge','xxlarge']),value:i.PropTypes.any,onChange:i.PropTypes.func,onShow:i.PropTypes.func,onHide:i.PropTypes.func,behaviors:i.PropTypes.array},_menu:null,_singleSelector:null,_subscriptions:null,getMenuItems:function(){var v=[];i.Children.forEach(this.props.children,function(w){if(w)v.push(w);});return v;},getSelectedItem:function(){return j.processAndMutateMenuItems(this.getMenuItems(),this.getValue());},setMenuValue:function(v){this._singleSelector.setValueWithoutChange(v);},getInitialState:function(){return {value:(this.props.value!==(void 0)?this.props.value:this.props.defaultValue!==(void 0)?this.props.defaultValue:this.getMenuItems()[0].props.value)};},componentWillReceiveProps:function(){if(this.props.value!==(void 0))this.setState({value:this.props.value});},componentDidMount:function(){var v=this.refs.button.getDOMNode();this._singleSelector=new l(v,this._createMenu(),{},{behaviors:this.props.behaviors});this._subscriptions=new m();this._subscriptions.addSubscriptions(this._singleSelector.subscribe('change',this.onChange));if(this.props.onShow)this._subscriptions.addSubscriptions(this._singleSelector.subscribe('show',this.props.onShow));if(this.props.onHide)this._subscriptions.addSubscriptions(this._singleSelector.subscribe('hide',this.props.onHide));},componentDidUpdate:function(v){if(!o(v.children,this.props.children))this._singleSelector.setMenu(this._createMenu());this.setMenuValue(this.getValue());},componentWillUnmount:function(){this._singleSelector.destroy();if(this._subscriptions){this._subscriptions.release();this._subscriptions=null;}},getValue:function(){return this.props.value!==(void 0)?this.props.value:this.state.value;},onChange:function(v,w){if(this.props.value===(void 0)){this.setState({value:w.value});}else this.setMenuValue(this.props.value);if(this.props.onChange)this.props.onChange(w);},_createMenu:function(){var v=i.createElement(r,{maxheight:this.props.maxheight},this.getMenuItems());return new v.type(v.props);},render:function(){var v=this.getSelectedItem(),w;if(v.props.icon)w=p(v.props.icon,{});return (i.createElement(h,i.__spread({},this.props,{alignv:"middle"}),i.createElement("input",{type:"hidden",autoComplete:"off",name:this.props.name,value:v.props.value}),i.createElement(t,{ref:"button",suppressed:this.props.suppressed,size:this.props.size||'medium',label:v.props.label||v.props.children,maxwidth:this.props.maxwidth,image:w})));}});u.Option=s;e.exports=u;},null);
  __d("AdsTargetingNumberSelector.react",["XUISingleSelector.react","React","cx"],function(a,b,c,d,e,f,g,h,i){'use strict';var j=g.Option,k=h.createClass({displayName:"AdsTargetingNumberSelector",propTypes:{minimum:h.PropTypes.number.isRequired,maximum:h.PropTypes.number.isRequired,selectedValue:h.PropTypes.number.isRequired,onDataUpdate:h.PropTypes.func.isRequired,customMaxLabel:h.PropTypes.string},render:function(){var l=this.props,m=[];for(var n=l.minimum;n<=l.maximum;++n){var o=n;if(l.customMaxLabel&&n===l.maximum)o=l.customMaxLabel;m.push(h.createElement(j,{key:n,value:n},o));}return (h.createElement("div",{className:"_5tpo"},h.createElement(g,{className:"_1d1z",onChange:l.onDataUpdate,value:l.selectedValue,maxheight:200},m)));}});e.exports=k;},null);
  __d("AdsTargetingTogglerSafeMixin",[],function(a,b,c,d,e,f){var g={setStateSafe:function(h,i){setTimeout(function(){this.setState(h,i);}.bind(this),0);}};e.exports=g;},null);
  __d("AdsAgeSelector.react",["AdsCreationConfig","AdsTargetingConstants","AdsTargetingNumberSelector.react","AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","BoostedComponentTestElement","React","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=m.createClass({displayName:"AdsAgeSelector",mixins:[j],propTypes:{minSelectableAge:m.PropTypes.number,maxSelectableAge:m.PropTypes.number,initialMinAge:m.PropTypes.number,initialMaxAge:m.PropTypes.number,onDataUpdate:m.PropTypes.func.isRequired},getDefaultProps:function(){return {minSelectableAge:h.DEFAULT_MIN_SELECTABLE_AGE,maxSelectableAge:h.DEFAULT_MAX_SELECTABLE_AGE};},getInitialState:function(){return this._getInitialAges(this.props);},componentWillReceiveProps:function(p){this.setStateSafe(this._getInitialAges(p));},_getInitialAges:function(p){var q=p.minSelectableAge,r=p.maxSelectableAge,s=p.initialMinAge?p.initialMinAge:g.minAgeDefault,t=p.initialMaxAge?p.initialMaxAge:r;if(q>s)s=q;if(r<t)t=r;return {minAge:s,maxAge:t};},_onMinAgeUpdate:function(p){var q=p.value,r=q>this.state.maxAge?q:this.state.maxAge;this._updateAges(q,r);},_onMaxAgeUpdate:function(p){var q=p.value,r=q<this.state.minAge?q:this.state.minAge;this._updateAges(r,q);},_updateAges:function(p,q){this.setStateSafe({minAge:p,maxAge:q});var r={age_min:p,age_max:q};this.props.onDataUpdate(k.UPDATE_AGE,r);},render:function(){var p=this.state;return (m.createElement("div",{"data-testid":l.AGE_SELECTOR,className:"_5so_"},m.createElement(i,{minimum:this.props.minSelectableAge,maximum:this.props.maxSelectableAge,selectedValue:p.minAge,onDataUpdate:this._onMinAgeUpdate})," - ",m.createElement(i,{minimum:this.props.minSelectableAge,maximum:this.props.maxSelectableAge,selectedValue:p.maxAge,onDataUpdate:this._onMaxAgeUpdate,customMaxLabel:this.props.maxSelectableAge+'+'})));}});e.exports=o;},null);
  __d("CenteredContainer.react",["React","cx"],function(a,b,c,d,e,f,g,h){var i=g.createClass({displayName:"CenteredContainer",propTypes:{vertical:g.PropTypes.bool,horizontal:g.PropTypes.bool},getDefaultProps:function(){return {vertical:false,horizontal:true};},render:function(){var j=((this.props.vertical?"_3bwv":'')+(this.props.horizontal?' '+"_3bww":'')),k=g.Children.map(this.props.children,function(l){return (g.createElement("div",{className:"_3bwx"},l));});return (g.createElement("div",g.__spread({},this.props),g.createElement("div",{className:j},g.createElement("div",{className:"_3bwy"},k))));}});e.exports=i;},null);
  __d("FBOverlayBase.react",["React"],function(a,b,c,d,e,f,g){var h=g.createClass({displayName:"FBOverlayBase",render:function(){return g.Children.only(this.props.children);}});e.exports=h;},null);
  __d("FBOverlayElement.react",["React","cloneWithProps","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){var k=g.PropTypes,l={horizontal:{left:"_32rg",right:"_32rh",fit:j("_32rg","_32rh")},vertical:{top:"_32ri",bottom:"_32rj",fit:j("_32ri","_32rj")}},m=g.createClass({displayName:"FBOverlayElement",propTypes:{horizontal:k.oneOf(['left','right','fit']),vertical:k.oneOf(['top','bottom','fit'])},getDefaultProps:function(){return {horizontal:'fit',vertical:'fit'};},render:function(){var n=j("_32rk",l.horizontal[this.props.horizontal],l.vertical[this.props.vertical]);return h(g.Children.only(this.props.children),{className:n});}});e.exports=m;},null);
  __d("FBOverlayContainer.react",["FBOverlayBase.react","FBOverlayElement.react","React","cx","invariant","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=i.createClass({displayName:"FBOverlayContainer",propTypes:{children:function(n,o){var p=n[o],q=0;i.Children.forEach(p,function(r){if(r===null||r===(void 0))return;switch(r.type){case g.type:q++;break;case h.type:break;default:k(false);}});k(q===1);}},render:function(){return (i.createElement("div",i.__spread({},this.props,{className:l(this.props.className,"_23n-")}),this.props.children));}});e.exports=m;},null);
  __d("AdsArrowedContainer.react",["CenteredContainer.react","Image.react","Link.react","Locale","FBOverlayBase.react","FBOverlayContainer.react","FBOverlayElement.react","React","cx","invariant","ix","keyMirror"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=r({PREV:null,NEXT:null}),t=n.createClass({displayName:"AdsArrowedContainer",propTypes:{onIncrement:n.PropTypes.func,onDecrement:n.PropTypes.func},render:function(){return (n.createElement(l,n.__spread({},this.props),n.createElement(k,null,this.props.children),n.createElement(m,{horizontal:"left"},this._renderArrow(s.PREV)),n.createElement(m,{horizontal:"right"},this._renderArrow(s.NEXT))));},_renderArrow:function(u){var v=q('/images/ads/video/icon-left-arrow.png'),w=q('/images/ads/video/icon-right-arrow.png'),x,y,z;if(j.isRTL()){var aa=[w,v];v=aa[0],w=aa[1];}switch(u){case s.PREV:x=this.props.onDecrement!==null;y=this.props.onDecrement;z=v;break;case s.NEXT:x=this.props.onIncrement!==null;y=this.props.onIncrement;z=w;break;default:p(false);}return (n.createElement(i,{className:x?"_-to":"_-tp",tabIndex:x?null:-1,onClick:x?y:null},n.createElement(g,{className:"_-tq",vertical:true},n.createElement(h,{className:"_-tr",src:z}))));}});e.exports=t;},null);
  __d("AdsAbstractCurrencyInput.react",["AdsCurrencyFormatter","Keys","React","fbt","escapeRegex","NumberFormatConfig"],function(a,b,c,d,e,f,g,h,i,j,k){var l=b('NumberFormatConfig').decimalSeparator,m=b('NumberFormatConfig').numberDelimiter,n=i.PropTypes,o=new RegExp('^\\D*['+k(m)+'\\d]*'+k(l)+'?\\d{0,8}\\D*$'),p=500,q=i.createClass({displayName:"AdsAbstractCurrencyInput",propTypes:{currency:n.string.isRequired,value:n.number,withISO:n.bool,withNumberDelimiters:n.bool,nonnegative:n.bool,invalidInputIsNull:n.bool,onDataUpdate:n.func.isRequired,eventType:n.oneOf(['change','blur']),textInputClass:n.func.isRequired,onMultiplePaste:n.func},getDefaultProps:function(){return {eventType:'blur',withNumberDelimiters:false};},getInitialState:function(){return {dirtyValue:null,pasteTime:null,xuiError:this.props.xuiError};},_getValue:function(){var r=this.state.dirtyValue;if(r===null){r=this.props.value;if(r!=null){r=g.formatCurrencyFullFormat(this.props.currency,r,this.props.withISO,this.props.withNumberDelimiters);}else r='';}return r;},render:function(){var r=this._getValue(),s=this.props.textInputClass;return (i.createElement(s,i.__spread({},this.props,{onChange:this._onChange,onBlur:this._onBlur,onKeyUp:this._onKeyUp,onPaste:this._onPaste,value:r,xuiError:this.state.xuiError})));},_isValidNumber:function(r){return o.test(r);},_getXuiError:function(r){var s=this.props.xuiError;if(!this._isValidNumber(r))s=("Your budget must be a valid number.");return s;},_onChange:function(event){var r=event.target.value,s=this._getXuiError(r);this.setState({dirtyValue:r,xuiError:s});if(this.props.eventType==='change')this.props.onDataUpdate(this._parseCurrency(r));},_onBlur:function(event){if(this.state.dirtyValue!==null)this.updateValue(event);},updateValue:function(event){var r=this._parseCurrency(event.target.value),s=this._getXuiError(r);this.props.onDataUpdate(r);this.setState({dirtyValue:null,xuiError:s});},_parseCurrency:function(r){var s=g.parseOptionalCurrency(this.props.currency,r);if(!this.props.invalidInputIsNull)s=s||0;if(s&&this.props.nonnegative)s=Math.abs(s);return s;},_onPaste:function(event){if(!this.props.onMultiplePaste)return;if(this.state.pasteTime===null){this.setState({pasteTime:Date.now()});}else{if(Date.now()-this.state.pasteTime<p)this.props.onMultiplePaste();this.setState({pasteTime:null});}},_onKeyUp:function(event){if(event.keyCode===h.RETURN)this.updateValue(event);}});e.exports=q;},null);
  __d("BUITextInput.react",["React","XUITextInput.react","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){'use strict';var k=g.PropTypes,l=g.createClass({displayName:"BUITextInput",propTypes:{height:k.oneOf(['short','tall','xtall'])},render:function(){var m=this.props,n=m.className,o=m.height,p=(function(r,s){var t={},u=Object.prototype.hasOwnProperty;if(r==null)throw new TypeError();for(var v in r)if(u.call(r,v)&&!u.call(s,v))t[v]=r[v];return t;})(m,{className:1,height:1}),q=j((("_1j5c")+(o==='tall'?' '+"_1j5d":'')+(o==='xtall'?' '+"_1j5e":'')),n);return (g.createElement(h,g.__spread({},p,{className:q})));}});e.exports=l;},null);
  __d("AdsCurrencyInput.react",["AdsAbstractCurrencyInput.react","React","BUITextInput.react"],function(a,b,c,d,e,f,g,h,i){var j=h.PropTypes,k=h.createClass({displayName:"AdsCurrencyInput",propTypes:{currency:j.string.isRequired,value:j.number,withISO:j.bool,nonnegative:j.bool,invalidInputIsNull:j.bool,onDataUpdate:j.func.isRequired,eventType:j.oneOf(['change','blur']),onMultiplePaste:j.func},render:function(){return (h.createElement(g,h.__spread({},this.props,{textInputClass:i})));}});e.exports=k;},null);
  __d("AdsRichSelector.react",["ContextualLayer.react","ContextualLayerUpdateOnScroll","DOM","Image.react","InlineBlock.react","React","ReactChildren","ReactLayeredComponentMixin","ScrollableArea","Style","SubscriptionsHandler","XUIError.react","XUIPopoverButton.react","cloneWithProps","cx","invariant","joinClasses","merge","requestAnimationFrame"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';var z=l.PropTypes,aa={ContextualLayerUpdateOnScroll:h};function ba(ga,ha,ia){v(m.count(ga.children)>0);var ja=null,ka=m.map(ga.children,function(la){switch(la.type){default:case da.type:if(ia==null)ia=la.props.value;if(ia===la.props.value){ja=la;ha.selected=true;}else ha.selected=false;return t(la,ha);case ea.type:ja=ja||ba(la.props,ha,ia).selectedItem;return t(la,ha);case fa.type:return la;}});return {items:ka,selectedItem:ja};}var ca=l.createClass({displayName:"AdsRichSelector",mixins:[n],propTypes:Object.assign({alignment:z.oneOf(['left','center','right']),defaultLabel:z.oneOfType([z.object,z.string]),disabled:z.bool,label:z.oneOfType([z.object,z.string]),image:z.object,maxheight:z.number,maxMenuWidth:z.number,maxwidth:z.number,noLabel:z.bool,onChange:z.func,requireSelection:z.bool,size:z.string,useMenuDividers:z.bool},r.propTypes),_scrollableArea:null,getDefaultProps:function(){return {defaultLabel:'',requireSelection:true};},getInitialState:function(){return {showLayer:false,value:this.props.defaultValue};},componentDidMount:function(){this.subscriptions=new q();this.subscriptions.addSubscriptions(this.refs.menu.layer.subscribe('blur',this._onBlur),this.refs.menu.layer.subscribe('hide',this._onBlur));this._setMaxHeight();},componentWillReceiveProps:function(ga){if('defaultValue' in ga)this.setState({value:ga.defaultValue});},componentWillUnmount:function(){this.subscriptions.release();},componentDidUpdate:function(ga){if(ga.maxheight!==this.props.maxheight)this._setMaxHeight();},render:function(){var ga={onSelect:this._onSelect},ha=ba(this.props,ga,this.state.value),ia=ha.selectedItem,ja;if(this.props.label){ja=this.props.label;}else if(ia){ja=this.props.noLabel?'':ia.props.label;}else ja=this.props.defaultLabel;var ka;if(this.props.image){ka=this.props.image;}else if(ia){ka=ia.props.icon;}else ka=null;return (l.createElement(r,l.__spread({},this.props),l.createElement(k,{alignv:"middle",className:w(((this.state.showLayer?"openToggler":'')),this.props.className),name:null},l.createElement(s,{className:(("_5mhp")+(this.state.showLayer?' '+"selected":'')+(this.state.showLayer&&this.props.alignment!='right'?' '+"_nk":'')+(this.state.showLayer&&this.props.alignment=='right'?' '+"_nl":'')),disabled:this.props.disabled||false,size:this.props.size||'medium',depressed:this.state.showLayer,theme:this.props.theme||'dark',maxwidth:this.props.maxwidth||0,label:ja,ref:"selectorButton",onClick:this._toggleSelector,"aria-label":this.props.tooltip||null,"data-hover":"tooltip","data-tooltip-alignh":this.props.alignh||'left',"data-tooltip-alignv":this.props.alignv||'above',image:ka}))));},_getBehaviors:function(){return x(aa,this.props.behaviors);},renderLayers:function(){var ga={onSelect:this._onSelect},ha=ba(this.props,ga,this.state.value),ia=ha.items;return {menu:l.createElement(g,{contextRef:"selectorButton",position:"below",alignment:this.props.alignment||'left',ref:"menu",shown:this.state.showLayer,behaviors:this._getBehaviors()},l.createElement("div",{className:"_54nq _575t _57di _558b"},l.createElement("div",{className:"_54ng",ref:"menuContainer"},l.createElement("ul",{className:(("_54nf")+(this.props.useMenuDividers?' '+"_4fau":'')),role:"menu",style:{maxWidth:this.props.maxMenuWidth},ref:"menuItems"},ia))))};},_setMaxHeight:function(){var ga=this.refs.menuItems.getDOMNode(),ha=this.refs.menuContainer.getDOMNode();if(this.props.maxheight){var ia=o.renderDOM();this._scrollableArea=ia.root;i.setContent(ia.content,ga);p.set(ia.wrap,'max-height',this.props.maxheight+'px');i.setContent(ha,this._scrollableArea);}else if(this._scrollableArea)i.setContent(ha,ga);},_toggleSelector:function(){if(!this.props.disabled)this.setState({showLayer:!this.state.showLayer});},_onBlur:function(){y(function(){return this.setState({showLayer:false});}.bind(this));},_onSelect:function(ga){this.setState({image:ga.icon,showLayer:false,value:ga.value});this.props.onChange&&this.props.onChange(ga);}}),da=l.createClass({displayName:"AdsRichSelectorOption",propTypes:{clickable:z.bool,label:z.oneOfType([z.object,z.string]),onSelect:z.func,selected:z.bool,value:z.oneOfType([z.string,z.number])},getDefaultProps:function(){return {clickable:true};},getInitialState:function(){return {highlighted:false};},render:function(){var ga=this._renderMenuItemContainer(),ha=this.props.clickable,ia=null,ja=null,ka=null;if(ha){v(this.props.hasOwnProperty('value'));ia=this._onSelect;ja=this._onMouseEnter;ka=this._onMouseLeave;ga=l.createElement("a",{className:"_54nc _4faw",ref:"menuItemAnchor",role:"menuitem",tabIndex:"0"},l.createElement("div",{className:"_4fax _ftt"}),ga);}var la=this.state.highlighted;return (l.createElement("li",{className:w((("_54ni")+(ha&&la?' '+"_54ne":'')+(ha&&this.props.selected?' '+"_4fav":'')),this.props.className),onClick:ia,onMouseEnter:ja,onMouseLeave:ka},ga));},_renderMenuItemContainer:function(){var ga=this.props.children,ha=this.props.icon;if(ha){v(ha.type===j.type);ga=l.createElement("div",{className:"_52ps"},l.createElement("div",{className:"_52pt prs"},ha),ga);}return (l.createElement("div",{className:"_4fay"},ga));},_onSelect:function(){this.props.onSelect&&this.props.onSelect({icon:this.props.icon,label:this.props.label,value:this.props.value});},_onMouseEnter:function(){this.setState({highlighted:true});},_onMouseLeave:function(){this.setState({highlighted:false});}}),ea=l.createClass({displayName:"AdsRichSelectorOptionGroup",propTypes:{onChange:l.PropTypes.func,onSelect:l.PropTypes.func.isRequired},getInitialState:function(){return {value:this.props.defaultValue};},componentWillReceiveProps:function(ga){if('defaultValue' in ga)this.setState({value:ga.defaultValue});},_onSelect:function(ga){this.setState({value:ga.value});this.props.onSelect(ga);this.props.onChange&&this.props.onChange(ga);},render:function(){var ga=this.props,ha=ga.className,ia=(function(ma,na){var oa={},pa=Object.prototype.hasOwnProperty;if(ma==null)throw new TypeError();for(var qa in ma)if(pa.call(ma,qa)&&!pa.call(na,qa))oa[qa]=ma[qa];return oa;})(ga,{className:1}),ja={onSelect:this._onSelect},ka=ba(ia,ja,this.state.value),la=ka.items;return (l.createElement("li",{className:w(ha,"_b_x")},l.createElement("ul",null,la)));}}),fa=l.createClass({displayName:"AdsRichSelectorSeparator",propTypes:{label:z.string,noBorder:z.bool},render:function(){v(this.props.label||!this.props.noBorder);return (l.createElement("li",{className:(("_54ak")+(' '+"_52pu")+(!!this.props.noBorder?' '+"_52pv":''))},this._renderSeparatorLabel()));},_renderSeparatorLabel:function(){if(!this.props.label)return null;return (l.createElement("h4",{className:"_52ri"},this.props.label));}});ca.Option=da;ca.OptionGroup=ea;ca.Separator=fa;e.exports=ca;},null);
  __d("AdsConversionPixelSelector.react",["AdsConversionPixelUtils","AdsOffsiteConversionConstants","AdsPixelConstants","AdsRichSelector.react","Image.react","React","underscore.ads","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){"use strict";var p=j.Option,q=j.Separator,r=i.pixelStatusToUI,s=m.object(h.tags,m.range(h.tags.length)),t=l.PropTypes,u=l.createClass({displayName:"AdsConversionPixelSelector",propTypes:{defaultLabel:t.string,onChange:t.func,pixels:t.array.isRequired,allowNoPixelSelection:t.bool},getDefaultProps:function(){return {allowNoPixelSelection:true};},render:function(){var v=this._getPixelsByTag(),w=[],x;v.forEach(function(aa){w.push(l.createElement(q,{key:aa.tag,label:i.categoryLabels[aa.tag]}));aa.pixels.forEach(function(ba){if(this.props.value===ba.id)x=ba;w.push(l.createElement(p,{value:ba.id,key:ba.id,label:ba.name,icon:l.createElement(k,{src:r[ba.status].statusUI.iconImage})},l.createElement("div",{className:"_3xim pvs"},l.createElement("div",{className:"_3xin ellipsis"},ba.name),l.createElement("div",{className:"_3xio fcg"},ba.status))));},this);},this);if(!w.length)return l.createElement("div",null);if(!this.props.allowNoPixelSelection){w.shift();}else{var y;if(this.props.value){y=this.props.defaultLabel||("No pixel selected");}else y=this.props.defaultLabel||("Choose a pixel");var z=l.createElement(p,{key:"default",label:y,value:""},y);w.unshift(z);}return (l.createElement(j,{defaultValue:this.props.value||'',disabled:this.props.disabled,key:'pixel_'+this.props.value,maxheight:this.props.maxheight,maxwidth:this.props.fullWidth?null:(void 0),onChange:this._handleChange,size:this.props.size},w));},_handleChange:function(v){this.props.onChange&&this.props.onChange(v.value);},_getPixelsByTag:function(){var v=m(this.props.pixels).chain().groupBy(function(w){return w.tag||'';}).map(function(w,x){return {tag:x,pixels:w};}).value();v.sort(function(w,x){return (s[w.tag]-s[x.tag]);});v.forEach(function(w){w.pixels.sort(g.pixelOrdering);});return v;}});e.exports=u;},null);
  __d("AdsCFBox.react",["React","XUICloseButton.react","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){var k=g.PropTypes,l={info:'uiBoxLightblue',red:'uiBoxRed',yellow:'uiBoxYellow'},m=Object.keys(l),n=g.createClass({displayName:"AdsCFBox",propTypes:{onCloseIconClick:k.func,type:k.oneOf(m).isRequired},onClose:function(){this.props.onCloseIconClick&&this.props.onCloseIconClick();},render:function(){var o=this.props.onCloseIconClick?g.createElement(h,{onClick:this.onClose,className:"_5cmp",size:"small"}):null,p=j("_5cmq",'pam',l[this.props.type]);return (g.createElement("div",g.__spread({},this.props,{className:j(this.props.className,p)}),o,this.props.children));}});e.exports=n;},null);
  __d("AdInterfacesAppNames",[],function(a,b,c,d,e,f){e.exports={CREATE_FLOW:"ads-adscreator",AUDIENCE_MANAGER:"ads-customaudiencesmanager",AUDIENCE_MANAGER_V3:"ads-audiencesmanager",AUDIENCE_MANAGER_CM:"ads-audiencesmanager-cm",POWER_EDITOR:"ads-powereditor",BOOSTED_POSTS:"ads-boostedposts",CONVERSION_TRACKING:"ads-conversion-tracking",AUDIENCE_INSIGHTS:"audience-insights"};},null);
  __d("AdsCreativeImageTextOverlayDialog.react",["AdInterfacesAppNames","AdsArrowedContainer.react","AdsDispatcher","AdsImageValidationActionTypes","CenteredContainer.react","Event","Image.react","ImageBlock.react","Layout.react","Link.react","List.react","React","ReactChildren","ReactComponentWithPureRenderMixin","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogButton.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogTitle.react","XUIText.react","cssVar","cx","emptyFunction","emptyObject","fbt","invariant","ix"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha){var ia=o.Column,ja=5,ka=r.createClass({displayName:"AdsCreativeImageTextOverlayDialog",mixins:[u,t],propTypes:{images:r.PropTypes.array.isRequired,source:r.PropTypes.string,preselectedBoxes:r.PropTypes.arrayOf(r.PropTypes.arrayOf(r.PropTypes.bool)),readOnly:r.PropTypes.bool,dialogShown:r.PropTypes.bool,onHide:r.PropTypes.func},getDefaultProps:function(){return {source:null,preselectedBoxes:[],readOnly:false,dialogShown:false,onHide:da};},componentWillReceiveProps:function(la){this.setState(this._getStateFromProps(this.props,la));},getInitialState:function(){return this._getStateFromProps(ea,this.props);},_getStateFromProps:function(la,ma){return {textValidationToolShown:la.dialogShown!==ma.dialogShown?ma.dialogShown:!!this.state&&this.state.textValidationToolShown,currentImageIndex:0,boxesSelected:ma.preselectedBoxes[0]||this._initBoxesSelected(),isMouseDown:false,cellState:false,visitedBoxesDuringMouseDown:{}};},render:function(){if(s.count(this.props.children)===0)return null;return (r.createElement(p,{onClick:this._onClickTextValidation},this.props.children));},renderLayers:function(){return {textValidationDialog:(r.createElement(v,{fixedTopPosition:40,shown:this.state.textValidationToolShown,width:800,modal:true,layerHideOnBlur:false},r.createElement(z,{showCloseButton:false},"Text Validation Tool"),r.createElement(x,{useCustomPadding:true},this.props.readOnly?null:this._renderToolTitle(),r.createElement(o,{className:"_f_"},r.createElement(ia,{className:"_g0 _3-90"},r.createElement(k,null,this._renderImageGrid(),this._renderImageSelector())),r.createElement(ia,{className:"_g1 _3-8t"},this._renderToolBlurb()))),r.createElement(y,null,r.createElement(w,{label:"Done",action:"cancel",use:"confirm",onClick:this._onTextOverlayDialogHide}))))};},componentDidMount:function(){this._mouseupHandlerRef=l.listen(document,'mouseup',this._mouseUpGlobal);i.dispatch({action:{actionType:j.AD_IMAGE_VALIDATION_NOTICE_SHOWN,images:this.props.images.map(function(la){return la.getUrl();})}});},componentWillUnmount:function(){this._mouseupHandlerRef.remove();this._mouseupHandlerRef=null;},_onClickTextValidation:function(){if(this.props.images.length>0)this._goToIndex(0);},_onTextOverlayDialogHide:function(){this.setState({textValidationToolShown:false},this.props.onHide);},_initBoxesSelected:function(){var la=[];for(var ma=0;ma<ja*ja;++ma)la[ma]=false;return la;},_getImageUrl:function(la){if(la>=this.props.images.length)return null;var ma=this.props.images[la];if(!ma.isStockImage())return ma.getUrl();ga(ma.getFullSizeUrl()!==null);return ma.getFullSizeUrl();},_renderImageGrid:function(){if(this.state.currentImageIndex>=this.props.images.length)return null;var la=this.props.images[this.state.currentImageIndex],ma="480",na="360",oa=ma/la.getWidth();if(la.getHeight()*oa>=na)oa=na/la.getHeight();var pa={};for(var qa=0;qa<ja;++qa){var ra={};for(var sa=0;sa<ja;++sa){var ta=qa*ja+sa;ra['cell'+qa+'_'+sa]=r.createElement("td",{className:((this.state.boxesSelected[ta]?"_g2":'')+(!this.state.boxesSelected[ta]&&this.props.readOnly?' '+"_ily":'')+(!this.state.boxesSelected[ta]&&!this.props.readOnly?' '+"_ilz":'')+(this.state.boxesSelected[ta]&&!this.props.readOnly?' '+"_5e9c":'')+(!this.state.boxesSelected[ta]&&!this.props.readOnly?' '+"_5e9d":'')+(' '+"_ge")),onMouseDown:this._mouseDownOnGrid.bind(this,qa,sa),onMouseMove:this._mouseMoveOnGrid.bind(this,qa,sa)});}pa['row'+qa]=r.createElement("tr",null,ra);}var ua=la.getWidth()*oa,va=la.getHeight()*oa,wa=this.state.currentImageIndex<this.props.images.length-1,xa=this.state.currentImageIndex>0;return (r.createElement(h,{className:((!wa&&!xa?"_3-98":'')),onIncrement:wa?this._incrementIndex:null,onDecrement:xa?this._decrementIndex:null},r.createElement("div",{style:{height:va+'px'}},r.createElement(m,{src:this._getImageUrl(this.state.currentImageIndex),width:ua}),r.createElement("table",{className:"_gj",style:{height:(va+ja)+'px'}},pa))));},_renderImageSelector:function(){if(this.props.images.length<=1)return null;var la={};for(var ma=0;ma<this.props.images.length;++ma)la['imageList'+ma]=r.createElement("li",null,r.createElement(p,{onClick:this._goToIndex.bind(this,ma),className:(("_2ph-")+(this.state.currentImageIndex===ma?' '+"_h1":''))},ma+1));return (r.createElement(q,{direction:"horizontal",border:"none",spacing:"large",className:"_hd"},la));},_renderToolTitle:function(){return (r.createElement(n,{className:"_3-8t _3-8q"},r.createElement(m,{className:"_3-8u",src:ha('/images/ads/integrity/text_overlay_icon_20.png')}),fa._("Ad images with text that takes up more than 20\u0025 of the image may not be approved. {Learn more about Facebook's Advertising Guidelines}.",[fa.param("Learn more about Facebook's Advertising Guidelines",r.createElement(p,{href:"/help/468870969814641/",target:"_blank"},"Learn more about Facebook's Advertising Guidelines"))])));},_renderToolBlurb:function(){return (r.createElement("div",null,this.props.readOnly?this._renderReadOnlyTextPercentages():this._renderSelectableTextPercentages(),this.props.readOnly?this._renderReadOnlyToolHelp():this._renderSelectableToolHelp()));},_renderReadOnlyTextPercentages:function(){var la=this._countBoxesSelected();return (r.createElement("div",{border:"light",display:"block"},r.createElement(aa,{className:"_3-8q",display:"block",size:"large"},"This image has approximately"),r.createElement(aa,{display:"block",weight:"bold",className:(("_hg")+(la>ja?' '+"_3r0a":'')+(' '+"_3-8q"))},fa._("{Percentage of boxes selected, followed by: \u0025 Text}\u0025 Text",[fa.param("Percentage of boxes selected, followed by: % Text",la*4)]))));},_renderSelectableTextPercentages:function(){var la=this._countBoxesSelected();return (r.createElement(q,{direction:"horizontal",border:"light",spacing:"large",className:"_he"},r.createElement("li",{className:"_2pi2 _hf"},r.createElement(aa,{display:"block",size:"large",className:"_3-8q"},"Selected"),r.createElement(aa,{display:"block",className:"_hg _3-8p",weight:"bold"},la)),r.createElement("li",{className:"_2pi2 _hf"},r.createElement(aa,{display:"block",size:"large",className:"_3-8q"},"Text"),r.createElement(aa,{display:"block",weight:"bold",className:(("_hg")+(la>ja?' '+"_hw":'')+(' '+"_3-8p"))},fa._("{Percentage of boxes selected}\u0025",[fa.param("Percentage of boxes selected",la*4)])))));},_renderSelectableToolHelp:function(){var la=Math.floor(.2*ja*ja)+1;return (r.createElement("div",{className:"_3r0b"},r.createElement(aa,{weight:"bold"},"How to Use"),r.createElement("p",null,fa._("Click on all boxes that contain text. If there is text in {Number of boxes to exceed 20\u0025 threshold} or more boxes of the grid, then your image may not meet our guidelines.",[fa.param("Number of boxes to exceed 20% threshold",la)])),r.createElement("p",null,"If you have more than one image that includes text, then be sure to check each one.")));},_renderReadOnlyToolHelp:function(){return (r.createElement("div",{className:"_3r0b"},r.createElement(aa,{display:"block"},"Ad images with more than 20\u0025 text may not be approved."),r.createElement(aa,{display:"block",className:"_3-8q"},fa._("Learn more about {=Facebook's Advertising Guidelines}.",[fa.param("=Facebook's Advertising Guidelines",r.createElement(p,{href:"/help/468870969814641/",target:"_blank"},r.createElement(aa,{weight:"bold"},"Facebook's Advertising Guidelines")))]))));},_countBoxesSelected:function(){return this.state.boxesSelected.filter(function(la){return !!la;}).length;},_goToIndex:function(la){if(this.props.source===g.CREATE_FLOW)i.dispatch({action:{actionType:j.AD_IMAGE_VALIDATION_TOOL_USE,image:this._getImageUrl(la)}});this.setState({currentImageIndex:la,boxesSelected:this.props.preselectedBoxes[la]||this._initBoxesSelected(),textValidationToolShown:true});},_incrementIndex:function(){this._goToIndex(this.state.currentImageIndex+1);},_decrementIndex:function(){this._goToIndex(this.state.currentImageIndex-1);},_mouseDownOnGrid:function(la,ma){if(this.props.readOnly)return;if(this.state.isMouseDown)return;var na=la*ja+ma,oa=this.state.boxesSelected,pa=this.state.boxesSelected[na];oa[na]=!pa;var qa=this.state.visitedBoxesDuringMouseDown;qa[na]=true;this.setState({boxesSelected:oa,visitedBoxesDuringMouseDown:qa,isMouseDown:true,cellState:pa});},_mouseUpGlobal:function(){if(this.props.readOnly)return;if(!this.state.isMouseDown)return;this.setState({isMouseDown:false,visitedBoxesDuringMouseDown:{}});},_mouseMoveOnGrid:function(la,ma){if(this.props.readOnly)return;var na=la*ja+ma;if(this.state.isMouseDown&&this.state.visitedBoxesDuringMouseDown[na]===(void 0)&&this.state.boxesSelected[na]==this.state.cellState){var oa=this.state.boxesSelected;oa[na]=!this.state.boxesSelected[na];var pa=this.state.visitedBoxesDuringMouseDown;pa[na]=true;this.setState({boxesSelected:oa,visitedBoxesDuringMouseDown:pa});}}});e.exports=ka;},null);
  __d("BoostedComponentConfig",["BoostedComponentConfigPayload","BoostedComponentContextStore","BoostedComponentCreativeStore","BoostedComponentDataState","BoostedComponentDialogButtonStore","BoostedComponentDialogRenderViewActions","BoostedComponentDialogUIStore","BoostedComponentDispatcher","BoostedComponentClientEvent","BoostedComponentLoggerStore","BoostedComponentStoreType","BoostedComponentSubmissionServerActions","BoostedComponentURIStore","emptyFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){function u(v,w,x){"use strict";this.$BoostedComponentConfig0=x||t;this.$BoostedComponentConfig1=w;this.$BoostedComponentConfig2=new n();this.$BoostedComponentConfig3={};this.$BoostedComponentConfig3[q.CONTEXT_STORE]=new h(this.$BoostedComponentConfig2);this.$BoostedComponentConfig3[q.DIALOG_UI_STORE]=new m(this.$BoostedComponentConfig2,this.getContextStore(),this);this.$BoostedComponentConfig3[q.LOGGER_STORE]=new p(this.$BoostedComponentConfig2,this.getStores(),this);this.$BoostedComponentConfig3[q.CREATIVE_STORE]=new i(this.$BoostedComponentConfig2);this.$BoostedComponentConfig3[q.URI_STORE]=new s(this.$BoostedComponentConfig2);this.$BoostedComponentConfig4();this.init();switch(v){case j.INIT_DATA_LOADED:var y=w[g.DIALOG_BUTTON_DATA];this.$BoostedComponentConfig5=new k(y.label,y.iconUrl);this.$BoostedComponentConfig6=new r(this.$BoostedComponentConfig2,this.getContextStore());this.$BoostedComponentConfig2.handleUpdateFromInitialServer({actionType:o.INIT_DATA_LOADED,data:w});break;}}u.prototype.$BoostedComponentConfig4=function(){"use strict";this.$BoostedComponentConfig7=new l(this.$BoostedComponentConfig2);};u.prototype.init=function(){"use strict";return;};u.prototype.getConfigData=function(){"use strict";return this.$BoostedComponentConfig1;};u.prototype.onConfigUpdate=function(){"use strict";this.$BoostedComponentConfig0();};u.prototype.loadData=function(v){"use strict";this.$BoostedComponentConfig8=v[g.DATA_OPTIONS];this.$BoostedComponentConfig9=v[g.DIALOG_MODE];this.initProductLoadData(v);this.getDialogUIStore().setDialogState(j.ACTIVE);};u.prototype.initProductLoadData=function(v){"use strict";return;};u.prototype.getUnitOptions=function(){"use strict";return this.$BoostedComponentConfig8;};u.prototype.setStore=function(v,w){"use strict";this.$BoostedComponentConfig3[v]=w;};u.prototype.getStore=function(v){"use strict";return this.$BoostedComponentConfig3[v];};u.prototype.getStores=function(){"use strict";return this.$BoostedComponentConfig3;};u.prototype.getDispatcher=function(){"use strict";return this.$BoostedComponentConfig2;};u.prototype.getContextStore=function(){"use strict";return this.$BoostedComponentConfig3[q.CONTEXT_STORE];};u.prototype.getDialogUIStore=function(){"use strict";return this.$BoostedComponentConfig3[q.DIALOG_UI_STORE];};u.prototype.getCreativeStore=function(){"use strict";return this.$BoostedComponentConfig3[q.CREATIVE_STORE];};u.prototype.getURIStore=function(){"use strict";return this.$BoostedComponentConfig3[q.URI_STORE];};u.prototype.getLoggerStore=function(){"use strict";return this.$BoostedComponentConfig3[q.LOGGER_STORE];};u.prototype.getDialogMode=function(){"use strict";return this.$BoostedComponentConfig9;};u.prototype.getDialogRenderViewActions=function(){"use strict";return this.$BoostedComponentConfig7;};u.prototype.getSubmissionActions=function(){"use strict";return this.$BoostedComponentConfig6;};u.prototype.getDialogButtonStore=function(){"use strict";return this.$BoostedComponentConfig5;};e.exports=u;},null);
  __d("BoostedComponentStrings",["fbt"],function(a,b,c,d,e,f,g){var h={ERROR_DIALOG_BODY:"Something went wrong. Please refresh your browser and try again later."};e.exports=h;},null);
  __d("BoostedComponentErrorDialog.react",["BoostedComponentConstants","BoostedComponentStrings","LayerFadeOnHide","React","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogOkayButton.react","XUIDialogTitle.react"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';var q=j.createClass({displayName:"BoostedComponentErrorDialog",mixins:[k],propTypes:{causalElementRef:j.PropTypes.string.isRequired,shown:j.PropTypes.bool.isRequired,dialogTitle:j.PropTypes.string.isRequired,onToggle:j.PropTypes.func.isRequired},renderLayers:function(){return {dialog:j.createElement(l,{causalElementRef:this.props.causalElementRef,shown:this.props.shown,behaviors:{LayerFadeOnHide:i},width:g.ERROR_DIALOG_WIDTH,onToggle:this.props.onToggle},j.createElement(p,null,this.props.dialogTitle),j.createElement(m,null,h.ERROR_DIALOG_BODY),j.createElement(n,null,j.createElement(o,{action:"cancel",use:"confirm"})))};},render:function(){return j.createElement("div",null);}});e.exports=q;},null);
  __d("BoostedComponentLoadingDialog.react",["BoostedComponentConstants","LayerFadeOnHide","React","ReactLayeredComponentMixin","XUICard.react","XUIDialog.react","XUISpinner.react","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';var o=i.createClass({displayName:"BoostedComponentLoadingDialog",mixins:[j],propTypes:{causalElementRef:i.PropTypes.string.isRequired,shown:i.PropTypes.bool.isRequired},renderLayers:function(){return {dialog:i.createElement(l,{causalElementRef:this.props.causalElementRef,shown:this.props.shown,behaviors:{LayerFadeOnHide:h},width:g.LOADING_DIALOG_WIDTH},i.createElement(k,null,i.createElement("div",{className:"_2aoh"},i.createElement(m,{background:"light",size:"large"}))))};},render:function(){return i.createElement("div",null);}});e.exports=o;},null);
  __d("BoostedComponentMainDialog.react",["BoostedComponentConstants","BoostedComponentTestElement","DialogExpansion","Grid.react","LayerFadeOnHide","React","ReactLayeredComponentMixin","Vector","XUICard.react","XUIDialog.react","XUIDialogBody.react","XUIDialogTitle.react","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';var t=j.GridItem,u=l.createClass({displayName:"BoostedComponentMainDialog",mixins:[m],propTypes:{causalElementRef:l.PropTypes.string.isRequired,shown:l.PropTypes.bool.isRequired,onToggle:l.PropTypes.func.isRequired,dialogTitle:l.PropTypes.string.isRequired,dialogLeftColumn:l.PropTypes.object.isRequired,dialogRightColumn:l.PropTypes.object.isRequired,dialogFooter:l.PropTypes.object.isRequired},getInitialState:function(){return {dialogSeen:this.props.shown};},componentWillReceiveProps:function(v){if(!this.state.dialogSeen&&v.shown)this.setState({dialogSeen:true});},renderLayers:function(){if(!this.state.dialogSeen)return {};return {dialog:l.createElement(p,{causalElementRef:this.props.causalElementRef,shown:this.props.shown,behaviors:{LayerFadeOnHide:k,DialogExpansion:i},width:g.DIALOG_WIDTH,onToggle:this.props.onToggle,layerHideOnBlur:false,fixedTopPosition:100},l.createElement(r,null,this.props.dialogTitle),l.createElement(q,{useCustomPadding:true,"data-testid":h.DIALOG_BODY},l.createElement("div",{className:"_26bd",style:{maxHeight:this._getDialogColumnMaxHeight()+'px'}},l.createElement(j,{className:"_2aoe",cols:2,alignv:"top",spacing:"phs"},l.createElement(t,{className:"_2aof"},this.props.dialogLeftColumn),l.createElement(t,{className:"_2aog"},l.createElement(o,null,this.props.dialogRightColumn))))),this.props.dialogFooter)};},render:function(){return l.createElement("div",null);},_getDialogColumnMaxHeight:function(){var v=Math.max(n.getViewportDimensions().y-250,g.DIALOG_MIN_HEIGHT);return Math.min(v,g.DIALOG_MAX_HEIGHT);}});e.exports=u;},null);
  __d("BoostedComponentDialogMixin",["BoostedComponentDataState","BoostedComponentErrorDialog.react","BoostedComponentLoadingDialog.react","BoostedComponentMainDialog.react","DOM","React"],function(a,b,c,d,e,f,g,h,i,j,k,l){'use strict';var m={renderDialog:function(){switch(this._config.getDialogUIStore().getDialogState()){case g.ERROR:this._renderErrorDialog();break;case g.ACTIVE:this._renderMainDialog();break;}this._renderLoadingDialog();},onMouseEnter:function(){if(!this.props.reactDialog)return;this._config.getDialogRenderViewActions().onMouseEnter();},onUpsellButtonClick:function(event){this._config.getDialogRenderViewActions().onUpsellButtonClick();event.preventDefault();},_onMainDialogToggle:function(n){if(!n)this._config.getDialogRenderViewActions().onCreateDialogClose();},_renderMainDialog:function(){if(!this._mainDialogAnchor)this._mainDialogAnchor=k.create('div');l.render(l.createElement(j,{causalElementRef:this._getWidgetRef(),shown:this._isDialogShown(),onToggle:this._onMainDialogToggle,dialogTitle:this.getDialogTitle(),dialogLeftColumn:this.getLeftColumn(),dialogRightColumn:this.getRightColumn(),dialogFooter:this.getDialogFooter()}),this._mainDialogAnchor);},_renderErrorDialog:function(){if(!this._errorDialogAnchor)this._errorDialogAnchor=k.create('div');l.render(l.createElement(h,{causalElementRef:this._getWidgetRef(),shown:this._isDialogShown(),dialogTitle:this.getDialogTitle()}),this._errorDialogAnchor);},_renderLoadingDialog:function(){if(!this._loadingDialogAnchor)this._loadingDialogAnchor=k.create('div');l.render(l.createElement(i,{causalElementRef:this._getWidgetRef(),shown:this._isDialogShown()&&this._config.getDialogUIStore().getDialogState()===g.LOADING}),this._loadingDialogAnchor);},_isDialogShown:function(){return (this._config.getDialogUIStore().getDialogShown()&&!this.state.hiddenDialog);}};e.exports=m;},null);
  __d("BoostedComponentDialogStates",[],function(a,b,c,d,e,f){var g={ENABLED:0,LOADING:1,DISABLED:2,FINISHED:3};e.exports=g;},null);
  __d("BoostedComponentTerms.react",["BoostedComponentTestElement","LayerHideOnBlur","Link.react","React","ReactLayeredComponentMixin","URI","XUICloseButton.react","XUIContextualDialog.react","XUIText.react","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=j.createClass({displayName:"BoostedComponentTerms",mixins:[k],propTypes:{buttonLabel:j.PropTypes.string.isRequired},getInitialState:function(){return {dialogShown:false};},_showDialog:function(){this.setState({dialogShown:true});},_hideDialog:function(){this.setState({dialogShown:false});},_onToggle:function(s){if(!s&&this.state.dialogShown)this._hideDialog();},renderLayers:function(){return {contextualDialog:j.createElement(n,{contextRef:"terms",shown:this.state.dialogShown,position:"above",onToggle:this._onToggle,width:n.WIDTH.WIDE,behaviors:{LayerHideOnBlur:h}},j.createElement(m,{"data-testid":g.TERMS_DIALOG_CLOSE_BUTTON,className:"rfloat mts mrs",href:"#",onClick:this._hideDialog}),j.createElement("div",{className:"_53iv"},j.createElement("div",{className:"mbm"},j.createElement(o,{size:"medium",weight:"bold"},"Terms & Conditions")),q._("By clicking {label} you agree to the Facebook {terms} and {ad_guidelines}. We do not use sensitive personal data for ad targeting. Topics you choose for targeting your ad don't reflect the personal beliefs, characteristics or values of users. If you are a resident of or have your principal place of business in the US or Canada, you are contracting solely with Facebook, Inc. Otherwise, you are contracting solely with Facebook Ireland, Ltd. However, if you are a resident of or have your principal place of business in Brazil, then you continue to have this contractual relationship with Facebook Ireland Limited but your payment may be taken directly by Facebook Servicos Online Do Brasil Ltda in accordance with the {payment_terms} promulgated by Facebook Servicos Online Do Brasil Ltda.",[q.param("label",'"'+this.props.buttonLabel+'",'),q.param("terms",j.createElement(i,{href:l('/legal/terms'),target:"_blank"},"Terms")),q.param("ad_guidelines",j.createElement(i,{href:l('/ad_guidelines.php'),target:"_blank"},"Advertising Guidelines")),q.param("payment_terms",j.createElement(i,{href:l('/payments_terms'),target:"_blank"},"Payments Terms"))])))};},render:function(){return (j.createElement(i,{"data-testid":g.TERMS,className:"mlm",ref:"terms",onClick:this._showDialog},"Terms & Conditions"));}});e.exports=r;},null);
  __d("BoostedComponentFooter.react",["BoostedComponentDialogStates","BoostedComponentTerms.react","LeftRight.react","LoadingIndicator.react","React","XUIButton.react","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=k.createClass({displayName:"BoostedComponentFooter",propTypes:{buttonSpecs:k.PropTypes.array.isRequired,actionMenu:k.PropTypes.element.isRequired,dialogState:k.PropTypes.number},getDefaultProps:function(){return {dialogState:g.ENABLED};},_renderActionMenu:function(){return this.props.actionMenu;},_renderTermsConditionsLink:function(){var p="Boost";return k.createElement(h,{buttonLabel:p});},_renderLoadingIndicator:function(){if(this.props.dialogState!==g.LOADING)return null;return (k.createElement(j,{className:"mrm _2ooe",color:"white",size:"small"}));},getModifiedButtonSpecs:function(p){p.disabled=p.disabled||this.props.dialogState!==g.ENABLED;return p;},_renderButtons:function(){var p=[];for(var q=this.props.buttonSpecs.length-1;q>=0;q--){var r=this.getModifiedButtonSpecs(this.props.buttonSpecs[q]);p.push(k.createElement(l,k.__spread({key:q},r)));}return p;},render:function(){return (k.createElement(i,{className:"_2oof pam"},k.createElement("div",null,this._renderActionMenu(),this._renderTermsConditionsLink()),k.createElement("div",null,this._renderLoadingIndicator(),this._renderButtons())));}});e.exports=o;},null);
  __d("BoostedComponentGatingStringsUtil",["fbt","intlList"],function(a,b,c,d,e,f,g,h){var i={DISPLAY_GATED_COUNTRY_LIST_MAX:3,getGatedCountryConflictString:function(j,k,l,m,n){if(!n)return null;var o=this.getTruncatedCountryList(j),p=this.getTruncatedCountryList(m),q=null;if(o.length){q=g._("Your Page posts are only shown to people in {list_of_countries}.",[g.param("list_of_countries",h(o,h.CONJUNCTIONS.AND))]);}else if(p.length)q=g._("Your Page restricts {list_of_countries}.",[g.param("list_of_countries",h(p,h.CONJUNCTIONS.AND))]);var r=null;switch(n){case 'countries':r=this.getCountryRestrictionInstructions(l.length,m.length);break;case 'regions':r=this.getRegionRestrictionInstructions(l.length,m.length);break;case 'cities':r=this.getCityRestrictionInstructions(l.length,m.length);break;default:break;}return (g._("{list_of_conflicting_countries} {instructions}",[g.param("list_of_conflicting_countries",q),g.param("instructions",r)]));},getTruncatedCountryList:function(j){var k=j.length-this.DISPLAY_GATED_COUNTRY_LIST_MAX;if(k<1)return j.slice();var l=j.slice(0,this.DISPLAY_GATED_COUNTRY_LIST_MAX-1);l.push(g._("{num_remaining_countries} more countries",[g.param("num_remaining_countries",k+1)]));return l;},getCountryRestrictionInstructions:function(j,k){if(j){return ("Remove other countries to boost your post.");}else if(k)if(k===1){return ("Remove this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove them to boost your post.");}else return ("Remove these countries to boost your post.");return null;},getRegionRestrictionInstructions:function(j,k){if(j){return ("Remove regions in other countries to boost your post.");}else if(k)if(k===1){return ("Remove regions from this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove regions from them to boost your post.");}else return ("Remove regions from these countries to boost your post.");return null;},getCityRestrictionInstructions:function(j,k){if(j){return ("Remove cities in other countries to boost your post.");}else if(k)if(k===1){return ("Remove cities from this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove cities from them to boost your post.");}else return ("Remove cities from these countries to boost your post.");return null;}};e.exports=i;},null);
  __d("BoostedComponentNeedsConfirmationMixin",["AdsTargetingTogglerSafeMixin","LayerFadeOnHide","React","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogCancelButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q={mixins:[j,g],getInitialState:function(){return {dialogShown:false};},showDialog:function(){this.setStateSafe({dialogShown:true});},hideDialog:function(){this.setStateSafe({dialogShown:false});},_onToggle:function(r){this.setStateSafe({dialogShown:r});},renderLayers:function(){return {dialog:i.createElement(k,{causalElementRef:this.getCausalElementRef(),shown:this.state.dialogShown,behaviors:{LayerFadeOnHide:h},onToggle:this._onToggle,width:445},i.createElement(p,null,this.getConfirmationDialogTitle()),i.createElement(l,null,this.getConfirmationDialogBody()),i.createElement(o,null,i.createElement(n,null),this.getConfirmButton()))};},getConfirmButton:function(){return (i.createElement(m,{label:this.getConfirmButtonLabel(),href:this.getConfirmButtonHref(),use:"confirm",action:"button",target:"_blank"}));}};e.exports=q;},null);
  __d("BoostedComponentPowerEditorDialog.react",["LayerFadeOnHide","React","ReactLayeredComponentMixin","URI","XUIDialog.react","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogButton.react","XUIDialogCancelButton.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r='/ads/manage/powereditor',s=h.createClass({displayName:"BoostedComponentPowerEditorDialog",mixins:[i],propTypes:{},getInitialState:function(){return {dialogShown:false};},_onLinkClick:function(){this.setState({dialogShown:true});},_onToggle:function(t){this.setState({dialogShown:t});},_onConfirm:function(){this.setState({dialogShown:false});return true;},renderLayers:function(){if(!this.state.dialogShown)return {};var t="Edit Audience in Power Editor",u="See Power Editor",v={act:this.props.adAccountID,ad_account_id:this.props.adAccountID},w=j(r).addQueryData(v).toString();return {dialog:h.createElement(k,{shown:true,behaviors:{LayerFadeOnHide:g},onToggle:this._onToggle,width:445},h.createElement(l,null,t),h.createElement(m,null,h.createElement("div",null,"This audience was created in Power Editor. To edit your audience, you'll need to return to it.")),h.createElement(n,null,h.createElement(p,{use:"default",action:"cancel"}),h.createElement(o,{href:w,target:"_blank",label:u,use:"confirm",action:"confirm",onClick:this._onConfirm})))};},render:function(){return (h.createElement("span",{onClick:this._onLinkClick},this.props.children));}});e.exports=s;},null);
  __d("BoostedComponentSafeMixin",["BoostedPostEventType","BoostedPostLogging","React"],function(a,b,c,d,e,f,g,h,i){var j={propTypes:{displaySection:i.PropTypes.string.isRequired,userID:i.PropTypes.string,pageID:i.PropTypes.string,postID:i.PropTypes.string},getUserID:function(){if(this.props.userID)return this.props.userID;return this.state.config.getContextStore().getUserID();},getPageID:function(){if(this.props.pageID)return this.props.pageID;return this.state.config.getContextStore().getPageID();},getPostID:function(){if(this.props.postID)return this.props.postID;return this.state.config.getContextStore().getPostID();},render:function(){try{return this._render();}catch(k){h.log(g.RENDER_FAILED,{user_id:this.getUserID(),page_id:this.getPageID(),post_id:this.getPostID(),display_section:this.props.displaySection,error_message:k.message,error_trace:k.stack});if(typeof this._renderError==='function')return this._renderError();return i.createElement("div",null);}}};e.exports=j;},null);
  __d("BoostedPrimedDao",["BoostedPagelikeAppConfig","CurrentLocale","AdsDaoGraph","WebApiApplication"],function(a,b,c,d,e,f,g,h,i,j){j.init(g.access_token,g.client_id);var k=null;e.exports={setAccountID:function(l){k=i.primedForAccount(l).primedForLocale(h.get());},getDaoForCurrentAccount:function(){return k;}};},null);
  __d("BoostedComponentClientEventType",["BoostedComponentClientEvent"],function(a,b,c,d,e,f,g){var h={getEventUpdateType:function(event){switch(event){case g.UPDATE_AGE:case g.UPDATE_AUDIENCE:case g.UPDATE_CITIES:case g.UPDATE_COUNTRIES:case g.UPDATE_GENDER:case g.UPDATE_INTERESTS:case g.UPDATE_RADIUS:case g.UPDATE_REGIONS:case g.UPDATE_LOOKALIKE_COUNTRY:return 'targeting';case g.UPDATE_DURATION:case g.UPDATE_END_TME:return 'schedule';case g.SELECT_BUDGET:case g.INPUT_BUDGET:return 'budget';default:return 'unknown';}}};e.exports=h;},null);
  __d("XAdsBugReportDialogControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/ajax\/bugs\/dialog\/",{product:{type:"Enum",required:true},account_id:{type:"Int"},business_id:{type:"Int"},campaign_group_id:{type:"Int"},campaign_id:{type:"Int"},adgroup_id:{type:"Int"},screenshot_container_id:{type:"String"},page_id:{type:"Int"},post_id:{type:"Int"}});},null);
  __d("BoostedPostAdvancedOptionsLink.react",["ApiCreativeTypes","BoostedComponentNeedsConfirmationMixin","Image.react","React","URI","cx","fbt","ix"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=j.createClass({displayName:"BoostedPostAdvancedOptionsLink",mixins:[h],propTypes:{pageID:j.PropTypes.string.isRequired,postID:j.PropTypes.string,adAccountID:j.PropTypes.string.isRequired,isEvent:j.PropTypes.bool},render:function(){return (j.createElement("div",{ref:this.getCausalElementRef(),onClick:this.showDialog},m._("Advanced options {image}",[m.param("image",j.createElement(i,{className:"_2spa",src:n('/images/ui/x/glyphs/combined/leave_s.png')}))])));},getCausalElementRef:function(){return 'advancedOptionsLink';},getConfirmationDialogTitle:function(){return ("Confirm");},getConfirmationDialogBody:function(){return (j.createElement("div",null,"Are you sure you want to leave this page and go to Advanced Options?"));},getConfirmButtonLabel:function(){return ("Confirm");},getConfirmButtonHref:function(){if(this.props.isEvent)return new k('/ads/create/').addQueryData({fbid:this.props.postID,act:this.props.adAccountID,creativeType:g.PAGE_POSTS_V2,ref:'promoted_post'});return new k('/ads/create/').addQueryData({fbid:this.props.pageID,storyid:this.props.postID,act:this.props.adAccountID,creativeType:g.PAGE_POSTS_V2,ref:'promoted_post'});}});e.exports=o;},null);
  __d("XBoostedPostDialogControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/ajax\/boosted_post\/boosted_post_dialog\/",{page_id:{type:"Int",required:true},post_id:{type:"Int",required:true},status:{type:"Enum",required:true},placement:{type:"Enum",required:true},max_height:{type:"Int"},button_id:{type:"String"},privacy_gating_spec:{type:"String"},dialog_mode:{type:"Enum"},__asyncDialog:{type:"Int"}});},null);
  __d("XUIMenuSeparator.react",["MenuSeparator.react"],function(a,b,c,d,e,f,g){var h=g;e.exports=h;},null);
  __d("BoostedPostActionMenu.react",["XAdsBugReportDialogControllerURIBuilder","AdsBugReportProduct","Arbiter","AsyncDialog","AsyncRequest","BusinessConf","BoostedComponentDialogMode","BoostedComponentTestElement","BoostedPostAdvancedOptionsLink.react","XBoostedPostDialogControllerURIBuilder","BoostedPostStatus","BoostedPostUpdateStatusActions","ContextualDialogArrow","ContextualLayerAutoFlip","Image.react","PopoverMenu.react","PromotedPostConstants","React","URI","XUIButton.react","ReactXUIMenu","XUIMenuSeparator.react","emptyFunction","fbt","ix"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea){var fa=aa.Item,ga=x.createClass({displayName:"BoostedPostActionMenu",propTypes:{status:x.PropTypes.string.isRequired,pageID:x.PropTypes.string.isRequired,postID:x.PropTypes.string,accountID:x.PropTypes.string.isRequired,placement:x.PropTypes.string.isRequired,ownerFlyoutID:x.PropTypes.string.isRequired,buttonID:x.PropTypes.string.isRequired,contactFormURI:x.PropTypes.string,isEvent:x.PropTypes.bool.isRequired,experiments:x.PropTypes.object.isRequired,screenshotContainerID:x.PropTypes.string.isRequired,maxHeight:x.PropTypes.number.isRequired,onSubmit:x.PropTypes.func},getDefaultProps:function(){return {onSubmit:ca};},_isCreateFlyout:function(){return (this.props.status===q.INACTIVE||this.props.status===q.DRAFT);},_sendArbiterSignal:function(event,ha){var ia=ha.item.getValue();if(!ia)return;i.inform(ia,this.props.ownerFlyoutID);},getDeleteBoostMenuItem:function(){return (x.createElement(fa,{key:"delete",value:w.DELETE},x.createElement("div",{onClick:function(){return this.props.onSubmit(r.DELETE);}.bind(this)},"Delete")));},getBillingInfoMenuItem:function(){var ha=new y('/ads/manage/billing.php').addQueryData({act:this.props.accountID});return (x.createElement(fa,{key:"billingInfo",href:ha,target:"_blank"},"Edit Billing Info"));},getHelpCenterMenuItem:function(){return (x.createElement(fa,{key:"helpCenter","data-testid":n.HELP_CENTER_BUTTON,href:y('/help/www/547448218658012/'),target:"_blank"},"Visit Help Center"));},getFeedbackMenuItem:function(){return (x.createElement(fa,{key:"feedback",href:y('/help/contact/408880639134452'),target:"_blank"},"Send Feedback"));},getReportProblemMenuItem:function(){return (x.createElement(fa,{key:"reportProblem",href:"#",ajaxify:this._getReportBugURI(),rel:"dialog"},"Report a problem"));},getContactFormMenuItem:function(){return (x.createElement(fa,{className:l.WHITELISTED_URI_CLASS,key:"contactForm",href:y(this.props.contactFormURI),target:"_blank"},"Contact Support"));},getEditAdMenuItem:function(){return (x.createElement(fa,{key:"editAd"},x.createElement("div",{onClick:this.openEditTargetingDialog},"Edit Ad")));},getAdvancedOptionsLink:function(){return (x.createElement(fa,{key:"advancedOptions"},x.createElement(o,{pageID:this.props.pageID,postID:this.props.postID,adAccountID:this.props.accountID,isEvent:this.props.isEvent})));},openEditTargetingDialog:function(){this.props.onSubmit(r.NONE);i.inform(w.CLOSE_DIALOG,this.props.ownerFlyoutID);var ha=new k().setURI(this._getEditBoostURI());j.send(ha);},getMenuOptions:function(){var ha=[];if(this._isCreateFlyout()&&this.props.experiments.show_advanced_options)ha.push(this.getAdvancedOptionsLink());if(this.props.experiments.show_edit_targeting&&this._getEditBoostURI())ha.push(this.getEditAdMenuItem());if(!this._isCreateFlyout()&&this.props.status!==q.INSIGHTS)ha.push(this.getDeleteBoostMenuItem(),x.createElement(ba,{key:"separator1"}),this.getBillingInfoMenuItem(),x.createElement(ba,{key:"separator2"}));ha.push(this.getHelpCenterMenuItem(),x.createElement(ba,{key:"separator3"}));if(this.props.experiments.use_new_bug_report){ha.push(this.getReportProblemMenuItem());}else ha.push(this.getFeedbackMenuItem());if(this.props.contactFormURI)ha.push(this.getContactFormMenuItem());return ha;},render:function(){var ha=x.createElement(aa,{onItemClick:this._sendArbiterSignal},this.getMenuOptions());return (x.createElement(v,{menu:ha,layerBehaviors:[t,s]},x.createElement(z,{"data-testid":n.ACTION_MENU_BUTTON,image:x.createElement(u,{src:ea('/images/ui/x/image/gear.png')})})));},_getReportBugURI:function(){return new g().setEnum('product',h.BOOSTED_POST).setString('screenshot_container_id',this.screenshotContainerID).setInt('page_id',this.props.pageID).setInt('post_id',this.props.postID).getURI();},_getEditBoostURI:function(){return new p().setInt('page_id',this.props.pageID).setInt('post_id',this.props.postID).setEnum('status',q.EDITING).setEnum('placement',this.props.placement).setString('button_id',this.props.buttonID).setInt('max_height',this.props.maxHeight).setEnum('dialog_mode',m.EDIT).getURI();}});e.exports=ga;},null);
  __d("BoostedPostBasicDialog.react",["AdsTargetingTogglerSafeMixin","React","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogButton.react","XUIText.react","cloneWithProps"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=h.createClass({displayName:"BoostedPostBasicDialog",mixins:[i,g],propTypes:{title:h.PropTypes.string.isRequired,body:h.PropTypes.string.isRequired,width:h.PropTypes.number.isRequired,entryComponent:h.PropTypes.element.isRequired,closeButtonText:h.PropTypes.string.isRequired,confirmText:h.PropTypes.string,confirmHandler:h.PropTypes.func},getInitialState:function(){return {dialogShown:false};},_onEntryClick:function(){this.setStateSafe({dialogShown:true});},_onToggle:function(r){this.setStateSafe({dialogShown:r});},_onConfirm:function(){this.setStateSafe({dialogShown:false});this.props.confirmHandler();},_onClose:function(){this.setStateSafe({dialogShown:false});},renderLayers:function(){var r=null;if(this.props.confirmHandler&&this.props.confirmText)r=h.createElement(n,{use:"confirm",label:this.props.confirmText,onClick:this._onConfirm});return {dialog:h.createElement(j,{causalElementRef:"entry",shown:this.state.dialogShown,onToggle:this._onToggle,width:this.props.width},h.createElement(k,{showCloseButton:false},h.createElement("span",null,this.props.title)),h.createElement(l,null,h.createElement("div",null,h.createElement(o,{size:"small"},this.props.body))),h.createElement(m,null,h.createElement(n,{onClick:this._onClose,label:this.props.closeButtonText}),r))};},render:function(){return (p(this.props.entryComponent,{ref:"entry",onClick:this._onEntryClick}));}});e.exports=q;},null);
  __d("XBoostedPostCalculateBudgetsControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/ajax\/boosted_post\/calculate_budget\/",{id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},boosted_post_config:{type:"String",required:true},mode:{type:"Enum",required:true},is_custom_budget:{type:"Bool"},format_reach:{type:"Bool"},compress_reach:{type:"Bool"}});},null);
  __d("BoostedPostBudgetReachDispatcher",["AsyncRequest","BoostedComponentsDialogChangeActions","XBoostedPostCalculateBudgetsControllerURIBuilder"],function(a,b,c,d,e,f,g,h,i){function j(k,l){"use strict";this.$BoostedPostBudgetReachDispatcher0=k;this.$BoostedPostBudgetReachDispatcher1=l;}j.prototype.getNewBudgets=function(k,l,m,n,o,p){"use strict";new g().setURI(this.$BoostedPostBudgetReachDispatcher2(k,l,n,p)).setHandler(function(q){var r=q.payload;if(n===h.UPDATE_CUSTOM_BUDGET)if(!r.budgetInfo[0]){r.budgetInfo=this.$BoostedPostBudgetReachDispatcher3(m,r.budgetInfo);}else r.budgetInfo=this.$BoostedPostBudgetReachDispatcher3(m);o(r);}.bind(this)).send();};j.prototype.$BoostedPostBudgetReachDispatcher3=function(k,l){"use strict";var m=Object.keys(k);if(l)m.push(this.$BoostedPostBudgetReachDispatcher4(l));m.sort();var n={},o=null;for(var p=0;p<m.length;p++){o=m[p];n[o]=k[o]||l[o];}return n;};j.prototype.$BoostedPostBudgetReachDispatcher4=function(k){"use strict";return parseInt(Object.keys(k)[0],10);};j.prototype.$BoostedPostBudgetReachDispatcher2=function(k,l,m,n){"use strict";return (new i().setInt('id',k).setInt('page_id',this.$BoostedPostBudgetReachDispatcher0).setInt('post_id',this.$BoostedPostBudgetReachDispatcher1).setString('boosted_post_config',l.getJSONString()).setEnum('mode',m).setBool('is_custom_budget',n).getURI());};e.exports=j;},null);
  __d("AdsChangeCurrencyWarnBox.react",["AdsCFBox.react","AdsCurrency","fbt","Link.react","React","URI","adsGKCheck"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=k.createClass({displayName:"AdsChangeCurrencyWarnBox",propTypes:{currency:k.PropTypes.string.isRequired,helpLink:k.PropTypes.string.isRequired},render:function(){if(this.props.currency==='BRL'&&m('ads_payments_brazil_currency_swap_msg'))return (k.createElement(g,{type:"yellow"},i._("Payments made using a credit card or PayPal can't be processed with Brazilian Real (BRL) currency. If you select BRL, these payments will be processed in US Dollars. Payments made using boleto will be processed in BRL. {=Learn more}.",[i.param("=Learn more",k.createElement(j,{href:l(this.props.helpLink)},"Learn More"))])));return (k.createElement(g,{type:"yellow"},i._("Payments made in {currency name} ({currency ISO code}) will now be processed in US Dollars (USD). You'll see your payments in {currency ISO code}, but your bank statement may show USD. {=Learn more}.",[i.param("currency name",h.getName(this.props.currency)),i.param("currency ISO code",this.props.currency),i.param("currency ISO code",this.props.currency),i.param("=Learn more",k.createElement(j,{href:l(this.props.helpLink)},"Learn More"))])));}});e.exports=n;},null);
  __d("AdsSwapChargeCurrency",["AdsChangeCurrencyWarnBox.react","AdsSwapChargeCurrencyConfig","React"],function(a,b,c,d,e,f,g,h,i){function j(l){var m=h[l];return m&&m.swappable?i.createElement(g,{currency:l,helpLink:m.helpLink}):null;}var k={renderWarnbox:j};e.exports=k;},null);
  __d("AdsBudgetDropdownSelector.react",["AdsCurrencyInput.react","AdsCurrencyFormatter","AdsRichSelector.react","AdsTargetingTogglerSafeMixin","React","XUIGrayText.react","XUIText.react","XUIButton.react","XUIButtonGroup.react","DOM","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=i.Option,t='-1';function u(w){return parseInt(w,10);}var v=k.createClass({displayName:"AdsBudgetDropdownSelector",mixins:[j],propTypes:{budgets:k.PropTypes.object.isRequired,currency:k.PropTypes.string.isRequired,selectedBudget:k.PropTypes.number.isRequired,showCustomBudgetOption:k.PropTypes.bool.isRequired,onBudgetSelected:k.PropTypes.func.isRequired,onBudgetEntered:k.PropTypes.func.isRequired,usePillButton:k.PropTypes.bool,showLoadingIndicator:k.PropTypes.bool,updateAllBudgets:k.PropTypes.bool},getInitialState:function(){return {selectedBudget:this.props.selectedBudget,showBudgetTextInput:!this.props.usePillButton,customBudget:this.props.selectedBudget};},componentWillMount:function(){if(this.props.usePillButton)this._sortedPillButtonBudgetValues=this._getSortedBudgets();},componentWillReceiveProps:function(w){if(this.props.usePillButton&&w.updateAllBudgets){if(this.state.showBudgetTextInput){this.props.onBudgetEntered(this.state.selectedBudget);if(Object.keys(w.budgets).length===5)delete w.budgets[this.state.selectedBudget];}this._sortedPillButtonBudgetValues=this._getSortedBudgets(w.budgets);}this.setState({selectedBudget:w.selectedBudget});},_onTextInputChange:function(w){var x=Math.floor(w);if(x===this.state.selectedBudget)return null;this.props.onBudgetEntered(x);this.setStateSafe({customBudget:w,selectedBudget:w});},_onBudgetChange:function(w){this.setStateSafe(w);this.props.onBudgetSelected(w.selectedBudget);},_onSelectorChange:function(w){if(w.value===t){var x=p.scry(this.refs.budgetTextInput.getDOMNode(),'input')[0];x.focus();x.select();return;}this._onBudgetChange({selectedBudget:u(w.value)});},_getEstimatedReach:function(w){var x=this.props.budgets[w].estimation_label;if(!x)return null;return (k.createElement(l,{className:"_nmo pll",weight:"normal"},x));},_getSortedBudgets:function(w){if(!w)w=this.props.budgets;return Object.keys(w).map(u).sort(function(x,y){return x-y;});},_renderDropdown:function(){if(this.props.usePillButton)return null;var w=this._getSortedBudgets(),x=w.map(function(z){var aa=h.formatCurrencyFullFormat(this.props.currency,z,false,true);return (k.createElement(s,{key:z,label:aa,value:z.toString(),selected:z===this.state.selectedBudget},k.createElement("div",{className:"_nmp mvs"},k.createElement(m,{className:"_nmq prl",size:"xlarge"},aa),this._getEstimatedReach(z))));},this);if(this.props.showCustomBudgetOption){var y=("Choose Your Own");x.push(k.createElement(s,{key:t,label:y,value:t},k.createElement("div",{className:"_nmp mvs"},k.createElement(m,{className:"prl",size:"xlarge"},y))));}return (k.createElement(i,{className:"_5wwb",alignment:"right",noLabel:true,requireSelection:false,size:"xlarge",defaultValue:this.state.selectedBudget.toString(),onChange:this._onSelectorChange},x));},componentDidUpdate:function(){if(this.state.showBudgetTextInput&&this._focusOnCurrencyInput){var w=p.find(this.refs.budgetTextInput.getDOMNode(),'input');w.focus();w.select();this._focusOnCurrencyInput=false;}},_onPillBudgetSelected:function(w){var x=null;if(w===null){x={showBudgetTextInput:true,selectedBudget:this.state.customBudget};this._focusOnCurrencyInput=true;if(!(this.state.customBudget in this.props.budgets))this.props.onBudgetEntered(this.state.customBudget);}else x={showBudgetTextInput:false,selectedBudget:w};this._onBudgetChange(x);},_renderPillButtons:function(){if(!this.props.usePillButton||!this._sortedPillButtonBudgetValues)return null;var w=this._sortedPillButtonBudgetValues.map(function(y){var z=h.formatCurrencyFullFormat(this.props.currency,y,false,true);return (k.createElement(n,{className:"_1wdq",depressed:y===this.state.selectedBudget&&!this.state.showBudgetTextInput,label:z,onClick:this._onPillBudgetSelected.bind(null,y),key:y}));},this),x="Other";w.push(k.createElement(n,{className:"_1wdq",depressed:this.state.showBudgetTextInput,label:x,onClick:this._onPillBudgetSelected.bind(null,null),key:"other"}));return (k.createElement(o,null,w));},_renderTextInput:function(){if(this.props.usePillButton)return (k.createElement("div",{className:(("mtm")+(!this.state.showBudgetTextInput?' '+"hidden_elem":''))},k.createElement(g,{ref:"budgetTextInput",className:(("_1wdr")+(this.props.usePillButton&&this.props.showLoadingIndicator?' '+"_1wds":'')),height:"tall",value:this.state.customBudget,currency:this.props.currency,withNumberDelimiters:true,nonnegative:true,onDataUpdate:this._onTextInputChange,eventType:"change"})));return (k.createElement(g,{ref:"budgetTextInput",className:"_8xx",height:"xtall",value:this.state.selectedBudget,currency:this.props.currency,withNumberDelimiters:true,nonnegative:true,onDataUpdate:this._onTextInputChange,eventType:"change"}));},_onKeyDown:function(event){if(event.key==='Enter')event.preventDefault();},render:function(){return (k.createElement("div",{className:"_51xa",onKeyDown:this._onKeyDown},this._renderPillButtons(),this._renderTextInput(),this._renderDropdown()));}});e.exports=v;},null);
  __d("BoostedPostConfig",[],function(a,b,c,d,e,f){function g(){"use strict";}g.prototype.setAccountID=function(h){"use strict";this.$BoostedPostConfig0=h;};g.prototype.setAudienceOption=function(h){"use strict";this.$BoostedPostConfig1=h;};g.prototype.setBudget=function(h){"use strict";this.$BoostedPostConfig2=h;};g.prototype.setCampaignLength=function(h){"use strict";this.$BoostedPostConfig3=h;};g.prototype.setCurrency=function(h){"use strict";this.$BoostedPostConfig4=h;};g.prototype.setCustomTargeting=function(h){"use strict";this.$BoostedPostConfig5=h;};g.prototype.setTargetSpec=function(h){"use strict";this.$BoostedPostConfig6=h;};g.prototype.setPrivacyGating=function(h){"use strict";if(!h)h=[];this.$BoostedPostConfig7=h;};g.prototype.setPlacement=function(h){"use strict";this.$BoostedPostConfig8=h;};g.prototype.setLowerReachEstimate=function(h){"use strict";this.$BoostedPostConfig9=h.toString().replace(/\D/g,'');};g.prototype.setUpperReachEstimate=function(h){"use strict";this.$BoostedPostConfiga=h.toString().replace(/\D/g,'');};g.prototype.setObjective=function(h){"use strict";this.$BoostedPostConfigb=h;};g.prototype.setLastAudienceID=function(h){"use strict";this.$BoostedPostConfigc=h;};g.prototype.setCampaignEndTime=function(h){"use strict";this.$BoostedPostConfigd=h;};g.prototype.setLookalikeCountry=function(h){"use strict";this.$BoostedPostConfige=h;};g.prototype.setPixelID=function(h){"use strict";this.$BoostedPostConfigf=h;};g.prototype.setApiAppealReviewRequest=function(h){"use strict";this.$BoostedPostConfigg=h;};g.prototype.getJSONString=function(){"use strict";return JSON.stringify({account_id:this.$BoostedPostConfig0,audience_option:this.$BoostedPostConfig1,budget:this.$BoostedPostConfig2,campaign_length:this.$BoostedPostConfig3,currency:this.$BoostedPostConfig4,custom_targeting:this.$BoostedPostConfig5,target_spec:this.$BoostedPostConfig6,feed_targeting:this.$BoostedPostConfig7,privacy_gating:this.$BoostedPostConfig7,placement:this.$BoostedPostConfig8,lower_reach_estimate:this.$BoostedPostConfig9,upper_reach_estimate:this.$BoostedPostConfiga,objective:this.$BoostedPostConfigb,last_audience_id:this.$BoostedPostConfigc,campaign_end_time:this.$BoostedPostConfigd,lookalike_country:this.$BoostedPostConfige,pixel_id:this.$BoostedPostConfigf,api_appeal_review_request:this.$BoostedPostConfigg});};e.exports=g;},null);
  __d("BoostedPostConstraints",[],function(a,b,c,d,e,f){function g(h){"use strict";this.$BoostedPostConstraints0=h.minSelectableAge;this.$BoostedPostConstraints1=h.maxSelectableAge;this.$BoostedPostConstraints2=h.minLifetimeBudgetPerDay;this.$BoostedPostConstraints3=h.maxLifetimeBudget;this.$BoostedPostConstraints4=h.whitelistCountries;this.$BoostedPostConstraints5=h.blacklistCountries;this.$BoostedPostConstraints6=h.whitelistConflicts;this.$BoostedPostConstraints7=h.blacklistConflicts;this.$BoostedPostConstraints8=h.conflictLevel;}g.prototype.getAgeConstraints=function(){"use strict";return {minSelectableAge:this.$BoostedPostConstraints0,maxSelectableAge:this.$BoostedPostConstraints1};};g.prototype.getBudgetConstraints=function(){"use strict";return {minLifetimeBudgetPerDay:this.$BoostedPostConstraints9(),maxLifetimeBudget:this.$BoostedPostConstraintsa()};};g.prototype.$BoostedPostConstraints9=function(){"use strict";return this.$BoostedPostConstraints2;};g.prototype.$BoostedPostConstraintsa=function(){"use strict";return this.$BoostedPostConstraints3;};g.prototype.getWhitelistCountries=function(){"use strict";return this.$BoostedPostConstraints4;};g.prototype.getBlacklistCountries=function(){"use strict";return this.$BoostedPostConstraints5;};g.prototype.getWhitelistConflicts=function(){"use strict";return this.$BoostedPostConstraints6;};g.prototype.getBlacklistConflicts=function(){"use strict";return this.$BoostedPostConstraints7;};g.prototype.getConflictLevel=function(){"use strict";return this.$BoostedPostConstraints8;};g.prototype.setMinLifetimeBudgetPerDay=function(h){"use strict";this.$BoostedPostConstraints2=h;};g.prototype.setMaxLifetimeBudget=function(h){"use strict";this.$BoostedPostConstraints3=h;};e.exports=g;},null);
  __d("BoostedPostConstants",["Link.react","React","fbt"],function(a,b,c,d,e,f,g,h,i){var j={APP_ID:"205000946197077",FBTYPE_PHOTO_ALBUM:25,FBTYPE_EVENT:844,DIALOG_MIN_HEIGHT:300,DIALOG_MAX_HEIGHT:525,MAX_DURATION_IN_DAYS:7,TARGET_GROUP_FANS:'fans',TARGET_GROUP_FANS_TEXT:"People who like your Page",TARGET_GROUP_FRIENDS:'fans_and_friends',TARGET_GROUP_FRIENDS_TEXT:"People who like your Page and their friends",GENDER_MALE:'male',GENDER_MALE_TEXT:"Male",GENDER_FEMALE:'female',GENDER_FEMALE_TEXT:"Female",GENDER_BOTH:'male_and_female',GENDER_BOTH_TEXT:"Male and Female",AUDIENCE_LABELS:["Ad Stopped","Target Group","Age","Gender","Interest","Language","Other","Boosted By"],END_DATE_LABEL_INDEX:0,END_DATE_LABEL:"End Date",PAYMENT_LABELS:["Current Budget","Payment","Account"],ADS_GUIDELINE:h.createElement(g,{href:"/help/380502768670092/",target:"_blank"},"Ad Guidelines"),ADS_STATUS_LABEL:{PLACED:"Order placed",REVIEW:"In Review",APPROVED:"Approved"},BUDGET_KEY:'budgets',PIXEL_LABELS:["Pixel Name","Category","Status"]};e.exports=j;},null);
  __d("BoostedPostBudgetValidator",["AdsCurrencyFormatter","fbt"],function(a,b,c,d,e,f,g,h){function i(j,k,l){"use strict";this.$BoostedPostBudgetValidator0=j;this.$BoostedPostBudgetValidator1=k;this.$BoostedPostBudgetValidator2=l;}i.prototype.setCurrency=function(j){"use strict";this.$BoostedPostBudgetValidator0=j;};i.prototype.setBudgetConstraints=function(j){"use strict";this.$BoostedPostBudgetValidator1=j;};i.prototype.setCampaignLength=function(j){"use strict";this.$BoostedPostBudgetValidator2=j;};i.prototype.$BoostedPostBudgetValidator3=function(){"use strict";return this.$BoostedPostBudgetValidator2*this.$BoostedPostBudgetValidator1.minLifetimeBudgetPerDay;};i.prototype.$BoostedPostBudgetValidator4=function(){"use strict";return this.$BoostedPostBudgetValidator1.maxLifetimeBudget;};i.prototype.$BoostedPostBudgetValidator5=function(){"use strict";return this.$BoostedPostBudgetValidator2===1;};i.prototype.isValidBudget=function(j){"use strict";var k=this.$BoostedPostBudgetValidator4(),l=this.$BoostedPostBudgetValidator3();if(j<l){if(this.$BoostedPostBudgetValidator5()){return (h._("The minimum budget is {min_budget_per_day} per day.",[h.param("min_budget_per_day",g.formatCurrency(this.$BoostedPostBudgetValidator0,this.$BoostedPostBudgetValidator1.minLifetimeBudgetPerDay))]));}else return (h._("The minimum budget is {min_budget_per_day} per day, so your budget needs to be at least {min_budget}.",[h.param("min_budget_per_day",g.formatCurrency(this.$BoostedPostBudgetValidator0,this.$BoostedPostBudgetValidator1.minLifetimeBudgetPerDay)),h.param("min_budget",g.formatCurrency(this.$BoostedPostBudgetValidator0,l))]));}else if(j>k)return (h._("Your budget needs to be less than {max_budget}.",[h.param("max_budget",g.formatCurrency(this.$BoostedPostBudgetValidator0,k))]));return null;};e.exports=i;},null);
  __d("BoostedPostTargetingErrors",["BoostedComponentGatingStringsUtil","BoostedPostTargetingErrorTypes","Link.react","React","URI","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(n,o,p,q,r,s,t,u){"use strict";this.$BoostedPostTargetingErrors0=n;this.$BoostedPostTargetingErrors1=o;this.$BoostedPostTargetingErrors2=p;this.$BoostedPostTargetingErrors3=q;this.$BoostedPostTargetingErrors4=r;this.$BoostedPostTargetingErrors5=s;this.$BoostedPostTargetingErrors6=t;this.$BoostedPostTargetingErrors7=u;}m.prototype.getData=function(){"use strict";return {whitelistCountries:this.$BoostedPostTargetingErrors0,blacklistCountries:this.$BoostedPostTargetingErrors1,whitelistConflicts:this.$BoostedPostTargetingErrors2,blacklistConflicts:this.$BoostedPostTargetingErrors3,conflictLevel:this.$BoostedPostTargetingErrors4,simpleErrors:this.$BoostedPostTargetingErrors5,minimumAge:this.$BoostedPostTargetingErrors6,pageSettingsURI:this.$BoostedPostTargetingErrors7};};m.prototype.update=function(n){"use strict";var o=n.getData();this.$BoostedPostTargetingErrors0=o.whitelistCountries;this.$BoostedPostTargetingErrors1=o.blacklistCountries;this.$BoostedPostTargetingErrors2=o.whitelistConflicts;this.$BoostedPostTargetingErrors3=o.blacklistConflicts;this.$BoostedPostTargetingErrors4=o.conflictLevel;this.$BoostedPostTargetingErrors5=o.simpleErrors;this.$BoostedPostTargetingErrors6=o.minimumAge;this.$BoostedPostTargetingErrors7=o.pageSettingsURI;};m.prototype.getLocationErrorMessage=function(){"use strict";return g.getGatedCountryConflictString(this.$BoostedPostTargetingErrors0,this.$BoostedPostTargetingErrors1,this.$BoostedPostTargetingErrors2,this.$BoostedPostTargetingErrors3,this.$BoostedPostTargetingErrors4);};m.prototype.hasErrors=function(){"use strict";return !!this.getErrorToRender();};m.prototype.hasSimpleErrors=function(){"use strict";return this.$BoostedPostTargetingErrors5&&this.$BoostedPostTargetingErrors5.length;};m.prototype.getErrorToRender=function(){"use strict";var n=this.getLocationErrorMessage();if(n)return n;return this.getSimpleErrorToRender();};m.prototype.getSimpleErrorToRender=function(){"use strict";if(this.hasSimpleErrors())return this.getMessageForSimpleError(this.$BoostedPostTargetingErrors5[0]);return null;};m.prototype.getMessageForSimpleError=function(n){"use strict";switch(n){case h.BELOW_ALCOHOL_AGE_GATING:return (l._("You can't boost this post to people below the legal drinking age in the countries you've selected. Change your audience or your {=Page Settings}.",[l.param("=Page Settings",j.createElement(i,{href:this.$BoostedPostTargetingErrors7,target:"_blank"},"Page settings"))]));case h.BELOW_MIN_AGE_GATING:return (l._("You can't boost this post to people ages {min_age} and younger. Change your audience or your {=Page Settings}.",[l.param("min_age",this.$BoostedPostTargetingErrors6),l.param("=Page Settings",j.createElement(i,{href:this.$BoostedPostTargetingErrors7,target:"_blank"},"Page settings"))]));case h.BELOW_ALCOHOL_AGE_PRIOR_CONTENT:return (l._("You can't boost your posts to people who are not of legal drinking ages in their countries because your Page was found to contain alcohol content. Change your audience or {=Challenge Alcohol}.",[l.param("=Challenge Alcohol",j.createElement(i,{href:k('/help/contact/1437105629875062/'),target:"_blank"},"get in touch"))]));}return n;};e.exports=m;},null);
  __d("BoostedPostBudgetSelector.react",["AdsSwapChargeCurrency","AdsBudgetDropdownSelector.react","AdsTargetingTogglerSafeMixin","BoostedComponentTestElement","BoostedPostConfig","BoostedPostConstraints","BoostedPostConstants","BoostedComponentsDialogChangeActions","BoostedPostBudgetReachDispatcher","BoostedPostBudgetValidator","BoostedPostTargetingErrors","XUINotice.react","LoadingIndicator.react","React","cx","fbt","ads-lib-formatters"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){var x=w.createIntlNumberFormatter(0),y=t.createClass({displayName:"BoostedPostBudgetSelector",mixins:[i],propTypes:{pageID:t.PropTypes.string.isRequired,postID:t.PropTypes.string,defaultBudget:t.PropTypes.number.isRequired,initialBudgets:t.PropTypes.object.isRequired,constraints:t.PropTypes.instanceOf(l).isRequired,currency:t.PropTypes.string.isRequired,campaignLength:t.PropTypes.number.isRequired,boostedPostConfig:t.PropTypes.instanceOf(k).isRequired,onDataUpdate:t.PropTypes.func.isRequired,disableSaveButton:t.PropTypes.func.isRequired,showWarnbox:t.PropTypes.bool.isRequired,usePillButton:t.PropTypes.bool,unusualHighBudgetThreshold:t.PropTypes.number},componentWillMount:function(){this._requestID=0;this._budgetReachDispatcher=new o(this.props.pageID,this.props.postID);this._budgetValidator=new p(this.props.currency,this.props.constraints.getBudgetConstraints(),this.props.campaignLength);this._isCustomBudgetSelected=false;},getInitialState:function(){return {budgets:this._addBudgetReachLabels(this.props.initialBudgets),selectedBudget:this.props.defaultBudget,showLoadingIndicator:false};},_updateBudgetValidator:function(z){var aa=z.mode;if(aa===n.UPDATE_CAMPAIGN_LENGTH){this._budgetValidator.setCampaignLength(z.campaignLength);}else if(aa===n.UPDATE_ACCOUNT||aa===n.UPDATE_CURRENCY){this._budgetValidator.setCurrency(z.currency);this._budgetValidator.setBudgetConstraints(z.budgetConstraints);}},fetchNewBudgets:function(z,aa,ba){this._requestID++;var ca={showLoadingIndicator:true};if(z===n.UPDATE_CUSTOM_BUDGET)ca.selectedBudget=ba;this.setState(ca);this.props.disableSaveButton(true);aa.setBudget(ba);this._budgetReachDispatcher.getNewBudgets(this._requestID,aa,this.state.budgets,z,this._newBudgetsCallback,this._isCustomBudgetSelected);},_newBudgetsCallback:function(z){if(z.id!==this._requestID)return;var aa=z.targetingErrors;z.targetingErrors=new q(aa.whitelistCountries,aa.blacklistCountries,aa.whitelistConflicts,aa.blacklistConflicts,aa.conflictLevel,aa.simpleErrors,aa.minimumAge,aa.pageSettingsURI);if(z.targetingErrors.hasErrors()){this.setState({showLoadingIndicator:false});this._onDataUpdate({targetingErrors:z.targetingErrors});return;}this._updateBudgetValidator(z);var ba=z.selectedBudget||this.state.selectedBudget;this.updateAllBudgets=z.mode!=n.UPDATE_CUSTOM_BUDGET;var ca={showLoadingIndicator:false,budgets:this._addBudgetReachLabels(z.budgetInfo)};if(z.selectedBudget)ca.selectedBudget=ba;this.setState(ca);z.errorMsg=this._budgetValidator.isValidBudget(ba);z.selectedBudgetInfo=z.budgetInfo[ba];this._onDataUpdate(z);},_addBudgetReachLabels:function(z){for(var aa in z){var ba=z[aa];ba.estimation_label=(v._("Est. Reach {reach_estimate_lower_limit} - {reach_estimate_upper_limit}",[v.param("reach_estimate_lower_limit",x(ba.reach_lower)),v.param("reach_estimate_upper_limit",x(ba.reach_upper))]));}return z;},_onDataUpdate:function(z){this.props.onDataUpdate(m.BUDGET_KEY,z);},_onBudgetSelected:function(z){this.setStateSafe({selectedBudget:z});this._onDataUpdate({selectedBudgetInfo:this.state.budgets[z],errorMsg:this._budgetValidator.isValidBudget(z),fromDirectUserAction:true});this._isCustomBudgetSelected=false;},_onBudgetEntered:function(z){this._isCustomBudgetSelected=true;this.fetchNewBudgets(n.UPDATE_CUSTOM_BUDGET,this.props.boostedPostConfig,z);},_getWarnBox:function(){var z=g.renderWarnbox(this.props.currency);if(this.props.showWarnbox&&z)return (t.createElement("div",{className:"_3-8y"},z));if(this.props.unusualHighBudgetThreshold>0&&this.state.selectedBudget>this.props.unusualHighBudgetThreshold)return (t.createElement("div",{className:"_3-8y"},t.createElement(r,{use:"notify"},"Your maximum budget is much higher than usual.")));return null;},render:function(){var z=((!this.state.showLoadingIndicator||this.props.usePillButton?"hidden_elem":'')+(' '+"mvs")),aa=this.updateAllBudgets;this.updateAllBudgets=false;return (t.createElement("div",{"data-testid":j.BUDGET_SELECTOR},t.createElement(h,{alignh:"right",budgets:this.state.budgets,currency:this.props.currency,selectedBudget:this.state.selectedBudget,showCustomBudgetOption:true,onBudgetSelected:this._onBudgetSelected,onBudgetEntered:this._onBudgetEntered,usePillButton:this.props.usePillButton,showLoadingIndicator:this.state.showLoadingIndicator,updateAllBudgets:aa}),this._getWarnBox(),t.createElement("div",{className:z},t.createElement(s,{color:"white",size:"small"}))));}});e.exports=y;},null);
  __d("BoostedPostPrivacyGatingStore",["BoostedComponentBaseStore","BoostedComponentConfigPayload","BoostedComponentDataState","BoostedComponentClientEvent","BoostedPostPlacementOptions","BoostedPostCustomTargetingTypes"],function(a,b,c,d,e,f,g,h,i,j,k,l){for(var m in g)if(g.hasOwnProperty(m))o[m]=g[m];var n=g===null?null:g.prototype;o.prototype=Object.create(n);o.prototype.constructor=o;o.__superConstructor__=g;function o(p,q){"use strict";this.$BoostedPostPrivacyGatingStore0=p;this.$BoostedPostPrivacyGatingStore1=q;this.$BoostedPostPrivacyGatingStore2=i.NOT_INITIALIZED;this.dispatchToken=p.register(function(r){var s=r.action;switch(s.actionType){case j.INIT_DATA_LOADED:if(this.$BoostedPostPrivacyGatingStore1.getPlacement()===k.COMPOSER)this.$BoostedPostPrivacyGatingStore2=i.ACTIVE;this.inform('change');break;case j.DATA_LOADED:if(this.$BoostedPostPrivacyGatingStore1.getPlacement()!==k.COMPOSER){this.$BoostedPostPrivacyGatingStore2=i.ACTIVE;this.$BoostedPostPrivacyGatingStore3=s.data[h.PRIVACY_GATING_STORE_DATA];}this.inform('change');break;case j.UPDATE_PRIVACY_GATING:this.$BoostedPostPrivacyGatingStore3=s.data;this.inform('change');break;}}.bind(this));}o.prototype.getPrivacyGatingSpecJSON=function(){"use strict";if(!this.isPrivacyGated())return null;return JSON.stringify(this.$BoostedPostPrivacyGatingStore3);};o.prototype.getPrivacyGatingSpec=function(){"use strict";if(!this.isPrivacyGated())return null;return this.$BoostedPostPrivacyGatingStore3;};o.prototype.isPrivacyGated=function(){"use strict";for(var p in this.$BoostedPostPrivacyGatingStore3){var q=this.$BoostedPostPrivacyGatingStore3[p];if(q.length)return true;if(p===l.GEO_LOCATIONS)for(var r in q)if(q[r].length)return true;}return false;};e.exports=o;},null);
  __d("BoostedPostPrivacyGatingViewActions",["Arbiter","BoostedComponentClientEvent","BoostedPostPlacementOptions"],function(a,b,c,d,e,f,g,h,i){var j='UIPrivacyWidget/globalPrivacyChanged';function k(l,m){"use strict";this.$BoostedComponentDialogRenderViewActions0=l;this.$BoostedComponentDialogRenderViewActions1=m;this.dispatchToken=l.register(function(n){var o=n.action;switch(o.actionType){case h.INIT_DATA_LOADED:this.$BoostedComponentDialogRenderViewActions0.waitFor([this.$BoostedComponentDialogRenderViewActions1.getDispatchToken()]);if(this.$BoostedComponentDialogRenderViewActions1.getPlacement()===i.COMPOSER)g.subscribe(j,function(event,p){this.$BoostedComponentDialogRenderViewActions2(p.data);}.bind(this));break;}}.bind(this));}k.prototype.$BoostedComponentDialogRenderViewActions2=function(l){"use strict";this.$BoostedComponentDialogRenderViewActions0.handleUpdateFromViewAction({actionType:h.UPDATE_PRIVACY_GATING,data:l});};e.exports=k;},null);
  __d("BoostedPostSpecs",["AdsTargetingConstants","ArbiterMixin","BoostedPostAudienceConstants","BoostedPostConfig","BoostedPrimedDao","AdsTargetingConstants","BoostedPostCustomTargetingTypes","PromotedPostConstants","SearchableEntry","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';var q=p(h);for(var r in q)if(q.hasOwnProperty(r))t[r]=q[r];var s=q===null?null:q.prototype;t.prototype=Object.create(s);t.prototype.constructor=t;t.__superConstructor__=q;function t(u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){this._adAccountID=u;this._audience=v;this._currency=w;this._budgetInfo=x;this._audienceSize=y;this._campaignLength=z;this._targetingSpec=aa;this._targetingSpecFOF=ba;this._pixelID=da||null;this._privacyGatingSpec=ca||{};this._lastAudienceID=fa;this._experiments=ga;this._campaignEndTime=ha;this._lookalikeCountry=ia;this._defaultCountries=ja;this._radius=this.getInitialRadius();this._privacyGatingStore=ka;this._apiAppealReviewRequest=false;}t.prototype.setAdAccountID=function(u){this._adAccountID=u;k.setAccountID(u);};t.prototype.setAudience=function(u){this._audience=u;};t.prototype.setTargetingSpec=function(u){this._targetingSpec=u;};t.prototype.setAudienceAndTargetingSpec=function(u,v){this._audience=u;this._targetingSpec=v;};t.prototype.setLocation=function(u,v){if(v){this._targetingSpecFOF[m.GEO_LOCATIONS]=u;this._targetingSpec[m.GEO_LOCATIONS]=u;}else{var w=this.getTargetingSpecRaw();w[m.GEO_LOCATIONS]=u;}};t.prototype.setRadius=function(u){var v=this.getTargetingSpecRaw(),w=v[m.GEO_LOCATIONS],x=w&&w.cities;if(!u){for(var y=0;y<x.length;++y)delete x[y].radius;}else if(u&&x)for(var z=0;z<x.length;++z)x[z].radius=u;this._radius=u;};t.prototype.setMinAge=function(u){this._targetingSpec[m.AGE_MIN]=u;};t.prototype.setMaxAge=function(u){this._targetingSpec[m.AGE_MAX]=u;};t.prototype.setGender=function(u){this._targetingSpec[m.GENDERS]=[u];if(u==l.GENDERS.All)delete this._targetingSpec[m.GENDERS];};t.prototype.setInterests=function(u){this._targetingSpec[m.INTERESTS]=[];for(var v in u)this._targetingSpec[m.INTERESTS].push({id:v,name:u[v]});};t.prototype.setCurrency=function(u){this._currency=u;};t.prototype.setBudgetInfo=function(u){this._budgetInfo=u;};t.prototype.setAudienceSize=function(u){this._audienceSize=u;};t.prototype.setCampaignLength=function(u){this._campaignLength=u;};t.prototype.setLastAudienceID=function(u){this._lastAudienceID=u;};t.prototype.setCampaignEndTime=function(u){this._campaignEndTime=u;};t.prototype.setLookalikeCountry=function(u){this._lookalikeCountry=u;};t.prototype.setPixelID=function(u){this._pixelID=u;};t.prototype.setApiAppealReviewRequest=function(u){this._apiAppealReviewRequest=u;};t.prototype.getAdAccountID=function(){return this._adAccountID;};t.prototype.getAudience=function(){return this._audience;};t.prototype.getTargetingSpec=function(){switch(this._audience){case i.FANS:case i.GROUPER:return this.getLocationTargetingSpec();case i.LOOKALIKE:return this.getLookalikeTargetingSpec();default:return this._targetingSpec;}};t.prototype.getTargetingSpecRaw=function(){switch(this._audience){case i.FANS:case i.GROUPER:return this._targetingSpecFOF;case i.LOOKALIKE:return this.getLookalikeTargetingSpec();default:return this._targetingSpec;}};t.prototype.getPrivacyGatingSpec=function(){if(!this.isPrivacyGated())return null;if(this._privacyGatingStore)return this._privacyGatingStore.getPrivacyGatingSpec();return this._privacyGatingSpec;};t.prototype.getLocationTargetingSpec=function(){if(!this._targetingSpecFOF)return null;var u={};u[m.GEO_LOCATIONS]=this._targetingSpecFOF[m.GEO_LOCATIONS];return u;};t.prototype.getLookalikeTargetingSpec=function(){if(!this._lookalikeCountry)return null;var u={};u[m.GEO_LOCATIONS]={countries:[this._lookalikeCountry]};return u;};t.prototype.getTargetingLevel=function(){var u=this.getTargetingSpecRaw();if(u[m.GEO_LOCATIONS]){var v=Object.keys(u[m.GEO_LOCATIONS]),w=g.TARGETING_SPEC_KEYS,x=[w.COUNTRIES,w.REGIONS,w.CITIES];for(var y=0;y<x.length;++y)if(v.indexOf(x[y])!==-1)return x[y];}return '';};t.prototype.getInitialRadius=function(){var u=this.getTargetingSpecRaw();if(u){var v=u[m.GEO_LOCATIONS],w=v&&v.cities;if(w&&w.length)return w[0].radius;}return g.DEFAULT_RADIUS;};t.prototype.getRadius=function(){return this._radius;};t.prototype.getAgeRange=function(){return {ageMin:this._targetingSpec[m.AGE_MIN],ageMax:this._targetingSpec[m.AGE_MAX]};};t.prototype.getGender=function(){if(this._targetingSpec&&this._targetingSpec[m.GENDERS])return parseInt(this._targetingSpec[m.GENDERS][0],10);return l.GENDERS.All;};t.prototype.getCurrency=function(){return this._currency;};t.prototype.getBudget=function(){return this._budgetInfo.budget_value;};t.prototype.getBudgetLabel=function(){return this._budgetInfo.label;};t.prototype.getLowerReachEstimate=function(){return this._budgetInfo.reach_lower;};t.prototype.getUpperReachEstimate=function(){return this._budgetInfo.reach_upper;};t.prototype.getAudienceSize=function(){return this._audienceSize;};t.prototype.getCampaignLength=function(){return this._campaignLength;};t.prototype.getCampaignLengthInDays=function(){return this._campaignLength/86400;};t.prototype.getTokenizedInterests=function(){var u=[];if(!this._targetingSpec[m.INTERESTS])return u;var v=this._targetingSpec[m.INTERESTS].length;for(var w=0;w<v;w++)u.push((new o({uniqueID:this._targetingSpec[m.INTERESTS][w].id,title:this._targetingSpec[m.INTERESTS][w].name})));return u;};t.prototype.getApiAppealReviewRequest=function(){return this._apiAppealReviewRequest;};t.prototype.getConfig=function(){var u=new j();u.setAccountID(this._adAccountID);u.setAudienceOption(this._audience);u.setCampaignLength(this._campaignLength);u.setBudget(this.getBudget());u.setCurrency(this._currency);u.setCustomTargeting(this.getTargetingSpecForConfig());u.setPrivacyGating(this.getPrivacyGatingSpec());u.setLastAudienceID(this.getLastAudienceID());u.setCampaignEndTime(this._campaignEndTime);u.setLookalikeCountry(this._lookalikeCountry);u.setLowerReachEstimate(this.getLowerReachEstimate());u.setUpperReachEstimate(this.getUpperReachEstimate());u.setPixelID(this.getPixelID());u.setApiAppealReviewRequest(this.getApiAppealReviewRequest());return u;};t.prototype.getConfigJSON=function(){return this.getConfig().getJSONString();};t.prototype.getTargetingSpecForConfig=function(){var u=this.getTargetingSpec();if(u&&!u[m.GEO_LOCATIONS]){var v={};for(var w in u)v[w]=u[w];v[m.GEO_LOCATIONS]={countries:Object.keys(this._defaultCountries)};u=v;}return u;};t.prototype.getLastAudienceID=function(){return this._lastAudienceID;};t.prototype.getCampaignEndTime=function(){return this._campaignEndTime;};t.prototype.getLookalikeCountry=function(){return this._lookalikeCountry;};t.prototype.getPixelID=function(){return this._pixelID;};t.prototype.hasTargetingSpec=function(){return !!this._targetingSpec;};t.prototype.isPrivacyGated=function(){if(this._privacyGatingStore)return this._privacyGatingStore.isPrivacyGated();for(var u in this._privacyGatingSpec){var v=this._privacyGatingSpec[u];if(v.length)return true;if(u===m.GEO_LOCATIONS)for(var w in v)if(v[w].length)return true;}return false;};t.prototype.notifyAccountChangeFinished=function(){this.inform(n.ACCOUNT_CHANGE_FINISH);};e.exports=t;},null);
  __d("BoostedPostComponentConfig",["BoostedComponentConfig","BoostedComponentStoreType","BoostedPostPrivacyGatingStore","BoostedPostPrivacyGatingViewActions","BoostedComponentConfigPayload","BoostedPostConstraints","BoostedPostSpecs","BoostedPostTargetingErrors"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){for(var o in g)if(g.hasOwnProperty(o))q[o]=g[o];var p=g===null?null:g.prototype;q.prototype=Object.create(p);q.prototype.constructor=q;q.__superConstructor__=g;function q(){"use strict";if(g!==null)g.apply(this,arguments);}q.prototype.init=function(){"use strict";this.setStore(h.PRIVACY_GATING_STORE,new i(this.getDispatcher(),this.getContextStore()));this.$BoostedPostComponentConfig0=new j(this.getDispatcher(),this.getContextStore());};q.prototype.getPrivacyGatingStore=function(){"use strict";return this.getStore(h.PRIVACY_GATING_STORE);};q.prototype.initProductLoadData=function(r){"use strict";this.$BoostedPostComponentConfig1=r[k.EXPERIMENTS];var s=r[k.ERRORS];this.$BoostedPostComponentConfig2=new n(s.whitelistCountries,s.blacklistCountries,s.whitelistConflicts,s.blacklistConflicts,s.conflictLevel,s.simpleErrors,s.minimumAge,s.pageSettingsURI);this.$BoostedPostComponentConfig3=new l(r[k.CONSTRAINTS].constraints);var t=r[k.SPECS];this.$BoostedPostComponentConfig4=new m(t.adAccountID,t.audience,t.currency,t.defaultBudgetInfo,t.audienceSize,t.campaignLength,t.targetingSpecs,t.targetingSpecs,null,t.pixelID,t.hasSticky,t.lastAudienceID,t.experiments,t.campaignEndTime,t.defaultLookalikeCountry,t.defaultCountries,this.getPrivacyGatingStore());};q.prototype.getExperiments=function(){"use strict";return this.$BoostedPostComponentConfig1;};q.prototype.getSpecs=function(){"use strict";return this.$BoostedPostComponentConfig4;};q.prototype.getConstraints=function(){"use strict";return this.$BoostedPostComponentConfig3;};q.prototype.getErrors=function(){"use strict";return this.$BoostedPostComponentConfig2;};e.exports=q;},null);
  __d("AdsAdAccountSelector.react",["AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","React","XUISelector.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k){var l=j.Option,m=i.createClass({displayName:"AdsAdAccountSelector",mixins:[g],propTypes:{selectedAccount:i.PropTypes.string.isRequired,accounts:i.PropTypes.object.isRequired,onDataUpdate:i.PropTypes.func.isRequired,width:i.PropTypes.number,size:i.PropTypes.oneOf(['small','medium','large','xlarge','xxlarge'])},getDefaultProps:function(){return {size:'medium'};},getInitialState:function(){return {selectedAccount:this.props.selectedAccount};},componentWillReceiveProps:function(n){this.setStateSafe(n);},_onDataUpdate:function(n){this.setStateSafe({selectedAccount:n.value});this.props.onDataUpdate(h.UPDATE_ACCOUNT,n.value);},_getAccountOptions:function(){var n=[],o=this.props.accounts;for(var p in o)n.push(i.createElement(l,{key:p,value:p},i.createElement("div",{style:{width:this.props.width}},k._("{account_name} ({account_id}, {account_currency})",[k.param("account_name",o[p].name),k.param("account_id",p),k.param("account_currency",o[p].currency)]))));return n;},render:function(){return (i.createElement(j,{value:this.state.selectedAccount,onChange:this._onDataUpdate,size:this.props.size,maxwidth:this.props.width,maxheight:200},this._getAccountOptions()));}});e.exports=m;},null);
  __d("AdsCurrencySelector.react",["AdsCurrency","AdsSwapChargeCurrency","AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","React","XUISelector.react","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=l.Option,o=k.createClass({displayName:"AdsCurrencySelector",mixins:[i],propTypes:{selectedCurrency:k.PropTypes.string.isRequired,onDataUpdate:k.PropTypes.func.isRequired,canShowWarningGk:k.PropTypes.bool},getInitialState:function(){return {selectedCurrency:this.props.selectedCurrency};},componentWillReceiveProps:function(p){this.setStateSafe(p);},_onDataUpdate:function(p){this.setStateSafe({selectedCurrency:p.value});this.props.onDataUpdate(j.UPDATE_CURRENCY,p.value);},_getSortedCurrencies:function(){return g.currencyMapKeys.map(function(p){return g.currencies[p];}).sort(function(p,q){return p.name.localeCompare(q.name);});},_getWarnbox:function(){var p=h.renderWarnbox(this.state.selectedCurrency);if(p&&(this.state.selectedCurrency!=='BRL'||this.props.canShowWarningGk))return (k.createElement("div",{className:"_3-8y"},p));return null;},render:function(){var p=this._getSortedCurrencies(),q=p.length,r=[];for(var s=0;s<q;s++)r.push(k.createElement(n,{value:p[s].iso},p[s].name));return (k.createElement("div",null,k.createElement(l,{value:this.state.selectedCurrency,onChange:this._onDataUpdate,maxheight:200},r),this._getWarnbox()));}});e.exports=o;},null);
  __d("AdsPaymentInfo.react",["Link.react","React","URI","fbt","invariant"],function(a,b,c,d,e,f,g,h,i,j,k){var l=h.createClass({displayName:"AdsPaymentInfo",propTypes:{adAccountInfo:h.PropTypes.shape({id:h.PropTypes.string,hasFundingSource:function(m,n,o){k(m[n]);}}).isRequired},getInvoicedAccountMsg:function(){return ("Invoice");},getCorporateAccountMsg:function(){var m=i('/ads/manage/billing.php').addQueryData('act',this.props.adAccountInfo.id);return (h.createElement(g,{href:m,target:"_blank"},"Corporate Account"));},getAdCouponFundingSourceMsg:function(){return (j._("Ad Coupon ({balance} left)",[j.param("balance",this.props.adAccountInfo.adCoupon)]));},getFundingSourceString:function(){return this.props.adAccountInfo.fundingSourceString;},getGeneralFundingSourceMsg:function(){return (j._("Primary payment method ({account_id})",[j.param("account_id",this.props.adAccountInfo.id)]));},getPaymentLink:function(){if(this.props.adAccountInfo.isPrepayAccount)return null;var m=i('/ads/manage/funding.php').addQueryData('act',this.props.adAccountInfo.id);return (h.createElement(g,{href:m,target:"_blank"},"Change"));},render:function(){var m=this.props.adAccountInfo,n=null;if(m.hasCredit){n=this.getInvoicedAccountMsg();}else if(m.isCorporateAccount){n=this.getCorporateAccountMsg();}else if(m.adCoupon){n=this.getAdCouponFundingSourceMsg();}else if(m.fundingSourceString){n=this.getFundingSourceString();}else n=this.getGeneralFundingSourceMsg();return (h.createElement("div",null,n,h.createElement("span",{className:"mls"},this.getPaymentLink())));}});e.exports=l;},null);
  __d("AdsPixelSelector.react",["AdsConversionPixelSelector.react","AdsConversionPixelUtils","AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","React","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=k.createClass({displayName:"AdsPixelSelector",mixins:[i],propTypes:{selectedPixelID:k.PropTypes.number,pixels:k.PropTypes.array.isRequired,onDataUpdate:k.PropTypes.func.isRequired},getInitialState:function(){return {selectedPixelID:this.props.selectedPixelID};},_onDataUpdate:function(n){if(n==='')n=null;this.setStateSafe({selectedPixelID:n});this.props.onDataUpdate(j.UPDATE_PIXEL,parseInt(n,10));},render:function(){var n="No pixel selected",o=h.getPixelDetails(this.state.selectedPixelID,this.props.pixels);return (k.createElement(g,{defaultLabel:n,maxheight:300,onChange:this._onDataUpdate,pixels:this.props.pixels,size:"xlarge",value:o&&o.id}));}});e.exports=m;},null);
  __d("BoostedPostDialogLabeledRow.react",["React","XUICardSection.react","XUIGrayText.react","cx"],function(a,b,c,d,e,f,g,h,i,j){var k=g.createClass({displayName:"BoostedPostDialogLabeledRow",propTypes:{label:g.PropTypes.string.isRequired,redesign:g.PropTypes.bool},render:function(){var l=(("_2lc7")+(' '+"mhl"));return (g.createElement("div",{className:l},g.createElement(h,g.__spread({},this.props),g.createElement("div",{className:"mbs"},g.createElement(i,{className:"mbl _3xhk",shade:this.props.redesign?"dark":"light",weight:"bold"},this.props.label)),this.props.children)));}});e.exports=k;},null);
  __d("BoostedPostSection.react",["React","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i){var j=g.createClass({displayName:"BoostedPostSection",propTypes:{border:g.PropTypes.bool},getDefaultProps:function(){return {border:false};},render:function(){var k=i((("_p2w")+(this.props.border?' '+"_p2x":'')),this.props.className);return (g.createElement("div",{className:k},this.props.children));}});e.exports=j;},null);
  __d("BoostedPostLabeledRow.react",["Grid.react","React","XUIGrayText.react","HelpLink.react","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=g.GridItem,n=h.createClass({displayName:"BoostedPostLabeledRow",propTypes:{label:h.PropTypes.string.isRequired,border:h.PropTypes.bool,alignv:h.PropTypes.oneOf(['top','middle','bottom'])},getDefaultProps:function(){return {border:false,alignv:'top'};},_renderHelpLink:function(){if(this.props.tooltip)return (h.createElement(j,{tooltip:this.props.tooltip}));return null;},render:function(){var o=l((("_5vgm")+(this.props.border?' '+"_5vgn":'')),this.props.className);return (h.createElement("div",{className:o},h.createElement(g,{cols:2,fixed:true,alignv:this.props.alignv,spacing:"pas"},h.createElement(m,{className:"_5vgo"},h.createElement(i,{className:"_3xhk",weight:"bold"},this.props.label),this._renderHelpLink()),h.createElement(m,{className:"_5vgp"},this.props.children))));}});e.exports=n;},null);
  __d("AdsDurationSelector.react",["AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","BoostedComponentTestElement","React","XUISelector.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=k.Option,n=j.createClass({displayName:"AdsDurationSelector",mixins:[g],propTypes:{initialValue:j.PropTypes.number.isRequired,onDataUpdate:j.PropTypes.func.isRequired,maxNumDays:function(o,p,q){var r=o[p];if(!r||r<=1||r<o.initialValue)return new Error('Invalid prop maxNumDays provided');}},getInitialState:function(){return {selectedValue:this.props.initialValue};},_onDataUpdate:function(o){this.setStateSafe({selectedValue:o.value});this.props.onDataUpdate(h.UPDATE_DURATION,o.value);},_getOptions:function(){var o=[j.createElement(m,{key:1,value:1},"1 day")];for(var p=2;p<=this.props.maxNumDays;p++)o.push(j.createElement(m,{key:p,value:p},l._("{dayNum} days",[l.param("dayNum",p)])));return o;},render:function(){return (j.createElement(k,{"data-testid":i.DURATION_SELECTOR,className:this.props.className,value:this.state.selectedValue,onChange:this._onDataUpdate,maxheight:200},this._getOptions()));}});e.exports=n;},null);
  __d("BoostedPostDurationSection.react",["AdsDurationSelector.react","AdsCurrencyFormatter","React","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k){'use strict';var l=i.createClass({displayName:"BoostedPostDurationSection",propTypes:{budget:i.PropTypes.number.isRequired,campaignLength:i.PropTypes.number.isRequired,currency:i.PropTypes.string.isRequired,initialValue:i.PropTypes.number.isRequired,onDataUpdate:i.PropTypes.func.isRequired,maxNumDays:function(m,n,o){var p=m[n];if(!p||p<=1||p<m.initialValue)return new Error('Invalid prop maxNumDays provided');}},_getDailyBudget:function(){return h.formatCurrency(this.props.currency,this.props.budget/this.props.campaignLength,false,false);},_renderDailyBudget:function(){if(this.props.campaignLength<=1)return null;return (k._("You will spend {budget_per_day_amount} per day.",[k.param("budget_per_day_amount",this._getDailyBudget())]));},render:function(){return (i.createElement("div",null,i.createElement("div",null,k._("Boost this post for {duration_dropdown}",[k.param("duration_dropdown",i.createElement(g,{className:"mls",initialValue:this.props.campaignLength,maxNumDays:this.props.maxNumDays,onDataUpdate:this.props.onDataUpdate}))])),i.createElement("div",{className:"_5ul1"},this._renderDailyBudget())));}});e.exports=l;},null);
  __d("BoostedPostAudienceManagerConstants",["fbt"],function(a,b,c,d,e,f,g){var h={NEW_AUDIENCE_ID:"new",SPECIAL_AUDIENCES:{LAST_USED:1,GROUPER:2,CREATE_NEW:3,DEFAULT:4},EDITOR_MODES:{CREATE:0,EDIT:1},EDITOR_ACTIONS:{CREATE:1,EDIT:2,DELETE:3},MESSAGES:{AUDIENCE_SAVED:"Audience Saved!",AUDIENCE_UPDATED:"Audience Updated!",AUDIENCE_DELETED:"Audience Deleted!",CREATE_AUDIENCE_ERROR:"Failed to create audience",UPDATE_AUDIENCE_ERROR:"Failed to update audience",DELETE_AUDIENCE_ERROR:"Failed to delete audience",MUST_SPECIFY_LOCATION:"Location must be specified"},LABELS:{AUDIENCE_DETAILS:"Audience Details",AUDIENCE:"Audience",NAME:"Name"},MAX_NAME_LENGTH:40,DEFAULT_NAME_INITIAL_NUMBER:1};e.exports=h;},null);
  __d("BoostedPostTargetingController",["AdsDaoGraph","BoostedPostAudienceManagerConstants","BoostedPostAppConfig","BoostedPostLogging","BoostedPostEventType","AdsTargetingConstants","CurrentLocale","GraphAPI","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){"use strict";function p(q,r){this.$BoostedPostTargetingController0=g.primedForAccount(q);this.$BoostedPostTargetingController1=r;n.setErrorHandler(function(s){});}p.prototype.getDao=function(){return this.$BoostedPostTargetingController0;};p.prototype.getTargetingSpecs=function(q){this.$BoostedPostTargetingController0.fetch.audiencesForAccount.one(q,{access_token:i.access_token,locale:m.get()});};p.prototype.saveTargetingSpec=function(q,r,s,t){var u=this.$BoostedPostTargetingController2(q,r);if(!this.$BoostedPostTargetingController3(q,t))return;var v=q.getTargetSpec().getRaw(q.getLocationType());this.$BoostedPostTargetingController0.add.createNewSavedTargetSpec.one(function(w){j.log(k.AM_AUDIENCE_CREATED,{audience_id:w.id,audience_name:u,custom_targeting_raw:v});this.$BoostedPostTargetingController0.fetch.audiencesForAccount.clearCache();s();}.bind(this),{targeting_spec:v,name:u,access_token:i.access_token,handleError:t.bind(null,h.MESSAGES.CREATE_AUDIENCE_ERROR)});};p.prototype.updateTargetingSpec=function(q,r,s,t){var u=this.$BoostedPostTargetingController2(q,r),v=q.getAudienceID();if(!this.$BoostedPostTargetingController3(q,t))return;var w=q.getTargetSpec().getRaw(q.getLocationType());j.log(k.AM_AUDIENCE_EDITED,{id:v,custom_targeting_raw:w});this.$BoostedPostTargetingController0.mutate.savedTargetSpec.one(function(){this.$BoostedPostTargetingController0.fetch.audiencesForAccount.clearCache();s();}.bind(this),{targeting_spec:w,name:u,audienceId:v,access_token:i.access_token,handleError:t.bind(null,h.MESSAGES.UPDATE_AUDIENCE_ERROR)});};p.prototype.deleteTargetingSpec=function(q,r,s){var t=q.getAudienceID();j.log(k.AM_AUDIENCE_DELETED,{id:t});this.$BoostedPostTargetingController0.remove.audience.one(function(){this.$BoostedPostTargetingController0.fetch.audiencesForAccount.clearCache();r();}.bind(this),{audienceId:t,access_token:i.access_token,handleError:s.bind(null,h.MESSAGES.DELETE_AUDIENCE_ERROR)});};p.prototype.fetchReachEstimates=function(q,r,s){this.$BoostedPostTargetingController0.fetch.estimatesForAccount.one(s,{access_token:i.access_token,currency:r,targeting_spec:q});};p.prototype.getTargetingSentences=function(q,r,s){this.$BoostedPostTargetingController0.fetch.targetingSentencesForAccount.one(r,{access_token:i.access_token,targeting_spec:q,discard_ages:true,handleError:s});};p.prototype.$BoostedPostTargetingController3=function(q,r){if(this.$BoostedPostTargetingController4(q))if(!(this.$BoostedPostTargetingController1&&this.$BoostedPostTargetingController1.length)){r(h.MESSAGES.MUST_SPECIFY_LOCATION);return false;}else{q.getTargetSpec().setCountries(this.$BoostedPostTargetingController1);q.setLocationType(l.LOCATION_TYPES.Countries);}return true;};p.prototype.$BoostedPostTargetingController4=function(q){var r=q.getTargetSpec();switch(q.getLocationType()){case l.LOCATION_TYPES.Countries:if(!r.getCountries().length)return true;break;case l.LOCATION_TYPES.Regions:if(!r.getRegions().length)return true;break;case l.LOCATION_TYPES.Cities:if(!r.getCities().length)return true;break;default:return true;}return false;};p.prototype.$BoostedPostTargetingController2=function(q,r){var s=q.getAudienceName();if(s&&s.length)return s;if(q.getOriginalName())return q.getOriginalName();var t=h.DEFAULT_NAME_INITIAL_NUMBER;while(1){var u=o._("Audience {audience_number}",[o.param("audience_number",t)]);if(r.indexOf(u)===-1)return u;++t;}};e.exports=p;},null);
  __d("BoostedPostSupportedTargeting",[],function(a,b,c,d,e,f){var g={EDIT_TARGETING_FIELDS:['geo_locations','age_min','age_max','genders','interests','radius'],SHOW_TARGETING_DETAILS:['age_min','age_max','genders','interests','radius']};e.exports=g;},null);
  __d("Tooltip.react",["React","TooltipMixin"],function(a,b,c,d,e,f,g,h){var i=g.createClass({displayName:"Tooltip",propTypes:{display:g.PropTypes.oneOf(['inline','block'])},getDefaultProps:function(){return {display:'inline'};},mixins:[h],render:function(){if(this.props.display==='block')return (g.createElement("div",g.__spread({},this.props),this.props.children));return g.createElement("span",g.__spread({},this.props),this.props.children);}});e.exports=i;},null);
  __d("BoostedPostAudienceDetails.react",["BoostedPostTargetingController","AdsTargetingConstants","React","BoostedPostSupportedTargeting","Tooltip.react","XUIText.react","cx","fbt","intlList"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=170,q=i.createClass({displayName:"BoostedPostAudienceDetails",propTypes:{audience:i.PropTypes.object,controller:i.PropTypes.instanceOf(g),width:i.PropTypes.number},getDefaultProps:function(){return {width:p};},getInitialState:function(){return {targetingSentences:null};},componentWillMount:function(){this._init(this.props);},componentWillReceiveProps:function(r){this._init(r);},_init:function(r){this._populateTargetingSentences(r.audience);},_populateTargetingSentences:function(r){var s={};for(var t in r){if(j.SHOW_TARGETING_DETAILS.indexOf(t)!==-1)continue;s[t]=r[t];}if(!Object.keys(s).length){this.setState({targetingSentences:null});return;}this.props.controller.getTargetingSentences(s,this._populateTargetingSentencesCallback,this._targetingSentencesErrorCallback);},_populateTargetingSentencesCallback:function(r){this.setState({targetingSentences:r.targetingsentencelines});},_targetingSentencesErrorCallback:function(){this.setState({targetingSentences:["Error while fetching targeting description"]});},_getGenderDetails:function(r){var s=r&&r.length&&r[0],t=null;switch(s){case h.GENDERS.Men:t="Men";break;case h.GENDERS.Women:t="Women";break;default:t="Men or Women";break;}return (i.createElement("div",null,n._("{gender_targeting_label} {gender_targeting_list}",[n.param("gender_targeting_label",i.createElement(l,{weight:"bold"},"Gender:")),n.param("gender_targeting_list",t)])));},_getAgeDetails:function(r,s){var t=r?r:h.DEFAULT_MIN_SELECTABLE_AGE,u=s?s:h.DEFAULT_MAX_SELECTABLE_AGE;return (n._("{age_targeting_label} {min_age}-{max_age}",[n.param("age_targeting_label",i.createElement(l,{weight:"bold"},"Age:")),n.param("min_age",t),n.param("max_age",u)]));},_getInterestDetails:function(r){if(!r)return null;var s=r.map(function(t){return t.name;});return (n._("{interest_targeting_label} {interest_targeting_list}",[n.param("interest_targeting_label",i.createElement(l,{weight:"bold"},"Interests:")),n.param("interest_targeting_list",o(s,o.CONJUNCTIONS.AND))]));},_getOtherDetails:function(){var r=this.state.targetingSentences;if(!r||!r.length)return null;return (n._("{other_targeting_label} {interest_targeting_list}",[n.param("other_targeting_label",i.createElement(l,{weight:"bold"},"Other:")),n.param("interest_targeting_list",i.createElement(k,{tooltip:this._getOtherDetailsTooltip(),position:"below",alignH:"center"},this._getOtherDetailsText()))]));},_getOtherDetailsText:function(){var r=this.state.targetingSentences,s=this._getTargetingSentenceFormatted(r[0]);if(r.length>1)s=n._("{clipped_description}...",[n.param("clipped_description",s)]);return (i.createElement("div",{className:"_50m7",style:{width:this.props.width}},s));},_getOtherDetailsTooltip:function(){return this.state.targetingSentences.map(this._getTargetingSentenceFormatted).join("\n");},_getTargetingSentenceFormatted:function(r){if(r.content)return (n._("{content_label} {children}",[n.param("content_label",r.content),n.param("children",o(r.children,o.CONJUNCTIONS.AND))]));return r;},render:function(){var r=this.props.audience,s=r.genders?r.genders:null,t=null;if(r)t=(i.createElement("div",null,i.createElement("div",null,this._getGenderDetails(s)),i.createElement("div",null,this._getAgeDetails(r.age_min,r.age_max)),i.createElement("div",null,this._getInterestDetails(r.interests)),i.createElement("div",null,this._getOtherDetails())));return t;}});e.exports=q;},null);
  __d("AdsTargetingRatingUtils",["AdsTargetingViewConfig","ImmutableObject","keyMirror","merge"],function(a,b,c,d,e,f,g,h,i,j){var k=g.EFFECTS,l=i({TOO_SMALL:null,SMALL:null,GOOD:null,TOO_BROAD:null}),m=i({DANGEROUS:null,VAGUE:null,GOOD:null,GREAT:null,NONE:null}),n=i({BAD_TOO_BROAD:null,BAD_TOO_SMALL:null,VAGUE:null,GOOD:null}),o=1000*1000,p=100*o,q=2500,r=10000,s=3,t=2,u={SIZE_RATINGS:l,FEATURE_RATINGS:m,OVERALL_RATINGS:n,getFeaturesByEffect:function(v){var w=g.getAllViewConfigs(),x={};Object.keys(k).forEach(function(y){x[y]=[];});w.forEach(function(y){var z=y.getFeatureEffect(v);x[z].push(y);});return x;},getConfigsWithFeature:function(v){var w=g.getAllViewConfigs();return w.map(function(x){return new h(j(x,{EFFECT:x.getFeatureEffect(v)}));});},getAudienceSizeRating:function(v){var w=l;if(v<=q){return w.TOO_SMALL;}else if(v<=r){return w.SMALL;}else if(v<p)return w.GOOD;return w.TOO_BROAD;},getFeaturesRating:function(v){var w=m,x=this.getFeaturesByEffect(v);delete x[k.OFF];if(x[k.DANGEROUS].length)return w.DANGEROUS;var y=x[k.STRONG].length,z=x[k.WEAK].length;y+=Math.floor(z/s);if(y>=t){return w.GREAT;}else if(y){return w.GOOD;}else if(z)return w.VAGUE;return w.NONE;},getOverallRating:function(v,w){var x=this.getFeaturesRating(v),y=this.getAudienceSizeRating(w),z=l,aa=m,ba=n;switch(y){case z.TOO_SMALL:return ba.BAD_TOO_SMALL;case z.TOO_BROAD:switch(x){case aa.NONE:case aa.DANGEROUS:return ba.BAD_TOO_BROAD;case aa.VAGUE:case aa.GOOD:return ba.VAGUE;case aa.GREAT:return ba.GOOD;}break;case z.GOOD:switch(x){case aa.DANGEROUS:return ba.GOOD;case aa.NONE:return ba.BAD_TOO_BROAD;case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}break;case z.SMALL:switch(x){case aa.DANGEROUS:return ba.BAD_TOO_SMALL;case aa.NONE:case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}}}};e.exports=u;},null);
  __d("AdsTargetingEstimateFeedbackThrottle.react",["AdsTargetingRatingUtils","AdsOtherConsts","BrowserSupport","Image.react","LeftRight.react","LoadingIndicator.react","NumberFormat","React","cx","fbt","ix","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=n.PropTypes,t=g.OVERALL_RATINGS;function u(w){switch(w){case t.GOOD:return ("Your audience is defined.");case t.VAGUE:return ("Your audience selection is fairly broad.");case t.BAD_TOO_SMALL:return ("Your audience is too specific for your ads to be shown. Try making it broader.");case t.BAD_TOO_BROAD:return ("Your audience selection is broad. This requires a large budget.");}}var v=n.createClass({displayName:"AdsTargetingEstimateFeedbackThrottle",propTypes:{ready:s.bool.isRequired,loading:s.bool.isRequired,rating:s.string.isRequired,users:s.number.isRequired,sentences:s.array,estimateErrors:s.array},getDefaultProps:function(){return {sentences:[],estimateErrors:[]};},render:function(){return (n.createElement("div",{className:"_1g9y"},this.renderWarning(),n.createElement("div",{className:this._getFeedbackSectionClasses()},this.renderFeedbackSection()),this.renderSentences(),this.renderUsers()));},renderFeedbackSection:function(){if(!this.props.ready)return null;return {throttle:this.renderThrottle(),feedback:this.renderFeedback()};},renderThrottle:function(){if(!this.showNeedle())return null;return (n.createElement("div",{className:"_1g9- lfloat"},n.createElement("div",{className:"_1g9_"},n.createElement(j,{className:r("_1ga0",this.props.rating),src:q('/images/ads/createflow/targeting/needle.png')}),n.createElement(j,{className:"_1ga1",src:q('/images/ads/createflow/targeting/meter.png')}),n.createElement(k,{className:"_1ga2"},this.renderNeedleLabel("Specific"),this.renderNeedleLabel("Broad")))));},renderNeedleLabel:function(w){return (n.createElement("span",{"data-hover":"tooltip","data-tooltip-alignh":"center","aria-label":w,className:"_1ga3"},w));},renderFeedback:function(){if(this._isErrorState())return null;return (n.createElement("div",{className:(("rfloat")+(' '+"fsm")+(' '+"_1ga4")+(!this.showNeedle()?' '+"noNeedle":''))},u(this.props.rating)));},renderSentence:function(w,x){if(!w.content)return n.createElement("li",{key:w+x},w);return (n.createElement("li",{key:w.content+x},n.createElement("div",null,w.content),n.createElement("ul",{className:"_1ga5 pll"},(w.children||[]).map(function(y,z){return (n.createElement("li",{key:y+z},y));}))));},renderSentences:function(){if(!this.props.sentences.length)return null;var w=this.props.sentences.map(function(x,y){return this.renderSentence(x,y);}.bind(this));return (n.createElement("div",{className:"_1ga6","data-testid":"targeting-estimate-feedback"},n.createElement("span",{className:"fwb"},"Audience Details:"),n.createElement("ul",{className:"_1ga7 pll pts"},w)));},renderUsers:function(){if(!this.props.ready)return null;return (this._isErrorState())?this.renderErrorInfo():n.createElement("div",{className:"_1ga8"},this.renderNumUsers());},renderNumUsers:function(){if(this.props.loading)return (n.createElement("div",{className:"_1ga9"},n.createElement(l,{size:l.SIZES.small,color:l.COLORS.blue})));var w=this.props.users;if(w<=h.REACH_TOO_LOW_NUMBER)return (p._("Potential Reach: Fewer than {users} people",[p.param("users",h.REACH_TOO_LOW_NUMBER)]));return (p._("Potential Reach: {users} people",[p.param("users",m.formatInteger(w))]));},renderWarning:function(){if(!this._isErrorState())if(!this.props.ready)return (n.createElement("div",{className:"_1gaa"},"Continue to create your audience while your customer list is being built"));return null;},renderErrorInfo:function(){return (n.createElement("div",{className:"_1gaa"},"Accurate information about your audience size isn't available.",this.renderEstimateErrors()));},renderEstimateErrors:function(){if(!this.props.estimateErrors.length)return;var w=this.props.estimateErrors.map(function(x){return this.renderSentence(x);}.bind(this));return (n.createElement("ul",{className:"_1ga7 pll pts"},w));},showNeedle:function(){return i.hasCSSTransforms()&&i.hasCSSTransitions();},_getRatingIfNotError:function(){if(!this.props.ready)return '';return (this._isErrorState())?'':this.props.rating;},_isErrorState:function(){return isNaN(this.props.users)||this.props.estimateErrors.length;},_getFeedbackSectionClasses:function(){return r('clearfix',"_1gab",this._getRatingIfNotError(),this._isErrorState()?'ERROR':'');}});e.exports=v;},null);
  __d("AdsTargetingEstimateUtils",["AdsCFAudienceEstimateValidator"],function(a,b,c,d,e,f,g){var h={getEstimateErrorFromTargetingSpec:function(i){var j=g.validateTargetingSpec(i),k=[];for(var l in j){var m=j[l];if(!m.isValid)k.push(m.errorMessage);}return k;}};e.exports=h;},null);
  __d("AdsTargetingUtils",["AdsBulkValueTypesConfig","AdsBulkValueUtils","BoostedRadiusOptions","AdsTargetingConstants","Set","StrSet","createObjectFrom","LocationConstants"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=b('LocationConstants').RadiusInfo,o={getRadiusOptions:function(){var p=Object.keys(i).map(function(q){return i[q];});p=[0].concat(p);return p;},getValidRadius:function(p,q){var r=q?n.getSupportedRadii():o.getRadiusOptions();if(r.indexOf(p)!==-1)return p;return q?n.getCityDefaultRadius():j.DEFAULT_RADIUS;},getBulkSentences:function(p){var q=p.map(function(t){return m(t.map(function(u){return u.content;}),t.map(function(u){return u.children;}));}),r=new l();p.forEach(function(t){if(t)t.forEach(function(u){return r.add(u.content);});});var s=m(r.toArray(),g.UNIFORM_SET_OR_MIXED);return h.aggregateDeep(s,q);},checkConnectionsConflicts:function(p,q){var r=[],s=new k(p.map(function(t){return t.id;}));q.forEach(function(t){if(s.has(t.id))r.push(t);});return r;}};e.exports=o;},null);
  __d("BoostedPostAudienceManagerTargetSpec",["AdsCreationExperiments","AdsTargetingModelAdapter","AdsTargetingUtils","AdsTargetingConstants","LocationConstants"],function(a,b,c,d,e,f,g,h,i,j){'use strict';var k=b('LocationConstants').RadiusInfo,l=g.getExperiment('ads_miles_to_kms'),m=('show_localized'==l.getGroup());function n(){this.$BoostedPostAudienceManagerTargetSpec0=[];this.$BoostedPostAudienceManagerTargetSpec1=[];this.$BoostedPostAudienceManagerTargetSpec2=[];this.$BoostedPostAudienceManagerTargetSpec3=j.DEFAULT_RADIUS;}n.prototype.getMinAge=function(){return this.$BoostedPostAudienceManagerTargetSpec4;};n.prototype.setMinAge=function(o){this.$BoostedPostAudienceManagerTargetSpec4=o;};n.prototype.getMaxAge=function(){return this.$BoostedPostAudienceManagerTargetSpec5;};n.prototype.setMaxAge=function(o){this.$BoostedPostAudienceManagerTargetSpec5=o;};n.prototype.getGender=function(){return this.$BoostedPostAudienceManagerTargetSpec6;};n.prototype.setGender=function(o){this.$BoostedPostAudienceManagerTargetSpec6=o;};n.prototype.getCountries=function(){return this.$BoostedPostAudienceManagerTargetSpec0;};n.prototype.setCountries=function(o){this.$BoostedPostAudienceManagerTargetSpec0=o;};n.prototype.getRegions=function(){return this.$BoostedPostAudienceManagerTargetSpec1;};n.prototype.setRegions=function(o){this.$BoostedPostAudienceManagerTargetSpec1=o;};n.prototype.getCities=function(){return this.$BoostedPostAudienceManagerTargetSpec2;};n.prototype.setCities=function(o){this.$BoostedPostAudienceManagerTargetSpec2=o;};n.prototype.getRadius=function(){return this.$BoostedPostAudienceManagerTargetSpec3;};n.prototype.setRadius=function(o){this.$BoostedPostAudienceManagerTargetSpec3=o;};n.prototype.getInterests=function(){return this.$BoostedPostAudienceManagerTargetSpec7;};n.prototype.setInterests=function(o){this.$BoostedPostAudienceManagerTargetSpec7=o;};n.prototype.setWithSpec=function(o){if(!o)return;this.setMinAge(o.age_min);this.setMaxAge(o.age_max);var p=o.genders;if(p&&p.length)this.setGender(p[0]);var q=o.geo_locations,r=q.countries,s=q.regions,t=q.cities;if(r){this.setCountries(r);}else if(s){this.setRegions(s.map(function(u){return u.key.toString();}));}else if(t){if(t.length)this.setRadius(i.getValidRadius(t[0].radius,m));this.setCities(t.map(function(u){return u.key.toString();}));}this.setInterests(o.interests);};n.prototype.getRaw=function(o){this.$BoostedPostAudienceManagerTargetSpec8();switch(o){case j.LOCATION_TYPES.Countries:h.setGeoLocations({countries:this.getCountries()});break;case j.LOCATION_TYPES.Regions:var p=this.getRegions().map(function(s){return {key:s};});h.setGeoLocations({regions:p});break;case j.LOCATION_TYPES.Cities:var q=null;if(this.getRadius())q=this.getRadius();var r=this.getCities().map(function(s){return {key:s,radius:q,distance_unit:m?k.getLocalizedUnit():'mile'};});h.setGeoLocations({cities:r});break;}if(this.getMinAge())h.setAgeMin(this.getMinAge());if(this.getMaxAge())h.setAgeMax(this.getMaxAge());if(this.getGender())h.setGenders([this.getGender()]);if(this.getInterests())h.setInterests(this.getInterests());return h.getApiSpec();};n.prototype.$BoostedPostAudienceManagerTargetSpec8=function(){h.unset('geoLocations');h.unset('ageMin');h.unset('ageMax');h.setGenders([]);h.unset('interests');};e.exports=n;},null);
  __d("BoostedPostAudienceManagerStore",["BoostedPostAudienceManagerTargetSpec","AdsTargetingConstants"],function(a,b,c,d,e,f,g,h){'use strict';function i(){this.$BoostedPostAudienceManagerStore0=new g();this.$BoostedPostAudienceManagerStore1=false;}i.prototype.getAudienceID=function(){return this.$BoostedPostAudienceManagerStore2;};i.prototype.setAudienceID=function(j){this.$BoostedPostAudienceManagerStore2=j;};i.prototype.getAudienceName=function(){return this.$BoostedPostAudienceManagerStore3;};i.prototype.setAudienceName=function(j){this.$BoostedPostAudienceManagerStore3=j;};i.prototype.getOriginalName=function(){return this.$BoostedPostAudienceManagerStore4;};i.prototype.setOriginalName=function(j){this.$BoostedPostAudienceManagerStore4=j;};i.prototype.getLocationType=function(){return this.$BoostedPostAudienceManagerStore5;};i.prototype.setLocationType=function(j){this.$BoostedPostAudienceManagerStore5=j;};i.prototype.getTargetSpec=function(){return this.$BoostedPostAudienceManagerStore0;};i.prototype.setTargetSpec=function(j){this.$BoostedPostAudienceManagerStore0=j;};i.prototype.setWithAudience=function(j){if(!j)return;this.setAudienceID(j.audience_id);this.setAudienceName(j.audience_name);this.setOriginalName(j.audience_name);if(!j.target_spec)return;this.$BoostedPostAudienceManagerStore0.setWithSpec(j.target_spec);var k=j.target_spec.geo_locations;if(k.countries){this.setLocationType(h.LOCATION_TYPES.Countries);}else if(k.regions){this.setLocationType(h.LOCATION_TYPES.Regions);}else if(k.cities)this.setLocationType(h.LOCATION_TYPES.Cities);};e.exports=i;},null);
  __d("BoostedPostStrings",["fbt"],function(a,b,c,d,e,f,g){var h={DEFAULT_BUTTON_LABEL:"Boost Post",EVENT_BUTTON_LABEL:"Boost Event",CANCEL_BUTTON_LABEL:"Cancel",REQUEST_REVIEW_BUTTON_LABEL:"Request Review",TARGETING_LABELS:{LOCATION:"Location",AGE:"Age",GENDER:"Gender",INTERESTS:"Interests",ADD_REGION_PLACEHOLDER:"Add states\/provinces...",ADD_CITY_PLACEHOLDER:"Add cities...",COUNTRY:"Country"},APPEAL_WARNING_TEXT_PART_1:"If you don't think your post violates our ads policy, you can request a review. This process usually takes about an hour.",APPEAL_WARNING_TEXT_PART_2:"Your boosted post will start automatically if it is approved, so set your targeting and budget before requesting a review.",APPEAL_DIALOG_TITLE:"Request a Policy Review"};e.exports=h;},null);
  __d("AdsTargetingLocationSelector.react",["AdsCreationExperiments","AdsTargetingTokenizer.react","AdsTargetingUtils","BoostedComponentClientEvent","BoostedPostStrings","AdsTargetingConstants","React","XUIGrayText.react","XUISelector.react","cx","fbt","intlList","LocationConstants"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';var s=b('LocationConstants').RadiusInfo,t=o.Option,u=g.getExperiment('ads_miles_to_kms'),v=('show_localized'==u.getGroup()),w=m.createClass({displayName:"AdsTargetingLocationSelector",propTypes:{onDataUpdate:m.PropTypes.func.isRequired,initialTokenizer:m.PropTypes.number,initialTokens:m.PropTypes.object,initialRadius:m.PropTypes.number,defaultCountries:m.PropTypes.object,smallInput:m.PropTypes.bool,whitelistCountries:m.PropTypes.array,blacklistCountries:m.PropTypes.array},getDefaultProps:function(){return {initialTokenizer:l.LOCATION_TYPES.Countries,initialTokens:{},initialRadius:v?s.getCityDefaultRadius():l.DEFAULT_RADIUS};},getInitialState:function(){var x=this.props,y=x.initialTokenizer?x.initialTokenizer:l.LOCATION_TYPES.Countries;return {countryRestriction:this._getCountryRestrictionFromProps(x),tokenizerShown:y,hasTokens:this._hasTokens(y,x.initialTokens),radiusSelected:i.getValidRadius(x.initialRadius,v)};},componentWillReceiveProps:function(x){var y=x.initialTokenizer?x.initialTokenizer:this.state.tokenizerShown;this.setState({tokenizerShown:y,countryRestriction:this._getCountryRestrictionFromProps(x),hasTokens:this._hasTokens(y,x.initialTokens),radiusSelected:i.getValidRadius(x.initialRadius,v)});},_hasTokens:function(x,y){return Boolean(y[this._getTokenizerString(x)]&&y[this._getTokenizerString(x)].length);},_hasInitialRegions:function(x){return (x.initialTokenizer===l.LOCATION_TYPES.Regions&&x.initialTokens.regions&&x.initialTokens.regions.length);},_getCountryRestrictionFromProps:function(x){if(!this._hasInitialRegions(x))return null;return x.initialTokens.regions[0].getSubtitle();},_getTokenizerString:function(x){switch(x){case l.LOCATION_TYPES.Countries:return 'countries';case l.LOCATION_TYPES.Regions:return 'regions';case l.LOCATION_TYPES.Cities:return 'cities';}},_getEventType:function(x){switch(x){case l.LOCATION_TYPES.Countries:return j.UPDATE_COUNTRIES;case l.LOCATION_TYPES.Regions:return j.UPDATE_REGIONS;case l.LOCATION_TYPES.Cities:return j.UPDATE_CITIES;}},_getLocationEntries:function(x){return this.refs[this._getTokenizerString(x)].getEntries();},_onSelectorChange:function(x){var y=x.value,z=this._getLocationEntries(y);this.setState({tokenizerShown:y,hasTokens:!!z.length,countryRestriction:null});this.props.onDataUpdate(this._getEventType(y),z);},_onEntriesUpdate:function(x,y){if(this.state.tokenizerShown===l.LOCATION_TYPES.Regions)this._onRegionDataUpdate(x,y);this.setState({hasTokens:!!x.length});this.props.onDataUpdate(this._getEventType(this.state.tokenizerShown),x);},_onRadiusChange:function(x){this.setState({radiusSelected:x.value});this.props.onDataUpdate(j.UPDATE_RADIUS,x.value);},_onRegionDataUpdate:function(x,y){if(x.length){this.setState({countryRestriction:y.getSubtitle()});}else this.setState({countryRestriction:null});},_getCountryGatingQuery:function(){var x={},y=this.props.whitelistCountries,z=this.props.blacklistCountries;if(y&&y.length)x.whitelist_countries=y;if(z&&z.length)x.blacklist_countries=z;return x;},_getCountriesTokenizer:function(){var x="Add countries...";return (m.createElement(h,{"data-testid":"country_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Countries],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),initialEntries:this.props.initialTokens.countries,smallInput:this.props.smallInput,placeholder:x,limit:l.MAX_LOCATION_ENTRIES,ref:"countries"}));},_getRegionsTokenizer:function(){var x={};if(this.state.countryRestriction){x.whitelist_countries=this.state.countryRestriction;}else x=this._getCountryGatingQuery();x.version=2;var y=k.TARGETING_LABELS.ADD_REGION_PLACEHOLDER;return (m.createElement(h,{"data-testid":"region_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Regions],onDataUpdate:this._onEntriesUpdate,queryData:x,initialEntries:this.props.initialTokens.regions,smallInput:this.props.smallInput,placeholder:y,limit:l.MAX_LOCATION_ENTRIES,ref:"regions"}));},_getCitiesTokenizer:function(){return (m.createElement(h,{"data-testid":"city_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Cities],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),initialEntries:this.props.initialTokens.cities,smallInput:this.props.smallInput,placeholder:k.TARGETING_LABELS.ADD_CITY_PLACEHOLDER,limit:l.MAX_LOCATION_ENTRIES,ref:"cities"}));},_getCitiesRadiusSelector:function(){if(this.state.tokenizerShown!==l.LOCATION_TYPES.Cities)return null;var x=v?s.getSupportedRadii():i.getRadiusOptions(),y=x.map(function(z){var aa=v?s.getLocalizedUnit()+'s':'miles',ba=null;if(aa=='miles'){ba=q._("+ {radiusValue} miles",[q.param("radiusValue",z)]);}else ba=q._("+ {radiusValue} kilometers",[q.param("radiusValue",z)]);return (m.createElement(t,{value:z,"data-testid":"within_"+z+"_"+aa},ba));});return (m.createElement(o,{maxwidth:150,onChange:this._onRadiusChange,value:this.state.radiusSelected,className:"mls","data-testid":"radius_selector"},y));},_getDefaultCountriesString:function(){var x=this.props.defaultCountries,y=[];for(var z in x)y.push(x[z]);return r(y,r.CONJUNCTIONS.AND);},_getWarningMessage:function(){if(!this.props.defaultCountries)return null;var x=(("mts")+(this.state.hasTokens?' '+"hidden_elem":''));return (m.createElement("div",{className:x},m.createElement(n,{"data-testid":"targeting_warning_message"},q._("If left blank, your ad will be delivered to {list_of_countries}.",[q.param("list_of_countries",this._getDefaultCountriesString())]))));},render:function(){var x=this.state,y=((x.tokenizerShown!=l.LOCATION_TYPES.Countries?"hidden_elem":'')),z=((x.tokenizerShown!=l.LOCATION_TYPES.Regions?"hidden_elem":'')),aa=((x.tokenizerShown!=l.LOCATION_TYPES.Cities?"hidden_elem":''));return (m.createElement("div",null,m.createElement("div",{className:"_5tpn"},m.createElement(o,{"data-testid":"location_selector",onChange:this._onSelectorChange,value:x.tokenizerShown},m.createElement(t,{"data-testid":"location_selector_country_item",value:l.LOCATION_TYPES.Countries},"Countries"),m.createElement(t,{"data-testid":"location_selector_region_item",value:l.LOCATION_TYPES.Regions},"States\/Provinces"),m.createElement(t,{"data-testid":"location_selector_city_item",value:l.LOCATION_TYPES.Cities},"Cities")),this._getCitiesRadiusSelector()),m.createElement("div",{className:"_5tpn"},m.createElement("div",{className:y},this._getCountriesTokenizer()),m.createElement("div",{className:z},this._getRegionsTokenizer()),m.createElement("div",{className:aa},this._getCitiesTokenizer())),this._getWarningMessage()));}});e.exports=w;},null);
  __d("AdsTargetingGenderSelector.react",["BoostedComponentClientEvent","BoostedComponentTestElement","AdsTargetingConstants","XUIButton.react","XUIRadioButtonGroup.react","React","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=l.createClass({displayName:"AdsTargetingGenderSelector",propTypes:{onDataUpdate:l.PropTypes.func.isRequired,initialGender:l.PropTypes.number},getDefaultProps:function(){return {initialGender:i.GENDERS.All};},getInitialState:function(){return {selected:this.props.initialGender};},componentWillReceiveProps:function(p){this.setState({selected:p.initialGender});},_onClick:function(p){this.setState({selected:p});this.props.onDataUpdate(g.UPDATE_GENDER,p);},render:function(){var p=(("_5v_d")),q="All",r="Men",s="Women";return (l.createElement("div",{"data-testid":h.GENDER_SELECTOR,className:p},l.createElement(k,{onValueChange:this._onClick,selectedValue:this.state.selected,selectedUse:"confirm"},l.createElement(j,{label:q,size:this.props.size,type:"button",value:i.GENDERS.All}),l.createElement(j,{label:r,size:this.props.size,type:"button",value:i.GENDERS.Men}),l.createElement(j,{label:s,size:this.props.size,type:"button",value:i.GENDERS.Women}))));}});e.exports=o;},null);
  __d("AdsTargetingKeywordSuggestions.react",["React","cx"],function(a,b,c,d,e,f,g,h){var i=g.PropTypes,j=g.createClass({displayName:"AdsTargetingKeywordSuggestions",propTypes:{suggestions:i.array.isRequired,onSuggestionClick:i.func},render:function(){var k=this.props.suggestions.map(function(l,m){return (g.createElement("li",{className:"_5c5m"},g.createElement("a",{href:"#","data-testid":"interest_suggestion_"+m.toString(),onClick:this.handleClick.bind(null,l)},l.text)));},this);return (g.createElement("ul",null,k));},handleClick:function(k){if(!this.props.onSuggestionClick)return;this.props.onSuggestionClick(k);}});e.exports=j;},null);
  __d("AdsTargetingKeywordTypeahead.react",["AdsTargetingAdmarketKeywordCategory","AdsTargetingTokenizer.react","BoostedComponentClientEvent","AdsTargetingConstants","React","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=k.createClass({displayName:"AdsTargetingKeywordTypeahead",propTypes:{onDataUpdate:k.PropTypes.func.isRequired,initialEntries:k.PropTypes.array,maxEntries:k.PropTypes.number,smallInput:k.PropTypes.bool},getDefaultProps:function(){return {maxEntries:j.MAX_KEYWORDS_ENTRIES};},_onChange:function(n,o){this.props.onDataUpdate(i.UPDATE_INTERESTS,n);},render:function(){var n={kw_filter:[g.KEYWORD_CATEGORY_WIKI],max_results:this.props.maxEntries,show_coverage:false,kw_as_value:false,no_wiki_hashtag:true,use_unified_interests:true},o="Add 4-10 interests...";return (k.createElement("div",null,k.createElement(h,{"data-testid":"interest_token",uri:j.KEYWORD_URI,queryData:n,onDataUpdate:this._onChange,placeholder:o,initialEntries:this.props.initialEntries,smallInput:this.props.smallInput})));}});e.exports=m;},null);
  __d("AdsTargetingKeywordSelector.react",["AdsTargetingConstants","AdsTargetingKeywordSuggestions.react","AdsTargetingKeywordTypeahead.react","BoostedComponentClientEvent","CurrentLocale","React","SearchableEntry","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=l.createClass({displayName:"AdsTargetingKeywordSelector",_tokenizerEntries:[],propTypes:{onDataUpdate:l.PropTypes.func.isRequired,initialEntries:l.PropTypes.array,maxEntries:l.PropTypes.number,primedDao:l.PropTypes.object,smallInput:l.PropTypes.bool,accessToken:l.PropTypes.string.isRequired},getDefaultProps:function(){return {initialEntries:[]};},getInitialState:function(){return {suggestions:[],entries:this.props.initialEntries};},_initializeSelector:function(p){this._tokenizerEntries=p.initialEntries;this._fetchSuggestions(this._getKeywordTokens(p.initialEntries));},componentWillMount:function(){if(!this.props.initialEntries.length)return;this._initializeSelector(this.props);},componentWillReceiveProps:function(p){this._initializeSelector(p);if(p.initialEntries)this.setState({entries:p.initialEntries});},_updateSuggestions:function(p){this.setState({suggestions:p});},_onDataUpdate:function(p,q){this._fetchSuggestions(this._getKeywordTokens(q));this._tokenizerEntries=q;this.props.onDataUpdate(p,q);},_handleSuggestionClick:function(p){var q=p.id,r=new m({uniqueID:q,title:p.text});this._tokenizerEntries.push(r);this._onDataUpdate(j.UPDATE_INTERESTS,this._tokenizerEntries);},_fetchSuggestions:function(p){this._fetchInterestSuggestions(p);},_fetchInterestSuggestions:function(p){if(!this.props.primedDao||!p.length){this._updateSuggestions([]);return;}this.props.primedDao.fetch.adInterestSuggestion.one(this._renderKeywordSuggestions,{interest_list:p,offset:0,include_algorithm:false,limit:2*g.MAX_KEYWORDS_SUGGESTIONS,locale:k.get(),access_token:this.props.accessToken});},_getKeywordTokens:function(p){var q=[],r=p.length;for(var s=0;s<r;s++)q.push(p[s].getTitle());return q;},_renderKeywordSuggestions:function(p){if(!p||!p.length){p=[];}else p=p.filter(function(q){if(!q.name)return false;q.text=q.uid=q.name;if(q.text.charAt(0)=='#')q.text=q.text.slice(1);return true;}).slice(0,g.MAX_KEYWORDS_SUGGESTIONS);this._updateSuggestions(p);},render:function(){var p=(("mts")+(!this.state.suggestions?' '+"hidden_elem":''));return (l.createElement("div",null,l.createElement(i,{onDataUpdate:this._onDataUpdate,initialEntries:this.state.entries,maxEntries:this.props.maxEntries,smallInput:this.props.smallInput}),l.createElement("div",{className:p},l.createElement(h,{suggestions:this.state.suggestions,onSuggestionClick:this._handleSuggestionClick}))));}});e.exports=o;},null);
  __d("BoostedPostAudienceUtil",["AsyncRequest","fbt"],function(a,b,c,d,e,f,g,h){var i={getCountryNames:function(j,k){new g().setURI('/ads/targeting/country_names/').setHandler(function(l){k(l.payload);}).setData({country_isos:j}).setReadOnly(true).setMethod('GET').send();},getRegionNames:function(j,k){new g().setURI('/ads/targeting/region_info/').setHandler(function(l){k(l.payload);}).setData({region_ids:j}).setReadOnly(true).setMethod('GET').send();},getCityNames:function(j,k){new g().setURI('/ads/targeting/city_names/').setHandler(function(l){k(l.payload);}).setData({city_ids:j}).setReadOnly(true).setMethod('GET').send();},getRegionNamesFromSpecFormat:function(j){return j.map(function(k){return k.name;});},getCityNamesFromSpecFormat:function(j){return j.map(function(k){return (h._("{name}, {region}",[h.param("name",k.name),h.param("region",k.region)]));});}};e.exports=i;},null);
  __d("BoostedPostNameInput.react",["BoostedPostAudienceManagerConstants","BoostedComponentClientEvent","XUITextInput.react","React","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=j.createClass({displayName:"BoostedPostNameInput",propTypes:{onDataUpdate:j.PropTypes.func.isRequired,initialText:j.PropTypes.string},getDefaultProps:function(){return {initialText:''};},getInitialState:function(){return {text:this.props.initialText};},componentWillReceiveProps:function(n){this.setState({text:n.initialText});},_onChange:function(event){var n=event.target.value;this.setState({text:n});this.props.onDataUpdate(h.UPDATE_NAME,n);},clear:function(){this.setState({text:''});this.props.onDataUpdate("name",'');},render:function(){var n="Add audience name ...";return (j.createElement("div",{className:"_5spb"},j.createElement(i,{placeholder:n,value:this.state.text,onChange:this._onChange,maxLength:g.MAX_NAME_LENGTH,ref:"input"})));}});e.exports=m;},null);
  __d("BoostedPostAudienceManagerRow.react",["XUIGrayText.react","React","cx"],function(a,b,c,d,e,f,g,h,i){var j=h.createClass({displayName:"BoostedPostAudienceManagerRow",propTypes:{label:h.PropTypes.string},render:function(){var k=this.props;return (h.createElement("div",{className:"_5sp0"},h.createElement("div",{className:"_5sp1"},h.createElement(g,{size:"small",shade:"light",weight:"bold"},k.label)),h.createElement("div",{className:"_5sp2"},k.children)));}});e.exports=j;},null);
  __d("BoostedPostAudienceEditor.react",["AdsTargetingLocationSelector.react","AdsAgeSelector.react","AdsTargetingGenderSelector.react","AdsTargetingKeywordSelector.react","AdsTargetingConstants","BoostedPostAudienceManagerConstants","LoadingIndicator.react","SearchableEntry","BoostedComponentClientEvent","BoostedPostAppConfig","BoostedPostAudienceManagerStore","BoostedPostAudienceUtil","BoostedPostStrings","BoostedPostTargetingController","BoostedPostNameInput.react","BoostedPostAudienceManagerRow.react","emptyFunction","React"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';var y=s.TARGETING_LABELS,z=x.createClass({displayName:"BoostedPostAudienceEditor",propTypes:{adAccountID:x.PropTypes.string.isRequired,setLoading:x.PropTypes.func.isRequired,onPostMutate:x.PropTypes.func.isRequired,mode:x.PropTypes.number.isRequired,store:x.PropTypes.instanceOf(q).isRequired,controller:x.PropTypes.instanceOf(t).isRequired,otherNames:x.PropTypes.array,onMessageChange:x.PropTypes.func.isRequired,defaultCountries:x.PropTypes.object.isRequired,onTargetingSpecChange:x.PropTypes.func},getDefaultProps:function(){return {otherNames:[],onTargetingSpecChange:w};},getInitialState:function(){return {namesLoaded:false,initialTokens:this._getEmptyInitialTokens()};},componentWillMount:function(){this._loading=false;},componentDidMount:function(){this._getLocationNames();},componentDidUpdate:function(){this._getLocationNames();},shouldComponentUpdate:function(){return !this._loading;},componentWillReceiveProps:function(){this.setState({namesLoaded:false});},_onDataUpdate:function(aa,ba){var ca=this.props.store,da=ca.getTargetSpec();if(aa===o.UPDATE_COUNTRIES||aa===o.UPDATE_REGIONS||aa===o.UPDATE_CITIES)ba=ba.map(function(fa){return fa.getUniqueID();});switch(aa){case o.UPDATE_NAME:ca.setAudienceName(ba);return;case o.UPDATE_AGE:da.setMinAge(ba.age_min);da.setMaxAge(ba.age_max);break;case o.UPDATE_GENDER:da.setGender(ba);break;case o.UPDATE_CITIES:da.setCities(ba);ca.setLocationType(k.LOCATION_TYPES.Cities);break;case o.UPDATE_COUNTRIES:da.setCountries(ba);ca.setLocationType(k.LOCATION_TYPES.Countries);break;case o.UPDATE_REGIONS:da.setRegions(ba);ca.setLocationType(k.LOCATION_TYPES.Regions);break;case o.UPDATE_RADIUS:da.setRadius(ba);break;case o.UPDATE_INTERESTS:var ea=ba.map(function(fa){return {id:fa.getUniqueID(),name:fa.getTitle()};});da.setInterests(ea);break;}this.props.onTargetingSpecChange(da.getRaw(ca.getLocationType()));},onSave:function(){var aa=this.props.store;this._setLoading(true);if(aa.getAudienceID()&&aa.getAudienceID()!==l.SPECIAL_AUDIENCES.LAST_USED){var ba=this.props.otherNames.slice(),ca=aa.getAudienceName();for(var da=0;da<ba.length;++da)if(ba[da]===ca){ba.splice(da,1);break;}this.props.controller.updateTargetingSpec(aa,ba,this._onPostMutate.bind(null,l.EDITOR_ACTIONS.EDIT,aa.getAudienceID()),this._onErrorCallback);}else this.props.controller.saveTargetingSpec(aa,this.props.otherNames,this._onPostMutate.bind(null,l.EDITOR_ACTIONS.CREATE),this._onErrorCallback);},_onErrorCallback:function(aa,ba,ca,da){this._setLoading(false);this.props.onMessageChange(aa);},_onPostMutate:function(aa,ba){this.props.onPostMutate(aa,ba);this._setLoading(false);},_getLocationNames:function(){if(this.state.namesLoaded)return;var aa=this.props.store,ba=aa.getTargetSpec(),ca=this._getNamesCallback;switch(aa.getLocationType()){case k.LOCATION_TYPES.Countries:r.getCountryNames(ba.getCountries(),ca.bind(null,k.TARGETING_SPEC_KEYS.COUNTRIES,null));break;case k.LOCATION_TYPES.Regions:r.getRegionNames(ba.getRegions(),ca.bind(null,k.TARGETING_SPEC_KEYS.REGIONS,'name'));break;case k.LOCATION_TYPES.Cities:r.getCityNames(ba.getCities(),ca.bind(null,k.TARGETING_SPEC_KEYS.CITIES,null));break;default:this.setState({initialTokens:this._getEmptyInitialTokens(),namesLoaded:true});break;}},_getEmptyInitialTokens:function(){return {countries:[],regions:[],cities:[]};},onAudienceDelete:function(){this._setLoading(true);this.props.controller.deleteTargetingSpec(this.props.store,this._onPostMutate.bind(null,l.EDITOR_ACTIONS.DELETE),this._onErrorCallback);},_getNamesCallback:function(aa,ba,ca){var da=[];for(var ea in ca){var fa=ca[ea];if(ba)fa=fa[ba];da.push(new n({uniqueID:ea,title:fa}));}var ga=this._getEmptyInitialTokens();ga[aa]=da;this.setState({namesLoaded:true,initialTokens:ga});},_setLoading:function(aa){this._loading=aa;this.props.setLoading(aa);},_getInterestEntries:function(aa){if(!aa)return [];var ba=[],ca=aa.length;for(var da=0;da<ca;++da)ba.push(new n({uniqueID:aa[da].id,title:aa[da].name}));return ba;},render:function(){var aa=this.props.store,ba=aa.getTargetSpec(),ca=this._getInterestEntries(ba.getInterests()),da=null;if(this.state.namesLoaded){da=x.createElement(g,{initialTokenizer:aa.getLocationType(),initialTokens:this.state.initialTokens,initialRadius:ba.getRadius(),onDataUpdate:this._onDataUpdate,defaultCountries:this.props.defaultCountries,smallInput:true,ref:"locations"});}else da=x.createElement(m,{size:"small",color:"white"});return (x.createElement("div",null,x.createElement(v,{label:l.LABELS.NAME},x.createElement(u,{initialText:aa.getAudienceName(),onDataUpdate:this._onDataUpdate,ref:"name"})),x.createElement(v,{label:y.LOCATION},da),x.createElement(v,{label:y.AGE},x.createElement(h,{initialMinAge:ba.getMinAge(),initialMaxAge:ba.getMaxAge(),onDataUpdate:this._onDataUpdate})),x.createElement(v,{label:y.GENDER},x.createElement(i,{onDataUpdate:this._onDataUpdate,initialGender:ba.getGender()})),x.createElement(v,{label:y.INTERESTS},x.createElement(j,{initialEntries:ca,onDataUpdate:this._onDataUpdate,primedDao:this.props.controller.getDao(),smallInput:true,accessToken:p.access_token}))));}});e.exports=z;},null);
  __d("AdInterfacesUiLogger",["AsyncRequest"],function(a,b,c,d,e,f,g){var h='/ajax/ads/interfaces/log/';function i(l){new g(h).setData(l).send();}var j='',k='0';e.exports={setAppName:function(l){j=l;},setAccountID:function(l){k=l;},log:function(l,m){if(!j||!k){j=j||'Unknown';k=k||0;}var n={app_name:j,event_name:l,account_id:k,payload:m||{}};i(n);}};},null);
  __d("BoostedPostAudienceManagerModule",["AdsTargetingEstimateFeedbackThrottle.react","AdsTargetingEstimateUtils","AdsTargetingRatingUtils","BoostedPostAudienceManagerConstants","BoostedPostAudienceManagerStore","BoostedPostBasicDialog.react","BoostedPostTargetingController","LayerFadeOnHide","LayerHideOnEscape","LoadingIndicator.react","XUICard.react","XUIDialog.react","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogSaveButton.react","XUIDialogCancelButton.react","XUIGrayText.react","XUINotice.react","ReactLayeredComponentMixin","BoostedPostAudienceEditor.react","React","AdInterfacesUiLogger","AdInterfacesAppNames","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';var ga=ba.createClass({displayName:"BoostedPostAudienceManagerModule",mixins:[z],propTypes:{adAccountID:ba.PropTypes.string.isRequired,onPostMutate:ba.PropTypes.func.isRequired,onChangeDialogState:ba.PropTypes.func.isRequired,showDefault:ba.PropTypes.bool,mode:ba.PropTypes.number,otherNames:ba.PropTypes.array,defaultCountries:ba.PropTypes.object.isRequired,showFeedbackThrottle:ba.PropTypes.bool,dialogShown:ba.PropTypes.bool,store:ba.PropTypes.instanceOf(k).isRequired,controller:ba.PropTypes.instanceOf(m).isRequired},getDefaultProps:function(){return {showDefault:true,mode:j.EDITOR_MODES.CREATE};},getInitialState:function(){return {loading:false,estimateThrottleConfig:{ready:true,loading:true,rating:i.OVERALL_RATINGS.BAD_TOO_BROAD,users:0,estimateErrors:[]}};},componentWillMount:function(){this._requestCounter=0;ca.setAccountID(this.props.adAccountID);ca.setAppName(da.BOOSTED_POSTS);},_onToggle:function(ha){this.props.onChangeDialogState(ha);this.setState({message:null});},_onSave:function(){this.refs.editor.onSave();},_setLoading:function(ha){this.setState({loading:ha});},_onPostMutate:function(ha,ia){this.props.onChangeDialogState(false);this.props.onPostMutate(ha,ia);},_onDelete:function(){this.refs.editor.onAudienceDelete(this.props.store.getAudienceID());},_onMessageChange:function(ha){this.setState({message:ha});},_getDialogTitle:function(){switch(this.props.mode){case j.EDITOR_MODES.CREATE:return ("Create Audience");default:return ("Edit Audience");}},_getDeleteDialog:function(){var ha=ba.createElement("a",{href:"#"},ba.createElement(x,{size:"small"},"Delete")),ia="Delete Audience?",ja="It will be removed from your saved audiences list.",ka="Cancel",la="Delete";return (ba.createElement(l,{title:ia,body:ja,width:300,entryComponent:ha,closeButtonText:ka,confirmText:la,confirmHandler:this._onDelete}));},_getExplanationText:function(){if(this.props.mode===j.EDITOR_MODES.CREATE){return ("Select the location, age, gender and interests of people you want to reach with your ad.");}else return ("Make sure to save your edits once you're done.");},_fetchReachEstimates:function(ha){if(!this.props.showFeedbackThrottle)return;this._requestCounter++;this._controller.fetchReachEstimates(ha,'USD',this._fetchReachEstimatesCallback.bind(this,this._requestCounter,ha));var ia=this.state.estimateThrottleConfig;ia.loading=true;this.setState({estimateThrottleConfig:ia});},_fetchReachEstimatesCallback:function(ha,ia,ja){if(ha!==this._requestCounter)return;this.setState({estimateThrottleConfig:{ready:ja.estimate_ready,loading:false,rating:i.getOverallRating(ia,ja.users),estimateErrors:h.getEstimateErrorFromTargetingSpec(ia),users:ja.users}});},_renderFeedbackThrottle:function(){if(!this.props.showFeedbackThrottle)return ba.createElement("div",null);var ha=this.state.estimateThrottleConfig;return (ba.createElement(q,{className:"_38ns"},ba.createElement(g,{ready:ha.ready,loading:ha.loading,rating:ha.rating,users:ha.users,estimateErrors:ha.estimateErrors})));},_getDialogWidth:function(){if(this.props.showFeedbackThrottle)return 680;return 445;},renderLayers:function(){var ha=this.state.loading,ia=null;if(ha)ia=ba.createElement("span",{className:"_5vbk"},ba.createElement(p,{size:"small",color:"white"}));var ja=null,ka=this.props.store.getAudienceID();if(this.props.mode===j.EDITOR_MODES.EDIT&&ka)ja=this._getDeleteDialog();var la=null;if(this.state.message)la=ba.createElement("div",{className:"_5vbj"},ba.createElement(y,null,this.state.message));var ma=((this.props.showFeedbackThrottle?"_38nu":''));return {dialog:ba.createElement(r,{causalElementRef:"button",shown:this.props.dialogShown,behaviors:{LayerFadeOnHide:n,LayerHideOnEscape:o},onToggle:this._onToggle,width:this._getDialogWidth()},ba.createElement(s,null,this._getDialogTitle()),ba.createElement(t,null,ba.createElement("div",{className:"_5csd"},ba.createElement("div",{className:"_42w7"},ba.createElement(x,{size:"small"},this._getExplanationText())),la,this._renderFeedbackThrottle(),ba.createElement("div",{className:ma},ba.createElement(aa,{adAccountID:this.props.adAccountID,setLoading:this._setLoading,onPostMutate:this._onPostMutate,mode:this.props.mode,store:this.props.store,controller:this.props.controller,otherNames:this.props.otherNames,onMessageChange:this._onMessageChange,defaultCountries:this.props.defaultCountries,onTargetingSpecChange:this._fetchReachEstimates,ref:"editor"})))),ba.createElement(u,{leftContent:ja},ia,ba.createElement(w,null),ba.createElement(v,{use:"confirm",disabled:ha,onClick:this._onSave})))};},render:function(){if(!this.props.showDefault)return (ba.createElement("div",null));return (ba.createElement("span",{className:"_1r-a"},ba.createElement(x,null,"Default Audience")));}});e.exports=ga;},null);
  __d("BoostedPostSelectAudienceSelector.react",["AdsTargetingConstants","BoostedPostAudienceManagerConstants","BoostedComponentPowerEditorDialog.react","BoostedPostAudienceManagerModule","BoostedPostAudienceManagerStore","BoostedPostLogging","BoostedPostEventType","BoostedPostTargetingController","Link.react","LoadingIndicator.react","BoostedPostSupportedTargeting","TooltipLink.react","XUIMenuSeparator.react","XUISelector.react","XUIText.react","React","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';var y=h.SPECIAL_AUDIENCES,z=t.Option,aa=v.createClass({displayName:"BoostedPostSelectAudienceSelector",propTypes:{adAccountID:v.PropTypes.string.isRequired,onAudienceUpdate:v.PropTypes.func.isRequired,hasLastAudience:v.PropTypes.bool,lastAudienceID:v.PropTypes.number,defaultTargetSpec:v.PropTypes.object.isRequired,defaultCountries:v.PropTypes.object.isRequired,showFeedbackThrottle:v.PropTypes.bool},getInitialState:function(){this._specialAudiences=[];return {audiences:[],dialogShown:false,mode:h.EDITOR_MODES.CREATE,selected:this._getDefaultSelectedValue([]),firstFetchDone:false};},componentWillMount:function(){this._store=new k();this._store.setAudienceID(this._getDefaultSelectedValue([]));this._controller=new n(this.props.adAccountID,Object.keys(this.props.defaultCountries));this.refreshSpecs();},refreshSpecs:function(ba,ca){this._controller.getTargetingSpecs(this._getTargetingSpecsCallback.bind(null,ba,ca));},_lastAudienceExists:function(ba){var ca=ba.filter(function(da){return da.audience_id===this.props.lastAudienceID;},this);return !!ca.length;},_getDefaultSelectedValueFromLastAction:function(ba,ca,da){if(ca){return ca;}else if(ba&&ba===h.EDITOR_ACTIONS.CREATE&&da.length)return da[da.length-1].audience_id;return this._getDefaultSelectedValue(da);},_getDefaultSelectedValue:function(ba){if(this._lastAudienceExists(ba))return this.props.lastAudienceID;var ca=this._specialAudiences;return ca.length?ca[0].audience_id:(ba.length?ba[0].audience_id:y.DEFAULT);},_getTargetingSpecsCallback:function(ba,ca,da){da.map(function(ha){ha.audience_id=parseInt(ha.audience_id,10);});this._specialAudiences=this._getSpecialAudiences(da);var ea=this._getDefaultSelectedValueFromLastAction(ba,ca,da);if(ea){this.setState({audiences:da,selected:ea,firstFetchDone:true});var fa=this._getAudienceFromID(ea,da);this._onAudienceUpdate(ea,fa);}else this.setState({audiences:da,firstFetchDone:true});if(!this._loggedAudienceShown){this._loggedAudienceShown=true;var ga={ad_account_id:this.props.adAccountID};if(this.props.hasLastAudience){l.log(m.AM_LAST_USED_AUDIENCE_SHOWN,ga);}else if(da.length){l.log(m.AM_FIRST_AUDIENCE_SHOWN,ga);}else l.log(m.AM_DEFAULT_AUDIENCE_SHOWN,ga);}},_getSpecialAudiences:function(ba){var ca=[];if(this.props.hasLastAudience&&!this._lastAudienceExists(ba))ca.push({audience_id:y.LAST_USED,audience_name:"Default Audience"});return ca;},_onAudienceChange:function(ba){var ca=ba.value,da=this._getAudienceFromID(ca,this.state.audiences),ea={ad_account_id:this.props.adAccountID,audience_id:ca};l.log(m.AM_AUDIENCE_CHANGED,ea);if(ca!==y.CREATE_NEW)this.setState({selected:ca});this._onAudienceUpdate(ca,da);},_onAudienceUpdate:function(ba,ca){switch(ba){case y.LAST_USED:case y.DEFAULT:this.props.onAudienceUpdate(this.props.defaultTargetSpec);return;case y.CREATE_NEW:this._store=new k();this.setState({mode:h.EDITOR_MODES.CREATE,dialogShown:true});return;default:break;}if(ca)this.props.onAudienceUpdate(ca.target_spec,ca.audience_id);},_onAudienceEdit:function(){var ba=this.state.selected,ca=null,da={ad_account_id:this.props.adAccountID};if(ba===y.DEFAULT){ca={target_spec:this.props.defaultTargetSpec};l.log(m.AM_DEFAULT_AUDIENCE_EDITED,da);}else if(ba===y.LAST_USED){ca={target_spec:this.props.defaultTargetSpec};l.log(m.AM_LAST_USED_AUDIENCE_EDITED,da);}else ca=this._getAudienceFromID(ba,this.state.audiences);if(ca){this._store=new k();this._store.setWithAudience(ca);this.setState({mode:h.EDITOR_MODES.EDIT,dialogShown:true});}},_getAudienceFromID:function(ba,ca){var da=ca.length;for(var ea=0;ea<da;++ea)if(ca[ea].audience_id===ba)return ca[ea];return null;},_isSelectedAudienceEditable:function(){switch(this.state.selected){case y.CREATE_NEW:return false;case y.LAST_USED:return true;default:return true;}},_isSelectedAudienceEditableOnlyInPowerEditor:function(){var ba=null;switch(this.state.selected){case y.CREATE_NEW:return false;case y.LAST_USED:case y.DEFAULT:ba=this.props.defaultTargetSpec;break;default:ba=this._getAudienceFromID(this.state.selected,this.state.audiences).target_spec;break;}for(var ca in ba)if(q.EDIT_TARGETING_FIELDS.indexOf(ca)===-1)return true;return this._isIncompatibleFlatGeoSpec(ba);},_isIncompatibleFlatGeoSpec:function(ba){var ca=ba.geo_locations;if(!ca)return false;var da=0,ea=g.TARGETING_SPEC_KEYS;Object.keys(ca).map(function(fa){if([ea.COUNTRIES,ea.REGIONS,ea.CITIES].indexOf(fa)!==-1)da++;});return da>1;},_hasAnyAudiences:function(){return (this.state.audiences.length+this._specialAudiences.length>0);},_addSpecialAudienceOptions:function(ba){var ca=this._specialAudiences,da=ca.length;for(var ea=0;ea<da;++ea){var fa=ca[ea];ba.push(v.createElement(z,{value:fa.audience_id},fa.audience_name));}},_addAudienceOptions:function(ba){var ca=this.state.audiences,da=ca.length;for(var ea=0;ea<da;++ea){var fa=ca[ea];ba.push(v.createElement(z,{value:fa.audience_id},fa.audience_name));}},_onPostMutate:function(ba,ca){this.refreshSpecs(ba,ca);},_getOtherNames:function(){return this.state.audiences.map(function(ba){return ba.audience_name;});},_renderChildren:function(){if(!this.props.children)return null;return (v.createElement("div",{className:"_1obt"},this.props.children,this._renderEditLink(),' - ',this._renderCreateLink()));},_renderCreateLink:function(){var ba=this._onAudienceUpdate.bind(this,y.CREATE_NEW);return (v.createElement("span",null,v.createElement(o,{onClick:ba},v.createElement(u,null,"Create New Audience"))));},_renderEditLink:function(){if(this._isSelectedAudienceEditableOnlyInPowerEditor()){return (v.createElement(i,null,v.createElement("span",null,v.createElement(o,null,v.createElement(u,null,"Edit Audience")))));}else if(this._isSelectedAudienceEditable()){var ba="Edit this audience's interests, location, ages and gender";return (v.createElement("span",null,v.createElement(r,{onClick:this._onAudienceEdit,alignH:"right",tooltip:ba},v.createElement(u,null,"Edit Audience"))));}return null;},_onChangeDialogState:function(ba){this.setState({dialogShown:ba});},render:function(){var ba=null,ca=this.state.audiences.length;if(this._hasAnyAudiences()&&ca){var da=[],ea=this._specialAudiences.length;this._addSpecialAudienceOptions(da);if(ea&&ca)da.push(v.createElement(s,null));this._addAudienceOptions(da);ba=v.createElement(t,{value:this.state.selected,onChange:this._onAudienceChange,maxheight:200,maxwidth:150},da);}else if(!this.state.firstFetchDone)ba=v.createElement(p,{size:"small",color:"white"});return (v.createElement("div",null,v.createElement("div",{className:"_1obt"},v.createElement(j,{adAccountID:this.props.adAccountID,onPostMutate:this._onPostMutate,onChangeDialogState:this._onChangeDialogState,showDefault:!this._hasAnyAudiences()&&this.state.firstFetchDone,mode:this.state.mode,otherNames:this._getOtherNames(),defaultCountries:this.props.defaultCountries,showFeedbackThrottle:this.props.showFeedbackThrottle,dialogShown:this.state.dialogShown,store:this._store,controller:this._controller,ref:"manager"}),ba),this._renderChildren()));}});e.exports=aa;},null);
  __d("BoostedPostSelectAudienceSection.react",["BoostedPostAudienceDetails.react","BoostedPostSelectAudienceSelector.react","BoostedPostSpecs","BoostedPostTargetingController","PromotedPostConstants","React","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=l.createClass({displayName:"BoostedPostSelectAudienceSection",propTypes:{adAccountID:l.PropTypes.string.isRequired,specs:l.PropTypes.instanceOf(i).isRequired,hasLastAudience:l.PropTypes.bool,lastAudienceID:l.PropTypes.number,defaultCountries:l.PropTypes.object.isRequired,defaultSpec:l.PropTypes.object.isRequired,showFeedbackThrottle:l.PropTypes.bool,onTargetingChange:l.PropTypes.func.isRequired},getInitialState:function(){return {specs:this.props.specs};},componentWillMount:function(){this._controller=new j(this.props.adAccountID,Object.keys(this.props.defaultCountries));this.state.specs.subscribe(k.ACCOUNT_CHANGE_FINISH,this._refreshSpecs);},_onAudienceUpdate:function(o,p){this.state.specs.setTargetingSpec(o);if(p)this.state.specs.setLastAudienceID(p);this.setState({specs:this.state.specs});this.props.onTargetingChange();},_refreshSpecs:function(){this.refs.selector.refreshSpecs();},render:function(){return (l.createElement("div",{className:"_3mui"},l.createElement(h,{adAccountID:this.props.adAccountID,onAudienceUpdate:this._onAudienceUpdate,hasLastAudience:this.props.hasLastAudience,lastAudienceID:this.props.lastAudienceID,defaultTargetSpec:this.props.defaultSpec,defaultCountries:this.props.defaultCountries,showFeedbackThrottle:this.props.showFeedbackThrottle,ref:"selector"},l.createElement(g,{audience:this.props.specs.getTargetingSpecRaw(),controller:this._controller,width:300}))));}});e.exports=n;},null);
  __d("BoostedPostTargetingAudienceSelector.react",["BoostedComponentClientEvent","BoostedComponentTestElement","AdsTargetingConstants","InputLabel.react","React","HelpLink.react","XUIRadioInput.react","XUISelector.react","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=n.Option,r=k.createClass({displayName:"BoostedPostTargetingAudienceInfo",propTypes:{selectedAudience:k.PropTypes.oneOf([i.AUDIENCE.Fans,i.AUDIENCE.Grouper,i.AUDIENCE.Ncpp,i.AUDIENCE.Custom,i.AUDIENCE.Lookalike,i.AUDIENCE.Engaged]).isRequired,showCustomAudience:k.PropTypes.bool.isRequired,showLookalikeAudience:k.PropTypes.bool.isRequired,showEngagedAudience:k.PropTypes.bool.isRequired,isAlreadyTargeted:k.PropTypes.bool.isRequired,isInComposer:k.PropTypes.bool.isRequired,onDataUpdate:k.PropTypes.func.isRequired,isDisabled:k.PropTypes.bool,isDropdown:k.PropTypes.bool},_onValueChange:function(event){if(!this.props.isDisabled){var s=this.props.isDropdown?event.value:event.target.value;this.props.onDataUpdate(g.UPDATE_AUDIENCE,s);}},_renderFansOption:function(){if(this.props.isDisabled)return null;var s=k.createElement("div",null,"Your boosted post will only be visible to people who like your Page");return (k.createElement(j,null,k.createElement(m,{name:"audience",value:i.AUDIENCE.Fans,checked:this.props.selectedAudience===i.AUDIENCE.Fans,onChange:this._onValueChange}),k.createElement("label",null,"People who like your Page",k.createElement(l,{tooltip:s}))));},_renderGrouperOption:function(){if(this.props.isDisabled)return null;var s=k.createElement("div",null,"Your boosted post will only be visible to people who like your Page and their friends");return (k.createElement(j,null,k.createElement(m,{name:"audience",value:i.AUDIENCE.Grouper,checked:this.props.selectedAudience===i.AUDIENCE.Grouper,onChange:this._onValueChange}),k.createElement("label",null,"People who like your Page and their friends",k.createElement(l,{tooltip:s}))));},_renderNcppOption:function(){if(this.props.isDisabled)return null;var s=k.createElement("div",null,"Choose the people you want to show your boosted post to based on their location, age, gender and interests");return (k.createElement(j,{"data-testid":"ncpp_option"},k.createElement(m,{name:"audience",value:i.AUDIENCE.Ncpp,checked:this.props.selectedAudience===i.AUDIENCE.Ncpp,onChange:this._onValueChange}),k.createElement("label",null,"People you choose through targeting",k.createElement(l,{tooltip:s}))));},_renderCustomAudienceOption:function(){if(!this.props.showCustomAudience||this.props.isDisabled)return null;var s=k.createElement("div",null,"Your post will be promoted to people in the custom audience you choose below.");return (k.createElement(j,null,k.createElement(m,{name:"audience",value:i.AUDIENCE.Custom,checked:this.props.selectedAudience===i.AUDIENCE.Custom,onChange:this._onValueChange}),k.createElement("label",null,"Your custom audience",k.createElement(l,{tooltip:s}))));},_renderLookalikeAudienceOption:function(){if(!this.props.showLookalikeAudience||this.props.isDisabled||this.props.isAlreadyTargeted)return null;var s=k.createElement("div",null,"Your boosted post will be visible to people who are similar to people who like your Page based on things like their demographics, interests and activities");return (k.createElement(j,null,k.createElement(m,{name:"audience",value:i.AUDIENCE.Lookalike,checked:this.props.selectedAudience===i.AUDIENCE.Lookalike,onChange:this._onValueChange}),k.createElement("label",null,"People similar to people who like your Page",k.createElement(l,{tooltip:s}))));},_renderEngagedAudience:function(){if(!this.props.showEngagedAudience||this.props.isDisabled)return null;var s=k.createElement("div",null,"People in this audience includes people who have viewed, checked-in, shared posts or otherwise engaged with your Page, and people who share their ages, genders and interests. They may or may not have liked your Page.");return (k.createElement(j,null,k.createElement(m,{name:"audience",value:i.AUDIENCE.Engaged,checked:this.props.selectedAudience===i.AUDIENCE.Engaged,onChange:this._onValueChange}),k.createElement("label",null,"People engaged with your Page and people similar to them",k.createElement(l,{tooltip:s}))));},_renderAlreadyTargeted:function(){if(!this.props.isAlreadyTargeted)return null;if(this.props.isInComposer){var s="Targeting for this post has already been specified.";}else s="Targeting for this post was specified when it was created.";var t=(("_5lq7")+(this.props.isDisabled?' '+"_5c4b":''));return (k.createElement("div",{className:t,"data-testid":"already_targeted_message"},s));},_renderAudienceDropdown:function(){var s=[];if(this._renderFansOption())s.push(k.createElement(q,{value:i.AUDIENCE.Fans},"People who like your Page"));if(this._renderGrouperOption())s.push(k.createElement(q,{value:i.AUDIENCE.Grouper},"People who like your Page and their friends"));if(this._renderLookalikeAudienceOption())s.push(k.createElement(q,{value:i.AUDIENCE.Lookalike},"People similar to people who like your Page"));if(this._renderEngagedAudience())s.push(k.createElement(q,{value:i.AUDIENCE.Engaged},"People engaged with your Page and people similar to them"));if(this._renderNcppOption())s.push(k.createElement(q,{value:i.AUDIENCE.Ncpp},"People you choose through targeting"));if(this._renderCustomAudienceOption())s.push(k.createElement(q,{value:i.AUDIENCE.Custom},"Your custom audience"));var t=null;if(this.props.selectedAudience===i.AUDIENCE.Fans){t="Your boosted post will only be visible to people who like your Page";}else if(this.props.selectedAudience===i.AUDIENCE.Grouper){t="Your boosted post will only be visible to people who like your Page and their friends";}else if(this.props.selectedAudience===i.AUDIENCE.Lookalike){t="Your boosted post will be visible to people who are similar to people who like your Page based on things like their demographics, interests and activities";}else if(this.props.selectedAudience===i.AUDIENCE.Engaged){t="People in this audience includes people who have viewed, checked-in, shared posts or otherwise engaged with your Page, and people who share their ages, genders and interests. They may or may not have liked your Page.";}else if(this.props.selectedAudience===i.AUDIENCE.Ncpp){t="Choose the people you want to show your boosted post to based on their location, age, gender and interests";}else if(this.props.selectedAudience===i.AUDIENCE.Custom)t="Your post will be promoted to people in the custom audience you choose below.";return (k.createElement("div",{className:"_5436"},k.createElement(n,{name:"audience",onChange:this._onValueChange,defaultValue:this.props.selectedAudience,maxwidth:263},s),k.createElement(l,{tooltip:t,alignH:"right"})));},render:function(){var s=k.createElement("div",{"data-testid":h.AUDIENCE_SECTION},this._renderFansOption(),this._renderGrouperOption(),this._renderLookalikeAudienceOption(),this._renderEngagedAudience(),this._renderNcppOption(),this._renderCustomAudienceOption());if(this.props.isDropdown)s=this._renderAudienceDropdown();var t=((!this.props.isDropdown?"_3ni0":''));return (k.createElement("form",{"data-testid":h.AUDIENCE_SECTION,className:t},s,this._renderAlreadyTargeted()));}});e.exports=r;},null);
  __d("ProgressBar.react",["React","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i){var j=g.createClass({displayName:"UIProgressBar",propTypes:{value:g.PropTypes.number.isRequired,label:g.PropTypes.string,min:g.PropTypes.number,max:g.PropTypes.number,size:g.PropTypes.oneOf(['small','large']),typesetting:g.PropTypes.oneOf(['float','inline']),isRounded:g.PropTypes.bool},getDefaultProps:function(){return {min:0,max:100,size:'large',typesetting:'inline',isRounded:false};},_calculatePercentage:function(){var k=this.props,l=Math.min(Math.max((k.value-k.min)/(k.max-k.min)*100,0),100);return l;},_hasLabel:function(){return this.props.label!=null&&this.props.size!=='small';},_isFloatingLabel:function(){return this._hasLabel()&&this.props.typesetting==='float';},_getLabel:function(){if(!this._hasLabel())return null;return this.props.label;},_getSpacer:function(){if(this._isFloatingLabel())return g.createElement("div",{className:"_6a"}," ");return null;},_getFillArea:function(){var k=Math.round(this._calculatePercentage()),l=(("_5e4k")+(k===0?' '+"_5e2d":'')+(k===100?' '+"_5e4j":'')),m=this._getLabel();if(m)m=g.createElement("span",{className:"_5e2h"},m);var n=g.createElement("div",{className:l,style:{width:k+'%'}},this._getSpacer(),m);return n;},_getUnfillArea:function(){var k=this._getLabel();if(!k)return null;k=g.createElement("span",{className:"_5e2h _5e2n"},k);if(this._isFloatingLabel()){var l=this._calculatePercentage(),m={left:l+'%',width:l+'%'},n=g.createElement("div",{className:"_5e2g",style:m},this._getSpacer(),k);return n;}return k;},render:function(){var k=(("_5e4h")+(!this._isFloatingLabel()?' '+"_5e2k":'')+(this._isFloatingLabel()?' '+"_5e2j":'')+(this.props.size==='small'?' '+"_5e2l":'')+(this.props.isRounded===true?' '+"_5e2m":''));if(this._isFloatingLabel()){return (g.createElement("div",g.__spread({},this.props,{className:i(this.props.className,k)}),g.createElement("div",{className:"_5e2k"},this._getUnfillArea(),this._getFillArea())));}else return (g.createElement("div",g.__spread({},this.props,{className:i(this.props.className,k)}),this._getUnfillArea(),this._getFillArea()));}});e.exports=j;},null);
  __d("BoostedPostTargetingReachBar.react",["AdsReachEstimateBar.react","BoostedComponentTestElement","BoostedPostEventType","BoostedPostLogging","BoostedPostAudienceConstants","BoostedPostReachConstants","LeftRight.react","ProgressBar.react","React","XUINotice.react","cx","fbt","ads-lib-formatters"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=s.createIntlNumberFormatter(0),u=o.createClass({displayName:"BoostedPostTargetingReachBar",propTypes:{audienceOption:o.PropTypes.number,audienceSize:o.PropTypes.number,minReach:o.PropTypes.number,maxReach:o.PropTypes.number,usePillButton:o.PropTypes.bool,logData:o.PropTypes.shape({page_id:o.PropTypes.string.isRequired,post_id:o.PropTypes.string,user_id:o.PropTypes.number.isRequired,budget:o.PropTypes.number.isRequired,currency:o.PropTypes.string.isRequired}).isRequired},getDefaultProps:function(){return {audienceSize:0,minReach:0,maxReach:0};},_getIsDataValid:function(){return (this.props.minReach>=0&&this.props.maxReach>this.props.minReach&&this.props.audienceSize>=this.props.maxReach);},_isAudienceBroad:function(){return (this.props.audienceSize>l.AUDIENCE_BROAD&&this.props.audienceOption!==k.LOOKALIKE);},_getAverageReach:function(){return Math.round((this.props.minReach+this.props.maxReach)/2);},_computeFillWidth:function(){var v=this._getAverageReach();return Math.round(Math.sqrt(v)*Math.log(v));},_getFillWidth:function(){var v=this._computeFillWidth(),w=this._getTargetingBarWidth();if(v<.02*w){return Math.round(.02*w);}else if(v>.98*w)return Math.round(.98*w);return Math.round(v);},_getTargetingBarWidth:function(){return Math.round(Math.sqrt(this.props.audienceSize*Math.log(this.props.audienceSize))+this._computeFillWidth());},_renderInfoMessage:function(){var v=this.props.audienceSize,w=this._getAverageReach(),x=null;if(this._isAudienceBroad()){x="Your targeting is very broad. Narrow your targeted audience if you want your promotion to reach more people that you care about.";}else if(v&&(w/v)<l.MIN_REACH){x="Increase your budget or narrow your audience if you want to reach more people that you care about.";}else x="Your budget and targeting determine how many people your post will reach.";return (o.createElement("div",{className:"_5ul1"},x));},_renderErrorMsg:function(){var v=this.props.logData;v.lower_reach_estimate=this.props.minReach;v.upper_reach_estimate=this.props.maxReach;j.log(i.CLIENT_REACH_ESTIMATE_UNAVAILABLE,v);return (o.createElement(p,{use:"notify"},"Estimated reach is unavailable."));},_renderHeaderInfo:function(){var v=t(this.props.minReach),w=t(this.props.maxReach),x=t(this.props.audienceSize);return (o.createElement(m,null,o.createElement("div",null,v," - ",w),o.createElement("div",{className:"_5ul0"},r._("of {audience_size}",[r.param("audience_size",x)]))));},_renderReachBar:function(){var v=((this._isAudienceBroad()?"_5uk_":''));return (o.createElement("div",{className:v},o.createElement(n,{value:this._getFillWidth(),max:this._getTargetingBarWidth(),size:"small",isRounded:true})));},_renderHeaderAndReachBar:function(){if(this.props.usePillButton){return (o.createElement(g,{estimateDAU:this.props.audienceSize,reachBounds:{min:this.props.minReach,max:this.props.maxReach}}));}else return (o.createElement("div",null,this._renderHeaderInfo(),this._renderReachBar()));},render:function(){if(!this._getIsDataValid())return this._renderErrorMsg();return (o.createElement("div",null,o.createElement("div",{"data-testid":h.REACH_ESTIMATES,className:"_5uk-"},this._renderHeaderAndReachBar()),this._renderInfoMessage()));}});e.exports=u;},null);
  __d("XBoostedPostApprovalPreTestControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/ajax\/boosted_post\/approval_pre_test\/",{page_id:{type:"Int",required:true},post_id:{type:"Int",required:true},account_id:{type:"Int",required:true},dom_node_id:{type:"String",required:true}});},null);
  __d("BoostedPostValidationWarningBox.react",["AdsCreativeImageTextOverlayDialog.react","AdsImageLegacy","Arbiter","AsyncRequest","DOMContainer.react","React","SubscriptionsHandler","XBoostedPostApprovalPreTestControllerURIBuilder","XUINotice.react","XUIText.react","cx","fbt","isInvalidFacebookCapitalization"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';var t=null,u=false,v=l.createClass({displayName:"BoostedPostValidationWarningBox",propTypes:{initialStoryText:l.PropTypes.string.isRequired,postID:l.PropTypes.string.isRequired,pageID:l.PropTypes.string.isRequired,adAccountID:l.PropTypes.string.isRequired,onPostRejected:l.PropTypes.func.isRequired,onApiReviewAppealRequested:l.PropTypes.func,hasTargetingErrors:l.PropTypes.bool,disapprovalReasonMsg:l.PropTypes.object},getInitialState:function(){return {storyText:this.props.initialStoryText,disapprovalReasonMsg:this.props.disapprovalReasonMsg,disapprovalTheme:'warn'};},componentDidMount:function(){var w=this.getDOMNode().getAttribute('data-reactid');this._subscriptionsHandler.addSubscriptions(i.subscribe(w,function(y,z){if(this.props.postID==z.postID&&!this.state.disapprovalReasonMsg){var aa=null;if(t){aa=l.createElement(k,null,t);this.setState({disapprovalReasonMsg:aa});this.props.onPostRejected(aa);}else if(z.imageUrls){aa=this._getTextPolicyWarning(z.imageUrls,z.preselectedBoxes);this.setState({disapprovalReasonMsg:aa,disapprovalTheme:'alert'});}}}.bind(this)));if(!this.state.disapprovalReasonMsg){var x=new n().setInt('page_id',this.props.pageID).setInt('post_id',this.props.postID).setInt('account_id',this.props.adAccountID).setString('dom_node_id',w).getURI();new j().setURI(x).setMethod('POST').send();}else if(this.state.disapprovalReasonMsg)this.props.onPostRejected(this.state.disapprovalReasonMsg);},componentWillMount:function(){this._subscriptionsHandler=new m();this._subscriptionsHandler.addSubscriptions(i.subscribe('postcontent/change',function(w,x){if(this.props.postID===x.post_id){this.setState({storyText:x.content});this._checkInvalidFacebookCapitalization();}}.bind(this)));this._checkInvalidFacebookCapitalization();},componentWillUnmount:function(){this._subscriptionsHandler.release();},_getTextPolicyWarning:function(w,x){var y=w.map(function(z){return new h({url:z});});return (l.createElement("div",{className:"_3ns"},r._("Ads images with text that takes up more than 20\u0025 of the image may not be approved. Use another image or try the {text validation tool} to see if your image will be approved.",[r.param("text validation tool",l.createElement(g,{readOnly:true,images:y,preselectedBoxes:x},l.createElement("span",{className:"_4z2z"},"text validation tool")))])));},_checkInvalidFacebookCapitalization:function(){if(s(this.state.storyText)){var w=l.createElement("div",null,"When you mention Facebook in a boosted post, it needs to be capitalized. Edit your post before boosting it so that it meets our ad guidelines.");this.setState({disapprovalReasonMsg:w});}},render:function(){var w=null,x=this.state.disapprovalTheme;if(this.state.disapprovalTheme==='alert'){w="_3jok";x='warn';}if(this.state.disapprovalReasonMsg){return (l.createElement("div",{className:"ptm mhm"},l.createElement(o,{use:x,className:w},l.createElement(p,null,this.state.disapprovalReasonMsg))));}else return l.createElement("div",null);}});v.updateErrorText=function(w,x,y,z,aa){t=x;u=false;i.inform(y,{postID:w,imageUrls:z,preselectedBoxes:aa});};e.exports=v;},null);
  __d("BoostedPostTargetingSection.react",["AdsAgeSelector.react","AdsTargetingGenderSelector.react","AdsTargetingKeywordSelector.react","AdsTargetingLocationSelector.react","BoostedPostAppConfig","BoostedPostLabeledRow.react","BoostedPostStrings","BoostedPrimedDao","AdsTargetingConstants","React","XUIGrayText.react","XUINotice.react","fbt","cx","intlList"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=m.TARGETING_LABELS,w=p.createClass({displayName:"BoostedPostTargetingSection",propTypes:{adAccountID:p.PropTypes.string.isRequired,onDataUpdate:p.PropTypes.func.isRequired,audienceSelected:p.PropTypes.number.isRequired,initialData:p.PropTypes.object.isRequired,ageSelectorOptions:p.PropTypes.object.isRequired,locationSelectorOptions:p.PropTypes.object.isRequired,locationErrorMsg:p.PropTypes.string,audienceManagerEnabled:p.PropTypes.bool.isRequired},getInitialState:function(){return {fofSelectorShown:false};},_getInitialLocationTokenizer:function(){switch(this.props.initialData.targetingLevel){case 'countries':return o.LOCATION_TYPES.Countries;case 'regions':return o.LOCATION_TYPES.Regions;case 'cities':return o.LOCATION_TYPES.Cities;default:return null;}},_onShowFofSelector:function(){this.setState({fofSelectorShown:!this.state.fofSelectorShown});},getLocationSelector:function(){if(!this.state.fofSelectorShown&&(this.props.audienceSelected===o.AUDIENCE.Fans||this.props.audienceSelected===o.AUDIENCE.Grouper)){var x=this.props.initialData.targetingLevel?this.props.initialData.targetingLevel:'countries',y=this.props.locationSelectorOptions.targetingLocations[x],z=u(y.map(function(ca){return ca.getTitle();})),aa="Edit";return (p.createElement(l,{label:v.LOCATION},p.createElement("div",{className:"_3ynp"},p.createElement("div",{className:"_3ynq"},p.createElement(q,{shade:"medium"},z)),p.createElement("a",{href:"#",className:"_3ynv",onClick:this._onShowFofSelector},aa))));}var ba=this.props.locationSelectorOptions;return (p.createElement(l,{label:v.LOCATION},p.createElement(j,{onDataUpdate:this.props.onDataUpdate,initialTokenizer:this._getInitialLocationTokenizer(),initialTokens:ba.targetingLocations,initialRadius:this.props.initialData.radius,defaultCountries:ba.defaultCountries,smallInput:true,whitelistCountries:ba.whitelistCountries,blacklistCountries:ba.blacklistCountries})));},getAgeSelector:function(){var x=this.props.ageSelectorOptions;return (p.createElement(l,{label:v.AGE},p.createElement(g,{minSelectableAge:x.minSelectableAge,maxSelectableAge:x.maxSelectableAge,initialMinAge:this.props.initialData.age.ageMin,initialMaxAge:this.props.initialData.age.ageMax,onDataUpdate:this.props.onDataUpdate})));},getGenderSelector:function(){return (p.createElement(l,{label:v.GENDER},p.createElement(h,{onDataUpdate:this.props.onDataUpdate,initialGender:this.props.initialData.gender})));},getKeywordSelector:function(){var x="Facebook can help you reach specific audiences by looking at their interests, activities, the Pages they have liked and closely related topics. Combine interests to expand your ad's reach.";return (p.createElement(l,{label:v.INTERESTS,tooltip:x},p.createElement(i,{initialEntries:this.props.initialData.keywords,onDataUpdate:this.props.onDataUpdate,primedDao:n.getDaoForCurrentAccount(),smallInput:true,accessToken:k.access_token})));},getLocationErrorMsg:function(){if(!this.props.locationErrorMsg)return null;var x=(("mhm")+(' '+"mvm"));return (p.createElement(r,{className:x,use:"warn"},this.props.locationErrorMsg));},render:function(){if(this.props.audienceManagerEnabled){var x=(("_3ja")+(!(this.props.audienceSelected===o.AUDIENCE.Fans||this.props.audienceSelected===o.AUDIENCE.Grouper)?' '+"hidden_elem":''));return (p.createElement("div",{className:x},this.getLocationSelector()));}var y=(("_3ja")),z=(("_3ja")+(this.props.audienceSelected===o.AUDIENCE.Fans||this.props.audienceSelected===o.AUDIENCE.Grouper?' '+"hidden_elem":''));return (p.createElement("div",{className:y,"data-testid":"targeting_section"},this.getLocationSelector(),this.getLocationErrorMsg(),p.createElement("div",{className:z},this.getAgeSelector(),this.getGenderSelector(),this.getKeywordSelector())));}});e.exports=w;},null);
  __d("BoostedPostFlyoutMixin",["AdsAdAccountSelector.react","AdsCurrencySelector.react","AdsPaymentInfo.react","AdsPixelSelector.react","AdsTargetingTogglerSafeMixin","Arbiter","BoostedComponentDialogMode","BoostedComponentDialogStates","BoostedComponentClientEvent","BoostedComponentClientEventType","BoostedPostDialogLabeledRow.react","BoostedComponentsDialogChangeActions","BoostedPostConstants","BoostedPostConstraints","BoostedPostSection.react","BoostedPostDisplaySectionConstants","BoostedPostSpecs","BoostedPostTargetingErrors","BoostedPostLabeledRow.react","AdsTargetingConstants","PromotedPostConstants","React","SearchableEntry","XUINotice.react","XUIGrayText.react","AdsAdblockWarning.react","BoostedPostBudgetSelector.react","BoostedPostDurationSection.react","BoostedPostSelectAudienceSection.react","BoostedPostTargetingAudienceSelector.react","BoostedPostLookalikeCountrySelector.react","BoostedPostTargetingReachBar.react","BoostedPostValidationWarningBox.react","BoostedPostTargetingSection.react","BoostedPrimedDao","BoostedPostLogging","BoostedPostEventType","BoostedPostColumns","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta){var ua={setStateSafe:k.setStateSafe,propTypes:{userID:ba.PropTypes.string.isRequired,pageID:ba.PropTypes.string.isRequired,postID:ba.PropTypes.string,ownerID:ba.PropTypes.string.isRequired,boostedPostSpecs:ba.PropTypes.instanceOf(w).isRequired,boostedPostConstraints:ba.PropTypes.instanceOf(t).isRequired,displaySections:ba.PropTypes.object.isRequired,accountSelectorOptions:ba.PropTypes.object.isRequired,audienceManagerOptions:ba.PropTypes.object.isRequired,audienceInfoOptions:ba.PropTypes.object.isRequired,locationSelectorOptions:ba.PropTypes.object.isRequired,budgetSelectorOptions:ba.PropTypes.object.isRequired,experiments:ba.PropTypes.object.isRequired,validationWarningOptions:ba.PropTypes.shape({initialStoryText:ba.PropTypes.string}).isRequired,targetingErrors:ba.PropTypes.instanceOf(x).isRequired,isEvent:ba.PropTypes.bool,dialogMode:ba.PropTypes.number.isRequired,setCreativeInvalidReason:ba.PropTypes.func,disapprovalReasonMsg:ba.PropTypes.object,updateDialogState:ba.PropTypes.func,onApiReviewAppealRequested:ba.PropTypes.func,conversionPixels:ba.PropTypes.array},componentWillMount:function(){this._log(qa.CLIENT_INITIAL_RENDER_START,{new_value:this.props.boostedPostSpecs.getConfigJSON()});oa.setAccountID(this.props.boostedPostSpecs.getAdAccountID());this._locationSelectorOptions=this.props.locationSelectorOptions;this._locationSelectorOptions.targetingLocations=this._getLocationTokens();},componentDidMount:function(){this._log(qa.CLIENT_INITIAL_RENDER_SUCCESS,{new_value:this.props.boostedPostSpecs.getConfigJSON()});this._maybeUpdateButtonLabel(true);},getInitialState:function(){return {audienceSelected:this.props.boostedPostSpecs.getAudience(),reachEstimates:{minReach:this.props.boostedPostSpecs.getLowerReachEstimate(),maxReach:this.props.boostedPostSpecs.getUpperReachEstimate(),audienceSize:this.props.boostedPostSpecs.getAudienceSize()}};},_getLocationTokens:function(){var va=this.props.locationSelectorOptions.targetingLocations,wa=Object.keys(va),xa={};for(var ya=0;ya<wa.length;ya++){xa[wa[ya]]=[];for(var za=0;za<va[wa[ya]].length;za++){var ab=va[wa[ya]][za];xa[wa[ya]].push(ab.uniqueID?new ca({uniqueID:ab.uniqueID,title:ab.title,subtitle:ab.subtitle}):ab);}}return xa;},_maybeUpdateButtonLabel:function(va){var wa=va?this.props.boostedPostSpecs.getBudgetLabel():'';l.inform(aa.BUDGET_TEXT_CHANGE_FINISH,wa);},_getLoggingData:function(va){var wa=va||{};wa[ra.AD_ACCOUNT_ID]=this.props.boostedPostSpecs.getAdAccountID();wa[ra.PAGE_ID]=this.props.pageID;wa[ra.USER_ID]=parseInt(this.props.userID,10);if(this.props.postID)wa[ra.POST_ID]=this.props.postID;wa[ra.DIALOG_ID]=this.props.ownerID;return wa;},_log:function(va,wa){pa.log(va,this._getLoggingData(wa));},updateBoostedPostSpec:function(va,wa){var xa=r.UPDATE_TARGETING_SPEC,ya={},za=!this.props.audienceManagerOptions.enabled&&this.state.audienceSelected!==z.AUDIENCE.Lookalike;switch(va){case o.UPDATE_AUDIENCE:var ab=parseInt(wa,10);ya={audienceSelected:ab};this.setState(ya);this.props.boostedPostSpecs.setAudience(ab);break;case o.UPDATE_CITIES:var bb=this._getLocationSpecs('cities',wa);ya={cities:bb};this.props.boostedPostSpecs.setLocation(bb,za);break;case o.UPDATE_COUNTRIES:var cb=this._getLocationSpecs('countries',wa);ya={countries:cb};this.props.boostedPostSpecs.setLocation(cb,za);break;case o.UPDATE_REGIONS:var db=this._getLocationSpecs('regions',wa);ya={regions:db};this.props.boostedPostSpecs.setLocation(db,za);break;case o.UPDATE_RADIUS:ya={radius:wa};this.props.boostedPostSpecs.setRadius(wa);break;case o.UPDATE_AGE:ya={age_min:wa.age_min,age_max:wa.age_max};this.props.boostedPostSpecs.setMinAge(wa.age_min);this.props.boostedPostSpecs.setMaxAge(wa.age_max);break;case o.UPDATE_GENDER:ya={gender:wa};this.props.boostedPostSpecs.setGender(wa);break;case o.UPDATE_INTERESTS:var eb=this._getTokens(wa);ya={interests:eb};this.props.boostedPostSpecs.setInterests(eb);break;case o.UPDATE_CURRENCY:xa=r.UPDATE_CURRENCY;this.props.boostedPostSpecs.setCurrency(wa);break;case o.UPDATE_DURATION:xa=r.UPDATE_CAMPAIGN_LENGTH;this.props.boostedPostSpecs.setCampaignLength(wa*86400);break;case o.UPDATE_ACCOUNT:xa=r.UPDATE_ACCOUNT;this.props.boostedPostSpecs.setAdAccountID(wa);break;case o.UPDATE_END_TIME:xa=r.UPDATE_CAMPAIGN_LENGTH;this.props.boostedPostSpecs.setCampaignEndTime(wa);break;case o.UPDATE_LOOKALIKE_COUNTRY:this.props.boostedPostSpecs.setLookalikeCountry(wa);break;case o.UPDATE_PIXEL:this.props.boostedPostSpecs.setPixelID(wa);break;default:break;}var fb=p.getEventUpdateType(va);if(fb=='targeting'){var gb={};gb[ra.CUSTOM_TARGETING_RAW]=ya;this._log(qa.TARGETING_CHANGED,gb);}else if(fb=='schedule')this._log(qa.SCHEDULE_CHANGED);this._triggerBudgetSelectorUpdate(xa);},_triggerBudgetSelectorUpdate:function(va){if(this.props.dialogMode===m.EDIT)return;this.refs.budgetSelector.fetchNewBudgets(va,this.props.boostedPostSpecs.getConfig(),this.props.boostedPostSpecs.getBudget());},_onUpdateAudienceManagerTargeting:function(){var va={};va[ra.CUSTOM_TARGETING_RAW]={audienceID:this.props.boostedPostSpecs.getLastAudienceID(),audienceSpec:this.props.boostedPostSpecs.getTargetingSpec()};this._log(qa.TARGETING_CHANGED,va);this._triggerBudgetSelectorUpdate(r.UPDATE_TARGETING_SPEC);},onUpdateBudget:function(va,wa){var xa=this.state.reachEstimates;if(!wa.selectedBudgetInfo)wa.selectedBudgetInfo={budget_value:0,budget_label:"0",reach_lower:0,reach_upper:0};this.props.boostedPostSpecs.setBudgetInfo(wa.selectedBudgetInfo);if(wa.fromDirectUserAction||wa.mode==r.UPDATE_CUSTOM_BUDGET)this._log(qa.BUDGET_CHANGED);xa.minReach=wa.selectedBudgetInfo.reach_lower;xa.maxReach=wa.selectedBudgetInfo.reach_upper;if(wa.currency)this.props.boostedPostSpecs.setCurrency(wa.currency);if(wa.audienceSize){xa.audienceSize=wa.audienceSize;this.props.boostedPostSpecs.setAudienceSize(wa.audienceSize);}var ya={errorMsg:wa.errorMsg,reachEstimates:xa};if(wa.targetingErrors)this.props.targetingErrors.update(wa.targetingErrors);this.setStateSafe(ya);if(!wa.errorMsg&&(!this.props.targetingErrors||!this.props.targetingErrors.hasErrors())){this.disableSaveButton(false);this._maybeUpdateButtonLabel(true);}else{this.disableSaveButton(true);this._maybeUpdateButtonLabel(false);}if(wa.mode==='update_account')this.props.boostedPostSpecs.notifyAccountChangeFinished();},_getLocationSpecs:function(va,wa){var xa={},ya=[],za=wa.length;if(za===0)return null;for(var ab=0;ab<za;ab++)if(va==='countries'){ya.push(wa[ab].getUniqueID());}else if(va==='cities'){var bb={key:wa[ab].getUniqueID(),name:wa[ab].getTitle()},cb=this.props.boostedPostSpecs.getRadius();if(cb)bb.radius=cb;ya.push(bb);}else ya.push({key:wa[ab].getUniqueID(),name:wa[ab].getTitle()});xa[va]=ya;return xa;},_getTokens:function(va){var wa={},xa=va.length;for(var ya=0;ya<xa;ya++)wa[va[ya].getUniqueID()]=va[ya].getTitle();return wa;},_onPostRejected:function(va){if(this.props.setCreativeInvalidReason){this.props.setCreativeInvalidReason(va);return;}},disableSaveButton:function(va){if(this.props.updateDialogState){var wa=va?n.DISABLED:n.ENABLED;this.props.updateDialogState(wa);return;}l.inform(aa.SAVE_BUTTON_DISABLE,va);l.inform(aa.ALLOW_SUBMIT,{ownerFlyoutID:this.props.ownerID,allow_submit:!va});},getAudienceSelectorRow:function(){if(this.props.experiments.ncpp_new_pages&&(!this.props.boostedPostSpecs.isPrivacyGated()||this.props.audienceManagerOptions.enabled))return null;var va=this.props.audienceInfoOptions,wa=ba.createElement(ja,{selectedAudience:this.state.audienceSelected,showCustomAudience:va.showCustomAudience,showLookalikeAudience:va.showLookalikeAudience,showEngagedAudience:va.showEngagedAudience,isAlreadyTargeted:this.props.boostedPostSpecs.isPrivacyGated(),isInComposer:va.isInComposer,onDataUpdate:this.updateBoostedPostSpec,isDisabled:this.props.experiments.ncpp_new_pages,isDropdown:this.props.experiments.audience_dropdown}),xa=this.props.experiments.question_headers?this.config.labels.newAudienceSection:this.config.labels.audienceSection;return (ba.createElement(q,{label:xa,redesign:this.props.experiments.question_headers},wa));},getTargetingSection:function(){if(this.props.boostedPostSpecs.isPrivacyGated()||this.state.audienceSelected===z.AUDIENCE.Lookalike||this.state.audienceSelected===z.AUDIENCE.Engaged)return null;var va=this.props.boostedPostConstraints,wa={targetingLevel:this.props.boostedPostSpecs.getTargetingLevel(),radius:this.props.boostedPostSpecs.getRadius(),age:this.props.boostedPostSpecs.getAgeRange(),gender:this.props.boostedPostSpecs.getGender(),keywords:this.props.boostedPostSpecs.getTokenizedInterests()};return (ba.createElement(na,{adAccountID:this.props.boostedPostSpecs.getAdAccountID(),onDataUpdate:this.updateBoostedPostSpec,audienceSelected:this.state.audienceSelected,initialData:wa,ageSelectorOptions:va.getAgeConstraints(),locationSelectorOptions:this._locationSelectorOptions,locationErrorMsg:this.props.targetingErrors?this.props.targetingErrors.getLocationErrorMessage():null,audienceManagerEnabled:this.props.audienceManagerOptions.enabled}));},getAudienceManagerSection:function(){var va=this.props.audienceManagerOptions;if(this.props.boostedPostSpecs.isPrivacyGated()||!va.enabled||this.state.audienceSelected===z.AUDIENCE.Lookalike||this.state.audienceSelected===z.AUDIENCE.Engaged)return null;var wa=((this.state.audienceSelected===z.AUDIENCE.Fans||this.state.audienceSelected===z.AUDIENCE.Grouper?"hidden_elem":'')+(' '+"_3ja")+(this.props.experiments.ncpp_new_pages?' '+"_3g4p":'')),xa=ba.createElement("div",{className:wa},ba.createElement(ia,{adAccountID:this.props.boostedPostSpecs.getAdAccountID(),specs:this.props.boostedPostSpecs,hasLastAudience:va.hasLastAudience,lastAudienceID:this.props.boostedPostSpecs.getLastAudienceID(),defaultCountries:va.defaultCountries,defaultSpec:va.defaultSpec,showFeedbackThrottle:this.props.experiments.feedback_throttle,onTargetingChange:this._onUpdateAudienceManagerTargeting}));if(this.props.experiments.ncpp_new_pages)xa=ba.createElement(q,{label:this.config.labels.audienceSection},xa);return xa;},getBudgetSelector:function(){var va=this._getSelectedAdAccount(),wa=ba.createElement(ga,{pageID:this.props.pageID,postID:this.props.postID,initialBudgets:this.props.budgetSelectorOptions.initialBudgets,defaultBudget:this.props.budgetSelectorOptions.defaultBudget,constraints:this.props.boostedPostConstraints,currency:this.props.boostedPostSpecs.getCurrency(),campaignLength:this.props.boostedPostSpecs.getCampaignLengthInDays(),boostedPostConfig:this.props.boostedPostSpecs.getConfig(),onDataUpdate:this.onUpdateBudget,disableSaveButton:this.disableSaveButton,showWarnbox:!va.canUpdateCurrency,ref:"budgetSelector",usePillButton:this.props.experiments.use_pill_budget_button,unusualHighBudgetThreshold:this.props.budgetSelectorOptions.unusualHighBudgetThreshold}),xa=this.props.experiments.question_headers?this.config.labels.newBudgetSection:this.config.labels.maxBudgetSection;if(this.props.experiments.use_pill_budget_button)return (ba.createElement(q,{label:xa,redesign:this.props.experiments.question_headers},wa));var ya=ba.createElement(y,{label:this.config.labels.maxBudgetSection},wa);if(this.props.experiments.question_headers)ya=ba.createElement(q,{label:xa,redesign:true},ya);return ya;},getTargetingReachBar:function(){if(this.state.errorMsg)return (ba.createElement(da,{className:"_1vb5",use:"warn"},this.state.errorMsg));var va="Est. People Reached";if(this.props.experiments.use_pill_budget_button)return (ba.createElement(q,{label:va,className:"mtm"},ba.createElement(la,{minReach:this.state.reachEstimates.minReach,maxReach:this.state.reachEstimates.maxReach,audienceSize:this.state.reachEstimates.audienceSize,usePillButton:this.props.experiments.use_pill_budget_button,logData:this._getLoggingData({budget:this.props.boostedPostSpecs.getBudget(),currency:this.props.boostedPostSpecs.getCurrency()})})));return (ba.createElement(y,{className:"mtm",label:va},ba.createElement(la,{minReach:this.state.reachEstimates.minReach,maxReach:this.state.reachEstimates.maxReach,audienceSize:this.state.reachEstimates.audienceSize,audienceOption:this.state.audienceSelected,logData:this._getLoggingData({budget:this.props.boostedPostSpecs.getBudget(),currency:this.props.boostedPostSpecs.getCurrency()})})));},getCurrencySelector:function(){var va=this.props.displaySections,wa=this._getSelectedAdAccount();if(!wa.canUpdateCurrency)return null;return (ba.createElement(u,{border:true},ba.createElement(y,{label:this.config.labels.currencySection},ba.createElement(h,{selectedCurrency:this.props.boostedPostSpecs.getCurrency(),onDataUpdate:this.updateBoostedPostSpec,canShowWarningGk:va[v.CAN_SHOW_CURRENCY_SWAP_WARNING]}))));},getDurationSelector:function(){return (ba.createElement(u,{border:true},ba.createElement(y,{label:this.config.labels.durationSection},ba.createElement(ha,{budget:this.props.boostedPostSpecs.getBudget(),currency:this.props.boostedPostSpecs.getCurrency(),campaignLength:this.props.boostedPostSpecs.getCampaignLengthInDays(),initialValue:this.props.boostedPostSpecs.getCampaignLengthInDays(),maxNumDays:s.MAX_DURATION_IN_DAYS,onDataUpdate:this.updateBoostedPostSpec}))));},getAccountSelector:function(){var va=this.props.accountSelectorOptions.accounts;if(Object.keys(va).length<=1)return null;return (ba.createElement(u,{border:true},ba.createElement(y,{label:this.config.labels.accountSection},ba.createElement(g,{accounts:va,selectedAccount:this.props.boostedPostSpecs.getAdAccountID(),onDataUpdate:this.updateBoostedPostSpec}))));},getPaymentInfoSection:function(){var va=this.props.accountSelectorOptions.accounts,wa=va[this.props.boostedPostSpecs.getAdAccountID()];if(!wa.paymentInfo.hasFundingSource)return null;return (ba.createElement(u,{border:true},ba.createElement(y,{label:this.config.labels.paymentSection},ba.createElement(i,{adAccountInfo:wa.paymentInfo}))));},getAudienceManagerErrorMsg:function(){if(this.props.boostedPostSpecs.isPrivacyGated()||!this.props.audienceManagerOptions.enabled||!this.props.targetingErrors.hasErrors()||this.state.audienceSelected===z.AUDIENCE.Lookalike||this.state.audienceSelected===z.AUDIENCE.Engaged)return null;var va=(("mhl")+(' '+"mtm"));return (ba.createElement(da,{className:va,use:"warn"},this.props.targetingErrors.getErrorToRender()));},getLookalikeAudienceSection:function(){var va=this._locationSelectorOptions;if(this.props.boostedPostSpecs.isPrivacyGated()||!va.defaultLookalikeCountry)return null;var wa=((this.state.audienceSelected!==z.AUDIENCE.Lookalike?"hidden_elem":'')),xa=va.lookalikeCountries,ya=ba.createElement(ka,{defaultCountry:va.defaultLookalikeCountry,countries:va.lookalikeCountries,onDataUpdate:this.updateBoostedPostSpec});if(xa&&Object.keys(xa).length===1)for(var za in xa){ya=ba.createElement(ea,{shade:"medium"},xa[za]);break;}return (ba.createElement(y,{className:wa,label:this.config.labels.lookalikeSection},ya));},_getValidationWarning:function(){if(!this.props.validationWarningOptions.initialStoryText)return null;return (ba.createElement(ma,{pageID:this.props.pageID,postID:this.props.postID,initialStoryText:this.props.validationWarningOptions.initialStoryText,adAccountID:this.props.boostedPostSpecs.getAdAccountID(),onPostRejected:this._onPostRejected,onApiReviewAppealRequested:this.props.onApiReviewAppealRequested,hasTargetingErrors:this.props.targetingErrors.hasErrors(),disapprovalReasonMsg:this.props.disapprovalReasonMsg}));},getHeader:function(){return (ba.createElement("div",null,this._getValidationWarning()));},getAdsAdblockWarning:function(){return (ba.createElement("div",{className:"mhm"},ba.createElement(fa,null)));},getConversionPixelSection:function(){if(!this.props.experiments.show_pixel_selector||!this.props.conversionPixels)return null;return (ba.createElement(u,{border:true},ba.createElement(y,{label:this.config.labels.pixelSection,className:"_54c6"},ba.createElement(j,{selectedPixelID:this.props.boostedPostSpecs.getPixelID(),pixels:this.props.conversionPixels,onDataUpdate:this.updateBoostedPostSpec}))));},render:function(){return (ba.createElement("div",{"data-testid":this.getTestID()},this.getAdsAdblockWarning(),this.getHeader(),ba.createElement(u,null,this.getAudienceSelectorRow(),this.getTargetingSection(),this.getAudienceManagerSection(),this.getAudienceManagerErrorMsg(),this.getLookalikeAudienceSection()),this.getConversionPixelSection(),ba.createElement(u,{border:true},this.getBudgetSelector(),this.getTargetingReachBar()),this.getCurrencySelector(),this.getDurationSelector(),this.getAccountSelector(),this.getPaymentInfoSection()));},_getSelectedAdAccount:function(){return this.props.accountSelectorOptions.accounts[this.props.boostedPostSpecs.getAdAccountID()];}};e.exports=ua;},null);
  __d("BoostedPostCreateFlyout.react",["BoostedComponentTestElement","BoostedPostFlyoutMixin","React","fbt"],function(a,b,c,d,e,f,g,h,i,j){'use strict';var k=i.createClass({displayName:"BoostedPostCreateFlyout",mixins:[h],getTestID:function(){return g.CREATE_DIALOG_RHS;},config:{labels:{audienceSection:"Audience",newAudienceSection:"Who do you want to reach?",lookalikeSection:"Country",pixelSection:"Conversion Pixel",maxBudgetSection:"Maximum Budget",newBudgetSection:"How much do you want to spend?",currencySection:"Currency",durationSection:"Duration",accountSection:"Account",paymentSection:"Payment"}}});e.exports=k;},null);
  __d("AdsHscrollAdPreviewsBar.react",["cx","fbt","joinClasses","AdsPreviewApiFormats","BoostedComponentTestElement","React","TabBar.react","TabBarItem.react"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=l.PropTypes,p="Desktop News Feed",q="Mobile News Feed",r="Right Column",s=l.createClass({displayName:"AdsHscrollAdPreviewsBar",propTypes:{selected:o.string.isRequired,onSelect:o.func,hasRHC:o.bool},getDefaultProps:function(){return {hasRHC:true};},render:function(){var t=null;if(this.props.hasRHC)t=l.createElement(n,{"data-testid":k.RHS_PREVIEW_TAB,className:"_1riu",key:j.RIGHT_COLUMN_STANDARD},r);return (l.createElement("div",l.__spread({},this.props,{className:i(this.props.className,(("_1riv")+(!this.props.hasRHC?' '+"_1rix":'')+(this.props.hasRHC?' '+"_1riy":'')))}),l.createElement(m,{onTabClick:this.props.onSelect,defaultActiveTabKey:this.props.selected},l.createElement(n,{"data-testid":k.DESKTOP_PREVIEW_TAB,className:"_1riu",key:j.DESKTOP_FEED_STANDARD},p),l.createElement(n,{"data-testid":k.MOBILE_PREVIEW_TAB,className:"_1riu",key:j.MOBILE_FEED_STANDARD},q),t),l.createElement("div",{className:(("_1riz")+(this.props.selected===j.DESKTOP_FEED_STANDARD?' '+"_1ri-":'')+(this.props.selected===j.MOBILE_FEED_STANDARD?' '+"_1ri_":'')+(this.props.selected===j.RIGHT_COLUMN_STANDARD?' '+"_1rj0":''))})));}});e.exports=s;},null);
  __d("AdPreview.react",["DOM","React","UIPagelet","AdsPreviewApiFormats","WebApiApplication","XUISpinner.react","cx","Arbiter","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=h.PropTypes,q=h.createClass({displayName:"AdPreview",propTypes:{adAccountID:p.string.isRequired,apiFormat:p.string.isRequired,creative:p.object.isRequired,linkShareData:p.object,onValidate:p.func,appID:p.string,borderStyle:p.string,bundle:p.bool,productItemIDs:p.array},getDefaultProps:function(){return {appID:k.getClientID()};},getInitialState:function(){return {isError:false,isLoading:false,errorMessage:null};},componentDidMount:function(){var r=this.props;this._loadPreview(r.adAccountID,r.creative,r.linkShareData,r.apiFormat,r.appID,r.borderStyle,r.productItemIDs);},componentWillUnmount:function(){this._currentRequestKey=null;this._pagelet&&this._pagelet.cancel();this._pagelet=null;this._cleanUpOldPagelet();g.empty(this._getPageletDOMNode());},componentWillReceiveProps:function(r){this._loadPreview(r.adAccountID,r.creative,r.linkShareData,r.apiFormat,r.appID,r.borderStyle,r.productItemIDs);},render:function(){var r=!this.state.isError,s=this.state.isError&&!this.state.isLoading,t=this.state.errorMessage?this.state.errorMessage:"Unable to display a preview for this ad.";return (h.createElement("div",{className:(("_2hm6")+(this.state.isLoading?' '+"_2hm7":''))},h.createElement("div",{className:this.props.className},h.createElement("div",{className:"_3akw"},h.createElement(l,{size:"large",className:this.state.isLoading?"":"hidden_elem"})),h.createElement("div",{className:s?"":"hidden_elem"},t),h.createElement("div",{ref:"pageletContainer",className:r?"":"hidden_elem"}))));},_loadPreview:function(r,s,t,u,v,w,x){var y=this._getRequestKey(r,s,u==j.RIGHT_COLUMN_STANDARD?(void 0):t,u,v,w,x);if(y===this._currentRequestKey)return;this._pagelet&&this._pagelet.cancel();this._pagelet=null;this._currentRequestKey=y;if(u!==this.props.apiFormat){this._cleanUpOldPagelet();g.empty(this._getPageletDOMNode());}if(this.props.onValidate){var z=this.props.onValidate(s,u);if(z.length){var aa=null,ba=z.filter(function(ca){return ca.fieldName===q.PREVIEW_MESSAGE_FIELD_NAME;});if(ba.length)aa=ba[0].message;this.setState({isError:true,isLoading:false,errorMessage:aa});return;}}this.setState({isError:false,isLoading:true,errorMessage:null});this._cleanUpOldPagelet();if(!v)v=k.getClientID();this._pagelet=i.loadFromEndpoint('AdPreviewPageletController',this._getPageletDOMNode(),{adaccountid:r,appid:v,creative:s,linksharedata:u==j.RIGHT_COLUMN_STANDARD?(void 0):t,format:u,borderstyle:w,productitemids:x},{append:false,displayCallback:this._onPageletSuccess,errorHandler:this._onPageletFail,transportErrorHandler:this._onPageletFail,bundle:this.props.bundle!==(void 0)?this.props.bundle:true});},_cleanUpOldPagelet:function(){var r=this.refs.pageletContainer.getDOMNode();if(!r.querySelector)return;var s=r.querySelectorAll('.UFILikeLink, .UFIList, .UFIBlingBox');for(var t=0,u=s.length;t<u;t++)h.unmountComponentAtNode(s[t].parentNode);},_getPageletDOMNode:function(){return this.refs.pageletContainer.getDOMNode();},_getRequestKey:function(r,s,t,u,v,w,x){return r+':'+u+':'+JSON.stringify(s)+':'+JSON.stringify(t)+':'+v+':'+w+':'+JSON.stringify(x);},_onPageletSuccess:function(r){this._pagelet=null;this.setState({isError:false,isLoading:false});r();n.inform("AdPreview/PageletLoadSuccess",{component:this});},_onPageletFail:function(r){this._pagelet=null;this.setState({isError:true,isLoading:false});}});q.PREVIEW_MESSAGE_FIELD_NAME='PREVIEW_MESSAGE_FIELD_NAME';e.exports=q;},null);
  __d("AdsHscrollAdPreviewsUnit.react",["cx","AdsHscrollAdPreviewsBar.react","AdPreview.react","AdsPreviewApiFormats","Arbiter","BoostedComponentTestElement","React","SubscriptionsHandler","XUICard.react","XUICardSection.react"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=m.PropTypes,r=m.createClass({displayName:"AdsHscrollAdPreviewsUnit",propTypes:{pageID:q.string.isRequired,adAccountID:q.string.isRequired,creative:q.object.isRequired,linkShareData:q.object,appID:q.string,height:q.number,hasRHC:q.bool},getInitialState:function(){return {bodyHeight:Math.max(this.props.height-46,50),selected:j.DESKTOP_FEED_STANDARD};},getDefaultProps:function(){return {hasRHC:true,height:464};},componentWillMount:function(){this._subscriptionsHandler=new n();this._subscriptionsHandler.addSubscriptions(k.subscribe('AdPreview/PageletLoadSuccess',function(event,s){var t=s.component.getDOMNode().scrollHeight;if(t>this.state.bodyHeight)this.setState({bodyHeight:t});}.bind(this)));},componentWillUnmount:function(){this._subscriptionsHandler.release();},_onClick:function(s){this.setState({selected:s});},render:function(){return (m.createElement(o,{"data-testid":l.PREVIEW_UNIT,className:"_i40"},m.createElement(p,null,m.createElement(h,{selected:this.state.selected,onSelect:this._onClick,hasRHC:this.props.hasRHC})),m.createElement(p,{className:"_i41"},m.createElement("div",{style:{height:this.state.bodyHeight+'px'},className:(("_i42")+(this.state.selected===j.DESKTOP_FEED_STANDARD?' '+"_1ri-":'')+(this.state.selected===j.MOBILE_FEED_STANDARD?' '+"_1ri_":'')+(this.state.selected===j.RIGHT_COLUMN_STANDARD?' '+"_1rj0":''))},this.renderPreviewUnit(j.DESKTOP_FEED_STANDARD),this.renderPreviewUnit(j.MOBILE_FEED_STANDARD),this.renderPreviewUnit(j.RIGHT_COLUMN_STANDARD)))));},renderPreviewUnit:function(s){if(s===j.RIGHT_COLUMN_STANDARD&&!this.props.hasRHC)return;return (m.createElement("div",{className:"_i46"},m.createElement("div",{className:"_i47"},m.createElement(i,{adAccountID:this.props.adAccountID,apiFormat:s,creative:this.props.creative,appID:this.props.appID,linkShareData:this.props.linkShareData}))));}});e.exports=r;},null);
  __d("BoostedPostFooter.react",["Arbiter","BoostedComponentDialogStates","BoostedComponentFooter.react","BoostedPostActionMenu.react","BoostedPostStatusToAction","BoostedPostTestElements","PromotedPostConstants","React","emptyFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=n.createClass({displayName:"BoostedPostFooter",propTypes:{status:n.PropTypes.string.isRequired,pageID:n.PropTypes.string.isRequired,postID:n.PropTypes.string,accountID:n.PropTypes.string.isRequired,ownerFlyoutID:n.PropTypes.string.isRequired,buttonID:n.PropTypes.string.isRequired,contactFormURI:n.PropTypes.string,experiments:n.PropTypes.object.isRequired,onSubmit:n.PropTypes.func,dialogState:n.PropTypes.number},getDefaultProps:function(){return {dialogState:h.ENABLED,onSubmit:o};},getInitialState:function(){return {dialogState:this.props.dialogState,budgetLabel:''};},componentDidMount:function(){g.subscribe(m.ENTER_LOADING_STATE,function(q,r){if(this.props.ownerFlyoutID===r)this.enterLoadingState();}.bind(this));g.subscribe(m.EXIT_LOADING_STATE,function(q,r){if(this.props.ownerFlyoutID===r)this.enableComponent();}.bind(this));g.subscribe(m.ALLOW_SUBMIT,function(q,r){if(this.props.ownerFlyoutID===r.ownerFlyoutID)if(r.allow_submit){this.enableComponent();}else this.disableComponent();}.bind(this));g.subscribe(m.BUDGET_TEXT_CHANGE_FINISH,function(q,r){if(this.props.experiments.boost_for)this.setState({budgetLabel:r});}.bind(this));},componentWillReceiveProps:function(q){var r=q.dialogState;if(r!==(void 0)&&r!==this.state.dialogState)this.setState({dialogState:q.dialogState});},disableComponent:function(){this.setState({dialogState:h.DISABLED});},enableComponent:function(){this.setState({dialogState:h.ENABLED});},enterLoadingState:function(){this.setState({dialogState:h.LOADING});},onPrimaryButtonClick:function(){var q=k.getPrimaryAction(this.props.status);this.props.onSubmit(q);if(k.isAsyncAction(q))this.enterLoadingState();g.inform(m.SAVE_BUTTON_CLICK,this.props.ownerFlyoutID);},onSecondaryButtonClick:function(){var q=k.getSecondaryAction(this.props.status);this.props.onSubmit(q);g.inform(m.CANCEL_BUTTON_CLICK,this.props.ownerFlyoutID);},onCloseButtonClick:function(){var q=k.getCloseButtonAction();this.props.onSubmit(q);g.inform(m.CLOSE_DIALOG,this.props.ownerFlyoutID);},getActionMenu:function(){return n.createElement(j,n.__spread({},this.props));},getButtonSpecs:function(){var q=this.props.status,r=[];if(k.isPrimaryActionAvailable(q))r.push({'data-testid':l.DIALOG_BOOST_BUTTON,label:k.getPrimaryActionLabel(q,this.state.budgetLabel),use:'confirm',onClick:this.onPrimaryButtonClick});if(k.isSecondaryActionAvailable(q))r.push({label:k.getSecondaryActionLabel(q),use:'default',onClick:this.onSecondaryButtonClick});if(k.shouldAddCloseButton(q))r.push({label:k.getCloseButtonActionLabel(),use:'default',onClick:this.onCloseButtonClick});return r;},render:function(){return (n.createElement(i,{buttonSpecs:this.getButtonSpecs(),actionMenu:this.getActionMenu(),dialogState:this.state.dialogState}));}});e.exports=p;},null);
  __d("XBoostedPostHideIntroBannerControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/ads\/ajax\/boosted_post\/hide_intro_banner\/",{});},null);
  __d("BoostedPostPizzaTracker.react",["BoostedComponentSafeMixin","BoostedPostConstants","BoostedPostHeaderTypes","Grid.react","Image.react","React","ServerBoostedPostConstants","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=j.GridItem,q=l.PropTypes,r=l.createClass({displayName:"BoostedPostPizzaTracker",mixins:[g],propTypes:{displaySection:l.PropTypes.string.isRequired,pageID:l.PropTypes.string.isRequired,headerType:q.string.isRequired,timeSinceCreate:q.number.isRequired,userID:l.PropTypes.string.isRequired},_getPendingText:function(){var s=null;if(this.props.timeSinceCreate<m.EXPECTED_AD_REVIEW_TIME){s=o._("We're reviewing your post to make sure it meets our {ads_guideline}. This usually takes less than 15 minutes.",[o.param("ads_guideline",h.ADS_GUIDELINE)]);}else s=o._("We're reviewing your post to make sure it meets our {ads_guideline}. You won't be charged until it's approved.",[o.param("ads_guideline",h.ADS_GUIDELINE)]);return s;},_getActiveText:function(){return ("Your post is approved. More people will start seeing it in their News Feeds soon.");},_getText:function(){var s=null;if(this.props.headerType===i.PENDING_PIZZA_TRACKER){s=this._getPendingText();}else if(this.props.headerType===i.ACTIVE_PIZZA_TRACKER)s=this._getActiveText();return s;},_getStepper:function(){var s=this.props.headerType===i.ACTIVE_PIZZA_TRACKER,t=this.props.headerType===i.PENDING_PIZZA_TRACKER,u='/images/ads/boosted_post/pizza_tracker_pending.png';if(s)u='/images/ads/boosted_post/pizza_tracker_approved.png';return (l.createElement("div",null,l.createElement(k,{src:u,className:"_29-p"}),l.createElement(j,{cols:3,spacing:"phl",alignh:"center",className:"_29-o"},l.createElement(p,{className:"_484e"},h.ADS_STATUS_LABEL.PLACED),l.createElement(p,{className:(("_484e")+(t?' '+"_29-q":''))},h.ADS_STATUS_LABEL.REVIEW),l.createElement(p,{className:(("_484e")+(s?' '+"_29-q":''))},h.ADS_STATUS_LABEL.APPROVED))));},_render:function(){return (l.createElement("div",{className:"_5tpg"},l.createElement("div",{className:"_5tph"},this._getText()),this._getStepper()));}});e.exports=r;},null);
  __d("BoostedPostHeader.react",["Arbiter","AsyncRequest","BoostedComponentSafeMixin","BoostedPostHeaderTypes","BoostedPostStatus","BoostedPostTestElements","DOMContainer.react","Link.react","PromotedPostConstants","React","XBoostedPostHideIntroBannerControllerURIBuilder","XUIButton.react","XUINotice.react","XUIText.react","BoostedPostPizzaTracker.react","cx","fbt","invariant","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){var z=p.createClass({displayName:"BoostedPostHeader",mixins:[i],propTypes:{pageID:p.PropTypes.string.isRequired,userID:p.PropTypes.string,postID:p.PropTypes.string,headerType:p.PropTypes.string.isRequired,options:p.PropTypes.shape({href:p.PropTypes.string,alertText:p.PropTypes.object,friendsWhoBoostedPosts:p.PropTypes.number,showPizzaTracker:p.PropTypes.bool,underTextPolicyReview:p.PropTypes.bool,timeSinceCreate:p.PropTypes.number}),ownerFlyoutID:p.PropTypes.string.isRequired,displaySection:p.PropTypes.string},getInitialState:function(){return {headerShown:true};},_hasHeader:function(){switch(this.props.headerType){case j.NONE:return false;case j.CREATE:case j.NEW_USER_CREATE:case j.SCHEDULED_POST_UNIT:case k.PAUSED:case k.PENDING_FUNDING_SOURCE:case k.EXTENDABLE:case j.NO_REMAINING_BUDGET:case j.CLOSE_TO_SPEND_LIMIT_NONE_PREPAY:case j.REJECTED:case j.ERROR:case j.MODIFIED_EXTERNALLY:case j.ACTIVE_PIZZA_TRACKER:case j.PENDING_PIZZA_TRACKER:return true;default:return false;}},_getHeaderType:function(){if(this.props.headerType===k.ERROR||this.props.headerType===j.REJECTED||this.props.headerType===j.ERROR||this.props.headerType===k.REJECTED||this.props.headerType===k.PENDING_FUNDING_SOURCE)return 'warn';return 'notify';},_getHeaderContent:function(){if(!this._hasHeader())return null;var aa=y('pls',"_4z2z");switch(this.props.headerType){case j.CREATE:return (p.createElement("div",null,p.createElement(t,{weight:"bold"},"Boost your post to reach more people."),p.createElement(n,{className:aa,target:"_blank",href:this.props.options.href},"Learn more"),"."));case j.NEW_USER_CREATE:return (p.createElement("div",{"data-testid":l.DIALOG_UPSELL_HEADER},p.createElement(t,{"data-testid":l.DIALOG_UPSELL_HEADER_CONTENT,weight:"bold"},w._("{friendCount} of your friends have boosted a post to reach more people.",[w.param("friendCount",this.props.options.numFriendsWhoBoostedPosts)])),p.createElement(n,{className:aa,target:"_blank",href:this.props.options.href},"Learn more"),"."));case j.SCHEDULED_POST_UNIT:return (p.createElement("div",null,"If you choose to boost a scheduled post, your post will be boosted at the time that it is published."));case k.PAUSED:return (p.createElement("div",null,w._("Your post is still visible, but you aren't boosting it. {link to resume boost} to reach more people.",[w.param("link to resume boost",p.createElement(n,{className:"_4z2z",onClick:this._resumeBoost},"Resume your boost"))])));case k.PENDING_FUNDING_SOURCE:return (p.createElement("div",null,w._("Your post is still visible, but you haven't paid to boost it yet. {link to add payment method} to boost it now.",[w.param("link to add payment method",p.createElement(n,{className:"_4z2z",onClick:this._addPaymentMethod},"Add a payment method"))])));case j.CLOSE_TO_SPEND_LIMIT_NONE_PREPAY:return (p.createElement("div",null,w._("You're close to your account spend limit and may not reach as many people as you might like. {link to spend limit} now to get the most from your boosted post.",[w.param("link to spend limit",p.createElement(n,{href:this.props.options.href,target:"_blank"},"Increase your limit in Ads Manager"))])));case j.NO_REMAINING_BUDGET:return (p.createElement("div",null,"Your boost has exhausted its budget. Increase your budget to reach more people."));case j.EXTENDABLE:return (p.createElement("div",null,"Your boost has finished, but you can increase the budget to reach more people."));case j.REJECTED:if(!this.props.options.alertText){return (p.createElement("div",null,p.createElement(t,{size:"small"},p.createElement("div",{className:"mbm"},"Your boost was not approved. It will still show in the news feeds of many of the people who like your Page, but it won't be boosted."),w._("If you're boosting a post, make sure that no more than 20\u0025 of your image is covered by text. {learn more} in the Help Center.",[w.param("learn more",p.createElement(n,{href:"/help/468870969814641/",target:"_blank"},"Learn more"))])),this._getRetargetButton()));}else return (p.createElement("div",null,p.createElement(t,{size:"small"},p.createElement(m,null,this.props.options.alertText)),this._getRetargetButton()));break;case j.ERROR:return (p.createElement("div",null,p.createElement(t,{size:"small"},w._("Something went wrong and your post wasn't boosted. We're sorry for any inconvenience this may have caused and will send you an email notification if we're able to resolve the issue. Remember: since you've published this post already, people who like your Page or visit it will continue to see the post. {delete text}",[w.param("delete text",this._getErrorActionLink())]))));case j.MODIFIED_EXTERNALLY:return (p.createElement("div",null,w._("You've already edited this in Ads Manager. Please {link to ads manager} to modify this campaign.",[w.param("link to ads manager",p.createElement(n,{className:"_4z2z",href:this.props.options.href,target:"_blank"},"return to Ads Manager"))])));case j.ACTIVE_PIZZA_TRACKER:case j.PENDING_PIZZA_TRACKER:return (p.createElement(u,{displaySection:this.props.displaySection,pageID:this.props.pageID,headerType:this.props.headerType,timeSinceCreate:this.props.options.timeSinceCreate,userID:this.props.userID}));default:x(false);}},_retarget:function(){g.inform(o.RETARGET,this.props.ownerFlyoutID);},_getRetargetButton:function(){if(!this.props.options.canRetarget)return null;var aa="Fix Targeting";return (p.createElement("div",{className:"_5ivd"},p.createElement(t,{size:"small"},"You may also choose to fix your targeting now to meet our guidelines."),p.createElement("div",{className:"_5ivc"},p.createElement("div",{className:"_5m0w"}),p.createElement(r,{className:"fbBoostedPostRetargetButton",onClick:this._retarget,label:aa}))));},_deleteAd:function(){g.inform(o.DELETE,this.props.ownerFlyoutID);},_getErrorActionLink:function(){return (w._("If you'd like to try again later, you'll need to {delete your post} first.",[w.param("delete your post",p.createElement(n,{onClick:this._deleteAd},"Delete your boost"))]));},_onDismiss:function(){if(this.props.headerType===j.CREATE)new h().setURI(new q().getURI()).setData({page_id:this.props.pageID}).setMethod('POST').send();this.setState({headerShown:false});},_getDismissFunction:function(){switch(this.props.headerType){case j.CREATE:case j.NEW_USER_CREATE:return this._onDismiss;default:return null;}},_resumeBoost:function(){g.inform(o.RESUME,this.props.ownerFlyoutID);},_addPaymentMethod:function(){g.inform(o.ADD_PAYMENT,this.props.ownerFlyoutID);},_render:function(){if(!this._hasHeader())return p.createElement("div",null);var aa=(("mbs")+(' '+"_4-u2")+(!this.state.headerShown?' '+"hidden_elem":''));return (p.createElement("div",{className:aa},p.createElement(s,{className:"_3ns",use:this._getHeaderType(),onDismiss:this._getDismissFunction()},this._getHeaderContent())));}});e.exports=z;},null);
  __d("BoostedPostDialogMixin",["AdsHscrollAdPreviewsUnit.react","BoostedComponentDialogMixin","BoostedComponentDialogMode","BoostedComponentDialogStates","BoostedComponentUnit","BoostedPostApiAppealRequestDialog.react","BoostedPostConstants","BoostedPostCreateFlyout.react","BoostedPostDisplaySectionConstants","BoostedPostFooter.react","BoostedPostHeader.react","BoostedPostPlacementOptions","BoostedPostStrings","BoostedPostUpdateStatusActions","DOM","React","XUINotice.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';var y={mixins:[h],getDialogTitle:function(){switch(this._config.getContextStore().getPlacement()){case r.EVENT_UPSELL:return s.EVENT_BUTTON_LABEL;default:return s.DEFAULT_BUTTON_LABEL;}},getLeftColumn:function(){return (v.createElement("div",null,this._getHeader(),this._getNotice(),this._getPreviews()));},getRightColumn:function(){var z=this._config,aa=z.getUnitOptions(),ba=z.getContextStore();return (v.createElement(n,{userID:ba.getUserID(),pageID:ba.getPageID(),postID:ba.getPostID(),ownerID:this.props.buttonID,boostedPostSpecs:z.getSpecs(),boostedPostConstraints:z.getConstraints(),displaySections:aa[k.DISPLAY_SECTIONS],accountSelectorOptions:aa[k.ACCOUNTS],audienceManagerOptions:aa[k.AUDIENCE_MANAGER],audienceInfoOptions:aa[k.AUDIENCE_INFO],locationSelectorOptions:aa[k.LOCATIONS],budgetSelectorOptions:aa[k.BUDGETS],validationWarningOptions:aa[k.VALIDATION_WARNING],experiments:z.getExperiments(),targetingErrors:z.getErrors(),dialogMode:i.CREATE,setCreativeInvalidReason:this._setCreativeInvalidReason,disapprovalReasonMsg:z.getCreativeStore().getCreativeInvalidReason_DONOTUSE(),updateDialogState:this._updateDialogState,onApiReviewAppealRequested:this._requestApiReview,conversionPixels:aa[k.PIXELS]}));},getDialogFooter:function(){var z=this._config,aa=z.getContextStore();return (v.createElement(p,{status:this.props.status,pageID:aa.getPageID(),postID:aa.getPostID(),placement:aa.getPlacement(),accountID:z.getSpecs().getAdAccountID(),experiments:z.getExperiments(),contactFormURI:z.getURIStore().getNullableLink('contactForm'),ownerFlyoutID:this.props.buttonID,buttonID:this.props.buttonID,maxHeight:this._getDialogColumnMaxHeight(),screenshotContainerID:"TODO",isEvent:aa.getPostType()===m.FBTYPE_EVENT,onSubmit:this._onSubmit,dialogState:this.state.dialogState}));},_getHeader:function(){var z=this._config,aa=z.getContextStore(),ba=z.getUnitOptions()[k.HEADER];return (v.createElement(q,{userID:aa.getUserID(),pageID:aa.getPageID(),postID:aa.getPostID(),headerType:ba.headerType,options:ba.options,ownerFlyoutID:this.props.buttonID,displaySection:o.HEADER}));},_getNotice:function(){var z=this._config.getContextStore();if(z.getPostType()===m.FBTYPE_PHOTO_ALBUM){return (v.createElement(w,{className:"mbs"},"You're currently boosting an album. If you want to boost a single photo, upload it separately to this album."));}else if(z.getPlacement()===r.COMPOSER)return (v.createElement(w,{className:"mbs"},"You'll see a preview of your ad here after you post."));return null;},_getPreviews:function(){var z=this._config,aa=z.getContextStore();if(aa.getPlacement()===r.COMPOSER)return null;return (v.createElement(g,{pageID:aa.getPageID(),adAccountID:z.getSpecs().getAdAccountID(),creative:z.getCreativeStore().getCreativeSpec(),hasRHC:false,appID:aa.getAppID()}));},_confirmAppeal:function(){this._config.getSpecs().setApiAppealReviewRequest(true);this.setState({dialogState:j.LOADING});this._onSubmit(t.CREATE);},_renderApiAppealReviewDialog:function(){if(!this._apiDialogAnchor)this._apiAppealReviewDialogAnchor=u.create('div');v.render(v.createElement(l,{causalElementRef:this._getWidgetRef(),onConfirm:this._confirmAppeal}),this._apiAppealReviewDialogAnchor);},_onSubmit:function(z){switch(z){case t.CREATE:case t.SET_BUDGET:this._config.getSubmissionActions().saveBoostPostHandler(z,this.props.buttonID,this._config.getSpecs(),this._onSuccess,this._enableDialog);break;case t.APPEAL:this._renderApiAppealReviewDialog();break;case t.CLEAR_BUDGET:this._config.getSubmissionActions().clearComposerBoost(z,this._config.getSpecs(),this._onSuccess);break;case t.NONE:this._config.getDialogRenderViewActions().onDialogCancelButtonClick();}},_setCreativeInvalidReason:function(z){var aa=this._config.getCreativeStore();aa.setCreativeInvalidReason_DONOTUSE(z);if(this._config.getExperiments().ad_api_appeal_request)this.setState({dialogState:j.DISABLED});},_enableDialog:function(){this._updateDialogState(j.ENABLED);},_updateDialogState:function(z){var aa=this._config.getCreativeStore();if(aa.getCreativeInvalidReason_DONOTUSE()&&this._config.getExperiments().ad_api_appeal_request)return;this.setState({dialogState:z});},_requestApiReview:function(){this._onSubmit(t.APPEAL);},_onSuccess:function(){if(this._config.getContextStore().getPlacement()===r.COMPOSER){this._config.getDialogRenderViewActions().onDialogSubmitSuccess();return;}this.setState({hiddenDialog:true});}};e.exports=y;},null);
  __d("BoostedPostWidgetMixin",["AsyncDialog","AsyncRequest","BoostedComponentDataState","BoostedComponentDialogStates","BoostedComponentSafeMixin","BoostedPostComponentConfig","BoostedPostConstants","BoostedPostDialogMixin","XBoostedPostDialogControllerURIBuilder","BoostedPostEventType","BoostedPostLogging","BoostedPostPlacementOptions","BoostedPostStatus","React","Vector","emptyFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';var w={mixins:[k,n],propTypes:{status:t.PropTypes.string.isRequired,ineligible:t.PropTypes.bool.isRequired,configData:t.PropTypes.object.isRequired,reactDialog:t.PropTypes.bool.isRequired,buttonID:t.PropTypes.string.isRequired},getInitialState:function(){this._config=new l(i.INIT_DATA_LOADED,this.props.configData,this.forceUpdate.bind(this));return {dialogState:j.ENABLED,showUpsell:this.props.canSeeUpsell&&this.props.status===s.INACTIVE&&this._config.getContextStore().getPlacement()===r.NEW_TIMELINE};},componentDidUpdate:function(){this.renderDialog();},_renderDialog:function(x){var y=Date.now();if(this.props.reactDialog){this.onUpsellButtonClick(x);return;}g.send(new h(this._getDialogURI()).setHandler(function(){var z=this._config.getContextStore();q.log(p.CLIENT_DIALOG_TTI,{page_id:z.getPageID(),post_id:z.getPostID(),placement:z.getPlacement(),boosting_status:this.props.status,processing_time:Date.now()-y});}.bind(this)),v);x.preventDefault();},_getWidgetRef:function(){return 'boostedPostButton';},_getDialogURI:function(){var x=this._config.getContextStore();return new o().setInt('page_id',x.getPageID()).setInt('post_id',x.getPostID()).setEnum('status',this.props.status).setEnum('placement',x.getPlacement()).setString('button_id',this.props.buttonID).setInt('max_height',this._getDialogColumnMaxHeight()).setString('privacy_gating_spec',this._config.getPrivacyGatingStore().getPrivacyGatingSpecJSON()).getURI();},_getDialogColumnMaxHeight:function(){var x=Math.max(u.getViewportDimensions().y-225,m.DIALOG_MIN_HEIGHT);return Math.min(x,m.DIALOG_MAX_HEIGHT);}};e.exports=w;},null);
  __d("BoostedPostUnavailableButton.react",["React","TooltipLink.react","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j){var k=g.createClass({displayName:"BoostedPostUnavailableButton",propTypes:{reason:g.PropTypes.string.isRequired},render:function(){return (g.createElement(h,{className:"_2ajm",tooltip:this.props.reason,position:"above",alignH:"right"},"Boost Unavailable"));}});e.exports=k;},null);
  __d("BoostedPostDialogButton.react",["Arbiter","BoostedPostWidgetMixin","BoostedPostPlacementOptions","BoostedPostStatus","BoostedPostStrings","BoostedPostTestElements","BoostedPostUnavailableButton.react","Button","DOM","Form","Link.react","PromotedPostConstants","React","Image.react","SubscriptionsHandler","Tooltip","XUIButton.react","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';var z=s.createClass({displayName:"BoostedPostDialogButton",mixins:[h],propTypes:{autoOpen:s.PropTypes.bool.isRequired},componentWillMount:function(){this._subscriptionsHandler=new u();var aa=this._config;if(aa.getContextStore().getPlacement()===i.COMPOSER){this._subscriptionsHandler.addSubscriptions(g.subscribe(r.SET_COMPOSER_BOOST,function(event,ba){var ca=o.find(document,'div.boostedPostForm');o.empty(ca);p.createHiddenInputs(ba.formData,ca);n.setLabel(this.refs.boostedPostButton.getDOMNode(),y._("Boost set for {budget}",[y.param("budget",ba.budgetLabel)]));}.bind(this)));this._subscriptionsHandler.addSubscriptions(g.subscribe([r.CLEAR_COMPOSER_BOOST,'composer/reset'],function(){o.empty(o.find(document,'div.boostedPostForm'));n.setLabel(this.refs.boostedPostButton.getDOMNode(),k.DEFAULT_BUTTON_LABEL);}.bind(this)));}},componentDidMount:function(){v.set(this.refs.boostedPostButton.getDOMNode(),this._getTooltipText(),'above','center');if(this.props.autoOpen&&this.props.reactDialog&&this.props.status==j.INACTIVE){this._config.getDialogRenderViewActions().onAutoOpen();}else if(this.props.autoOpen)this.getDOMNode().click();},componentWillUnmount:function(){this._subscriptionsHandler.release();},_render:function(){var aa=this._config.getDialogButtonStore().getLabel(),ba=this._config.getDialogButtonStore().getIconUrl(),ca=this._config.getContextStore().getPlacement();if(ca===i.SNOWLIFT||ca===i.AYMT_HOMEPAGE_PANEL)return (s.createElement(q,{onClick:this._renderDialog,className:"buttonLink","data-testid":l.BOOSTED_POST_BUTTON_ID,disabled:this.props.ineligible,onMouseEnter:this.onMouseEnter,ref:this._getWidgetRef()},aa));return (s.createElement(w,{ref:this._getWidgetRef(),onClick:this._renderDialog,"data-testid":l.BOOSTED_POST_BUTTON_ID,disabled:this.props.ineligible,className:"_4dyi",image:ba?s.createElement(t,{src:ba}):null,use:this.props.status===j.INACTIVE&&ca!==i.COMPOSER?'confirm':'default',label:aa,onMouseEnter:this.onMouseEnter}));},_renderError:function(){var aa="Something went wrong. We are working to resolve the issue. Please try again later.";return (s.createElement(m,{reason:aa}));},_getTooltipText:function(){if(this.props.status==j.FINISHED||this.props.status==j.EXTENDABLE)return this._getFinishedBoostTooltipText();return this._getBoostTooltipText();},_getFinishedBoostTooltipText:function(){switch(this._config.getContextStore().getPlacement()){case i.EVENT_UPSELL:return ("View your boosted event results.");default:return ("View your boosted post results.");}},_getBoostTooltipText:function(){switch(this._config.getContextStore().getPlacement()){case i.EVENT_UPSELL:return ("Boost your event to reach more people");default:return ("Boost your post to reach more people");}}});e.exports=z;},null);