;/*FB_PKG_DELIM*/ __d("XAdsCMAccountSettingsPageControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ads/manager/account/settings/",Object.freeze({tab:"information",highlight_tax_id:!1}),new Set(["highlight_tax_id"])),s=e;l.default=s}),98); __d("XAdsCMControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ads/manager/{?page}/{?tab}/",Object.freeze({help_tray:!1,no_redirect:!1,pixel_conversion_dialog:!1,show_edit_modal:!1,is_split_test:!1,m2w:!1,ads_manager_read_regions:!1}),void 0),s=e;l.default=s}),98); __d("XAdsPEControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/adsmanager/",Object.freeze({_fb_noscript:!1,ad_page_id:0,ads_manager_read_regions:!1,ads_manager_write_regions:!1,adset_page_id:0,auto_transform_dialog:!1,biz_sel:!1,breakdown_regrouping:!1,campaign_page_id:0,creative_page_id:0,duplicate_ad:!1,duplicate_campaign:!1,duplicate_campaign_upgrade:!1,external_creation:!1,external_creation_from_url:!1,focus_mode:!1,from_ads_ai:!1,gtao:!0,insights_section:"performance",insights_subsection:"results",is_mfr_model_shown_by_default:!1,is_redirected_default:!1,is_reload_from_account_change:!1,is_split_test:!1,launch_quick_creation:!1,mdsa_eligibility:!1,open_genai_modal:!1,recommendation_read_only:!1,root_level:"campaign",show_dfca_create_audience_modal:!1,show_dfca_lal_create_audience_modal:!1,show_inbox_re_tos:!1,show_inline_verification:!1,show_mm_onboarding_modal:!1,show_review:!1,show_select_post_modal:!1,show_shops_messaging_opt_out_modal:!1,show_view_history:!1,treenav:!0}),void 0),s=e;l.default=s}),98); __d("AdsManagerConstURIUtils",["AdsManagerReadRegions","XAdsCMAccountSettingsPageControllerRouteBuilder","XAdsCMControllerRouteBuilder","XAdsPEControllerRouteBuilder","gkx"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n){var o=r("XAdsPEControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function s(e,t,n){var o=r("XAdsCMControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function u(e,t,n){var o=r("XAdsCMAccountSettingsPageControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function c(e){return!!(window.location.host.includes("adsmanager")&&!r("AdsManagerReadRegions").excluded_endpoints.some(function(t){return e.includes(t)})&&r("gkx")("1221"))}function d(e,t){return t===void 0&&(t=!0),!!(window.location.host.includes("adsmanager")&&r("gkx")("13382")&&(r("AdsManagerReadRegions").excluded_endpoints.some(function(t){return e.includes(t)})||!t))}function m(e){return c(e.toString())?e.addQueryParam("ads_manager_read_regions","true"):d(e.toString())?e.addQueryParam("ads_manager_write_regions","true"):(e.getQueryParam("ads_manager_read_regions")!==null||e.getQueryParam("ads_manager_write_regions")!==null)&&(e.removeQueryParam("ads_manager_read_regions"),e.removeQueryParam("ads_manager_write_regions")),e}l.getAdsManagerURI=e,l.getXAdsCMControllerURI=s,l.getXAdsCMAccountSettingsPageURI=u,l.shouldRouteToAMReadRegions=c,l.shouldRouteToAMWriteRegions=d}),98); __d("AsyncDOM",["CSS","DOM","FBLogger"],(function(t,n,r,o,a,i){var e={invoke:function(t,r){for(var e=0;e*/"});i.default=e}),66); __d("StreamBlockReader",["Promise","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i){var e,l=(function(){function t(t){var r=this;if(!("getReader"in t)){var o=new Error("No getReader method found on given object");throw o.stack,o}this.$3=t.getReader(),this.$1="",this.$2=null,this.$4=!1,this.$5="utf-8",this.$6="",this.$9=!1,this.$8=function(){return(e||(e=n("Promise"))).reject("Sorry, you are somehow using this too early.")},this.$7=new(e||(e=n("Promise")))(function(e){r.$8=e})}var r=t.prototype;return r.changeEncoding=function(t){if(this.$2){var e=new Error("Decoder already in use, encoding cannot be changed");throw e.stack,e}this.$5=t},r.$10=function(){if(!self.TextDecoder){var e=new Error("TextDecoder is not supported here");throw e.stack,e}return this.$2||(this.$2=new self.TextDecoder(this.$5)),this.$2},r.$11=function(){if(this.$9){var e=new Error("Something else is already reading from this reader");throw e.stack,e}this.$9=!0},r.$12=function(){this.$9=!1},r.isDone=function(){return this.$4},r.$13=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(this.$6!==""){var e=this.$6;return this.$6="",e}if(this.isDone()){var t=new Error("You cannot read from a stream that is done");throw t.stack,t}var n=yield this.$3.read(),r=n.done,o=n.value;return this.$4=r,r&&this.$8(),o?this.$10().decode(o,{stream:!r}):""});function t(){return e.apply(this,arguments)}return t})(),r.readNextBlock=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){this.$11();var e=this.$13();return this.$12(),e});function t(){return e.apply(this,arguments)}return t})(),r.readUntilStringOrEnd=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return yield this.readUntilOneOfStringOrEnd_DO_NOT_USE([e])});function t(t){return e.apply(this,arguments)}return t})(),r.readUntilStringOrThrow=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(!e){var t=new Error("cannot read empty string");throw t.stack,t}this.$11();for(var n="",r=0;!this.isDone();)if(n+=yield this.$13(),!(n.length=200&&e.status<300)t.lastSuccessTime=Date.now(),n._handleXHRResponse(e);else if(o("UserAgent_DEPRECATED").webkit()&&typeof e.status=="undefined")n._invokeErrorHandler(1002);else if(r("AsyncRequestConfig").retryOnNetworkError&&D(e)&&n.remainingRetries>0&&!n._requestTimeout){n.remainingRetries--,delete n.transport,n.send(!0);return}else n._invokeErrorHandler();n.getOption("asynchronous_DEPRECATED")!==!1&&delete n.transport}catch(e){if(E())return;if(delete n.transport,n.remainingRetries>0)n.remainingRetries--,n.send(!0);else{if(!n.getOption("suppressErrorAlerts")){var a=r("getErrorSafe")(e);r("FBLogger")("AsyncRequest").catching(a).mustfix("AsyncRequest exception when attempting to handle a state change")}n._invokeErrorHandler(1007)}}},this._handleTimeout=function(){n.continuation.last(function(){n._requestTimeout=!0;var e=n.timeoutHandler;n.abandon(),e&&e(n),r("setTimeout")(function(){r("Arbiter").inform("AsyncRequest/timeout",{request:n})},0)})},this.continuation=r("TimeSlice").getPlaceholderReusableContinuation(),this.transport=null,this.method="POST",this.uri="",this.timeout=null,this.timer=null,this.initialHandler=a=r("emptyFunction"),this.handler=null,this.uploadProgressHandler=null,this.errorHandler=r("AsyncResponse").defaultErrorHandler,this.transportErrorHandler=null,this.timeoutHandler=null,this.interceptHandler=a,this.finallyHandler=a,this.abortHandler=a,this.serverDialogCancelHandler=null,this.relativeTo=null,this.statusElement=null,this.statusClass="",this.data={},this.headers={},this.file=null,this.context={},this.readOnly=!1,this.writeRequiredParams=[],this.remainingRetries=0,this.userActionID="-",this.resourceTimingStoreUID=o("ResourceTimingsStore").getUID(r("ResourceTypes").XHR,e!=null?e.toString():""),this.flushedResponseTextParseIndex=0,this.option={asynchronous_DEPRECATED:!0,suppressErrorHandlerWarning:!1,suppressEvaluation:!1,suppressErrorAlerts:!1,retries:0,bundle:!1,handleErrorAfterUnload:!1,useFetchTransport:!1},this.transportErrorHandler=r("bind")(this,"errorHandler"),e!==void 0&&this.setURI(e),this.setAllowCrossPageTransition(r("AsyncRequestConfig").asyncRequestsSurviveTransitionsDefault||!1)}var a=t.prototype;return a._dispatchResponse=function(t){if(this.clearStatusIndicator(),!this._isRelevant()){this._invokeErrorHandler(v);return}if(this.initialHandler(t)!==!1){r("clearTimeout")(this.timer);var e,n=this.getHandler();try{e=this._shouldSuppressJS(n(t))}catch(e){throw t.is_last&&this.finallyHandler(t),e}e||this._handleJSResponse(t),t.is_last&&this.finallyHandler(t)}},a._shouldSuppressJS=function(n){return n===t.suppressOnloadToken},a._handlePreDisplayServerJS=function(t,n){var e=!1,o=[],a=function(){if(e)return r("FBLogger")("AsyncResponse").warn("registerToBlockDisplayUntilDone_DONOTUSE called after AsyncResponse display started. This is a no-op."),function(){};var t,n=new(r("Deferred"));return o.push(n.getPromise()),r("TimeSlice").guard(function(){t&&r("clearTimeout")(t),n.resolve()},"AsyncRequestDisplayBlockingEvent",{propagationType:r("TimeSlice").PropagationType.EXECUTION})};return t.handle(n,{bigPipeContext:{registerToBlockDisplayUntilDone_DONOTUSE:a}}),e=!0,o},a._hasEvalDomOp=function(t){return t&&t.length?t.some(function(e){return e[0]==="eval"}):!1},a._handleJSResponse=function(t){var e=this.getRelativeTo(),n=t.domops,a=t.dtsgToken,i=t.dtsgAsyncGetToken,l=t.jsmods,s,u=t.savedServerJSInstance;if(u&&u instanceof r("ServerJS")?s=u:s=new(r("ServerJS")),s.setRelativeTo(e),l){var c={define:l.define,instances:l.instances,markup:l.markup};delete l.define,delete l.instances,delete l.markup,this._hasEvalDomOp(n)&&(c.elements=l.elements,delete l.elements),s.handle(c)}var d=new(m||(m=r("URI")))(this.uri);(!d.getDomain()&&!d.getProtocol()||document.location.origin===d.getOrigin())&&(a&&o("DTSG").setToken(a),i&&o("DTSG_ASYNC").setToken(i)),n&&(g||(g=r("ErrorGuard"))).applyWithGuard(function(){return o("AsyncDOM").invoke(n,e)},null,[],{errorType:"warn"}),l&&s.handle(l),this._handleJSRegisters(t,"onload"),this._handleJSRegisters(t,"onafterload")},a._handleJSRegisters=function(t,n){var e=t[n];if(e)for(var o=0;o=300&&o<=399){i=u._(/*BTDS*/"Redirecci\u00f3n"),a=u._(/*BTDS*/"Esta ocasi\u00f3n tu acceso a Facebook fue redirigido o bloqueado por terceros, por favor contacta con tu ISP o vuelve a cargar la p\u00e1gina.");var s=n.getResponseHeader("Location");s&&r("goURI")(s,!0),l=!0}else i=u._(/*BTDS*/"\u00a1Uy!"),a=u._(/*BTDS*/"Se ha producido un error y estamos trabajando para solucionarlo lo antes posible. Pronto podr\u00e1s volver a intentarlo.");var c=new(r("AsyncResponse"))(this,n),d=n.getResponseHeader("Error-Mid");if(Object.assign(c,{error:o,errorSummary:i,errorDescription:a,silentError:l,errorMid:d}),r("setTimeout")(function(){r("Arbiter").inform("AsyncRequest/error",{request:e,response:c})},0),!(E()&&!this.getOption("handleErrorAfterUnload"))){var m=r("FBLogger")("asyncresponse");if(d!=null&&(m=m.addMetadata("OPES","MID",d)),!this.transportErrorHandler){m.mustfix("Async request to %s failed with a %d error, but there was no error handler available to deal with it.",this.getURI(),o);return}var p=this.getTransportErrorHandler().bind(this);this.getOption("suppressErrorAlerts")||S.has(o)?S.has(o)&&m.addToCategoryKey(String(o)).warn("Async request failed with error %s: %s when requesting %s",o,a.toString(),this.getURI()):m.addToCategoryKey(String(o)).mustfix("Async request failed with error %s: %s when requesting %s",o,a.toString(),this.getURI()),(g||(g=r("ErrorGuard"))).applyWithGuard(this._dispatchErrorResponse,this,[c,p])}}},a._isServerDialogErrorCode=function(t){return t==1357008||t==1357007||t==1357041||t==1442002||t==1357001},a._displayServerDialog=function(t,n,o){var e=this;o===void 0&&(o=!1);var a=t.getPayload();if(a.__dialog!==void 0){this._displayServerLegacyDialog(t,n);return}var i=a.__dialogx;if(new(r("ServerJS"))().handle(i),a.__should_use_mwa_reauth===!0){r("Bootloader").loadModules(["MWADeveloperReauthBarrier"],function(n){n.registerRequest(a.__dialogID,e,t)},"AsyncRequest");return}r("Bootloader").loadModules(["ConfirmationDialog"],function(n){n.setupConfirmation(t,e,o)},"AsyncRequest")},a._displayServerLegacyDialog=function(t,n){var e=this,o=t.getPayload().__dialog;if(r("gkx")("20935")){var a,i;r("FBLogger")("comet_infra").addMetadata("COMET_INFRA","ERROR_CODE",t.getError().toString()).addMetadata("COMET_INFRA","ERROR_URL",(a=(i=t.request)==null?void 0:i.getURI())!=null?a:"unknown").mustfix("AsyncRequest._displayServerLegacyDialog called in Comet")}r("Bootloader").loadModules(["Dialog"],function(r){var a=new r(o);n&&a.setHandler(e._displayConfirmationHandler.bind(e,a)),a.setCancelHandler(function(){var n=e.getServerDialogCancelHandler();try{n&&n(t)}catch(e){throw e}finally{e.finallyHandler(t)}}).setCausalElement(e.relativeTo).show()},"AsyncRequest")},a._displayConfirmationHandler=function(t){this.data.confirmed=1,Object.assign(this.data,t.getFormData()),this.send()},a.$1=function(t){t.subscribe("response",this._handleJSONPResponse.bind(this)),t.subscribe("abort",this._handleJSONPAbort.bind(this)),this.transport=t},a._handleJSONPResponse=function(t,n){var e=this.transport;if(e){n.bootloadOnly||(this.is_first=this.is_first===void 0);var r=this._interpretResponse(n);r.asyncResponse&&(r.asyncResponse.is_first=this.is_first,r.asyncResponse.is_last=e.hasFinished()),this.invokeResponseHandler(r),e.hasFinished()&&delete this.transport}},a._handleJSONPAbort=function(){this._invokeErrorHandler(),delete this.transport},a._handleXHRResponse=function(t){var e;if(this.getOption("suppressEvaluation"))e={asyncResponse:new(r("AsyncResponse"))(this,t)};else try{this._handleFlushedResponse();var n=t.responseText;n=this._filterOutFlushedText(n);var o=this._unshieldResponseText(n),a=JSON.parse(o);e=this._interpretResponse(a)}catch(t){var i=r("getErrorSafe")(t);e=i.message,r("FBLogger")("async_request").catching(i).warn("Failed to handle response")}this.invokeResponseHandler(e)},a._handleFlushedResponse=function(){var e=this.flushedResponseHandler,t=this.transport;if(e&&t){var n=t.responseText.indexOf(M),r=n===-1?t.responseText.length:n;e(t.responseText.substring(this.flushedResponseTextParseIndex,r)),this.flushedResponseTextParseIndex=r}},a._unshieldResponseText=function(t){if(t.length<=w){var e=new Error("Response too short on async");throw e.stack,e}for(var n=0;t.charAt(n)===" "||t.charAt(n)==="\n";)n++;return n&&t.substring(n,n+w)==M&&r("FBLogger")("asyncrequest").mustfix("Response for request to endpoint %s seems to be valid, but was preceded by whitespace. (This probably means that someone committed whitespace in a header file.)",this.getURI()),t.substring(n+w)},a._filterOutFlushedText=function(t){if(!this.flushedResponseHandler)return t;var e=t.indexOf(M);return e<0?t:t.substr(e)},a._interpretResponse=function(t){if(t.redirect)return{redirect:t.redirect};if(t.bootloadOnly)return{bootloadOnly:t.bootloadOnly};var e=t.error&&this._isServerDialogErrorCode(t.error);this._shouldReplaceTransportMarkers&&t.payload&&!e&&r("replaceTransportMarkers")({relativeTo:this.getRelativeTo(),bigPipeContext:null},t.payload);var n=new(r("AsyncResponse"))(this);if(t.__ar!=1)r("FBLogger")("AsyncRequest").warn("AsyncRequest to endpoint %s returned a JSON response, but it is not properly formatted. The endpoint needs to provide a response using the AsyncResponse class in PHP.",this.getURI()),n.payload=t;else{Object.assign(n,t);var o=this.transport;o&&o.getAllResponseHeaders!==void 0&&(n.responseHeaders=o.getAllResponseHeaders())}return{asyncResponse:n}},a._isMultiplexable=function(){return this.getOption("useFetchTransport")?(r("FBLogger")("AsyncRequest").mustfix("You cannot bundle AsyncRequest that uses iframe transport."),!1):r("isFacebookURI")(new(m||(m=r("URI")))(this.uri))?this.getOption("asynchronous_DEPRECATED")?!0:(r("FBLogger")("AsyncRequest").mustfix("We cannot bundle synchronous AsyncRequests"),!1):(r("FBLogger")("AsyncRequest").mustfix("You can not bundle AsyncRequest sent to non-facebook URIs. Uri: %s",this.getURI()),!1)},a.handleResponse=function(t){var e=this._interpretResponse(t);this.invokeResponseHandler(e)},a.setMethod=function(t){return this.method=t.toString().toUpperCase(),this},a.getMethod=function(){return this.method},a.setData=function(t){return this.data=t,this},a.setRequestHeader=function(t,n){return this.headers[t]=n,this},a.setRawData=function(t){return this.rawData=t,this},a.getData=function(){return this.data},a.setContextData=function(t,n,r){return r=r===void 0?!0:r,r&&(this.context["_log_"+t]=n),this},a._setUserActionID=function(){this.userActionID=(o("SessionName").getName()||"-")+"/-"},a.setURI=function(t,n){n===void 0&&(n=!1),typeof t=="string"&&t.match(/^\/?u_\d+_\d+/)&&r("FBLogger")("asyncrequest").warn("Invalid URI %s",t);var e=new(m||(m=r("URI")))(t);return this.getOption("useFetchTransport")&&!r("isFacebookURI")(e)?(r("FBLogger")("asyncrequest").mustfix("IframeTransport requests should only be used when going between different Facebook subdomains. This probably won't do what you want if you're going to a non-Facebook URI."),!n||c(0,45284),this):!this._allowCrossOrigin&&!this.getOption("useFetchTransport")&&!e.isSameOrigin()&&!r("uriIsRelativePath")(e)?(r("FBLogger")("asyncrequest").mustfix("Asynchronous requests must specify relative URIs (like %s); this ensures they conform to the Same Origin Policy (see %s). The provided absolute URI (%s) is invalid, use a relative URI instead.","/path/to/endpoint.php","http://www.mozilla.org/projects/security/components/same-origin.html",e.toString()),!n||c(0,45285),this):(this._setUserActionID(),!t||e.isEmpty()?(r("FBLogger")("async_request").mustfix("URI cannot be empty"),this):(this.uri=o("ZeroRewrites").rewriteURI(e),this))},a.getURI=function(){return this.uri.toString()},a.delayPreDisplayJS=function(t){return t===void 0&&(t=!0),this._delayPreDisplayJS=t,this},a.setInitialHandler=function(t){return this.initialHandler=t,this},a.setPayloadHandler=function(t){return this.setHandler(function(e){t(e.payload)}),this},a.setHandler=function(t){return x(t)&&(this.handler=t),this},a.setFlushedResponseHandler=function(t){return x(t)&&(this.flushedResponseHandler=t),this},a.getHandler=function(){return this.handler||r("emptyFunction")},a.setProgressHandler=function(t){return x(t)&&(this.progressHandler=t),this},a.setUploadProgressHandler=function(t){return x(t)&&(this.uploadProgressHandler=t),this},a.setErrorHandler=function(t){return x(t)&&(this.errorHandler=t),this},a.setTransportErrorHandler=function(t){return this.transportErrorHandler=t,this},a.getErrorHandler=function(){return this.errorHandler||r("emptyFunction")},a.getTransportErrorHandler=function(){return this.transportErrorHandler||r("emptyFunction")},a.setTimeoutHandler=function(t,n){return x(n)&&(this.timeout=t,this.timeoutHandler=n),this},a.resetTimeout=function(t){if(this.timeoutHandler===null)r("FBLogger")("asyncrequest").mustfix("The timeout handler hasn't been set yet");else if(t===null)this.timeout=null,r("clearTimeout")(this.timer),this.timer=null;else{var e=!this._allowCrossPageTransition;this.timeout=t,r("clearTimeout")(this.timer),e?this.timer=r("setTimeout")(this._handleTimeout.bind(this),this.timeout):this.timer=r("setTimeoutAcrossTransitions")(this._handleTimeout.bind(this),this.timeout)}return this},a.setNewSerial=function(){return this.id=++$,this},a.setInterceptHandler=function(t){return this.interceptHandler=t,this},a.setFinallyHandler=function(t){return this.finallyHandler=t,this},a.setAbortHandler=function(t){return this.abortHandler=t,this},a.getServerDialogCancelHandler=function(){return this.serverDialogCancelHandler},a.setServerDialogCancelHandler=function(t){return this.serverDialogCancelHandler=t,this},a.setPreBootloadHandler=function(t){return this.preBootloadHandler=t,this},a.setReadOnly=function(t){return typeof t!="boolean"?r("FBLogger")("asyncrequest").mustfix("AsyncRequest readOnly value must be a boolean."):this.readOnly=t,this},a.getReadOnly=function(){return this.readOnly},a.setRelativeTo=function(t){return this.relativeTo=t,this},a.getRelativeTo=function(){return this.relativeTo},a.setStatusClass=function(t){return this.statusClass=t,this},a.setStatusElement=function(t){return this.statusElement=t,this},a.getStatusElement=function(){return r("ge")(this.statusElement)},a._isRelevant=function(){return this._allowCrossPageTransition||!this.id?!0:this.id>P},a.clearStatusIndicator=function(){var e=this.getStatusElement();e&&(o("CSS").removeClass(e,"async_saving"),o("CSS").removeClass(e,this.statusClass))},a._addStatusIndicator=function(){var e=this.getStatusElement();e&&(o("CSS").addClass(e,"async_saving"),o("CSS").addClass(e,this.statusClass))},a.specifiesWriteRequiredParams=function(){var e=this;return this.writeRequiredParams.every(function(t){return e.data[t]=e.data[t]||(_||(_=r("Env")))[t]||(r("ge")(t)||{}).value,e.data[t]!==void 0})},a.setOption=function(t,n){return typeof this.option[t]!="undefined"?this.option[t]=n:r("FBLogger")("asyncrequest").warn("AsyncRequest option %s does not exist; request to set it was ignored.",t),this},a.getOption=function(t){return typeof this.option[t]=="undefined"&&r("FBLogger")("asyncrequest").warn("AsyncRequest option %s does not exist, get request failed.",t),this.option[t]},a.abort=function(){var e=this;this.continuation.last(function(){var t=e.transport;if(t){var n=e.getTransportErrorHandler();e.setOption("suppressErrorAlerts",!0),e.setTransportErrorHandler(r("emptyFunction")),e._requestAborted=!0,t.abort(),e.setTransportErrorHandler(n)}e.abortHandler(),B.unschedule(e)})},a.abandon=function(){var e=this;this.continuation.last(function(){var t;r("clearTimeout")(e.timer),e.setOption("suppressErrorAlerts",!0).setHandler(t=r("emptyFunction")).setErrorHandler(t).setTransportErrorHandler(t).setProgressHandler(t).setUploadProgressHandler(t);var n=e.transport;n&&(e._requestAborted=!0,k(n)&&delete n.onprogress,I(n)&&delete n.upload.onprogress,n.abort()),e.abortHandler(),B.unschedule(e)})},a.setNectarModuleDataSafe=function(t){var e=this.setNectarModuleData;return e!=null&&e.call(this,t),this},a.setAllowCrossPageTransition=function(t){return this._allowCrossPageTransition=!!t,this.timer&&this.resetTimeout(this.timeout),this},a.getAllowIrrelevantRequests=function(){return this._allowIrrelevantRequests},a.setAllowIrrelevantRequests=function(t){return this._allowIrrelevantRequests=t,this},a.setAllowCrossOrigin=function(t){return this._allowCrossOrigin=t,this},a.setAllowCredentials=function(t){return this._allowCredentials=t,this},a.setIsBackgroundRequest=function(t){return this._isBackgroundRequest=t,this},a.setReplaceTransportMarkers=function(t){return t===void 0&&(t=!0),this._shouldReplaceTransportMarkers=t,this},a.sendAndReturnAbortHandler=function(){var e=this;return this.send(),function(){return e.abort()}},a.send=function(a){var n=this;if(a=a||!1,!this.uri)return r("FBLogger")("asyncrequest").mustfix("Attempt to dispatch an AsyncRequest without an endpoint URI! This is all sorts of silly and impossible, so the request failed."),!1;if(!this.errorHandler&&!this.getOption("suppressErrorHandlerWarning")&&r("FBLogger")("asyncrequest").warn("Dispatching an AsyncRequest that does not have an error handler. You SHOULD supply one, or use AsyncSignal). If this omission is intentional and well-considered, set the %s option to suppress this warning.","suppressErrorHandlerWarning"),this.getOption("useFetchTransport")&&this.method!="GET"&&(r("FBLogger")("asyncrequest").warn("Iframe transport currently works only with GET."),this.setMethod("GET")),this.timeoutHandler!==null&&this.getOption("useFetchTransport")&&r("FBLogger")("asyncrequest").warn("Timeouts aren't currently supported with iframe transport requests."),!this.getReadOnly()&&(this.specifiesWriteRequiredParams(),this.method!="POST"))return r("FBLogger")("asyncrequest").mustfix("You are making a GET request which modifies data; this violates the HTTP spec and is generally a bad idea. Either change this request to use POST or use setReadOnly() to mark the request as idempotent and appropriate for HTTP GET. Consult the setReadOnly() documentation for more information."),!1;if(document.location.search.toString().includes(this.uri.toString()))return r("FBLogger")("asyncrequest").mustfix("You are trying to send an AsyncRequest where the destination URI is contained within the current URI's query string. That suggests you are taking the destination URL as input from the request. If you allow arbitrary URLs to be sent in that way you bypass CSRF protection and cause a SEV. Please post in https://fb.workplace.com/groups/secinfra/ if you feel this is a false positive."),!1;if(this.uri.toString().includes("/../")||this.uri.toString().includes("\\../")||this.uri.toString().includes("/..\\")||this.uri.toString().includes("\\..\\"))return r("FBLogger")("asyncrequest").mustfix("The URI cannot contain any character sequences that would allow path traversal."),!1;if(Object.assign(this.data,r("getAsyncParams")(this.method)),(f||(f=r("isEmpty")))(this.context)||(Object.assign(this.data,this.context),this.data.ajax_log=1),(_||(_=r("Env"))).force_param&&Object.assign(this.data,(_||(_=r("Env"))).force_param),this._setUserActionID(),this.getOption("bundle")&&this._isMultiplexable())return B.schedule(this),!0;this.setNewSerial(),this.getOption("asynchronous_DEPRECATED")||this.uri.addQueryData({__sjax:1}),r("Arbiter").inform("AsyncRequest/send",{request:this,ts:(p||(p=r("performanceAbsoluteNow")))()});var i,l;if(this.method=="GET"&&this.uri.addQueryData({fb_dtsg_ag:o("DTSG_ASYNC").getToken()}),o("AdsManagerConstURIUtils").shouldRouteToAMReadRegions(this.uri.toString())&&this.getReadOnly()&&this.method.toLowerCase()==="get"?this.uri.addQueryData({ads_manager_read_regions:!0}):o("AdsManagerConstURIUtils").shouldRouteToAMWriteRegions(this.uri.toString(),this.getReadOnly())&&this.uri.addQueryData({ads_manager_write_regions:!0}),this.method=="GET"||this.rawData?(i=this.uri.addQueryData(this.data).toString(),l=this.rawData||""):(this._allowCrossOrigin&&this.uri.addQueryData({__a:1}),i=this.uri.toString(),l=(e||(e=o("PHPQuerySerializer"))).serialize(this.data)),this.transport)return r("FBLogger")("asyncrequest").mustfix("You must wait for an AsyncRequest to complete before sending another request with the same object. To send two simultaneous requests, create a second AsyncRequest object."),!1;if(this.getOption("useFetchTransport"))try{var s=new(r("FetchStreamTransport"))(this.uri);return this.$1(s),this._markRequestSent(),s.send(),!0}catch(e){this.setOption("useFetchTransport",!1)}this.flushedResponseHandler&&(this.flushedResponseTextParseIndex=0);var u;try{u=o("ZeroRewrites").getTransportBuilderForURI(this.uri)()}catch(e){var c=r("FBLogger")("comet_infra").blameToPreviousFrame();throw e instanceof Error?c.catching(e).mustfixThrow(e.message):c.mustfixThrow("Error getting transport builder for URI")}if(!u)return r("FBLogger")("asyncrequest").mustfix("Unable to build XMLHTTPRequest transport."),!1;this.schedule("AsyncRequest.send"),u.onreadystatechange=function(){var e=n.transport;e&&e.readyState>=2&&e.readyState<=3&&n._handleFlushedResponse(),u.readyState===4&&n.continuation.last(n._onStateChange)},this.progressHandler&&k(u)&&(u.onprogress=function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&location.reload()}};n("cr:3376")!=null?r("promiseDone")(n("cr:3376")(_.toString(),{data:p,method:"POST"}),function(){return h()},function(e){r("gkx")("20935")&&r("FBLogger")("comet_infra").mustfix("Cookie consent has not been set successfully: %s",e.errorMsg)}):n("cr:1083116")!=null&&new(n("cr:1083116"))(_.toString()).setData(p).setHandler(function(){return h()}).send()}},registerCallbackOnFirstPartyCookieFlush:function(n){(e||(e=r("CookieConsent"))).hasFirstPartyConsent()?n():(c.has(1)||c.set(1,new(r("SubscriptionList"))),r("nullthrows")(c.get(1)).add(n))},registerCallbackOnCookieFlushWithIntegrations:function(n,o){var t=(e||(e=r("CookieConsent"))).hasThirdPartyConsent([n]);t.get(n)===!0?o():(d.has(n)||d.set(n,new(r("SubscriptionList"))),r("nullthrows")(d.get(n)).add(o))}},p=m;l.default=p}),98); __d("FbtLogging",["cr:1094907"],(function(t,n,r,o,a,i,l){"use strict";var e=n("cr:1094907")==null?void 0:n("cr:1094907").logImpression;l.logImpression=e}),98); __d("IntlQtEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1848815"),s=o("FalcoLoggerInternal").create("intl_qt_event",e),u=s;l.default=u}),98); __d("PixelRatioConst",[],(function(t,n,r,o,a,i){var e=Object.freeze({cookieName:"dpr"});i.default=e}),66); __d("WebPixelRatioDetector",["Cookie","DOMEventListener","PixelRatioConst","Run","WebPixelRatio"],(function(t,n,r,o,a,i,l){"use strict";var e=!1,s=!1;function u(){return window.devicePixelRatio||1}function c(){r("Cookie").set(r("PixelRatioConst").cookieName,String(u()))}function d(){s||(s=!0,u()!==o("WebPixelRatio").get()&&c())}function m(t){e||(e=!0,"onpagehide"in window&&o("DOMEventListener").add(window,"pagehide",d),o("Run").onBeforeUnload(d,!1))}l.startDetecting=m}),98);