;/*FB_PKG_DELIM*/ __d("LSTruncateTableAndSetShowError",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(a){return b.fe(b.db.table(115).fetch(),function(a){return a["delete"]()})},function(c){return b.db.table(115).add({statusId:[0,0],timestampMs:b.i64.of_float(Date.now()),errorShouldBeShown:a[0]})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteAllAndInsertConnectivityStatus",["LSTruncateTableAndSetShowError"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[];return c.seq([function(d){return c.seq([function(a){return c.fe(c.db.table(114).fetch(),function(a){return a["delete"]()})},function(b){return c.db.table(114).add({statusId:void 0,timestampMs:c.i64.of_float(Date.now()),internetConnectionState:a[0]})},function(d){return c.sp(b("LSTruncateTableAndSetShowError"),c.i64.neq(a[0],[0,1]))}])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSIssueNewTaskWithExtraOperations",["LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(e){return c.sp(b("LSIssueNewTaskAndGetTaskID"),a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]).then(function(a){return a=a,d[0]=a[0],a})},function(a){return c.fe(c.islc(c.db.table(232).fetch(),0,c.i64.to_float([0,1])),function(a){a=a.item;return c.db.table(233).add({taskId:d[0],notificationScopeKey:a.notificationScopeKey,notificationName:a.notificationName})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemoveError",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(6).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticFetchPendingGroupInvite",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(e){return d[0]=new c.Map(),d[0].set("link_hash",a[0]),d[0].set("image_width",a[1]),d[0].set("image_height",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTaskWithExtraOperations"),"fetch_pending_group_invite",[0,434],d[1],f,f,[0,0],[0,0],f,f,[0,0],f)},function(b){return c.db.table(235).put({linkHash:a[0],threadTitle:"",lastThreadActivityMs:[0,0],groupImageUrl:"",groupImageUrlFallback:"",groupImageUrlExpirationTimestampMs:[0,0],joinExplainerText:"",numberOfMembers:[0,0],isInApprovalQueue:!1,isSubscribed:!1,canJoin:!1,fbGroupDescription:"",communityImageUrl:"",communityImageUrlFallback:"",communityImageUrlExpirationTimestampMs:[0,0],linkJoinType:[0,1],fbGroupVisibility:[0,1],communityId:[0,0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("MDSColumnContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("MDSColumnItem.react",["BaseView.react","CometErrorBoundary.react","CometPlaceholder.react","MDSColumnContext","UserAgent","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j={divider:{borderTopColor:"x8cjs6t",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",":first-child_display":"xh99ass",$$css:!0},dividerMargin:{":first-child:empty + *_marginTop":"xb939ph",$$css:!0},expanding:{flexBasis:"x1l7klhg",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",minHeight:"x2lwn1j",$$css:!0},expandingIE11:{flexBasis:"xdl72j9",$$css:!0},marginFirstChild:{":first-child_marginTop":"x14l7nz5",$$css:!0},marginLastChild:{":last-child_marginBottom":"xzboxd6",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexShrink:"x2lah0s",maxWidth:"x193iq5w",$$css:!0}},k={center:{alignItems:"x6s0dn4",$$css:!0},end:{alignItems:"xuk3077",$$css:!0},start:{alignItems:"x1cy8zhl",$$css:!0}},l={4:{paddingStart:"x1e558r4",paddingEnd:"x150jy0e",$$css:!0},8:{paddingStart:"xurb0ha",paddingEnd:"x1sxyh0",$$css:!0},12:{paddingStart:"x1ye3gou",paddingEnd:"xn6708d",$$css:!0},16:{paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",$$css:!0},20:{paddingStart:"x5ib6vp",paddingEnd:"xc73u3c",$$css:!0}},m={0:{paddingTop:"xexx8yu",$$css:!0},4:{paddingTop:"x1iorvi4",$$css:!0},8:{paddingTop:"x1y1aw1k",$$css:!0},12:{paddingTop:"xz9dl7a",$$css:!0},16:{paddingTop:"xyamay9",$$css:!0},20:{paddingTop:"x1cnzs8",$$css:!0},40:{paddingTop:"x13zrc24",$$css:!0}},n={4:{paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",$$css:!0},8:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},12:{paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0},16:{paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0},20:{paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",$$css:!0}},o={4:{marginTop:"xr9ek0c",marginBottom:"xjpr12u",$$css:!0},8:{marginTop:"x1gslohp",marginBottom:"x12nagc",$$css:!0},12:{marginTop:"x1k70j0n",marginBottom:"xzueoph",$$css:!0},16:{marginTop:"x1xmf6yo",marginBottom:"x1e56ztr",$$css:!0},20:{marginTop:"x1anpbxc",marginBottom:"xyorhqc",$$css:!0},24:{marginTop:"x14vqqas",marginBottom:"xod5an3",$$css:!0},32:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0},40:{marginTop:"x1sy10c2",marginBottom:"xieb3on",$$css:!0}},p={bottom:{justifyContent:"x13a6bvl",$$css:!0},center:{justifyContent:"xl56j7k",$$css:!0},"space-between":{justifyContent:"x1qughib",$$css:!0}},q={4:{marginStart:"xsgj6o6",marginEnd:"xw3qccf",$$css:!0},8:{marginStart:"x1i64zmx",marginEnd:"x1emribx",$$css:!0},12:{marginStart:"x16n37ib",marginEnd:"xq8finb",$$css:!0},16:{marginStart:"x1d52u69",marginEnd:"xktsk01",$$css:!0},20:{marginStart:"xmn8rco",marginEnd:"x1h5jrl4",$$css:!0}},r=c("UserAgent").isBrowser("IE >= 11");function a(a,b){var d,e,f,g;d=(d=i(c("MDSColumnContext")))!=null?d:{};var t=a.align;e=t===void 0?(e=d.align)!=null?e:"stretch":t;t=a.children;var u=a.expanding;u=u===void 0?!1:u;var v=a.fallback,w=a.paddingHorizontal;f=w===void 0?(f=d.paddingHorizontal)!=null?f:0:w;w=a.paddingTop;var x=a.paddingVertical;x=x===void 0?0:x;var y=a.placeholder,z=a.verticalAlign;z=z===void 0?"top":z;var A=babelHelpers.objectWithoutPropertiesLoose(a,["align","children","expanding","fallback","paddingHorizontal","paddingTop","paddingVertical","placeholder","verticalAlign"]),B=c("stylex").compose(a.xstyle);g=h.jsxs(h.Fragment,{children:[d.hasDividers===!0&&h.jsx(c("BaseView.react"),{role:"separator",xstyle:[j.divider,q[(g=d.paddingHorizontal)!=null?g:0],d.spacing!=null&&j.dividerMargin]}),h.jsx(c("BaseView.react"),babelHelpers["extends"]({},A,{ref:b,xstyle:[j.root,u&&[j.expanding,r&&j.expandingIE11],e!=="stretch"&&k[e],z!=="top"&&p[z],l[f],n[x],w!=null&&m[w],d.spacing!=null&&[o[d.spacing],B.marginBottom==null&&j.marginLastChild,B.marginTop==null&&j.marginFirstChild],a.xstyle],children:h.jsx(c("MDSColumnContext").Provider,{value:null,children:t})}))]});if(v!==void 0){a.fallback;var C=babelHelpers.objectWithoutPropertiesLoose(a,["fallback"]);v===null?g=h.jsx(c("CometErrorBoundary.react"),{children:g}):g=h.jsx(c("CometErrorBoundary.react"),{fallback:function(a,c){return h.jsx(s,babelHelpers["extends"]({},C,{ref:b,children:typeof v==="function"?v(a,c):v}))},children:g})}if(y!==void 0){a.placeholder;A=babelHelpers.objectWithoutPropertiesLoose(a,["placeholder"]);g=h.jsx(c("CometPlaceholder.react"),{fallback:y!=null?h.jsx(s,babelHelpers["extends"]({},A,{ref:b,children:y})):null,children:g})}return g}a.displayName=a.name+" [from "+f.id+"]";var s=h.forwardRef(a);b=s;g["default"]=b}),98); __d("MDSHeadlineWithAddOn.react",["BaseRow.react","BaseRowItem.react","Locale","MDSText.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={addOn:{display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",marginStart:"x1i64zmx",$$css:!0},nonBreakingSpace:{visibility:"xlshs6z",width:"xnalus7",$$css:!0},textFlexFixForIE:{flexBasis:"xdl72j9",$$css:!0}},j={ltr:{direction:"xzt5al7",$$css:!0},rtl:{direction:"xzyj77d",$$css:!0}},k=c("gkx")("1299319");function a(a,b){var e=a.addOn,f=a.children,g=a.color,l=a.headlineRef,m=a.isSemanticHeading,n=a.numberOfLines;a=a.type;return h.jsx(c("MDSText.react"),{isSemanticHeading:!1,ref:b,type:a,children:h.jsxs(c("BaseRow.react"),{verticalAlign:"center",xstyle:j[d("Locale").isRTL()?"rtl":"ltr"],children:[h.jsx(c("BaseRowItem.react"),{expanding:!0,xstyle:k&&i.textFlexFixForIE,children:h.jsx(c("MDSText.react"),{color:g,isSemanticHeading:m,numberOfLines:n,ref:l,type:a,children:f})}),h.jsx(c("BaseRowItem.react"),{verticalAlign:"top",xstyle:i.addOn,children:h.jsxs(c("BaseRow.react"),{verticalAlign:"center",children:[h.jsx(c("BaseRowItem.react"),{xstyle:i.nonBreakingSpace,children:"\xa0"}),h.jsx(c("BaseRowItem.react"),{children:h.jsx(c("BaseRow.react"),{children:e})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("MDSRowContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("MDSRowItem.react",["BaseRowItem.react","CometErrorBoundary.react","CometPlaceholder.react","MDSRowContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j={4:{paddingEnd:"xg83lxy",paddingStart:"x1h0ha7o",$$css:!0},8:{paddingEnd:"x150jy0e",paddingStart:"x1e558r4",$$css:!0},12:{paddingEnd:"xsyo7zv",paddingStart:"x16hj40l",$$css:!0},16:{paddingEnd:"x1sxyh0",paddingStart:"xurb0ha",$$css:!0},24:{paddingEnd:"xn6708d",paddingStart:"x1ye3gou",$$css:!0},32:{paddingEnd:"x1pi30zi",paddingStart:"x1swvt13",$$css:!0}},k={4:{paddingBottom:"x1120s5i",paddingTop:"x1nn3v0j",$$css:!0},8:{paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},12:{paddingBottom:"x10b6aqq",paddingTop:"x1yrsyyn",$$css:!0},16:{paddingBottom:"xwib8y2",paddingTop:"x1y1aw1k",$$css:!0},24:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},32:{paddingBottom:"x1l90r2v",paddingTop:"xyamay9",$$css:!0}};function a(a,b){var d;d=(d=i(c("MDSRowContext")))!=null?d:{};var e=d.spacingHorizontal;d=d.spacingVertical;var f=a.fallback,g=a.placeholder,m=babelHelpers.objectWithoutPropertiesLoose(a,["fallback","placeholder"]);if(g!==void 0){a.placeholder;var n=babelHelpers.objectWithoutPropertiesLoose(a,["placeholder"]);return h.jsx(c("CometPlaceholder.react"),{fallback:g!=null?h.jsx(l,babelHelpers["extends"]({},n,{ref:b,children:g})):null,children:h.jsx(l,babelHelpers["extends"]({},n,{ref:b}))})}if(f!==void 0){a.fallback;var o=babelHelpers.objectWithoutPropertiesLoose(a,["fallback"]);return f===null?h.jsx(c("CometErrorBoundary.react"),{children:h.jsx(l,babelHelpers["extends"]({},o,{ref:b}))}):h.jsx(c("CometErrorBoundary.react"),{fallback:function(a,c){return h.jsx(l,babelHelpers["extends"]({},o,{ref:b,children:typeof f==="function"?f(a,c):f}))},children:h.jsx(l,babelHelpers["extends"]({},o,{ref:b}))})}return h.jsx(c("BaseRowItem.react"),babelHelpers["extends"]({},m,{ref:b,useDeprecatedStyles:m.useDeprecatedStyles,xstyle:[j[e],k[d],m.xstyle],children:h.jsx(c("MDSRowContext").Provider,{value:null,children:m.children})}))}a.displayName=a.name+" [from "+f.id+"]";var l=h.forwardRef(a);b=l;g["default"]=b}),98); __d("MDSRow.react",["BaseRow.react","MDSColumnContext","MDSColumnItem.react","MDSRowContext","MDSRowItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useMemo,k={4:{paddingEnd:"x150jy0e",paddingStart:"x1e558r4",$$css:!0},8:{paddingEnd:"x1sxyh0",paddingStart:"xurb0ha",$$css:!0},10:{paddingEnd:"x1iji9kk",paddingStart:"x1sln4lm",$$css:!0},12:{paddingEnd:"xn6708d",paddingStart:"x1ye3gou",$$css:!0},16:{paddingEnd:"x1pi30zi",paddingStart:"x1swvt13",$$css:!0}},l={0:{paddingTop:"xexx8yu",$$css:!0},4:{paddingTop:"x1iorvi4",$$css:!0},8:{paddingTop:"x1y1aw1k",$$css:!0},10:{paddingTop:"x889kno",$$css:!0},12:{paddingTop:"xz9dl7a",$$css:!0},16:{paddingTop:"xyamay9",$$css:!0},20:{paddingTop:"x1cnzs8",$$css:!0}},m={4:{paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},8:{paddingBottom:"xwib8y2",paddingTop:"x1y1aw1k",$$css:!0},10:{paddingBottom:"x1a8lsjc",paddingTop:"x889kno",$$css:!0},12:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},16:{paddingBottom:"x1l90r2v",paddingTop:"xyamay9",$$css:!0}},n={4:{marginEnd:"xwrv7xz",marginStart:"x8182xy",$$css:!0},8:{marginEnd:"xcud41i",marginStart:"x139jcc6",$$css:!0},10:{marginEnd:"x6zhf5e",marginStart:"xrzrlj5",$$css:!0},12:{marginEnd:"xykv574",marginStart:"xbmpl8g",$$css:!0},16:{marginEnd:"x1n0m28w",marginStart:"xp7jhwk",$$css:!0},24:{marginEnd:"x12rz0ws",marginStart:"x16hk5td",$$css:!0},32:{marginEnd:"x19f6ikt",marginStart:"x169t7cy",$$css:!0}},o={4:{marginBottom:"xmgb6t1",marginTop:"x1kgmq87",$$css:!0},8:{marginBottom:"x4vbgl9",marginTop:"x1rdy4ex",$$css:!0},10:{marginBottom:"xz62fqu",marginTop:"x16ldp7u",$$css:!0},12:{marginBottom:"x4cne27",marginTop:"xifccgj",$$css:!0},16:{marginBottom:"x1wsgfga",marginTop:"x9otpla",$$css:!0},24:{marginBottom:"xh3wvx0",marginTop:"x7wgvq7",$$css:!0},32:{marginBottom:"x1oo3vh0",marginTop:"xwya9rg",$$css:!0}};function a(a,b){var d=i(c("MDSColumnContext")),e=i(c("MDSRowContext")),f=(d==null?void 0:d.paddingHorizontal)!=null?0:12,g=(d==null?void 0:d.spacing)!=null?0:16,p=a.children,q=a.paddingHorizontal;f=q===void 0?f:q;q=a.paddingVertical;q=q===void 0?0:q;var r=a.paddingTop;g=r===void 0?a.paddingVertical==null?g:null:r;r=a.spacing;r=r===void 0?12:r;var s=a.spacingHorizontal,t=s===void 0?r:s;s=a.spacingVertical;var u=s===void 0?r:s;r=a.xstyle;s=babelHelpers.objectWithoutPropertiesLoose(a,["children","paddingHorizontal","paddingVertical","paddingTop","spacing","spacingHorizontal","spacingVertical","xstyle"]);a=j(function(){return{spacingHorizontal:t,spacingVertical:u}},[t,u]);b=h.jsx(c("BaseRow.react"),babelHelpers["extends"]({},s,{ref:b,xstyle:[k[f],m[q],g!=null&&l[g],n[t],o[u],r],children:h.jsx(c("MDSRowContext").Provider,{value:a,children:p})}));if(e!=null)return h.jsx(c("MDSRowItem.react"),{expanding:s.expanding,children:b});return d!=null?h.jsx(c("MDSColumnItem.react"),{expanding:s.expanding,children:b}):b}a.displayName=a.name+" [from "+f.id+"]";e=h.forwardRef(a);d=e;g["default"]=d}),98); __d("getMDSTextHierarchyStyle",["memoizeWithArgs"],(function(a,b,c,d,e,f,g){"use strict";a=c("memoizeWithArgs")(function(a,b){switch(a){case 1:return{bodyType:"body1",headlineType:"headlineEmphasized1",metaType:"meta1"};case 2:return{bodyType:"body2",headlineType:"headlineEmphasized2",metaType:"meta2"};case 3:return{bodyType:"body3",headlineType:b===!0?"headline3":"headlineEmphasized3",metaType:"meta3"};default:case 4:return{bodyType:"body4",headlineType:b===!0?"headline4":"headlineEmphasized4",metaType:"meta4"};case"entityHeader1":return{bodyType:"body2",headlineType:"entityHeaderHeadline1",metaType:"entityHeaderMeta1"};case"entityHeader2":return{bodyType:"body2",headlineType:"entityHeaderHeadline2",metaType:"entityHeaderMeta2"}}},function(a,b){return String(a)+(b===!0?"":"e")});g["default"]=a}),98); __d("MDSTextPairing.react",["MDSHeadlineWithAddOn.react","MDSText.react","getMDSTextHierarchyStyle","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={item:{marginBottom:"xu06os2",marginTop:"x1ok221b",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",marginBottom:"xz62fqu",marginTop:"x16ldp7u",$$css:!0}},j={1:{marginBottom:"x11tup63",marginTop:"x16z1lm9",$$css:!0},2:{marginBottom:"x4cne27",marginTop:"xifccgj",$$css:!0},entityHeader1:{marginBottom:"x1wsgfga",marginTop:"x9otpla",$$css:!0},entityHeader2:{marginBottom:"x1wsgfga",marginTop:"x9otpla",$$css:!0}},k={1:{marginBottom:"xwoyzhm",marginTop:"x1rhet7l",$$css:!0},2:{marginBottom:"xzueoph",marginTop:"x1k70j0n",$$css:!0},entityHeader1:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0},entityHeader2:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0}};function a(a){var b=a.body,d=a.bodyColor;d=d===void 0?"primary":d;var e=a.bodyLineLimit,f=a.bodyRef,g=a.headline,l=a.headlineAddOn,m=a.headlineColor;m=m===void 0?"primary":m;var n=a.headlineLineLimit,o=a.headlineRef,p=a.isSemanticHeading,q=a.level,r=a.meta,s=a.metaColor;s=s===void 0?"secondary":s;var t=a.metaLineLimit,u=a.metaLocation;u=u===void 0?"below":u;var v=a.metaRef,w=a.reduceEmphasis;w=w===void 0?!1:w;var x=a.testid;x=a.textAlign;a=x===void 0?"start":x;x=c("getMDSTextHierarchyStyle")(q,w);w=x.bodyType;var y=x.headlineType;x=x.metaType;var z=c("stylex")(i.item,k[q]);l=g!=null&&h.jsx("div",{className:z,children:l!=null?h.jsx(c("MDSHeadlineWithAddOn.react"),{addOn:l,color:m,headlineRef:o,isSemanticHeading:p,numberOfLines:n,type:y,children:g}):h.jsx(c("MDSText.react"),{align:a,color:m,isSemanticHeading:p,numberOfLines:n,ref:o,type:y,children:g})});m=r!=null&&h.jsx("div",{className:z,children:h.jsx(c("MDSText.react"),{align:a,color:s,isSemanticHeading:p,numberOfLines:t,ref:v,type:x,children:r})});return h.jsxs("div",{className:c("stylex")(i.root,j[q]),"data-testid":void 0,children:[u==="above"&&m,l,b!=null&&h.jsx("div",{className:z,children:h.jsx(c("MDSText.react"),{align:a,color:d,isSemanticHeading:!1,numberOfLines:e,ref:f,type:w,children:b})}),u==="below"&&m]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MessengerDesktopPresenceInfo",["FBLogger","WebStorage"],(function(a,b,c,d,e,f,g){"use strict";var h="__fb_messenger_desktop_presence_info";function a(){var a=c("WebStorage").getLocalStorageForRead();return JSON.parse((a=a==null?void 0:a.getItem(h))!=null?a:"null")}function b(){var a=c("WebStorage").getLocalStorage();if(a==null){c("FBLogger")("desktop_messenger_deeplink_presence","local_storage_not_found").warn("Messenger Desktop Presence Token cannot be created if local storage doesn't exist");return null}var b={lastActiveTimestamp:Date.now()};a=c("WebStorage").setItemGuarded(a,h,JSON.stringify(b));a!=null&&c("FBLogger")("desktop_messenger_deeplink_presence","create_presence_info_error").warn(a.toString());return b}g.getPresenceInfo=a;g.createPresenceInfo=b}),98); __d("MessengerDesktopLocalServerRequest",["ConstUriUtils","MessengerDesktopPresenceInfo"],(function(a,b,c,d,e,f,g){"use strict";var h=2e3;a=function(){function a(a,b){var c=this;this.$1=function(){c.request.status===200&&d("MessengerDesktopPresenceInfo").createPresenceInfo()};b="http://localhost:"+b+a;this.uri=(a=(a=d("ConstUriUtils").getUri(b))==null?void 0:a.toString())!=null?a:b;this.request=new XMLHttpRequest();this.request.timeout=h;this.request.onloadend=this.$1}var b=a.prototype;b.setOnLoadEndHandler=function(a){var b=this;this.request.onloadend=function(){b.$1(),a(b.request.status)};return this};b.setErrorHandler=function(a){var b=this;this.request.onerror=function(){b.request.status===500&&d("MessengerDesktopPresenceInfo").createPresenceInfo(),a(b.request.status)};return this};b.setTimeoutHandler=function(a){this.request.ontimeout=a;return this};b.send=function(){this.request.open("GET",this.uri),this.request.send()};return a}();g["default"]=a}),98); __d("MessengerDesktopPromoFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1744027");c=b("FalcoLoggerInternal").create("messenger_desktop_promo",a);e.exports=c}),null); __d("MessengerDesktopPromoEventLogger",["MessengerDesktopPromoFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){return c("MessengerDesktopPromoFalcoEvent").log(function(){return a})};g.log=a}),98); __d("XMessengerDotComDesktopControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/desktop/",Object.freeze({start_download:!1,m:!1}),new Set(["m"]));b=a;g["default"]=b}),98); __d("XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/desktop/launch/",Object.freeze({}),void 0);b=a;g["default"]=b}),98); __d("MessengerDesktopDeepLinkUtils",["fbt","MessengerDesktopLocalServerRequest","MessengerDesktopPresenceInfo","MessengerDesktopPromoEventLogger","ODS","Promise","UserAgent","XMessengerDotComDesktopControllerRouteBuilder","XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder","gkx","promiseDone","qex","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=i.useCallback,k=i.useEffect,l=i.useRef,m=i.useState,n="messenger",o=3103,p=1e3*60*60*24*28,q="https://www.messenger.com/desktop/";function a(a){return n+"://room?joinurl="+a}function r(a){return new(b("Promise"))(function(b){new(c("MessengerDesktopLocalServerRequest"))("/ping",a).setOnLoadEndHandler(function(a){return b(a)}).setTimeoutHandler(function(a){return b(!1)}).setErrorHandler(function(a){return b(!1)}).send()})}function e(){var a=d("MessengerDesktopPresenceInfo").getPresenceInfo();return a==null?!1:Date.now()-a.lastActiveTimestamp<=p}function s(){var a=c("gkx")("655"),b=c("gkx")("4716"),d=c("gkx")("4687");if(c("qex")._("1359")===!0)return a||d;if(b)return a||d;else return a}function f(){if(c("gkx")("1987549")||!s())return!1;switch(v()){case"Windows":return c("qex")._("167")===!0;case"Mac":return c("gkx")("297");default:return!1}}function t(){var a=m(!1),b=a[0];a=a[1];var e=m(!1),f=e[0],g=e[1];if(v()!=="Windows")return!1;if(c("gkx")("1987549")||!s())return!1;if(c("qex")._("167")!==!0)return!1;if(b)return f;d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","initiating_dapp_call");a(!0);c("promiseDone")(r(o).then(function(a){if(!a||a!==200){a||d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","localhost_did_not_respond");a===500&&d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","localhost_responded_but_crashed");return}g(!0)}));return f}var u={openMessengerForDesktop:h._("__JHASH__XxNs-oGUpT___JHASH__"),openMessengerForMac:h._("__JHASH__tlUlAHzvu6R__JHASH__"),openMessengerForWindows:h._("__JHASH__3NgfF3NHofM__JHASH__"),tryMessengerForDesktop:h._("__JHASH___P6bnngRU_E__JHASH__"),tryMessengerForMac:h._("__JHASH__3Fm9-zbx5PN__JHASH__"),tryMessengerForWindows:h._("__JHASH__56Y2Um9FCTk__JHASH__")};function v(){if(c("UserAgent").isPlatform("Windows"))return"Windows";else if(c("UserAgent").isPlatform("Mac OS X"))return"Mac";return"Desktop"}function w(a){return(a=c("XMessengerDotComDesktopControllerRouteBuilder").buildUri({funnel_session_id:a}).setDomain("www.messenger.com"))==null?void 0:(a=a.setProtocol("https"))==null?void 0:a.toString()}function x(a){return(a=c("XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder").buildUri(a).setDomain("messenger.com"))==null?void 0:(a=a.setProtocol("https"))==null?void 0:a.toString()}function y(){var a=s()?"open":"try",b=v();return u[a+"MessengerFor"+b]}function z(a){var b;return s()?(b=x(a))!=null?b:q:(b=w(a.funnel_session_id))!=null?b:q}function A(a,b){var c=l(!1);k(function(){c.current||(c.current=!0,d("MessengerDesktopPromoEventLogger").log({event:"Impression",funnelSessionId:a,location:b}))},[a,b]);return j(function(){d("MessengerDesktopPromoEventLogger").log({event:"Click",funnelSessionId:a,location:b})},[a,b])}g.PORT=o;g.getRoomDeepLink=a;g.isMessengerDesktopRunning=r;g.isMessengerDesktopProbablyInstalled=e;g.isMessengerDesktopDeeplinkEligible=s;g.isMessengerDesktopDeeplinkEnabled=f;g.useMessengerDesktopWindowsDeeplinkSwitcher=t;g.getDeeplinkButtonLabel=y;g.getDeeplinkButtonURI=z;g.useMessengerDesktopPromoEventLogger=A}),98); __d("MWChatConfirmTabCloseDialog.bs",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a={body:h._("__JHASH__BpxPpP9rp8f__JHASH__"),confirm:h._("__JHASH__CqytfJoYvSJ__JHASH__"),title:h._("__JHASH__56tk0437PKy__JHASH__")};g.content=a}),98); __d("JSMap.bs",["bs_belt_Option","bs_caml_option","bs_curry"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){return c("bs_belt_Option").getExn(c("bs_caml_option").nullable_to_opt((a.has(b)?a:a.set(b,c("bs_curry")._1(d))).get(b)))}g.getOrMake=a}),98); __d("MWChatEphemeralMediaTemporarySeenState.bs",["JSMap.bs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=new Map();function a(a,b){a=d("JSMap.bs").getOrMake(i,a,function(a){return new Set()});a.add(b)}function b(a,b){a=i.get(a);if(a==null)return!1;else return a.has(b)}function j(a){i["delete"](a)}function c(a){h.useEffect(function(){return function(b){return j(a)}},[a])}e=a;f=b;a=j;b=c;g.markSeenThisSession=e;g.isSeenThisSession=f;g.endSession=a;g.useEndSessionOnDismount=b}),98); __d("MWV2ComposerHasContentContext.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext({hasContentRef:void 0,shouldClearDraftMessageRef:void 0});function a(a){a=a.children;var b=h.useRef(!1),c=h.useRef(!1),d=h.useMemo(function(){return{hasContentRef:b,shouldClearDraftMessageRef:c}},[b,c]);return h.createElement(i.Provider,{children:a,value:d})}function b(a){return h.useContext(i)}c=a;g.useContext=b;g.make=c}),98); __d("UseMWV2CloseTab.bs",["MWChatConfirmTabCloseDialog.bs","MWChatEphemeralMediaTemporarySeenState.bs","MWChatStateActions.bs","MWChatStateV2.bs","MWV2ComposerHasContentContext.bs","bs_curry","bs_int64","react","useCometConfirmationDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){var e=c("useReStore")(),f=d("MWChatStateV2.bs").useDispatch(),g=c("useCometConfirmationDialog")(),i=d("MWV2ComposerHasContentContext.bs").useContext(),j=i.shouldClearDraftMessageRef,k=i.hasContentRef;return h.useCallback(function(e){var h=function(e){a!==void 0&&d("MWChatEphemeralMediaTemporarySeenState.bs").endSession(c("bs_int64").to_string(a.threadKey));return c("bs_curry")._1(f,d("MWChatStateActions.bs").closeTab(Date.now(),b.tabId))};if(a!==void 0&&k!==void 0&&k.current)return c("bs_curry")._3(g,d("MWChatConfirmTabCloseDialog.bs").content,function(a){j!==void 0&&(j.current=!0);return h()},function(a){if(j!==void 0){j.current=!1;return}});else return h()},[a,b,e,f,g,k,j])}b=a;g.useHook=b}),98); __d("MWChatFocusComposerContext.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext({focusComposer:void 0,setFocusComposer:function(a){}});function a(a){a=a.children;var b=h.useRef(),c=b.current,d=h.useMemo(function(){return{focusComposer:c,setFocusComposer:function(a){b.current=a}}},[c]);return h.createElement(i.Provider,{children:a,value:d})}b=a;g.context=i;g.provider=b}),98); __d("MercuryFilters.bs",[],(function(a,b,c,d,e,f){"use strict";var g="draft",h="folders",i="unread";function a(a){return[i,g]}function b(a){if(a===i||a===g)return!0;else return a===h}c="all";d="groups";e="named";var j="unnamed",k="WORK_UNSYNCED_CHAT";f.all=c;f.draft=g;f.folders=h;f.unread=i;f.groups=d;f.named=e;f.unnamed=j;f.unsyncedChat=k;f.getSupportedFilters=a;f.isSupportedFilter=b}),null); __d("bs_js_json",["bs_caml_option"],(function(a,b,c,d,e,f){"use strict";function a(a){var b=typeof a;if(b==="string")return{TAG:0,_0:a};else if(b==="number")return{TAG:1,_0:a};else if(b==="boolean")if(a===!0)return 1;else return 0;else if(a===null)return 2;else if(Array.isArray(a))return{TAG:3,_0:a};else return{TAG:2,_0:a}}function c(a,b){switch(b){case 0:return typeof a==="string";case 1:return typeof a==="number";case 2:if(a!==null&&typeof a==="object")return!Array.isArray(a);else return!1;case 3:return Array.isArray(a);case 4:return typeof a==="boolean";case 5:return a===null}}function d(a){if(typeof a==="string")return a}function e(a){if(typeof a==="number")return a}function g(a){if(typeof a==="object"&&!Array.isArray(a)&&a!==null)return b("bs_caml_option").some(a)}function h(a){if(Array.isArray(a))return a}function i(a){if(typeof a==="boolean")return a}function j(a){if(a===null)return null}var k=function(a){a=[a];var b=[{kind:0,i:0,parent:a}];while(b.length!==0){var c=b[b.length-1];c.kind===0?(c.val=c.parent[c.i],++c.i===c.parent.length&&b.pop()):b.pop();var d=c.val;if(typeof d==="object")if(Array.isArray(d)&&d.length!==0)b.push({kind:0,i:0,parent:d,val:void 0});else for(var e in d){if(e==="RE_PRIVATE_NONE"){c.kind===0?c.parent[c.i-1]=void 0:c.parent[c.i]=void 0;continue}b.push({kind:1,i:e,parent:d,val:d[e]})}}return a[0]};function l(a){return function(a){a=JSON.stringify(a,function(a,b){return b===void 0?{RE_PRIVATE_NONE:!0}:b});if(a===void 0)throw new TypeError("output is undefined");return a}(a)}function m(a){return k(JSON.parse(a))}f.classify=a;f.test=c;f.decodeString=d;f.decodeNumber=e;f.decodeObject=g;f.decodeArray=h;f.decodeBoolean=i;f.decodeNull=j;f.deserializeUnsafe=m;f.serializeExn=l}),null); __d("MWInboxURIState.bs",["CometRouteParams","CurrentEnvironment","MAWGating","MWCMIsAnyCMThread","MercuryFilters.bs","MercuryIDs","MessengerURIConstants","ReQL.bs","ReQLSubscription.bs","SortedAsyncIterable.bs","URI","bs_belt_Option","bs_caml_exceptions","bs_caml_format","bs_caml_option","bs_curry","bs_js_json","bs_js_null_undefined","cr:3904","cr:3905","gkx","qex","react","useCurrentRoute","useGroupThreadViewParams","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");f={};var i=c("bs_caml_exceptions").create("MWInboxURIState.NonMessengerState"),j="/?$";function k(a){a=a.match(new RegExp(c("MessengerURIConstants").THREAD_PREFIX+"([^/]+)/?$"));return c("bs_belt_Option").map(a===null?void 0:c("bs_caml_option").some(a),function(a){return decodeURIComponent(a[1])})}function l(a){a=a.match(new RegExp(c("MessengerURIConstants").FOLDERS_PATH+("/([^/]+)"+(c("MessengerURIConstants").THREAD_PREFIX+"([^/]+)/?$"))));return c("bs_belt_Option").map(a===null?void 0:c("bs_caml_option").some(a),function(a){return decodeURIComponent(a[1])})}var m=c("qex")._("1507")===!0,n=c("CurrentEnvironment").instagramdotcom?c("MessengerURIConstants").INSTAGRAM_DIRECT_PATH:c("CurrentEnvironment").facebookdotcom?c("MessengerURIConstants").FACEBOOK_PREFIX:"";function o(a){a=new(c("URI"))(a.url);var b=a.getPath();a=a.getQueryData();var e=c("gkx")("1300945"),f=new RegExp("^"+(n+"(/|$)")),g=c("bs_belt_Option").isSome(a.story_id);if(c("CurrentEnvironment").facebookdotcom&&!(f.test(b)||e&&b==="/"&&!g))throw{Error:new Error(),RE_EXN_ID:i};e=b.replace(f,"/");g=a.filter;b=a.fbid;f=a.qa;var h=a.sa,o=a.t,p=a.threadIDs;a=a.id;try{p=c("bs_belt_Option").map(p,function(a){return JSON.parse(a)});p!==void 0&&c("bs_belt_Option").map(c("bs_js_json").decodeArray(c("bs_caml_option").valFromOption(p)),function(a){return a.reduce(function(a,b){b=c("bs_js_json").decodeString(b);if(d("MercuryIDs").isValidThreadID(c("bs_js_null_undefined").fromOption(c("bs_belt_Option").map(b,function(a){return a}))))return a.concat([b]);else return a},[])})}catch(a){}if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").PEOPLE_PATH)))))p={_0:void 0,TAG:1};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").PAYMENT_PATH)))))p={_0:void 0,TAG:2};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").SEARCH_PATH)))))if(m)if(f!==void 0)p={_0:void 0,TAG:4};else if(h!==void 0&&o!==void 0){f=c("bs_caml_option").valFromOption(o);p=f==="friend"||f==="non_friend"?{_0:void 0,TAG:5}:f==="page"?{_0:void 0,TAG:6}:f==="thread"?{_0:void 0,TAG:7}:{_0:void 0,TAG:3}}else p={_0:void 0,TAG:3};else p={_0:void 0,TAG:3};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").TEAMWORK_GROUP_VIEW)))))p={_0:void 0,TAG:7};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").TEAMWORK_CHAT_VIEW)))))p={_0:void 0,TAG:5};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").TEAMWORK_UNREAD_VIEW)))))p={_0:void 0,TAG:8};else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").TEAMWORK_ANNOUNCEMENT_GROUP_VIEW)))))p={_0:void 0,TAG:9};else if(e==="/read/")p={_0:b!==void 0?{_0:c("bs_caml_format").caml_int64_of_string(b),TAG:3}:void 0,TAG:10};else{if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+(c("MessengerURIConstants").COMPOSE_SUBPATH+j))))))h=[{_0:"E2EEToggleOff",TAG:0},void 0,void 0];else if(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+(c("MessengerURIConstants").PAYMENT_PATH+c("MessengerURIConstants").PAYMENT_PAY_PATH))))))h=a!==void 0?[{_0:void 0,TAG:1},a,void 0]:[{_0:void 0,TAG:2},void 0,void 0];else{o=k(e);try{f=c("bs_belt_Option").map(o,c("bs_caml_format").caml_int64_of_string)}catch(a){f=void 0}b=f!==void 0?[{_0:f,TAG:3},o]:[void 0,void 0];a=l(e);h=[b[0],b[1],a]}p={_0:h[0],TAG:10}}c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").FILTERED_REQUESTS_PATH))))||(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").ARCHIVED_PATH))))||(c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").MESSAGE_REQUESTS_PATH))))||c("bs_belt_Option").isSome(c("bs_caml_option").null_to_opt(e.match(new RegExp("^"+c("MessengerURIConstants").FOLDERS_PATH))))));c("bs_belt_Option").mapWithDefault(g,!1,d("MercuryFilters.bs").isSupportedFilter)&&c("bs_belt_Option").getExn(g);return p}var p=b("cr:3904")==null?void 0:c("bs_caml_option").some(b("cr:3904"));function q(a){if(!(b("cr:3905")==null)&&!d("MAWGating").isOccamadillo())return c("bs_curry")._1(b("cr:3905").isThreadId,a);else return!1}var r=c("gkx")("1950")||c("gkx")("6975");function s(a){if(a!==void 0&&c("MWCMIsAnyCMThread")(a.threadType))return!0;else return!1}function t(a){var b=c("useReStore")();return d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return c("bs_belt_Option").mapWithDefault(a,d("SortedAsyncIterable.bs").empty(),function(a){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:a,tl:0})})},[b,JSON.stringify(a)]))}function a(a){return new(c("URI"))(a.substring(n.length)).getPath().split("/")}function e(a){a=a==null?void 0:c("bs_caml_option").some(a);var e=c("useCurrentRoute")(),f=c("useGroupThreadViewParams")();try{a=c("bs_belt_Option").map(a,c("bs_caml_format").caml_int64_of_string)}catch(b){a=void 0}var g=t(a);if(!(f==null))return{_0:{_0:c("bs_caml_format").caml_int64_of_string(f.threadKey),TAG:3},TAG:10};if(e==null)return{_0:void 0,TAG:0};f=new(c("URI"))(e.url).getPath();if(!f.startsWith(n)&&!f.startsWith(c("MessengerURIConstants").GROUPS_PATH))throw{Error:new Error(),RE_EXN_ID:i};f=e.url.substring(n.length);var h;if(b("cr:3904")==null)h=void 0;else{var j=c("bs_curry")._1(p.getMostRecentSecureThreadKey);h=j!==void 0?j:void 0}j=d("CometRouteParams").useRouteParams();j=j.initial_e2ee_toggle_position==="1"||j.initial_e2ee_toggle_position===1||j.initial_e2ee_toggle_position===!0?"E2EEToggleOn":"E2EEToggleOff";f=new(c("URI"))(f).getPath().split("/");var k;if(a!==void 0){var l;if(f.length!==4)l=2;else{var m=f[0];if(m===""){m=f[1];if(m==="e2ee"){m=f[2];if(m==="t"&&h===void 0){if(d("MAWGating").isOccamadillo())return{_0:{_0:a,TAG:4},TAG:10};l=2}else l=2}else l=2}else l=2}if(l===2){if(q(a))return o(e);m=s(g);if(m&&!r)return{_0:void 0,TAG:0};else return{_0:{_0:a,TAG:3},TAG:10}}}else{l=f.length;if(l>=4)return o(e);switch(l){case 0:return o(e);case 1:g=f[0];if(g!=="")return o(e);if(h===void 0)return o(e);k=h;break;case 2:m=f[0];a=f[1];switch(a){case"":if(h===void 0)return o(e);k=h;break;case"new":return{_0:{_0:j,TAG:0},TAG:10};default:if(m!=="")return o(e);l=f[1];if(l!=="t")return o(e);if(h===void 0)return o(e);k=h}break;case 3:g=f[1];if(g!=="t")return o(e);a=f[2];if(a==="")return o(e);try{j=c("bs_caml_format").caml_int64_of_string(a)}catch(a){j=void 0}if(j!==void 0&&!q(j))return{_0:{_0:j,TAG:3},TAG:10};else return{_0:void 0,TAG:0}}}return{_0:{_0:c("bs_caml_format").caml_int64_of_string(k),TAG:4},TAG:10}}var u=l,v=m,w=n,x=o,y=t;a=a;e=e;g.$MAWSessionStorage$requireCondXplat=b("cr:3904");g.$MAWThreadId$requireCondXplat=b("cr:3905");g.MessagingTag=f;g.NonMessengerState=i;g._getFolderID=u;g.isSearchRefactor=v;g.prefix=w;g.parseURI_DEPRECATED=x;g.useThread=y;g.getRouteTokens=a;g.useState=e}),98); __d("MWInboxProvider.bs",["MWInboxURIState.bs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext();function a(a){var b=a.children;a=a.threadKey;a=d("MWInboxURIState.bs").useState(a);return h.jsx(i.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g.MWInboxProviderContext=i;g.MWInboxProvider=a}),98); __d("MWInboxPassiveContext.bs",["MWInboxProvider.bs","bs_int64","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useContext,j=e.useEffect,k=e.useMemo;e={isPassive:!1,setIsPassive:c("emptyFunction")};var l=h.createContext(e);function a(a){var b=a.children,e=a.isPassive,f=a.setIsPassive;a=i(d("MWInboxProvider.bs").MWInboxProviderContext);if((a==null?void 0:a.TAG)===10){a=a._0;a=a!==void 0&&a.TAG===3?c("bs_int64").to_string(a._0):""}else a="";j(function(){f(!1)},[f,a]);a=k(function(){return{isPassive:e,setIsPassive:f}},[e,f]);return h.jsx(l.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return i(l)}g.MWInboxPassiveContextProvider=a;g.useMWInboxPassiveContext=b}),98); __d("MWChatTabFocusHandler.bs",["CometHideLayerOnEscape.react","FocusWithinHandler.react","MWChatFocusComposerContext.bs","MWInboxPassiveContext.bs","bs_caml_js_exceptions","bs_caml_option","bs_js_exn","gkx","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={root:{height:"x5yr21d",":focus_outline":"x1uvtmcs",$$css:!0}};function j(a){try{return document.activeElement.getAttribute("data-release-focus-from")==="CLICK"}catch(b){a=c("bs_caml_js_exceptions").internalToOCamlException(b);if(a.RE_EXN_ID===c("bs_js_exn").$$Error)return!1;throw a}}function a(a){var b=a.onEscape,e=a.onFocus,f=a.onBlur,g=a.xstyle;a=a.children;b=b!==void 0?b:function(a){};var k=e!==void 0?e:function(a){},l=f!==void 0?f:function(a){};e=g!==void 0?c("bs_caml_option").valFromOption(g):!1;var m=h.useRef(null);f=d("MWInboxPassiveContext.bs").useMWInboxPassiveContext();var n=f.setIsPassive;g=h.useContext(d("MWChatFocusComposerContext.bs").context);var o=g.focusComposer;f=h.useCallback(function(a){a=m.current;if(a!=null&&o!==void 0&&window.getSelection().toString()===""&&(a===document.activeElement||j()))return o()},[m,o]);return h.jsx(c("FocusWithinHandler.react"),{onBlurWithin:function(){return l()},onFocusWithin:function(a){a.target.getAttribute("data-prevent_chattab_focus")==null&&k();var b=m.current;b!=null&&o!==void 0&&b===a.target&&o();if(c("gkx")("6531"))return n(!1)},children:h.jsx(c("CometHideLayerOnEscape.react"),{onHide:b,children:h.jsx("div",{className:c("stylex")(i.root,e),onClick:f,ref:m,tabIndex:-1,children:a})})})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.getShouldTakeFocusFromActiveElement=j;g.make=b}),98); __d("useMWChatEncryptedBackupsUpsellChatTabsDeferred",["cr:1474","react"],(function(a,b,c,d,e,f,g){"use strict";d("react");function a(){var a;return(a=b("cr:1474")())!=null?a:null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatEncryptedBackupsUpsellChatTabs.bs",["useMWChatEncryptedBackupsUpsellChatTabsDeferred"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("useMWChatEncryptedBackupsUpsellChatTabsDeferred")()}g.useHook=a}),98); __d("MWInboxPersistedUIState",["FBLogger","WebStorage","react"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useRef,j=b.useSyncExternalStore,k=new Map(),l=new Map();function m(a){(a=k.get(a))==null?void 0:a.forEach(function(a){return a()})}function a(a,b){var d=i(a).current,e=i({parsed:d,stringified:void 0});a=h(function(a){var c=k.get(b),d=c!=null?c:new Set();d.add(a);k.set(b,d);return function(){d["delete"](a)}},[b]);var f=h(function(){var a=c("WebStorage").getLocalStorageForRead();a=a==null?l.get(b):a.getItem(b);if(a==null)return d;if(a===e.current.stringified)return e.current.parsed;try{var f=JSON.parse(a);e.current={parsed:f,stringified:a};return f}catch(a){return d}},[d,b]);a=j(a,f);f=h(function(a){a=a instanceof Function?a(e.current.parsed):a;var d=c("WebStorage").getLocalStorage();a=JSON.stringify(a);if(d!=null)if(a===void 0)d.removeItem(b);else try{d.setItem(b,a)}catch(a){c("FBLogger")("messenger_web_product").catching(a).mustfix("Failed to setItem")}else l.set(b,a);m(b)},[b]);return[a,f]}g.usePersistedUIState=a}),98); __d("usePublicChatShortlinkCallback",["ConstUriUtils","I64","JSResourceForInteraction","LS.re","LSOptimisticFetchPendingGroupInvite","ReQL","react","useCometLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useEffect,j=b.useRef,k=c("JSResourceForInteraction")("MWJoinPublicChatDialog.react").__setRef("usePublicChatShortlinkCallback");function l(a){a=d("ConstUriUtils").getUri(a);if(a==null?void 0:a.isSubdomainOfDomain("m.me")){a=a==null?void 0:(a=a.getPath())==null?void 0:a.split("/").filter(function(a){return a!==""});return(a==null?void 0:a.length)===2&&a[0]==="j"?a[1]:null}return null}function a(a){var b=a.onSuccess,e=j(!1),f=j(),g=j(),m=c("useReStore")();a=c("useCometLazyDialog")(k);var n=a[0];i(function(){return function(){f.current==null?void 0:f.current(),g.current==null?void 0:g.current()}},[]);return h(function(a){var h=l(a);h!=null&&(m.runInTransaction(function(a){return c("LSOptimisticFetchPendingGroupInvite")(h,void 0,void 0,d("LS.re").make(a))},"readwrite"),f.current=d("ReQL").fromTableAscending(m.table("group_invitations_pending")).getKeyRange(h).subscribe(function(a,c){if(c.operation!=="delete"){var i=c.value;if((i==null?void 0:i.isSubscribed)&&(i==null?void 0:i.threadId)!=null){b==null?void 0:b(d("I64").to_string(i.threadId));return}(i==null?void 0:i.threadTitle.length)>0&&!e.current&&(e.current=!0,n({linkHash:h},function(){e.current=!1}),f.current==null?void 0:f.current(),Boolean(i.needsAdminApprovalForNewParticipant)||(g.current=d("ReQL").fromTableAscending(m.table("threads")).subscribe(function(a,c){c.operation!=="delete"&&(c.value.threadName===i.threadTitle&&(b==null?void 0:b(d("I64").to_string(c.value.threadKey)),g.current==null?void 0:g.current()))})))}}))},[m,n,b])}g["default"]=a}),98); __d("MWThreadKey.bs",["bs_int64","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext();function a(a){var b=a.children,d=a.id;a=c("bs_int64").to_string(d);var e=h.useMemo(function(){return d},[a]),f=h.useContext(i);if(f!==void 0)return c("unrecoverableViolation")("You can't nest MWThreadKey in another MWThreadKey. This will cause SEVs as things might think they're in the wrong thread","messenger_web_product");else return h.jsx(i.Provider,{children:b,value:e},a)}function b(a){return h.useContext(i)}function e(a){a=h.useContext(i);if(a!==void 0)return a;else return c("unrecoverableViolation")("Tried to get a thread key when there was none","messenger_web_product")}f=a;g.useIdMemoized=b;g.useIdMemoizedExn=e;g.make=f}),98); __d("MWLSMarkThreadAsRead.bs",["LS.bs","LSOptimisticMarkThreadReadV2","MWInboxPassiveContext.bs","MWThreadKey.bs","ReQL.bs","ServerTime","bs_caml_int64","bs_caml_obj","gkx","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();a=d("MWInboxPassiveContext.bs").useMWInboxPassiveContext();var f=a.setIsPassive;return h.useCallback(function(a){c("gkx")("6531")&&f(!1),c("promiseDone")(b.runInTransaction(function(a){return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:e,tl:0})).then(function(b){b=b!==void 0?[b.lastActivityTimestampMs,b.lastReadWatermarkTimestampMs]:[void 0,void 0];if(c("bs_caml_obj").caml_greaterthan(b[0],b[1]))return c("LSOptimisticMarkThreadReadV2")(e,c("bs_caml_int64").of_float(d("ServerTime").getMillis()),d("LS.bs").make(a));else return window.Promise.resolve()})},"readwrite"))},[e,b])}g.useHook=a}),98); __d("MWLSThread.bs",["ReQL.bs","ReQLSubscription.bs","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:a,tl:0})},[b,JSON.stringify(a)]))}function b(a){var b=c("useReStore")();return d("ReQLSubscription.bs").useFirstExn(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:a,tl:0})},[b,JSON.stringify(a)]))}e=a;f=b;g.useThread=e;g.useThreadExn=f}),98); __d("MWLSThreadIsPinned.bs",["MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();return c("bs_belt_Option").mapWithDefault(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("pinned_threads")),{hd:e,tl:0})},[b,e])),!1,function(a){return!0})}g.useHook=a}),98); __d("MessengerMuteUtils.bs",["fbt","DateStrings","MWCMThreadTypes.bs","bs_caml_int64","formatDate"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){if(a<=0)if(a===-1)return h._("__JHASH__Qqz4BaNxhpZ__JHASH__");else return;if(a<86401)return;var b=new Date(a*1e3).getDay(),e=b===new Date().getDay(),f=b===new Date().getDay()+1;if(f)return h._("__JHASH__oudW1xi6NTV__JHASH__",[h._param("time",c("formatDate")(a,"g:ia"))]);else if(e)return h._("__JHASH__so9VkYDJtTA__JHASH__",[h._param("time",c("formatDate")(a,"g:ia"))]);else return h._("__JHASH__8p1YQCn8sSf__JHASH__",[h._param("time",c("formatDate")(a,"g:ia")),h._param("weekday name",d("DateStrings").getWeekdayName(b))])}function b(a){if(a)return h._("__JHASH__vpk4cwy2c0D__JHASH__");else return h._("__JHASH__eAj1-l7LtAU__JHASH__")}var i=h._("__JHASH__mE99UrtEjlr__JHASH__"),j=h._("__JHASH__UKvmKpgy_Wn__JHASH__");function e(a,b){if(a===void 0)return h._("__JHASH__f_P00nfKfsd__JHASH__");switch(a.TAG){case 0:return h._("__JHASH__wGzDdDLdmM0__JHASH__");case 1:return h._("__JHASH__aevOqU7QNLm__JHASH__");case 2:return h._("__JHASH__e9DezvV_scv__JHASH__")}}function f(a){var b=a.muteCallsExpireTimeMs,e=a.muteExpireTimeMs;if(d("MWCMThreadTypes.bs").isUnjoinedCMThread(a.threadType))return 0;a=Math.min(c("bs_caml_int64").to_float(e),c("bs_caml_int64").to_float(b));e=Math.max(c("bs_caml_int64").to_float(e),c("bs_caml_int64").to_float(b));if(a===-1)return-1;else return e}var k=0,l=-1;a=a;b=b;i=i;j=j;e=e;k=k;l=l;f=f;g.mutedUntilLabel=a;g.muteActionLabel=b;g.chatNotificationActionLabel=i;g.manageNotificationsMenuItemLabel=j;g.muteDialogTitle=e;g.unmutedMs=k;g.mutedPermanentlyMs=l;g.calcMuteUntilMs=f}),98); __d("LSRtcCallState.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];f.noOngoingCall=a;f.audioGroupCall=c;f.videoGroupCall=d;f.video1to1Call=e;f.audio1to1Call=b}),null); __d("RTCCallState.bs",["LSRtcCallState.bs","MessagingThreadType.bs","bs_caml","bs_int64","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){if(a===d("MessagingThreadType.bs").group)return!0;else return a===d("MessagingThreadType.bs").tincanGroupDisappearing}function a(a,b){if(c("bs_caml").i64_eq(a,d("LSRtcCallState.bs").noOngoingCall))return"NO_ONGOING_CALL";else if(c("bs_caml").i64_eq(a,d("LSRtcCallState.bs").audioGroupCall))if(h(b))return"AUDIO_GROUP_CALL";else return"AUDIO_1TO1_CALL";else if(c("bs_caml").i64_eq(a,d("LSRtcCallState.bs").videoGroupCall))if(h(b))return"VIDEO_GROUP_CALL";else return"VIDEO_1TO1_CALL";else{c("recoverableViolation")("Unknown RTCCallState: "+(c("bs_int64").to_string(a)+("L and threadType combination: "+(c("bs_int64").to_string(b)+"L"))),"messenger_web_product");return"NO_ONGOING_CALL"}}g.ofLsRtcCallState=a}),98); __d("MWThreadListSupportedThreadTypes.bs",["MAWGating","MessagingThreadType.bs","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=[d("MessagingThreadType.bs").oneToOne,d("MessagingThreadType.bs").group,d("MessagingThreadType.bs").marketplace,d("MessagingThreadType.bs").folder,d("MessagingThreadType.bs").room].concat(d("MAWGating").isArmadillo()?[d("MessagingThreadType.bs").secureMessageOverWaOneToOne,d("MessagingThreadType.bs").secureMessageOverWaGroup]:[],c("gkx")("1950")?[d("MessagingThreadType.bs").communityGroup,d("MessagingThreadType.bs").communityGroupUnjoined]:[],c("gkx")("6970")?[d("MessagingThreadType.bs").discoverablePublicChat]:[]);g.supportedThreadTypes=a}),98); __d("MWV2HeaderCloseButton.bs",["fbt","CometPressable.react","MWTooltip.react","bs_caml_option","react","useSetAttributeRef"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=h._("__JHASH__h_m7dC6Kxvx__JHASH__");function a(a){var b=a.label,d=a.color,e=a.onPress;a=a.testid;b=b!==void 0?b:j;var f=c("useSetAttributeRef")("data-prevent_chattab_focus","1");d={"aria-label":b,children:i.jsx("svg",{className:"xvijh9v xhhsvwb x1ty9z65 xgzva0m",height:"24px",viewBox:"0 0 24 24",width:"24px",children:i.jsxs("g",{stroke:d,strokeLinecap:"round",strokeWidth:"2",children:[i.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"}),i.jsx("line",{x1:"6",x2:"18",y1:"18",y2:"6"})]})}),onPress:e,overlayRadius:"50%",ref:f};a!==void 0&&(d.testid=c("bs_caml_option").valFromOption(a));return i.jsx(c("MWTooltip.react"),{align:"middle",position:"above",tooltip:b,children:i.jsx(c("CometPressable.react"),babelHelpers["extends"]({},d))})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=j;d=b;g.defaultLabel=e;g.make=d}),98); __d("MWV2HeaderContainer.bs",["MDSRow.react","bs_caml_option","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={divider:{boxShadow:"x7m3og9",$$css:!0},root:{alignItems:"x6s0dn4",backgroundColor:"xcrg951",borderTopEndRadius:"xgqcy7u",borderTopStartRadius:"x1lq5wgf",display:"x78zum5",flexShrink:"x2lah0s",height:"x10w6t97",justifyContent:"x1qughib",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",position:"x1n2onr6",zIndex:"xhtitgo",$$css:!0}};function a(a){var b=a.startContent,d=a.endContent,e=a.backgroundColor;a=a.divider;b=b!==void 0?c("bs_caml_option").valFromOption(b):null;d=d!==void 0?c("bs_caml_option").valFromOption(d):null;a=a!==void 0?a:!0;var f={};e!==void 0&&(f.backgroundColor=e);return h.jsxs("div",{className:c("stylex")(i.root,a?i.divider:!1),style:f,children:[h.jsx(c("MDSRow.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:b}),d]})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.make=b}),98); __d("MWV2IsTabFocusedContext.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext(!1);function a(a){var b=a.children;a=a.isFocused;return h.createElement(i.Provider,{children:b,value:a})}function b(a){return h.useContext(i)}c=a;g.useContext=b;g.make=c}),98); __d("MWV2TabContainer.bs",["MWChatFocusComposerContext.bs","MWChatStateActions.bs","MWChatStateV2.bs","MWChatTabFocusHandler.bs","UseMWV2CloseTab.bs","bs_curry","cr:3425","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var e=a.ariaBusy,f=a.ariaLabel,g=a.children,i=a.domRef,j=a.style,k=a.tab,l=a.tabIndex,m=a.thread;a=a.isFixedHeight;a=a!==void 0?a:!1;var n=d("MWChatStateV2.bs").useDispatch(),o=d("UseMWV2CloseTab.bs").useHook(m,k);h.useEffect(function(){b("cr:3425")==null||c("bs_curry")._1(b("cr:3425").markMessegnerIsActiveOnFacebook)},[]);return h.jsx(d("MWChatFocusComposerContext.bs").provider,{children:h.jsx(d("MWChatTabFocusHandler.bs").make,{onBlur:function(a){return c("bs_curry")._1(n,d("MWChatStateActions.bs").blurTab())},onEscape:function(a){return c("bs_curry")._1(o)},onFocus:function(a){return c("bs_curry")._1(n,d("MWChatStateActions.bs").focusTab(k.tabId))},children:h.jsx("div",{"aria-busy":e,"aria-label":f,className:"xcrg951 xgqcy7u x1lq5wgf x2c8kfy x78zum5 xdt5ytf x6prxxf xvq8zen x17adc0v xcn1v36 xi55695"+(a?" xt7dq6l":" x1rgmuzj xbbk1sx"),"data-testid":void 0,ref:i,style:j,tabIndex:l,children:g})})})}a.displayName=a.name+" [from "+f.id+"]";e=a;f=e;g.$MAWMessengerStatusOnFacebookEventEmitter$requireCond=b("cr:3425");g.make=f}),98); __d("MWPThreadIsPage.bs",["LSContactType.bs","MWPActor.bs","ReQL.bs","ReQLSuspense","bs_caml","bs_caml_option","react","recoverableViolation","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext();function a(a){var b=a.children,e=a.threadKey,f=c("useReStore")(),g=d("MWPActor.bs").useActor();a=d("ReQLSuspense").useFirst(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("participants")),{hd:e,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,g)}),function(a){return d("ReQLSuspense").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("contacts")),{hd:a.contactId,tl:0}))})},[f,e,g]);if(a!==void 0){a=c("bs_caml_option").valFromOption(a);a=a!==void 0?c("bs_caml").i64_eq(a.contactType,d("LSContactType.bs").page):!1}else a=!1;return h.createElement(i.Provider,{children:b,value:a})}function b(a){a=h.useContext(i);if(a!==void 0)return a;else{c("recoverableViolation")("Using hook useIsPage in a place where we didn't include the context","messenger_web_product");return!1}}e=a;g.useIsPage=b;g.make=e}),98); __d("useOpenThreadAfterJoin",["CurrentEnvironment","MWLSThreadDisplayContext.re","XCometMessengerControllerRouteBuilder","XMessengerDotComCometMainControllerRouteBuilder","useCometRouterDispatcher","useMWChatOpenTabForGroup"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useCometRouterDispatcher")(),b=c("useMWChatOpenTabForGroup")("jewel"),d=b[0];b=c("MWLSThreadDisplayContext.re").useHook();return b==="ChatTab"?function(a){d(a)}:function(b){var d;c("CurrentEnvironment").messengerdotcom?d=c("XMessengerDotComCometMainControllerRouteBuilder").buildURL({thread_key:b}):d=c("XCometMessengerControllerRouteBuilder").buildURL({thread_key:b});a==null?void 0:a.go(d,{})}}g["default"]=a}),98); __d("MWPColorUtils.bs",["bs_belt_Option","bs_caml_int64","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){a=c("bs_caml_int64").to_int32(a);var b=(a&16711680)>>>16,d=(a&65280)>>>8;a=a&255;var e=function(a){return a.toString(16).padStart(2,"0")};return"#"+(e(b)+(e(d)+e(a)))}function a(a,b,d){d=a.sort(function(a,b){return c("bs_caml_int64").to_int32(a.gradientIndex)-c("bs_caml_int64").to_int32(b.gradientIndex)|0}).map(function(a){return h(a.color)});a=d.length;if(a!==1){if(a!==0){a=c("bs_belt_Option").isSome(b);var e=[];b!==void 0&&e.push(d[0]+" calc(100vh - "+String(b.totalHeight)+"px + "+String(b.headerHeight)+"px)");for(var f=a?1:0,a=d.length-(a?2:1)|0;f<=a;++f)e.push(d[f]);b!==void 0&&(e.push(d[d.length-1|0]+" calc(100% - "+String(b.footerHeight)+"px)"),e.push(d[d.length-1|0]));f=e.join(", ");return"linear-gradient("+f+")"}c("recoverableViolation")("Not enough colors for a gradient","messenger_comet");return""}c("recoverableViolation")("Not enough colors for a gradient","messenger_comet");return""}b=h;d=a;g.int64ToHex=b;g.gradient=d}),98); __d("LSInternetConnectionState",[],(function(a,b,c,d,e,f){a=Object.freeze({NOT_CONNECTED:0,CONNECTED:1});f["default"]=a}),66); __d("LSPlatformConnectionStatusProvider",["I64","LS.re","LSDeleteAllAndInsertConnectivityStatus","LSInternetConnectionState","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.createContext,j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useState;e={setStatus:function(a){},status:"Connected"};var o=i(e);function a(a){var b=p();l(function(){var c=a.onConnectionStatusChange(b);return function(){c()}},[a,b])}function b(a){var b=a.children,e=a.onConnectionStatusChange,f=c("useReStore")();a=n("Connected");var g=a[0],i=a[1];l(function(){return e(function(a){i(a)})},[e,i]);l(function(){(g==="Connected"||g==="Disconnected")&&c("promiseDone")(f.runInTransaction(function(a){return c("LSDeleteAllAndInsertConnectivityStatus")(g==="Connected"?d("I64").of_int32(c("LSInternetConnectionState").CONNECTED):d("I64").of_int32(c("LSInternetConnectionState").NOT_CONNECTED),c("LS.re").make(a))},"readwrite"))},[f,g]);var k=j(function(a){return i(a)},[i]);a=m(function(){return{setStatus:k,status:g}},[k,g]);return h.jsx(o.Provider,{value:a,children:b})}b.displayName=b.name+" [from "+f.id+"]";function p(){var a=k(o),b=a.setStatus;return m(function(){return function(a){b(a)}},[b])}g.Context=o;g.useSubscribeOnConnectionStatusChange=a;g.Provider=b;g.useStatusChangeHandler=p}),98); __d("MWPBumpEntityKey",["CurrentUser","ODS"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){d("ODS").bumpEntityKey(3185,a,b)}function a(a,b){var d=c("CurrentUser").getAppID();d=d==null?"unknown":d;return h(a,b+"."+d)}g.bumpEntityKey=h;g.bumpEntityKeyWithAppId=a}),98); __d("MWPBumpEntityKey.re",["MWPBumpEntityKey"],(function(a,b,c,d,e,f){a=b("MWPBumpEntityKey").bumpEntityKey;f.bumpEntityKey=a;c=b("MWPBumpEntityKey").bumpEntityKeyWithAppId;f.bumpEntityKeyWithAppId=c}),null); __d("MessengerThreadThemeGradientType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];f.messageBubbleOutbound=a;f.messageBubbleInbound=c;f.threadviewBackground=d;f.deliveryReceipt=e}),null); __d("MWPThreadTheme.bs",["LSInt64.bs","MWPColorUtils.bs","MessengerThreadThemeGradientType.bs","ReQL.bs","ReQLSubscription.bs","SortedAsyncIterable.bs","bs_belt_Array","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={accessibilityLabel:"Default Blue",fallbackColor:[-1,4278224127],fbid:[45690,4245347893],isDeprecated:!1,reverseGradiantsForRadial:!1,themeIdx:[0,94]},j=[],k={gradientColors:j,threadTheme:i};i={accessibilityLabel:"Default Blue",fallbackColor:[-1,4278224127],fbid:[45690,4245347893],isDeprecated:!1,reverseGradiantsForRadial:!1,themeIdx:[0,94]};j=j;function a(a){}j={gradientColors:j,previewId:void 0,setPreviewId:a,threadTheme:i};var l=h.createContext(j);function m(a,b){var e=c("useReStore")(),f=d("ReQLSubscription.bs").useFirst(h.useMemo(function(){if(a!==void 0)return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("thread_themes")),{hd:a,tl:0});else return d("SortedAsyncIterable.bs").empty()},[e,JSON.stringify(a)])),g=d("ReQLSubscription.bs").useArray(h.useMemo(function(){if(a!==void 0)return d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("gradient_colors")),{hd:a,tl:0}),function(a){return d("LSInt64.bs").equal(a.type_,d("MessengerThreadThemeGradientType.bs").messageBubbleOutbound)});else return d("SortedAsyncIterable.bs").empty()},[e,JSON.stringify(a)]));return h.useMemo(function(){if(f!==void 0)return{gradientColors:g,threadTheme:f};else return b},[f,g])}function b(a){var b=a.children,c=a.themeFbid;a=a.defaultTheme;a=a!==void 0?a:k;var d=h.useState(function(){}),e=d[0],f=d[1];d=h.useMemo(function(){if(e!==void 0)return e;else return c},[JSON.stringify(c),e]);var g=m(d,a);d=h.useMemo(function(){return{gradientColors:g.gradientColors,previewId:e,setPreviewId:f,threadTheme:g.threadTheme}},[g,f,JSON.stringify(e)]);return h.createElement(l.Provider,{children:b,value:d})}function e(a){return h.useContext(l)}function f(a){a=h.useContext(l);var b=c("bs_belt_Array").get(a.gradientColors,0);if(b!==void 0)return d("MWPColorUtils.bs").int64ToHex(b.color);else return d("MWPColorUtils.bs").int64ToHex(a.threadTheme.fallbackColor)}function n(a){a=h.useContext(l);var b=a.gradientColors;b=c("bs_belt_Array").get(b,b.length-1|0);if(b!==void 0)return d("MWPColorUtils.bs").int64ToHex(b.color);else return d("MWPColorUtils.bs").int64ToHex(a.threadTheme.fallbackColor)}function o(a){return a.gradientColors.length>1}a=b;i=k;b=j;j=l;a=a;e=e;f=f;n=n;o=o;g.mwDefaultTheme=i;g.defaultContextValue=b;g.context=j;g.make=a;g.useHook=e;g.useTop=f;g.useBottom=n;g.isGradient=o}),98); __d("MWPThreadsForThreadList.bs",["ReQL.bs","SortedAsyncIterable.bs","bs_caml","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){if(e!==void 0){a=d("ReQL.bs").bounds(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromIndexDescending(a.table("threads").index("parentThreadKeyLastActivityTimestampMs")),{hd:b,tl:0}),{NAME:"greaterThan",VAL:{hd:c("bs_caml_int64").zero,tl:0}});b=e.minLastActivityTimestampMs;e=e.maxLastActivityTimestampMs;b=c("bs_caml").i64_neq(b,c("bs_caml_int64").zero)&&c("bs_caml").i64_neq(b,c("bs_caml_int64").one)?b:void 0;e=c("bs_caml").i64_neq(e,c("bs_caml_int64").zero)&&c("bs_caml").i64_neq(e,c("bs_caml_int64").one)?e:void 0;if(b!==void 0)if(e!==void 0)return d("ReQL.bs").bounds(a,{NAME:"range",VAL:[{NAME:"greaterThanOrEqual",VAL:{hd:b,tl:0}},{NAME:"lessThanOrEqual",VAL:{hd:e,tl:0}}]});else return d("ReQL.bs").bounds(a,{NAME:"greaterThanOrEqual",VAL:{hd:b,tl:0}});else if(e!==void 0)return d("ReQL.bs").bounds(a,{NAME:"lessThanOrEqual",VAL:{hd:e,tl:0}});else return a}else return d("SortedAsyncIterable.bs").empty()}b=a;g.createIterable=b}),98); __d("MqttState.bs",[],(function(a,b,c,d,e,f){"use strict";a="Connected";b="Disconnected";c="Connecting";f.connected=a;f.disconnected=b;f.connecting=c}),66); __d("WebStorage.bs",["WebStorage","bs_caml_option"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("WebStorage").getLocalStorage()}function b(a){return c("WebStorage").getSessionStorage()}function d(a){return c("bs_caml_option").nullable_to_opt(c("WebStorage").getLocalStorage())}function e(a){return c("bs_caml_option").nullable_to_opt(c("WebStorage").getSessionStorage())}function f(a,b,d){return c("WebStorage").setItemGuarded(a,b,d)}g.getLocalStorageExternal=a;g.getSessionStorageExternal=b;g.getLocalStorage=d;g.getSessionStorage=e;g.setItemGuarded=f}),98); __d("CommunityMessagingEnableState.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,3];e=[0,4];b=[0,5];f.enabled=a;f.disableRequested=c;f.disabling=d;f.disabled=e;f.disableFailed=b}),null); __d("LsMessengerThreadDamagingActionsEntryPoint.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];var g=[0,5],h=[0,6],i=[0,7],j=[0,8],k=[0,9],l=[0,10],m=[0,11],n=[0,12],o=[0,13],p=[0,14],q=[0,15],r=[0,16],s=[0,17],t=[0,18],u=[0,19],v=[0,20],w=[0,21],x=[0,22],y=[0,23],z=[0,24],A=[0,25],B=[0,26],C=[0,27],D=[0,28],E=[0,29],F=[0,30],G=[0,31],H=[0,32],I=[0,33],J=[0,34],K=[0,35],L=[0,36],M=[0,37],N=[0,38],O=[0,39],P=[0,40],Q=[0,41],R=[0,42],S=[0,43],T=[0,44],U=[0,45],V=[0,46],W=[0,47],X=[0,48],Y=[0,49];f.addBlock=a;f.blockComposer=c;f.blockView=d;f.blockedUserRow=e;f.declineMr=b;f.filteredRequest=g;f.frx=h;f.frxConfirmation=i;f.groupBlockMember=j;f.groupMessageContactMenu=k;f.groupWarningDialog=l;f.inboxThreadActions=m;f.inboxThreadList=n;f.manageMessages=o;f.messageRequest=p;f.omniPicker=q;f.pageReport=r;f.proactiveWarning=s;f.profile=t;f.threadSettings=u;f.threadSettingsGroupMembers=v;f.threadSettingsTitleBarMenu=w;f.threadView=x;f.threadViewBlockerComposer=y;f.pageMenu=z;f.unavailableComposer=A;f.upsellBlockNotification=B;f.pseudoBlockWarningDialog=C;f.suggestedBlock=D;f.pendingThreadList=E;f.spamThreadList=F;f.supportInboxReportInReview=G;f.supportInboxReportReviewed=H;f.blockConfirmDialog=I;f.deprecated=J;f.groupCreate=K;f.offlineRetries=L;f.proactiveWarningPopover=M;f.reportedThreadWarning=N;f.rtcAddParticipant=O;f.rtcIncomingCall=P;f.rtcPostDecline=Q;f.xma=R;f.chatMultitabHead=S;f.addRestrict=T;f.restrictComposer=U;f.restrictedAccountsList=V;f.restrictFirstTimeNux=W;f.reportLongPress=X;f.contactManager=Y}),null);