;/*FB_PKG_DELIM*/ __d("Base64",[],(function(t,n,r,o,a,i){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(t){var n=t.charCodeAt(0)<<16|t.charCodeAt(1)<<8|t.charCodeAt(2);return String.fromCharCode(e.charCodeAt(n>>>18),e.charCodeAt(n>>>12&63),e.charCodeAt(n>>>6&63),e.charCodeAt(n&63))}var s=">___?456789:;<=_______\0\x07\b \n\v\f\r______\x1B !\"#$%&'()*+,-./0123";function u(e){var t=s.charCodeAt(e.charCodeAt(0)-43)<<18|s.charCodeAt(e.charCodeAt(1)-43)<<12|s.charCodeAt(e.charCodeAt(2)-43)<<6|s.charCodeAt(e.charCodeAt(3)-43);return String.fromCharCode(t>>>16,t>>>8&255,t&255)}var c={encode:function(t){var e=unescape(encodeURI(t)),n=(e.length+2)%3;return e=(e+"\0\0".slice(n)).replace(/[\s\S]{3}/g,l),e.slice(0,e.length+n-2)+"==".slice(n)},decode:function(t){var e=t.replace(/[^A-Za-z0-9+\/]/g,""),n=e.length+3&3;e=(e+"AAA".slice(n)).replace(/..../g,u),e=e.slice(0,e.length+n-3);try{return decodeURIComponent(escape(e))}catch(e){var r=new Error("Not valid UTF-8");throw r.stack,r}},encodeObject:function(t){return c.encode(JSON.stringify(t))},decodeObject:function(t){return JSON.parse(c.decode(t))},encodeNums:function(n){return String.fromCharCode.apply(String,n.map(function(t){return e.charCodeAt((t|-(t>63?1:0))&-(t>0?1:0)&63)}))}},d=c;i.default=d}),66); __d("BladeRunnerDeferredClient",["Promise","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.requestStream=function(t,n,o,a){return this.$2(),r("nullthrows")(this.$1).then(function(e){return e.requestStream(t,n,o,a)})},o.logInfo=function(t){return this.$2(),r("nullthrows")(this.$1).then(function(e){e.logInfo(t)})},o.bumpCounter=function(t){return this.$2(),r("nullthrows")(this.$1).then(function(e){e.bumpCounter(t)})},o.$2=function(){this.$1==null&&(this.$1=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("BladeRunnerClient").__setRef("BladeRunnerDeferredClient").onReady(function(t){e(new t)})}))},t})(),u=new s;l.default=u}),98); __d("BladeRunnerStreamHandler",[],(function(t,n,r,o,a,i){function e(e){throw new TypeError('"'+e+'" is read-only')}var l=(function(){function e(e,t,n,r,o,a){this.$1=e,this.$2=t,this.$3=n||function(){},this.$4=r||function(){},this.$5=o||function(){},this.$6=a}var t=e.prototype;return t.onData=function(t){var e=this.$1,n=this.$2;if(e!=null)e(t.decodeData());else if(n!=null){for(var r=atob(t.rawData()),o=new Uint8Array(r.length),a=0;a=1e4?Math.round(Math.min(e/1e4,6))*10:Math.round(Math.min(e/1e3,10));r("BladeRunnerDeferredClient").bumpCounter("status_latency."+this.$BladeRunnerInstrumentedStreamHandler$p_2+"."+o+".s")}window.clearTimeout(this.$BladeRunnerInstrumentedStreamHandler$p_5)},n})(r("BladeRunnerStreamHandler"));l.default=s}),98); __d("CacheStorage",["ErrorGuard","ExecutionEnvironment","WebStorage","cr:6943","cr:8958","emptyFunction","err","getErrorSafe"],(function(t,n,r,o,a,i,l){var e,s,u,c,d="_@_",m="3b",p="CacheStorageVersion",_={length:0,getItem:c=r("emptyFunction"),setItem:c,clear:c,removeItem:c,key:c},f=(function(){function e(e){this._store=e}var t=e.prototype;return t.getStore=function(){return this._store},t.keys=function(){for(var e=[],t=0;t0;return{authType:c?"GUEST":"ABRA",endpoint:"gateway.meta.ai",authToken:c?u:void 0}}return e.includes("facebook.net")?{endpoint:"gateway.facebook.com",authType:"GUEST"}:e.includes("commercepartnerhub.com")?{endpoint:"commercepartnerhub.com",authType:"GUEST"}:{endpoint:"",authType:""}}var p=new u;l.default=p}),98); __d("RtiRequestStreamE2eClientBatchFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("819"),s=o("FalcoLoggerInternal").create("rti_request_stream_e2e_client_batch",e),u=s;l.default=u}),98); __d("RtiRequestStreamE2eClientFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1857112"),s=o("FalcoLoggerInternal").create("rti_request_stream_e2e_client",e),u=s;l.default=u}),98); __d("RtiRequestStreamQosFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("8530"),s=o("FalcoLoggerInternal").create("rti_request_stream_qos",e),u=s;l.default=u}),98); __d("DGWRequestStreamDeferredClient",["ConstUriUtils","CurrentUser","Promise","RequestStreamE2EClientSamplingConfig","RtiRequestStreamE2eClientBatchFalcoEvent","RtiRequestStreamE2eClientFalcoEvent","RtiRequestStreamQosFalcoEvent","RtiWebRequestStreamClient","WebDriverConfig","asyncToGeneratorRuntime","cr:3024","gkx","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.refreshStreamGroup=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=yield this.$1;t==null||t.refreshStreamGroup(e)});function t(t){return e.apply(this,arguments)}return t})(),o.createStream=function(t,n,o,a,i){return this.$2(),r("nullthrows")(this.$1).then(function(e){return e.createStream(t,n,o,a,i)})},o.$2=function(){if(this.$1==null){var t=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("DGWRequestStreamClient").__setRef("DGWRequestStreamDeferredClient").onReady(e)}),o=new e(function(e){r("requireDeferred")("DGWClient").__setRef("DGWRequestStreamDeferredClient").onReady(e)}),a=new e(function(e){r("requireDeferred")("DGWEnvUtil").__setRef("DGWRequestStreamDeferredClient").onReady(e)});this.$1=e.all([t,o,a]).then(function(e){var t=e[0],n=e[1],r=e[2];return new t(u(n,r))})}},t})();function u(e,t){var a;return{dgwStreamFactoryConfig:{get_log_dgw_streamgroup:function(){return r("gkx")("20920")},dgw_client_factory:e},dgwRequestStreamRefConfig:{get_web_rs_unlimited_retries:function(){return r("gkx")("20916")},get_webdriver_test_request_id:function(){var e;return r("WebDriverConfig").isTestRunning&&(e=n("cr:3024")==null?void 0:n("cr:3024").get())!=null?e:null},get_overrideHeaders:function(){return r("RtiWebRequestStreamClient").overrideHeaders},e2e_logger_config:{domain:(a=o("ConstUriUtils").getUri(window.location.href))==null?void 0:a.getDomain(),rs_e2e_client_event_logger:r("RtiRequestStreamE2eClientFalcoEvent"),rs_e2e_client_batch_event_logger:r("RtiRequestStreamE2eClientBatchFalcoEvent")},e2e_logger_sampling_config:r("RequestStreamE2EClientSamplingConfig")},sciIsolationConfig:{get_sci_dogfooding:function(){return r("gkx")("3193")},get_js_rs_client_route_entity_presence_to_sci:function(){return r("gkx")("18246")},get_js_rs_client_route_presence_unified_json_to_sci:function(){return r("gkx")("18259")}},enableQoSTelemetry:function(){return r("gkx")("25070")},qosLogger:r("RtiRequestStreamQosFalcoEvent"),qosNetworkProbeUrl:t.getDGWEndpoint().replace(/^wss:\/\//,"https://").replace(/\/ws$/,"")+"/proxygen/health",qosLoggingUserId:String(r("CurrentUser").getID())}}var c=new s;l.default=c}),98); __d("EventListenerImplForCacheStorage",["CometEventListener"],(function(t,n,r,o,a,i,l){"use strict";l.default=r("CometEventListener")}),98); __d("FBLynxBase",["$","LinkshimHandlerConfig","URI","cr:7736","isLinkshimURI"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(e){if(!r("isLinkshimURI")(e))return null;var t=e.getQueryData().u;return t||null}var u={logAsyncClick:function(t){u.swapLinkWithUnshimmedLink(t);var e=t.getAttribute("data-lynx-uri");e==null||e===""||n("cr:7736").log(e)},originReferrerPolicyClick:function(t){var e=r("$")("meta_referrer");e.content=r("LinkshimHandlerConfig").switched_meta_referrer_policy,u.logAsyncClick(t),setTimeout(function(){e.content=r("LinkshimHandlerConfig").default_meta_referrer_policy},100)},swapLinkWithUnshimmedLink:function(n){var t=n.href,o=s(new(e||(e=r("URI")))(t));o==null||o===""||(n.setAttribute("data-lynx-uri",t),n.href=o)},revertSwapIfLynxURIPresent:function(t){var e=t.getAttribute("data-lynx-uri");e==null||e===""||(t.removeAttribute("data-lynx-uri"),t.href=e)}},c=u;l.default=c}),98); __d("FBLynx",["Base64","Event","FBLynxBase","LinkshimHandlerConfig","Parent","URI"],(function(t,n,r,o,a,i){"use strict";var e,l=(e||(e=n("URI"))).goURIOnWindow,s={alreadySetup:!1,setupDelegation:function(r){if(r===void 0&&(r=!1),!!document.documentElement){if(document.body==null){if(r)return;window.setTimeout(function(){s.setupDelegation(!0)},100);return}if(!s.alreadySetup){s.alreadySetup=!0;var t=function(r){var t=s.getMaybeLynxLink(r.target);if(t){var o=t[0],a=t[1],i=a,u=new(e||(e=n("URI")))(a.href),c;if(n("LinkshimHandlerConfig").ghl_param_link_shim&&o!=="hover"){var d,m=(d=a.dataset)==null?void 0:d.attributes;if(m!=null&&m!==""&&(c=n("Base64").decodeObject(m),c&&c.open_link)){var p;for(p in c)p!=="open_link"&&u.addQueryData(p,c[p]);var _=a.cloneNode(!0);_.href=u.toString(),i=_}}switch(o){case"async":case"asynclazy":n("FBLynxBase").logAsyncClick(i);break;case"origin":n("FBLynxBase").originReferrerPolicyClick(i);break;case"hover":s.hoverClick(i);break}n("LinkshimHandlerConfig").ghl_param_link_shim&&o!=="hover"&&c&&c.open_link&&(r.preventDefault(),l(u,window.open("",i.target),!0))}};n("Event").listen(document.body,"click",t),n("LinkshimHandlerConfig").middle_click_requires_event&&n("Event").listen(document.body,"mouseup",function(e){e.button==1&&t(e)}),n("Event").listen(document.body,"mouseover",function(e){var t=s.getMaybeLynxLink(e.target);if(t){var n=t[0],r=t[1];switch(n){case"async":case"asynclazy":case"origin":case"hover":s.mouseover(r);break}}}),n("Event").listen(document.body,"contextmenu",function(e){var t=s.getMaybeLynxLink(e.target);if(t){var n=t[0],r=t[1];switch(n){case"async":case"hover":case"origin":s.contextmenu(r);break;case"asynclazy":break}}})}}},getMaybeLynxLink:function(t){var e=n("Parent").byAttribute(t,"data-lynx-mode");if(e instanceof HTMLAnchorElement){var r=e.getAttribute("data-lynx-mode");switch(r){case"async":case"asynclazy":case"hover":case"origin":return[r,e];default:return null}}return null},hoverClick:function(t){n("FBLynxBase").revertSwapIfLynxURIPresent(t)},mouseover:function(t){n("FBLynxBase").swapLinkWithUnshimmedLink(t)},contextmenu:function(t){n("FBLynxBase").revertSwapIfLynxURIPresent(t)}};a.exports=s}),null); __d("XLynxAsyncCallbackControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/si/linkclick/ajax_callback/",Object.freeze({}),void 0),s=e;l.default=s}),98); __d("FBLynxLogging",["AsyncRequest","ODS","XLynxAsyncCallbackControllerRouteBuilder"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(t){var n=r("XLynxAsyncCallbackControllerRouteBuilder").buildURL({});new(r("AsyncRequest"))(n).setData({lynx_uri:t}).setErrorHandler(function(t){var n=t.getError();(e||(e=o("ODS"))).bumpEntityKey(3861,"linkshim","click_log.post.fail."+n)}).setTransportErrorHandler(function(t){var n=t.getError();(e||(e=o("ODS"))).bumpEntityKey(3861,"linkshim","click_log.post.transport_fail."+n)}).send()}l.log=s}),98); __d("MQTTRequestStreamUtils",["BladeRunnerStreamHandler","BladeRunnerStreamStatus","RequestStreamCommonRequestStreamCommonTypes"],(function(t,n,r,o,a,i,l){"use strict";var e="Stream closed",s="Stream rejected";function u(t){var n=function(r){switch(r){case o("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Accepted);break;case o("BladeRunnerStreamStatus").StreamStatus.STARTED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started);break;case o("BladeRunnerStreamStatus").StreamStatus.STOPPED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped);break;case o("BladeRunnerStreamStatus").StreamStatus.CLOSED:t.onTermination(e);break;case o("BladeRunnerStreamStatus").StreamStatus.REJECTED:t.onTermination(s);break}};return new(r("BladeRunnerStreamHandler"))(function(e){return t.onData(e)},null,n,function(e){return t.onLog(e)},null,function(){return t.onRetryUpdateRequestBody()})}l.TERMINATION_REASON_CLOSED=e,l.TERMINATION_REASON_REJECTED=s,l.convertToBRHandler=u}),98); __d("RequestStreamHandler",["err"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){function e(e){var t=e.onData,n=e.onFlowStatus,r=e.onLog,o=e.onRetryUpdateRequestBody,a=e.onTermination;this.$1=t||function(e){},this.$2=a||function(e){},this.$3=r||function(e){},this.$4=n,this.$5=o}var t=e.prototype;return t.onFlowStatus=function(t){this.$4(t)},t.onData=function(t){this.$1(t)},t.onTermination=function(t){this.$2(r("err")(t))},t.onLog=function(t){this.$3(t)},t.onRetryUpdateRequestBody=function(){if(this.$5!=null)return this.$5()},e})();l.default=e}),98); __d("TransportSelectingClientCCResolver",["Promise","TransportSelectingClientContextualConfig","asyncToGeneratorRuntime","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.getCCGroupName=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.$2();var t=yield r("nullthrows")(this.$1),n=new t(JSON.parse(r("TransportSelectingClientContextualConfig").rawConfig)).resolve({method:e});return n.get("group","default_group")});function t(t){return e.apply(this,arguments)}return t})(),o.getCCDGWUpsampleMultiplier=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.$2();var t=yield r("nullthrows")(this.$1),n=new t(JSON.parse(r("TransportSelectingClientContextualConfig").rawConfig)).resolve({method:e});return n.get("dgwUpsampleMultiplier",1)});function t(t){return e.apply(this,arguments)}return t})(),o.$2=function(){this.$1==null&&(this.$1=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("ContextualConfig").__setRef("TransportSelectingClientCCResolver").onReady(function(t){e(t)})}))},t})(),u=new s;l.default=u}),98); __d("TransportSelectingClientUtils",["BladeRunnerInstrumentedStreamHandler","DGWEnvUtil","MQTTRequestStreamUtils","TransportSelectingClientCCResolver","asyncToGeneratorRuntime","gkx"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n=o("MQTTRequestStreamUtils").convertToBRHandler(e);return t.startsWith("FBGQLS")||t.startsWith("SKY")?new(r("BladeRunnerInstrumentedStreamHandler"))(n,t):n}function s(e){var t=!1;switch(e){case"group1":t=r("gkx")("20921");break;case"group2":t=r("gkx")("20922");break;case"group3":t=r("gkx")("20923");break;case"group4":t=r("gkx")("20924");break;case"group5":t=r("gkx")("20925");break;case"group6":t=r("gkx")("20926");break}return t}function u(e){var t=!1;switch(e){case"skywalker":t=!0;break;case"skywalker_experiment1":t=!0;break;case"skywalker_experiment2":t=!0;break;case"skywalker_bulletin":t=!0;break}return t}function c(e){if(e!=null){var t=e.lastIndexOf("/"),n=t>0?e.substr(0,t):e;return n}}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=c(e);if(t!=null){var n=yield r("TransportSelectingClientCCResolver").getCCGroupName(t);return u(n)&&r("DGWEnvUtil").isDGWEnvCompatible()}return!1}),m.apply(this,arguments)}function p(e,t){var n=c(t);return e!=null&&e==="SKY"&&n!=null?n:e!=null?e:"unknown"}l.BRHandlerConverter=e,l.isDGWStream=s,l.isDGWAllowedSKYTopic=u,l.getTopicPrefix=c,l.isDGWSupportedSKYTopic=d,l.getMethodContextForCC=p}),98); __d("TransportSelectingClient",["BladeRunnerDeferredClient","DGWEnvUtil","DGWRequestStreamDeferredClient","ODS","RequestStreamHandler","TransportSelectingClientUtils","asyncToGeneratorRuntime","uuidv4"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){this.$1=r("DGWRequestStreamDeferredClient")}var a=t.prototype;return a.requestStream=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,a,i,l){var s,u=new(r("RequestStreamHandler"))(a);if(r("DGWEnvUtil").isDGWEnvCompatible()){t.method!=null&&(e||(e=o("ODS"))).bumpEntityKey(110,"TransportSelectingClient",t.method+".dgw_client.request_stream");var c=yield this.$1.createStream(t,n,i,u,{deviceId:r("uuidv4")(),authType:l==null?void 0:l.authType,authToken:l==null?void 0:l.authToken});return yield c.start(),c}t.method!=null&&(e||(e=o("ODS"))).bumpEntityKey(110,"TransportSelectingClient",t.method+".bladerunner_client.request_stream");var d=yield r("BladeRunnerDeferredClient").requestStream(t,n,o("TransportSelectingClientUtils").BRHandlerConverter(u,(s=t.method)!=null?s:"unknown"),i);return d});function a(e,n,r,o,a){return t.apply(this,arguments)}return a})(),t})();l.default=s}),98); __d("TransportSelectingClientSingleton",["TransportSelectingClient"],(function(t,n,r,o,a,i,l){"use strict";var e=new(r("TransportSelectingClient"));l.default=e}),98); __d("VideoDisplayTimePlayButton",["CSS","DataStore","Event"],(function(t,n,r,o,a,i,l){"use strict";var e={},s="_spinner";function u(e){return o("DataStore").get(e,"clicked",!1)}function c(t,n){var a=t.id;e[a]=r("Event").listen(t,"click",function(){n&&(o("CSS").hide(t),o("CSS").show(n)),o("DataStore").set(t,"clicked",!0)}),n&&(e[a+s]=r("Event").listen(n,"click",function(){n&&o("CSS").hide(n),o("CSS").show(t),o("DataStore").set(t,"clicked",!1)}))}function d(t){var n=t.id;Object.prototype.hasOwnProperty.call(e,n)&&e[n].remove();var r=n+s;Object.prototype.hasOwnProperty.call(e,r)&&e[r].remove()}l.getClicked=u,l.register=c,l.unregister=d}),98); __d("VideosRenderingInstrumentation",["DataStore","VideoPlayerHTML5Experiments","performanceAbsoluteNow"],(function(t,n,r,o,a,i,l){var e;function s(t){var n=r("VideoPlayerHTML5Experiments").useMonotonicallyIncreasingTimers?(e||(e=r("performanceAbsoluteNow")))():Date.now();return o("DataStore").set(t,"videos_rendering_instrumentation",n),n}function u(e){var t=o("DataStore").get(e,"videos_rendering_instrumentation",NaN);return Number.isNaN(t)&&(t=s(e)),t}l.storeRenderTime=s,l.retrieveRenderTime=u}),98); __d("XHRHttpError",[],(function(t,n,r,o,a,i){"use strict";var e="HTTP_CLIENT_ERROR",l="HTTP_PROXY_ERROR",s="HTTP_SERVER_ERROR",u="HTTP_TRANSPORT_ERROR",c="HTTP_UNKNOWN_ERROR";function d(t,n){if(n===0){var r=t.getProtocol();return r==="file"||r==="ftp"?null:u}else return n>=100&&n<200?l:n>=200&&n<300?null:n>=400&&n<500?e:n>=500&&n<600?s:n>=12001&&n<12156?u:c}i.HTTP_CLIENT_ERROR=e,i.HTTP_PROXY_ERROR=l,i.HTTP_SERVER_ERROR=s,i.HTTP_TRANSPORT_ERROR=u,i.HTTP_UNKNOWN_ERROR=c,i.getErrorCode=d}),66); __d("xhrSimpleDataSerializer",[],(function(t,n,r,o,a,i){"use strict";function e(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}i.default=e}),66); __d("XHRRequest",["invariant","DTSGUtils","Env","ErrorGuard","FBLogger","LSD","Log","NetworkStatus","ResourceTimingsStore","ResourceTypes","SprinkleConfig","TimeSlice","URI","XHRHttpError","ZeroRewrites","cr:8959","cr:8960","fb-error","getAsyncHeaders","performance","xhrSimpleDataSerializer"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=n("fb-error").ErrorXFBDebug,m=!1,p=!1,_={loadedBytes:0,totalBytes:0};function f(t){return n("ZeroRewrites").rewriteURI(new(e||(e=n("URI")))(t))}var g=(function(){"use strict";function t(e){this.$3=function(){return null},this.$20=f(e),this.$7="POST",this.$6={},this.setResponseType(null),this.setTransportBuilder(n("ZeroRewrites").getTransportBuilderForURI(this.getURI())),this.setDataSerializer(n("xhrSimpleDataSerializer")),this.$12=n("ResourceTimingsStore").getUID(n("ResourceTypes").XHR,e!=null?e.toString():"")}var r=t.prototype;return r.setURI=function(t){return this.$20=f(t),this},r.getURI=function(){return this.$20},r.setResponseType=function(t){return this.$14=t,this},r.setMethod=function(t){return this.$7=t,this},r.getMethod=function(){return this.$7},r.setData=function(t){return this.$2=t,this},r.getData=function(){return this.$2},r.setRawData=function(t){return this.$11=t,this},r.setRequestHeader=function(t,n){return this.$6[t]=n,this},r.setTimeout=function(t){return this.$15=t,this},r.getTimeout=function(){return this.$15},r.setResponseHandler=function(t){return this.$13=t,this},r.getResponseHandler=function(){return this.$13},r.setErrorHandler=function(t){return this.$5=t,this},r.getErrorHandler=function(){return this.$5},r.setNetworkFailureHandler=function(t){return this.$8=t,this},r.getNetworkFailureHandler=function(){return this.$8},r.getResponseHeader=function(t){var e=this.$9;return e?e.getResponseHeader(t):null},r.setAbortHandler=function(t){return this.$1=t,this},r.getAbortHandler=function(){return this.$1},r.setTimeoutHandler=function(t){return this.$16=t,this},r.getTimeoutHandler=function(){return this.$16},r.setUploadProgressHandler=function(t){return this.$19=t,this},r.setDownloadProgressHandler=function(t){return this.$4=t,this},r.setTransportBuilder=function(t){return!this.$18||!n("ZeroRewrites").isRewritten(this.$20)?this.$18=t:n("FBLogger")("iorg-FOS").blameToPreviousFile().mustfix("can not set new TransportBuilder for the request %s",String(this.getURI())),this},r.setDataSerializer=function(t){return this.$3=t,this},r.setWithCredentials=function(t){return this.$21=t,this},r.send=function(){var t=this,r=this.$15,o=this.$18;if(!o)return;var a=o(),i=this.getURI();if(i.toString().includes("/../")||i.toString().includes("/..\\")||i.toString().includes("\\../")||i.toString().includes("\\..\\")){n("Log").error("XHRRequest.send(): path traversal is not allowed.");return}if(m===!0)return;var u=new(e||(e=n("URI")))(i).getQualifiedURI().toString(),c=this.$12;n("ResourceTimingsStore").updateURI(n("ResourceTypes").XHR,c,u),n("ResourceTimingsStore").measureRequestSent(n("ResourceTypes").XHR,c),this.$9=a;var d;this.$7==="POST"||!this.$11||l(0,2346,this.$11,i);var p=(s||(s=n("Env"))).force_param;if(p&&(this.$2=babelHelpers.extends({},this.getData()||{},p)),this.$7==="GET"&&n("DTSGUtils").shouldAppendToken(i)){var _=n("cr:8960").getCachedToken?n("cr:8960").getCachedToken():n("cr:8960").getToken();_!=null&&_!==""&&(this.$2?this.$2.fb_dtsg_ag=_:this.$2={fb_dtsg_ag:_},n("SprinkleConfig").param_name&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(_)))}if(this.$7==="POST"&&n("DTSGUtils").shouldAppendToken(i)){var f=n("cr:8959").getCachedToken?n("cr:8959").getCachedToken():n("cr:8959").getToken();f!=null&&f!==""&&(this.$2?this.$2.fb_dtsg=f:this.$2={fb_dtsg:f},n("SprinkleConfig").param_name&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(f))),n("LSD").token!=null&&n("LSD").token!==""&&(this.$2?this.$2.lsd=n("LSD").token:this.$2={lsd:n("LSD").token},n("SprinkleConfig").param_name!=null&&n("SprinkleConfig").param_name!==""&&(f==null||f==="")&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(n("LSD").token)))}this.$7==="GET"||this.$11?(i.addQueryData(this.$2),d=this.$11):d=this.$3(this.$2);function g(e){n("ResourceTimingsStore").measureResponseReceived(n("ResourceTypes").XHR,c);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),r=1;r=2){var i=a===4;i&&d.addFromXHR(o);var l=e.getURI(),s=n("XHRHttpError").getErrorCode(l,o.status),m=e.$13;if(s!=null){if(i){var _=119500;s==="HTTP_TRANSPORT_ERROR"&&e.$10!=null&&e.$10!==0&&e.$10+_<(c||(c=n("performance"))).now()&&(s="HTTP_STREAM_TIMEOUT");var f={errorCode:s,errorMsg:e.$29(o),errorRawTransport:o.constructor.name,errorRawTransportStatus:o.status,errorRawResponseHeaders:m&&m.includeHeaders?o.getAllResponseHeaders():null,errorType:o.status?"HTTP "+o.status:"HTTP"};e.$5?(u||(u=n("ErrorGuard"))).applyWithGuard(t.bind(void 0,e.$5),null,[f],{name:"XHRRequest:_errorHandler"}):t(function(){})}}else if(m){if(i||m.parseStreaming&&a===3){var g=i?t:r,h=m!=null&&m.includeHeaders?o.getAllResponseHeaders():null,y=e.$29(o);e.$10=(c||(c=n("performance"))).now();var C=200*1e3*1e3;m.parseStreaming&&typeof y=="string"&&y.length>C&&!p&&(p=!0,n("FBLogger")("comet_infra").mustfix("Streaming reponse exceeding size limits and will OOM soon: %s",String(e.getURI()))),(u||(u=n("ErrorGuard"))).applyWithGuard(g.bind(void 0,m),null,[y,h,i],{name:"XHRRequest:handler"})}}else i&&t(function(){});i&&(s!="HTTP_TRANSPORT_ERROR"&&n("NetworkStatus").reportSuccess(),e.$28())}}}},r.$24=function(t){_.loadedBytes=t.loaded,_.totalBytes=t.total,this.$19&&(u||(u=n("ErrorGuard"))).applyWithGuard(this.$19,null,[_],{name:"XHRRequest:_uploadProgressHandler"})},r.$25=function(t){var e={loadedBytes:t.loaded,totalBytes:t.total};this.$4&&(u||(u=n("ErrorGuard"))).applyWithGuard(this.$4,null,[e],{name:"XHRRequest:_downloadProgressHandler"})},r.$28=function(){window.clearTimeout(this.$17),this.$9=null},t.disable=function(){m=!0},t})();a.exports=g}),null); __d("generateLiteTypedLogger",["Banzai","JstlMigrationFalcoEvent","getDataWithLoggerOptions"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n){var o=e.split(":")[0],a=e.split(":")[1];o=="logger"?r("JstlMigrationFalcoEvent").log(function(){return{logger_config_name:a,payload:t}}):r("Banzai").post(e,t,n)}function s(t){return{log:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),r("Banzai").BASIC)},logVital:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),r("Banzai").VITAL)},logImmediately:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),{signal:!0})}}}l.default=s}),98);