;/*FB_PKG_DELIM*/ __d("BDHeaderConfig",[],(function(t,n,r,o,a,i){"use strict";var e="359341";i.ASBD_ID=e}),66); __d("FbtResultBase",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(e,t){this.$1=e,this.__errorListener=t,this.$3=!1,this.$2=null}var t=e.prototype;return t.flattenToArray=function(){return e.flattenToArray(this.$1)},t.getContents=function(){return this.$1},t.toString=function(){if(Object.isFrozen(this))return this.$4();if(this.$3)return"<>";this.$3=!0;try{return this.$4()}finally{this.$3=!1}},t.$4=function(){if(this.$2!=null)return this.$2;for(var t="",n=this.flattenToArray(),r=0;rl}function k(){return L()&&h}function I(){return R(),s}function T(){return R(),u}function D(){return R(),c}function x(){return D()}function $(){return R(),d}function P(){return R(),_}function N(){return R(),p}function M(){return R(),f}function w(){return R(),y}function A(){return R(),y||C||g||S}function F(){return R(),v!=null?null:b}function O(){return R(),g}function B(){return R(),C}i.ie=L,i.ieCompatibilityMode=E,i.ie64=k,i.firefox=I,i.opera=T,i.webkit=D,i.safari=x,i.chrome=$,i.windows=P,i.osx=N,i.linux=M,i.iphone=w,i.mobile=A,i.nativeApp=F,i.android=O,i.ipad=B}),66); __d("isScalar",[],(function(t,n,r,o,a,i){function e(e){return/string|number|boolean/.test(typeof e)}i.default=e}),66); __d("DOM",["$","DOMQuery","Event","FBLogger","FbtResultBase","HTML","UserAgent_DEPRECATED","createArrayFromMixed","err","fb-error","isNode","isScalar","isTextNode"],(function(t,n,r,o,a,i,l){var e,s=function(t,n,r){var e=document.createElement(t);return n&&u.setAttributes(e,n),r!=null&&u.setContent(e,r),e},u={find:(e=o("DOMQuery")).find,findPushSafe:e.findPushSafe,scry:e.scry,getSelection:e.getSelection,contains:e.contains,getRootElement:e.getRootElement,isNodeOfType:e.isNodeOfType,isInputNode:e.isInputNode,create:s,setAttributes:function(t,n){n.type&&(t.type=n.type);for(var e in n){var o=n[e],a=/^on/i.test(e);a&&typeof o!="function"&&r("FBLogger")("dom").warn("Handlers passed to DOM.setAttributes must be functions. Handler passed for %s was %s",e,typeof o),e!="type"&&(e=="style"?typeof o=="string"?t.style.cssText=o:Object.assign(t.style,o):a?r("Event").listen(t,e.substr(2),o):e in t?t[e]=o:t.setAttribute&&t.setAttribute(e,o))}},prependContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element is not a node"));return d(n,t,function(e){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)})},insertAfter:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){t.nextSibling?e.insertBefore(n,t.nextSibling):e.appendChild(n)})},insertBefore:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){e.insertBefore(n,t)})},setContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element is not a node"));for(;t.firstChild;)c(t.firstChild);return u.appendContent(t,n)},appendContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element is not a node"));return d(n,t,function(e){t.appendChild(e)})},replace:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(r("err")("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){e.replaceChild(n,t)})},remove:function(t){c(typeof t=="string"?r("$")(t):t)},empty:function(t){for(var e=typeof t=="string"?r("$")(t):t;e.firstChild;)c(e.firstChild)}};function c(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var a=r("HTML").replaceJSONWrapper(e);if(a instanceof r("HTML")&&t.firstChild===null&&a.toString().indexOf("7&&!o("DOMQuery").isNodeOfType(t,["table","tbody","thead","tfoot","tr","select","fieldset"])){var l=i?' '+a.toString():a.toString();return t.innerHTML=l,i&&t.removeChild(t.firstChild),Array.from(t.childNodes)}}else if(r("isTextNode")(t))return t.data=a,[a];var s=document.createDocumentFragment(),u,c=[],d=[],m=!1;a=r("createArrayFromMixed")(a),a.length===1&&a[0]instanceof r("FbtResultBase")&&(a=a[0].getContents());for(var p=0;p1?o-1:0),i=1;i0){var o=r;t.setTimeout(function(){return E(o)},n.timeout)}return r}function y(e){var t=e;s[t]=null}function C(){m||(m=!0,r("requestAnimationFramePolyfill")(function(t){m=!1,v((e||(e=r("performanceNow")))()-t)}))}function b(e){var t=p-_;if(et||n<_?0:t-n}function v(t){var n=(e||(e=r("performanceNow")))();if(n>d){var o=b(t);if(o>0){var a=n+o;L(a),d=a}}S()&&C()}function S(){return u0?(g[e-1]=t,h("replace_overlay_view",n)):(g.push(t),h("open_overlay_view",n)))}},closeOverlayView:function(t,n){var e=g.lastIndexOf(t);e!==-1&&(m=babelHelpers.extends({},p),p&&(e>0?p.topViewEndpoint=g[e-1]:p.topViewEndpoint=null),g=g.slice(0,e),h("close_overlay_view",n))},setClickPointInfo:function(t){f=t,C()},getClickPointInfo:function(){return f},getScriptPath:y,getCategoryToken:function(){return p?p.categoryToken:void 0},getEarlyFlushPage:function(){var e;return(e=p)==null||(e=e.extraData)==null?void 0:e.ef_page},getTopViewEndpoint:function(){var e=g.length;return e>0?g[e-1]:y()},getPageInfo:function(){return p},getSourcePageInfo:function(){return m},subscribe:function(t){return _.add(r("TimeSlice").guard(t,"ScriptPath.subscribe"))},shutdown:function(){C()}};i.exports=v}),34); __d("getCrossOriginTransport",["invariant","ExecutionEnvironment","err"],(function(t,n,r,o,a,i,l,s){var e;function u(){if(!(e||(e=r("ExecutionEnvironment"))).isInBrowser)throw r("err")("getCrossOriginTransport: %s","Cross origin transport unavailable in the server environment.");try{var t=new XMLHttpRequest;return!("withCredentials"in t)&&typeof XDomainRequest!="undefined"&&(t=new XDomainRequest),t}catch(e){throw r("err")("getCrossOriginTransport: %s",e instanceof Error?e.message:String(e))}}u.withCredentials=function(){var e=u();"withCredentials"in e||s(0,5150);var t=e.open;return e.open=function(){t.apply(this,arguments),this.withCredentials=!0},e},l.default=u}),98); __d("ZeroRewrites",["URI","ZeroRewriteRules","getCrossOriginTransport","getSameOriginTransport","isFacebookURI"],(function(t,n,r,o,a,i,l){var e,s={rewriteURI:function(t){var e=t;if(!r("isFacebookURI")(e)||s._isWhitelisted(e))return e;var n=s._getRewrittenSubdomain(e);return n!=null&&(e=e.setSubdomain(n)),e},getTransportBuilderForURI:function(t){return s.isRewritten(t)?r("getCrossOriginTransport").withCredentials:r("getSameOriginTransport")},isRewriteSafe:function(n){if(Object.keys(r("ZeroRewriteRules").rewrite_rules).length===0||!r("isFacebookURI")(n))return!1;var t=s._getCurrentURI().getDomain(),o=new(e||(e=r("URI")))(n).qualify().getDomain();return t===o||s.isRewritten(n)},isRewritten:function(t){var e=t.getQualifiedURI();if(Object.keys(r("ZeroRewriteRules").rewrite_rules).length===0||!r("isFacebookURI")(e)||s._isWhitelisted(e))return!1;var n=e.getSubdomain(),o=s._getCurrentURI(),a=s._getRewrittenSubdomain(o);return e.getDomain()!==o.getDomain()&&n===a},_isWhitelisted:function(t){var e=t.getPath();return e.endsWith("/")||(e+="/"),r("ZeroRewriteRules").whitelist&&r("ZeroRewriteRules").whitelist[e]===1},_getRewrittenSubdomain:function(t){var e=t.getQualifiedURI().getSubdomain();return r("ZeroRewriteRules").rewrite_rules[e]},_getCurrentURI:function(){return new(e||(e=r("URI")))("/").qualify()}};i.exports=s}),34); __d("getAsyncHeaders",["BDHeaderConfig","BootloaderConfig","LSD","ZeroCategoryHeader","isFacebookURI","justknobx","requireWeak"],(function(t,n,r,o,a,i,l){function e(e){var t={},n=r("isFacebookURI")(e);n&&r("ZeroCategoryHeader").value&&(t[r("ZeroCategoryHeader").header]=r("ZeroCategoryHeader").value);var o=s(e);o!=null&&o!==""&&(t["X-FB-LSD"]=o);var a=u(e);return a!=null&&a!==""&&(t["X-ASBD-ID"]=a),!c(e)&&r("justknobx")._("7189")&&(t["X-FB-Entry-Nonce"]=r("BootloaderConfig").nonce),r("requireWeak")("MessengerPWAVersionForUserAgent",function(n){var r=n();r!=null&&!c(e)&&(t["x-fb-pwa"]=""+r)}),t}function s(e){return c(e)?null:r("LSD").token}function u(e){return c(e)?null:o("BDHeaderConfig").ASBD_ID}function c(e){var t,n,r,o=(t=(n=d())==null||(n=n.location)==null?void 0:n.origin)!=null?t:(r=window)==null||(r=r.location)==null?void 0:r.origin;return o==null?!0:!e.toString().startsWith("/")&&e.getOrigin()!==o}function d(){return typeof document!="undefined"?document:null}l.default=e}),98); __d("requestIdleCallbackAcrossTransitions",["IdleCallbackImplementation","TimeSlice"],(function(t,n,r,o,a,i,l){var e=t.requestIdleCallback||o("IdleCallbackImplementation").requestIdleCallback;function s(n,o){var a=r("TimeSlice").guard(n,"requestIdleCallback",{propagationType:r("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0});return e.call(t,a,o)}l.default=s}),98);