if (self.CavalryLogger) { CavalryLogger.start_js(["xPvR6"]); } __d("XAsyncRequest",["MRequest"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this.$1=new(b("MRequest"))(a)}var c=a.prototype;c.setURI=function(a){this.$1.setURI(a);return this};c.setMethod=function(a){this.$1.setMethod(a);return this};c.setType=function(a){this.$1.setType(a);return this};c.setAutoProcess=function(a){this.$1.setAutoProcess(a);return this};c.setData=function(a,b){if(b!==void 0&&b){b={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&a[c]!==void 0&&(b[c]=a[c]);this.$1.setData(b)}else this.$1.setData(a);return this};c.setRawData=function(a){this.$1.setRawData(a);return this};c.setHandler=function(a){this.$1.listen("done",a);return this};c.setPayloadHandler=function(a){this.setHandler(function(b){return a(b.payload)});return this};c.setErrorHandler=function(a){this.$1.listen("error",a);return this};c.setResponseHandler=function(a){this.$1.listen("response",a);return this};c.setReadOnly=function(a){this.$1.setReadOnly(a);return this};c.send=function(){this.$1.send();return this};c.abort=function(){this.$1.abort()};c.setAllowCrossOrigin=function(a){this.$1.setCORS(a);return this};c.setAllowCredentials=function(a){this.$1.setAllowCredentials(a);return this};c.setAllowCrossPageTransition=function(a){return this};return a}();e.exports=a}),null); __d("XTaggingCounterController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/composer/tagging/counter/",{event:{type:"Enum",required:!0,enumType:1}})}),null); __d("MTaggingCounter",["AsyncSignal","XTaggingCounterController"],(function(a,b,c,d,e,f){a={logEvent:function(a,c){c=b("XTaggingCounterController").getURIBuilder().setEnum("event",a).getURI();new(b("AsyncSignal"))(c).send()}};e.exports=a}),null); __d("MFeedAdsGapRuleViolationDetection",["Banzai","BanzaiODS","CSS","DataAttributeUtils","DOM","ge","isEmpty","runMaybeOnAfterTTI"],(function(a,b,c,d,e,f){__p&&__p();var g="ei",h="qid",i="gap rule violation",j="non violating ads gap",k="non violating ego gap",l="first position violation",m="feed load",n="spacing invalidation",o="ego_pymk",p="ego_other",q=[],r=[],s=[],t=[],u={},v={},w={},x=[];a={registerFeedStories:function(a){__p&&__p();var c=this;b("runMaybeOnAfterTTI")(function(){__p&&__p();var d=b("ge")(a.containerID);if(d==null||d.childNodes==null)return;u=babelHelpers["extends"]({},a.demoAdChecks,u);w=a.egoGapRule;x=a.invalidateEgo?a.egoStories:{};var e=c._getStoriesFromContainer(d);a.isLoggingEnabled&&e.length!==0&&c._logFeedLoad();q=q.concat(e);for(var f in a.minGaps)Object.prototype.hasOwnProperty.call(a.minGaps,f)&&(v[f]=a.minGaps[f]);b("isEmpty")(u)&&(a.isLoggingEnabled&&c._checkFirstPosViolation(a,d),(a.invalidateEgo||a.isLoggingEnabled||a.isGapRuleInvalidationEnabled)&&c._checkGapRuleViolation(a))})},_getStoriesFromContainer:function(a){var b=[];for(var c=0;c0&&q[0].isSponsored){b={ftArray:q[0].dataFTArray,qid:q[0].qid,nodeid:q[0].nodeID};a.isLoggingEnabled&&!(q[0].dedupKey in t)&&(this._logFirstPosViolation(b),t[q[0].dedupKey]=b)}},_getMinGap:function(a,b,c){a=Math.min(a?a:Number.MAX_VALUE,b?b:Number.MAX_VALUE);return a!==Number.MAX_VALUE?a:c},_getStoryDedupKeysJSONString:function(a,b){var c=[];for(var a=a;a<=b;a++)c.push(q[a].dedupKey);return JSON.stringify(c)},_getStoryDedupKeys:function(){return q.map(function(a){return a.dedupKey})},_checkGapRuleViolation:function(a){__p&&__p();var b=null,c=null,d=null;for(var e=0;e0?this._swapAndLogEgo(e,h):(this._invalidateAndLogEgo(e),e--)}else a.shouldLogEgo&&!s[f.dedupKey]&&(s[f.dedupKey]=!0,this._logGapEvent(k,c,e))}o||(c=e,d=f)}}},_getMinGapBetweenStories:function(a,b){__p&&__p();var c;if(a.isSponsored||a.isEgoOther)c="ad";else if(a.isEgoPymk)c="pymk";else return 0;if(b.isSponsored||b.isEgoOther)a="ad";else if(b.isEgoPymk)a="pymk";else return 0;return w[c+"_"+a]},_swapAndLogEgo:function(a,c){this._shiftEgoBelowOrganicStory(q[a].nodeID,q[c].nodeID);var d=q[a];q.splice(a,1);q.splice(c,0,d);b("BanzaiODS").bumpEntityKey("m_feed_ego_invalidation","swap")},_shiftEgoBelowOrganicStory:function(a,c){a=b("ge")(a);c=b("ge")(c);a&&c&&b("DOM").insertAfter(c,a)},_invalidateAndLogEgo:function(a){var c=b("ge")(q[a].nodeID);c&&b("CSS").hide(c);q.splice(a,1);b("BanzaiODS").bumpEntityKey("m_feed_ego_invalidation","invalidate")},_logFirstPosViolation:function(a){var c={ft:a.ftArray[0],event_type:l,intValues:{qid:a.qid}};a.error_msg&&(c.error_msg=a.error_msg);b("Banzai").post("feed_ads_gap_rule_violation",c)},_logGapEvent:function(a,c,d){if(c===null)return;var e=q[c],f=q[d],g=0;for(var h=c+1;hi){this.lastUpdateTime=c;c=b("XPlacesUpdateLocationController").getURIBuilder().setString("json_location",a).setEnum("source",b("ViewerLocationSource").MSITE_LOCATION_PROMPT).getURI();new(b("MRequest"))(c).setMethod("POST").send()}};c.$4=function(){if(!this.listeners)return;for(var a=0;a=f}return j};c.$24=function(){var a=this.$10;a&&(this.$21-b("MViewport").getScrollTop()<0&&(b("Stratcom").invoke("m:more_item_automatic:items_visible",this.$8),this.uninstall()))};c.$26=function(){!this.$5?(this.$16=!0,this.isElementVisible()&&b("Stratcom").invoke("m:more_item_automatic:spinner_visible",this.$8,this.$9),!this.$17?this.$27():this.$28()):this.$24()};c.$29=function(){this.$5||(this.$16=!1)};c.$30=function(){!this.$17&&(this.$7||this.isElementVisible())&&(this.$31(),this.$7=!1)};c.$22=function(){!this.$17&&(this.$7||this.isElementVisible())&&(this.$31(),this.$7=!1),this.$6=[],this.$19>0&&this.$6.push(b("Stratcom").listen(["m:page:render:complete","scroll"],null,b("throttle").withBlocking(this.$25,this.$19,this))),this.$4||this.$6.push(b("MStopNGo").listen("go",this.$26.bind(this)),b("MStopNGo").listen("stop",this.$29.bind(this))),this.$6.push(b("Stratcom").listen("m:ajax:complete",null,this.$30.bind(this)))};c.$32=function(){var a=this.$10;if(a){var b=document;b=b.documentElement;if(b)return b.contains(a)}return!1};c.uninstall=function(){while(this.$6&&this.$6.length)this.$6.pop().remove();this.$17=!1;this.$14=null;this.$10=null;this.$13=!1};c.withinProximity=function(){var a=this.$10;return!!a&&b("Vector").getPos(a).y-b("MViewport").getScrollTop()100&&this.withinProximity())&&this.$31()};c.$31=function(){__p&&__p();var c=b("MLocationPrompt").getCoords();this.$20&&c&&(this.$3=new(b("MURI"))(this.$3).addQueryData("lat",c.latitude).addQueryData("long",c.longitude).toString());c=new(b("MRequest"))(new(b("MURI"))(this.$3).toString());this.$2?c.setType(b("MRequestTypes").INDEPENDENT):c.setType(b("MRequestTypes").DEPENDENT);c.setAutoProcess(!1);var d=[],e=!1,f=function(){!e&&d.length&&(e=!0,d.shift().process())};this.$18&&(c.setTimeout(b("MRequestGateway").ERROR_TIMEOUT),c.setFinalizeUponError(!1),c.listen("error",function(c,d){b("setTimeout")(function(){navigator.onLine&&(d.reset(),d.addData({is_retry:1}),d.sendAfterProcessing())},a.TRY_AGAIN_DELAY)}));c.listen("response",function(a){__p&&__p();a=new(b("MResponseData"))(a);a.listen("complete",function(){e=!1,f()});if(a.isPagelet()){d.push(a);f();return}e=!0;this.$14=a;this.$16&&this.$28()}.bind(this));c.send();this.$17=!0};c.getPersistOnReload=function(){return this.$13};return a}();a.TRY_AGAIN_DELAY=1500;e.exports=a}),null); __d("InitMMoreItemAutomatic",["MMoreItemAutomatic","Stratcom"],(function(a,b,c,d,e,f){var g;a=function(a){g||(g={},b("Stratcom").listen("m:page:loading",null,function(a){for(var b in g)g[b].getPersistOnReload()||(g[b].uninstall(),delete g[b])}));var c=a.id;g[c]&&g[c].uninstall();g[c]=new(b("MMoreItemAutomatic"))(a)};f.main=a}),null); __d("XConsentCookieController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/cookie/consent/",{})}),null); __d("XRefererFrameController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/common/referer_frame.php",{})}),null); __d("CookieBannerComponent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({BANNER:"banner",CLOSE_BUTTON:"close_button"})}),null); __d("CookieConsentBlacklist",["CookieBannerComponent","Parent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={isBlacklisted:function(a){__p&&__p();a=a;if(!this.hasCookieBanner())return!0;var c=b("Parent").byAttribute(a,"data-cookiebanner");if(c){c=c.getAttribute("data-cookiebanner");switch(c){case b("CookieBannerComponent").CLOSE_BUTTON:return!1;case b("CookieBannerComponent").BANNER:return!0}}c=b("Parent").byAttribute(a,"data-nocookies");if(c)return!0;a.tagName.toLowerCase()!=="a"&&(a=b("Parent").byTag(a,"a"));if(a instanceof HTMLAnchorElement&&typeof a.href==="string"){c=a.href;for(var a=0;a-1)return!0}return!1},blacklistedHrefs:["/about/basics","/ads/settings","/help/111814505650678","/help/1561485474074139","/help/568137493302217","/help/769828729705201","/help/cookies","/policies/cookies","/policy/cookies","/privacy/explanation"],hasCookieBanner:function(){var a=document.querySelectorAll('[data-cookiebanner="'+b("CookieBannerComponent").BANNER+'"]');return a.length>0}};e.exports=a}),null); __d("DeferredCookie",["Cookie","CookieConsent","CookieConsentBlacklist","SubscriptionList","XAsyncRequest","XConsentCookieController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new Map();a={shouldAddDefaultListener:!0,defaultHandler:null,sentConsentToServer:!1,callbacks:new(b("SubscriptionList"))(),addToQueue:function(a,c,d,e,f,h,i){if(!b("CookieConsent").isDeferCookies()){f?b("Cookie").setWithoutChecksIfFirstPartyContext(a,c,d,e,i):b("Cookie").setWithoutChecks(a,c,d,e,i);return}if(g.has(a))return;g.set(a,{name:a,value:c,nMilliSecs:d,path:e,firstPartyOnly:f,secure:i});h&&this.addDefaultInteractionListener()},flushAllCookiesWithoutRequestingConsentSeePrivacyXFNBeforeUsing:function(){g.forEach(function(a,c){a.firstPartyOnly?b("Cookie").setWithoutChecksIfFirstPartyContext(a.name,a.value,a.nMilliSecs,a.path,a.secure):b("Cookie").setWithoutChecks(a.name,a.value,a.nMilliSecs,a.path,a.secure)}),b("CookieConsent").setConsented(),this.callbacks.fireCallbacks(),g=new Map(),this.removeDefaultInteractionListener()},flushAllCookies:function(){this.flushAllCookiesWithoutRequestingConsentSeePrivacyXFNBeforeUsing();if(!this.sentConsentToServer){this.sentConsentToServer=!0;var a=b("XConsentCookieController").getURIBuilder().getURI();new(b("XAsyncRequest"))(a).send()}},removeDefaultInteractionListener:function(){this.shouldAddDefaultListener=!1,this.defaultHandler&&(window.removeEventListener?window.removeEventListener("click",this.defaultHandler,!0):document.detachEvent&&document.detachEvent("onclick",this.defaultHandler),this.defaultHandler=null)},addDefaultInteractionListener:function(){this.shouldAddDefaultListener&&(this.shouldAddDefaultListener=!1,this.defaultHandler=this.baseInteractionHandler.bind(this),window.addEventListener?window.addEventListener("click",this.defaultHandler,!0):document.attachEvent&&document.attachEvent("onclick",this.defaultHandler))},registerCallbackOnCookieFlush:function(a){!b("CookieConsent").isDeferCookies()?a():this.callbacks.add(a)},baseInteractionHandler:function(a){var c=a.target;if(!(c instanceof HTMLElement))return;if(a instanceof MouseEvent&&!this.isValidClick(a))return;b("CookieConsentBlacklist").isBlacklisted(c)||this.flushAllCookies()},isValidClick:function(a){return a.which===void 0?!0:a.which==1},canEmbedThirdPartyPixel:function(){return b("CookieConsent").isCookiesBlocked()||b("CookieConsent").isDeferCookies()?!1:g.size===0}};e.exports=a}),null); __d("ControlledReferer",["Bootloader","DeferredCookie","URI","XRefererFrameController","isMessengerDotComURI","isOculusDotComURI","isWorkplaceDotComURI","lowerFacebookDomain"],(function(a,b,c,d,e,f){__p&&__p();var g={useFacebookReferer:function(a,c,d){__p&&__p();if(!b("DeferredCookie").canEmbedThirdPartyPixel()){b("Bootloader").loadModules(["BanzaiODS"],function(a){a.bumpEntityKey("defer_cookies","block_controlled_referer_iframe")},"ControlledReferer");return}var e=!1;function f(){if(e)return;var b=a.contentWindow.location.pathname;if(b!=="/intern/common/referer_frame.php"&&b!=="/common/referer_frame.php")return;e=!0;a.contentWindow.document.body.style.margin=0;c()}var g;b("isMessengerDotComURI")(b("URI").getRequestURI())?g=b("XRefererFrameController").getURIBuilder().getURI().toString():b("isOculusDotComURI")(b("URI").getRequestURI())?g="/common/referer_frame.php":!b("lowerFacebookDomain").isValidDocumentDomain()?g="/intern/common/referer_frame.php":g=b("XRefererFrameController").getURIBuilder().getURI().toString();d==null&&b("isWorkplaceDotComURI")(b("URI").getRequestURI())&&(d="workplace");d&&(g+="?fb_source="+d);a.onload=f;a.src=g},useFacebookRefererHtml:function(a,b,c){g.useFacebookReferer(a,function(){a.contentWindow.document.body.innerHTML=b},c)}};e.exports=g}),null); __d("FBSiteWhiteOps",["ControlledReferer","FBEngagementWhiteopsFraudSensorTypedLogger","Style","URI","UserAgent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={appendToWindow:function(a,c,d,e,f){__p&&__p();e===void 0&&(e=null);f===void 0&&(f=null);var g=window.document.body;try{var h="fbsbx-sig-iframe-detection";if(g.getElementsByClassName(h).length!==0)return;var i=window.document.createElement("iframe");b("Style").apply(i,{height:"1px",width:"1px",opacity:"0",position:"relative",zIndex:"-9999999"});i.id="fbsbx-sig-iframe-"+a;i.className=h;i.referrerPolicy="no-referrer";b("ControlledReferer").useFacebookReferer(i,function(){__p&&__p();i.sandbox="allow-scripts allow-same-origin";var g="https://s.update.fbsbx.com/2/843748/utils.html?ti="+a+"&di=facebook.com&bt="+c+"&dt=8437481520966594402012";d&&(g+="&sn="+d);e!=null&&e!==""&&(g+="&c1="+e);f!=null&&f!==""&&(g+="&c3="+f);g=new(b("URI"))(g);var h=i.contentWindow.document,j="fbsbx-sig-iframe-form-"+a,k=g.toString();g=g.getQueryData();if(b("UserAgent").isBrowser("IE")||b("UserAgent").isBrowser("Edge")||b("UserAgent").isBrowser("IE Mobile")){var l="";for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(l+="'));h.body.innerHTML='
;"});g.appendChild(i)}catch(a){}},log:function(a,c,d){new(b("FBEngagementWhiteopsFraudSensorTypedLogger"))().setInstanceID(a).setTqBotDetectionProductEnum(c).log()}};e.exports=a}),null); __d("MarauderLogger",["Banzai","CacheStorage","MarauderConfig"],(function(a,b,c,d,e,f){__p&&__p();var g="client_event",h="navigation",i=18e4,j="marauder",k="marauder_last_event_time",l="marauder_last_session_id",m={},n=[],o=!1,p=null,q=null,r=null,s=0,t,u,v=!1,w=null,x=!1;function a(){G().set(k,y())}b("Banzai").subscribe(b("Banzai").SHUTDOWN,a);function y(){t=t||G().get(k)||0;return t}function z(){v||(u=G().get(l),v=!0);var a=Date.now();(!u||a-i>y())&&(u=a.toString(16)+"-"+(~~(Math.random()*16777215)).toString(16),G().set(l,u));return u}function A(){return{user_agent:window.navigator.userAgent,screen_height:window.screen.availHeight,screen_width:window.screen.availWidth,density:window.screen.devicePixelRatio||null,platform:window.navigator.platform||null,locale:window.navigator.language||null}}function B(){return{locale:navigator.language}}function C(b,a,c,d,f,g,h){var i=h||Date.now();t=h?Date.now():i;a=a||p;return{name:b,time:i/1e3,module:a,obj_type:d,obj_id:f,uuid:g,extra:c}}function D(a,b,c){return C("content",null,{flags:b},null,null,a,c)}function E(a){__p&&__p();var b=window.__mrdr;if(b)for(var c in b){var d=b[c];if(d[3]!==0){delete b[c];if(c==="1")if(r!==null)c=r;else continue;a.push(D(c,1,d[1]));a.push(D(c,2,d[2]));a.push(D(c,3,d[3]))}}}function F(a){__p&&__p();E(a);if(a.length===0)return;o&&a.push(C("counters",null,m));var c=b("Banzai").BASIC,d=b("MarauderConfig").gk_enabled;s===0&&d&&(a.push(C("device_status",null,B())),c={delay:5e3});d&&Math.random()<.01&&a.push(C("device_info",null,A()));if(r!==null)for(var d=0;d