if (self.CavalryLogger) { CavalryLogger.start_js(["JHRUR"]); } __d("isIterable",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null&&(Array.isArray(a)||typeof a==="string"||typeof a==="object"&&a.constructor===Object||typeof a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]==="function")}e.exports=a}),null); __d("AdsICContainsContextualTargetingPredicatePlugin",["immutable","isIterable"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").List;a={type:"icContextualTargetingPredicate",key:"contains",matches:function(a,c){return b("isIterable")(a)?g(a).includes(c):!1}};e.exports=a}),null); __d("AdsICEqualsContextualTargetingPredicatePlugin",[],(function(a,b,c,d,e,f){"use strict";a={type:"icContextualTargetingPredicate",key:"equals",matches:function(a,b){return typeof b==="number"&&typeof a==="number"&&a===b}};e.exports=a}),null); __d("AdsICGreaterThanContextualTargetingPredicatePlugin",[],(function(a,b,c,d,e,f){"use strict";a={type:"icContextualTargetingPredicate",key:"greater_than",matches:function(a,b){return typeof b==="number"&&typeof a==="number"&&a>b}};e.exports=a}),null); __d("AdsICIsInContextualTargetingPredicatePlugin",["immutable","isIterable"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").List;a={type:"icContextualTargetingPredicate",key:"is_in",matches:function(a,c){if(b("isIterable")(c))return g(c).includes(a);else if(typeof c==="boolean")return a===c;return!1}};e.exports=a}),null); __d("AdsICIsNotInContextualTargetingPredicatePlugin",["immutable","isIterable"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").List;a={type:"icContextualTargetingPredicate",key:"is_not_in",matches:function(a,c){if(a==null)return!0;return b("isIterable")(c)?!g(c).includes(a):!1}};e.exports=a}),null); __d("AdsICLessThanContextualTargetingPredicatePlugin",[],(function(a,b,c,d,e,f){"use strict";a={type:"icContextualTargetingPredicate",key:"less_than",matches:function(a,b){return typeof b==="number"&&typeof a==="number"&&a0||a.getMustShow()};b.setAvailableCap=function(a){this.$1=a};return a}();e.exports=a}),null); __d("AdsIntelligentComponentsUtils",[],(function(a,b,c,d,e,f){"use strict";a={getTipParams:function(a){return{context:a,placement:"aymt_tips"}},getFAQParams:function(a){return{context:a,placement:"help_articles"}},getSavedMessagesParams:function(a){return{context:a,placement:"SAVED_MESSAGES_PANE"}},convertContext:function(a){return JSON.stringify(a)}};e.exports=a}),null); __d("XAdsInProductGuidanceAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/advertiser_guidance/server_msg/",{context:{type:"String",required:!0},placement:{type:"String"},inject_tip:{type:"String"},enable_stages:{type:"StringSet"},enable_for_test_users:{type:"Bool",defaultValue:!1}})}),null); __d("AdsIntelligentComponentsDataLoader",["Promise","AdsIntelligentComponentsUtils","AsyncRequest","URIInitDataUtil","XAdsCMTipQEAsyncController","XAdsInProductGuidanceAsyncController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){var c=b("AdsIntelligentComponentsUtils").convertContext(a.context),d=b("XAdsInProductGuidanceAsyncController").getURIBuilder().setString("context",c).setString("placement",a.placement).setString("inject_tip",b("URIInitDataUtil").getDefaultInjectTip()).setStringSet("enable_stages",b("URIInitDataUtil").getDefaultEnableStages()).getURI();return new(b("Promise"))(function(a,c){return new(b("AsyncRequest"))().setURI(d).setAllowCrossPageTransition(!0).setErrorHandler(function(a){return c(a.errorDescription)}).setHandler(function(b){a(b.payload)}).send()})};c=function(a,c){a=b("XAdsCMTipQEAsyncController").getURIBuilder().setString("tip_id",a).setString("channel_id",c).getURI();new(b("AsyncRequest"))().setURI(a).setAllowCrossPageTransition(!0).send()};d={loadMessages:a,logExposure:c};e.exports=d}),null); __d("AdsICFilterIfFailsQE",["AdsIntelligentComponentsDataLoader"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1=new Set()}var c=a.prototype;c.getInvisibleReason=function(){return"QENotPassed"};c.shouldHideMessageIfFailsRule=function(){return!0};c.filter=function(a,c){c=a.getAYMTData();if(c&&!this.$1.has(a.getID())){var d=c.tip_id;c=c.channel_id;d!=null&&c!=null&&(this.$1.add(a.getID()),b("AdsIntelligentComponentsDataLoader").logExposure(d,c))}return a.getQEState()};return a}();e.exports=a}),null); __d("AdsICPlacement",["AdsICFilterIfFailsQE","AHGLogUtils","AYMTClientSideLogging","immutable","isTruthy"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a,c,d){d===void 0&&(d=[]),this.$1=a,this.$2=c,this.__visibleMessages=b("immutable").OrderedSet(),this.__visibleMessagesInMessageGroups=b("immutable").Map().withMutations(function(a){d.forEach(function(c){return a.set(c,b("immutable").OrderedSet())})}),this.__experimentHideMessages=b("immutable").OrderedSet(),this.$4=new Map(),this.$3=new(b("AdsICFilterIfFailsQE"))()}var c=a.prototype;c.getName=function(){return this.$1};c.__deleteVisibleMessage=function(a,b){this.__visibleMessages=this.__visibleMessages["delete"](a),b!=null&&(this.__visibleMessagesInMessageGroups=this.__visibleMessagesInMessageGroups.set(b,this.__visibleMessagesInMessageGroups.get(b)["delete"](a)))};c.__addVisibleMessage=function(a){var b=a.getID();this.__visibleMessages=this.__visibleMessages.add(b);a=a.getMessageGroup();a!=null&&(this.__visibleMessagesInMessageGroups=this.__visibleMessagesInMessageGroups.set(a,this.__visibleMessagesInMessageGroups.get(a).add(b)))};c.__hideUnknownMessages=function(a){var b=this,c=this.__visibleMessages.subtract(a.getMessageIDs());c.forEach(function(c){var d,e=a.getMessage(c);e&&(d=e.getMessageGroup());b.__deleteVisibleMessage(c,d)})};c.updateVisibleMessages=function(a,b,c){c===void 0&&(c=!0);this.__hideUnknownMessages(a);a=this.__applyAllRules(a,b);a=a.sortByScore();this.__customLogicForShowingMessage(a,b,c);return this.__visibleMessages.subtract(this.__experimentHideMessages)};c.getInvisibleReason=function(a){return this.$4.get(a)};c.__customLogicForShowingMessage=function(a,b,c){var d=this;a.getAll().forEach(function(a){d.__checkQEAndShowMessage(a,b,c)})};c.__applyAllRules=function(a,b){__p&&__p();var c=this,d,e=a;this.$2.forEach(function(a){d=e.filter(function(c){return a.filter(c,b)});e.getAll().forEach(function(b){d.hasMessage(b.getID())||c.__updateInvalidMessage(a,b)});e=d;if(d.getAll().isEmpty())return});return e};c.__updateInvalidMessage=function(a,c){var d=a.getInvisibleReason();b("isTruthy")(d)&&this.$4.set(c.getID(),d);a.shouldHideMessageIfFailsRule()&&this.$5(c)};c.__checkQEAndShowMessage=function(a,b,c){if(!this.$3.filter(a,b)){this.__updateInvalidMessage(this.$3,a);return}if(!c)return;this.$4["delete"](a.getID());this.__showMessage(a)};c.__showMessage=function(a){if(this.__visibleMessages.has(a.getID()))return!1;a.aymtData&&(b("AYMTClientSideLogging").logImpressionNew(a.aymtData),b("AHGLogUtils").logImpression(a.getAdObjectID(),a.getFormat(),a.getComponentName(),a.getID(),a.getFBJoinerKey(),this.getName(),a.getMessageGroup(),a.getMessageType(),a.getMessageTypeID(),a.getScore(),a.getExperiments()));a.getExperiments().performance_lift_experiment===0&&(this.__experimentHideMessages=this.__experimentHideMessages.add(a.getID()));this.__addVisibleMessage(a);return!0};c.$5=function(a){this.__visibleMessages.has(a.getID())&&(b("AHGLogUtils").logCloseMessage(a.getFormat(),a.getID(),this.getName(),a.getMessageGroup()),this.__deleteVisibleMessage(a.getID()))};return a}();e.exports=a}),null); __d("AdsICPlacementWithCap",["AdsICFilterIfNoLeftSpace","AdsICPlacement","AHGLogUtils","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e,f){__p&&__p();f===void 0&&(f=b("immutable").Map());c=a.call(this,c,d,Array.from(f.keys()))||this;c.$AdsICPlacementWithCap1=e;c.$AdsICPlacementWithCap2=e;c.$AdsICPlacementWithCap3=new(b("AdsICFilterIfNoLeftSpace"))(c.$AdsICPlacementWithCap2);c.$AdsICPlacementWithCap4=f;c.$AdsICPlacementWithCap5=f;c.$AdsICPlacementWithCap6=f.map(function(a){return new(b("AdsICFilterIfNoLeftSpace"))(a)});return c}var d=c.prototype;d.getAvailableCap=function(){return this.$AdsICPlacementWithCap2};d.resetCap=function(){var a=this,c=this.$AdsICPlacementWithCap1,d=this.__visibleMessages.size;this.$AdsICPlacementWithCap2=c-d;this.$AdsICPlacementWithCap5=this.$AdsICPlacementWithCap4.map(function(b,c){c=a.__visibleMessagesInMessageGroups.get(c).size;return b-c});b("AHGLogUtils").logResetCap(this.getName(),this.$AdsICPlacementWithCap2)};d.__customLogicForShowingMessage=function(a,b,c){a=a.moveWhitelistedToFront();this.$AdsICPlacementWithCap7(a,b,c);this.$AdsICPlacementWithCap8(a)};d.__showMessage=function(b){var c=a.prototype.__showMessage.call(this,b);if(c){this.$AdsICPlacementWithCap2=Math.max(0,this.$AdsICPlacementWithCap2-1);b=b.getMessageGroup();b!=null&&(this.$AdsICPlacementWithCap5=this.$AdsICPlacementWithCap5.set(b,Math.max(0,this.$AdsICPlacementWithCap5.get(b)-1)))}return c};d.$AdsICPlacementWithCap7=function(a,b,c){var d=this;a.getAll().forEach(function(a){var e=a.getMessageGroup(),f=null;e!=null&&(f=d.$AdsICPlacementWithCap6.get(e),f.setAvailableCap(d.$AdsICPlacementWithCap5.get(e)));d.$AdsICPlacementWithCap3.setAvailableCap(d.$AdsICPlacementWithCap2);e=f==null||f.filter(a,b);var g=d.$AdsICPlacementWithCap3.filter(a,b);e&&g?d.__checkQEAndShowMessage(a,b,c):f!=null&&!e?d.__updateInvalidMessage(f,a):d.__updateInvalidMessage(d.$AdsICPlacementWithCap3,a)})};d.$AdsICPlacementWithCap8=function(a){var c=a.getAll();if(c.size==0||this.__visibleMessages.size==0)return;this.__visibleMessages.forEach(function(a){b("AHGLogUtils").logEligibleMessages(c,a)})};return c}(b("AdsICPlacement"));e.exports=a}),null); __d("AdsICGenericPlacementBasedOnFormatWithCap",["AdsICFilterByMessageFormat","AdsICFilterIfDoesNotMatchContextualTargeting","AdsICFilterIfDoesNotPassValidateCondition","AdsICFilterIfInContextualRecsExperiment","AdsICFilterIfPreviouslyClosed","AdsICFilterIfUnloaded","AdsICFilterIfUnmounted","AdsICPassIfAlreadyVisible","AdsICPlacementWithCap","immutable"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d,e,f){f===void 0&&(f=b("immutable").Map());d=[new(b("AdsICFilterByMessageFormat"))(d),new(b("AdsICFilterIfUnmounted"))(),new(b("AdsICFilterIfPreviouslyClosed"))(),new(b("AdsICFilterIfDoesNotPassValidateCondition"))(),new(b("AdsICFilterIfDoesNotMatchContextualTargeting"))(),new(b("AdsICFilterIfInContextualRecsExperiment"))(),new(b("AdsICPassIfAlreadyVisible"))(c),new(b("AdsICFilterIfUnloaded"))()];return a.call(this,c,d,e,f)||this}return c}(b("AdsICPlacementWithCap"));e.exports=a}),null); __d("AdsICBadgesPlacement",["AdsICGenericPlacementBasedOnFormatWithCap","AdsInProductGuidanceConfigSitevar","AdsIntelligentComponentsMessageFormat"],(function(a,b,c,d,e,f){"use strict";a=[b("AdsIntelligentComponentsMessageFormat").NEW_BADGE];c=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("BADGES")||0;e.exports=new(b("AdsICGenericPlacementBasedOnFormatWithCap"))("BADGES",a,c)}),null); __d("AdsICBluesCluesPlacement",["AdsICGenericPlacementBasedOnFormatWithCap","AdsInProductGuidanceConfigSitevar","AdsIntelligentComponentsMessageFormat"],(function(a,b,c,d,e,f){"use strict";a=[b("AdsIntelligentComponentsMessageFormat").BLUE_TIP,b("AdsIntelligentComponentsMessageFormat").BLUE_TOUR];c=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("BLUES_CLUES")||0;e.exports=new(b("AdsICGenericPlacementBasedOnFormatWithCap"))("BLUES_CLUES",a,c)}),null); __d("AdsICInFlowPlacement",["AdsICGenericPlacementBasedOnFormatWithCap","AdsInProductGuidanceConfigSitevar","AdsIntelligentComponentsMessageFormat","immutable"],(function(a,b,c,d,e,f){"use strict";a=[b("AdsIntelligentComponentsMessageFormat").INLINE];c=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("IN_FLOW")||0;f=b("immutable").Map((d={},d.CREATION_AND_EDITING_L1=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("CREATION_AND_EDITING_L1")||0,d.CREATION_AND_EDITING_L2=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("CREATION_AND_EDITING_L2")||0,d.CREATION_AUDIENCE=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("CREATION_AUDIENCE")||0,d.CREATION_L2_SIDEBAR=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("CREATION_L2_SIDEBAR")||0,d.CREATION_L3_HEADER=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("CREATION_L3_HEADER")||0,d.DELIVERY_OPTIMIZATION=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("DELIVERY_OPTIMIZATION")||0,d.DUPLICATION=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("DUPLICATION")||0,d.EDITING_L3=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("EDITING_L3")||0,d.EXPORT=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("EXPORT")||0,d.IMPORT=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("IMPORT")||0,d.INSIGHTS_TRAY=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("INSIGHTS_TRAY")||0,d.NOT_IN_ADS_MANAGER=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("NOT_IN_ADS_MANAGER")||0,d.OBJECTIVE=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("OBJECTIVE")||0,d.PLACEMENT=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("PLACEMENT")||0,d.PUBLISHING_RECEIPT=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("PUBLISHING_RECEIPT")||0,d.QUICK_CREATION=b("AdsInProductGuidanceConfigSitevar").cap_per_type.get("QUICK_CREATION")||0,d));e.exports=new(b("AdsICGenericPlacementBasedOnFormatWithCap"))("IN_FLOW",a,c,f)}),null); __d("AdsICMessage",["immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={id:"",visiblePlacements:b("immutable").Set(),isMounted:!1,isLoaded:!1,isClosed:!1,passValidateCondition:!0,isMatchingContext:!0,adObjectID:null,format:null,componentName:"",messageGroup:void 0,messageType:null,messageTypeID:null,aymtData:null,mustShow:!1,fbJoinerKey:null,score:1,experiments:{},qeState:!1};c=function(a){__p&&__p();babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getID=function(){return this.get("id")};c.getVisiblePlacements=function(){return this.get("visiblePlacements")};c.getIsVisibleForPlacement=function(a){return this.getVisiblePlacements().has(a)};c.getIsMounted=function(){return this.get("isMounted")};c.getIsLoaded=function(){return this.get("isLoaded")};c.getIsClosed=function(){return this.get("isClosed")};c.getPassValidateCondition=function(){return this.get("passValidateCondition")};c.getIsMatchingContext=function(){return this.get("isMatchingContext")};c.getAdObjectID=function(){return this.get("adObjectID")};c.getFormat=function(){return this.get("format")};c.getComponentName=function(){return this.get("componentName")};c.getMessageGroup=function(){return this.get("messageGroup")};c.getMessageType=function(){return this.get("messageType")};c.getMessageTypeID=function(){return this.get("messageTypeID")};c.getAYMTData=function(){return this.get("aymtData")};c.getMustShow=function(){return this.get("mustShow")};c.getFBJoinerKey=function(){return this.get("fbJoinerKey")};c.getScore=function(){return this.get("score")};c.getExperiments=function(){return this.get("experiments")};c.getQEState=function(){return this.get("qeState")};c.addVisiblePlacement=function(a){return this.setVisiblePlacements(this.getVisiblePlacements().add(a))};c.setVisiblePlacements=function(a){return this.set("visiblePlacements",a)};c.setIsMounted=function(a){return this.set("isMounted",a)};c.setIsLoaded=function(a){return this.set("isLoaded",a)};c.setIsClosed=function(a){return this.set("isClosed",a)};c.setPassValidateCondition=function(a){return this.set("passValidateCondition",a)};c.setIsMatchingContext=function(a){return this.set("isMatchingContext",a)};return b}(b("immutable").Record(a));e.exports=c}),null); __d("AdsICMessagesMap",["immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={messagesMap:b("immutable").OrderedMap()};a=function(a){__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b){b===void 0&&(b=g);return a.call(this,b)||this}var c=b.prototype;c.setMessage=function(a,b){return this.setMessagesMap(this.getMessagesMap().set(a,b))};c.addMessage=function(a){return this.setMessage(a.getID(),a)};c.removeMessage=function(a){return this.setMessagesMap(this.getMessagesMap()["delete"](a))};c.setMessagesMap=function(a){return this.set("messagesMap",a)};c.filter=function(a){return this.setMessagesMap(this.getMessagesMap().filter(a))};c.sortByScore=function(){return this.setMessagesMap(this.getMessagesMap().sortBy(function(a){return-a.getScore()}))};c.moveWhitelistedToFront=function(){return this.setMessagesMap(this.getMessagesMap().sortBy(function(a){return a.getMustShow()?-1:0}))};c.hasMessage=function(a){return this.getMessagesMap().has(a)};c.getMessage=function(a){return this.getMessagesMap().get(a)};c.getMessagesMap=function(){return this.get("messagesMap")};c.getAll=function(){return this.getMessagesMap()};c.getMessageIDs=function(){return this.getMessagesMap().keySeq().toArray()};return b}(b("immutable").Record(g));e.exports=a}),null); __d("AdsIntelligentComponentsMessageContentStore",["AdsDataAtom","AdsIntelligentComponentsMessagesLoadedActionFlux","FluxMapStore","gkx","immutable","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__getActionTypes=function(){return[b("AdsIntelligentComponentsMessagesLoadedActionFlux").actionType]};d.reduce=function(a,c){__p&&__p();var d=this,e=c.action;switch(e.type){case b("AdsIntelligentComponentsMessagesLoadedActionFlux").actionType:return a.withMutations(function(a){var c=e.loadedData.messages;c.aymt_tips&&Object.keys(c.aymt_tips).forEach(function(b){return a.set(b,{aymt_tip:c.aymt_tips[b].metadata,fbjoiner_key:c.aymt_tips[b].fbjoiner_key,help_article:d.getHelpArticle(b),saved_message:d.getSavedMessage(b)})});c.help_articles&&Object.keys(c.help_articles).forEach(function(e){return a.set(e,{help_article:b("nullthrows")(c.help_articles)[e].metadata,saved_message:d.getSavedMessage(e),aymt_tip:d.getAYMTTip(e),fbjoiner_key:d.getFBJoinerKey(e)})});c.SAVED_MESSAGES_PANE&&Object.keys(c.SAVED_MESSAGES_PANE).forEach(function(e){return a.set(e,{saved_message:b("nullthrows")(c.SAVED_MESSAGES_PANE)[e].metadata,help_article:d.getHelpArticle(e),aymt_tip:d.getAYMTTip(e),fbjoiner_key:d.getFBJoinerKey(e)})})});default:return a}};d.getAYMTTip=function(a){a=this.get(a);return a?a.aymt_tip:null};d.getHelpArticle=function(a){a=this.get(a);return a?a.help_article:null};d.getSavedMessage=function(a){a=this.get(a);return a?a.saved_message:null};d.getFBJoinerKey=function(a){a=this.get(a);return a?a.fbjoiner_key:null};return c}(b("FluxMapStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("AdsIntelligentComponentsTargeting",["AdsICContextualTargetingPredicatePlugins"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={getValueFromContextByFields:function(a,b){return!b.hasIn(a)?null:b.getIn(a)},isMessageMatchingContext:function(a,b){if(a==null)return!0;var c=a.contextual_targeting_spec,d=a.targeting_spec_condition_type,e=a.targeting_spec==null?0:a.version;a=e<2?null:a.targeting_spec;switch(e){case 2:return a==null?!0:h(b,a);case 0:case 1:default:return h(b,Object.freeze({condition_type:d,rules:c,rule_groups:[]}))}}};function h(a,b){switch(b.condition_type){case"any_of":return b.rules.some(function(b){return i(b,a)})||b.rule_groups.some(function(b){return h(a,b)});case"all_of":default:return b.rules.every(function(b){return i(b,a)})&&b.rule_groups.every(function(b){return h(a,b)})}}function i(a,c){c=g.getValueFromContextByFields(a.context_field,c);return b("AdsICContextualTargetingPredicatePlugins").get(a.predicate).matches(c,a.value)}e.exports=g}),null); __d("AdsIntelligentComponentsDeliveryController",["AdsICBadgesPlacement","AdsICBluesCluesPlacement","AdsICInFlowPlacement","AdsICMessage","AdsICMessagesMap","AdsICPlacementWithCap","AdsIntelligentComponentsMessageContentStore","AdsIntelligentComponentsTargeting","AdsIntelligentComponentsTimerStartAction","immutable","isTruthy","requestIdleCallback","throttle"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("throttle")(function(a){b("requestIdleCallback")(a)});a=function(){__p&&__p();function a(){var a=this;this.$8=0;this.$1=b("immutable").Set([b("AdsICBluesCluesPlacement"),b("AdsICInFlowPlacement"),b("AdsICBadgesPlacement")]);this.$2=b("immutable").Map().withMutations(function(c){a.$1.forEach(function(a){return c.set(a.getName(),b("immutable").OrderedSet())})})}var c=a.prototype;c.canUpdateVisibleMessagesCheck=function(a,c){if(!a&&this.$8===c){g(function(){return b("AdsIntelligentComponentsTimerStartAction").dispatch({},{line:"100",module:"AdsIntelligentComponentsDeliveryController.js"})});return!1}this.$8=c;return!a};c.update=function(a,b,c,d,e,f){__p&&__p();var g=this;this.$7!=a&&(this.resetCap(),this.$7=a);this.$3=b;this.$4=c;this.$5=d;this.$6=e;var h=this.$9();this.$1.forEach(function(a){g.$2=g.$2.set(a.getName(),a.updateVisibleMessages(h,g.$6,f))});return this.$2};c.resetCap=function(){this.$1.forEach(function(a){a instanceof b("AdsICPlacementWithCap")&&a.resetCap()});return this};c.getMessageState=function(a){var c,d=this.$3.get(a);c=(c=this.$10())!=null?c[a]:c;var e=b("AdsIntelligentComponentsMessageContentStore").getAYMTTip(a);return!d&&!c&&!e?null:new(b("AdsICMessage"))({id:a,visiblePlacements:this.$11(a),isMounted:!!this.$3.has(a),isLoaded:!!c,isClosed:!!this.$4.has(a),passValidateCondition:!!(d&&d.validateCondition()),isMatchingContext:b("AdsIntelligentComponentsTargeting").isMessageMatchingContext(e&&e.ic_targeting_spec,this.$6),adObjectID:this.$6.get("object_id"),format:d&&d.messageFormat,componentName:d&&d.componentName,messageGroup:d&&d.messageGroup,messageType:c&&c.message_type,messageTypeID:c&&c.message_type_id,aymtData:e&&e.aymt_data,mustShow:c&&c.must_show,experiments:c&&c.experiments,fbJoinerKey:b("AdsIntelligentComponentsMessageContentStore").getFBJoinerKey(a),score:c&&c.score,qeState:c&&c.qe_state})};c.getInvisibleReason=function(a){var c;this.$1.forEach(function(d){d=d.getInvisibleReason(a);b("isTruthy")(d)&&d!=="InvalidDeliveryPlacement"&&(c=d)});return c};c.$9=function(){var a=this,c=this.$2.reduce(function(a,b){return a.union(b)},b("immutable").Set(this.$3.keys())),d=new(b("AdsICMessagesMap"))();c.forEach(function(b){b=a.getMessageState(b);b&&(d=d.addMessage(b))});return d};c.$11=function(a){return this.$2.reduce(function(b,c,d){return c.has(a)?b.add(d):b},b("immutable").Set())};c.$10=function(){return this.$5?this.$5.messages&&this.$5.messages.aymt_tips:null};return a}();e.exports=new a()}),null); __d("AdsIntelligentComponentServerContextTypes",["immutable"],(function(a,b,c,d,e,f){"use strict";c=b("immutable").Record((a={},a.objective=null,a));f=b("immutable").Record((d={},d.creative=null,d));d=b("immutable").Record((a={},a.ad_account_id=null,a.object_id=null,a.campaign_group=c(),a.adgroup=f(),a.cf_section=null,a.create_dialog_open=!1,a.edit_tray_open=!1,a.inspect_campaign_id=null,a.page_id_selected=!1,a.pe_audience_splitting_open=!1,a.pe_pane=null,a.placements_cycle=null,a.rule_dialog_open=!1,a.tags=null,a.tool=null,a));e.exports={AdsAPICampaignGroupServerRecordFactory:c,AdsAPIAdgroupServerRecordFactory:f,AdsIntelligentComponentServerContextRecordFactory:d}}),null); __d("AdsIntelligentComponentsDataDispatcher",["requireCond","AdsApplicationUtils","AdsIntelligentComponentsActions","AdsIntelligentComponentsDataLoader","cr:948009","URI","isDevelopersURI","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={loadMessages:function(a){b("cr:948009")&&b("cr:948009").logLoadMessagesCalled();if(b("AdsApplicationUtils").isFAME())return;if(b("isDevelopersURI")(b("URI").getRequestURI()))return;b("promiseDone")(b("AdsIntelligentComponentsDataLoader").loadMessages(a),function(c){b("AdsIntelligentComponentsActions").dispatchMessages(a,c)},function(c){b("AdsIntelligentComponentsActions").messagesLoadError(a,c)})}};e.exports=a}),null); __d("setEarlyExecutableTimeout",["once"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=setTimeout(a,c),e=b("once")(a);return{cancel:function(){return clearTimeout(d)},executeEarly:function(){clearTimeout(d);return e()}}}e.exports=a}),null); __d("AdsIntelligentComponentsServerMessagesStore",["requireCond","AdsDataAtom","AdsIntelligentComponentsDataDispatcher","AdsIntelligentComponentServerContextTypes","AdsIntelligentComponentsMessageContentStore","AdsIntelligentComponentsMessagesLoadedActionFlux","AdsIntelligentComponentsMessagesLoadErrorActionFlux","cr:948009","AHGLogUtils","DateConsts","FluxLoadObjectStore","clearTimeout","gkx","immutable","requestIdleCallback","setEarlyExecutableTimeout","setTimeout"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsIntelligentComponentServerContextTypes").AdsIntelligentComponentServerContextRecordFactory,h=1e3,i=5,j=0,k=null;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f