;/*FB_PKG_DELIM*/

__d("AdsMessengerContext.react",["AdsAIMessengerUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||(h=d("react"));var i=h.useContext,j=b.createContext({isMessageFromAdsAI:d("AdsAIMessengerUtils").isMessageFromAdsAI,isMessageSendDisabled:!1,isMessengerInAds:!1});function a(){return i(j)}g.AdsMessengerContext=j;g.useAdsMessengerContext=a}),98);
__d("BizInboxStateContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext(Object.freeze({}));c=b;g["default"]=c}),98);
__d("BizKitBIOOrderDetailActionsQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7650656964958841"}),null);
__d("BizKitBIOOrderDetailActionsQuery$Parameters",["BizKitBIOOrderDetailActionsQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("BizKitBIOOrderDetailActionsQuery_facebookRelayOperation"),metadata:{},name:"BizKitBIOOrderDetailActionsQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8946921305435151"}),null);
__d("CometMarketplaceCreateDiscountedPriceDialogContentQuery$Parameters",["CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceCreateDiscountedPriceDialogContentQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8334104393359923"}),null);
__d("CometMarketplaceCreateDiscountedPriceDialogNUXQuery$Parameters",["CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceCreateDiscountedPriceDialogNUXQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometMarketplaceCreateDiscountedPriceDialog.entrypoint",["CometMarketplaceCreateDiscountedPriceDialogContentQuery$Parameters","CometMarketplaceCreateDiscountedPriceDialogNUXQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=d("WebPixelRatio").get();return{queries:{cometMarketplaceCreateDiscountedPriceDialogContentQueryReference:{parameters:c("CometMarketplaceCreateDiscountedPriceDialogContentQuery$Parameters"),variables:{thread_id:a.threadId}},cometMarketplaceCreateDiscountedPriceDialogNUXQueryReference:{parameters:c("CometMarketplaceCreateDiscountedPriceDialogNUXQuery$Parameters"),variables:{contentParams:{pixelRatio:b},scale:b}}}}},root:c("JSResourceForInteraction")("CometMarketplaceCreateDiscountedPriceDialog.react").__setRef("CometMarketplaceCreateDiscountedPriceDialog.entrypoint")};g["default"]=a}),98);
__d("CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1746398");b=d("FalcoLoggerInternal").create("ctm_multi_photo_carousel_msgr_multi_photo_carousel_click",a);e=b;g["default"]=e}),98);
__d("CustomerInformationTemplateFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5813");b=d("FalcoLoggerInternal").create("customer_information_template",a);e=b;g["default"]=e}),98);
__d("E2EELinkPreviewXMADataStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({LOADED:1,LOADING:2,DISABLED:3});f["default"]=a}),66);
__d("FBIconBadgeCheckmarkFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-98 -917)",children:i.jsx(d("XPlatReactSVG").Path,{d:"m106.853 922.354-3.5 3.5a.499.499 0 0 1-.706 0l-1.5-1.5a.5.5 0 1 1 .706-.708l1.147 1.147 3.147-3.147a.5.5 0 1 1 .706.708m3.078 2.295-.589-1.149.588-1.15a.633.633 0 0 0-.219-.82l-1.085-.7-.065-1.287a.627.627 0 0 0-.6-.603l-1.29-.066-.703-1.087a.636.636 0 0 0-.82-.217l-1.148.588-1.15-.588a.631.631 0 0 0-.82.22l-.701 1.085-1.289.065a.626.626 0 0 0-.6.6l-.066 1.29-1.088.702a.634.634 0 0 0-.216.82l.588 1.149-.588 1.15a.632.632 0 0 0 .219.819l1.085.701.065 1.286c.014.33.274.59.6.604l1.29.065.703 1.088c.177.27.53.362.82.216l1.148-.588 1.15.589a.629.629 0 0 0 .82-.22l.701-1.085 1.286-.064a.627.627 0 0 0 .604-.601l.065-1.29 1.088-.703a.633.633 0 0 0 .216-.819"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconBotFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{children:[i.jsx(d("XPlatReactSVG").Path,{d:"M104.255 922c-.41 0-.755.458-.755 1s.346 1 .755 1c.409 0 .755-.458.755-1s-.346-1-.755-1m-3.505.36v-.234a.126.126 0 0 0-.126-.126H100v.486h.624c.07 0 .126-.057.126-.126m.033 1.14H100v.5h.843a.155.155 0 0 0 .157-.153v-.136c0-.115-.1-.211-.217-.211",transform:"translate(352 156.5)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M108.5 922h-.5v2.5a.5.5 0 1 1-1 0V922h-.5a.5.5 0 1 1 0-1h2a.5.5 0 1 1 0 1zm-4.245 3c-.968 0-1.755-.897-1.755-2s.787-2 1.755-2c.968 0 1.755.897 1.755 2s-.788 2-1.755 2zM102 923.843c0 .638-.519 1.157-1.156 1.157H99.5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h1.124c.621 0 1.126.505 1.126 1.126v.234c0 .172-.042.333-.111.479.223.22.361.526.361.863v.141zm7.94-2.486v-.002c-.067-.835-.145-1.332-.416-1.916a3.458 3.458 0 0 0-1.58-1.505l-.026-.008c-.475-.214-.917-.277-1.792-.346a28.09 28.09 0 0 0-4.254 0c-.768.061-1.278.116-1.882.382a3.465 3.465 0 0 0-1.541 1.538l-.013.033c-.236.498-.309.985-.377 1.825a25.389 25.389 0 0 0 0 3.287c.069.837.147 1.334.417 1.916.326.629.883 1.17 1.532 1.486a.597.597 0 0 0 .049.02l.025.007c.475.214.918.277 1.792.346a28.103 28.103 0 0 0 4.254 0c.767-.061 1.277-.116 1.882-.382a3.469 3.469 0 0 0 1.541-1.538l.013-.034c.235-.497.309-.983.377-1.824.07-.936.07-2.349 0-3.285z",transform:"translate(352 156.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconCautionCircleFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"m456.998 1077.072-.25 2.99a.75.75 0 0 1-1.495 0l-.25-2.99a.87.87 0 0 1-.003-.062c0-.497.374-1.01 1-1.01s1 .513 1 1.01a.87.87 0 0 1-.002.062M456 1083a1.001 1.001 0 0 1 0-2c.551 0 1 .449 1 1 0 .551-.449 1-1 1m0-9.5a6 6 0 1 0 .001 12 6 6 0 0 0 0-12"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconClockFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M457.655 1081.405a.748.748 0 0 1-1.06 0l-1.375-1.375a.75.75 0 0 1-.22-.53v-2.75a.75.75 0 0 1 1.5 0v2.44l1.155 1.155a.75.75 0 0 1 0 1.06M456 1073.5c-3.309 0-6 2.691-6 6s2.691 6 6 6 6-2.691 6-6-2.691-6-6-6"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconDots3VerticalOutline20.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-446 -398)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M456 410a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-12a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconLikeFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M462 1080.384c0-.575-.193-.74-.403-.905.116-.191.226-.466.226-.817 0-.717-.555-1.162-1.449-1.162h-2.437c.067-.376.147-1.401.147-1.766 0-.756-.18-1.697-.873-2.069a1.224 1.224 0 0 0-.637-.165c-.399 0-.663.164-.757.267a.312.312 0 0 0-.082.236l.058 1.567a.625.625 0 0 1-.071.348l-1.207 2.693a.195.195 0 0 1-.083.075l-.008.003-.007.004-.178.097a.454.454 0 0 0-.239.4v4.286c0 .132.06.257.16.344.052.045.727.68 1.393.68h3.93c.609 0 1.012-.206 1.231-.61.2-.37.168-.725.089-.983.332-.105.645-.355.738-.818.06-.299-.01-.548-.106-.733.291-.16.565-.396.565-.972m-9.553-2.384h-1.893a.554.554 0 0 0-.554.553v5.894c0 .306.248.553.553.553h1.893a.554.554 0 0 0 .554-.553v-5.894a.553.553 0 0 0-.553-.553"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconLiveFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M460.5 1078.5h-1v.5h1v1h-1v.5h1v1h-2v-4h2v1zm-3.09 3h-1.32l-.8-4h1.02l.44 2.2.44-2.2h1.02l-.8 4zm-3.41 0h1v-4h-1v4zm-.5 0h-2v-4h1v3h1v1zm7.5-6h-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconMessagesFilled20.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-446 -350)",children:i.jsxs(d("XPlatReactSVG").G,{children:[i.jsx(d("XPlatReactSVG").Path,{d:"M109 209.745v2.84a5.416 5.416 0 0 1-5.416 5.415h-1.919a.758.758 0 0 0-.472.164l-1.237.98c-.551.437-.266 1.352.437 1.356h2.728l4.163 3.297a.752.752 0 0 0 1.216-.588v-2.73a3.922 3.922 0 0 0 3.5-3.895v-4.168a3.915 3.915 0 0 0-1.855-3.328c-.498-.31-1.145.07-1.145.657",transform:"translate(354 146)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M103.584 204.5h-7.668A3.92 3.92 0 0 0 92 208.416v4.168a3.922 3.922 0 0 0 3.5 3.894v2.73a.75.75 0 0 0 1.216.589l4.163-3.297h2.705a3.92 3.92 0 0 0 3.916-3.916v-4.168a3.92 3.92 0 0 0-3.916-3.916",transform:"translate(354 146)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconPlusCircleFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M459 1080.25h-2.25v2.25c0 .412-.337.75-.75.75a.752.752 0 0 1-.75-.75v-2.25H453a.752.752 0 0 1-.75-.75c0-.412.337-.75.75-.75h2.25v-2.25c0-.412.337-.75.75-.75s.75.338.75.75v2.25H459c.413 0 .75.338.75.75s-.337.75-.75.75m-3-6.75c-3.308 0-6 2.691-6 6s2.692 6 6 6 6-2.691 6-6-2.692-6-6-6"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconProfileFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{children:[i.jsx(d("XPlatReactSVG").Path,{d:"M104 923.75c-.69 0-1.25-.673-1.25-1.5 0-1.5.908-1.5 1.25-1.5.342 0 1.25 0 1.25 1.5 0 .827-.56 1.5-1.25 1.5",transform:"translate(352 156)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M104 920c-1.428 0-2 1.008-2 2.25s.895 2.25 2 2.25 2-1.008 2-2.25-.572-2.25-2-2.25m0 1.5c.28 0 .5 0 .5.75 0 .429-.264.75-.5.75s-.5-.321-.5-.75c0-.75.22-.75.5-.75",transform:"translate(352 156)"}),i.jsx(d("XPlatReactSVG").Path,{fillRule:"nonzero",d:"M110 923.5a6 6 0 1 1-12 0 6 6 0 0 1 12 0zm-1 0a5 5 0 1 0-10 0 5 5 0 0 0 10 0z",transform:"translate(352 156)"}),i.jsx(d("XPlatReactSVG").Path,{fillRule:"nonzero",d:"M108.247 927.568c-.15-1.457-1.501-2.568-3.092-2.568h-2.31c-1.59 0-2.942 1.111-3.092 2.568l.994.103c.096-.927 1.001-1.67 2.098-1.67h2.31c1.097 0 2.002.743 2.098 1.67l.994-.103z",transform:"translate(352 156)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M104 929c1.463 0 2.787-.528 3.75-1.38-.123-1.184-1.243-2.12-2.595-2.12h-2.31c-1.352 0-2.472.936-2.595 2.12.963.852 2.287 1.38 3.75 1.38",transform:"translate(352 156)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconRefreshRightFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{fillRule:"nonzero",children:[i.jsx(d("XPlatReactSVG").Path,{d:"M103.5 918.5a5.5 5.5 0 1 0 3.248 1.061.75.75 0 1 0-.887 1.21A4 4 0 1 1 103.5 920a.75.75 0 1 0 0-1.5z",transform:"translate(352.5 156)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M102.47 919.97a.75.75 0 0 0 1.06 1.06l1.25-1.25a.75.75 0 0 0 0-1.06l-1.25-1.25a.75.75 0 0 0-1.06 1.06l.72.72-.72.72z",transform:"translate(352.5 156)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconReplyFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{children:[i.jsx(d("XPlatReactSVG").Path,{d:"M101 936.5c1.903 0 3.847.017 5.811 3.326.053.09.192.048.189-.057-.213-8.03-6-7.769-6-7.769v-2.75c0-.112-.17-.112-.25-.034l-4.712 4.978a.128.128 0 0 0 0 .182l4.712 4.879c.08.078.25.022.25-.091V936.5z",transform:"translate(354.5 145)"}),i.jsx(d("XPlatReactSVG").Path,{fillRule:"nonzero",d:"M101.5 937.007c2.344.065 3.445.655 4.881 3.074.318.538 1.136.29 1.119-.326-.096-3.612-1.284-5.961-3.22-7.245a6.126 6.126 0 0 0-2.136-.888 6.042 6.042 0 0 0-.644-.1v-2.272c0-.673-.751-.733-1.1-.39l-4.725 4.99a.624.624 0 0 0 .011.881l4.704 4.87c.395.388 1.11.137 1.11-.437v-2.157zm-4.857-2.724 3.857-4.075v2.315l.527-.024c.207-.004.524.02.912.102a5.134 5.134 0 0 1 1.788.743c1.388.92 2.339 2.508 2.66 4.948-1.422-1.847-2.873-2.292-5.387-2.292h-.5v2.276l-3.857-3.993z",transform:"translate(354.5 145)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconShareIosFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{fillRule:"nonzero",children:[i.jsx(d("XPlatReactSVG").Path,{d:"M100.5 535h.475c.29 0 .525.235.525.524v4.952c0 .29-.235.524-.525.524h-4.95a.524.524 0 0 1-.525-.524v-4.952c0-.29.235-.524.525-.524h.475a.5.5 0 0 0 0-1h-.475c-.843 0-1.525.682-1.525 1.524v4.952c0 .842.682 1.524 1.525 1.524h4.95c.843 0 1.525-.682 1.525-1.524v-4.952c0-.842-.682-1.524-1.525-1.524h-.475a.5.5 0 0 0 0 1zm-.354-2.146a.5.5 0 1 0 .708-.708l-2-2a.5.5 0 0 0-.708 0l-2 2a.5.5 0 1 0 .708.708l1.646-1.647 1.646 1.647z",transform:"translate(357.5 543.5)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M99 537.5v-6.875a.5.5 0 0 0-1 0v6.875a.5.5 0 0 0 1 0z",transform:"translate(357.5 543.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBP2MECPCheckoutDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("FBP2MECPCheckoutDialog.react").__setRef("FBP2MECPCheckoutDialog.entrypoint")};g["default"]=a}),98);
__d("FBPayHubTransactionDetailDialogQuery$Parameters",["cr:1932967"],(function(a,b,c,d,e,f,g){"use strict";f.exports=b("cr:1932967")}),34);
__d("FBPayHubTransactionDetailDialog.entrypoint",["FBPayHubTransactionDetailDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.transactionID;return{queries:{fBPayHubTransactionDetailDialogQueryReference:{parameters:b("FBPayHubTransactionDetailDialogQuery$Parameters"),variables:{transaction_id:a}}}}},root:c("JSResourceForInteraction")("FBPayHubTransactionDetailDialog.react").__setRef("FBPayHubTransactionDetailDialog.entrypoint")};g["default"]=a}),98);
__d("FBPayHubTransactionDetailDialogQuery$Parameters.facebook",["FBPayHubTransactionDetailDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("FBPayHubTransactionDetailDialogQuery_facebookRelayOperation"),metadata:{},name:"FBPayHubTransactionDetailDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("GraphQLMessengerPlatformCtaPostHandlingMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4973572169363354"}),null);
__d("GraphQLMessengerPlatformCtaPostHandlingMutation.graphql",["GraphQLMessengerPlatformCtaPostHandlingMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"MessengerPlatformCtaPostHandlingResponsePayload",kind:"LinkedField",name:"messenger_platform_cta_post_handling",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"GraphQLMessengerPlatformCtaPostHandlingMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"GraphQLMessengerPlatformCtaPostHandlingMutation",selections:c},params:{id:b("GraphQLMessengerPlatformCtaPostHandlingMutation_facebookRelayOperation"),metadata:{},name:"GraphQLMessengerPlatformCtaPostHandlingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
__d("GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9331044567008108"}),null);
__d("GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters",["CometFeedStoryDynamicResolutionPhotoAttachmentRenderer_experimentWidth.relayprovider","CometImmersivePhotoCanUserDisable3DMotion.relayprovider","FBReelsMediaFooter_comet_enable_reels_ads_gk.relayprovider","FBReels_deprecate_short_form_video_context_gk.relayprovider","GHLShouldChangeAdIdFieldName.relayprovider","GHLShouldChangeSponsoredDataFieldName.relayprovider","GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation","IsMergQAPolls.relayprovider","IsWorkUser.relayprovider","WorkCometIsEmployeeGKProvider.relayprovider"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometAdmodChatsPendingPostReviewDialogQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__GHLShouldChangeSponsoredDataFieldNamerelayprovider:b("GHLShouldChangeSponsoredDataFieldName.relayprovider"),__relay_internal__pv__GHLShouldChangeAdIdFieldNamerelayprovider:b("GHLShouldChangeAdIdFieldName.relayprovider"),__relay_internal__pv__IsWorkUserrelayprovider:b("IsWorkUser.relayprovider"),__relay_internal__pv__CometFeedStoryDynamicResolutionPhotoAttachmentRenderer_experimentWidthrelayprovider:b("CometFeedStoryDynamicResolutionPhotoAttachmentRenderer_experimentWidth.relayprovider"),__relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider:b("CometImmersivePhotoCanUserDisable3DMotion.relayprovider"),__relay_internal__pv__WorkCometIsEmployeeGKProviderrelayprovider:b("WorkCometIsEmployeeGKProvider.relayprovider"),__relay_internal__pv__IsMergQAPollsrelayprovider:b("IsMergQAPolls.relayprovider"),__relay_internal__pv__FBReels_deprecate_short_form_video_context_gkrelayprovider:b("FBReels_deprecate_short_form_video_context_gk.relayprovider"),__relay_internal__pv__FBReelsMediaFooter_comet_enable_reels_ads_gkrelayprovider:b("FBReelsMediaFooter_comet_enable_reels_ads_gk.relayprovider")}}};e.exports=a}),null);
__d("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint",["GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.authorID,e=a.groupID,f=a.postID;a=a.scale;return{queries:{queryReference:{parameters:c("GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters"),variables:{authorID:b,feedLocation:"GROUP_PENDING",focusCommentID:null,groupID:e,postID:f,privacySelectorRenderLocation:"COMET_STREAM",renderLocation:"group_pending_queue",scale:a?a:d("WebPixelRatio").get(),useDefaultActor:!1}}}}},root:c("JSResourceForInteraction")("GroupsCometAdmodChatsPendingPostReviewDialog.react").__setRef("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint")};b=a;g["default"]=b}),98);
__d("GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9646560342031109"}),null);
__d("GroupsCometAdmodChatsReviewDialogQuery$Parameters",["GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometAdmodChatsReviewDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("GroupsCometAdmodChatsReviewDialog.entrypoint",["GroupsCometAdmodChatsReviewDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID,e=a.profileID;a=a.scale;return{queries:{queryReference:{parameters:c("GroupsCometAdmodChatsReviewDialogQuery$Parameters"),variables:{groupID:b,profileID:e,scale:a?a:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("GroupsCometAdmodChatsReviewDialog.react").__setRef("GroupsCometAdmodChatsReviewDialog.entrypoint")};b=a;g["default"]=b}),98);
__d("IIGDAPI",["MAWBridge"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return function(){for(var b=arguments.length,c=new Array(b),e=0;e<b;e++)c[e]=arguments[e];return d("MAWBridge").getBridge().sendAndReceive("backend","igdapi",{args:c,type:a})}}g.makeBridgedApi=a}),98);
__d("IGDBridgedAPI",["IIGDAPI"],(function(a,b,c,d,e,f,g){"use strict";b={33:(a=d("IIGDAPI")).makeBridgedApi("33"),46:a.makeBridgedApi("46"),sendEditMessage:a.makeBridgedApi("sendEditMessage"),sendMediaMessage:a.makeBridgedApi("sendMediaMessage"),sendOrRemoveReaction:a.makeBridgedApi("sendOrRemoveReaction"),sendXmaReceiverFetch:a.makeBridgedApi("sendXmaReceiverFetch")};c=b;g["default"]=c}),98);
__d("IGDDisappearingMessagesStrings",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a="https://help.instagram.com/491565145294150/";b=h._(/*BTDS*/"__JHASH__2OBcaB7QAZn__JHASH__");g.LEARN_MORE_LINK=a;g.DM_SECURITY_NOTICE=b}),226);
__d("IGDGetMessagePluginInfo",["IGDInstamadilloUtils","LSIntEnum","LSPendingTasksPluginType","asyncToGeneratorRuntime","isInstamadillo"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,c){return b?i(a,b):c()}function i(a,b){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(!c("isInstamadillo")())return{openEb:!1,pluginType:void 0};var e=(yield a.messages.index("messageId").get(b.messageId));if(!d("IGDInstamadilloUtils").isInstamadilloMessage(e))return{openEb:!1,pluginType:void 0};e=(yield a.e2ee_igMessageAuxiliaryInfo.get(b.messageId));a=Boolean(e==null?void 0:e.openEb);return{openEb:a,pluginType:(h||(h=d("LSIntEnum"))).ofNumber(c("LSPendingTasksPluginType").IGD_INSTAMADILLO)}});return j.apply(this,arguments)}g.IGDGetMessagePluginInfo=a}),98);
__d("LSCTAIconType",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:0,FB:1,FB_ALWAYS_WHITE:2,DOTS_THREE_HORIZONTAL:3,CHEVRON_DOWN:4,FB_INFO_SMALL:5,CAMERA:6,CIRCLED_X:7,PENCIL:8,META_HORIZON:9});f["default"]=a}),66);
__d("LSCommunityInviteStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({ADDED_BUT_UNCONFIRMED:5,IN_COMMUNITY:0,INVITED:1,REQUEST_PENDING:2,UNENGAGED_MEMBER:4,UNREQUESTED:3});f["default"]=a}),66);
__d("LSCustomUpdateMuteManagement",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(a){return c.storedProcedure(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(e){return d[1]=new c.Map(),d[1].set("game_id",a[1]),d[1].set("muted_user_id",a[0]),d[1].set("owner_id",d[0]),d[1].set("user_action_type",a[2]),d[2]=c.toJSON(d[1]),c.storedProcedure(b("LSIssueNewTask"),"instant_game_custom_update_mute_management",c.i64.cast([0,759]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxCustomUpdateMuteManagementStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSCustomUpdateMuteManagementStoredProcedure",["LSCustomUpdateMuteManagement","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSCustomUpdateMuteManagement"),e.mutedUserId,e.gameId,e.userActionType);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSFetchMessageSeenCount",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_id",a[0]),d[0].set("message_id",a[1]),d[1]=d[0].get("thread_id"),d[2]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),["cm_message_seen_count",c.i64.to_string(d[1])].join(""),c.i64.cast([0,540]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxFetchMessageSeenCountStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSFetchMessageSeenCountStoredProcedure",["LSFetchMessageSeenCount","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSFetchMessageSeenCount"),e.threadKey,e.messageId);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSIssueReactionsV2DetailsUsersListFetch",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.filter(c.db.table(243).fetch([[[a[0],a[1]]]]),function(b){return c.i64.eq(a[0],b.threadId)&&a[1]===b.messageId&&c.i64.eq(a[2],b.reactionFbid)}).next().then(function(b,d){var e=b.done;b=b.value;return e?c.db.table(243).add({threadId:a[0],messageId:a[1],reactionFbid:c.i64.cast([0,0]),minTimestampMs:c.i64.cast([2147483647,4294967295]),hasMoreAfter:!1,hasMoreBefore:!1,isLoadingAfter:!1,isLoadingBefore:!0,maxTimestampMs:c.i64.cast([2147483647,4294967295]),nextPageCursor:""}):(d=b.item,c.forEach(c.db.table(243).fetch([[[d.threadId,d.messageId,d.reactionFbid,d.minTimestampMs]]]),function(a){var b=a.update;a.item;return b({isLoadingBefore:!0})}))})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[1]=c.i64.cast([0,1]):(b=a.item,d[6]=b.syncGroup,c.i64.neq(d[6],void 0)?d[5]=d[6]:d[5]=c.i64.cast([0,1]),d[1]=d[5])})},function(e){return d[3]=new c.Map(),d[3].set("thread_id",a[0]),d[3].set("message_id",a[1]),d[3].set("reaction_fbid",a[2]),d[3].set("cursor",a[3]),d[3].set("sync_group",d[1]),d[4]=c.toJSON(d[3]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"fetch_reactions_v2_details_users_list",c.i64.cast([0,577]),d[4],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxIssueReactionsV2DetailsUsersListFetchStoredProcedure";a.__tables__=["reactions_v2_details_ranges_v2__generated","threads"];e.exports=a}),null);
__d("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure",["LSIssueReactionsV2DetailsUsersListFetch","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSIssueReactionsV2DetailsUsersListFetch"),e.threadId,e.messageId,e.reactionFbid,e.nextPageCursor);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSSetClientCTAType",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.forEach(b.db.table(19).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({type_:a[1]})})},function(a){return b.resolve(c)}])}a.__sproc_name__="LSMailboxSetClientCTATypeStoredProcedure";a.__tables__=["attachment_ctas"];e.exports=a}),null);
__d("LSMarkAsX",["LSIssueNewTask","LSSetClientCTAType"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(d){return c.storedProcedure(b("LSSetClientCTAType"),a[0],"xma_disabled_cta")},function(e){return d[0]=new c.Map(),d[0].set("cta_id",a[0]),d[0].set("order_id",a[1]),d[0].set("cta_type",a[2]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"p2m_mark_as_x",c.i64.cast([0,808]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxMarkAsXStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSMarkAsXStoredProcedure",["LSMarkAsX","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSMarkAsX"),e.ctaId,e.orderId,e.ctaType);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSMediaUrlAttachmentItem",["LSMediaUrlUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.previewUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?a.previewUrlFallback:a.previewUrl}function b(a){var b=a.previewUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?a.previewUrlFallback:a.previewUrlLarge}function c(a){var b=a.playableUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?a.playableUrlFallback:a.playableUrl}function e(a){var b=a.faviconUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?a.faviconUrlFallback:a.faviconUrl}g.previewUrl=a;g.previewUrlLarge=b;g.playableUrl=c;g.faviconUrl=e}),98);
__d("LSOptimisticProcessMarketplaceCallFunctionCTA",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[1]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[5]=b.syncGroup,c.i64.neq(d[5],void 0)?d[4]=d[5]:d[4]=c.i64.cast([0,1]),d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("action_type",a[4]),d[2].set("attachment_fbid",a[2]),d[2].set("message_id",a[0]),d[2].set("target_id",a[3]),d[2].set("thread_key",a[1]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTask"),"process_marketplace_xma_cta",c.i64.cast([0,185]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure";a.__tables__=["threads"];e.exports=a}),null);
__d("LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure",["LSOptimisticProcessMarketplaceCallFunctionCTA","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSOptimisticProcessMarketplaceCallFunctionCTA"),e.messageId,e.threadKey,e.attachmentFbid,e.targetId,e.actionType);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSUpdateBotSubscription",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("user_action_type",a[1]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"game_messenger_updates_management_xmat",c.i64.cast([0,755]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxUpdateBotSubscriptionStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSUpdateBotSubscriptionStoredProcedure",["LSSynchronousPromise","LSUpdateBotSubscription","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSUpdateBotSubscription"),e.threadKey,e.userActionType);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSVerifiedType",[],(function(a,b,c,d,e,f){a=Object.freeze({NOT_VERIFIED:0,DEFAULT:1,VERIFIED_FOOTER:2,VERIFIED_HEADER_TITLE_ONLY:3,VERIFIED_CONTENT_TITLE_ONLY:4});f["default"]=a}),66);
__d("LsDidTapCallToActionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743852");b=d("FalcoLoggerInternal").create("ls_did_tap_call_to_action",a);e=b;g["default"]=e}),98);
__d("useSecureThreadJid",["I64","Int64Hooks","LSMessagingThreadTypeUtil","MAWMiActOnActThreadReady","Promise","ReQL","ReQLSuspense","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useRef;function a(a,e){var g,k=d("react-compiler-runtime").c(13),m=(i||(i=c("useReStore")))(),n=l();g=(g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(m.tables.threads,["threadType"]).getKeyRange(a)},[m,a],f.id+":36"))==null?void 0:g.threadType;var o;k[0]!==g?(o=g?d("LSMessagingThreadTypeUtil").isArmadilloSecure(g):!1,k[0]=g,k[1]=o):o=k[1];var p=o;k[2]!==m.tables||k[3]!==e||k[4]!==p||k[5]!==a?(g=function(){if(a==null||(j||(j=d("I64"))).equal(a,(j||(j=d("I64"))).zero||!p))return;c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(m.tables,a,"useSecureThreadJid: "+e,function(a,c){n.current=c;return(h||(h=b("Promise"))).resolve()}))},k[2]=m.tables,k[3]=e,k[4]=p,k[5]=a,k[6]=g):g=k[6];k[7]!==m||k[8]!==e||k[9]!==p||k[10]!==a?(o=[m,a,p,e],k[7]=m,k[8]=e,k[9]=p,k[10]=a,k[11]=o):o=k[11];d("Int64Hooks").useEffectInt64(g,o);k[12]===Symbol["for"]("react.memo_cache_sentinel")?(g=function(){return n.current},k[12]=g):g=k[12];return g}g["default"]=a}),98);
__d("MAWEphemeralAdminMsgCta.react",["CometTextWithEntities.react","JSResourceForInteraction","MWXPressable.react","QPLUserFlow","qpl","react","react-compiler-runtime","useMWXLazyDialog","useSecureThreadJid"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("JSResourceForInteraction")("MAWEphemeralSettingsDialog.react").__setRef("MAWEphemeralAdminMsgCta.react");function a(a){var b=d("react-compiler-runtime").c(13),e=a.threadKey;a=a.title;var f=c("useSecureThreadJid")(e,"MAWEphemeralAdminMsgCta"),g;b[0]!==f||b[1]!==e?(g={getThreadJid:f,threadKey:e},b[0]=f,b[1]=e,b[2]=g):g=b[2];var h=g;f=c("useMWXLazyDialog")(j);var k=f[0];b[3]!==h||b[4]!==k?(e=function(){c("QPLUserFlow").start(c("qpl")._(1056845690,"2034"),{annotations:{string:{action_type:"change_ephemeral_message_duration"}}}),k(h)},b[3]=h,b[4]=k,b[5]=e):e=b[5];var l=e;b[6]!==l?(g=function(){return l()},b[6]=l,b[7]=g):g=b[7];b[8]!==a?(f=i.jsx(c("CometTextWithEntities.react"),{text:a}),b[8]=a,b[9]=f):f=b[9];b[10]!==g||b[11]!==f?(e=i.jsx(c("MWXPressable.react"),{onPress:g,children:f}),b[10]=g,b[11]=f,b[12]=e):e=b[12];return e}g["default"]=a}),98);
__d("MAWEphemeralMessageTimer.react",["fbt","CometScreenReaderText.react","I64","MAWEphemeralConsts","MWXText.react","WATimeUtils","react","react-compiler-runtime","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;var l=b.useEffect,m=b.useState;function n(a){if(a<d("MAWEphemeralConsts").oneMinuteInSeconds)return h._(/*BTDS*/"__JHASH__A4ingmAx2be__JHASH__",[h._param("seconds",String(a).concat("s"))]);if(a<d("MAWEphemeralConsts").oneHourInSeconds)return h._(/*BTDS*/"__JHASH__vWI2ZlgwXQb__JHASH__",[h._param("minutes",String(Math.floor(a/d("MAWEphemeralConsts").oneMinuteInSeconds)).concat("m"))]);return a<d("MAWEphemeralConsts").oneDayInSeconds?h._(/*BTDS*/"__JHASH__25PcZ3MKsFM__JHASH__",[h._param("hours",String(Math.floor(a/d("MAWEphemeralConsts").oneHourInSeconds)).concat("h"))]):h._(/*BTDS*/"__JHASH__eRreAbYsreU__JHASH__",[h._param("days",String(Math.floor(a/d("MAWEphemeralConsts").oneDayInSeconds)).concat("d"))])}function o(a,b){a=(j||(j=d("I64"))).to_int32(j.sub(a,j.of_float(d("WATimeUtils").unixTime())));return b!=null&&a>(j||(j=d("I64"))).to_int32(b)?(j||(j=d("I64"))).to_int32(b):a}function a(a){var b=d("react-compiler-runtime").c(17),e=a.ephemeralDurationInSec,f=a.expirationTimestamp,g=a.handleMessageExpired;b[0]!==e||b[1]!==f?(a=function(){return o(f,e)},b[0]=e,b[1]=f,b[2]=a):a=b[2];a=m(a);var i=a[0],j=a[1],p;b[3]!==i?(a=n(i),p=h._(/*BTDS*/"__JHASH__LNXEmV_oB6W__JHASH__",[h._param("time",a)]),b[3]=i,b[4]=p,b[5]=a):(p=b[4],a=b[5]);p=p;var q;b[6]!==g||b[7]!==i?(q=function(){i>0&&c("setTimeout")(function(){return j(i-1)},d("MAWEphemeralConsts").msPerSec),i===0&&(g==null?void 0:g())},b[6]=g,b[7]=i,b[8]=q):q=b[8];var r;b[9]!==f||b[10]!==g||b[11]!==i?(r=[i,f,g],b[9]=f,b[10]=g,b[11]=i,b[12]=r):r=b[12];l(q,r);b[13]!==p||b[14]!==i||b[15]!==a?(q=i>0?k.jsxs("div",babelHelpers["extends"]({className:"x2b8uid xbkr7qi"},{children:[k.jsx(c("CometScreenReaderText.react"),{text:p}),k.jsx("div",{"aria-hidden":!0,children:k.jsx(c("MWXText.react"),{testid:void 0,type:"meta1",children:a})})]})):null,b[13]=p,b[14]=i,b[15]=a,b[16]=q):q=b[16];return q}g["default"]=a}),226);
__d("MAWFetchSecureMessages",["I64","LSMEBTaskCreationSource","MAWBridgeSendAndReceive","MAWDbMsg","MAWMiActOnActThreadReady","ReQL","WATagsLogger","asyncToGeneratorRuntime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["MAWFetchSecureMessages: threadJid: "," minMsgSortOrderTsResponse ",""]);i=function(){return a};return a}var j=c("requireDeferred")("MWRestoreMessagesFromEB").__setRef("MAWFetchSecureMessages"),k=10;function a(a,b,c,d,e,f,g){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g,l,m){l===void 0&&(l=k);var n=m.addQPLAnnotations,o=m.markQPLFailure,p=m.markQPLPoint,q=m.markQPLStart;m=m.markQPLSuccess;var r=q();n(r,{string:{threadType:(h||(h=d("I64"))).to_string(f)}});function s(a){p(r,"load_more_msgs_success","successfully loaded messages from worker"),n(r,a)}p(r,"before_start_load_more_msgs","before fetching messages range from table");n(r,{string:babelHelpers["extends"]({direction:g,thread_id:h.to_string(e)},f!=null?{thread_type:(h||(h=d("I64"))).to_string(f)}:{})});q=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.messages_ranges_v2__generated).getKeyRange(e)));try{if(q!=null&&!q.isLoadingBefore&&g==="before"){p(r,"start_load_more_msgs","starting the load more QPL event");f=(yield d("MAWMiActOnActThreadReady").waitForACTThreadReady(a.tables,e,"MAWFetchSecureMessages"));var t=f.chatJid;p(r,"put_message_range","put txn in messages_ranges_v2__generated table");yield b.messages_ranges_v2__generated.put({hasMoreAfter:q.hasMoreAfter,hasMoreBefore:q.hasMoreBefore,isLoadingAfter:q.isLoadingAfter,isLoadingBefore:!0,maxMessageId:q.maxMessageId,maxTimestampMs:q.maxTimestampMs,minMessageId:q.minMessageId,minTimestampMs:q.minTimestampMs,threadKey:q.threadKey});p(r,"send_loadMoreMsgs_to_backend","calling backend with loadMoreMsgs");e=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","loadMoreMsgs",{chatJid:t,direction:g,numMsgs:l,offsetMsgId:d("MAWDbMsg").toMsgId(q.minMessageId)}));s({bool:{hasMoreBefore:e.hasMoreBefore}});if(e.hasMoreBefore){m(r);return}var u=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getMaybeNextNonAdminMsgSortOrderMs",{chatJid:t,mayBeAdminMsgId:d("MAWDbMsg").toMsgId(q.minMessageId)}));d("WATagsLogger").TAGS(["labyrinth_web","MAWFetchSecureMessages"]).LOG(i(),t,u.minMsgTimestampMs);p(r,"issued_range_query","MAWFetchSecureMessages: minMsgSortOrderTsResponse "+u.minMsgTimestampMs);m(r);j.onReady(function(b){b({chatJid:t,newerNumMessages:(h||(h=d("I64"))).zero,numMessages:h.of_int32(l),sortOrderMs:h.of_float(u.minMsgTimestampMs),source:c("LSMEBTaskCreationSource").MESSENGER_MESSAGE_LIST_PAGINATION,storage:a})})}n(r,{bool:{isLoadingAfter:q==null?void 0:q.isLoadingAfter,isLoadingBefore:q==null?void 0:q.isLoadingBefore}});p(r,"already_loading_messages","end the load more QPL event.");m(r)}catch(a){o(r,a)}});return l.apply(this,arguments)}g["default"]=a}),98);
__d("useMAWQPLLogger",["MAWQPLLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a){return i(function(){return c("MAWQPLLogger")(a)},[a])}g.useMAWQPLLogger=a}),98);
__d("MAWFetchMoreMessages",["Int64Hooks","MAWFetchSecureMessages","MAWSecureLocalDBDataSource","qpl","react-compiler-runtime","useMAWQPLLogger","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("react-compiler-runtime").c(1),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=[],a[0]=b):b=a[0];return d("Int64Hooks").useMemoInt64(i,b)}function i(){return new(c("MAWSecureLocalDBDataSource"))()}function b(a){var b=d("react-compiler-runtime").c(6),e=(h||(h=c("useReStore")))(),f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=c("qpl")._(25303796,"1974"),b[0]=f):f=b[0];var g=d("useMAWQPLLogger").useMAWQPLLogger(f),i;b[1]!==e||b[2]!==g||b[3]!==a?(f=function(b,d,f,h){return c("MAWFetchSecureMessages")(e,b,d,a,f,h,g)},i=[e,g,a],b[1]=e,b[2]=g,b[3]=a,b[4]=f,b[5]=i):(f=b[4],i=b[5]);return d("Int64Hooks").useCallbackInt64(f,i)}g.useSecureDataStorage=a;g.useFetchSecureMessages=b}),98);
__d("URLScraper",["ArbiterMixin","DataStore","Event","URLMatcher","mixin"],(function(a,b,c,d,e,f,g){var h="scraperLastPermissiveMatch";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.input=b;d.enable();d.getValueFn=c;return d}var e=b.prototype;e.reset=function(){d("DataStore").set(this.input,h,null)};e.enable=function(){if(this.events)return;var a=function(a){window.setTimeout(this.check.bind(this,a),30)};this.events=c("Event").listen(this.input,{paste:a.bind(this,!1),keydown:a.bind(this,!0)})};e.disable=function(){if(!this.events)return;for(var a in this.events)this.events[a].remove();this.events=null};e.check=function(a){var c=this.getValueFn?this.getValueFn():this.input.value;if(a&&b.trigger(c))return;a=b.match(c);c=d("URLMatcher").permissiveMatch(c);c&&c!=d("DataStore").get(this.input,h)&&(d("DataStore").set(this.input,h,c),this.inform("match",{url:a||c,alt_url:c}))};return b}(c("mixin")(c("ArbiterMixin")));Object.assign(a,d("URLMatcher"));g["default"]=a}),98);
__d("getURLRanges",["URI","URLScraper","UnicodeUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=[],e=0;while(!0){var f=(i||(i=d("UnicodeUtils"))).substr(a,e),g=c("URLScraper").match(f);if(!g)break;if(!(h||(h=c("URI"))).isValidURI(g))break;var j=g;/^[a-z][a-z0-9\-+.]+:\/\//i.test(g)||(j="http://"+g);var k=f.indexOf(g);f=i.strlen(f.substr(0,k));e+=f;k=g.length;b.push({offset:e,length:g.length,entity:{url:j}});e+=k}return b}g["default"]=a}),98);
__d("MAWFindFirstUrl",["getURLRanges"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=c("getURLRanges")(a);return a.length===0?[]:a}g.findFirstUrl=a}),98);
__d("MAWIsFBXMA",["LSIntEnum","LSXmaContentType"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){if(a==null)return!1;switch((h||(h=d("LSIntEnum"))).toNumber(a)){case c("LSXmaContentType").FB_FEED_SHARE:case c("LSXmaContentType").FB_SHORT:case c("LSXmaContentType").MSG_RECEIVER_FETCH:return!0;default:return!1}}g.isFBXMA=a}),98);
__d("MAWIsReceiverFetchXmaInLoadingState",["I64","LSIntEnum","LSXmaContentType","gkx","isReceiverFetchReceivingEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){a=(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(536870912));return a&&c("gkx")("7835")?(b==null?void 0:b.xmaDataclass)==null:a&&((b==null?void 0:b.xmaContentType)==null||(i||(i=d("LSIntEnum"))).toNumber(b==null?void 0:b.xmaContentType)===c("LSXmaContentType").MSG_RECEIVER_FETCH)&&c("isReceiverFetchReceivingEnabled")(!0)}g.isReceiverFetchXmaInLoadingState=a}),98);
__d("MAWIsXMAWithPlaintextHash",["I64","LSIntEnum","MessagingAttachmentType"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return!(h||(h=d("I64"))).equal(a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))?!1:![a.xmaPreviewFbid,a.xmaHeaderImageFbid,a.xmaFaviconFbid].filter(Boolean).every(isFinite)}g.isXMAWithPlaintextHash=a}),98);
__d("MAWMediaManagerUtilsDeferred",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";a=c("requireDeferred")("MAWMediaManagerUtils").__setRef("MAWMediaManagerUtilsDeferred");b=a;g["default"]=b}),98);
__d("MAWPreProcessLinkPreviewQPL",["MAWLoggerUtils","QPLUserFlow","justknobx","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qpl")._(1056840460,"718");function a(a){var b=a.draftId;a=a.url;b=b.concat(a);var e=d("MAWLoggerUtils").getInstanceKeyFromId(b);a=c("justknobx")._("2714");c("QPLUserFlow").start(h,{annotations:{string:{preprocess_type:"link_preview_xma"}},instanceKey:e,timeoutInMs:a});return{addAnnotations:function(a){c("QPLUserFlow").addAnnotations(h,a,{instanceKey:e})},addPoint:function(a,b){c("QPLUserFlow").addPoint(h,a,{instanceKey:e}),b!=null&&c("QPLUserFlow").addAnnotations(h,b,{instanceKey:e})},endCancel:function(a,b){c("QPLUserFlow").endCancel(h,{annotations:a,cancelReason:b,instanceKey:e})},endFail:function(a,b){c("QPLUserFlow").endFailure(h,a,{instanceKey:e}),b!=null&&c("QPLUserFlow").addAnnotations(h,b,{instanceKey:e})},endSuccess:function(){c("QPLUserFlow").endSuccess(h,{instanceKey:e})}}}g.startMediaPreProcessLinkPreviewQpl=a}),98);
__d("MAWThreadEvent",["LSContactUtils","MAWBridge","MAWBridgeSendAndReceive","MAWContactRelationshipType","MAWJobDefinitions","MAWUIJob","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){d("MAWBridge").getBridge().setHandlers("threadEvent",{placeholderConvertSubscription:function(f){var g=f.chatJid;f=f.msgId;a===g&&c("promiseDone")(d("MAWBridgeSendAndReceive").sendAndReceive("backend","getProtocolMsgIdByMsgId",{msgId:f}).then(function(a){if(a==null)return;d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").jobSerializers.markThreadAsRead(g,b&&d("MAWContactRelationshipType").getContactRelationshipType(b),b?d("LSContactUtils").isContactBlocked(b):!1,b?d("LSContactUtils").isContactRestricted(b):!1,a,e))}))}})}g.setThreadEventHandler=a}),98);
__d("MDSCautionTriangleSvgIcon.react",["MDSSvgIcon.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(3),e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=i.jsx("path",{clipRule:"evenodd",d:"M19.747 8.027c-.764-1.367-2.73-1.367-3.494 0L6.757 25.025C6.012 26.358 6.977 28 8.504 28h18.992c1.528 0 2.492-1.642 1.747-2.975L19.747 8.027zm-3.159 5.97a1.414 1.414 0 112.824 0l-.353 6.005a1.06 1.06 0 01-2.118 0l-.353-6.005zm2.662 9.753a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0z",fillRule:"evenodd"}),b[0]=e):e=b[0];b[1]!==a?(e=i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:e})),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),98);
__d("MDSSvgDocumentCompleteIcon.react",["MDSSvgIcon.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4),e,f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=i.jsx("path",{clipRule:"evenodd",d:"M18 8c0-.6-.4-1-1-1h-6a2 2 0 00-2 2v18c0 1.1.9 2 2 2h14a2 2 0 002-2V17c0-.6-.4-1-1-1h-4a4 4 0 01-4-4V8zm-6 7c0-.6.4-1 1-1h2a1 1 0 110 2h-2a1 1 0 01-1-1zm1 3.5a1 1 0 100 2h10a1 1 0 100-2H13zm0 4.5a1 1 0 100 2h10a1 1 0 100-2H13z",fillRule:"evenodd"}),f=i.jsx("path",{d:"M22 14h4a1 1 0 00.7-1.7l-5-5A1 1 0 0020 8v4c0 1.1.9 2 2 2z"}),b[0]=e,b[1]=f):(e=b[0],f=b[1]);b[2]!==a?(e=i.jsxs(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:[e,f]})),b[2]=a,b[3]=e):e=b[3];return e}g["default"]=a}),98);
__d("MessengerPlatformClientTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,{signal:!0},a)};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAppID=function(a){this.$1.appid=a;return this};c.setAppversion=function(a){this.$1.appversion=a;return this};c.setClientUserID=function(a){this.$1.client_userid=a;return this};c.setClienttime=function(a){this.$1.clienttime=a;return this};c.setCountry=function(a){this.$1.country=a;return this};c.setDeviceid=function(a){this.$1.deviceid=a;return this};c.setExtraClientData=function(a){this.$1.extra_client_data=a;return this};c.setIsemployee=function(a){this.$1.isemployee=a;return this};c.setLoggingToken=function(a){this.$1.logging_token=a;return this};c.setName=function(a){this.$1.name=a;return this};c.setRawclienttime=function(a){this.$1.rawclienttime=a;return this};c.setSessionid=function(a){this.$1.sessionid=a;return this};c.setThreadID=function(a){this.$1.thread_id=a;return this};return a}();c={appid:!0,appversion:!0,client_userid:!0,clienttime:!0,country:!0,deviceid:!0,extra_client_data:!0,isemployee:!0,logging_token:!0,name:!0,rawclienttime:!0,sessionid:!0,thread_id:!0};f["default"]=a}),66);
__d("PopupWindow",["DOMDimensions","DOMQuery","FlowMigrationUtilsForLegacyFiles","Layer","Popup","getViewportDimensions","isFalsey"],(function(a,b,c,d,e,f,g){var h={allowShrink:!0,strategy:"vector",timeout:100,widthElement:null};function b(a){Object.assign(h,a),window.setInterval(i,h.timeout)}function i(){var a=c("getViewportDimensions")(),b=j(),e=c("Layer").getTopmostLayer();if(e){e=(e=e.getRoot())==null?void 0:e.firstChild;e||d("FlowMigrationUtilsForLegacyFiles").invariantViolation("topMostLayer.getRoot().firstChild is null.");var f=d("DOMDimensions").getElementDimensions(e);f.height+=d("DOMDimensions").measureElementBox(e,"height",!0,!0,!0);f.width+=d("DOMDimensions").measureElementBox(e,"width",!0,!0,!0);b.height=Math.max(b.height,f.height);b.width=Math.max(b.width,f.width)}e=b.height-a.height;f=b.width-a.width;f<0&&c("isFalsey")(h.widthElement)&&(f=0);f=f>1?f:0;c("isFalsey")(h.allowShrink)&&e<0&&(e=0);if(e||f)try{window.console&&window.console.firebug,window.resizeBy(f,e),f&&window.moveBy(f/-2,0)}catch(a){}}function j(){var b=d("DOMDimensions").getDocumentDimensions();if(h.strategy==="offsetHeight"){var e=document.body;if(!e)d("FlowMigrationUtilsForLegacyFiles").invariantViolation("document.body is null.");else{b.height=(e=e.offsetHeight)!=null?e:0}}if(c("isFalsey")(h.widthElement)&&typeof h.widthElement==="string"){e=d("DOMQuery").scry(document.body,h.widthElement)[0];e&&(b.width=d("DOMDimensions").getElementDimensions(e).width)}e=a.Dialog;e&&e.max_bottom&&e.max_bottom>b.height&&(b.height=e.max_bottom);return b}function e(a,b,c,e){return d("Popup").open(a,c,b,e)}g._opts=h;g.init=b;g._resizeCheck=i;g._getDocumentSize=j;g.open=e}),98);
__d("XWebGraphQLMutationController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/webgraphql/mutation/",{query_id:{type:"FBID"},variables:{type:"String"},doc_id:{type:"FBID"},legacy_response_format:{type:"Bool",defaultValue:!1}})}),null);
__d("base62",[],(function(a,b,c,d,e,f){"use strict";var g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function a(a){if(!a)return"0";var b="";while(a>0)b=g[a%62]+b,a=Math.floor(a/62);return b}f["default"]=a}),66);
__d("WebGraphQLMutationHelper",["CurrentUser","WebGraphQLLegacyHelper","XWebGraphQLMutationController","base62"],(function(a,b,c,d,e,f,g){"use strict";var h=0;function a(a,b){return d("WebGraphQLLegacyHelper").getURI({controller:c("XWebGraphQLMutationController"),docID:a,variables:{input:babelHelpers["extends"]({client_mutation_id:c("base62")(h++),actor_id:c("CurrentUser").getID()},b)}})}g.getMutationURI=a}),98);
__d("XMNCommerceCTAPostProcessController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/messages/commerce/cta/postprocess/",{cta_id:{type:"String",required:!0},message_id:{type:"String"}})}),null);
__d("MNCommerceCTAProcessor",["AsyncRequest","CurrentUser","GraphQLMessengerPlatformCtaPostHandlingMutation.graphql","MessengerPlatformClientTypedLogger","PopupWindow","WebGraphQLMutationHelper","XMNCommerceCTAPostProcessController","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var b=a.prototype;b.process=function(a,b){b===void 0&&(b=null);var e=d("PopupWindow").open("",500,1024);a=c("XMNCommerceCTAPostProcessController").getURIBuilder().setString("cta_id",a).setString("message_id",b).getURI();new(c("AsyncRequest"))().setURI(a).setMethod("POST").setHandler(function(a){return e.location=a.payload}).send()};b.postHandle=function(a,b){a=d("WebGraphQLMutationHelper").getMutationURI(c("nullthrows")(c("GraphQLMessengerPlatformCtaPostHandlingMutation.graphql").params.id),{cta_id:a,message_id:b});new(c("AsyncRequest"))().setURI(a).send()};b.logCTAClick=function(a){var b=a==null?void 0:a.logging_token,d=b?JSON.parse(b).click_source:"UNKNOWN";d={action_id:a==null?void 0:a.id,action_type:a==null?void 0:a.action_type,action_url:(a==null?void 0:a.action_url)||(a==null?void 0:a.action_link),click_source:d,page_id:a==null?void 0:a.page_id};new(c("MessengerPlatformClientTypedLogger"))().setClientUserID(c("CurrentUser").getID()).setName("did_tap_call_to_action").setExtraClientData(JSON.stringify(d)).setLoggingToken(b).log()};return a}();b=new a();g["default"]=b}),98);
__d("MNXMASubtitleDecorationType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT:0,THREADS_ICON:1,FACEBOOK_ICON:2,EXTERNAL_LINK_ICON:3,MESSENGER_ICON:4,INSTAGRAM_ICON:5,OCULUS_ICON:6});f["default"]=a}),66);
__d("MWChatComposer3PBotCommandViewItem.react",["CometSearchMentionsBaseViewItem.react","MWXTextPairing.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(10),e,f;b[0]!==a?(e=a.entry,f=babelHelpers.objectWithoutPropertiesLoose(a,["entry"]),b[0]=a,b[1]=e,b[2]=f):(e=b[1],f=b[2]);a=e;var g=a.label;a=a.rawData;a=a.subtitle;var h;b[3]!==g||b[4]!==a?(h=i.jsx(c("MWXTextPairing.react"),{headline:g,level:4,meta:a,metaLineLimit:1,reduceEmphasis:!0}),b[3]=g,b[4]=a,b[5]=h):h=b[5];b[6]!==e||b[7]!==f||b[8]!==h?(g=i.jsx(c("CometSearchMentionsBaseViewItem.react"),babelHelpers["extends"]({},f,{entry:e,children:h})),b[6]=e,b[7]=f,b[8]=h,b[9]=g):g=b[9];return g}g["default"]=a}),98);
__d("MWCommandsComposerPluginTextNode",["Lexical"],(function(a,b,c,d,e,f,g){"use strict";var h=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){var d,e=a.commandId,f=a.commandPrefix,g=a.handle;a=a.rangeType;d=b.call(this,""+((d=f)!=null?d:"")+g,c)||this;d.__handle=g;d.__commandId=e;d.__rangeType=a;d.__commandPrefix=f;return d}a.getType=function(){return"command"};a.clone=function(b){var c,d=b.getEntity();return new a({commandId:d.commandId,commandPrefix:(c=b.__commandPrefix)!=null?c:"",handle:d.handle,rangeType:d.rangeType},b.__key)};a.importJSON=function(a){return i({commandId:a.commandId,handle:a.handle,rangeType:a.rangeType})};var c=a.prototype;c.exportJSON=function(){return babelHelpers["extends"]({},b.prototype.exportJSON.call(this),{commandId:this.__commandId,handle:this.__handle,rangeType:this.__rangeType,type:"command"})};c.createDOM=function(a){a=b.prototype.createDOM.call(this,a);a.className="xv78j7m xt0e3qv x3jgonx";a.spellcheck=!1;return a};c.getEntity=function(){return{commandId:this.__commandId,handle:this.__handle,rangeType:this.__rangeType}};c.getRangeType=function(){return this.__rangeType};c.getCommandId=function(){return this.__commandId};return a}(d("Lexical").TextNode);function i(a){return new h(a).setMode("segmented").toggleDirectionless()}g.MessengerLexicalCommandNode=h;g.$createMessengerLexicalCommandNode=i}),98);
__d("createCommandsHandleMatchStrategy",[],(function(a,b,c,d,e,f){"use strict";b="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\[\\]\\\\/!%'\"~=<>_:;";c="\\b[\\w][^\\s"+b+"]";d="(^|\\s|\\/)((?:"+c+"{"+1+",})$)";var g=new RegExp(d);function a(a){var b=a.minMatchLength;return{findMentionableString:function(a){a=g.exec(a);if(a===null)return null;var c=a[1],d=a[2];if(d!=null&&d.length>=b){var e=d;(c==null?void 0:c.startsWith("/"))&&(e=""+c+d);return{leadOffset:a.index+c.length,matchingString:d,replaceableString:e}}return null},name:"CommandsHandleMatchStrategy"}}f["default"]=a}),66);
__d("useMW3PBotsCommandsDataSourceResolverConfig",["I64","Promise","ReQL","ReQLSuspense","createCometMentionMatchStrategy","createCommandsHandleMatchStrategy","react-compiler-runtime","useCometMentionsDataSourceResolverConfig","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(a){var e=d("react-compiler-runtime").c(10),g=(j||(j=c("useReStore")))(),h;e[0]!==g.tables.custom_thread_commands||e[1]!==a?(h=function(){return d("ReQL").fromTableAscending(g.tables.custom_thread_commands.index("rank")).getKeyRange(a).filter(m).map(l)},e[0]=g.tables.custom_thread_commands,e[1]=a,e[2]=h):h=e[2];var k;e[3]!==g||e[4]!==a?(k=[g,a],e[3]=g,e[4]=a,e[5]=k):k=e[5];var n=d("ReQLSuspense").useArray(h,k,f.id+":33");e[6]!==n?(h=function(a){return{entries:a.query.length?n.filter(function(b){return b.label.toLowerCase().startsWith(a.query.toLowerCase())}):n,params:a}},e[6]=n,e[7]=h):h=e[7];var o=h;e[8]!==o?(k={bootstrap:function(){},fetchCache:o,fetchNetwork:function(a){return(i||(i=b("Promise"))).resolve(o(a))}},e[8]=o,e[9]=k):k=e[9];return k}function l(a){var b=a.commandDescription,c=a.commandId;a=a.commandText;return{key:(h||(h=d("I64"))).to_string(c),label:a,rawData:{rangeType:"cu",subtitle:b},type:"entry"}}function m(a){return!a.isOpenPersistentMenu}function a(a){var b=d("react-compiler-runtime").c(9);a=k(a);var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=c("createCommandsHandleMatchStrategy")({minMatchLength:4}),b[0]=e):e=b[0];b[1]!==a?(e={dataSource:a,matchStrategy:e},b[1]=a,b[2]=e):e=b[2];var f;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(f=c("createCometMentionMatchStrategy")({minMatchLength:0,name:"CometMentionsNameMatchStrategy",triggers:"/"}),b[3]=f):f=b[3];b[4]!==a?(f={dataSource:a,matchStrategy:f},b[4]=a,b[5]=f):f=b[5];b[6]!==e||b[7]!==f?(a=[e,f],b[6]=e,b[7]=f,b[8]=a):a=b[8];e=a;return c("useCometMentionsDataSourceResolverConfig")(e,!1)}g["default"]=a}),98);
__d("MW3PBotsCommandsComposerPlugin.react",["CometMentionsForLexical.react","CometMentionsLayoutStrategy.react","MWChatComposer3PBotCommandViewItem.react","MWCommandsComposerPluginTextNode","MWThreadKey.react","cometBaseMentionsLexicalCreateNodeStrategy","react","react-compiler-runtime","useCometTypeaheadViewListStrategy","useMW3PBotsCommandsDataSourceResolverConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(6);a=a.editor;var e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();e=c("useMW3PBotsCommandsDataSourceResolverConfig")(e);var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={viewItemStrategyRenderer:c("MWChatComposer3PBotCommandViewItem.react")},b[0]=f):f=b[0];f=c("useCometTypeaheadViewListStrategy")(f);var g;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=c("cometBaseMentionsLexicalCreateNodeStrategy")(j),b[1]=g):g=b[1];b[2]!==e||b[3]!==a||b[4]!==f?(g=i.jsx(c("CometMentionsForLexical.react"),{createNodeStrategy:g,dataSourceResolverConfig:e,editor:a,layoutStrategyRenderer:c("CometMentionsLayoutStrategy.react"),position:"above",viewStrategyRenderer:f}),b[2]=e,b[3]=a,b[4]=f,b[5]=g):g=b[5];return g}function j(a){return d("MWCommandsComposerPluginTextNode").$createMessengerLexicalCommandNode({commandId:a.key,handle:a.label,rangeType:(a=(a=a.rawData)==null?void 0:a.rangeType)!=null?a:"n"})}g["default"]=a}),98);
__d("MWAdminMsgCtaLink.react",["MWXLink.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(9),e,f,g;b[0]!==a?(g=a.xstyle,e=a.children,f=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle","children"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g):(e=b[1],f=b[2],g=b[3]);b[4]===Symbol["for"]("react.memo_cache_sentinel")?(a={color:"var(--mwp-primary-theme-color)"},b[4]=a):a=b[4];b[5]!==e||b[6]!==f||b[7]!==g?(a=i.jsx(c("MWXLink.react"),babelHelpers["extends"]({style:a,weight_DEPRECATED:"bold",xstyle_DEPRECATED:g},f,{children:e})),b[5]=e,b[6]=f,b[7]=g,b[8]=a):a=b[8];return a}g["default"]=a}),98);
__d("MWAdminTextLayout.react",["CometTextWithEntities.react","LSMessagingThreadTypeUtil","MAWVault","MWChatTextTransform","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore","useStringWithSubstitutions"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(9),e=a.cta,g=a.message,i=(h||(h=c("useReStore")))();a=(a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(i.tables.threads,["threadType"]).getKeyRange(g.threadKey)},[i,g.threadKey],f.id+":29"))==null?void 0:a.threadType;a=a==null?!1:d("LSMessagingThreadTypeUtil").isArmadilloSecure(a);var k;b[0]!==g.text?(k=g.text==null?null:d("MAWVault").unvault(g.text),b[0]=g.text,b[1]=k):k=b[1];k=k;a=(a=d("useStringWithSubstitutions").useStringWithSubstitutions(a?k:null,g.threadKey))!=null?a:k;if(a!=null)if(e!=null){b[2]!==a?(k=j.jsx(c("CometTextWithEntities.react"),{text:a,transforms:d("MWChatTextTransform").textTransformsNoVault}),b[2]=a,b[3]=k):k=b[3];var l;b[4]!==e||b[5]!==k?(l=j.jsxs(j.Fragment,{children:[k," ",e]}),b[4]=e,b[5]=k,b[6]=l):l=b[6];return l}else{b[7]!==a?(k=j.jsx(c("CometTextWithEntities.react"),{text:a,transforms:d("MWChatTextTransform").textTransformsNoVault}),b[7]=a,b[8]=k):k=b[8];return k}else if(e!=null)return e;else return null}g["default"]=a}),98);
__d("MWPAudioHighlightStylesHooks",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useMemo;var i={incoming:{backgroundColor:"x1arowe1",opacity:"x1ptxcow",$$css:!0},outgoing:{backgroundColor:"x14hiurz",opacity:"xz5rk10",$$css:!0},root:{transform:"x5i6ehr",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(2);a=a?i.outgoing:i.incoming;var c;b[0]!==a?(c=[i.root,a],b[0]=a,b[1]=c):c=b[1];a=c;return a}g.useHighlightStyles=a}),98);
__d("MWPAudioPlayerIcons.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(2);a=a.color;var c;b[0]!==a?(c=i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("path",{d:"M10 25.5v-15a1.5 1.5 0 012.17-1.34l15 7.5a1.5 1.5 0 010 2.68l-15 7.5A1.5 1.5 0 0110 25.5z",fill:a})}),b[0]=a,b[1]=c):c=b[1];return c}function b(a){var b=d("react-compiler-runtime").c(2);a=a.color;var c;b[0]!==a?(c=i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("rect",{fill:a,height:"18",rx:"2",width:"18",x:"9",y:"9"})}),b[0]=a,b[1]=c):c=b[1];return c}function c(a){var b=d("react-compiler-runtime").c(2);a=a.color;var c;b[0]!==a?(c=i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("path",{d:"M11 8.5c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5V10c0-.83-.67-1.5-1.5-1.5h-4zM21 8.5c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5V10c0-.83-.67-1.5-1.5-1.5h-4z",fill:a})}),b[0]=a,b[1]=c):c=b[1];return c}g.PlayIcon=a;g.StopIcon=b;g.PauseIcon=c}),98);
__d("MWPAudioPlaybackThreadContext.react",["I64","Int64Hooks","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));c=h;e=c.createContext;var k=c.useContext;f={threadKey:(i||(i=d("I64"))).zero};var l=e(f);function a(){return k(l).threadKey}function b(a){var b=d("react-compiler-runtime").c(6),c=a.children,e=a.threadKey,f;b[0]!==e?(a=function(){return{threadKey:e}},f=[e],b[0]=e,b[1]=a,b[2]=f):(a=b[1],f=b[2]);a=d("Int64Hooks").useMemoInt64(a,f);b[3]!==c||b[4]!==a?(f=j.jsx(l.Provider,{value:a,children:c}),b[3]=c,b[4]=a,b[5]=f):f=b[5];return f}g.useMWPAudioPlaybackThreadKey=a;g.MWPAudioPlaybackThreadContextProvider=b}),98);
__d("MWPAudioPlaybackContext.react",["fbt","$InternalEnum","I64","Int64Hooks","MWPAudioPlaybackThreadContext.react","Promise","ReQL","ReQLSuspense","asyncToGeneratorRuntime","bx","clearTimeout","emptyFunction","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=k||(k=d("react")),n=k,o=n.createContext;n.useCallback;var p=n.useContext,q=n.useEffect;n.useMemo;var r=n.useRef,s=n.useState,t=b("$InternalEnum")({SLOW:.5,NORMAL:1,FAST:1.5,DOUBLE:2});function u(a){var b=new Audio();b.preload="auto";b.src=a;b.load();return b}function v(){return u(c("bx").getURL(c("bx")("577")))}function w(a){var b=Array.from(t.members()),c=b.findIndex(function(b){return b===a});c=c+1;return b[c%b.length]}function x(a){return h._(/*BTDS*/"__JHASH__T0e3ZJkGlxz__JHASH__",[h._param("playback rate",a,[0])])}x.displayName=x.name+" [from "+f.id+"]";n={activeAudio:null,activeMessageId:null,activeThreadKey:(l||(l=d("I64"))).zero,addMessageId:c("emptyFunction"),addNextPlayableUrl:c("emptyFunction"),clearActiveAudio:c("emptyFunction"),clearNextPlayableUrl:c("emptyFunction"),getMessageId:c("emptyFunction"),getNewOrExistingAudio:u,getNewOrExistingAudioWithRetry:function(){return(j||(j=b("Promise"))).resolve(u(""))},getNextPlayableUrl:c("emptyFunction"),maybeGetExistingAudio:c("emptyFunction"),onChangePlaybackRate:c("emptyFunction"),playbackRateLabel:x(t.NORMAL),setUseOutOfChatPlayback:c("emptyFunction")};var y=o(n);function a(a,b,c,e,f){var g=d("react-compiler-runtime").c(23),h=p(y),i=h.activeAudio,j=h.activeThreadKey,k=h.addMessageId,m=h.addNextPlayableUrl,n=h.clearNextPlayableUrl,o=h.getNewOrExistingAudio,q=h.setUseOutOfChatPlayback,r=d("MWPAudioPlaybackThreadContext.react").useMWPAudioPlaybackThreadKey();g[0]!==j||g[1]!==q||g[2]!==f||g[3]!==r?(h=function(){if(!f||(l||(l=d("I64"))).is_zero(j)||(l||(l=d("I64"))).is_zero(r))return;q(!(l||(l=d("I64"))).equal(j,r));return function(){q((l||(l=d("I64"))).equal(j,r))}},g[0]=j,g[1]=q,g[2]=f,g[3]=r,g[4]=h):h=g[4];var s;g[5]!==i||g[6]!==j||g[7]!==q||g[8]!==f||g[9]!==r?(s=[i,j,q,f,r],g[5]=i,g[6]=j,g[7]=q,g[8]=f,g[9]=r,g[10]=s):s=g[10];d("Int64Hooks").useEffectInt64(h,s);g[11]!==k||g[12]!==m||g[13]!==n||g[14]!==o||g[15]!==c||g[16]!==e||g[17]!==b||g[18]!==a||g[19]!==f||g[20]!==r?(i=function(){if(a!=null&&a!==""){var d;d=a.concat((d=c)!=null?d:"");c!=null&&k(d,c);if(!f)return u(a);if(b!=null&&b!==""){var g;g=b.concat((g=e)!=null?g:"");m(d,g);e!=null&&k(g,e)}else n(d);return o(a,r,c)}},h=[k,m,n,o,c,e,b,a,f,r],g[11]=k,g[12]=m,g[13]=n,g[14]=o,g[15]=c,g[16]=e,g[17]=b,g[18]=a,g[19]=f,g[20]=r,g[21]=i,g[22]=h):(i=g[21],h=g[22]);return d("Int64Hooks").useMemoInt64(i,h)}function e(a,c,e,f,g){var h=d("react-compiler-runtime").c(27),i=p(y),j=i.activeAudio,k=i.activeThreadKey,m=i.addMessageId,n=i.addNextPlayableUrl,o=i.clearNextPlayableUrl,q=i.getNewOrExistingAudioWithRetry,r=i.maybeGetExistingAudio,t=i.setUseOutOfChatPlayback,v=d("MWPAudioPlaybackThreadContext.react").useMWPAudioPlaybackThreadKey();h[0]!==k||h[1]!==t||h[2]!==g||h[3]!==v?(i=function(){if(!g||(l||(l=d("I64"))).is_zero(k)||(l||(l=d("I64"))).is_zero(v))return;t(!(l||(l=d("I64"))).equal(k,v));return function(){t((l||(l=d("I64"))).equal(k,v))}},h[0]=k,h[1]=t,h[2]=g,h[3]=v,h[4]=i):i=h[4];var w;h[5]!==j||h[6]!==k||h[7]!==t||h[8]!==g||h[9]!==v?(w=[j,k,t,g,v],h[5]=j,h[6]=k,h[7]=t,h[8]=g,h[9]=v,h[10]=w):w=h[10];d("Int64Hooks").useEffectInt64(i,w);h[11]!==r||h[12]!==e||h[13]!==a?(j=function(){var b;return(b=r(a,e))!=null?b:null},h[11]=r,h[12]=e,h[13]=a,h[14]=j):j=h[14];i=s(j);w=i[0];var x=i[1];h[15]!==m||h[16]!==n||h[17]!==o||h[18]!==q||h[19]!==e||h[20]!==f||h[21]!==c||h[22]!==a||h[23]!==g||h[24]!==v?(j=function(){var d=function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(a!=null&&a!==""){var b;b=a.concat((b=e)!=null?b:"");e!=null&&m(b,e);if(!g){x(u(a));return}if(c!=null&&c!==""){var d;d=c.concat((d=f)!=null?d:"");n(b,d);f!=null&&m(d,f)}else o(b);d=(yield q(a,v,e));x(d);return}});return function(){return d.apply(this,arguments)}}();d()["catch"](z)},i=[m,n,o,q,e,f,c,a,g,v],h[15]=m,h[16]=n,h[17]=o,h[18]=q,h[19]=e,h[20]=f,h[21]=c,h[22]=a,h[23]=g,h[24]=v,h[25]=j,h[26]=i):(j=h[25],i=h[26]);d("Int64Hooks").useEffectInt64(j,i);return w}function z(){}function A(){var a=d("react-compiler-runtime").c(3),b=p(y),c=b.onChangePlaybackRate;b=b.playbackRateLabel;var e;a[0]!==c||a[1]!==b?(e=[b,c],a[0]=c,a[1]=b,a[2]=e):e=a[2];return e}function B(){var a=d("react-compiler-runtime").c(13),b=p(y),e=b.activeAudio,g=b.activeMessageId,h=b.activeThreadKey,j=b.clearActiveAudio,k=b.clearNextPlayableUrl,l=b.getMessageId;b=b.getNextPlayableUrl;var m=(i||(i=c("useReStore")))(),n,o;a[0]!==h||a[1]!==m?(n=function(){return d("ReQL").fromTableDescending(m.tables.threads).getKeyRange(h)},o=[m,h],a[0]=h,a[1]=m,a[2]=n,a[3]=o):(n=a[2],o=a[3]);n=d("ReQLSuspense").useFirst(n,o,f.id+":303");o=e==null?void 0:e.src;g=o==null?void 0:o.concat((o=g)!=null?o:"");var q=g==null?null:b(g);a[4]!==m||a[5]!==l||a[6]!==q?(o=function(){var a=q==null?null:l(q);return a==null?d("ReQL").empty():d("ReQL").fromTableAscending(m.tables.messages.index("messageId"),["isUnsent"]).getKeyRange(a).filter(C)},b=[m,l,q],a[4]=m,a[5]=l,a[6]=q,a[7]=o,a[8]=b):(o=a[7],b=a[8]);o=d("ReQLSuspense").useFirst(o,b,f.id+":313");g!=null&&q!=null&&o==null&&k(g);a[9]!==e||a[10]!==n||a[11]!==j?(b=[e,j,n],a[9]=e,a[10]=n,a[11]=j,a[12]=b):b=a[12];return b}function C(a){return!a.isUnsent}function D(a){var e=d("react-compiler-runtime").c(34);a=a.children;var f;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=new Map(),e[0]=f):f=e[0];var g=r(f);e[1]===Symbol["for"]("react.memo_cache_sentinel")?(f=new Map(),e[1]=f):f=e[1];var h=r(f);e[2]===Symbol["for"]("react.memo_cache_sentinel")?(f=[],e[2]=f):f=e[2];var i=r(f);e[3]===Symbol["for"]("react.memo_cache_sentinel")?(f=new Map(),e[3]=f):f=e[3];var k=r(f);e[4]===Symbol["for"]("react.memo_cache_sentinel")?(f=new Set(),e[4]=f):f=e[4];var n=r(f),o;e[5]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(){var a=i.current;return function(){while(a.length>0){var b=a.pop(),c=b[0],d=b[1];b=b[2];c.removeEventListener(d,b);c.pause()}}},o=[],e[5]=f,e[6]=o):(f=e[5],o=e[6]);q(f,o);f=s(t.NORMAL);var p=f[0],z=f[1];e[7]!==p?(o=x(p),e[7]=p,e[8]=o):o=e[8];f=o;var A=f;o=s((l||(l=d("I64"))).zero);var B=o[0],C=o[1];f=s(null);var D=f[0],F=f[1];o=s(null);f=o[0];var G=o[1];o=s(!1);var H=o[0],I=o[1];o=(f==null?void 0:f.paused)===!1;H=H&&o?f:null;var J=H;e[9]===Symbol["for"]("react.memo_cache_sentinel")?(o=function(a,b){k.current.set(a,b)},e[9]=o):o=e[9];var K=o;e[10]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(a){return k.current.get(a)},e[10]=f):f=e[10];var L=f;e[11]===Symbol["for"]("react.memo_cache_sentinel")?(H=function(){G(E),F(null)},e[11]=H):H=e[11];var M=H;e[12]===Symbol["for"]("react.memo_cache_sentinel")?(o=function(a){h.current["delete"](a)},e[12]=o):o=e[12];var N=o;e[13]!==p?(f=function(a,b,c){var d,e=a.concat((d=c)!=null?d:""),f=(d=g.current.get(e))!=null?d:u(a);f.playbackRate=p;d=function(a,b){f.addEventListener(a,b),i.current.push([f,a,b])};a=function(){var a=h.current.get(e);if(a!=null){var b=g.current.get(a),c=k.current.get(a);if(b!=null&&b.paused)return void v().play().then(function(){G(b);F(c);return b.play()["catch"](function(){G(null),F(null)})})}G(null);F(null)};d("ended",a);a=function(){for(var a of g.current.values())a!==f&&a.pause();G(f);F(c);C(b)};d("playing",a);g.current.set(e,f);return f},e[13]=p,e[14]=f):f=e[14];var O=f;e[15]!==p?(H=function(a,b,c){var d,e=a.concat((d=c)!=null?d:""),f=(d=g.current.get(e))!=null?d:u(a);f.playbackRate=p;d=function(a,b){f.addEventListener(a,b),i.current.push([f,a,b])};a=function(){var a=h.current.get(e);if(a!=null){var b=g.current.get(a),c=k.current.get(a);if(b!=null&&b.paused)return void v().play().then(function(){G(b);F(c);return b.play()["catch"](function(){G(null),F(null)})})}G(null);F(null)};d("ended",a);a=function(){for(var a of g.current.values())a!==f&&a.pause();G(f);F(c);C(b)};d("playing",a);g.current.set(e,f);return f},e[15]=p,e[16]=H):H=e[16];var P=H;e[17]!==P?(o=function(a,d,e){var f=new(j||(j=b("Promise")))(function(b,f){var h=P(a,d,e),i=a.concat((f=e)!=null?f:""),j=window.setTimeout(function(){h.readyState===0&&!n.current.has(i)&&(n.current.add(i),g.current["delete"](i),b(P(a,d,e)))},2e3);h.addEventListener("durationchange",function(){c("clearTimeout")(j),b(h)})});return f},e[17]=P,e[18]=o):o=e[18];var Q=o;e[19]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(a){return h.current.get(a)},e[19]=f):f=e[19];var R=f;e[20]===Symbol["for"]("react.memo_cache_sentinel")?(H=function(){z(function(a){a=w(a);for(var b of g.current.values())b.playbackRate=a;return a})},e[20]=H):H=e[20];var S=H;e[21]===Symbol["for"]("react.memo_cache_sentinel")?(o=function(a,b){h.current.set(a,b)},e[21]=o):o=e[21];var T=o;e[22]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(a,b){if(a==null)return;b=a.concat((a=b)!=null?a:"");return g.current.get(b)},e[22]=f):f=e[22];var U=f;e[23]!==J||e[24]!==D||e[25]!==B||e[26]!==O||e[27]!==Q||e[28]!==A?(H=function(){return{activeAudio:J,activeMessageId:D,activeThreadKey:B,addMessageId:K,addNextPlayableUrl:T,clearActiveAudio:M,clearNextPlayableUrl:N,getMessageId:L,getNewOrExistingAudio:O,getNewOrExistingAudioWithRetry:Q,getNextPlayableUrl:R,maybeGetExistingAudio:U,onChangePlaybackRate:S,playbackRateLabel:A,setUseOutOfChatPlayback:I}},o=[J,D,K,B,T,M,N,L,O,Q,R,S,A,U],e[23]=J,e[24]=D,e[25]=B,e[26]=O,e[27]=Q,e[28]=A,e[29]=H,e[30]=o):(H=e[29],o=e[30]);f=d("Int64Hooks").useMemoInt64(H,o);e[31]!==a||e[32]!==f?(H=m.jsx(y.Provider,{value:f,children:a}),e[31]=a,e[32]=f,e[33]=H):H=e[33];return H}function E(a){a!=null&&a.pause();return null}g.useMWPAudioPlaybackElement=a;g.useMWPAudioPlaybackElementWithRetry=e;g.useMWPAudioPlaybackRate=A;g.useMWPAudioOutOfChatPlayback=B;g.MWPAudioPlaybackContextProvider=D}),226);
__d("MWPAudioPlayerUtils",["fbt","$InternalEnum","MWLSThreadDisplayContext","MWMediaRenderQplUtils","MWPAudioPlaybackContext.react","MWResponsiveLayoutContext.react","cancelAnimationFrame","getErrorNameFromMediaErrorCode","gkx","promiseDone","react","react-compiler-runtime","requestAnimationFrameAcrossTransitions","useMatchViewport","useStable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i,l=k.createContext,m=k.useCallback,n=k.useContext,o=k.useEffect,p=k.useRef,q=k.useState,r=b("$InternalEnum").Mirrored(["PLAYER","RECORDER"]),s=l(r.PLAYER),t=c("gkx")("24145");function u(){var a=n(s);return t&&a===r.PLAYER}function a(a,b){if(b==null)return 0;b=b.getBoundingClientRect();var c=b.left;b=b.width;a=a.clientX-c;c=b>0&&a>0?a/b:0;return v(c,0,1)}function v(a,b,c){return Math.min(Math.max(b,a),c)}function e(a){var b=d("react-compiler-runtime").c(5),c=a.currentTime;a=a.duration;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=h._(/*BTDS*/"__JHASH__cCPjPb_WWZb__JHASH__"),b[0]=e):e=b[0];c=Math.floor((c=c)!=null?c:0);var f;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f={position:"absolute"},b[1]=f):f=b[1];b[2]!==a||b[3]!==c?(e=j.jsx("div",{"aria-label":e,"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":c,role:"slider",style:f,tabIndex:0}),b[2]=a,b[3]=c,b[4]=e):e=b[4];return e}function f(){var a=d("react-compiler-runtime").c(2),b=u();if(b){a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b={marginLeft:12,marginRight:12},a[0]=b):b=a[0];return b}a[1]===Symbol["for"]("react.memo_cache_sentinel")?(b={marginLeft:6,marginRight:6},a[1]=b):b=a[1];return b}function w(a){return m(function(b){var c=a.current;if(c!=null){b.stopPropagation();return c.updateHighlight(0)}},[a])}function x(a,b,e,f,g,h){var i=d("react-compiler-runtime").c(13),j=g===void 0?!1:g,k=p();i[0]!==b||i[1]!==a||i[2]!==h||i[3]!==j||i[4]!==f?(g=function(){var d=function(a){var b=k.current;if(b!=null)return b.updateHighlight(a)};if(h){j?d(100):d(0);return}if(f){var e={contents:void 0},g,i=function f(h){var i;if(b.current!=null)i=b.current.currentTime/b.current.duration;else{var j=e.contents,k=0;j!=null?k=h-j:e.contents=h;i=k/(a*1e3)}j=Math.min(i*100,100);d(j);if(j<100){g=c("requestAnimationFrameAcrossTransitions")(f);return}};g=c("requestAnimationFrameAcrossTransitions")(i);return function(){g!=null&&c("cancelAnimationFrame")(g)}}if(b.current!=null){i=b.current.currentTime/b.current.duration;d(i*100)}},i[0]=b,i[1]=a,i[2]=h,i[3]=j,i[4]=f,i[5]=g):g=i[5];var l;i[6]!==b||i[7]!==e||i[8]!==a||i[9]!==h||i[10]!==j||i[11]!==f?(l=[a,f,h,k,b,j,e],i[6]=b,i[7]=e,i[8]=a,i[9]=h,i[10]=j,i[11]=f,i[12]=l):l=i[12];o(g,l);return k}var y=b("$InternalEnum").Mirrored(["ENDED","LOADING","NONE","PAUSED","PLAYING"]);function z(a,b,c,e,f,g,h,i){var j=u();a=d("MWPAudioPlaybackContext.react").useMWPAudioPlaybackElement(a,b,c,e,j);return B(a,j,f,g,h,i)}function A(a,b,c,e,f,g,h,i){var j=u();a=d("MWPAudioPlaybackContext.react").useMWPAudioPlaybackElementWithRetry(a,b,c,e,j);return B(a,j,f,g,h,i)}function B(a,b,e,f,g,h){var i=d("react-compiler-runtime").c(25),j;i[0]!==e?(j=function(){return e},i[0]=e,i[1]=j):j=i[1];var k=c("useStable")(j),l=p(a);j=q(y.NONE);var m=j[0],n=j[1];i[2]!==(a==null?void 0:a.currentTime)?(j=function(){var b;return(b=a==null?void 0:a.currentTime)!=null?b:0},i[2]=a==null?void 0:a.currentTime,i[3]=j):j=i[3];j=q(j);var r=j[0],s=j[1],t;i[4]!==a||i[5]!==h?(j=function(){if(a==null){n(y.NONE);h==null?void 0:h.addAnnotations({string:{audio_initial_state:"none"}});return}a.ended?(n(y.ENDED),h==null?void 0:h.addAnnotations({string:{audio_initial_state:"ended"}})):n(function(){if(a.paused){h==null?void 0:h.addAnnotations({string:{audio_initial_state:"paused"}});return y.PAUSED}h==null?void 0:h.addAnnotations({string:{audio_initial_state:"playing"}});return y.PLAYING});s(a.currentTime);l.current=a},t=[a,h],i[4]=a,i[5]=h,i[6]=j,i[7]=t):(j=i[6],t=i[7]);o(j,t);i[8]!==h||i[9]!==b?(j=function(){var a=l.current;h==null?void 0:h.addPoint("render-audio-player-controller",{bool:{has_audio:a!=null},"int":{audio_ready_state:a==null?void 0:a.readyState},string:{audio_duration_bucket:a!=null?d("MWMediaRenderQplUtils").convertDurationToStringBucket(a.duration):null}});if(a==null)return;var e=function(a){a=a.currentTarget;a=a.error;var b=c("getErrorNameFromMediaErrorCode")(a==null?void 0:a.code);h==null?void 0:h.endFail("load-audio-error",{string:{audio_error_message:a==null?void 0:a.message,audio_error_name:b}})},f=function(){h==null?void 0:h.endSuccess()},g=function(){n(y.PAUSED),h==null?void 0:h.addPoint("audio-paused",{"int":{audio_ready_state:a.readyState}})},i=function(){n(y.PLAYING),h==null?void 0:h.addPoint("audio-played",{"int":{audio_ready_state:a.readyState}})},j=function(){n(y.LOADING),h==null?void 0:h.addPoint("load-start",{"int":{audio_ready_state:a.readyState}})},k=function(){l.current!=null&&s(l.current.currentTime)},m=function(){l.current!=null&&(l.current.currentTime=0,s(0)),n(y.ENDED)},o=function(){h==null?void 0:h.addPoint("audio-duration-change",{"int":{audio_ready_state:a.readyState}})},p=function(){h==null?void 0:h.addPoint("loaded-metadata",{"int":{audio_ready_state:a.readyState}})},q=function(){h==null?void 0:h.addPoint("loaded-data",{"int":{audio_ready_state:a.readyState}})},r=function(){l.current=a,g(),h==null?void 0:h.addPoint("can-play",{"int":{audio_ready_state:a.readyState}}),f()},t=function(){h==null?void 0:h.addPoint("can-play-through",{"int":{audio_ready_state:a.readyState}})},u=function(){h==null?void 0:h.addPoint("audio-aborted",{"int":{audio_ready_state:a.readyState}})},v=function(){h==null?void 0:h.addPoint("audio-stalled",{"int":{audio_ready_state:a.readyState}})},w=function(){h==null?void 0:h.addPoint("audio-suspended",{"int":{audio_ready_state:a.readyState}})},x=function(){h==null?void 0:h.addPoint("audio-emptied",{"int":{audio_ready_state:a.readyState}})};a!=null&&a.readyState>=2&&f();a.addEventListener("loadstart",j);a.addEventListener("timeupdate",k);a.addEventListener("playing",i);a.addEventListener("pause",g);a.addEventListener("ended",m);a.addEventListener("error",e);a.addEventListener("durationchange",o);a.addEventListener("loadedmetadata",p);a.addEventListener("loadeddata",q);a.addEventListener("canplay",r);a.addEventListener("canplaythrough",t);a.addEventListener("stalled",v);a.addEventListener("suspend",w);a.addEventListener("abort",u);a.addEventListener("emptied",x);return function(){a.removeEventListener("loadstart",j),a.removeEventListener("timeupdate",k),a.removeEventListener("playing",i),a.removeEventListener("pause",g),a.removeEventListener("ended",m),a.removeEventListener("error",e),a.removeEventListener("durationchange",o),a.removeEventListener("loadedmetadata",p),a.removeEventListener("loadeddata",q),a.removeEventListener("canplay",r),a.removeEventListener("canplaythrough",t),a.removeEventListener("stalled",v),a.removeEventListener("suspend",w),a.removeEventListener("abort",u),a.removeEventListener("emptied",x),b||a.pause()}},i[8]=h,i[9]=b,i[10]=j):j=i[10];i[11]!==a||i[12]!==h||i[13]!==b?(t=[a,h,b],i[11]=a,i[12]=h,i[13]=b,i[14]=t):t=i[14];o(j,t);i[15]!==h||i[16]!==k||i[17]!==m?(j=function(){var a=l.current;if(a==null)return;switch(m){case y.NONE:case y.LOADING:return;case y.ENDED:case y.PAUSED:c("promiseDone")(a.play(),function(){return n(y.PLAYING)},function(a){k(),h==null?void 0:h.addAnnotations({string:{"play-error":a.name}})});h==null?void 0:h.addPoint("audio-play-clicked",{"int":{audio_ready_state:a.readyState}});return;case y.PLAYING:a.pause();n(y.PAUSED);h==null?void 0:h.addPoint("audio-pause-clicked",{"int":{audio_ready_state:a.readyState}});return}},i[15]=h,i[16]=k,i[17]=m,i[18]=j):j=i[18];t=j;i[19]===Symbol["for"]("react.memo_cache_sentinel")?(j=function(a){var b=l.current;if(b==null)return;b.currentTime=a;s(a)},i[19]=j):j=i[19];j=j;g=x(g,l,r,m===y.PLAYING,f,m===y.ENDED);i[20]!==r||i[21]!==t||i[22]!==m||i[23]!==g?(f=[m,r,l,t,g,j],i[20]=r,i[21]=t,i[22]=m,i[23]=g,i[24]=f):f=i[24];return f}function C(){var a=d("react-compiler-runtime").c(17),b=d("MWPAudioPlaybackContext.react").useMWPAudioOutOfChatPlayback(),e=b[0],f=b[1];b=b[2];var g;a[0]!==e?(g=function(){if(e==null)return y.NONE;return e.ended?y.ENDED:e.paused?y.PAUSED:y.PLAYING},a[0]=e,a[1]=g):g=a[1];g=q(g);var h=g[0],i=g[1];a[2]!==e?(g=function(){return e!=null?e.duration-e.currentTime:0},a[2]=e,a[3]=g):g=a[3];g=q(g);var j=g[0],k=g[1],l;a[4]!==e?(g=function(){if(e==null)return;var a=function(){return k(e.duration-e.currentTime)},b=function(){return i(y.LOADING)},d=function(){return i(y.ENDED)};e.addEventListener("timeupdate",a);e.addEventListener("loadstart",b);e.addEventListener("ended",d);c("promiseDone")(e.play(),function(){return i(y.PLAYING)});return function(){e.removeEventListener("timeupdate",a),e.removeEventListener("loadstart",b),e.removeEventListener("ended",d)}},l=[e],a[4]=e,a[5]=g,a[6]=l):(g=a[5],l=a[6]);o(g,l);a[7]!==e||a[8]!==h?(g=function(){if(e==null)return;switch(h){case y.NONE:case y.LOADING:return;case y.ENDED:case y.PAUSED:c("promiseDone")(e.play(),function(){return i(y.PLAYING)});return;case y.PLAYING:e.pause();i(y.PAUSED);return}},a[7]=e,a[8]=h,a[9]=g):g=a[9];l=g;g=h===y.PLAYING;var m=e!=null&&b!=null&&t,n;a[10]!==f||a[11]!==l||a[12]!==g||a[13]!==m||a[14]!==b||a[15]!==j?(n=[b,g,m,j,l,f],a[10]=f,a[11]=l,a[12]=g,a[13]=m,a[14]=b,a[15]=j,a[16]=n):n=a[16];return n}function D(a,b){var e=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),f=n(c("MWResponsiveLayoutContext.react"));f=f.cardsVisible;var g=c("useMatchViewport")("max","width",750),h=c("useMatchViewport")("max","width",1060),i=!1;g&&f===2?i=!0:h&&f===3&&(i=!0);return((g=a)!=null?g:e==="Inbox")?i?180:218:e==="ChatTab"&&b===!0?148:180}function E(a){var b=u();return b&&a===r.PLAYER?70:36}g.UseCase=r;g.UseCaseContext=s;g.isEnabled=t;g.useShowNewUX=u;g.getMousePos=a;g.ScreenReaderLabel=e;g.usePlaybackButtonContainerStyle=f;g.useResetHighlightProgress=w;g.useProgressLiveUpdate=x;g.State=y;g.useControlCenter=z;g.useControlCenterWithRetry=A;g.useOutOfChatControlCenter=C;g.useCalculatePlayerWidth=D;g.useCalculatePlayerHeight=E}),226);
__d("MWPAudioPlaybackIcon.react",["MWPAudioPlayerIcons.react","MWPAudioPlayerUtils","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4),c=a.disabled,e=a.hasEnded,f=a.isPaused,g=a.isPlaying;a=a.outgoing;var h=d("MWPAudioPlayerUtils").useShowNewUX();h=h?a?"var(--always-white)":"var(--progress-ring-neutral-foreground)":a?"var(--chat-outgoing-message-bubble-background-color)":void 0;if(g){b[0]!==h?(a=i.jsx(d("MWPAudioPlayerIcons.react").PauseIcon,{color:h}),b[0]=h,b[1]=a):a=b[1];return a}if(f||e||c){b[2]!==h?(g=i.jsx(d("MWPAudioPlayerIcons.react").PlayIcon,{color:h}),b[2]=h,b[3]=g):g=b[3];return g}return null}g["default"]=a}),98);
__d("MWPAudioPlayerSharedStyles",[],(function(a,b,c,d,e,f,g){"use strict";a={bar:{backgroundColor:"x14hiurz",borderTopStartRadius:"x1inr27j",borderTopEndRadius:"x1vcqv9c",borderBottomEndRadius:"xfrm7hi",borderBottomStartRadius:"xpbad92",boxShadow:"x49dmcg",height:"xn3w4p2",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",width:"x51ohtg",zIndex:"x1vjfegm",$$css:!0},common:{alignItems:"x6s0dn4",alignSelf:"xkh2ocl",backgroundAttachment:"x1nr1p0w",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"x1qughib",outline:"x1k4qllp",$$css:!0},commonIncoming:{backgroundColor:"x1xr0vuk",$$css:!0},commonOutgoing:{backgroundColor:"x11jlvup",$$css:!0},commonOutgoingReply:{backgroundImage:"xl54vp5",$$css:!0},commonReply:{outline:"x1ucz5p",$$css:!0},container:{alignItems:"x6s0dn4",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"x1qughib",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},highlight:{height:"x5yr21d",start:"x17qophe",left:null,right:null,position:"x10l6tqk",top:"x13vifvy",width:"xh8yej3",$$css:!0},incomingWaveFormStyle:{fill:"x1f9y4dh",$$css:!0},mask:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},outgoingWaveFormStyle:{fill:"xe3v8dz",$$css:!0},playbackButtonContainer:{marginStart:"x1mnrxsn",marginEnd:"x1w0mnb",marginLeft:null,marginRight:null,$$css:!0},pressable:{alignItems:"x6s0dn4",backgroundColor:"x14hiurz",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x78zum5",height:"xxk0z11",justifyContent:"xl56j7k",minWidth:"xnei2rj",$$css:!0},rightSideBottom:{backgroundColor:"x14hiurz",borderTopStartRadius:"xfj52jq",borderTopEndRadius:"xykzs3s",borderBottomEndRadius:"x17xv1ja",borderBottomStartRadius:"x1mvicbb",$$css:!0},rightSideImprove:{marginStart:"x16n37ib",marginEnd:"xq8finb",marginLeft:null,marginRight:null,width:"x1691je0",$$css:!0},rightSideMargin:{marginTop:"x1gslohp",$$css:!0},rightSideTop:{alignItems:"x6s0dn4",color:"x1a3ma36",display:"x78zum5",fontSize:"x1nxh6w3",fontWeight:"x1s688f",height:"xi0exxh",justifyContent:"xl56j7k",marginStart:"x1mnrxsn",marginEnd:"x1w0mnb",marginLeft:null,marginRight:null,position:"x1n2onr6",userSelect:"x87ps6o",width:"x1r9kitl",$$css:!0},scrubber:{alignItems:"x6s0dn4",display:"x78zum5",height:"x5yr21d",position:"x1n2onr6",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},transparent:{height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6","::after_borderTopColor":"x14617ij","::after_borderEndColor":"x1b5s2of","::after_borderBottomColor":"xv84cap","::after_borderStartColor":"x15ngzmr","::after_borderTopStartRadius":"xwuuf8d","::after_borderTopEndRadius":"xpd6q6o","::after_borderBottomEndRadius":"x1n6g0fn","::after_borderBottomStartRadius":"xu4xob7","::after_borderTopStyle":"xynf4tj","::after_borderEndStyle":"xdspwft","::after_borderBottomStyle":"x1r9ni5o","::after_borderStartStyle":"x1d52zm6","::after_borderTopWidth":"x1gnji40","::after_borderEndWidth":"xymhjbi","::after_borderBottomWidth":"x1ekxc0f","::after_borderStartWidth":"x5arhyh","::after_bottom":"x14apmda","::after_content":"x100rkj9","::after_display":"xhkezso","::after_end":"xhyvd7x","::after_pointerEvents":"x2q1x1w","::after_position":"x1j6awrg","::after_start":"x1aneyt","::after_left":null,"::after_right":null,"::after_top":"xso615a",$$css:!0},transparentBar:{backgroundColor:"xjbqb8w",borderTopStartRadius:"x1inr27j",borderTopEndRadius:"x1vcqv9c",borderBottomEndRadius:"xfrm7hi",borderBottomStartRadius:"xpbad92",boxShadow:"x49dmcg",height:"xn3w4p2",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",width:"x51ohtg",zIndex:"x1vjfegm",$$css:!0},waveform:{height:"xn3w4p2",position:"x1n2onr6",width:"xh8yej3",$$css:!0}};g.styles=a}),98);
__d("MWPAudioPlayerButtons.react",["MWPAudioPlaybackContext.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWXPressable.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(9);a=a.outgoing;var e=d("MWPAudioPlayerUtils").useShowNewUX(),f=d("MWPAudioPlaybackContext.react").useMWPAudioPlaybackRate(),g=f[0];f=f[1];if(!e)return null;e=a?"var(--always-white)":"var(--progress-ring-neutral-foreground)";b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.rightSideTop,d("MWPAudioPlayerSharedStyles").styles.rightSideMargin,d("MWPAudioPlayerSharedStyles").styles.rightSideBottom,d("MWPAudioPlayerSharedStyles").styles.rightSideImprove),b[0]=a):a=b[0];var i;b[1]!==e?(i={backgroundColor:"var(--placeholder-text-on-media)",borderRadius:10,color:e},b[1]=e,b[2]=i):i=b[2];b[3]!==g||b[4]!==i?(e=j.jsx("div",{className:a,style:i,children:g}),b[3]=g,b[4]=i,b[5]=e):e=b[5];b[6]!==f||b[7]!==e?(a=j.jsx(c("MWXPressable.react"),{onPress:f,overlayDisabled:!0,children:e}),b[6]=f,b[7]=e,b[8]=a):a=b[8];return a}function b(a){var b=d("react-compiler-runtime").c(9),e=a.disabled,f=a.icon,g=a.label;a=a.onPress;var h=d("MWPAudioPlayerUtils").useShowNewUX(),i;b[0]!==h?(i=h?{backgroundColor:"transparent"}:{},b[0]=h,b[1]=i):i=b[1];i=i;var k;b[2]!==e||b[3]!==f||b[4]!==g||b[5]!==a||b[6]!==h||b[7]!==i?(k=j.jsx(c("MWXPressable.react"),{"aria-label":g,disabled:e,onPress:a,overlayDisabled:h,overlayRadius:"50%",style:i,testid:void 0,xstyle:d("MWPAudioPlayerSharedStyles").styles.pressable,children:f}),b[2]=e,b[3]=f,b[4]=g,b[5]=a,b[6]=h,b[7]=i,b[8]=k):k=b[8];return k}g.PlaybackRateButton=a;g.AudioPlayerPlaybackButton=b}),98);
__d("MWPAudioPlayerLabels",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=h._(/*BTDS*/"__JHASH__KhMMxBdqg3x__JHASH__");b=h._(/*BTDS*/"__JHASH__2rBFW-RfRDV__JHASH__");c=h._(/*BTDS*/"__JHASH__IubwmxlTNhe__JHASH__");g.playLabel=a;g.stopLabel=b;g.pauseLabel=c}),226);
__d("MWXIconExclamationMarkCircle",["MWXSvgIcon","SVGIcon","cr:12407","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12407")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWXIconRefreshAlt",["MWXSvgIcon","SVGIcon","cr:12552","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12552")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWPAudioPlaybackButton.react",["fbt","MWPAudioPlaybackIcon.react","MWPAudioPlayerButtons.react","MWPAudioPlayerLabels","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWXCircleButton.react","MWXIconExclamationMarkCircle","MWXIconRefreshAlt","MWXIconStrict.react","MWXSpinner.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(18),e=a.isError,f=a.isLoading,g=a.isRetryableError,j=a.onPress,l=a.scrubberRef,m=a.disabled,n=a.hasEnded,o=a.isPaused,p=a.isPlaying;a=a.outgoing;var q=d("MWPAudioPlayerUtils").usePlaybackButtonContainerStyle();l=d("MWPAudioPlayerUtils").useResetHighlightProgress(l);var r=p||o;if(f){b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=(i||(i=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.pressable),b[0]=f):f=b[0];var s=r?l:void 0,t;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(t=k.jsx(c("MWXSpinner.react"),{color:"disabled",size:16}),b[1]=t):t=b[1];b[2]!==q||b[3]!==s?(f=k.jsx("div",{className:f,onMouseMove:s,style:q,children:t}),b[2]=q,b[3]=s,b[4]=f):f=b[4];return f}t=r?l:void 0;b[5]!==m||b[6]!==n||b[7]!==e||b[8]!==o||b[9]!==p||b[10]!==g||b[11]!==j||b[12]!==a?(s=e!==!0?k.jsx(d("MWPAudioPlayerButtons.react").AudioPlayerPlaybackButton,{disabled:m,icon:k.jsx(c("MWPAudioPlaybackIcon.react"),{disabled:m,hasEnded:n,isPaused:o,isPlaying:p,outgoing:a}),label:p?d("MWPAudioPlayerLabels").pauseLabel:d("MWPAudioPlayerLabels").playLabel,onPress:j}):g===!0?k.jsx(c("MWXCircleButton.react"),{color:"black",icon:c("MWXIconRefreshAlt"),label:h._(/*BTDS*/"__JHASH__BGxC_0TtXwE__JHASH__"),onPress:j,size:40,type:"normal"}):k.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 xwcfey6 x14yjl9h xudhj91 x18nykt9 xww2gxu x14ctfv x78zum5 x1vqgdyp xl56j7k x100vrsf"},{children:k.jsx(c("MWXIconStrict.react"),{color:"black",icon:c("MWXIconExclamationMarkCircle"),size:20})})),b[5]=m,b[6]=n,b[7]=e,b[8]=o,b[9]=p,b[10]=g,b[11]=j,b[12]=a,b[13]=s):s=b[13];b[14]!==q||b[15]!==t||b[16]!==s?(f=k.jsx("div",{onMouseMove:t,style:q,children:s}),b[14]=q,b[15]=t,b[16]=s,b[17]=f):f=b[17];return f}g["default"]=a}),226);
__d("MWPAudioPlayerContainer.react",["MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useRef;function a(a){var b=a.audioEl,e=a.children,f=a.hasScrubber,g=a.mediaRenderQpl,i=a.scrubberRef,m=a.style,n=a.testid,o=a.useCase,p=d("MWPAudioPlayerUtils").useShowNewUX(),q=l();n=function(a){var c=b.current,e=q.current;c!=null&&e!=null&&Number.isFinite(c.duration)&&(c.currentTime=d("MWPAudioPlayerUtils").getMousePos(a,e)*c.duration)};a=function(a){if(q.current!=null&&i.current!=null)return i.current.updateHighlight(d("MWPAudioPlayerUtils").getMousePos(a,q.current)*100)};var r=function(){if(i.current!=null)return i.current.updateHighlight(0)},s=d("MWPAudioPlayerUtils").useCalculatePlayerHeight(o);s=babelHelpers["extends"]({cursor:f?"pointer":"default",height:s},m);m=f&&!p;k(function(){g==null?void 0:g.addPoint("render-audio-player-container",{bool:{show_new_ux:p},string:{use_case:o===d("MWPAudioPlayerUtils").UseCase.PLAYER?"Player":"Recorder"}})},[g,p,o]);return j.jsx(d("MWPAudioPlayerUtils").UseCaseContext.Provider,{value:o,children:j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.container),"data-testid":void 0,onClick:m?n:void 0,onMouseLeave:f?r:void 0,onMouseMove:m?a:void 0,ref:q,style:s,children:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWPAudioPlayerScrubberBar.react",["fbt","MWPAudioPlayerSharedStyles","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");b=k.forwardRef(a);e=b;function a(a,b){var e=d("react-compiler-runtime").c(11),f=a.xPosition,g=a.currentTime;a=a.duration;var j;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"__JHASH__cCPjPb_WWZb__JHASH__"),e[0]=j):j=e[0];var l=g===0?d("MWPAudioPlayerSharedStyles").styles.transparentBar:d("MWPAudioPlayerSharedStyles").styles.bar,m;e[1]!==l?(m=(i||(i=c("stylex")))(l),e[1]=l,e[2]=m):m=e[2];l=f.toFixed(2)+"%";e[3]!==l?(f={left:l},e[3]=l,e[4]=f):f=e[4];e[5]!==g||e[6]!==a||e[7]!==b||e[8]!==m||e[9]!==f?(l=k.jsx("div",{"aria-label":j,"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":g,className:m,ref:b,role:"slider",style:f}),e[5]=g,e[6]=a,e[7]=b,e[8]=m,e[9]=f,e[10]=l):l=e[10];return l}f=e;g["default"]=f}),226);
__d("MWChatRecorderUtils",["DateConsts"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a.reduce(function(a,b){return a+b.length},0)}function a(a){var b=h(a),c=new Float32Array(b);a.reduce(function(a,b){c.set(b,a);return a+b.length},0);return c}function b(a,b){var c=h([a,b]);return new Float32Array(c).map(function(c,d){c=Math.floor(d/2);if(d%2===0)return a[c];else return b[c]})}function i(a,b,c){c.forEach(function(c,d){c=Math.max(-1,Math.min(1,c));d=b+(d<<1);c=c<0?Math.abs(c)*-32768:Math.abs(c)*32767;a.setInt16(d,c,!0)})}function j(a,b,c){Array.from(c).forEach(function(d,e){d=c.charCodeAt(e);a.setUint8(b+e,d)})}function k(a){var b=a.numberOfChannels,c=a.sampleRate;a=a.samples;var d=a.length;d=d<<1;var e=new ArrayBuffer(44+d);e=new DataView(e);j(e,0,"RIFF");e.setUint32(4,36+d,!0);j(e,8,"WAVE");j(e,12,"fmt ");e.setUint32(16,16,!0);e.setUint16(20,1,!0);e.setUint16(22,b,!0);e.setUint32(24,c,!0);e.setUint32(28,c*b*2,!0);e.setUint16(32,b*2,!0);e.setUint16(34,16,!0);j(e,36,"data");e.setUint32(40,d,!0);i(e,44,a);return e}function c(a){var b=a.numberOfChannels,c=a.sampleRate;a=a.samples;b=k({numberOfChannels:b,sampleRate:c,samples:a});return new File([b],"audio_clip.wav",{type:"audio/wav"})}function e(a){var b=a.numberOfChannels,c=a.sampleRate;a=a.samples;var e=Float32Array.BYTES_PER_ELEMENT;a=a.byteLength/e/b;return a/c%d("DateConsts").SEC_PER_MIN}function l(a,b,c){return a+(b-a)*c}function f(a,b){var c=new Array(Math.ceil(b));if(b===0||a.length===0)return c;if(b===a.length)return Array.from(a);if(a.length===1)return c.fill(a[0]);c[0]=a[0];var d=(a.length-1)/(b-1);for(var e=1;e<b;e++){var f=e*d,g=Math.floor(f),h=Math.ceil(f);f=f-g;c[e]=l(a[g],a[h],f)}b>=2&&(c[c.length-1]=a[a.length-1]);return c}function m(a,b,c){var d=Math.min.apply(Math,a),e=Math.max.apply(Math,a),f=e-d,g=c-b;return a.map(function(a){return(a-d)/f*g+b})}g.getTotalBuffersLen=h;g.flattenBuffer=a;g.interleave=b;g.exportWAV=c;g.getAudioDuration=e;g.computeWaveformAmplitudes=f;g.linearConversion=m}),98);
__d("MWPAudioPlayerWaveform.react",["MWChatRecorderUtils","MWPAudioPlayerSharedStyles","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useLayoutEffect,l=b.useMemo,m=b.useRef,n=b.useState,o=Float32Array.of(.5,.1875,.375,.75,.5,1,1,.75,.25,.375,.75,1,1,.5,.75,1,.75,.75,.5,.25,.25,.375,.5,1,.75,.5,.5,.75,.25,.5,.75,1,.5,.25,.75),p=3,q=3,r=44,s=4;function t(a,b){var c=l(function(){return a==null||a===""?o:Float32Array.from(a.split(",").map(Number))},[a]);return l(function(){if(b<=0||c.length===0)return[];var a=Math.floor(b/(q*2));a=d("MWChatRecorderUtils").linearConversion(d("MWChatRecorderUtils").computeWaveformAmplitudes(c,a),s,r);return a.map(function(a,b){a=Math.ceil(a);var c=p,d=q;b=b*q*2;var e="calc(50% - "+a/2+"px)";return{height:a,rx:c,width:d,x:b,y:e}})},[b,c])}function u(a){var b=d("react-compiler-runtime").c(22),e,f,g,i,l,o;b[0]!==a?(i=a.disabled,l=a.hasEnded,o=a.isPlaying,e=a.outgoing,g=a.scrubberLeft,f=babelHelpers.objectWithoutPropertiesLoose(a,["disabled","hasEnded","isPlaying","outgoing","scrubberLeft"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=i,b[5]=l,b[6]=o):(e=b[1],f=b[2],g=b[3],i=b[4],l=b[5],o=b[6]);var p=i===void 0?!1:i,q=l===void 0?!1:l,r=o===void 0?!1:o,s=m(null);a=n("auto");i=a[0];var t=a[1];b[7]!==p||b[8]!==q||b[9]!==r||b[10]!==e||b[11]!==g?(l=function(){var a=s.current;t(function(){if(p)return"var(--disabled-button-text)";var b="auto";(q||r)&&(b=e===!0?"var(--non-media-pressed-on-dark)":"var(--secondary-button-background-on-dark)");if(a==null)return b;var c=a.getBoundingClientRect();c=c.left;return g>c?e===!0?"var(--always-white)":"var(--progress-ring-neutral-foreground)":b})},o=[p,q,r,e,g],b[7]=p,b[8]=q,b[9]=r,b[10]=e,b[11]=g,b[12]=l,b[13]=o):(l=b[12],o=b[13]);k(l,o);a=e===!0?d("MWPAudioPlayerSharedStyles").styles.outgoingWaveFormStyle:d("MWPAudioPlayerSharedStyles").styles.incomingWaveFormStyle;b[14]!==a?(l=(h||(h=c("stylex")))(a),b[14]=a,b[15]=l):l=b[15];o=l;b[16]!==i?(a={fill:i},b[16]=i,b[17]=a):a=b[17];b[18]!==o||b[19]!==f||b[20]!==a?(l=j.jsx("rect",babelHelpers["extends"]({},f,{className:o,ref:s,style:a})),b[18]=o,b[19]=f,b[20]=a,b[21]=l):l=b[21];return l}function a(a){var b=d("react-compiler-runtime").c(20),e=a.disabled,f=a.hasEnded,g=a.isListened,i=a.isPlaying,l=a.outgoing,o=a.scrubberLeft;a=a.waveformData;var p=m(null),q=n(0),r=q[0],s=q[1],v=f===!0||g===!0;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(q=function(){if(p.current!=null){var a=p.current.getBoundingClientRect();s(a.width)}},f=[],b[0]=q,b[1]=f):(q=b[0],f=b[1]);k(q,f);g=t(a,r);if(g.length===0){b[2]===Symbol["for"]("react.memo_cache_sentinel")?(q=j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.waveform),{ref:p})),b[2]=q):q=b[2];return q}b[3]===Symbol["for"]("react.memo_cache_sentinel")?(f=(h||(h=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.waveform),b[3]=f):f=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(a=(h||(h=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.mask),b[4]=a):a=b[4];if(b[5]!==g||b[6]!==e||b[7]!==i||b[8]!==v||b[9]!==l||b[10]!==o){b[12]!==e||b[13]!==i||b[14]!==v||b[15]!==l||b[16]!==o?(r=function(a,b){return j.createElement(u,babelHelpers["extends"]({},a,{disabled:e,hasEnded:v,isPlaying:i,key:b,outgoing:l,scrubberLeft:o}))},b[12]=e,b[13]=i,b[14]=v,b[15]=l,b[16]=o,b[17]=r):r=b[17];q=g.map(r);b[5]=g;b[6]=e;b[7]=i;b[8]=v;b[9]=l;b[10]=o;b[11]=q}else q=b[11];b[18]!==q?(r=j.jsx("div",babelHelpers["extends"]({},f,{ref:p,children:j.jsx("svg",babelHelpers["extends"]({"aria-hidden":!0},a,{children:q}))})),b[18]=q,b[19]=r):r=b[19];return r}g["default"]=a}),98);
__d("MWPAudioPlayerHighlight.react",["fbt","MWPAudioPlayerScrubberBar.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWPAudioPlayerWaveform.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useImperativeHandle,m=e.useLayoutEffect,n=e.useRef,o=e.useState,p=k.forwardRef(a);function a(a,b){var e=a.audioEl,f=a.children,g=a.disabled,j=a.duration,p=a.hasEnded,r=a.isListened,s=a.isPlaying;s=s===void 0?!0:s;var t=a.onUpdateScrubber,u=a.outgoing,v=a.waveformData;a=a.xstyle;var w=d("MWPAudioPlayerUtils").useShowNewUX(),x=n(),y=n(),z=o(0),A=z[0],B=z[1];z=o(0);var C=z[0],D=z[1];m(function(){if((e==null?void 0:e.current)!=null&&y.current!=null&&j!=null&&j>0){var a=e.current.currentTime,b=y.current;D(q(b,a/j*100))}},[e,j]);l(b,function(){return{updateHighlight:function(a){var b=x.current,c=y.current;if(b==null)return;if(w){if(c!=null){c=q(c,a);D(c)}}else b.style.transform="translateX("+(a-100).toFixed(1)+"%)"}}},[w]);z=function(a){if(x.current!=null){var b,c;b=(b=x.current)==null?void 0:b.getBoundingClientRect();b=(b=b==null?void 0:b.left)!=null?b:0;b=a.clientX-b;c=(c=(c=x.current)==null?void 0:c.offsetWidth)!=null?c:0;B(b/c*100);if(j!=null&&j>0){b=d("MWPAudioPlayerUtils").getMousePos(a,x.current)*j;if(t!=null&&y.current!=null){c=y.current;t(b);D(q(c,b/j*100))}}}};b=Math.floor((b=e==null?void 0:(b=e.current)==null?void 0:b.currentTime)!=null?b:0);if(w){return k.jsxs(k.Fragment,{children:[f,k.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.highlight,d("MWPAudioPlayerSharedStyles").styles.scrubber),{onMouseDownCapture:z,ref:x,children:[k.jsx(c("MWPAudioPlayerScrubberBar.react"),{currentTime:b,duration:(z=e==null?void 0:(f=e.current)==null?void 0:f.duration)!=null?z:0,ref:y,xPosition:A}),k.jsx(c("MWPAudioPlayerWaveform.react"),{disabled:g,hasEnded:p,isListened:r,isPlaying:s,outgoing:u,scrubberLeft:C,waveformData:v})]}))]})}return k.jsx("div",babelHelpers["extends"]({"aria-label":h._(/*BTDS*/"__JHASH__cCPjPb_WWZb__JHASH__"),"aria-valuemax":(z=e==null?void 0:(f=e.current)==null?void 0:f.duration)!=null?z:0,"aria-valuemin":0,"aria-valuenow":b},(i||(i=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.highlight,a),{ref:x,role:"slider"}))}a.displayName=a.name+" [from "+f.id+"]";function q(a,b){a.style.left=b.toFixed(2)+"%";a.style.transition="transform 1s ease-out";b=a.getBoundingClientRect();a=b.left;return a}function b(a){var b=d("react-compiler-runtime").c(17),c=a.disabled,e=a.hasScrubber,f=a.progressHighlightRef,g=a.scrubberRef,h=a.audioEl,i=a.children,j=a.currentTime,l=a.duration,m=a.hasEnded,n=a.isListened,o=a.isPlaying,q=a.onUpdateScrubber,r=a.outgoing,s=a.waveformData;a=a.xstyle;o=o===void 0?!0:o;var t=d("MWPAudioPlayerUtils").useShowNewUX(),u;b[0]!==h||b[1]!==i||b[2]!==j||b[3]!==c||b[4]!==l||b[5]!==m||b[6]!==e||b[7]!==n||b[8]!==o||b[9]!==q||b[10]!==r||b[11]!==f||b[12]!==g||b[13]!==t||b[14]!==s||b[15]!==a?(u=t?k.jsx(p,{audioEl:h,disabled:c,duration:l,hasEnded:m,isListened:n,isPlaying:o,onUpdateScrubber:q,outgoing:r,ref:f,waveformData:s,xstyle:a,children:i}):k.jsxs(k.Fragment,{children:[k.jsx(p,{ref:f,xstyle:a}),e?k.jsx(d("MWPAudioPlayerUtils").ScreenReaderLabel,{currentTime:j,duration:l}):null,k.jsx(p,{ref:g,xstyle:a}),i]}),b[0]=h,b[1]=i,b[2]=j,b[3]=c,b[4]=l,b[5]=m,b[6]=e,b[7]=n,b[8]=o,b[9]=q,b[10]=r,b[11]=f,b[12]=g,b[13]=t,b[14]=s,b[15]=a,b[16]=u):u=b[16];return u}g.MWPAudioPlayerHighlightV1=p;g.MWPAudioPlayerHighlightV2=b}),226);
__d("MWPAudioPlayerKeyCommands.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo;function m(a){if(a>30)return 5;else if(a>10)return 3;else if(a>5)return 2;else if(a>2)return 1;else return.5}function a(a){var b=a.audioEl;a=a.children;var d=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime-=m(a)},[b]),e=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime+=m(a)},[b]),f=k(function(){b.current!=null&&(b.current.currentTime=0)},[b]),g=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime=a},[b]),i=l(function(){var a;return[{command:{key:(a=c("CometKeys")).UP},description:h._(/*BTDS*/"__JHASH__0poPtptaPoq__JHASH__"),handler:e},{command:{key:a.DOWN},description:h._(/*BTDS*/"__JHASH__rYkfY7o-Wnk__JHASH__"),handler:d},{command:{key:a.LEFT},description:h._(/*BTDS*/"__JHASH__1Lid3qpGe7D__JHASH__"),handler:d},{command:{key:a.RIGHT},description:h._(/*BTDS*/"__JHASH__SFoCE2wpUn9__JHASH__"),handler:e},{command:{key:a.HOME},description:h._(/*BTDS*/"__JHASH__d6P7X8Ve8io__JHASH__"),handler:f},{command:{key:a.END},description:h._(/*BTDS*/"__JHASH__QXmXaNdkPYM__JHASH__"),handler:g}]},[d,e,f,g]);return j.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:i,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWPAudioPlayerTimer.react",["MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","formatDurationSeconds","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(13),e=a.disabled,f=a.outgoing;a=a.time;e=e===void 0?!1:e;f=f===void 0?!0:f;var g=d("MWPAudioPlayerUtils").useShowNewUX(),i;b[0]!==e||b[1]!==f||b[2]!==g?(i=g?{color:f?e?"var(--disabled-button-text)":"var(--always-white)":e?"var(--disabled-button-text)":"var(--progress-ring-neutral-foreground)"}:{color:f?"var(--chat-composer-button-color)":"var(--always-black)",cursor:"pointer"},b[0]=e,b[1]=f,b[2]=g,b[3]=i):i=b[3];e=i;f=!g&&d("MWPAudioPlayerSharedStyles").styles.rightSideBottom;i=g&&d("MWPAudioPlayerSharedStyles").styles.rightSideImprove;b[4]!==f||b[5]!==i?(g=(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.rightSideTop,f,i),b[4]=f,b[5]=i,b[6]=g):g=b[6];b[7]!==a?(f=c("formatDurationSeconds")(a),b[7]=a,b[8]=f):f=b[8];b[9]!==e||b[10]!==g||b[11]!==f?(i=j.jsx("div",{className:g,"data-testid":void 0,role:"timer",style:e,children:f}),b[9]=e,b[10]=g,b[11]=f,b[12]=i):i=b[12];return i}g["default"]=a}),98);
__d("useMWNextAttachment",["I64","ReQL","ReQLSuspense","justknobx","qex","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){var e=d("react-compiler-runtime").c(20),g=(i||(i=c("useReStore")))(),l;e[0]!==b.offlineThreadingId||e[1]!==b.primarySortKey||e[2]!==b.secondarySortKey||e[3]!==b.threadKey||e[4]!==g?(l=function(){var a;c("qex")._("18")?a=d("ReQL").fromTableAscending(g.tables.messages.index("messageDisplayOrderOfflineThreadingId")).getKeyRange(b.threadKey).bounds({gt:d("ReQL").key(b.primarySortKey,b.offlineThreadingId)}):a=d("ReQL").fromTableAscending(g.tables.messages.index("messageDisplayOrder")).getKeyRange(b.threadKey).bounds({gt:d("ReQL").key(b.primarySortKey,b.secondarySortKey)});return a.filter(function(a){return(h||(h=d("I64"))).gt(a.primarySortKey,b.primarySortKey)}).filter(function(a){return a.secondarySortKey==null||b.secondarySortKey==null?!0:(h||(h=d("I64"))).gt((a=a.secondarySortKey)!=null?a:(h||(h=d("I64"))).zero,(a=b.secondarySortKey)!=null?a:(h||(h=d("I64"))).zero)}).filter(k)},e[0]=b.offlineThreadingId,e[1]=b.primarySortKey,e[2]=b.secondarySortKey,e[3]=b.threadKey,e[4]=g,e[5]=l):l=e[5];var m;e[6]!==b.primarySortKey||e[7]!==b.secondarySortKey||e[8]!==b.threadKey||e[9]!==g?(m=[g,b.threadKey,b.primarySortKey,b.secondarySortKey],e[6]=b.primarySortKey,e[7]=b.secondarySortKey,e[8]=b.threadKey,e[9]=g,e[10]=m):m=e[10];var n=d("ReQLSuspense").useFirst(l,m,f.id+":27");e[11]!==a.messageId||e[12]!==g?(l=function(){return d("ReQL").fromTableAscending(g.tables.messages.index("messageId")).bounds({gt:d("ReQL").key(a.messageId)}).filter(j)},m=[g,a.messageId],e[11]=a.messageId,e[12]=g,e[13]=l,e[14]=m):(l=e[13],m=e[14]);var o=d("ReQLSuspense").useFirst(l,m,f.id+":80");e[15]!==g||e[16]!==o||e[17]!==n?(l=function(){return c("justknobx")._("2376")?n!=null?d("ReQL").fromTableAscending(g.tables.attachments).getKeyRange(n.threadKey,n.messageId):d("ReQL").empty():o!=null?d("ReQL").fromTableAscending(g.tables.attachments).getKeyRange(o.threadKey,o.messageId):d("ReQL").empty()},m=[g,n,o],e[15]=g,e[16]=o,e[17]=n,e[18]=l,e[19]=m):(l=e[18],m=e[19]);e=d("ReQLSuspense").useFirst(l,m,f.id+":88");return e}function j(a){return!a.isUnsent}function k(a){return!a.isUnsent}g["default"]=a}),98);
__d("fetch",[],(function(a,b,c,d,e,f){"use strict";a=window.fetch;b=a;f["default"]=b}),66);
__d("fetchMWPAudioWaveformDataForURL",["AudioContextSingleton","FBLogger","Promise","asyncToGeneratorRuntime","fetch"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a){var b=[];for(var c=0;c<a.numberOfChannels;c++)b.push(a.getChannelData(c));a=b.reduce(function(a,b){return a+b.length},0);c=new Float32Array(a);for(a=0;a<b.length;a++)for(var d=0;d<b[a].length;d++)c[d*b.length+a]=b[a][d];return c}function j(a){var d=c("AudioContextSingleton").get();return new(h||(h=b("Promise")))(function(b,c){d.decodeAudioData(a,b,c)})}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.toString();try{var b=(yield c("fetch")(a));b=(yield b.arrayBuffer());b=(yield j(b));return i(b)}catch(b){c("FBLogger")("messenger_web_media","audio_waveform_error").catching(b).mustfix("Error fetching waveform data for URL: %s",a);return Float32Array.of()}});return k.apply(this,arguments)}g["default"]=a}),98);
__d("useMWAttachmentUpdater",["Int64Hooks","ReQL","asyncToGeneratorRuntime","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var e=d("react-compiler-runtime").c(6),g=a.attachmentFbid,i=a.messageId,j=a.threadKey,k=(h||(h=c("useReStore")))(),l;e[0]!==g||e[1]!==k||e[2]!==i||e[3]!==j?(a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield k.runInTransaction(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=b.attachments;var c=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(b).getKeyRange(j,i,g)));c!=null&&(yield b.put(babelHelpers["extends"]({},c,a)))});return function(a){return c.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":26")});return function(b){return a.apply(this,arguments)}}(),l=[k,j,i,g],e[0]=g,e[1]=k,e[2]=i,e[3]=j,e[4]=a,e[5]=l):(a=e[4],l=e[5]);return d("Int64Hooks").useCallbackInt64(a,l)}g["default"]=a}),98);
__d("useMWPAudioWaveformData.react",["ConstUriUtils","FBLogger","asyncToGeneratorRuntime","fetchMWPAudioWaveformDataForURL","promiseDone","react","react-compiler-runtime","useMWAttachmentUpdater"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");e.useCallback;var i=e.useEffect,j=e.useState,k=3,l=",",m=["blob:","data:"];function a(a,e){var f=d("react-compiler-runtime").c(11),g=j(a.waveformData),h=g[0],o=g[1],p=c("useMWAttachmentUpdater")(a);f[0]!==e?(g=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(e!=null&&e!==""){var a=d("ConstUriUtils").getUri(e);if(a!=null&&m.includes(a.getProtocol())){a=(yield c("fetchMWPAudioWaveformDataForURL")(a));a.length>k&&o(a.join(l))}}});return function(){return a.apply(this,arguments)}}(),f[0]=e,f[1]=g):g=f[1];var q=g,r;f[2]!==q||f[3]!==h?(g=function(){if(h!=null&&h.length>k)return;c("promiseDone")(q())},r=[q,h],f[2]=q,f[3]=h,f[4]=g,f[5]=r):(g=f[4],r=f[5]);i(g,r);f[6]!==a.waveformData||f[7]!==p||f[8]!==h?(g=function(){h!=null&&h.length>k&&h!==a.waveformData&&p({waveformData:h})["catch"](n)},r=[a.waveformData,p,h],f[6]=a.waveformData,f[7]=p,f[8]=h,f[9]=g,f[10]=r):(g=f[9],r=f[10]);i(g,r);return h}function n(a){c("FBLogger")("messenger_web_media","audio_waveform_error").catching(a).mustfix("Error from updating attachment waveform data")}g["default"]=a}),98);
__d("useMWPMarkAudioAttachmentAsConsumed.react",["FBLogger","react","react-compiler-runtime","useMWAttachmentUpdater"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a,b){var e=d("react-compiler-runtime").c(8),f=c("useMWAttachmentUpdater")(b),g=b.isAttachmentConsumed;e[0]!==(a==null?void 0:a.current)||e[1]!==g||e[2]!==f?(b=function(){var b=a==null?void 0:a.current;if(b==null)return;var c=function(){(g==null||g===!1)&&f({isAttachmentConsumed:!0})["catch"](j)};b.addEventListener("ended",c);return function(){b.removeEventListener("ended",c)}},e[0]=a==null?void 0:a.current,e[1]=g,e[2]=f,e[3]=b):b=e[3];var h;e[4]!==a||e[5]!==g||e[6]!==f?(h=[a,g,f],e[4]=a,e[5]=g,e[6]=f,e[7]=h):h=e[7];i(b,h)}function j(a){c("FBLogger")("messenger_web_media","attachment_update_error").catching(a).mustfix("Error marking attachment as consumed.")}g["default"]=a}),98);
__d("MWAudioPlayer.react",["I64","MWMediaRenderQplUtils","MWPAudioHighlightStylesHooks","MWPAudioPlaybackButton.react","MWPAudioPlayerButtons.react","MWPAudioPlayerContainer.react","MWPAudioPlayerHighlight.react","MWPAudioPlayerKeyCommands.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerTimer.react","MWPAudioPlayerUtils","MWXMessageBubbleCornerStyles.react","react","react-compiler-runtime","requireDeferred","stylex","useMAWMediaStatusUIState","useMWNextAttachment","useMWPAudioWaveformData.react","useMWPMarkAudioAttachmentAsConsumed.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));b=i;var l=b.useEffect,m=b.useRef,n=c("requireDeferred")("MWChatAudioLog").__setRef("MWAudioPlayer.react");function o(){n.onReady(function(a){return a.logBrowserDenyAccess()})}function a(a){var b=d("react-compiler-runtime").c(65),e=a.attachment,f=a.connectBottom,g=a.connectTop,i=a.getPlayableUrl,n=a.isReply,p=a.isSecure,q=a.mediaRenderQpl,r=a.message,s=a.outgoing,t=a.renderUnsupportedAttachment;a=a.width;n=n===void 0?!1:n;var u=e.playableDurationMs,v=(j||(j=d("I64"))).to_float((u=u)!=null?u:(j||(j=d("I64"))).zero)/1e3,w=c("useMWNextAttachment")(e,r);u=p?w:null;p=c("useMAWMediaStatusUIState")(u,q);u=p.downloadStatus;b[0]!==e||b[1]!==i||b[2]!==q?(p=i(e,"MWAudioPlayer",q),b[0]=e,b[1]=i,b[2]=q,b[3]=p):p=b[3];var x=p,y=c("useMWPAudioWaveformData.react")(e,x);p=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles({align:s===!0?"right":"left",connectBottom:f,connectTop:g});b[4]!==i||b[5]!==w||b[6]!==u?(f=w!=null&&(u==null||u==="downloaded")?i(w,"MWAudioPlayer"):void 0,b[4]=i,b[5]=w,b[6]=u,b[7]=f):f=b[7];g=d("MWPAudioPlayerUtils").useControlCenter(x,f,r.messageId,w==null?void 0:w.messageId,o,!1,v,q);i=g[0];u=g[1];f=g[2];var z=g[3],A=g[4];g=g[5];c("useMWPMarkAudioAttachmentAsConsumed.react")(f,e);if(b[8]!==r.ephemeralDurationInSec){var B;B=(j||(j=d("I64"))).gt((B=r.ephemeralDurationInSec)!=null?B:(j||(j=d("I64"))).zero,j.zero);b[8]=r.ephemeralDurationInSec;b[9]=B}else B=b[9];var C=B;r=i===d("MWPAudioPlayerUtils").State.NONE;B=i===d("MWPAudioPlayerUtils").State.PLAYING;var D=i===d("MWPAudioPlayerUtils").State.PAUSED,E=i===d("MWPAudioPlayerUtils").State.LOADING;i=i===d("MWPAudioPlayerUtils").State.ENDED;var F=B||D,G=m(),H=d("MWPAudioHighlightStylesHooks").useHighlightStyles(s);a=d("MWPAudioPlayerUtils").useCalculatePlayerWidth(a,C);a=a+"px";var I;b[10]!==a?(I={width:a},b[10]=a,b[11]=I):I=b[11];a=I;I=F?Math.max(v-u,0):0;var J,K;b[12]!==v||b[13]!==C||b[14]!==q||b[15]!==w||b[16]!==x||b[17]!==y?(J=function(){q==null?void 0:q.addPoint("render-audio-player",{bool:{has_next_attachment:w!=null,has_non_zero_duration:v>0,has_playable_url:Boolean(x),has_waveform:y!=null,is_disappearing_message:C},string:{audio_blob_duration_bucket:d("MWMediaRenderQplUtils").convertDurationToStringBucket(v)}})},K=[v,C,q,w,x,y],b[12]=v,b[13]=C,b[14]=q,b[15]=w,b[16]=x,b[17]=y,b[18]=J,b[19]=K):(J=b[18],K=b[19]);l(J,K);if(x==null||x.length===0){q==null?void 0:q.endFail("empty_preview_url");if(t!=null){b[20]!==e||b[21]!==t?(J=t(e),b[20]=e,b[21]=t,b[22]=J):J=b[22];return J}}K=c("MWPAudioPlayerKeyCommands.react");t=c("MWPAudioPlayerContainer.react");J=d("MWPAudioPlayerUtils").UseCase;var L="mw_audio_player";L=(h||(h=c("stylex"))).props(d("MWPAudioPlayerSharedStyles").styles.common,p,s?d("MWPAudioPlayerSharedStyles").styles.commonOutgoing:d("MWPAudioPlayerSharedStyles").styles.commonIncoming,n&&d("MWPAudioPlayerSharedStyles").styles.commonReply,s&&n&&d("MWPAudioPlayerSharedStyles").styles.commonOutgoingReply);p=e.isAttachmentConsumed===!0;b[23]!==r||b[24]!==i||b[25]!==E||b[26]!==D||b[27]!==B||b[28]!==z||b[29]!==s?(n=k.jsx(c("MWPAudioPlaybackButton.react"),{disabled:r,hasEnded:i,isLoading:E,isPaused:D,isPlaying:B,onPress:z,outgoing:s,scrubberRef:G}),b[23]=r,b[24]=i,b[25]=E,b[26]=D,b[27]=B,b[28]=z,b[29]=s,b[30]=n):n=b[30];b[31]!==f||b[32]!==u||b[33]!==v||b[34]!==i||b[35]!==F||b[36]!==H||b[37]!==B||b[38]!==g||b[39]!==s||b[40]!==A||b[41]!==p||b[42]!==n||b[43]!==y?(e=k.jsx(d("MWPAudioPlayerHighlight.react").MWPAudioPlayerHighlightV2,{audioEl:f,currentTime:u,duration:v,hasEnded:i,hasScrubber:F,isListened:p,isPlaying:B,onUpdateScrubber:g,outgoing:s,progressHighlightRef:A,scrubberRef:G,waveformData:y,xstyle:H,children:n}),b[31]=f,b[32]=u,b[33]=v,b[34]=i,b[35]=F,b[36]=H,b[37]=B,b[38]=g,b[39]=s,b[40]=A,b[41]=p,b[42]=n,b[43]=y,b[44]=e):e=b[44];b[45]!==B||b[46]!==s||b[47]!==I?(r=k.jsx("div",{children:B?k.jsxs(k.Fragment,{children:[k.jsx(c("MWPAudioPlayerTimer.react"),{outgoing:s,time:I}),k.jsx(d("MWPAudioPlayerButtons.react").PlaybackRateButton,{outgoing:s})]}):k.jsx(c("MWPAudioPlayerTimer.react"),{outgoing:s,time:I})}),b[45]=B,b[46]=s,b[47]=I,b[48]=r):r=b[48];b[49]!==L||b[50]!==e||b[51]!==r?(E=k.jsxs("div",babelHelpers["extends"]({},L,{children:[e,r]})),b[49]=L,b[50]=e,b[51]=r,b[52]=E):E=b[52];b[53]!==t||b[54]!==f||b[55]!==F||b[56]!==q||b[57]!==a||b[58]!==E||b[59]!==J.PLAYER?(D=k.jsx(t,{audioEl:f,hasScrubber:F,mediaRenderQpl:q,scrubberRef:G,style:a,useCase:J.PLAYER,testid:void 0,children:E}),b[53]=t,b[54]=f,b[55]=F,b[56]=q,b[57]=a,b[58]=E,b[59]=J.PLAYER,b[60]=D):D=b[60];b[61]!==K||b[62]!==f||b[63]!==D?(z=k.jsx(K,{audioEl:f,children:D}),b[61]=K,b[62]=f,b[63]=D,b[64]=z):z=b[64];return z}g["default"]=a}),98);
__d("MWBuyerShippingAddressRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24106003108988236"}),null);
__d("MWBuyerShippingAddressRootQuery.graphql",["MWBuyerShippingAddressRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"city_name",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"state_name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"district",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"sub_district",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"postal_code",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"care_of",storageKey:null},n={alias:null,args:null,concreteType:"XFBPAYAddressAssociatedPhoneNumberResponse",kind:"LinkedField",name:"address_linked_phone_number",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"normalized_phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"national_number",storageKey:null}],storageKey:null},o=[{kind:"Variable",name:"id",variableName:"id"}],p={alias:null,args:null,kind:"ScalarField",name:"country_id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWBuyerShippingAddressRootQuery",selections:[{alias:null,args:null,concreteType:"FBPayAccountExtended",kind:"LinkedField",name:"fbpay_account_extended",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYFBPayAccount",kind:"LinkedField",name:"fbpay_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shipping_addresses",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"MWBuyerShippingAddressSelectionAddressListItem",selections:[c,d,e,f,g,h,i,j,k,l,m,n],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:o,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MWBuyerShippingAddressSelectionPrivacyText"},p],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWBuyerShippingAddressRootQuery",selections:[{alias:null,args:null,concreteType:"FBPayAccountExtended",kind:"LinkedField",name:"fbpay_account_extended",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYFBPayAccount",kind:"LinkedField",name:"fbpay_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shipping_addresses",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isPAYMailingAddress"},c,d,e,f,g,h,i,j,k,l,m,n],storageKey:null},c],storageKey:null}],storageKey:null},{alias:null,args:o,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"messenger_privacy_policy_url",storageKey:null},p,c],storageKey:null}]},params:{id:b("MWBuyerShippingAddressRootQuery_facebookRelayOperation"),metadata:{},name:"MWBuyerShippingAddressRootQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWBuyerShippingAddressRootQuery",["MWBuyerShippingAddressRootQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("MWBuyerShippingAddressRootQuery.graphql");c=a;g["default"]=c}),98);
__d("MWCMHostTextHovercard.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMHostTextHovercard.react").__setRef("MWCMHostTextHovercard.entrypoint")};g["default"]=a}),98);
__d("MWCMStandaloneJoinDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMStandaloneJoinDialog.react").__setRef("MWCMStandaloneJoinDialog.entrypoint")};g["default"]=a}),98);
__d("MWCMStandaloneMemberJoinChatDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMStandaloneMemberJoinChatDialog.react").__setRef("MWCMStandaloneMemberJoinChatDialog.entrypoint")};g["default"]=a}),98);
__d("MWCMStandaloneRequestToJoinDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMStandaloneRequestToJoinDialog.react").__setRef("MWCMStandaloneRequestToJoinDialog.entrypoint")};g["default"]=a}),98);
__d("MWChannelPromptContributionsDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8908859432553064"}),null);
__d("MWChannelPromptContributionsDialogQuery$Parameters",["MWChannelPromptContributionsDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWChannelPromptContributionsDialogQuery_facebookRelayOperation"),metadata:{},name:"MWChannelPromptContributionsDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("MWChannelPromptContributionsDialog.entrypoint",["JSResourceForInteraction","MWChannelPromptContributionsDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{myQueryRef:{options:{fetchPolicy:"store-and-network"},parameters:b("MWChannelPromptContributionsDialogQuery$Parameters"),variables:{count:20,data:{prompt_id:a.promptId}}}}}},root:c("JSResourceForInteraction")("MWChannelPromptContributionsDialog.react").__setRef("MWChannelPromptContributionsDialog.entrypoint")};g["default"]=a}),98);
__d("MWChannelPromptContributionsDialogContainer.react",["CometHideLayerOnEscape.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(7),e=a.children,f=a.onClose;a=a.visibilityRef;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g={className:"x1qjc9v5 xcrg951 x9f619 x78zum5 xdt5ytf x1iyjqo2 x5yr21d x1n2onr6"},b[0]=g):g=b[0];b[1]!==e||b[2]!==a?(g=i.jsx("div",babelHelpers["extends"]({},g,{ref:a,children:e})),b[1]=e,b[2]=a,b[3]=g):g=b[3];b[4]!==f||b[5]!==g?(e=i.jsx(c("CometHideLayerOnEscape.react"),{onHide:f,children:g}),b[4]=f,b[5]=g,b[6]=e):e=b[6];return e}g["default"]=a}),98);
__d("MWChannelPromptContributionsDialogFallback.react",["fbt","MWChannelPromptContributionsDialogContainer.react","MWXCircleButton.react","MWXGlimmer.react","MWXIconCross","MWXIconDots3Vertical","MWXRow.react","MWXRowItem.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={promptTitle:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x10w6t97",width:"xdzyupr",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(8);a=a.onClose;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{disabled:!0,icon:c("MWXIconDots3Vertical"),label:h._(/*BTDS*/"__JHASH__yyf5QdHy0uw__JHASH__"),size:28})}),b[0]=e):e=b[0];var f;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXGlimmer.react"),{index:0,xstyle:k.promptTitle})}),b[1]=f):f=b[1];var g;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__l-5nlfLCheV__JHASH__"),b[2]=g):g=b[2];b[3]!==a?(e=j.jsxs(c("MWXRow.react"),{paddingHorizontal:16,paddingVertical:16,spacing:0,verticalAlign:"center",children:[e,f,j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconCross"),label:g,onPress:a,size:28})})]}),b[3]=a,b[4]=e):e=b[4];b[5]!==a||b[6]!==e?(f=j.jsx(c("MWChannelPromptContributionsDialogContainer.react"),{onClose:a,children:e}),b[5]=a,b[6]=e,b[7]=f):f=b[7];return f}g["default"]=a}),226);
__d("MWChannelPromptTimerPill.react",["fbt","I64","MWXText.react","formatDate","react","react-compiler-runtime","stylex","useServerTime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||d("react"),m={blue:{backgroundColor:"xwnonoy",$$css:!0},gray:{backgroundColor:"x1d2osyd",$$css:!0},timerPillContainer:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",height:"x1qx5ct2",justifyContent:"xl56j7k",marginBottom:"x1e56ztr",marginTop:"x1gslohp",marginEnd:"xkrivgy",marginStart:"x1gryazu",maxWidth:"x10aut6u",paddingEnd:"x1sxyh0",paddingStart:"xurb0ha",width:"xeq5yr9",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(7);a=a.countdownTimestampMs;a=(k||(k=d("I64"))).to_float(a);var e=new Date(a),f=c("useServerTime")();a=f.getTime()>=a;f=e.getDay()!==f.getDay();f=a?h._(/*BTDS*/"__JHASH__ZVTrlU5XFyD__JHASH__"):f?h._(/*BTDS*/"__JHASH__n-gZnixlPi3__JHASH__"):h._(/*BTDS*/"__JHASH__mdS85EDmHlw__JHASH__",[h._param("time",c("formatDate")(e,"g:i A"))]);b[0]!==a?(e=(i||(i=c("stylex"))).props(m.timerPillContainer,a?m.gray:m.blue),b[0]=a,b[1]=e):e=b[1];b[2]!==f?(a=l.jsx(c("MWXText.react"),{color:"white",numberOfLines:1,type:"meta4",children:f}),b[2]=f,b[3]=a):a=b[3];b[4]!==e||b[5]!==a?(f=l.jsx("div",babelHelpers["extends"]({},e,{children:a})),b[4]=e,b[5]=a,b[6]=f):f=b[6];return f}g["default"]=a}),226);
__d("MWChatBubbleEmphasisRing.react",["BaseThemeProvider.react","MWInboxMessageSearchJumpToResultQPL","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect;({borderRadius:22,borderStyle:"solid",borderWidth:2,content:"''",display:"block",pointerEvents:"none",position:"absolute",zIndex:1});var l={emphasis_animation:{animationDelay:"x1t83zlg",animationDuration:"xxkxylk",animationIterationCount:"x1v7wizp",animationName:"x1yrix95",animationTimingFunction:"x4hg4is",$$css:!0},emphasis_ring:{backgroundColor:"xjbqb8w",borderTopColor:"x1v8p93f",borderEndColor:"xogb00i",borderBottomColor:"x16stqrj",borderStartColor:"x1ftr3km",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x1gp4ovq",borderEndWidth:"xdio9jc",borderBottomWidth:"x1h2mt7u",borderStartWidth:"x7g060r",display:"x78zum5",maxWidth:"x1hvl878",position:"x1n2onr6","::after_borderTopStartRadius":"xquudas","::after_borderTopEndRadius":"x6p43zf","::after_borderBottomEndRadius":"x1wnhr99","::after_borderBottomStartRadius":"x1gquc79","::after_borderTopStyle":"xynf4tj","::after_borderEndStyle":"xdspwft","::after_borderBottomStyle":"x1r9ni5o","::after_borderStartStyle":"x1d52zm6","::after_borderTopWidth":"x31ga2r","::after_borderEndWidth":"xcmxnv6","::after_borderBottomWidth":"x13afdcp","::after_borderStartWidth":"x10va8jt","::after_content":"x100rkj9","::after_display":"xhkezso","::after_pointerEvents":"x2q1x1w","::after_position":"x1j6awrg","::after_zIndex":"xitxdhh","::after_borderTopColor":"x1yzler7","::after_borderEndColor":"xh3oo2y","::after_borderBottomColor":"xxqiif8","::after_borderStartColor":"xrh6a5","::after_bottom":"xdb1ctf","::after_end":"x4bhatf","::after_start":"xhg89tr","::after_left":null,"::after_right":null,"::after_top":"x7kqs8i","::before_borderTopStartRadius":"x2e93ah","::before_borderTopEndRadius":"xigdz7j","::before_borderBottomEndRadius":"x1vxwiij","::before_borderBottomStartRadius":"xfgw0w6","::before_borderTopStyle":"xnvurfn","::before_borderEndStyle":"xv1ta3e","::before_borderBottomStyle":"x1opv7go","::before_borderStartStyle":"x1dtnpoi","::before_borderTopWidth":"x1b8stmw","::before_borderEndWidth":"xyhsekn","::before_borderBottomWidth":"xmbliey","::before_borderStartWidth":"x1igdxxj","::before_content":"x10tli2e","::before_display":"x1fgarty","::before_pointerEvents":"xkk1bqk","::before_position":"x1hmns74","::before_zIndex":"x12maryy","::before_borderTopColor":"xtei6gu","::before_borderEndColor":"x1nwru9p","::before_borderBottomColor":"xxs4umj","::before_borderStartColor":"xg8j718","::before_bottom":"xe80sof","::before_end":"x105ji64","::before_opacity":"x1u3qutx","::before_start":"xbs7dl3","::before_left":null,"::before_right":null,"::before_top":"x51xajf",$$css:!0},emphasis_ring_before_xma:{borderBottomStyle:"x1sy0etr","::after_borderBottom":"x1bxl7c5","::after_borderBottomEndRadius":"x1qo8dsh","::after_borderBottomStartRadius":"x1oiup0q","::before_borderBottom":"xozyfcf","::before_borderBottomEndRadius":"x1nxuetn","::before_borderBottomStartRadius":"x1doa7m0",$$css:!0},emphasis_ring_connect_bottom_incoming:{"::after_borderBottomStartRadius":"x1573djm","::before_borderBottomStartRadius":"x106tphz",$$css:!0},emphasis_ring_connect_bottom_outgoing:{"::after_borderBottomEndRadius":"x1nb2ndt","::before_borderBottomEndRadius":"x7ft4bm",$$css:!0},emphasis_ring_connect_top_incoming:{"::after_borderTopStartRadius":"x14nzmgs","::before_borderTopStartRadius":"x58eeit",$$css:!0},emphasis_ring_connect_top_outgoing:{"::after_borderTopEndRadius":"xe41ffp","::before_borderTopEndRadius":"x1cbhpwz",$$css:!0}};b={"chat-outgoing-message-background-gradient":"none","chat-outgoing-message-bubble-background-color":"var(--mwp-primary-theme-color)"};var m={dark:b,light:b,type:"VARIABLES"};function a(a){var b=d("react-compiler-runtime").c(12),e=a.message,f=a.children,g=a.connectBottom,i=a.connectTop,n=a.outgoing;a=a.precedesXMA;var o=n?l.emphasis_ring_connect_top_outgoing:l.emphasis_ring_connect_top_incoming;n=n?l.emphasis_ring_connect_bottom_outgoing:l.emphasis_ring_connect_bottom_incoming;a=a?l.emphasis_ring_before_xma:g&&n;g=i&&o;b[0]!==a||b[1]!==g?(n=[l.emphasis_animation,l.emphasis_ring,a,g],b[0]=a,b[1]=g,b[2]=n):n=b[2];var p=n;b[3]!==(e==null?void 0:e.messageId)||b[4]!==(e==null?void 0:e.offlineThreadingId)?(i=function(){d("MWInboxMessageSearchJumpToResultQPL").endSuccessIfJumpedToMessage({messageId:e==null?void 0:e.messageId,offlineThreadingId:e==null?void 0:e.offlineThreadingId})},b[3]=e==null?void 0:e.messageId,b[4]=e==null?void 0:e.offlineThreadingId,b[5]=i):i=b[5];o=e==null?void 0:e.messageId;a=e==null?void 0:e.offlineThreadingId;b[6]!==o||b[7]!==a?(g=[o,a],b[6]=o,b[7]=a,b[8]=g):g=b[8];k(i,g);b[9]!==f||b[10]!==p?(n=j.jsx(c("BaseThemeProvider.react"),{config:m,children:function(a,b){return j.jsx("div",{className:(h||(h=c("stylex")))(p,a),"data-testid":void 0,style:b,children:f})}}),b[9]=f,b[10]=p,b[11]=n):n=b[11];return n}g["default"]=a}),98);
__d("MWChatBusinessQuickReply.react",["CometImage.react","MDSTextPairing.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={image:{borderTopStartRadius:"x1z11no5",borderTopEndRadius:"xjy5m1g",borderBottomEndRadius:"x1mnwbp6",borderBottomStartRadius:"x4pb5v6","float":"xrbpyxo",height:"x158ke7r",marginTop:"x16ldp7u",marginEnd:"x1t4t16n",marginBottom:"xz62fqu",marginStart:"xbmpl8g",width:"x1kl0l3y",$$css:!0},vertical:{paddingBottom:"xsag5q8",paddingEnd:"xn6708d",paddingStart:"xr9oo41",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(16),e=a.bodyLineLimit,f=a.imageUrl,g=a.onClick,i=a.quickReplyVertical;a=a.text;e=e===void 0?1:e;i=i===void 0?!1:i;var l;b[0]!==i?(l=(h||(h=c("stylex"))).props(i?k.vertical:!1),b[0]=i,b[1]=l):l=b[1];var m;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(m={className:"x6s0dn4 x1eb86dx xfh8nwu xoqspk4 x12v9rci x138vmkv x143s1ad xp3zfi1 x137oirg xojro6o x1vnslfi x9f619 x1ypdohk xjb2p0i xk50ysn xl56j7k xr9ek0c x1emribx xjpr12u x1i64zmx x1mzt3pk x1a8lsjc xn6708d x1ye3gou x889kno x1yc453h x13faqbe"},b[2]=m):m=b[2];var n;b[3]!==f?(n=f!=null?j.jsx(c("CometImage.react"),{src:f,xstyle:k.image}):null,b[3]=f,b[4]=n):n=b[4];f=i?"end":"start";b[5]!==e||b[6]!==f||b[7]!==a?(i=j.jsx(c("MDSTextPairing.react"),{body:a,bodyLineLimit:e,level:3,textAlign:f}),b[5]=e,b[6]=f,b[7]=a,b[8]=i):i=b[8];b[9]!==g||b[10]!==n||b[11]!==i?(e=j.jsxs("button",babelHelpers["extends"]({},m,{onClick:g,children:[n,i]})),b[9]=g,b[10]=n,b[11]=i,b[12]=e):e=b[12];b[13]!==l||b[14]!==e?(f=j.jsx("div",babelHelpers["extends"]({},l,{children:e})),b[13]=l,b[14]=e,b[15]=f):f=b[15];return f}g["default"]=a}),98);
__d("MWChatBusinessQuickReplyText.react",["MWChatBusinessQuickReply.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(9),e=a.onSend,f=a.quickReply;a=a.quickReplyVertical;var g=a?3:1,h;b[0]!==e||b[1]!==f?(h=function(){return e(f)},b[0]=e,b[1]=f,b[2]=h):h=b[2];h=h;var j=f.image_url;j=(j=j)!=null?j:void 0;var k;b[3]!==g||b[4]!==h||b[5]!==f.title||b[6]!==a||b[7]!==j?(k=i.jsx(c("MWChatBusinessQuickReply.react"),{bodyLineLimit:g,imageUrl:j,onClick:h,quickReplyVertical:a,text:f.title}),b[3]=g,b[4]=h,b[5]=f.title,b[6]=a,b[7]=j,b[8]=k):k=b[8];return k}g["default"]=a}),98);
__d("MWChatUserBirthdayQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4679476245513562"}),null);
__d("MWChatUserBirthdayQuery.graphql",["MWChatUserBirthdayQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,concreteType:"Date",kind:"LinkedField",name:"birthdate",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"year",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserBirthdayQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserBirthdayQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserBirthdayQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserBirthdayQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatUserBirthdayQuery",["CometRelay","MWChatUserBirthdayQuery.graphql","promiseDone","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i="en-US";function j(a,b,c,d){c=new Date(c,b-1,a);return c.toLocaleDateString(d,{day:"numeric",month:"numeric",year:"numeric"})}function a(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var e=d("CometRelay").fetchQuery(b,k,{}).toPromise().then(function(b){b=b==null?void 0:(b=b.viewer)==null?void 0:(b=b.user)==null?void 0:b.birthdate;if(b){var c=b==null?void 0:b.day,d=b==null?void 0:b.month;b=b==null?void 0:b.year;c!=null&&d!=null&&b!=null&&a(j(c,d,b,i))}});c("promiseDone")(e)},a[0]=b,a[1]=e):e=a[1];return e}var k=h!==void 0?h:h=b("MWChatUserBirthdayQuery.graphql");g.useUserBirthdayDataQuery=a}),98);
__d("MWChatBusinessQuickReplyUserBirthday.react",["MWChatBusinessQuickReply.react","MWChatUserBirthdayQuery","react","react-compiler-runtime","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(18),e=a.onSend,f=a.quickReply,g=a.quickReplyVertical;a=a.userID;c("vulture")("tJsMumlXI5fKIWKlz4OT3_uo6ec=");var h=d("MWChatUserBirthdayQuery").useUserBirthdayDataQuery(),l=k(),m=l[0],n=l[1];b[0]!==h?(l=function(){h(function(a){return n(a)})},b[0]=h,b[1]=l):l=b[1];var o;b[2]!==h||b[3]!==a?(o=[a,h,n],b[2]=h,b[3]=a,b[4]=o):o=b[4];j(l,o);if(m==null)return null;a=f.content_type;l=f.data;o=f.image_url;f=f.payload;var p;b[5]!==a||b[6]!==l||b[7]!==o||b[8]!==f||b[9]!==m?(p={content_type:a,data:l,image_url:o,payload:f,title:m},b[5]=a,b[6]=l,b[7]=o,b[8]=f,b[9]=m,b[10]=p):p=b[10];var q=p;b[11]!==q||b[12]!==e?(a=function(){return e(q)},b[11]=q,b[12]=e,b[13]=a):a=b[13];l=a;b[14]!==l||b[15]!==g||b[16]!==m?(o=i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:l,quickReplyVertical:g,text:m}),b[14]=l,b[15]=g,b[16]=m,b[17]=o):o=b[17];return o}g["default"]=a}),98);
__d("MWChatUserEmailQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5146654855396537"}),null);
__d("MWChatUserEmailQuery.graphql",["MWChatUserEmailQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"Email",kind:"LinkedField",name:"all_emails",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"display_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_primary",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserEmailQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserEmailQuery",selections:a},params:{id:b("MWChatUserEmailQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserEmailQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatUserEmailQuery",["CometRelay","MWChatUserEmailQuery.graphql","promiseDone","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var e=d("CometRelay").fetchQuery(b,j,{}).toPromise().then(function(b){b=b==null?void 0:b.viewer.all_emails;if(b&&b.length>0){var c=b.find(i);c!=null?a(c.display_email):a(b[0].display_email)}});c("promiseDone")(e)},a[0]=b,a[1]=e):e=a[1];return e}function i(a){return a.is_primary}var j=h!==void 0?h:h=b("MWChatUserEmailQuery.graphql");g.useUserEmailDataQuery=a}),98);
__d("MWChatBusinessQuickReplyUserEmail.react",["MWChatBusinessQuickReply.react","MWChatUserEmailQuery","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(16),e=a.onSend,f=a.quickReply,g=a.quickReplyVertical;a=a.userID;var h=d("MWChatUserEmailQuery").useUserEmailDataQuery(),l=k(),m=l[0],n=l[1];b[0]!==h?(l=function(){h(n)},b[0]=h,b[1]=l):l=b[1];var o;b[2]!==h||b[3]!==a?(o=[a,h,n],b[2]=h,b[3]=a,b[4]=o):o=b[4];j(l,o);if(m==null)return null;b[5]!==e||b[6]!==f.content_type||b[7]!==f.data||b[8]!==f.image_url||b[9]!==f.payload||b[10]!==m?(a=function(){return e({content_type:f.content_type,data:f.data,image_url:f.image_url,payload:f.payload,title:m})},b[5]=e,b[6]=f.content_type,b[7]=f.data,b[8]=f.image_url,b[9]=f.payload,b[10]=m,b[11]=a):a=b[11];b[12]!==g||b[13]!==a||b[14]!==m?(l=i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:a,quickReplyVertical:g,text:m}),b[12]=g,b[13]=a,b[14]=m,b[15]=l):l=b[15];return l}g["default"]=a}),98);
__d("MWChatUserPhoneNumberQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5063442323698780"}),null);
__d("MWChatUserPhoneNumberQuery.graphql",["MWChatUserPhoneNumberQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,concreteType:"Phone",kind:"LinkedField",name:"all_phones",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_preferred",storageKey:null},{alias:null,args:null,concreteType:"PhoneNumber",kind:"LinkedField",name:"phone_number",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"universal_number",storageKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserPhoneNumberQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserPhoneNumberQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserPhoneNumberQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserPhoneNumberQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatUserPhoneNumberQuery",["CometRelay","MWChatUserPhoneNumberQuery.graphql","promiseDone","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var e=d("CometRelay").fetchQuery(b,j,{}).toPromise().then(function(b){b=b==null?void 0:b.viewer.user.all_phones;if(b&&b.length>0){var c=b.find(i);if(c!=null){a((c=c.phone_number)==null?void 0:c.universal_number)}else{a((c=b[0].phone_number)==null?void 0:c.universal_number)}}});c("promiseDone")(e)},a[0]=b,a[1]=e):e=a[1];return e}function i(a){return a.is_preferred}var j=h!==void 0?h:h=b("MWChatUserPhoneNumberQuery.graphql");g.useUserPhoneNumberDataQuery=a}),98);
__d("MWChatBusinessQuickReplyUserPhoneNumber.react",["MWChatBusinessQuickReply.react","MWChatUserPhoneNumberQuery","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(18),e=a.onSend,f=a.quickReply,g=a.quickReplyVertical;a=a.userID;var h=d("MWChatUserPhoneNumberQuery").useUserPhoneNumberDataQuery(),m=k(l),n=m[0],o=m[1];b[0]!==h?(m=function(){h(function(a){return o(function(){return a})})},b[0]=h,b[1]=m):m=b[1];var p;b[2]!==h||b[3]!==a?(p=[a,h,o],b[2]=h,b[3]=a,b[4]=p):p=b[4];j(m,p);if(n==null)return null;a=f.content_type;m=f.data;p=f.image_url;f=f.payload;var q;b[5]!==a||b[6]!==m||b[7]!==p||b[8]!==f||b[9]!==n?(q={content_type:a,data:m,image_url:p,payload:f,title:n},b[5]=a,b[6]=m,b[7]=p,b[8]=f,b[9]=n,b[10]=q):q=b[10];var r=q;b[11]!==r||b[12]!==e?(a=function(){return e(r)},b[11]=r,b[12]=e,b[13]=a):a=b[13];m=a;b[14]!==m||b[15]!==g||b[16]!==n?(p=i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:m,quickReplyVertical:g,text:n}),b[14]=m,b[15]=g,b[16]=n,b[17]=p):p=b[17];return p}function l(){}g["default"]=a}),98);
__d("MWChatUserProfileLocationQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7039613476103704"}),null);
__d("MWChatUserProfileLocationQuery.graphql",["MWChatUserProfileLocationQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StreetAddress",kind:"LinkedField",name:"address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"region",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"postal_code",storageKey:null}],storageKey:null}],type:"User",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserProfileLocationQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserProfileLocationQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserProfileLocationQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserProfileLocationQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatUserProfileLocationQuery",["CometRelay","MWChatUserProfileLocationQuery.graphql","promiseDone","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var e=d("CometRelay").fetchQuery(b,i,{}).toPromise().then(function(b){b=b==null?void 0:(b=b.viewer)==null?void 0:(b=b.actor)==null?void 0:(b=b.address)==null?void 0:b.region;b!=null&&b!==""&&a(b)});c("promiseDone")(e)},a[0]=b,a[1]=e):e=a[1];return e}function e(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var e=d("CometRelay").fetchQuery(b,i,{}).toPromise().then(function(b){b=b==null?void 0:(b=b.viewer)==null?void 0:(b=b.actor)==null?void 0:b.address;b=b==null?void 0:b.postal_code;b!=null&&a(b)});c("promiseDone")(e)},a[0]=b,a[1]=e):e=a[1];return e}var i=h!==void 0?h:h=b("MWChatUserProfileLocationQuery.graphql");g.useUserProfileStateDataQuery=a;g.useUserProfileZipCodeDataQuery=e}),98);
__d("MWChatBusinessQuickReplyUserState.react",["MWChatBusinessQuickReply.react","MWChatUserProfileLocationQuery","react","react-compiler-runtime","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(18),e=a.onSend,f=a.quickReply,g=a.quickReplyVertical;a=a.userID;c("vulture")("XR6-ZbqO30xv0l_X_kfEtnNQhlM=");var h=d("MWChatUserProfileLocationQuery").useUserProfileStateDataQuery(),l=k(),m=l[0],n=l[1];b[0]!==h?(l=function(){h(function(a){return n(a)})},b[0]=h,b[1]=l):l=b[1];var o;b[2]!==h||b[3]!==a?(o=[a,h,n],b[2]=h,b[3]=a,b[4]=o):o=b[4];j(l,o);if(m==null)return null;a=f.content_type;l=f.data;o=f.image_url;f=f.payload;var p;b[5]!==a||b[6]!==l||b[7]!==o||b[8]!==f||b[9]!==m?(p={content_type:a,data:l,image_url:o,payload:f,title:m},b[5]=a,b[6]=l,b[7]=o,b[8]=f,b[9]=m,b[10]=p):p=b[10];var q=p;b[11]!==q||b[12]!==e?(a=function(){return e(q)},b[11]=q,b[12]=e,b[13]=a):a=b[13];l=a;b[14]!==l||b[15]!==g||b[16]!==m?(o=i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:l,quickReplyVertical:g,text:m}),b[14]=l,b[15]=g,b[16]=m,b[17]=o):o=b[17];return o}g["default"]=a}),98);
__d("MWChatBusinessQuickReplyUserZipCode.react",["MWChatBusinessQuickReply.react","MWChatUserProfileLocationQuery","react","react-compiler-runtime","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(18),e=a.onSend,f=a.quickReply,g=a.quickReplyVertical;a=a.userID;c("vulture")("xJwNdVx-jEQ2udC06J_yZ_OBaC4=");var h=d("MWChatUserProfileLocationQuery").useUserProfileZipCodeDataQuery(),l=k(),m=l[0],n=l[1];b[0]!==h?(l=function(){h(function(a){return n(a)})},b[0]=h,b[1]=l):l=b[1];var o;b[2]!==h||b[3]!==a?(o=[a,h,n],b[2]=h,b[3]=a,b[4]=o):o=b[4];j(l,o);if(m==null)return null;a=f.content_type;l=f.data;o=f.image_url;f=f.payload;var p;b[5]!==a||b[6]!==l||b[7]!==o||b[8]!==f||b[9]!==m?(p={content_type:a,data:l,image_url:o,payload:f,title:m},b[5]=a,b[6]=l,b[7]=o,b[8]=f,b[9]=m,b[10]=p):p=b[10];var q=p;b[11]!==q||b[12]!==e?(a=function(){return e(q)},b[11]=q,b[12]=e,b[13]=a):a=b[13];l=a;b[14]!==l||b[15]!==g||b[16]!==m?(o=i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:l,quickReplyVertical:g,text:m}),b[14]=l,b[15]=g,b[16]=m,b[17]=o):o=b[17];return o}g["default"]=a}),98);
__d("MWChatBusinessQuickReplyList.react",["Actor","CometScrollableArea.react","I64","LSIntEnum","LSQuickReplyType","MWChatBusinessQuickReplyText.react","MWChatBusinessQuickReplyUserBirthday.react","MWChatBusinessQuickReplyUserEmail.react","MWChatBusinessQuickReplyUserPhoneNumber.react","MWChatBusinessQuickReplyUserState.react","MWChatBusinessQuickReplyUserZipCode.react","MessengerWebEventsFalcoEvent","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i.useEffect,n={pillContainer:{backgroundColor:"x1eb86dx",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"xozqiw3",paddingTop:"x1nn3v0j",paddingEnd:"x1sxyh0",paddingBottom:"x1a8lsjc",paddingStart:"xurb0ha",$$css:!0},pillContainerVertical:{alignItems:"xuk3077",backgroundColor:"x1eb86dx",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"xm7lytj",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(22),e=a.arrayQR,f=a.id,g=a.onSend;a=a.quickReplyType;var i;b[0]!==a?(i=a===void 0?(j||(j=d("LSIntEnum"))).ofNumber(c("LSQuickReplyType").NONE):a,b[0]=a,b[1]=i):i=b[1];a=i;b[2]!==a?(i=(k||(k=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSQuickReplyType").VERTICAL)),b[2]=a,b[3]=i):i=b[3];var o=i;a=d("Actor").useActor();var p=a[0];b[4]!==f?(i=function(){c("MessengerWebEventsFalcoEvent").log(function(){return{event_name:"render_quick_replies",other_user_fbid:f}})},a=[f],b[4]=f,b[5]=i,b[6]=a):(i=b[5],a=b[6]);m(i,a);b[7]===Symbol["for"]("react.memo_cache_sentinel")?(i={className:"x1n2onr6 xh8yej3 x1eb86dx"},b[7]=i):i=b[7];b[8]!==o?(a=(h||(h=c("stylex"))).props(o?n.pillContainerVertical:n.pillContainer),b[8]=o,b[9]=a):a=b[9];if(b[10]!==p||b[11]!==e||b[12]!==g||b[13]!==o){var q;b[15]!==p||b[16]!==g||b[17]!==o?(q=function(a,b){switch(a.content_type){case"text":return l.jsx(c("MWChatBusinessQuickReplyText.react"),{onSend:g,quickReply:a,quickReplyVertical:o},String(b));case"user_birthday":return l.jsx(c("MWChatBusinessQuickReplyUserBirthday.react"),{onSend:g,quickReply:a,quickReplyVertical:o,userID:p},String(b));case"user_email":return l.jsx(c("MWChatBusinessQuickReplyUserEmail.react"),{onSend:g,quickReply:a,quickReplyVertical:o,userID:p},String(b));case"user_phone_number":return l.jsx(c("MWChatBusinessQuickReplyUserPhoneNumber.react"),{onSend:g,quickReply:a,quickReplyVertical:o,userID:p},String(b));case"user_state":return l.jsx(c("MWChatBusinessQuickReplyUserState.react"),{onSend:g,quickReply:a,quickReplyVertical:o,userID:p},String(b));case"user_zip_code":return l.jsx(c("MWChatBusinessQuickReplyUserZipCode.react"),{onSend:g,quickReply:a,quickReplyVertical:o,userID:p},String(b));default:return null}},b[15]=p,b[16]=g,b[17]=o,b[18]=q):q=b[18];q=e.map(q);b[10]=p;b[11]=e;b[12]=g;b[13]=o;b[14]=q}else q=b[14];b[19]!==a||b[20]!==q?(e=l.jsx("div",babelHelpers["extends"]({},i,{children:l.jsx(c("CometScrollableArea.react"),{horizontal:!0,children:l.jsx("div",babelHelpers["extends"]({},a,{children:q}))})})),b[19]=a,b[20]=q,b[21]=e):e=b[21];return e}g["default"]=a}),98);
__d("MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9509206792434382"}),null);
__d("MWChatCustomerFeedbackFormDataQuery.graphql",["MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null};c=[{alias:null,args:[{kind:"Variable",name:"form_id",variableName:"formID"}],concreteType:"MessengerFeedbackFormDataResult",kind:"LinkedField",name:"messenger_feedback_form_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"form_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"page_id",storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedbackBusinessPrivacyObject",kind:"LinkedField",name:"privacy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedbackFormScreenObject",kind:"LinkedField",name:"first_screen",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerFeedbackQuestionObject",kind:"LinkedField",name:"feedback_questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_default_title",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"score_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score_option",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"left_score_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"right_score_label",storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedBackQuestionFollowup",kind:"LinkedField",name:"follow_up",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"placeholder",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatCustomerFeedbackFormDataQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatCustomerFeedbackFormDataQuery",selections:c},params:{id:b("MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation"),metadata:{},name:"MWChatCustomerFeedbackFormDataQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatCustomerFeedbackFormDataQuery",["CometRelay","MWChatCustomerFeedbackFormDataQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){a&&e({firstScreen:a.messenger_feedback_form_data.first_screen,formId:a.messenger_feedback_form_data.form_id,pageId:a.messenger_feedback_form_data.page_id,privacy:a.messenger_feedback_form_data.privacy})});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatCustomerFeedbackFormDataQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98);
__d("MWChatCustomerFeedbackStateQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8999715756805121"}),null);
__d("MWChatCustomerFeedbackStateQuery.graphql",["MWChatCustomerFeedbackStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerFeedbackFormStateQueryObject",kind:"LinkedField",name:"messenger_feedback_form_state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"form_state",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatCustomerFeedbackStateQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatCustomerFeedbackStateQuery",selections:c},params:{id:b("MWChatCustomerFeedbackStateQuery_facebookRelayOperation"),metadata:{},name:"MWChatCustomerFeedbackStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatCustomerFeedbackStateQuery",["CometRelay","MWChatCustomerFeedbackStateQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){if(a){e((a=a.messenger_feedback_form_state)==null?void 0:a.form_state)}});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatCustomerFeedbackStateQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98);
__d("MWChatFileIconV2.react",["MDSSvgDocumentCompleteIcon.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){var a=d("react-compiler-runtime").c(1),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=i.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 xgx9qek x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xl56j7k x1iorvi4 x150jy0e xjkvuk6 x1e558r4"},{children:i.jsx(c("MDSSvgDocumentCompleteIcon.react"),{color:"primary",size:24})})),a[0]=b):b=a[0];return b}g["default"]=a}),98);
__d("MWChatFilePreProcessingErrorToast.react",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a={body:h._(/*BTDS*/"__JHASH__rp1B2ks3qwV__JHASH__"),title:h._(/*BTDS*/"__JHASH__xqsOpg5ebEg__JHASH__")};g.invalidFileFormat=a}),226);
__d("MWChatFilePreview.react",["fbt","FDSImageCover.react","MWChatFileIconV2.react","MWXCircleButton.react","MWXIconExclamationMarkCircle","MWXIconRefreshAlt","MWXIconStrict.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={imageCover:{maxHeight:"x138jeol",objectPosition:"x8ozjh4",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(11),e=a.attachment,f=a.fileName,g=a.isError,i=a.isRetryableError,l=a.onRetry;a=a.withPreview;if(b[0]!==e){var m;m=(m=e)!=null?m:{};b[0]=e;b[1]=m}else m=b[1];e=m;m=e.previewUrl;if(g===!0){b[2]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x1ye3gou"},g={className:"x6s0dn4 xgx9qek x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 x10w6t97 xl56j7k x1td3qas"},b[2]=e,b[3]=g):(e=b[2],g=b[3]);b[4]!==i||b[5]!==l?(e=j.jsx("div",babelHelpers["extends"]({},e,{children:j.jsx("div",babelHelpers["extends"]({},g,{children:i===!0?j.jsx(c("MWXCircleButton.react"),{color:"primary",icon:c("MWXIconRefreshAlt"),label:h._(/*BTDS*/"__JHASH__BGxC_0TtXwE__JHASH__"),onPress:l,size:32,testid:void 0,type:"normal"}):j.jsx("div",{"data-testid":void 0,children:j.jsx(c("MWXIconStrict.react"),{color:"primary",icon:c("MWXIconExclamationMarkCircle"),size:20})})}))})),b[4]=i,b[5]=l,b[6]=e):e=b[6];return e}if(m==null||!a){b[7]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx("div",babelHelpers["extends"]({className:"x1ye3gou"},{children:j.jsx(c("MWChatFileIconV2.react"),{})})),b[7]=g):g=b[7];return g}l=(i=f)!=null?i:"";b[8]!==m||b[9]!==l?(e=j.jsx(c("FDSImageCover.react"),{alt:l,src:m,style:k.imageCover}),b[8]=m,b[9]=l,b[10]=e):e=b[10];return e}g["default"]=a}),226);
__d("MWChatFileUploadErrorDialog.react",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=function(a){return{body:h._(/*BTDS*/"__JHASH__Tr8urrZ1rc1__JHASH__",[h._param("size",a)]),title:h._(/*BTDS*/"__JHASH__GVmFuh2jycz__JHASH__")}};b=function(a){return{body:h._(/*BTDS*/"__JHASH__TAA-hbgGa5n__JHASH__",[h._param("limit",a)]),title:h._(/*BTDS*/"__JHASH__L_Ni3O-TarB__JHASH__")}};c=function(a){return{body:h._(/*BTDS*/"__JHASH__-3D7kzgvAq5__JHASH__",[h._param("limit",a)]),title:h._(/*BTDS*/"__JHASH__syTHdrAlZYC__JHASH__")}};d=function(){return{body:h._(/*BTDS*/"__JHASH__1WylqAbhvtc__JHASH__"),title:h._(/*BTDS*/"__JHASH__hio_8S892IQ__JHASH__")}};g.maxFileSizeExceeded=a;g.maxFilesNumberExceeded=b;g.maxMediaNumberExceeded=c;g.unsupportedFile=d}),226);
__d("MWChatImageInsetShadow.react",["react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={imageShadow:{borderTopColor:"x1pdss0j",borderEndColor:"xtcpoma",borderBottomColor:"x81c4ja",borderStartColor:"x8g6rb3",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",bottom:"x1ey2m1c",boxSizing:"x9f619",end:"xds687c",start:"x17qophe",left:null,right:null,pointerEvents:"x47corl",position:"x10l6tqk",top:"x13vifvy",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(2);a=a.xstyle;var c;b[0]!==a?(c=i.jsx(d("react-strict-dom").html.div,{style:[j.imageShadow,a]}),b[0]=a,b[1]=c):c=b[1];return c}g["default"]=a}),98);
__d("MWChatImageSize",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState;function a(a,b,c){c=d("react-compiler-runtime").c(4);var e=b!=null?b:!1,f=j();b=k();var g=b[0],h=b[1],m;c[0]!==e||c[1]!==a?(b=function(){if(a==null)return;if(f.current==null&&!e){var b=new Image();b.src=a;b.onload=function(){return h({height:b.naturalHeight,width:b.naturalWidth})};f.current=b}return function(){h(l);var a=f.current;if(a==null)return;a.onload=null}},m=[a,e,h],c[0]=e,c[1]=a,c[2]=b,c[3]=m):(b=c[2],m=c[3]);i(b,m);return g}function l(){}g.useImageSize=a}),98);
__d("MWChatPIIFormNuxQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5048028465289521"}),null);
__d("MWChatPIIFormNuxQuery.graphql",["MWChatPIIFormNuxQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"MessengerPIIFormFirstPartyPrivacyObject",kind:"LinkedField",name:"messenger_pii_nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatPIIFormNuxQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatPIIFormNuxQuery",selections:a},params:{id:b("MWChatPIIFormNuxQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormNuxQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("PiiActionFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744182");b=d("FalcoLoggerInternal").create("pii_action_flow",a);e=b;g["default"]=e}),98);
__d("MWChatPIIFormNuxQuery",["CometRelay","MWChatPIIFormNuxQuery.graphql","PiiActionFlowFalcoEvent","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e,f){a=d("CometRelay").fetchQuery(a,j,{}).toPromise().then(function(a){if(a){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_initial_query_success",extra_data:"",form_id:b,page_id:e}});if(a.messenger_pii_nux==null)f({description:"",seen:!0,title:"",url:"",url_text:""});else{var d;f({description:(d=a.messenger_pii_nux.description)!=null?d:"",seen:!1,title:(d=a.messenger_pii_nux.title)!=null?d:"",url:(d=a.messenger_pii_nux.url)!=null?d:"",url_text:(d=a.messenger_pii_nux.url_text)!=null?d:""})}}},function(a){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_initial_query_failure",extra_data:a.message,form_id:b,page_id:e}})});c("promiseDone")(a)},j=h!==void 0?h:h=b("MWChatPIIFormNuxQuery.graphql");a=function(a,b,c,d){i(a,b,c,function(a){return d(a)})};g.fetch=a}),98);
__d("MWChatPIIFormScreenQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5021823607854583"}),null);
__d("MWChatPIIFormScreenQuery.graphql",["MWChatPIIFormScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"},{defaultValue:null,kind:"LocalArgument",name:"screenIndex"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"},{kind:"Variable",name:"screen_index",variableName:"screenIndex"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerPIIFormSingleScreenObject",kind:"LinkedField",name:"messenger_pii_form_single_screen",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerPIIFormScreenObject",kind:"LinkedField",name:"screen",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"screen_title",storageKey:null},{alias:null,args:null,concreteType:"MessengerPIIQuestionObject",kind:"LinkedField",name:"questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"placeholder",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mask",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatPIIFormScreenQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatPIIFormScreenQuery",selections:c},params:{id:b("MWChatPIIFormScreenQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatPIIFormScreenQuery",["CometRelay","MWChatPIIFormScreenQuery.graphql","PiiActionFlowFalcoEvent","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e,f,g){f=d("CometRelay").fetchQuery(f,j,{formID:a,screenIndex:e}).toPromise().then(function(d){if(d){d=d.messenger_pii_form_single_screen.screen;var e=d.questions.map(function(a){return{format:a.format,id:a.id,length:a.length,mask:a.mask,placeholder:a.placeholder,subtitle:a.subtitle,title:a.title,type:a.type}}),f={question_list_size:d.questions.length};c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_single_page_query_success",extra_data:JSON.stringify(f),form_id:a,page_id:b}});g({questions:e,screen_title:d.screen_title})}},function(d){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_single_page_query_failure",extra_data:d.message,form_id:a,page_id:b}})});c("promiseDone")(f)},j=h!==void 0?h:h=b("MWChatPIIFormScreenQuery.graphql");a=function(a,b,c,d,e){i(a,b,c,d,function(a){return e(a)})};g.fetch=a}),98);
__d("MWChatPIIFormStateQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4923666631045015"}),null);
__d("MWChatPIIFormStateQuery.graphql",["MWChatPIIFormStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerPIIFormStateQueryObject",kind:"LinkedField",name:"messenger_pii_form_state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatPIIFormStateQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatPIIFormStateQuery",selections:c},params:{id:b("MWChatPIIFormStateQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatPIIFormStateQuery",["CometRelay","MWChatPIIFormStateQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){a&&e(a.messenger_pii_form_state.state)});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatPIIFormStateQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98);
__d("MWChatReceiptDataQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7735392359808092"}),null);
__d("MWChatReceiptDataQuery.graphql",["MWChatReceiptDataQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"messageID"},c={defaultValue:null,kind:"LocalArgument",name:"receiptID"},d=[{alias:null,args:[{kind:"Variable",name:"message_id",variableName:"messageID"},{kind:"Variable",name:"receipt_id",variableName:"receiptID"}],concreteType:"ReceiptDataResult",kind:"LinkedField",name:"receipt_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"recipient_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"merchant_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_method",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cancellation_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_1",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_2",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_3",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_cost",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_tax",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_cost",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_time",storageKey:null},{alias:null,args:null,concreteType:"ReceiptItem",kind:"LinkedField",name:"items",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumb_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quantity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Adjustment",kind:"LinkedField",name:"adjustments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"adjustment_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_adjustment_amount",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MWChatReceiptDataQuery",selections:d,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MWChatReceiptDataQuery",selections:d},params:{id:b("MWChatReceiptDataQuery_facebookRelayOperation"),metadata:{},name:"MWChatReceiptDataQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWChatReceiptDataQuery",["CometRelay","CometRelayEnvironment","MWChatReceiptDataQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a,b,e){c("promiseDone")(d("CometRelay").fetchQuery(c("CometRelayEnvironment"),i,{messageID:b,receiptID:a}).toPromise().then(function(a){if((a==null?void 0:a.receipt_data)!=null){a=a.receipt_data;var b=a.items?a.items.map(function(a){return{description:a.description,name:a.name,price:a.price,quantity:a.quantity,thumb_url:a.thumb_url}}):[],c=a.adjustments?a.adjustments.map(function(a){return{adjustment_type:a.adjustment_type,display_adjustment_amount:a.display_adjustment_amount}}):[];e({address_line_1:a.address_line_1,address_line_2:a.address_line_2,address_line_3:a.address_line_3,adjustments:c,cancellation_url:a.cancellation_url,items:b,merchant_name:a.merchant_name,order_id:a.order_id,order_time:a.order_time,order_url:a.order_url,payment_method:a.payment_method,recipient_name:a.recipient_name,shipping_cost:a.shipping_cost,subtotal:a.subtotal,total_cost:a.total_cost,total_tax:a.total_tax})}}))};var i=h!==void 0?h:h=b("MWChatReceiptDataQuery.graphql");g.fetch=a}),98);
__d("MWChatSingleSeenHead.react",["MDSGlimmer.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(5),e=a.altText,f=a.head,g=a.tabIndex;a=a.xstyle;var h;b[0]!==e||b[1]!==f.imageSrc||b[2]!==g||b[3]!==a?(h=f.imageSrc===""?i.jsx(c("MDSGlimmer.react"),{index:1,xstyle:j.profilePlaceholder}):i.jsx(d("react-strict-dom").html.img,{alt:e,"data-testid":void 0,height:14,src:f.imageSrc,style:[j.image,a],tabIndex:g,width:14}),b[0]=e,b[1]=f.imageSrc,b[2]=g,b[3]=a,b[4]=h):h=b[4];return h}var j={image:{borderTopStartRadius:"x1rcc7c0",borderTopEndRadius:"xbtbmw4",borderBottomEndRadius:"x1lie4ck",borderBottomStartRadius:"x16hxpj1",height:"x1v9usgg",objectFit:"xl1xv1r",userSelect:"x87ps6o",verticalAlign:"x11njtxf",width:"x6jxa94",$$css:!0},profilePlaceholder:{borderTopStartRadius:"x1rcc7c0",borderTopEndRadius:"xbtbmw4",borderBottomEndRadius:"x1lie4ck",borderBottomStartRadius:"x16hxpj1",height:"x1v9usgg",verticalAlign:"x3ajldb",width:"x6jxa94",$$css:!0}};g["default"]=a}),98);
__d("MWChatSingleSeenHeadRow.react",["MWChatSingleSeenHead.react","MWLSThreadDisplayContext","MWXTooltip.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={mask:{backgroundColor:"x1eb86dx",$$css:!0},root:{display:"x78zum5",justifyContent:"x13a6bvl",$$css:!0},singleSeenHeadRow:{display:"x1jfb8zj",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(14),e=a.head,f=a.text;a=a.xstyle;var g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),h;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(h=[j.root,j.mask],b[0]=h):h=b[0];var k;b[1]!==a?(k=[j.singleSeenHeadRow,a],b[1]=a,b[2]=k):k=b[2];a=g==="Inbox"?"middle":"end";b[3]!==e||b[4]!==f?(g=i.jsx(c("MWChatSingleSeenHead.react"),{altText:f,head:e,tabIndex:0}),b[3]=e,b[4]=f,b[5]=g):g=b[5];var l;b[6]!==e.id||b[7]!==a||b[8]!==g||b[9]!==f?(l=i.jsx(c("MWXTooltip.react"),{align:a,forceInlineDisplay:!0,position:"above",tooltip:f,children:g},e.id),b[6]=e.id,b[7]=a,b[8]=g,b[9]=f,b[10]=l):l=b[10];b[11]!==k||b[12]!==l?(e=i.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,style:h,children:i.jsx(d("react-strict-dom").html.div,{style:k,children:l})}),b[11]=k,b[12]=l,b[13]=e):e=b[13];return e}g["default"]=a}),98);
__d("MWChatStrikethroughText.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");function a(a){var b=d("react-compiler-runtime").c(2);a=a.children;var c;b[0]!==a?(c=i.jsx("s",{children:a}),b[0]=a,b[1]=c):c=b[1];return c}g["default"]=a}),98);
__d("MessageMarkdownCodeblockLanguages",[],(function(a,b,c,d,e,f){a=Object.freeze({ASP:"asp",ASPX:"aspx",BASH:"bash",C:"c",CLJ:"clj",CLJC:"cljc",CLJX:"cljx",CLOJURE:"clojure",COFFEESCRIPT:"coffeescript",CPLUSPLUS:"cplusplus",CPP:"cpp",CPP2:"c++",CQL:"cql",CS:"cs",CSHARP:"csharp",CSS:"css",CURL:"curl",D:"d",DART:"dart",DIFF:"diff",DOCKERFILE:"dockerfile",ECMASCRIPT:"ecmascript",ERL:"erl",ERLANG:"erlang",GO:"go",GQL:"gql",GRADLE:"gradle",GRAPHQL:"graphql",GROOVY:"groovy",HANDLEBARS:"handlebars",HBS:"hbs",HTML:"html",HTTP:"http",JAVA:"java",JAVASCRIPT:"javascript",JL:"jl",JRUBY:"jruby",JS:"js",JSON:"json",JSX:"jsx",JULIA:"julia",KOTLIN:"kotlin",KT:"kt",LESS:"less",LIQUID:"liquid",LUA:"lua",MACRUBY:"macruby",MARKDOWN:"markdown",ML:"ml",MSSQL:"mssql",MYSQL:"mysql",NODE:"node",OBJC:"objc",OBJCPP:"objcpp",OBJCPP2:"objc++",OBJECTIVEC:"objectivec",OBJECTIVECPLUSPLUS:"objectivecplusplus",OBJECTIVECPP:"objectivecpp",OCAML:"ocaml",PERL:"perl",PGSQL:"pgsql",PHP:"php",PL:"pl",PLSQL:"plsql",POSTGRES:"postgres",POSTGRESQL:"postgresql",POWERSHELL:"powershell",PS1:"ps1",PY:"py",PYTHON:"python",R:"r",RAKE:"rake",RB:"rb",RBX:"rbx",RS:"rs",RUBY:"ruby",RUST:"rust",SASS:"sass",SCALA:"scala",SCSS:"scss",SH:"sh",SHELL:"shell",SOL:"sol",SOLIDITY:"solidity",SQL:"sql",SQLITE:"sqlite",STYL:"styl",STYLUS:"stylus",SWIFT:"swift",TS:"ts",TYPESCRIPT:"typescript",XHTML:"xhtml",XML:"xml",YAML:"yaml",YML:"yml",ZSH:"zsh"});f["default"]=a}),66);
__d("MessengerFormattingConfig",[],(function(a,b,c,d,e,f){a=Object.freeze({boldConfig:{pattern:"([\\s_~'\"(]|^)\\*(\\S(?:.*?\\S)??)\\*(?=[\\s_~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s_~'\"(]|^)\\*(?:\\S(?:.*?\\S)??)\\*(?=[\\s_~,.;:!?'\")]|$)"},italicConfig:{pattern:"([\\s*~'\"(]|^)_(\\S(?:.*?\\S)??)_(?=[\\s*~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*~'\"(]|^)_(?:\\S(?:.*?\\S)??)_(?=[\\s*~,.;:!?'\")]|$)"},strikethroughConfig:{pattern:"([\\s*_'\"(]|^)~(\\S(?:.*?\\S)??)~(?=[\\s*_,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*_'\"(]|^)~(?:\\S(?:.*?\\S)??)~(?=[\\s*_,.;:!?'\")]|$)"},codeConfig:{pattern:"([\\s*_~'\"(]|^)`([^`\\r\\n](?:.*?[^`\\r\\n])??)`(?=[\\s\\w*_~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*_~'\"(]|^)`(?:[^`\\r\\n](?:.*?[^`\\r\\n])??)`(?=[\\s\\w*_~,.;:!?'\")]|$)"},codeBlockConfig:{pattern:"(```)([\\s\\S]+?)```",nonCapturingPattern:"(```)([\\s\\S]+?)```"},codeBlockV2Config:{pattern:"(`{3,})(?:(?:((.*?)(?:\\r\\n?|\\n|\\u2028))([\\s\\S]*?))|(.+?))\\1\\s*?(?:\\r\\n?|\\n|\\u2028|$)",nonCapturingPattern:"(`{3,})([\\s\\S]+?)\\1\\s*((\\r\\n)|\\r|\\n|\\u2028|$)"},blockQuoteConfig:{pattern:"(^>>> ?)((.|(\\r\\n)|\\r|\\n)*?\\S(.|(\\r\\n)|\\r|\\n)*?)^<<<\\s*?((\\r\\n)|\\r|\\n|$)",nonCapturingPattern:"(^>>> ?)((.|(\\r\\n)|\\r|\\n)*?\\S(.|(\\r\\n)|\\r|\\n)*?)^<<<\\s*((\\r\\n)|\\r|\\n|$)"},multipleInlineBlockQuoteConfig:{pattern:"((^> )(.*\\S.*)((\\r\\n)|\\r|\\n)?)(^> ?(.*)((\\r\\n)|\\r|\\n)?)*",nonCapturingPattern:"(^> (.*\\S.*)((\\r\\n)|\\r|\\n)?)(^> ?(.*)((\\r\\n)|\\r|\\n)?)*"},singleInlineBlockQuoteConfig:{pattern:"(^> ?)(.*?$)",nonCapturingPattern:"^> ?(.*?$)"},linkConfig:{pattern:"\\[([^\\[\\]]+)\\]\\(((?:https?|ftp):\\/\\/(-\\.)?(?:[^\\s\\/?\\.#-]+\\.?)+(?:\\/[^\\s]*)?)\\)",nonCapturingPattern:"\\[([^\\[\\]]+)\\]\\(((?:https?|ftp):\\/\\/(-\\.)?(?:[^\\s\\/?\\.#-]+\\.?)+(?:\\/[^\\s]*)?)\\)"},bulletedList:{pattern:"(^[-*+])\\s+(.*)",nonCapturingPattern:"(^[-*+])\\s+(.*)"},numberedList:{pattern:"(^(\\d)+\\.)\\s+(.*)",nonCapturingPattern:"(^\\d+\\.)\\s+(.*)"}});f["default"]=a}),66);
__d("MWChatTextFormattingUtils",["$InternalEnum","MessageMarkdownCodeblockLanguages","MessengerFormattingConfig","UnicodeUtils","justknobx","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("$InternalEnum").Mirrored(["CodeBlock","InlineCode","BlockQuote","InlineQuote","Bold","Italics","StrikeThrough","Link","BulletedList","NumberedList"]),j=new Set(Object.values(c("MessageMarkdownCodeblockLanguages"))),k=[i.CodeBlock,i.BlockQuote,i.InlineQuote,i.InlineCode,i.Bold,i.Italics,i.StrikeThrough];function l(a){var b,d=function(a){return a[2]},e=function(a){return new Map()},f=1,g=!0,h=function(a){return!0};switch(a){case i.Bold:b=c("MessengerFormattingConfig").boldConfig.pattern;break;case i.Italics:b=c("MessengerFormattingConfig").italicConfig.pattern;break;case i.StrikeThrough:b=c("MessengerFormattingConfig").strikethroughConfig.pattern;break;case i.InlineCode:b=c("MessengerFormattingConfig").codeConfig.pattern;break;case i.BlockQuote:b=c("MessengerFormattingConfig").blockQuoteConfig.pattern;g=!1;break;case i.InlineQuote:h=function(a){return a.trim()!==">"};b=c("MessengerFormattingConfig").singleInlineBlockQuoteConfig.pattern;g=!1;break;case i.CodeBlock:d=function(a){var b,c;b=((b=a[3])!=null?b:"").trim().toLowerCase();c=(c=a[4])!=null?c:a[5];a=(a=a[2])!=null?a:"";return b===""||j.has(b)?c:a+c};b=c("MessengerFormattingConfig").codeBlockV2Config.pattern;g=!1;break;case i.Link:d=function(a){return a[1]};e=function(a){return new Map([["link",a[2]]])};b=c("MessengerFormattingConfig").linkConfig.pattern;g=!1;break;case i.BulletedList:b=c("MessengerFormattingConfig").bulletedList.pattern;g=!1;break;case i.NumberedList:b=c("MessengerFormattingConfig").numberedList.pattern;g=!1;d=function(a){return a[3]};e=function(a){return new Map([["index",a[2]]])};break}if(b==null)throw c("unrecoverableViolation")("No formatting config found for given format","messenger_comet");return{getCleanText:d,getExtraData:e,hasClosingTag:g,regExp:new RegExp(b,"gm"),tagIndex:f,validator:h}}function a(a,b,e){b===void 0&&(b=!1);e===void 0&&(e=!1);var f=[],g=k;b&&(g=g.concat(i.Link));e&&(g=g.concat([i.BulletedList,i.NumberedList]));g.forEach(function(b){var e=l(b),g=e.getCleanText,i=e.getExtraData,j=e.hasClosingTag,k=e.regExp,m=e.tagIndex;e=e.validator;var n;if(!e(a))return;e=function(){if(n==null)return"break";var e=(h||(h=d("UnicodeUtils"))).substr(a,0,n.index);e=e.length-h.strlen(e);var k=n.index-e,l=h.strlen(n[0]);j&&(k+=n[m].length,l-=n[m].length);e=function(a){var b=k+l,c=a.offset+a.length;return b>a.offset&&k<c};var o=g(n),p=i(n);if(!f.find(e)){if(f.length>0){e=f[f.length-1];if(e.entity.format===b&&e.offset+e.length+1===k){e.entity.text+="\n"+o;e.length+=l+1;return"continue"}}e=c("justknobx")._("3420");e=e&&((e=(e=p.get("link"))==null?void 0:e.includes("from_ads_ai=1"))!=null?e:!1);f.push({entity:{__typename:e?"AdsAILinkFormatting":"MessengerTextFormatting",extraData:p,format:b,text:o},length:l,offset:k})}};_loop:while((n=k.exec(a))!=null){var o=e();switch(o){case"break":break _loop;case"continue":continue}}});return f}g.MessengerTextFormattingEntity=i;g.getFormattingRanges=a}),98);
__d("MWXMessageBlockQuote.react",["react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={forwarded:{height:"x5yr21d",marginTop:"x1gslohp",marginEnd:"x11i5rnm",marginBottom:"x12nagc",marginStart:"x1mh8g0r",paddingStart:"x1ye3gou",position:"x1n2onr6",whiteSpace:"x126k92a",wordWrap:"x1vvkbs",$$css:!0},fullLine:{bottom:"x19ip775",top:"xnfr1j",$$css:!0},line:{borderTopStartRadius:"x13zp6kq",borderTopEndRadius:"x1mcfq15",borderBottomEndRadius:"xrosliz",borderBottomStartRadius:"x1wb7cse",bottom:"xbfrwjf",start:"x17qophe",left:null,right:null,position:"x10l6tqk",top:"xndqk7f",width:"xfo62xy",$$css:!0},lineIncomingColor:{backgroundColor:"xtyxhl7",$$css:!0},lineOutgoingColor:{backgroundColor:"xppy7ju",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(9),c=a.children,e=a.fullLine,f=a.outgoing;a=a.xstyle;e=e===void 0?!1:e;f=f===void 0?!0:f;var g;b[0]!==a?(g=[j.forwarded,a],b[0]=a,b[1]=g):g=b[1];a=e?j.fullLine:void 0;e=f?j.lineOutgoingColor:j.lineIncomingColor;b[2]!==a||b[3]!==e?(f=i.jsx(d("react-strict-dom").html.div,{style:[j.line,a,e]}),b[2]=a,b[3]=e,b[4]=f):f=b[4];b[5]!==c||b[6]!==g||b[7]!==f?(a=i.jsxs(d("react-strict-dom").html.blockquote,{style:g,children:[f,c]}),b[5]=c,b[6]=g,b[7]=f,b[8]=a):a=b[8];return a}g["default"]=a}),98);
__d("MWChatTextFormatting",["MWChatStrikethroughText.react","MWChatTextFormattingUtils","MWXLink.react","MWXMessageBlockQuote.react","MWXText.react","react","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={codeBlock:{backgroundColor:"xmjcpbm",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",whiteSpace:"x126k92a",$$css:!0},codeInline:{$$css:!0}};function k(a,b){switch(b.format){case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.Bold:return i.jsx(d("react-strict-dom").html.b,{children:b.text});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.Italics:return i.jsx(d("react-strict-dom").html.i,{children:b.text});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.StrikeThrough:return i.jsx(c("MWChatStrikethroughText.react"),{children:b.text});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.CodeBlock:return i.jsx(d("react-strict-dom").html.div,{style:j.codeBlock,children:i.jsx(c("MWXText.react"),{type:"body4",children:i.jsx(d("react-strict-dom").html.code,{children:b.text})})});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.InlineCode:return i.jsx(d("react-strict-dom").html.code,{style:j.codeInline,children:b.text});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.BlockQuote:case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.InlineQuote:return i.jsx(c("MWXMessageBlockQuote.react"),{outgoing:!0,children:b.text});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.Link:return i.jsx(c("MWXLink.react"),{href:b.extraData.get("link"),rel:"external",target:"_blank",children:i.jsx("u",{children:b.text})});case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.BulletedList:return i.jsx("ul",babelHelpers["extends"]({className:"x1rg5ohu xtaz4m5 xdj266r x11i5rnm xat24cr x1mh8g0r xnc8h47"},{children:b.text.split("\n").map(function(a,b){return i.jsx("li",{children:a},b)})}));case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.NumberedList:return i.jsx("ol",babelHelpers["extends"]({className:"x1rg5ohu x3yw8vx xdj266r x11i5rnm xat24cr x1mh8g0r xnc8h47"},{start:b.extraData.get("index"),children:b.text.split("\n").map(function(a,b){return i.jsx("li",{children:a},b)})}))}}k.displayName=k.name+" [from "+f.id+"]";function a(a,b){switch(b.format){case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.BlockQuote:case d("MWChatTextFormattingUtils").MessengerTextFormattingEntity.InlineQuote:return i.jsx(c("MWXMessageBlockQuote.react"),{outgoing:!1,children:b.text});default:return k(a,b)}}a.displayName=a.name+" [from "+f.id+"]";g.messageRenderer=k;g.messageIncomingRenderer=a}),98);
__d("MWLSPostbackCtaHandler",["AdsMessengerContext.react","Int64Hooks","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","MWPActor.react","MWThreadKey.react","MessagePowerUp","promiseDone","react","react-compiler-runtime","useLSMessagingInitiatingSource","useLSMessagingSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useContext;function a(){var a=d("react-compiler-runtime").c(8),b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor(),g=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),j=c("useLSMessagingInitiatingSource")(),l=c("useLSMessagingSource")(),m=k(d("AdsMessengerContext.react").AdsMessengerContext),n=m.onSendPostback,o;a[0]!==e||a[1]!==j||a[2]!==l||a[3]!==n||a[4]!==b||a[5]!==g?(m=function(a,h){if(n!=null)return c("promiseDone")(n(a,h));var k=d("LSThreadAttributionTypeUtil").getSource(g,l);c("promiseDone")(b.runInTransaction(function(b){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(b),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,initiating_source:(b=j)!=null?b:void 0,mark_read:!0,platform_token:a,power_up_style:(i||(i=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:i.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:i.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:k}),mailboxType:i.ofNumber(c("LSMailboxType").MESSENGER),senderId:e,snippet:h,text:h,threadKey:g,threadType:i.ofNumber(1)})},"readwrite",void 0,void 0,f.id+":50"))},o=[b,l,j,e,g,n],a[0]=e,a[1]=j,a[2]=l,a[3]=n,a[4]=b,a[5]=g,a[6]=m,a[7]=o):(m=a[6],o=a[7]);return d("Int64Hooks").useCallbackInt64(m,o)}g.usePostbackCtaHandler=a}),98);
__d("MWP2PPaymentTransactionInformationVerify",["JSResourceForInteraction","XP2PVerificationDialogBaseControllerRouteBuilder","gkx","nullthrows","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometCompatModal.react").__setRef("MWP2PPaymentTransactionInformationVerify")),b=a[0];a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometP2PPaymentIDVFlow.react").__setRef("MWP2PPaymentTransactionInformationVerify"));var d=a[0];return i(function(a){a=a.id;if(c("gkx")("22992"))return d({transferId:c("nullthrows")(a)},function(){});else return b({params:{rel:"dialog-post",uri:c("XP2PVerificationDialogBaseControllerRouteBuilder").buildURL({id:c("nullthrows")(a),is_sender_flow:!1})}},function(){})},[b])}g.useP2PPaymentTransactionInformationVerify=a}),98);
__d("ServicesCometLeadFormDialogRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8460785663932128"}),null);
__d("ServicesCometLeadFormDialogRootQuery$Parameters",["ServicesCometLeadFormDialogRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ServicesCometLeadFormDialogRootQuery_facebookRelayOperation"),metadata:{},name:"ServicesCometLeadFormDialogRootQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("ViewFormDetailsModal.entrypoint",["JSResourceForInteraction","ServicesCometLeadFormDialogRootQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{queryRef:{parameters:c("ServicesCometLeadFormDialogRootQuery$Parameters"),variables:{responseID:a.responseID}}}}},root:c("JSResourceForInteraction")("ServicesCometLeadFormDialogRoot.react").__setRef("ViewFormDetailsModal.entrypoint")};g["default"]=a}),98);
__d("commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6107272026057140"}),null);
__d("commitWorkplaceChatBotSubmitFeedbackMutation.graphql",["commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:"results",args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"WorkplaceChatBotSubmitFeedbackResponsePayload",kind:"LinkedField",name:"workplace_chat_bot_submit_feedback",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"commitWorkplaceChatBotSubmitFeedbackMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"commitWorkplaceChatBotSubmitFeedbackMutation",selections:c},params:{id:b("commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation"),metadata:{},name:"commitWorkplaceChatBotSubmitFeedbackMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
__d("commitWorkplaceChatBotSubmitFeedbackMutation",["CometRelay","Promise","commitWorkplaceChatBotSubmitFeedbackMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("commitWorkplaceChatBotSubmitFeedbackMutation.graphql");function a(a){var c=a.action_content_blob,e=a.config;return new(i||(i=b("Promise")))(function(a,b){d("CometRelay").commitMutation(e.environment,{mutation:j,onCompleted:function(b){a((b=b.results)==null?void 0:b.success)},onError:function(a){b(a)},variables:{input:{action_content_blob:c}}})})}g["default"]=a}),98);
__d("createErrorForMAIBALogger",["err"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a instanceof Error)return a;else try{return c("err")((a=JSON.stringify(a))!=null?a:"Unknown error")}catch(a){return c("err")("Unknown error")}}g["default"]=a}),98);
__d("MerchantConfirmOrderDialog.entrypoint",["BizKitBIOOrderDetailActionsQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.orderID;return{queries:{MerchantConfirmOrderQueryReference:{parameters:b("BizKitBIOOrderDetailActionsQuery$Parameters"),variables:{orderID:a}}}}},root:c("JSResourceForInteraction")("MerchantConfirmOrderDialogContainer.react").__setRef("MerchantConfirmOrderDialog.entrypoint")};g["default"]=a}),98);
__d("useMerchantConfirmOrderDialog",["MerchantConfirmOrderDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(3),e;b[0]!==a?(e={orderID:a},b[0]=a,b[1]=e):e=b[1];b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},b[2]=a):a=b[2];return c("useMWXEntryPointDialog")(c("MerchantConfirmOrderDialog.entrypoint"),e,void 0,void 0,a)}g["default"]=a}),98);
__d("useHandleMerchantConfirmOrderDialog",["react","react-compiler-runtime","useMerchantConfirmOrderDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(6),b=j(null),e=b[0],f=b[1];b=j(!1);var g=b[0],h=b[1];b=c("useMerchantConfirmOrderDialog")((b=e)!=null?b:"");var l=b[0],m;a[0]!==g||a[1]!==e||a[2]!==l?(b=function(){if(e!=null&&g){var a=function(){return h(!1)};l({orderID:e},a)}},m=[g,e,l],a[0]=g,a[1]=e,a[2]=l,a[3]=b,a[4]=m):(b=a[3],m=a[4]);i(b,m);a[5]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a){h(k),f(function(){return a})},a[5]=b):b=a[5];m=b;return m}function k(){return!0}g["default"]=a}),98);
__d("useMWChatShowPIIForm",["CometRelay","JSResourceForInteraction","MWChatPIIFormNuxQuery","MWChatPIIFormScreenQuery","MWChatPIIFormStateQuery","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;var i=c("JSResourceForInteraction")("MWChatPIIFormDialog.react").__setRef("useMWChatShowPIIForm");function a(){var a=d("react-compiler-runtime").c(3),b=c("useMWXLazyDialog")(i),e=b[0],f=d("CometRelay").useRelayEnvironment();a[0]!==f||a[1]!==e?(b=function(a){var b=a.color,c=a.currentIndex,g=a.firstScreen,h=a.formId,i=a.numScreens,j=a.pageId;d("MWChatPIIFormStateQuery").fetch(h,f,function(a){d("MWChatPIIFormNuxQuery").fetch(f,h,j,function(k){if(i>1){d("MWChatPIIFormScreenQuery").fetch(h,j,1,f,function(d){return e({color:b,ctaType:null,currentIndex:c,firstScreen:g,formId:h,numScreens:i,nuxData:k,pageId:j,secondScreen:(d=d)!=null?d:void 0,state:a})});return}else return e({color:b,ctaType:null,currentIndex:c,firstScreen:g,formId:h,numScreens:i,nuxData:k,pageId:j,secondScreen:void 0,state:a})})})},a[0]=f,a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("useMWLSMarketplaceXmaCtaHandler",["LSFactory","LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure","MWThreadKey.react","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(i||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b=(h||(h=c("useReStore")))(),e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),g;a[0]!==b||a[1]!==e?(g=function(a,d,g,h){c("promiseDone")(b.runInTransaction(function(b){return c("LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure")(c("LSFactory")(b),{actionType:h,attachmentFbid:d,messageId:a,targetId:g,threadKey:e})},"readwrite",void 0,void 0,f.id+":38"))},a[0]=b,a[1]=e,a[2]=g):g=a[2];return g}g["default"]=a}),98);
__d("useMWLSOpenStaticLocationDialog.react",["I64","JSResourceForInteraction","MWThreadKey.react","Promise","ReQL","ReQLSuspense","promiseDone","react","react-compiler-runtime","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;(k||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(6),e=(i||(i=c("useReStore")))(),g=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),k;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(k=c("JSResourceForInteraction")("MWChatStaticLocationDialog.react").__setRef("useMWLSOpenStaticLocationDialog.react"),a[0]=k):k=a[0];k=c("useMWXLazyDialog")(k);var m=k[0];a[1]!==m||a[2]!==e.tables.attachment_ctas||a[3]!==e.tables.attachments||a[4]!==g?(k=function(a){c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.tables.attachments).getKeyRange(g,a).map(function(a){a=a.defaultCtaId;a=a!=null?a:(j||(j=d("I64"))).zero;a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(e.tables.attachment_ctas).getKeyRange(a),f.id+":40");if(a!=null)return a.nativeUrl})).then(function(a){a=(a=a)!=null?a:"";var c=a.split(","),d=c[0];c=c[1];if(d==null||c==null){var e;a=new URL(a).searchParams;d=(e=a.get("lat"))!=null?e:"";c=(e=a.get("long"))!=null?e:""}m({latitude:d,longitude:c},l);return(h||(h=b("Promise"))).resolve()}))},a[1]=m,a[2]=e.tables.attachment_ctas,a[3]=e.tables.attachments,a[4]=g,a[5]=k):k=a[5];return k}function l(){}g["default"]=a}),98);
__d("P2MAttachBankSlipDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5342426462467736"}),null);
__d("P2MAttachBankSlipDialogQuery$Parameters",["P2MAttachBankSlipDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MAttachBankSlipDialogQuery_facebookRelayOperation"),metadata:{},name:"P2MAttachBankSlipDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("P2MAttachBankSlipDialog.entrypoint",["JSResourceForInteraction","P2MAttachBankSlipDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.orderID;return{queries:{P2MAttachBankSlipDialogQueryReference:{parameters:b("P2MAttachBankSlipDialogQuery$Parameters"),variables:{orderID:a}}}}},root:c("JSResourceForInteraction")("P2MAttachBankSlipDialog.react").__setRef("P2MAttachBankSlipDialog.entrypoint")};g["default"]=a}),98);
__d("useMWUIAttachBankSlipDialog",["P2MAttachBankSlipDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(2),e;b[0]!==a?(e={orderID:a},b[0]=a,b[1]=e):e=b[1];return c("useMWXEntryPointDialog")(c("P2MAttachBankSlipDialog.entrypoint"),e)}g["default"]=a}),98);
__d("useMWLSShowAttachBankSlip",["react","react-compiler-runtime","useMWUIAttachBankSlipDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(6),b=j(null),e=b[0],f=b[1];b=j(!1);var g=b[0],h=b[1];b=c("useMWUIAttachBankSlipDialog")(e);var l=b[0],m;a[0]!==g||a[1]!==e||a[2]!==l?(b=function(){e!=null&&g&&l({orderID:e},function(){return h(!1)})},m=[e,g,l],a[0]=g,a[1]=e,a[2]=l,a[3]=b,a[4]=m):(b=a[3],m=a[4]);i(b,m);a[5]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a){h(k);return f(function(){return a})},a[5]=b):b=a[5];m=b;return m}function k(){return!0}g["default"]=a}),98);
__d("useMWUIECPCheckoutDialog",["FBP2MECPCheckoutDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){var f=d("react-compiler-runtime").c(4),g;f[0]!==a||f[1]!==b||f[2]!==e?(g={entrypoint:a,orderID:b,pageID:e},f[0]=a,f[1]=b,f[2]=e,f[3]=g):g=f[3];return c("useMWXEntryPointDialog")(c("FBP2MECPCheckoutDialog.entrypoint"),g)}g["default"]=a}),98);
__d("useMWLSShowECPCheckout",["react","react-compiler-runtime","useMWUIECPCheckoutDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(8),b=j(""),e=b[0],f=b[1];b=j("");var g=b[0],h=b[1];b=j("");var l=b[0],m=b[1];b=j(!1);var n=b[0],o=b[1];b=c("useMWUIECPCheckoutDialog")(l,e,g);var p=b[0],q;a[0]!==l||a[1]!==n||a[2]!==e||a[3]!==g||a[4]!==p?(b=function(){if(e!=null&&n){p({entrypoint:l,orderID:e,pageID:g},function(){return o(!1)});return}},q=[l,e,g,n,p],a[0]=l,a[1]=n,a[2]=e,a[3]=g,a[4]=p,a[5]=b,a[6]=q):(b=a[5],q=a[6]);i(b,q);a[7]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a,b,c){o(k),f(function(){var a;return(a=b)!=null?a:""}),h(function(){return c}),m(function(){return a})},a[7]=b):b=a[7];q=b;return q}function k(){return!0}g["default"]=a}),98);
__d("useMWLSShowMemberRequest",["GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint","GroupsCometAdmodChatsReviewDialog.entrypoint","WebPixelRatio","react","react-compiler-runtime","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b=c("useCometDynamicEntryPointDialog")(c("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint")),e=c("useCometDynamicEntryPointDialog")(c("GroupsCometAdmodChatsReviewDialog.entrypoint")),f;a[0]!==b||a[1]!==e?(f=function(a,c,f,g){if(a==null)return;g!=null&&g!=="0"?b({routeProps:{adminActivityID:g,groupID:c,isManagementActivityLogTargetProfilePlus:!1}},{activityLogTarget:"Group",groupID:c}):e({groupID:c,profileID:f,scale:d("WebPixelRatio").get()},{})},a[0]=b,a[1]=e,a[2]=f):f=a[2];return f}g["default"]=a}),98);
__d("P2MOffsiteBankTransferDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24068482096086472"}),null);
__d("P2MOffsiteBankTransferDialogQuery$Parameters",["P2MOffsiteBankTransferDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MOffsiteBankTransferDialogQuery_facebookRelayOperation"),metadata:{},name:"P2MOffsiteBankTransferDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("P2MOffsiteBankTransferDialog.entrypoint",["JSResourceForInteraction","P2MOffsiteBankTransferDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.orderID;return{queries:{P2MOffsiteBankTransferDialogQueryReference:{parameters:b("P2MOffsiteBankTransferDialogQuery$Parameters"),variables:{input:{invoice_id:a}}}}}},root:c("JSResourceForInteraction")("P2MOffsiteBankTransferDialog.react").__setRef("P2MOffsiteBankTransferDialog.entrypoint")};g["default"]=a}),98);
__d("useMWUIOffsiteBankTransferDialog",["P2MOffsiteBankTransferDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(2),e;b[0]!==a?(e={orderID:a},b[0]=a,b[1]=e):e=b[1];return c("useMWXEntryPointDialog")(c("P2MOffsiteBankTransferDialog.entrypoint"),e)}g["default"]=a}),98);
__d("useMWLSShowOffsiteBankTransfer",["react","react-compiler-runtime","useMWUIOffsiteBankTransferDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(6),b=j(null),e=b[0],f=b[1];b=j(!1);var g=b[0],h=b[1];b=c("useMWUIOffsiteBankTransferDialog")(e);var l=b[0],m;a[0]!==g||a[1]!==e||a[2]!==l?(b=function(){e!=null&&g&&l({orderID:e},function(){return h(!1)})},m=[e,g,l],a[0]=g,a[1]=e,a[2]=l,a[3]=b,a[4]=m):(b=a[3],m=a[4]);i(b,m);a[5]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a){h(k);return f(function(){return a})},a[5]=b):b=a[5];m=b;return m}function k(){return!0}g["default"]=a}),98);
__d("P2MInvoicerAndConsumerSwitcherQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6822387771217384"}),null);
__d("P2MInvoicerAndConsumerSwitcherQuery$Parameters",["P2MInvoicerAndConsumerSwitcherQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MInvoicerAndConsumerSwitcherQuery_facebookRelayOperation"),metadata:{},name:"P2MInvoicerAndConsumerSwitcherQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("P2MOrderDetailDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="28860668770215127"}),null);
__d("P2MOrderDetailDialogQuery$Parameters",["P2MOrderDetailDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MOrderDetailDialogQuery_facebookRelayOperation"),metadata:{live:{polling_interval:1e4}},name:"P2MOrderDetailDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("P2MOrderDetailDialog.entrypoint",["JSResourceForInteraction","P2MInvoicerAndConsumerSwitcherQuery$Parameters","P2MOrderDetailDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.orderID;return{queries:{P2MInvoicerAndConsumerSwitcherQueryReference:{parameters:b("P2MInvoicerAndConsumerSwitcherQuery$Parameters"),variables:{orderID:a}},P2MOrderDetailDialogQueryReference:{parameters:b("P2MOrderDetailDialogQuery$Parameters"),variables:{orderID:a}}}}},root:c("JSResourceForInteraction")("P2MOrderDetailDialogContainer.react").__setRef("P2MOrderDetailDialog.entrypoint")};g["default"]=a}),98);
__d("useMWUIOrderDetailsDialog",["P2MOrderDetailDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(3),e;b[0]!==a?(e={orderID:a},b[0]=a,b[1]=e):e=b[1];b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},b[2]=a):a=b[2];return c("useMWXEntryPointDialog")(c("P2MOrderDetailDialog.entrypoint"),e,void 0,void 0,a)}g["default"]=a}),98);
__d("useMWLSShowOrderDetails",["InteractionTracing","qpl","react","react-compiler-runtime","useMWUIOrderDetailsDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(6),b=j(null),e=b[0],f=b[1];b=j(!1);var g=b[0],h=b[1];b=c("useMWUIOrderDetailsDialog")(e);var m=b[0],n;a[0]!==g||a[1]!==e||a[2]!==m?(b=function(){if(e!=null&&g){var a=c("InteractionTracing").startInteraction({interactionClass:"fast",qplEvent:c("qpl")._(341848280,"867"),tracePolicy:"ctxo_performance.orderDetails.v2",traceType:"INTERACTION"});m({interactionID:a,orderID:e},function(){h(!1),c("InteractionTracing").getPendingInteractions().forEach(l)})}},n=[e,g,m],a[0]=g,a[1]=e,a[2]=m,a[3]=b,a[4]=n):(b=a[3],n=a[4]);i(b,n);a[5]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a){h(k);return f(function(){return a})},a[5]=b):b=a[5];n=b;return n}function k(){return!0}function l(a){var b;((b=a.getTrace())==null?void 0:b.tracePolicy)==="ctxo_performance.orderDetails.v2"&&a.cancelTrace("[Manual Cancel] Dialog Closed",!0)}g["default"]=a}),98);
__d("useMWUIPaymentDetailsDialog",["FBPayHubTransactionDetailDialog.entrypoint","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(2),e;b[0]!==a?(e={transactionID:a},b[0]=a,b[1]=e):e=b[1];return c("useMWXEntryPointDialog")(c("FBPayHubTransactionDetailDialog.entrypoint"),e)}g["default"]=a}),98);
__d("useMWLSShowPaymentDetails",["fbt","LSIntEnum","MWLSDatabaseLazySync","promiseDone","react","react-compiler-runtime","useMWUIPaymentDetailsDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;b=i||d("react");var k=b.useEffect;b.useMemo;var l=b.useState;function a(){var a=d("react-compiler-runtime").c(8),b=l(null),e=b[0],f=b[1];b=l(!1);var g=b[0],i=b[1];b=c("useMWUIPaymentDetailsDialog")(e);var n=b[0];a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=(j||(j=d("LSIntEnum"))).ofNumber(15),a[0]=b):b=a[0];var o=d("MWLSDatabaseLazySync").useSync(b),p;a[1]!==g||a[2]!==n||a[3]!==e?(b=function(){e!=null&&g&&n({title:h._(/*BTDS*/"__JHASH__NIyxBo8HYXZ__JHASH__"),transactionID:e},function(){return i(!1)})},p=[e,g,n],a[1]=g,a[2]=n,a[3]=e,a[4]=b,a[5]=p):(b=a[4],p=a[5]);k(b,p);a[6]!==o?(b=function(a){c("promiseDone")(o());i(m);return f(function(){return a})},a[6]=o,a[7]=b):b=a[7];p=b;return p}function m(){return!0}g["default"]=a}),226);
__d("useMWUIPendingPostDialog",["GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint","GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint","WebPixelRatio","react-compiler-runtime","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,f,g){a=d("react-compiler-runtime").c(8);var h;a[0]!==g||a[1]!==b?(h={routeProps:{adminActivityID:g,groupID:b,isManagementActivityLogTargetProfilePlus:!1}},a[0]=g,a[1]=b,a[2]=h):h=a[2];h=c("useMWXEntryPointDialog")(c("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint"),h);var i;a[3]===Symbol["for"]("react.memo_cache_sentinel")?(i=d("WebPixelRatio").get(),a[3]=i):i=a[3];a[4]!==e||a[5]!==b||a[6]!==f?(i={authorID:e,groupID:b,postID:f,scale:i},a[4]=e,a[5]=b,a[6]=f,a[7]=i):i=a[7];e=c("useMWXEntryPointDialog")(c("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint"),i);return g!=null&&g!=="0"?h:e}g["default"]=a}),98);
__d("useMWLSShowPendingPost",["react","react-compiler-runtime","useMWUIPendingPostDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;var j=b.useState;function a(){var a=d("react-compiler-runtime").c(9),b=j(null),e=b[0],f=b[1];b=j("");var g=b[0],h=b[1];b=j("");var k=b[0],l=b[1];b=j("");var m=b[0],n=b[1];b=j("");var o=b[0],p=b[1];b=j(!1);var q=b[0],r=b[1];b=c("useMWUIPendingPostDialog")(e,g,k,m,o);var s=b[0];a[0]!==g||a[1]!==q||a[2]!==s||a[3]!==e?(k=function(){e!=null&&q&&s({activityLogTarget:"Group",groupID:g},function(){return r(!1)})},a[0]=g,a[1]=q,a[2]=s,a[3]=e,a[4]=k):k=a[4];a[5]!==q||a[6]!==e?(m=[e,q],a[5]=q,a[6]=e,a[7]=m):m=a[7];i(k,m);a[8]===Symbol["for"]("react.memo_cache_sentinel")?(o=function(a,b,c,d,e){r(!0);f(a);h(b);l(c);n(d);return p(e)},a[8]=o):o=a[8];b=o;return b}g["default"]=a}),98);
__d("useMWP2PPaymentRequestCancelDialog",["JSResourceForInteraction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestCancelDialog.react").__setRef("useMWP2PPaymentRequestCancelDialog"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){a!=null&&e({id:a})},a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("useMWP2PPaymentTransactionDeclineDialog",["JSResourceForInteraction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatComposerP2PPaymentTransactionDeclineDialog.react").__setRef("useMWP2PPaymentTransactionDeclineDialog"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){a!=null&&e({id:a})},a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("getRingbackUrl",["URI"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){if(a==null)return null;a=new(h||(h=c("URI")))(a);a.addQueryData("users_to_ring",[b]);return a.toString()}g["default"]=a}),98);
__d("useMakeRoomRingback",["I64","LSIntEnum","MWThreadKey.react","Promise","RTWebPreCallHooks","ReQL","getRingbackUrl","promiseDone","react","react-compiler-runtime","recoverableViolation","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l;(l||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(4),e=d("RTWebPreCallHooks").useJoinMeetupCallback(),f=(i||(i=c("useReStore")))(),g=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),l;a[0]!==f.tables.threads||a[1]!==e||a[2]!==g?(l=function(a){var i=a.linkUrl;c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(f.tables.threads).getKeyRange(g)).then(function(a){if(a!=null){(j||(j=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(1))?a=c("getRingbackUrl")(i,(j||(j=d("I64"))).to_string(a.threadKey)):(c("recoverableViolation")("Cannot ring a non user thread","rtc_www"),a=i);return(h||(h=b("Promise"))).resolve(e(a))}c("recoverableViolation")("Cannot find thread when trying to ring a user","rtc_www");return(h||(h=b("Promise"))).resolve()}),void 0,m)},a[0]=f.tables.threads,a[1]=e,a[2]=g,a[3]=l):l=a[3];return l}function m(a){c("recoverableViolation")("Error making a ring back","rtc_www",{error:a.Error})}g["default"]=a}),98);
__d("useP2PPaymentMethodAddDialog",["JSResourceForInteraction","emptyFunction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatComposerP2PPaymentMethodAddDialog.react").__setRef("useP2PPaymentMethodAddDialog"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){a!=null&&e({id:a},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("useP2PPaymentRequestConfirmDialog",["JSResourceForInteraction","emptyFunction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestConfirmDialog.react").__setRef("useP2PPaymentRequestConfirmDialog"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){a!=null&&e({id:a},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("useP2PPaymentRequestDeclineDialog",["JSResourceForInteraction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestDeclineDialog.react").__setRef("useP2PPaymentRequestDeclineDialog"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){a!=null&&e({id:a})},a[1]=e,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("ServicesApproveAppointmentMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5262522413766771"}),null);
__d("ServicesApproveAppointmentMutation.graphql",["ServicesApproveAppointmentMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"InstantBookingConfirmAppointmentResponsePayload",kind:"LinkedField",name:"instant_booking_confirm_appointment",plural:!1,selections:[{alias:null,args:null,concreteType:"NativeComponentFlowBookingRequest",kind:"LinkedField",name:"request",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ServicesApproveAppointmentMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ServicesApproveAppointmentMutation",selections:c},params:{id:b("ServicesApproveAppointmentMutation_facebookRelayOperation"),metadata:{},name:"ServicesApproveAppointmentMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
__d("useServicesConfirmAppointmentBookingMutation",["RelayHooks","ServicesApproveAppointmentMutation.graphql","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(2),b=d("RelayHooks").useMutation(c("ServicesApproveAppointmentMutation.graphql")),e=b[0];a[0]!==e?(b=function(a){e({variables:{input:{referrer_ui_component:"BUBBLE",referrer_ui_surface:"MESSAGE",request_id:a}}})},a[0]=e,a[1]=b):b=a[1];return b}g["default"]=a}),98);
__d("MWChatXmaThirdPartyActionHandler",["fbt","AdsMessengerContext.react","CometMarketplaceCreateDiscountedPriceDialog.entrypoint","CometRelay","CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent","CustomerInformationTemplateFalcoEvent","JSResourceForInteraction","LSFactory","LSMarkAsXStoredProcedure","MNCommerceCTAProcessor","MWBuyerShippingAddressRootQuery","MWChatCustomerFeedbackFormDataQuery","MWChatCustomerFeedbackStateQuery","MWChatPIIFormScreenQuery","MWChatPIIFormStateQuery","MWChatReceiptDataQuery","MWLSPostbackCtaHandler","MWP2PPaymentTransactionInformationVerify","MarketplaceCometReviewOffersDialog.entrypoint","Popup","ViewFormDetailsModal.entrypoint","asyncToGeneratorRuntime","cometPushToast","commitWorkplaceChatBotSubmitFeedbackMutation","createErrorForMAIBALogger","emptyFunction","goUriOnNewWindow","promiseDone","react","react-compiler-runtime","requireDeferred","useAsyncReStore","useCometDynamicEntryPointDialog","useHandleMerchantConfirmOrderDialog","useMWChatShowPIIForm","useMWLSMarketplaceXmaCtaHandler","useMWLSOpenStaticLocationDialog.react","useMWLSShowAttachBankSlip","useMWLSShowECPCheckout","useMWLSShowMemberRequest","useMWLSShowOffsiteBankTransfer","useMWLSShowOrderDetails","useMWLSShowPaymentDetails","useMWLSShowPendingPost","useMWP2PPaymentRequestCancelDialog","useMWP2PPaymentTransactionDeclineDialog","useMWXLazyDialog","useMakeRoomRingback","useP2PPaymentMethodAddDialog","useP2PPaymentRequestConfirmDialog","useP2PPaymentRequestDeclineDialog","useServicesConfirmAppointmentBookingMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||d("react")).useCallback,k=c("requireDeferred")("ZenonUserActionLoggerCommon").__setRef("MWChatXmaThirdPartyActionHandler");function l(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatReceiptModal.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){var b=a.messageId;a=a.receiptId;if(a!=null){d("MWChatReceiptDataQuery").fetch(a,b,function(a){var b=h._(/*BTDS*/"__JHASH__PDJB6VYGeXn__JHASH__");return e({receipt:a,title:b})});return}},a[1]=e,a[2]=b):b=a[2];return b}function m(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("PaymentsCometInfomationBottomSheetDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){e({contentType:a.contentType.content_type,orderID:a.orderID,pageID:a.pageID},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}function n(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("P2MCometAsyncControllerDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){e({contentType:a.payload.action_type},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}function o(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("PaymentsCometOffsitePaymentOnboaringDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];var e;a[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},a[1]=e):e=a[1];b=c("useMWXLazyDialog")(b,void 0,e);var f=b[0];a[2]!==f?(e=function(a){f({orderID:a.orderID},c("emptyFunction"))},a[2]=f,a[3]=e):e=a[3];return e}function aa(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("PaymentsCometBankSlipDetailsPanelDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];var e;a[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},a[1]=e):e=a[1];b=c("useMWXLazyDialog")(b,void 0,e);var f=b[0];a[2]!==f?(e=function(a){f({orderID:a.orderID},c("emptyFunction"))},a[2]=f,a[3]=e):e=a[3];return e}function ba(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("PaymentsCometPaymentSlipDetailslDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];var e;a[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},a[1]=e):e=a[1];b=c("useMWXLazyDialog")(b,void 0,e);var f=b[0];a[2]!==f?(e=function(a){f({paymentSlipID:a.orderID},c("emptyFunction"))},a[2]=f,a[3]=e):e=a[3];return e}function ca(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("PaymentsCometGCashIDOnboardingDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];var e;a[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={baseModalProps:{disableGeoToCometModalsCompatibility_DO_NOT_USE:!0}},a[1]=e):e=a[1];b=c("useMWXLazyDialog")(b,void 0,e);var f=b[0];a[2]!==f?(e=function(a){var b;b=(b=a.contentType.extra_data)==null?void 0:b.payment_slip_detection_id;f({pageID:a.orderID,paymentSlipID:b==null?null:String(b)},c("emptyFunction"))},a[2]=f,a[3]=e):e=a[3];return e}function da(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWBuyerShippingAddressRoot.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0],f=d("CometRelay").useRelayEnvironment();a[1]!==f||a[2]!==e?(b=function(a){c("CustomerInformationTemplateFalcoEvent").log(function(){return{consumer_id:a.actorId,event_type:"mw_xma_click",form_id:a.eeMessageId,page_id:a.pageId}});var b=d("CometRelay").loadQuery(f,c("MWBuyerShippingAddressRootQuery"),{id:a.pageId});e({actorId:a.actorId,eeMessageId:a.eeMessageId,initialQueryRef:b,messageId:a.messageId,pageId:a.pageId},function(){b.dispose()})},a[1]=f,a[2]=e,a[3]=b):b=a[3];return b}function ea(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useRelayEnvironment(),e;a[0]!==b?(e=function(a){var d={environment:b};a=c("commitWorkplaceChatBotSubmitFeedbackMutation")({action_content_blob:a.feedbackActionContentBlob,config:d});d=a.then(q,p);c("promiseDone")(d)},a[0]=b,a[1]=e):e=a[1];return e}function p(){d("cometPushToast").cometPushSimpleToast("Error in submitting feedback!",2e3)}function q(){d("cometPushToast").cometPushSimpleToast("Feedback submitted!",2e3)}var r=c("JSResourceForInteraction")("MWChatCustomerFeedbackDialog.react").__setRef("MWChatXmaThirdPartyActionHandler");function fa(){var a=d("react-compiler-runtime").c(3),b=c("useMWXLazyDialog")(r),e=b[0],f=d("CometRelay").useRelayEnvironment();a[0]!==f||a[1]!==e?(b=function(a){var b=a.feedbackFormId;d("MWChatCustomerFeedbackStateQuery").fetch(b,f,function(a){a!=null&&d("MWChatCustomerFeedbackFormDataQuery").fetch(b,f,function(b){b!=null&&e({firstScreen:b.firstScreen,formId:b.formId,pageId:b.pageId,privacy:b.privacy,state:a})})})},a[0]=f,a[1]=e,a[2]=b):b=a[2];return b}function ga(){var a=d("react-compiler-runtime").c(3),b=c("useMWXLazyDialog")(r),e=b[0],f=d("CometRelay").useRelayEnvironment();a[0]!==f||a[1]!==e?(b=function(a){var b=a.firstScreen,c=a.formId,g=a.pageId,h=a.privacy;d("MWChatCustomerFeedbackStateQuery").fetch(c,f,function(a){return e({firstScreen:b,formId:c,pageId:g,privacy:h,state:a})})},a[0]=f,a[1]=e,a[2]=b):b=a[2];return b}function ha(){var a=d("react-compiler-runtime").c(4),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatPIIFormDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0],f=d("CometRelay").useRelayEnvironment();a[1]!==f||a[2]!==e?(b=function(a){var b=a.ctaType,c=a.nuxData;a=a.piiForm;var g=a.color,h=a.currentIndex,i=a.firstScreen,j=a.formId,k=a.numScreens,l=a.pageId;d("MWChatPIIFormStateQuery").fetch(j,f,function(a){if(k>1){d("MWChatPIIFormScreenQuery").fetch(j,l,1,f,function(d){return e({color:g,ctaType:b,currentIndex:h,firstScreen:i,formId:j,numScreens:k,nuxData:c,pageId:l,secondScreen:d,state:a})});return}else return e({color:g,ctaType:b,currentIndex:h,firstScreen:i,formId:j,numScreens:k,nuxData:c,pageId:l,secondScreen:void 0,state:a})})},a[1]=f,a[2]=e,a[3]=b):b=a[3];return b}function ia(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWInboxUrlWebviewDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(){var a=h._(/*BTDS*/"__JHASH__HFLlRGYwWh7__JHASH__").toString();e({htmlBlob:a})},a[1]=e,a[2]=b):b=a[2];return b}function ja(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MessengerCometBookingDetailsModal.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({pageID:a.pageId,requestID:a.requestId})},a[1]=e,a[2]=b):b=a[2];return b}function ka(){var a=d("react-compiler-runtime").c(2),b=c("useCometDynamicEntryPointDialog")(c("ViewFormDetailsModal.entrypoint")),e;a[0]!==b?(e=function(a){return b({responseID:a.responseID},{responseID:a.responseID})},a[0]=b,a[1]=e):e=a[1];return e}function la(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatLiveLocationDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({})},a[1]=e,a[2]=b):b=a[2];return b}function ma(){var a=d("react-compiler-runtime").c(2),b=c("useMWLSOpenStaticLocationDialog.react")(),e;a[0]!==b?(e=function(a){return b(a.msgId)},a[0]=b,a[1]=e):e=a[1];return e}function na(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatBusinessBoardingPassDetail.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({boardingPassDetail:a})},a[1]=e,a[2]=b):b=a[2];return b}function oa(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatBusinessItineraryDetail.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({itineraryPayload:a})},a[1]=e,a[2]=b):b=a[2];return b}function pa(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatBusinessMessengerExtension.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({actionLink:a.actionLink,pageID:a.pageID,threadID:a.pageID,userID:a.userID},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}function qa(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatRichWidgetExtension.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({actionLink:a.actionLink,pageID:a.pageID},c("emptyFunction"))},a[1]=e,a[2]=b):b=a[2];return b}function ra(a){var b=d("react-compiler-runtime").c(2),c;b[0]!==a?(c=function(b){k.onReady(s);return a(b.hasVideo,b.threadId,b.trigger,b.representedID)},b[0]=a,b[1]=c):c=b[1];return c}function s(a){return a.logClick({component:"start_call_button",surface:"admin_message"})}function sa(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWChatGuestChatHistoryModal.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({guestID:a.guestId,pageID:a.pageId})},a[1]=e,a[2]=b):b=a[2];return b}function ta(){return t}function t(a){return c("MNCommerceCTAProcessor").process(a.ctaId,a.messageId)}function ua(a){d("Popup").open(a,1024,500)}function va(a){if(a==="xma_p2m_mark_as_received")return"xma_p2m_mark_as_received";else if(a==="xma_p2m_mark_as_paid")return"xma_p2m_mark_as_paid";else if(a==="xma_p2m_mark_as_shipped")return"xma_p2m_mark_as_shipped";return null}function wa(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("CometJoinRoomFromPortalDialog.react").__setRef("MWChatXmaThirdPartyActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({linkUrl:a.linkUrl})},a[1]=e,a[2]=b):b=a[2];return b}function xa(){var a=d("react-compiler-runtime").c(2),e=c("useAsyncReStore")(),f;a[0]!==e?(f=function(a,d,f){c("promiseDone")(e.then(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield e.runInTransaction(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){yield c("LSMarkAsXStoredProcedure")(c("LSFactory")(b),{ctaId:a,ctaType:d,orderId:f})});return function(a){return e.apply(this,arguments)}}(),"readwrite")});return function(a){return e.apply(this,arguments)}}()))},a[0]=e,a[1]=f):f=a[1];return f}function ya(){var a=d("react-compiler-runtime").c(2),b=c("useCometDynamicEntryPointDialog")(c("MarketplaceCometReviewOffersDialog.entrypoint")),e;a[0]!==b?(e=function(a){return b({listingId:a},{})},a[0]=b,a[1]=e):e=a[1];return e}function za(){var a=d("react-compiler-runtime").c(2),b=c("useCometDynamicEntryPointDialog")(c("CometMarketplaceCreateDiscountedPriceDialog.entrypoint")),e;a[0]!==b?(e=function(a){return b({threadId:a},{})},a[0]=b,a[1]=e):e=a[1];return e}function Aa(){var a=d("react-compiler-runtime").c(3),b=d("AdsMessengerContext.react").useAdsMessengerContext(),c=b.isMessengerInAds,e=b.showAdsAISurveyModal;a[0]!==c||a[1]!==e?(b=function(a){c&&e!=null&&e({surveySessionID:a.survey_session_id})},a[0]=c,a[1]=e,a[2]=b):b=a[2];return b}function Ba(){var a=d("react-compiler-runtime").c(3),b=d("AdsMessengerContext.react").useAdsMessengerContext(),c=b.isMessengerInAds,e=b.showAdsAILowProbabilityEntitySelectionModal;a[0]!==c||a[1]!==e?(b=function(a){if(c&&e!=null){var b;e({adAccountID:a.adAccountID,allowDraftSelection:(b=a.allowDraftSelection)!=null?b:!1,entityType:a.entityType,threadKey:a.threadKey})}},a[0]=c,a[1]=e,a[2]=b):b=a[2];return b}function Ca(){var a=d("MWLSPostbackCtaHandler").usePostbackCtaHandler(),b=Da(),e=d("AdsMessengerContext.react").useAdsMessengerContext(),f=e.maybeGetCallbackFromURI,g=e.maybeLogAdsAICtaClick;return j(function(d){var e=d.actionContentBlob,h=d.ctaLabel,i=d.message,j=d.platformToken;d=d.url;var k,l,m=!1,n=!1,o;try{e=e!=null?JSON.parse(e):{};k=e.bot_response_id;l=e.dialog;l!=null&&b(babelHelpers["extends"]({},l,{bot_response_id:k}));m=j!=null&&j.length>0;m&&a(j,i);n=d!=null&&d.length>0;if(d!=null&&n){e=f==null?void 0:f(d);e!=null?e():c("goUriOnNewWindow")(d)}}catch(a){o=c("createErrorForMAIBALogger")(a);throw a}finally{g==null?void 0:g({bot_response_id:k,cta_label:h,error:o,has_dialog:l!=null,has_postback:m,has_url:n})}},[f,g,a,b])}function Da(){var a=d("react-compiler-runtime").c(3),b=d("AdsMessengerContext.react").useAdsMessengerContext(),e=b.isMessengerInAds,f=b.showAdsAISMAGModal;a[0]!==e||a[1]!==f?(b=function(a){if(e&&f!=null&&typeof a.use_case_params==="object"&&a.use_case_params!=null&&typeof a.use_case==="string"){var b;c("promiseDone")(f({bot_response_id:a.bot_response_id,overlay_view_type:(b=a.overlay_view_type)!=null?b:void 0,use_case:a.use_case,use_case_params:a.use_case_params}))}},a[0]=e,a[1]=f,a[2]=b):b=a[2];return b}function a(a,b){var e=d("react-compiler-runtime").c(52),f=l(),g=o(),h=aa(),i=ba(),j=ca(),k=ga(),p=fa(),q=ta(),r=ha(),s=la(),t=ma(),u=ja(),v=ka(),w=na(),x=sa(),y=oa(),z=pa(),A=qa(),B=c("useMWP2PPaymentRequestCancelDialog")(),C=c("useP2PPaymentRequestConfirmDialog")(),D=c("useP2PPaymentRequestDeclineDialog")(),E=c("useMWP2PPaymentTransactionDeclineDialog")(),F=c("useP2PPaymentMethodAddDialog")(),G=d("MWP2PPaymentTransactionInformationVerify").useP2PPaymentTransactionInformationVerify(),H=ra(b),I=c("useMakeRoomRingback")(),J=wa(),K=m(),L=n(),M=ea(),N=c("useMWLSShowMemberRequest")(),O=c("useMWLSShowPendingPost")(),P=c("useMWLSShowECPCheckout")(),Q=c("useMWLSShowPaymentDetails")(),R=c("useMWLSShowOrderDetails")(),S=xa(),T=c("useMWLSShowAttachBankSlip")(),U=c("useMWLSShowOffsiteBankTransfer")(),V=da(),W=c("useMWLSMarketplaceXmaCtaHandler")(),X=ya(),Y=za(),Z=c("useMWChatShowPIIForm")(),$=ia(),Ea=c("useServicesConfirmAppointmentBookingMutation")(),Fa=Aa(),Ga=Ba(),Ha=Ca(),Ia=Da(),Ja=c("useHandleMerchantConfirmOrderDialog")();e[0]!==Ea||e[1]!==Ia||e[2]!==Ha||e[3]!==Ja||e[4]!==Z||e[5]!==J||e[6]!==I||e[7]!==H||e[8]!==q||e[9]!==F||e[10]!==B||e[11]!==C||e[12]!==D||e[13]!==E||e[14]!==G||e[15]!==W||e[16]!==a||e[17]!==Ga||e[18]!==Fa||e[19]!==L||e[20]!==T||e[21]!==h||e[22]!==w||e[23]!==u||e[24]!==V||e[25]!==Y||e[26]!==k||e[27]!==p||e[28]!==P||e[29]!==j||e[30]!==x||e[31]!==$||e[32]!==K||e[33]!==y||e[34]!==s||e[35]!==S||e[36]!==N||e[37]!==z||e[38]!==A||e[39]!==U||e[40]!==g||e[41]!==f||e[42]!==R||e[43]!==r||e[44]!==Q||e[45]!==i||e[46]!==O||e[47]!==X||e[48]!==t||e[49]!==v||e[50]!==M?(b=function(b){if(b.NAME==="P2PPaymentTransactionInformationVerify")return G(b.VAL);if(b.NAME==="P2PPaymentTransactionDecline")return E(b.VAL.id);if(b.NAME==="MakeWorkJoinableCallInvite"||b.NAME==="MakeRoomRingback")return I(b.VAL);if(b.NAME==="P2MCheckout"){var d=b.VAL;return P("P2M_Regular",d.orderID,d.pageID)}if(b.NAME==="ShowCustomerFeedback")return k(b.VAL);if(b.NAME==="P2MInformationalMessageBottomSheet"){d=(d=b.VAL.contentType)==null?void 0:d.content_type;if(d==="payment_detection_merchant_slip_validation")return g(b.VAL);else if(d==="payment_detection_merchant_bank_account_verified_details")return h(b.VAL);else if(d==="order_details")return R(b.VAL.orderID);else if(d==="unified_checkout")return T(b.VAL.orderID);else if(d==="payment_detection_confirmation_details")return i(b.VAL);else if(d==="merchant_external_payment_account")return j(b.VAL);return K(b.VAL)}if(b.NAME==="P2MAsyncControllerDialog")return L(b.VAL);if(b.NAME==="WorkplaceChatBotSubmitFeedback")return M(b.VAL);if(b.NAME==="P2PPaymentRequestCancel")return B(b.VAL.id);if(b.NAME==="SendImagePostback"){d=b.VAL;var e=d.loggingDetails;e!=null&&c("CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent").log(function(){return{consumer_id:e.consumer_id,event_data:{ad_id:e.ad_id,cta:"button",index:String(e.index)},event_location:"unknown",page_id:e.page_id}});return a(d.message,d.platformToken,d.image)}if(b.NAME==="ShowMessengerExtensions")return z(b.VAL);if(b.NAME==="OpenAccountLink")return q(b.VAL);if(b.NAME==="ShowPIIForm")return Z(b.VAL);if(b.NAME==="P2MOffsiteBankTransferCTA")return U(b.VAL.orderID);if(b.NAME==="P2PPaymentTransactionReceiveMoney")return F(b.VAL.id);if(b.NAME==="ShowBoardingPass")return w(b.VAL);if(b.NAME==="P2MOrderDetails")return R(b.VAL.orderID);if(b.NAME==="P2MMarkAsPaid"||b.NAME==="P2MMarkAsShipped"||b.NAME==="P2MMarkAsReceived")return S(b.VAL.ctaId,b.VAL.ctaType,b.VAL.orderID);if(b.NAME==="P2MMarkAsX"){d=va(b.VAL.ctaType);if(d!=null)return S(b.VAL.ctaId,d,b.VAL.orderID)}if(b.NAME==="ShowStaticLocationDetails")return t(b.VAL);if(b.NAME==="P2PPaymentTransactionDetails")return Q(b.VAL.id);if(b.NAME==="P2PPaymentRequestDecline")return D(b.VAL.id);if(b.NAME==="ShowBookingDetails")return u(b.VAL);if(b.NAME==="ViewFormDetails")return v(b.VAL);if(b.NAME==="ShowOrderConfirmation")return f(b.VAL);if(b.NAME==="ShowCustomerFeedbackForm")return p(b.VAL);if(b.NAME==="ShowMessengerRichWidgetExtension")return A(b.VAL);if(b.NAME==="ShowItinerary")return y(b.VAL);if(b.NAME==="OpenAccountLinkUrl")return ua(b.VAL);if(b.NAME==="MakeJoinRoomFromPortal")return J(b.VAL);if(b.NAME==="P2MAttachBankSlip")return T(b.VAL.orderID);if(b.NAME==="BuyerShippingAddress")return V(b.VAL);if(b.NAME==="AdmodChatsShowPendingPost"){d=b.VAL;return O(d.targetId,d.groupId,d.authorId,d.postId,d.activityLogItemId)}if(b.NAME==="P2PPaymentRequestConfirm")return C(b.VAL.id);if(b.NAME==="MakeRtcCall")return H(b.VAL);if(b.NAME==="ProcessMarketplaceCallFunction"){d=b.VAL;var l=d.actionType,m=d.attachmentFbid,n=d.messageId;d=d.targetId;return W(n,m,d,l)}if(b.NAME==="ShowPIIFormForFormBuilder")return r(b.VAL);if(b.NAME==="ShowLiveLocationDetails")return s(b.VAL);if(b.NAME==="AdmodChatsShowMemberRequest"){n=b.VAL;return N(n.targetId,n.groupId,n.profileId,n.activityLogItemId)}if(b.NAME==="ShowGuestChatHistory")return x(b.VAL);if(b.NAME==="ShowInThreadFormDetails")return $();if(b.NAME==="ConfirmAppointmentBooking")return Ea(b.VAL.requestID);if(b.NAME==="OpenMarketplaceDialog"){m=b.VAL;d=m.ctaType;l=m.listingId;n=m.threadId;switch(d){case"SHIPPED_DECLINED_OFFER_SEND_ANOTHER_PRICE":case"SHIPPED_EXPIRED_OFFER_SEND_ANOTHER_PRICE":if(n!=null)return Y(n);else return;case"SHIPPED_OFFER_CANCEL":if(l!=null)return X(l);else return;default:return}}if(b.NAME==="ShowAdsAISurveyModal")return Fa(b.VAL);if(b.NAME==="ShowAdsAILowProbabilityEntitySelectionModal")return Ga(b.VAL);if(b.NAME==="HandleSMAGPostback")return Ha(b.VAL);if(b.NAME==="HandleSMAGDialog")return Ia(b.VAL);if(b.NAME==="ShowMerchantConfirmOrder")return Ja(b.VAL.orderID)},e[0]=Ea,e[1]=Ia,e[2]=Ha,e[3]=Ja,e[4]=Z,e[5]=J,e[6]=I,e[7]=H,e[8]=q,e[9]=F,e[10]=B,e[11]=C,e[12]=D,e[13]=E,e[14]=G,e[15]=W,e[16]=a,e[17]=Ga,e[18]=Fa,e[19]=L,e[20]=T,e[21]=h,e[22]=w,e[23]=u,e[24]=V,e[25]=Y,e[26]=k,e[27]=p,e[28]=P,e[29]=j,e[30]=x,e[31]=$,e[32]=K,e[33]=y,e[34]=s,e[35]=S,e[36]=N,e[37]=z,e[38]=A,e[39]=U,e[40]=g,e[41]=f,e[42]=R,e[43]=r,e[44]=Q,e[45]=i,e[46]=O,e[47]=X,e[48]=t,e[49]=v,e[50]=M,e[51]=b):b=e[51];return b}e=a;g.useHandler=e}),226);
__d("MWStatusText.react",["MWXText.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={alignLeft:{paddingStart:"xtt4iyq",$$css:!0},alignRight:{paddingEnd:"x1sxyh0",$$css:!0},color:{color:"x1xf6ywa",$$css:!0},mask:{backgroundColor:"x1eb86dx",$$css:!0}};b=i.forwardRef(a);function a(a,b){var e=d("react-compiler-runtime").c(14),f=a.addOnEnd,g=a.alignLeft,h=a.error,k=a.text;a=a.xstyle;g=g===void 0?!1:g;var l=g?j.alignLeft:j.alignRight,m;e[0]!==l||e[1]!==a?(m=[l,j.mask,a],e[0]=l,e[1]=a,e[2]=m):m=e[2];l=g===!0?"start":"end";a=h===!0?"negative":"secondary";e[3]!==k?(g=i.jsx(d("react-strict-dom").html.span,{style:j.color,children:k}),e[3]=k,e[4]=g):g=e[4];e[5]!==f||e[6]!==l||e[7]!==a||e[8]!==g?(h=i.jsxs(c("MWXText.react"),{align:l,color:a,testid:void 0,type:"meta4",children:[g,f]}),e[5]=f,e[6]=l,e[7]=a,e[8]=g,e[9]=h):h=e[9];e[10]!==b||e[11]!==m||e[12]!==h?(k=i.jsx(d("react-strict-dom").html.span,{ref:b,role:"none",style:m,children:h}),e[10]=b,e[11]=m,e[12]=h,e[13]=k):k=e[13];return k}e=b;g["default"]=e}),98);
__d("MWClickToRevealMustacheText.react",["fbt","MWBlockingProtectionContext.react","MWStatusText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={statusText:{paddingBottom:"xwib8y2",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(6),e=a.messageId;a=a.xsyle;var f=c("MWBlockingProtectionContext.react").useHook();f=f.findMessageId;var g;b[0]!==f||b[1]!==e?(g=f(e),b[0]=f,b[1]=e,b[2]=g):g=b[2];f=g;b[3]!==f||b[4]!==a?(e=f?null:j.jsx(c("MWStatusText.react"),{alignLeft:!0,text:h._(/*BTDS*/"__JHASH__vzmOniQEuzD__JHASH__").toString(),xstyle:[a,k.statusText]}),b[3]=f,b[4]=a,b[5]=e):e=b[5];return e}g["default"]=a}),226);
__d("MWClickedMessageContext.react",["GroupsCometChatsEngagementLogger","I64","LSFactory","LSFetchMessageSeenCountStoredProcedure","emptyFunction","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.createContext;e.useCallback;var m=e.useContext;e.useMemo;var n=e.useState,o=l({clickedMessageId:null,fetchMessageSeenCount:c("emptyFunction"),hasError:!1,isLoading:!1,setClickedMessageId:c("emptyFunction")});function a(a){var b=d("react-compiler-runtime").c(10);a=a.children;var e=n(null),g=e[0],j=e[1];e=n(!1);var l=e[0],m=e[1];e=n(!1);var p=e[0],q=e[1],r=(h||(h=c("useReStore")))();b[0]!==r?(e=function(a,b,e){q(!0),j(b),r.runInTransaction(function(d){return c("LSFetchMessageSeenCountStoredProcedure")(c("LSFactory")(d),{messageId:b,threadKey:a})},"readwrite",void 0,void 0,f.id+":53").then(function(){q(!1),m(!1),d("GroupsCometChatsEngagementLogger").log({action:"impression",client_extras:{mid:b},community_id:e?(i||(i=d("I64"))).to_string(e.folderId):null,event:"seen_count_rendered",group_id:e?(i||(i=d("I64"))).to_string(e.fbGroupId):null,source:"message_bubble",surface:"thread_view",thread_id:(i||(i=d("I64"))).to_string(a)})})["catch"](function(){q(!1),m(!0)})},b[0]=r,b[1]=e):e=b[1];e=e;var s;b[2]!==g||b[3]!==e||b[4]!==l||b[5]!==p?(s={clickedMessageId:g,fetchMessageSeenCount:e,hasError:l,isLoading:p,setClickedMessageId:j},b[2]=g,b[3]=e,b[4]=l,b[5]=p,b[6]=s):s=b[6];g=s;e=g;b[7]!==a||b[8]!==e?(l=k.jsx(o.Provider,{value:e,children:a}),b[7]=a,b[8]=e,b[9]=l):l=b[9];return l}function b(){return m(o)}e={Provider:a,useHook:b};g["default"]=e}),98);
__d("MWCombineThemeConfigs",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return{dark:Object.assign(a.dark,b.dark),light:Object.assign(a.light,b.light),type:b.type}}f.combine=a}),66);
__d("MWEditThemeDialogRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7504055939718149"}),null);
__d("MWEditThemeDialogRootQuery$Parameters",["MWEditThemeDialogRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWEditThemeDialogRootQuery_facebookRelayOperation"),metadata:{},name:"MWEditThemeDialogRootQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("MWEditThemeDialogRoot.entrypoint",["JSResourceForInteraction","MWEditThemeDialogRootQuery$Parameters","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=c("gkx")("11205")?10:1e3;a={getPreloadProps:function(a){return{queries:{queryReference:{parameters:c("MWEditThemeDialogRootQuery$Parameters"),variables:{first:h}}}}},root:c("JSResourceForInteraction")("MWEditThemeDialogRoot.react").__setRef("MWEditThemeDialogRoot.entrypoint")};g["default"]=a}),98);
__d("MWEditThemeQplLogger",["QPLUserFlow","Random","justknobx","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=c("justknobx")._("3876"),i=c("qpl")._(25308101,"2815");function a(a,b){var e=Date.now()+(Math.round(d("Random").random()*1e4)+1e4);c("QPLUserFlow").start(i,{annotations:{string:{entry_point:a,version:b}},instanceKey:e,timeoutInMs:c("justknobx")._("3877")});return e}function b(a,b){c("QPLUserFlow").addPoint(i,a,{instanceKey:b})}function e(a){c("QPLUserFlow").endSuccess(i,{instanceKey:a})}function f(a){c("QPLUserFlow").endCancel(i,{instanceKey:a})}function j(a,b){c("QPLUserFlow").endFailure(i,a,{instanceKey:b})}g.THEME_RENDER_THRESHOLD_SUCCESS_COUNT=h;g.QPL_EVENT=i;g.startEventAndReturnInstanceKey=a;g.addPoint=b;g.endEventSuccess=e;g.endEventCancel=f;g.endEventFailure=j}),98);
__d("MWEditedEyebrowLabel.react",["fbt","BaseMiddot.react","MessengerWebUXLogger","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(9);a=a.separatorStyle;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={eventName:"edit_eyebrow_impression"},b[0]=e):e=b[0];e=c("MessengerWebUXLogger").useImpressionLoggerRef(e);var f;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f=h._(/*BTDS*/"__JHASH__Mh0-kan22Pe__JHASH__"),b[1]=f):f=b[1];f=f;var g;b[2]!==a?(g=a!=null&&j.jsx(d("react-strict-dom").html.span,{style:a,children:j.jsx(c("BaseMiddot.react"),{})}),b[2]=a,b[3]=g):g=b[3];b[4]!==e?(a=j.jsx(d("react-strict-dom").html.span,{"aria-label":f,"data-testid":void 0,ref:e,children:f}),b[4]=e,b[5]=a):a=b[5];b[6]!==g||b[7]!==a?(f=j.jsxs(j.Fragment,{children:[g,a]}),b[6]=g,b[7]=a,b[8]=f):f=b[8];return f}g["default"]=a}),226);
__d("MWMessageEditContext.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;var j=c.useContext;c.useMemo;var k=c.useState,l={setShowEdits:function(){},showEdits:!1},m=i.createContext();function a(a){var b=d("react-compiler-runtime").c(5),c=a.children;a=a.value;a=a===void 0?l:a;a=k((a=a==null?void 0:a.showEdits)!=null?a:!1);var e=a[0];a=a[1];b[0]!==e?(a={setShowEdits:a,showEdits:e},b[0]=e,b[1]=a):a=b[1];e=a;a=e;b[2]!==c||b[3]!==a?(e=i.jsx(m.Provider,{value:a,children:c}),b[2]=c,b[3]=a,b[4]=e):e=b[4];return e}function b(){return j(m)}g.MWMessageEditContextProvider=a;g.useMWMessageEditContext=b}),98);
__d("MWEditedEyebrow.react",["fbt","BaseMiddot.react","IGDWebUtils","MWEditedEyebrowLabel.react","MWMessageEditContext.react","MWXLink.react","MWXTooltip.react","MessengerWebUXLogger","QPLUserFlow","qpl","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){var b=d("react-compiler-runtime").c(30),e=a.hasPadding;a=a.separatorStyle;var f=c("MessengerWebUXLogger").useInteractionLogger(),g=d("MWMessageEditContext.react").useMWMessageEditContext()||{setShowEdits:l,showEdits:!1},i=g.setShowEdits,k=g.showEdits;b[0]!==f||b[1]!==i||b[2]!==k?(g=function(){k||(c("QPLUserFlow").start(c("qpl")._(1056849214,"1777")),f==null?void 0:f({eventName:"edit_message_history"})),i(!k)},b[0]=f,b[1]=i,b[2]=k,b[3]=g):g=b[3];g=g;var m;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(m={eventName:"edit_eyebrow_impression"},b[4]=m):m=b[4];m=c("MessengerWebUXLogger").useImpressionLoggerRef(m);var n;b[5]!==k?(n=k?h._(/*BTDS*/"__JHASH__WqoEC9S0Sry__JHASH__"):h._(/*BTDS*/"__JHASH__3fxL6sM27ni__JHASH__"),b[5]=k,b[6]=n):n=b[6];n=n;var o;b[7]!==k?(o=k?h._(/*BTDS*/"__JHASH__WqoEC9S0Sry__JHASH__"):h._(/*BTDS*/"__JHASH__0I22sJ_f1hm__JHASH__"),b[7]=k,b[8]=o):o=b[8];o=o;var p;b[9]!==a?(p=a!=null&&j.jsx(d("react-strict-dom").html.span,{style:a,children:j.jsx(c("BaseMiddot.react"),{})}),b[9]=a,b[10]=p):p=b[10];b[11]!==e?(a=e===!0&&{paddingTop:6},b[11]=e,b[12]=a):a=b[12];b[13]!==a?(e=babelHelpers["extends"]({color:"var(--mwp-primary-theme-color)"},a),b[13]=a,b[14]=e):e=b[14];b[15]!==n?(a=j.jsx(d("react-strict-dom").html.span,{"data-testid":void 0,children:n}),b[15]=n,b[16]=a):a=b[16];var q;b[17]!==n||b[18]!==g||b[19]!==m||b[20]!==k||b[21]!==e||b[22]!==a?(q=j.jsx(c("MWXLink.react"),{"aria-expanded":k,"aria-label":n,color_DEPRECATED:d("IGDWebUtils").isOnInstagramWeb()?"highlight":"blueLink",onClick:g,ref:m,role:"button",style:e,weight_DEPRECATED:"medium",children:a}),b[17]=n,b[18]=g,b[19]=m,b[20]=k,b[21]=e,b[22]=a,b[23]=q):q=b[23];b[24]!==q||b[25]!==o?(n=j.jsx(c("MWXTooltip.react"),{align:"middle",forceInlineDisplay:!0,label:o,position:"above",tooltip:o,children:q}),b[24]=q,b[25]=o,b[26]=n):n=b[26];b[27]!==n||b[28]!==p?(g=j.jsxs(j.Fragment,{children:[p,n]}),b[27]=n,b[28]=p,b[29]=g):g=b[29];return g}function l(a){}function a(a){var b=d("react-compiler-runtime").c(4),e=a.enableEditHistory,f=a.hasPadding;a=a.separatorStyle;e=e===void 0?!0:e;var g;b[0]!==e||b[1]!==f||b[2]!==a?(g=e?j.jsx(k,{hasPadding:f,separatorStyle:a}):j.jsx(c("MWEditedEyebrowLabel.react"),{separatorStyle:a}),b[0]=e,b[1]=f,b[2]=a,b[3]=g):g=b[3];return g}g.MWEditedEyebrowWithHistory=k;g.MWEditedEyebrow=a}),226);
__d("MWFIlePressableDirectDownload.react",["MWXPressable.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(7),e=a.children,f=a.onPress,g=a.url;a=a.xstyle;var h;b[0]!==g?(h=g!=null?{download:!0,target:"_blank",url:g}:void 0,b[0]=g,b[1]=h):h=b[1];b[2]!==e||b[3]!==f||b[4]!==h||b[5]!==a?(g=i.jsx(c("MWXPressable.react"),{children:e,display:"inline",linkProps:h,onPress:f,overlayDisabled:!0,xstyle:a}),b[2]=e,b[3]=f,b[4]=h,b[5]=a,b[6]=g):g=b[6];return g}g.MWFilePressableDirectDownload=a}),98);
__d("MessengerFilePreviewGenerationFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("606");b=d("FalcoLoggerInternal").create("messenger_file_preview_generation",a);e=b;g["default"]=e}),98);
__d("MWFileViewerLogger",["I64","LSIntEnum","MessengerFilePreviewGenerationFalcoEvent","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function b(){var b=function(){return Array.from((a.crypto||a.msCrypto).getRandomValues(new Uint32Array(2)))};return(h||(h=d("I64"))).to_string(b())}var j=c("gkx")("24035");function k(a,b){if(j){var e=b.attachment;return c("MessengerFilePreviewGenerationFalcoEvent").log(function(){return{attachment_id:b.attachmentID,entry_point:b.entryPoint,event:a,filesize:e!=null&&e.filesize!=null?(h||(h=d("I64"))).to_string(e.filesize):void 0,filetype:e==null?void 0:e.playableUrlMimeType,message_id:b.messageID.messageId,session_id:b.sessionId,thread_id:(h||(h=d("I64"))).to_string(b.thread.threadKey),thread_type:(i||(i=d("LSIntEnum"))).unwrapIntEnum(b.thread.threadType)}})}}function e(a){return k("file_viewer_direct_download",a)}g.generateSessionId=b;g.logFileViewerDirectDownload=e}),98);
__d("useMWFileOnPress",["MWFileViewerLogger","ReQL","asyncToGeneratorRuntime","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(i||d("react")).useCallback;function a(a,e,f,g,i){var j=d("react-compiler-runtime").c(8),k=(h||(h=c("useReStore")))(),l;j[0]!==e||j[1]!==g||j[2]!==a||j[3]!==f||j[4]!==i||j[5]!==k.tables.attachments||j[6]!==k.tables.threads?(l=function(h){f==null?void 0:f(h),c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b,c=(yield (b=d("ReQL")).firstAsync(b.fromTableAscending(k.tables.threads).getKeyRange(a.threadId)));b=(yield b.firstAsync(b.fromTableAscending(k.tables.attachments).getKeyRange(a.threadId,a.messageId)));if(c){b={attachment:b,attachmentID:e,entryPoint:g,messageID:a,sessionId:i,thread:c};d("MWFileViewerLogger").logFileViewerDirectDownload(b)}})())},j[0]=e,j[1]=g,j[2]=a,j[3]=f,j[4]=i,j[5]=k.tables.attachments,j[6]=k.tables.threads,j[7]=l):l=j[7];return l}g["default"]=a}),98);
__d("MWFilePressable.react",["CometErrorBoundary.react","ConstUriUtils","FBLogger","MWFIlePressableDirectDownload.react","MWFileViewerLogger","goUriOnNewWindow","react","react-compiler-runtime","useMWFileOnPress"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(17),c=a.attachmentID,e=a.children,f=a.entryPoint,g=a.mediaRenderQpl,h=a.messageID,l=a.onPress,m=a.url;a=a.xstyle;var n,o;b[0]!==g||b[1]!==m?(n=function(){m!=null&&m.length>0?g==null?void 0:g.endSuccess():g==null?void 0:g.endFail("load-file-error")},o=[g,m],b[0]=g,b[1]=m,b[2]=n,b[3]=o):(n=b[2],o=b[3]);j(n,o);if(h!=null&&h.type==="sent"&&c!=null&&m!=null){b[4]!==c||b[5]!==e||b[6]!==f||b[7]!==h.value||b[8]!==l||b[9]!==m||b[10]!==a?(n=i.jsx(k,{attachmentID:c,children:e,entryPoint:f,onPress:l,sentMessage:h.value,url:m,xstyle:a}),b[4]=c,b[5]=e,b[6]=f,b[7]=h.value,b[8]=l,b[9]=m,b[10]=a,b[11]=n):n=b[11];return n}b[12]!==e||b[13]!==l||b[14]!==m||b[15]!==a?(o=i.jsx(d("MWFIlePressableDirectDownload.react").MWFilePressableDirectDownload,{children:e,onPress:l,url:m,xstyle:a}),b[12]=e,b[13]=l,b[14]=m,b[15]=a,b[16]=o):o=b[16];return o}function k(a){var b=d("react-compiler-runtime").c(11),e=a.attachmentID,f=a.sentMessage,g=a.url,h=a.children,j=a.entryPoint,k=a.onPress;a=a.xstyle;var m;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(m=d("MWFileViewerLogger").generateSessionId(),b[0]=m):m=b[0];m=m;f=c("useMWFileOnPress")(f,e,k,j,m);b[1]!==g?(e=function(a){a=a?a.message:"Cannot open file viewer";c("FBLogger")("messenger_web_media","cannot_load_entry_point").mustfix(a);a=d("ConstUriUtils").getUri(g);a!=null&&c("goUriOnNewWindow")(a)},b[1]=g,b[2]=e):e=b[2];b[3]!==h||b[4]!==f||b[5]!==g||b[6]!==a?(k=i.jsx(d("MWFIlePressableDirectDownload.react").MWFilePressableDirectDownload,{children:h,onPress:f,url:g,xstyle:a}),b[3]=h,b[4]=f,b[5]=g,b[6]=a,b[7]=k):k=b[7];b[8]!==e||b[9]!==k?(j=i.jsx(c("CometErrorBoundary.react"),{fallback:l,onError:e,children:k}),b[8]=e,b[9]=k,b[10]=j):j=b[10];return j}function l(){return null}g["default"]=a}),98);
__d("MWLSImagePostbackCtaHandler",["ActorURI","I64","LSFactory","LSInsertNewMediaSendStoredProcedure","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure","LSMailboxType","LSMarkSubJobCompletedV2StoredProcedure","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSResumeMediaSendJobStoredProcedure","LSShape","LSThreadAttributionTypeUtil","LSVec","MWPActor.react","MWThreadKey.react","MercuryConfig","MercuryLocalIDs","MessagePowerUp","MessagingAttachmentType","Promise","URI","cr:6057","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=(k||d("react")).useMemo;function o(a,e,f,g,h,i,k){var n=d("MercuryLocalIDs").generateOfflineThreadingID();return c("LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure")(c("LSFactory")(a),{attachments:c("LSVec").ofArray([d("LSShape").ofRecord({action_url:void 0,attachment_fbid:n,attachment_index:(l||(l=d("I64"))).zero,attachment_type:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE),cta1_title:void 0,cta2_title:void 0,cta3_title:void 0,description_text:void 0,filename:"postback image.jpg",filesize:void 0,has_media:!0,has_xma:!1,image_url:void 0,mini_preview:void 0,offline_attachment_id:n,original_file_hash:void 0,playable_duration_ms:void 0,playable_url:void 0,playable_url_mime_type:void 0,preview_height:void 0,preview_url:g,preview_url_mime_type:"image/jpeg ",preview_width:void 0,source_text:void 0,subtitle_text:void 0,title_text:void 0,xma_layout_type:void 0,xmas_template_type:void 0})]),replySourceType:m.ofNumber(c("LSMessageReplySourceType").NONE),replySourceTypeV2:m.ofNumber(c("LSMessageReplySourceTypeV2").NONE),senderId:e,snippetHasEmoji:!1,threadKey:f,threadType:m.ofNumber(1)}).then(function(c){var e=c[0];return a.messages_optimistic_context.add({externalAttachmentUrl:void 0,initiatingSource:void 0,markThreadRead:!0,messageId:void 0,offlineThreadingId:e,platformRef:void 0,platformToken:h,replySourceId:void 0,replySourceType:void 0,sendType:void 0,skipUrlPreviewGen:void 0,taskId:(l||(l=d("I64"))).of_string(e),threadAttributionSource:i,threadKey:f}).then(function(){return(j||(j=b("Promise"))).resolve([e,n])})})}function a(a,e){var g=(h||(h=c("useReStore")))(),k=d("MWPActor.react").useActor(),p=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();return n(function(){return function(h,n,q){var r=(l||(l=d("I64"))).to_string(k),s=function(a){var e=a[1],h=a[0];c("promiseDone")(window.fetch(q).then(function(a){return a.blob()}).then(function(a){return b("cr:6057").load().then(function(b){return{XComposerPhotoUploader:b,blob:a}})}).then(function(a){var k=a.XComposerPhotoUploader;a=a.blob;k=new k({concurrentLimit:3,onUploadFailure:function(a,b){return!0},onUploadProgress:function(a,b){},onUploadStart:function(a){c("promiseDone")(g.runInTransaction(function(a){return c("LSInsertNewMediaSendStoredProcedure")(c("LSFactory")(a),{attachmentType:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE),inMessageIndex:(l||(l=d("I64"))).zero,isSecure:!1,offlineAttachmentId:e,offlineThreadingId:h,sendByServer:!1,shouldTranscode:!1,useDoublePhase:!1})},"readwrite",void 0,void 0,f.id+":157"))},onUploadSuccess:function(a,b){a=b.response.payload.metadata[0];var i=a.image_id;if(i==null)return;c("promiseDone")(g.runInTransaction(function(a){return c("LSMarkSubJobCompletedV2StoredProcedure")(c("LSFactory")(a),{fbid:(l||(l=d("I64"))).of_string(i.toString()),offlineAttachmentId:e}).then(function(){return c("LSResumeMediaSendJobStoredProcedure")(c("LSFactory")(a),{jobId:h,pluginType:(l||(l=d("I64"))).zero})})},"readwrite",void 0,void 0,f.id+":182"))},retryLimit:1,uploadEndpoint:d("ActorURI").create(new(i||(i=c("URI")))(c("MercuryConfig").upload_url),r)});k.getAsyncUploadRequest([new File([a],"postback image.jpg",{type:"image/jpeg"})]).send();return(j||(j=b("Promise"))).resolve()}))},t=d("LSThreadAttributionTypeUtil").getSource(p,a);c("promiseDone")(g.runInTransaction(function(a){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(a),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,initiating_source:(a=e)!=null?a:void 0,mark_read:!0,power_up_style:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:m.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:m.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:t}),mailboxType:m.ofNumber(c("LSMailboxType").MESSENGER),senderId:k,snippet:h,text:h,threadKey:p,threadType:m.ofNumber(1)})},"readwrite",void 0,void 0,f.id+":225").then(function(a){return g.runInTransaction(function(a){return o(a,k,p,q,n,t,e).then(function(a){s(a)})},"readwrite",void 0,void 0,f.id+":255")}))}},[g,k,p])}g.usePostbackCtaHandler=a}),98);
__d("getMWLSOngoingCallServerInfoData",["ReQL"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("ReQL").fromTableAscending(a.tables.rtc_ongoing_calls_on_threads_v2).getKeyRange(b).map(function(a){return a.ongoingCallServerInfoData})}g["default"]=a}),98);
__d("MWLSStartPhoneCall",["$InternalEnum","I64","Int64Hooks","LSIntEnum","LSMessagingThreadTypeUtil","LSRtcCallState","MWPActor.react","MWThreadKey.react","Promise","ReQL","getMWLSOngoingCallServerInfoData","getRTCCallStateOfLSRTCCallState","promiseDone","react-compiler-runtime","recoverableViolation","useMWLSGetOngoingCallState","useRTWebCometStartCallCallback","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=b("$InternalEnum").Mirrored(["OngoingVideoCall","OngoingAudioCall"]);function a(){var a=d("react-compiler-runtime").c(10),e=(k||(k=c("useReStore")))(),f=c("useRTWebCometStartCallCallback")(),g=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),p=c("useMWLSGetOngoingCallState")(),q=d("MWPActor.react").useActor(),r,s;a[0]!==p||a[1]!==q||a[2]!==e||a[3]!==f||a[4]!==g?(r=function(a,k,l,r){var s=a?"video":"audio";c("promiseDone")((j||(j=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.tables.threads).getKeyRange(g)),d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.tables.participants,["contactId"]).getKeyRange(g).filter(function(a){return!(h||(h=d("I64"))).equal(a.contactId,q)}).map(o)),d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.tables.mi_act_mapping_table).getKeyRange(g).map(n))]).then(function(a){var m=a[0],n=a[1],o=a[2];if(m==null){c("recoverableViolation")("Cannot find thread when trying to call someone","rtc_www");return}return d("ReQL").firstAsync(c("getMWLSOngoingCallServerInfoData")(e,g)).then(function(a){return(j||(j=b("Promise"))).resolve(f({existingCall:p!=null&&a!=null?{call_state:c("getRTCCallStateOfLSRTCCallState")((i||(i=d("LSIntEnum"))).unwrapIntEnum(p),(i||(i=d("LSIntEnum"))).unwrapIntEnum(m.threadType)),initiator_fbid:null,server_info_data:a}:null,isE2eeMandated:d("LSMessagingThreadTypeUtil").isArmadilloSecure(m.threadType),mediaType:s,representedID:r,thread:{e2eeThreadID:o==null?void 0:(h||(h=d("I64"))).to_string(o),id:k,secureOneToOneThreadPeerId:n!=null&&(h||(h=d("I64"))).equal(m.threadType,(i||(i=d("LSIntEnum"))).ofNumber(15))?n:void 0,type:(i||(i=d("LSIntEnum"))).unwrapIntEnum(m.threadType)},trigger:l}))})}),void 0,m)},s=[q,f,g,e,p],a[0]=p,a[1]=q,a[2]=e,a[3]=f,a[4]=g,a[5]=r,a[6]=s):(r=a[5],s=a[6]);r=d("Int64Hooks").useCallbackInt64(r,s);s=void 0;p!=null&&(h||(h=d("I64"))).equal(p,(i||(i=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").AUDIO_GROUP_CALL))?s=l.OngoingAudioCall:p!=null&&(h||(h=d("I64"))).equal(p,(i||(i=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").VIDEO_GROUP_CALL))&&(s=l.OngoingVideoCall);var t;a[7]!==s||a[8]!==r?(t=[r,s],a[7]=s,a[8]=r,a[9]=t):t=a[9];return t}function m(a){c("recoverableViolation")("Error making a phone call","rtc_www",{error:a.Error})}function n(a){return a.jid}function o(a){return(h||(h=d("I64"))).to_string(a.contactId)}g.useMakeRTCCall=a}),98);
__d("MWLSWebUrlCtaHandler",["JSResourceForInteraction","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(3),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWInboxUrlWebviewDialog.react").__setRef("MWLSWebUrlCtaHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b);var e=b[0];a[1]!==e?(b=function(a){return e({htmlBlob:a},i)},a[1]=e,a[2]=b):b=a[2];return b}function i(){}g.useShowWebViewDialog=a}),98);
__d("MWMediaComposerRenderQpl",["LSGetAttachmentType","MAWLoggerUtils","MWMediaRenderQplUtils","QPLUserFlow","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=i.useEffect,k=i.useMemo,l=i.useRef;function a(a,b,e){var f;a=d("MAWLoggerUtils").getInstanceKeyFromId(a);b=d("LSGetAttachmentType").LSGetAttachmentTypeSyncButLessAccurate(b);c("QPLUserFlow").start((f=d("MWMediaRenderQplUtils")).event,{annotations:{string:{attachment_type:f.getAttachmentTypeStringFromEnum(b),content_type:f.deriveMessageContentTypeStringFromAttachmentTypeLessAccurate(b),entry_point:"composer_view",thread_type:f.getThreadTypeString(e)}},cancelOnUnload:!0,instanceKey:a,timeoutInMs:f.QPL_TIMEOUT})}function b(a,b){a=d("MAWLoggerUtils").getInstanceKeyFromId(a);c("QPLUserFlow").endCancel(d("MWMediaRenderQplUtils").event,{annotations:{string:{cancel_reason:b}},instanceKey:a})}function e(a,b){a=d("MAWLoggerUtils").getInstanceKeyFromId(a);c("QPLUserFlow").addPoint(d("MWMediaRenderQplUtils").event,b,{instanceKey:a})}function f(a){var b=d("MAWLoggerUtils").getInstanceKeyFromId(a.offlineAttachmentId),e=l(!1);c("QPLUserFlow").addAnnotations(d("MWMediaRenderQplUtils").event,{string:{attachment_type:d("MWMediaRenderQplUtils").getAttachmentTypeStringFromEnum(a.attachmentType),content_type:d("MWMediaRenderQplUtils").deriveMessageContentTypeStringFromAttachmentTypeLessAccurate(a.attachmentType)}},{instanceKey:b});var f=k(function(){return babelHelpers["extends"]({},d("MWMediaRenderQplUtils").createQplFlowCommon(d("MWMediaRenderQplUtils").event,b,e))},[]);j(function(){return function(){e.current===!1&&(f==null?void 0:f.getInstanceKey())!=null&&(f==null?void 0:f.endCancel(706))}},[f]);return f}g.startMediaComposerRenderQpl=a;g.endCancelMediaComposerRenderQpl=b;g.addPointMediaComposerRenderQpl=e;g.useMediaComposerRenderQpl=f}),98);
__d("MWSharedMediaManagerUtils",["I64","LSGetAttachmentType","LSIntEnum","LSMailboxType","MWPreloadableQueries","Promise","ReQLSuspense","asyncToGeneratorRuntime","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;function l(a){return new(k||(k=b("Promise")))(function(b){var c=new Image();c.onload=function(){return b({previewHeight:c.height,previewWidth:c.width})};c.onerror=function(){return b()};c.src=a})}function m(a){return new(k||(k=b("Promise")))(function(b){var c=document.createElement("video");c.onloadedmetadata=function(){return b({previewHeight:c.videoHeight,previewWidth:c.videoWidth})};c.onerror=function(){return b()};c.src=a})}function n(a,b){if(b==null||a==null)return;var c=Math.floor(a.previewHeight*b.previewWidth/a.previewWidth);return c>=b.previewHeight?{previewHeight:(i||(i=d("I64"))).of_float(c),previewWidth:i.of_float(b.previewWidth)}:{previewHeight:(i||(i=d("I64"))).of_float(b.previewHeight),previewWidth:i.of_float(a.previewWidth*b.previewHeight/a.previewHeight)}}function a(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,d){var e=(yield q(c,d));yield a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=(yield s(a,e));yield (k||(k=b("Promise"))).all(c.map(function(b){return a.media_staging.add(b)}))});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":102")});return o.apply(this,arguments)}function e(a,b,c){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,d){var e=(yield q(c,d));yield a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=(yield s(a,e));yield (k||(k=b("Promise"))).all(c.map(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(c){(yield a.media_staging.get(c.offlineAttachmentId))!=null&&(yield a.media_staging.upsert([c.offlineAttachmentId],c));return(k||(k=b("Promise"))).resolve()});return function(a){return c.apply(this,arguments)}}()))});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":126")});return p.apply(this,arguments)}function q(a,b){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e){a=(yield (k||(k=b("Promise"))).all(a.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.file,f=a.offlineAttachmentId,g=a.attachmentType!=null?(j||(j=d("LSIntEnum"))).ofNumber(a.attachmentType):yield d("LSGetAttachmentType").LSGetAttachmentType(b),h=URL.createObjectURL(b),k;a.previewHeight!=null&&a.previewWidth!=null?k={previewHeight:a.previewHeight,previewWidth:a.previewWidth}:b.type.includes("video/")?k=(yield m(h)):k=(yield l(h));g={attachmentType:g,durationMs:void 0,fbid:void 0,filename:b.name,fileSize:(i||(i=d("I64"))).of_int32(b.size),hasError:!1,isHd:a.isHd,isSent:!1,mailboxType:(j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxType").MESSENGER),mimeType:b.type,offlineAttachmentId:f,offlineThreadingId:void 0,previewUrl:h,progress:0,threadKey:e};return{dimensions:k,mediaStaging:g}});return function(b){return a.apply(this,arguments)}}())));return a});return r.apply(this,arguments)}function s(a,b){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield a.sync_groups.get((i||(i=d("I64"))).of_float(1)));var c;if((a==null?void 0:a.syncParams)!=null){a=JSON.parse(a.syncParams);var e=a.preview_height;a=a.preview_width;c={previewHeight:e,previewWidth:a}}return b.map(function(a){var b=a.dimensions;a=a.mediaStaging;return babelHelpers["extends"]({},a,n(b,c))})});return t.apply(this,arguments)}function u(a,b){return a.runInTransaction(function(a){return a.media_staging["delete"](b)},"readwrite",void 0,void 0,f.id+":236")}function v(a){var b=d("react-compiler-runtime").c(4),e=(h||(h=c("useReStore")))(),g,i;b[0]!==e||b[1]!==a.threadKey?(g=function(){return d("MWPreloadableQueries").getMediaStagingQuery(e,a.threadKey)},i=[e,a.threadKey],b[0]=e,b[1]=a.threadKey,b[2]=g,b[3]=i):(g=b[2],i=b[3]);return d("ReQLSuspense").useArray(g,i,f.id+":246")}function w(a){if(a.mimeType==="image/gif")return!0;else return a.mimeType==="image/webp"}g.insertMediaStaging=a;g.updateMediaStaging=e;g.deleteMediaStaging=u;g.useMediaStaging=v;g.isVideoLikeImage=w}),98);
__d("WorkFailedSendMessageFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("6352");b=d("FalcoLoggerInternal").create("work_failed_send_message",a);e=b;g["default"]=e}),98);
__d("MWMediaManager",["FBLogger","I64","Int64Hooks","LSIntEnum","LSMessagingThreadTypeUtil","MWChatFilePreProcessingErrorToast.react","MWChatFileUploadErrorDialog.react","MWMediaComposerRenderQpl","MWPActor.react","MWPBumpEntityKey","MWSharedMediaManagerUtils","MessagingAttachmentType","OfflineThreadingId","Promise","WorkFailedSendMessageFalcoEvent","cr:8525","emptyFunction","gkx","promiseDone","react-compiler-runtime","requireDeferred","useMWXAlertDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=c("requireDeferred")("MWOpenMediaManagerUtils").__setRef("MWMediaManager"),m=function(){if(b("cr:8525")==null){c("FBLogger")("messenger_web_media").warn("Unsupported thread type for media upload");return(k||(k=b("Promise"))).resolve(null)}return b("cr:8525").load()},n=c("gkx")("24138")?75:25;function o(a,c,d){if(c)return m().then(function(c){return(k||(k=b("Promise"))).resolve((c=c==null?void 0:c.preprocessV2(a,d))!=null?c:[])});else return l.load().then(function(b){return b.preprocess(a)})}function p(a,b,c){for(var e=0;e<a.length;e++){var f=a[e],g=c(f,b);if(f.size>g*1024*1024){f=q(f.size);d("MWPBumpEntityKey").bumpEntityKeyWithAppId("media_sends","file_size_exceeded."+(b?"secure":"open"));d("MWPBumpEntityKey").bumpEntityKeyWithAppId("media_sends","file_size_exceeded."+(b?"secure":"open")+"."+f);return g}}return null}function q(a){return a<=30*1024*1024?"30MB":a<=50*1024*1024?"50MB":a<=75*1024*1024?"75MB":a<=100*1024*1024?"100MB":a<=150*1024*1024?"150MB":a<=200*1024*1024?"200MB":a<=250*1024*1024?"250MB":a<=500*1024*1024?"500MB":a<=1024*1024*1024?"1GB":"1GB+"}function a(a){var e=d("react-compiler-runtime").c(38),f=a.chatSupportUserId,g=a.chatSupportUserNonce,n=a.getMaxAttachmentSizeInMB,q=a.isChatSupportUser,B=a.maxNumberOfAttachments,C=a.onUploadFailure,D=a.onUploadStart,E=a.onUploadSuccess,F=a.showUploadFailureToast,G=a.thread,H=a.validateFileName,I=n===void 0?A:n,J=(j||(j=c("useReStore")))(),K=c("useMWXAlertDialog")();e[0]!==G.threadType?(a=d("LSMessagingThreadTypeUtil").isArmadilloSecure(G.threadType),e[0]=G.threadType,e[1]=a):a=e[1];var L=a,M=d("MWSharedMediaManagerUtils").useMediaStaging(G),N=M.length,O=d("MWPActor.react").useActor();e[2]!==O||e[3]!==f||e[4]!==g||e[5]!==J||e[6]!==I||e[7]!==q||e[8]!==L||e[9]!==B||e[10]!==N||e[11]!==C||e[12]!==D||e[13]!==E||e[14]!==K||e[15]!==F||e[16]!==G||e[17]!==H?(n=function(a,e){var i=p(a,L,I);if(i!=null){K(d("MWChatFileUploadErrorDialog.react").maxFileSizeExceeded(i),c("emptyFunction"));return}if(B!=null&&N+a.length>B){c("gkx")("23249")?(K(d("MWChatFileUploadErrorDialog.react").maxFilesNumberExceeded(B),c("emptyFunction")),c("WorkFailedSendMessageFalcoEvent").log(z)):K(d("MWChatFileUploadErrorDialog.react").maxMediaNumberExceeded(B),c("emptyFunction"));return}if(H!=null)for(i=0;i<a.length;i++){var j=a[i];if(!H(j)){K(d("MWChatFileUploadErrorDialog.react").unsupportedFile(),c("emptyFunction"));return}}var n=d("OfflineThreadingId").createForItemsInOrder(a);n.forEach(function(a){var b=a[0];a=a[1];d("MWMediaComposerRenderQpl").startMediaComposerRenderQpl(a,b,G);d("MWMediaComposerRenderQpl").addPointMediaComposerRenderQpl(a,"preprocess_start")});c("promiseDone")(o(n,L,e)["catch"](function(){F(d("MWChatFilePreProcessingErrorToast.react").invalidFileFormat.title,d("MWChatFilePreProcessingErrorToast.react").invalidFileFormat.body);n.forEach(y);return(k||(k=b("Promise"))).resolve([])}).then(function(a){a.forEach(x);c("promiseDone")(d("MWSharedMediaManagerUtils").insertMediaStaging(J,a,G.threadKey));a.forEach(w);var b=G.threadKey;return L?m().then(function(c){return c==null?void 0:c.upload(J,b,a)}):l.load().then(function(c){return c.upload(J,b,a,F,D,E,C,q,f,g,(h||(h=d("I64"))).to_string(O))})}))},a=[O,f,g,J,I,q,L,B,N,C,D,E,K,F,G,H],e[2]=O,e[3]=f,e[4]=g,e[5]=J,e[6]=I,e[7]=q,e[8]=L,e[9]=B,e[10]=N,e[11]=C,e[12]=D,e[13]=E,e[14]=K,e[15]=F,e[16]=G,e[17]=H,e[18]=n,e[19]=a):(n=e[18],a=e[19]);n=d("Int64Hooks").useCallbackInt64(n,a);e[20]!==J||e[21]!==L?(a=function(a){c("promiseDone")(d("MWSharedMediaManagerUtils").deleteMediaStaging(J,a).then(function(){if(L&&b("cr:8525")!=null)return b("cr:8525").load().then(function(b){b.MAWMediaManagerAttachmentsV2["delete"](a)})}))},e[20]=J,e[21]=L,e[22]=a):a=e[22];a=a;var P;e[23]!==J||e[24]!==M?(P=function(){var a=M.map(v);a.forEach(function(a){d("MWSharedMediaManagerUtils").deleteMediaStaging(J,a)["catch"](u)})},e[23]=J,e[24]=M,e[25]=P):P=e[25];P=P;var Q;e[26]!==J||e[27]!==L||e[28]!==M||e[29]!==F||e[30]!==G.threadKey?(Q=function(a){if(!L)return;c("promiseDone")(m().then(function(e){if(e==null)return;var f=M.map(function(a){var b;if(!(h||(h=d("I64"))).equal(a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))return null;b=(b=e.MAWMediaManagerAttachmentsV2.get(a.offlineAttachmentId))==null?void 0:b.originalFile;if(b==null)return null;b=[b,a.offlineAttachmentId];return b}).filter(Boolean);if(f.length===0)return;c("promiseDone")(o(f,L,a)["catch"](function(){F(d("MWChatFilePreProcessingErrorToast.react").invalidFileFormat.title,d("MWChatFilePreProcessingErrorToast.react").invalidFileFormat.body);f.forEach(t);return(k||(k=b("Promise"))).resolve([])}).then(function(a){a.forEach(s);c("promiseDone")(d("MWSharedMediaManagerUtils").updateMediaStaging(J,a,G.threadKey));a.forEach(r);var b=G.threadKey;return e==null?void 0:e.upload(J,b,a)}))}))},e[26]=J,e[27]=L,e[28]=M,e[29]=F,e[30]=G.threadKey,e[31]=Q):Q=e[31];Q=d("Int64Hooks").useCallbackInt64(Q);var R;e[32]!==a||e[33]!==n||e[34]!==M||e[35]!==Q||e[36]!==P?(R={handleFileRemove:a,handleFileSelect:n,mediaStaging:M,onHdMediaToggled:Q,resetAttachments:P},e[32]=a,e[33]=n,e[34]=M,e[35]=Q,e[36]=P,e[37]=R):R=e[37];return R}function r(a){d("MWMediaComposerRenderQpl").addPointMediaComposerRenderQpl(a.offlineAttachmentId,"media_staging_insert_success")}function s(a){d("MWMediaComposerRenderQpl").addPointMediaComposerRenderQpl(a.offlineAttachmentId,"preprocess_success")}function t(a){a=a[1];d("MWMediaComposerRenderQpl").endCancelMediaComposerRenderQpl(a,"invalid-file-format")}function u(a){c("FBLogger")("messenger_web_media").catching(a).mustfix("Error deletting media staging.")}function v(a){return a.offlineAttachmentId}function w(a){d("MWMediaComposerRenderQpl").addPointMediaComposerRenderQpl(a.offlineAttachmentId,"media_staging_insert_success")}function x(a){d("MWMediaComposerRenderQpl").addPointMediaComposerRenderQpl(a.offlineAttachmentId,"preprocess_success")}function y(a){a=a[1];d("MWMediaComposerRenderQpl").endCancelMediaComposerRenderQpl(a,"invalid-file-format")}function z(){return{breaking_rule:"",event:"NUMBER_OF_ATTACHMENTS_LIMIT_REACHED"}}function A(){return n}g.convertIntegerSizeToStringBucket=q;g.useMediaManager=a}),98);
__d("MWMediaTraceHandler",["I64","LSAppendDataTraceAddonStoredProcedure","LSDataTraceCheckPoint","LSDataTraceType","LSFactory","LSIntEnum","MAWTimeUtils","WATimeUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b){return a.data_trace_meta.add({contextOne:void 0,contextThree:void 0,contextTwo:void 0,foregroundTimestampMs:(h||(h=d("I64"))).zero,initTimestampMs:d("MAWTimeUtils").toTimestamp(d("WATimeUtils").unixTime()),predefinedId:void 0,shouldFlush:!1,traceId:b,traceType:(i||(i=d("LSIntEnum"))).ofNumber(c("LSDataTraceType").TASK)})}function a(a,b,e,f){return j(a,b).then(function(){return c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:(i||(i=d("LSIntEnum"))).ofNumber(c("LSDataTraceCheckPoint").RICH_MEDIA_UPLOAD_START),dataTraceId:b,syncChannel:(h||(h=d("I64"))).neg_one,tags:h.to_string(e)+","+h.to_string(f)})})}g.logMediaSendStart=a}),98);
__d("MWMessageDeliverySentTimestamp",["fbt","I64"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("I64"))).of_int32(60),k=i.of_int32(60*60),l=i.of_int32(24*60*60),m=i.of_int32(7*24*60*60);function a(a,b){b=(i||(i=d("I64"))).of_float(b.getTime()/1e3);a=i.div(a,i.of_int32(1e3));b=i.sub(b,a);a=h._(/*BTDS*/"__JHASH__FdnMQ3ayYbi__JHASH__");if((i||(i=d("I64"))).lt(b,j))return a;else if((i||(i=d("I64"))).lt(b,k)){var c=(i||(i=d("I64"))).to_string(i.div(b,j));return h._(/*BTDS*/"__JHASH__wurNpoApU1z__JHASH__",[h._param("minutes",c)])}else if((i||(i=d("I64"))).lt(b,l)){c=(i||(i=d("I64"))).to_string(i.div(b,k));return h._(/*BTDS*/"__JHASH__Og6TIDKGh51__JHASH__",[h._param("hours",c)])}else if((i||(i=d("I64"))).lt(b,m)){c=(i||(i=d("I64"))).to_string(i.div(b,l));return h._(/*BTDS*/"__JHASH___ys48wQwNKi__JHASH__",[h._param("days",c)])}else return a}g.getSentTitleWithTimestamp=a}),226);
__d("MWMessageListMediaPressableContainer.react",["I64","LSIntEnum","LSMediaUrlAttachment","MWPThreadCapabilitiesContext","MWXPressable.react","MessagingAttachmentType","cr:4509","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react")),l=h.useEffect;function a(a){var e=d("react-compiler-runtime").c(32),f=a.allowClickEventPropagation,g=a.ariaLabel,h=a.attachment,m=a.children,n=a.disabled,o=a.linkProps_,p=a.mediaRenderQpl,q=a.onHoverIn,r=a.onPress,s=a.overlayDisabled,t=a.testid;a=a.xstyle;s=s===void 0?!1:s;var u=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();u=u.blurMediaEnabled;var v=c("gkx")("24098")&&u;u=(i||(i=d("I64"))).equal(h.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(i||(i=d("I64"))).equal(h.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE));var w=(i||(i=d("I64"))).equal(h.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)),x=u?"Image":w?"Video":"Media",y,z;e[0]!==v||e[1]!==p||e[2]!==x?(y=function(){p==null?void 0:p.addPoint("render-message-list-media-pressable-container",{bool:{is_blur_media:v},string:{media_type:x}})},z=[v,p,x],e[0]=v,e[1]=p,e[2]=x,e[3]=y,e[4]=z):(y=e[3],z=e[4]);l(y,z);if(b("cr:4509")!=null&&(u||w)&&v){y=w?"video":"image";e[5]!==h?(z=d("LSMediaUrlAttachment").previewUrl(h),e[5]=h,e[6]=z):z=e[6];e[7]!==g||e[8]!==m||e[9]!==n||e[10]!==o||e[11]!==x||e[12]!==r||e[13]!==s||e[14]!==y||e[15]!==z||e[16]!==t||e[17]!==a?(u=k.jsx(b("cr:4509"),{ariaLabel:g,disabled:n,linkProps:o,mediaType:x,onPress:r,overlayDisabled:s,testid:void 0,type:y,url:z,xstyle:a,children:m}),e[7]=g,e[8]=m,e[9]=n,e[10]=o,e[11]=x,e[12]=r,e[13]=s,e[14]=y,e[15]=z,e[16]=t,e[17]=a,e[18]=u):u=e[18];return u}e[19]!==r?(w=function(){return r()},e[19]=r,e[20]=w):w=e[20];e[21]!==f||e[22]!==g||e[23]!==m||e[24]!==n||e[25]!==o||e[26]!==q||e[27]!==s||e[28]!==w||e[29]!==t||e[30]!==a?(h=k.jsx(c("MWXPressable.react"),{allowClickEventPropagation:f,"aria-label":g,disabled:n,linkProps:o,onHoverIn:q,onPress:w,overlayDisabled:s,testid:void 0,xstyle:a,children:m}),e[21]=f,e[22]=g,e[23]=m,e[24]=n,e[25]=o,e[26]=q,e[27]=s,e[28]=w,e[29]=t,e[30]=a,e[31]=h):h=e[31];return h}g["default"]=a}),98);
__d("MWV2ComposerMediaProgressBar.react",["MWPColorUtils","react","react-compiler-runtime","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(29),e=a.height;a=a.mediaStaging;var f=c("useMWPThreadTheme")();f=f.threadTheme;var g;b[0]!==a.hasError||b[1]!==f?(g=a.hasError?"var(--negative)":d("MWPColorUtils").int64ToHex(f.fallbackColor),b[0]=a.hasError,b[1]=f,b[2]=g):g=b[2];f=g;g=Math.ceil(a.progress*100);var h=(e/2).toString();h="M 0,"+h+" L 100,"+h;if(a.progress===1||a.progress===0)return null;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(a="x1ey2m1c x17qophe x10l6tqk xh8yej3",b[3]=a):a=b[3];var j;b[4]!==e?(j=e.toString(),b[4]=e,b[5]=j):j=b[5];var k;b[6]!==j?(k={height:j},b[6]=j,b[7]=k):k=b[7];j="0 0 100 "+e.toString();var l;b[8]!==e?(l=e.toString(),b[8]=e,b[9]=l):l=b[9];var m;b[10]!==h||b[11]!==l?(m=i.jsx("path",{d:h,stroke:"rgba(0,0,0,.5)",strokeLinecap:"round",strokeWidth:l}),b[10]=h,b[11]=l,b[12]=m):m=b[12];l=g===0?0:e;b[13]!==l?(e=l.toString(),b[13]=l,b[14]=e):e=b[14];l=100-g|0;b[15]!==l?(g=l.toString(),b[15]=l,b[16]=g):g=b[16];b[17]!==g?(l={strokeDasharray:"100",strokeDashoffset:g,transition:"stroke-dashoffset .5s, stroke .5s"},b[17]=g,b[18]=l):l=b[18];b[19]!==f||b[20]!==h||b[21]!==l||b[22]!==e?(g=i.jsx("path",{d:h,stroke:f,strokeLinecap:"round",strokeWidth:e,style:l}),b[19]=f,b[20]=h,b[21]=l,b[22]=e,b[23]=g):g=b[23];b[24]!==g||b[25]!==k||b[26]!==j||b[27]!==m?(f=i.jsxs("svg",{"aria-hidden":!0,className:a,preserveAspectRatio:"none",style:k,viewBox:j,children:[m,g]}),b[24]=g,b[25]=k,b[26]=j,b[27]=m,b[28]=f):f=b[28];return f}g["default"]=a}),98);
__d("MWV2AttachmentProgressBar.react",["MWV2ComposerMediaProgressBar.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(7);a=a.attachment;var e=a.offlineAttachmentId,g=(h||(h=c("useReStore")))();b[0]!==g||b[1]!==e?(a=function(){return e!=null?d("ReQL").fromTableAscending(g.tables.media_staging).getKeyRange(e):d("ReQL").empty()},b[0]=g,b[1]=e,b[2]=a):a=b[2];var i;b[3]!==e?(i=[e],b[3]=e,b[4]=i):i=b[4];a=d("ReQLSuspense").useFirst(a,i,f.id+":24");if(a!=null&&a.isSent){b[5]!==a?(i=j.jsx(c("MWV2ComposerMediaProgressBar.react"),{height:5,mediaStaging:a}),b[5]=a,b[6]=i):i=b[6];return i}return null}g["default"]=a}),98);
__d("useMWMessageListAttachmentDimensions",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useMemo;function a(a,b){var c=d("react-compiler-runtime").c(6);bb0:{var e=b.previewWidthLarge,f=b.previewHeightLarge;if(e!=null&&f!=null&&a==="Inbox"){c[0]!==f||c[1]!==e?(a=[e,f],c[0]=f,c[1]=e,c[2]=a):a=c[2];f=a;break bb0}c[3]!==b.previewHeight||c[4]!==b.previewWidth?(e=[b.previewWidth,b.previewHeight],c[3]=b.previewHeight,c[4]=b.previewWidth,c[5]=e):e=c[5];f=e}return f}g["default"]=a}),98);
__d("MWV2ChatImage.react",["fbt","I64","LSAuthorityLevel","LSIntEnum","MWChatImageInsetShadow.react","MWLSThreadDisplayContext","MWMessageListMediaPressableContainer.react","MWPBumpEntityKey","MWPMessageListImage.react","MWV2AttachmentProgressBar.react","MWV2LogMessageClick","MWXMessageBubbleCornerStyles.react","MessagingAttachmentType","gkx","justknobx","react","react-compiler-runtime","useGetMediaGroupInformation","useGetMediaGroupStyles","useMWMediaViewerOpenQPLLogger","useMWMessageListAttachmentDimensions","useMWV2FocusRowAfterClosingPushView","useMWV2MediaViewerShowDialog","useMWV2MediaViewerURL","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));b=l;b.useCallback;var n=b.useEffect,o={container:{display:"x78zum5",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},containerMinHeight:{minHeight:"xe0p6wg",$$css:!0}};function a(a){var b,e,f=d("react-compiler-runtime").c(84),g=a.attachment,l=a.connectBottom,r=a.connectTop,s=a.getPreviewUrl,t=a.isGroupedImage,u=a.isSecure,v=a.maxHeight,w=a.maxWidth,x=a.mediaRenderQpl,y=a.message,z=a.navigateToRouteForMediaViewer,A=a.onPressOverride,B=a.outgoing,C=a.renderUnsupportedAttachment,D=a.shouldBlur;f[0]!==x?(a=function(){x==null?void 0:x.endFail("load-image-error")},f[0]=x,f[1]=a):a=f[1];a=a;var E;f[2]!==x?(E=function(){x==null?void 0:x.endSuccess()},f[2]=x,f[3]=E):E=f[3];E=E;var F=(i||(i=c("useReStore")))(),G=(b=z)!=null?b:!0;b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();b=c("useMWMessageListAttachmentDimensions")(b,g);var H=b[0];b=b[1];var I=c("useMWV2MediaViewerURL")(g),J=B===!0?"right":"left",K;f[4]!==l||f[5]!==r||f[6]!==J?(K=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles({align:J,connectBottom:l,connectTop:r}),f[4]=l,f[5]=r,f[6]=J,f[7]=K):K=f[7];J=K;if(f[8]!==b){K=(j||(j=d("I64"))).to_float((K=b)!=null?K:(j||(j=d("I64"))).zero);f[8]=b;f[9]=K}else K=f[9];if(f[10]!==H){var L;L=(j||(j=d("I64"))).to_float((L=H)!=null?L:(j||(j=d("I64"))).zero);f[10]=H;f[11]=L}else L=f[11];K=d("useGetMediaGroupStyles").useGetMediaGroupTileImageRatios(t,K,L);L=K.resizeRatio;K=K.scaleRatio;H=H!=null?(j||(j=d("I64"))).to_float(H)*L:void 0;b=b!=null?(j||(j=d("I64"))).to_float(b)*L:void 0;L=L>1;e=t===!1?v:(L===!0?(e=b)!=null?e:0:v)*K;L=t===!1?w:(L?(L=H)!=null?L:0:w)*K;K=c("gkx")("23009");var M=c("useMWV2FocusRowAfterClosingPushView")();z=c("useMWV2MediaViewerShowDialog")((z=z)!=null?z:!0);var N=z[0],O=z[1],P=c("useGetMediaGroupInformation")(y,u===!0,x);z=d("useMWMediaViewerOpenQPLLogger").useMWMediaViewerOpenQPLLogger();var Q=z.startFlow;f[12]!==g||f[13]!==s||f[14]!==x?(z=s(g,"MWV2ChatImage",x),f[12]=g,f[13]=s,f[14]=x,f[15]=z):z=f[15];var R=z;f[16]!==x||f[17]!==D||f[18]!==R?(s=function(){R!=null&&R.length>0&&(x==null?void 0:x.addPoint("render-chat-image",{bool:{has_blur:D}}))},z=[x,D,R],f[16]=x,f[17]=D,f[18]=R,f[19]=s,f[20]=z):(s=f[19],z=f[20]);n(s,z);if(R==null||R.length===0){x==null?void 0:x.endFail("empty_preview_url");f[21]!==g||f[22]!==C?(s=C!=null?C(g):null,f[21]=g,f[22]=C,f[23]=s):s=f[23];return s}f[24]!==I||f[25]!==y.authorityLevel||f[26]!==G||f[27]!==R?(z=G&&(j||(j=d("I64"))).gt(y.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL))?{passthroughProps:{origSrc:R},url:I}:void 0,f[24]=I,f[25]=y.authorityLevel,f[26]=G,f[27]=R,f[28]=z):z=f[28];C=z;f[29]!==g||f[30]!==F||f[31]!==u||f[32]!==P||f[33]!==y||f[34]!==A||f[35]!==M||f[36]!==G||f[37]!==N||f[38]!==Q?(s=function(){if(A)A();else{var a;d("MWV2LogMessageClick").log(F,y,28);Q({attachmentType:"IMAGE",entryPoint:"thread_view",isSecure:(a=u)!=null?a:!1});M(q);P!=null&&d("MWPBumpEntityKey").bumpEntityKeyWithAppId("maw.thread","image_group_click_"+P.tileSize+"_tile");if(!G)return N({attachment:g},p)}},f[29]=g,f[30]=F,f[31]=u,f[32]=P,f[33]=y,f[34]=A,f[35]=M,f[36]=G,f[37]=N,f[38]=Q,f[39]=s):s=f[39];I=s;z=void 0;t===!0&&P!=null&&c("gkx")("9576")&&(P.groupSize===2?z=B?P.groupIndex%2===0?"start":"end":P.groupIndex%2===0?"end":"start":P.groupSize===3&&(z=B?P.groupIndex%2===1?"start":"end":P.groupIndex%2===1?"end":"start"));f[40]!==g.attachmentType||f[41]!==g.titleText?(s=g.titleText==null&&(j||(j=d("I64"))).equal(g.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))?h._(/*BTDS*/"__JHASH__pU-qp0o0-Iv__JHASH__"):h._(/*BTDS*/"__JHASH__mrw3CpFXi7r__JHASH__"),f[40]=g.attachmentType,f[41]=g.titleText,f[42]=s):s=f[42];s=s;var S;f[43]!==y.authorityLevel?(S=(j||(j=d("I64"))).le(y.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL)),f[43]=y.authorityLevel,f[44]=S):S=f[44];var T;f[45]!==O||f[46]!==G?(T=function(){if(!G)return O()},f[45]=O,f[46]=G,f[47]=T):T=f[47];var U;f[48]===Symbol["for"]("react.memo_cache_sentinel")?(U=c("justknobx")._("2723")&&o.containerMinHeight,f[48]=U):U=f[48];f[49]!==J?(U=[o.container,J,U],f[49]=J,f[50]=U):U=f[50];K=g.titleText!=null&&K?g.titleText:s;s=t===!0&&c("gkx")("9576")?v:void 0;v=t===!0&&c("gkx")("9576")?w:void 0;f[51]!==g||f[52]!==l||f[53]!==r||f[54]!==b||f[55]!==e||f[56]!==L||f[57]!==a||f[58]!==E||f[59]!==B||f[60]!==z||f[61]!==D||f[62]!==K||f[63]!==s||f[64]!==v||f[65]!==R||f[66]!==H?(t=m.jsx(d("MWPMessageListImage.react").MWPMessageListImage,{alt:K,attachment:g,connectBottom:l,connectTop:r,height:b,maxHeight:e,maxWidth:L,onError:a,onLoad:E,outgoing:B,overlayAlign:z,overlayHeight:s,overlayWidth:v,shouldBlur:D,src:R,width:H}),f[51]=g,f[52]=l,f[53]=r,f[54]=b,f[55]=e,f[56]=L,f[57]=a,f[58]=E,f[59]=B,f[60]=z,f[61]=D,f[62]=K,f[63]=s,f[64]=v,f[65]=R,f[66]=H,f[67]=t):t=f[67];f[68]!==g||f[69]!==y.authorityLevel?(w=(j||(j=d("I64"))).le(y.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL))?m.jsx(c("MWV2AttachmentProgressBar.react"),{attachment:g}):null,f[68]=g,f[69]=y.authorityLevel,f[70]=w):w=f[70];f[71]!==J?(l=m.jsx(c("MWChatImageInsetShadow.react"),{xstyle:J}),f[71]=J,f[72]=l):l=f[72];f[73]!==g||f[74]!==C||f[75]!==x||f[76]!==I||f[77]!==S||f[78]!==T||f[79]!==U||f[80]!==t||f[81]!==w||f[82]!==l?(r=m.jsxs(c("MWMessageListMediaPressableContainer.react"),{attachment:g,disabled:S,linkProps_:C,mediaRenderQpl:x,onHoverIn:T,onPress:I,testid:void 0,xstyle:U,children:[t,w,l]},g.attachmentFbid),f[73]=g,f[74]=C,f[75]=x,f[76]=I,f[77]=S,f[78]=T,f[79]=U,f[80]=t,f[81]=w,f[82]=l,f[83]=r):r=f[83];return r}function p(){}function q(){return!0}g["default"]=a}),226);
__d("MWV2ChatEmojiHotLike.react",["LSHotEmojiSize","MessengerHotLikeSVGReact.bs","gkx","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={largeHotLike:{height:"x1wkxgih",width:"xygnafs",$$css:!0},likePreview:{display:"x78zum5","float":"x1guec7k",height:"x1dnml7z",width:"x7tvc40",$$css:!0},likePreviewV2:{display:"x78zum5",height:"xsdox4t",paddingTop:"x1yrsyyn",paddingBottom:"x10b6aqq",width:"x1useyqa",$$css:!0},mediumHotLike:{height:"x1to3lk4",width:"xjzaux3",$$css:!0},noCustomLikePreview:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(6),e=a.hotEmojiSize;a=a.xstyle;var f;b[0]!==e||b[1]!==a?(f=(h||(h=c("stylex"))).props([c("gkx")("23249")?[k.likePreview,k.noCustomLikePreview]:[k.likePreviewV2,e===c("LSHotEmojiSize").MEDIUM&&k.mediumHotLike,e===c("LSHotEmojiSize").LARGE&&k.largeHotLike],a]),b[0]=e,b[1]=a,b[2]=f):f=b[2];b[3]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(d("MessengerHotLikeSVGReact.bs").MessengerHotLikeSVGReact,{color:"var(--mwp-primary-theme-color)"}),b[3]=e):e=b[3];b[4]!==f?(a=j.jsx("div",babelHelpers["extends"]({"aria-label":"Like, thumbs up"},f,{role:"img",children:e})),b[4]=f,b[5]=a):a=b[5];return a}g["default"]=a}),98);
__d("getMWHotlikeSizeFromStickerId",["LSHotEmojiSize","StickerConstants"],(function(a,b,c,d,e,f,g){"use strict";var h=(b={},b[c("StickerConstants").HOT_LIKE_SMALL_STICKER_ID]=c("LSHotEmojiSize").SMALL,b[c("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID]=c("LSHotEmojiSize").MEDIUM,b[c("StickerConstants").HOT_LIKE_LARGE_STICKER_ID]=c("LSHotEmojiSize").LARGE,b);function a(a){return(a=h[a])!=null?a:c("LSHotEmojiSize").NONE}g["default"]=a}),98);
__d("getMWIsDefaultHotlikeStickerId",["StickerConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return a===c("StickerConstants").HOT_LIKE_SMALL_STICKER_ID||a===c("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID||a===c("StickerConstants").HOT_LIKE_LARGE_STICKER_ID}g["default"]=a}),98);
__d("MWV2Sticker.react",["I64","MAWImageUtils","MWChatImageSize","MWLSThreadDisplayContext","MWV2ChatEmojiHotLike.react","Sticker.react","getMWHotlikeSizeFromStickerId","getMWIsDefaultHotlikeStickerId","gkx","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));b=i;var l=b.useEffect;b.useMemo;function m(a){var b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),c;b=b!=null?b==="Inbox"?.75:.5:.5;a<60?c=1:a>d("MAWImageUtils").STICKER_THUMBNAIL_MAX_SIZE?c=d("MAWImageUtils").STICKER_THUMBNAIL_MAX_SIZE/a:c=b;return c}function a(a){var b,e=d("react-compiler-runtime").c(33),f=a.attachment,g=a.getPreviewUrl,i=a.mediaRenderQpl,n=a.renderUnsupportedAttachment,o=a.scale;a=a.xstyle;var p;e[0]!==f||e[1]!==g||e[2]!==i?(p=g(f,"MWV2Sticker",i),e[0]=f,e[1]=g,e[2]=i,e[3]=p):p=e[3];var q=p;e[4]!==f.previewHeight?(g=f.previewHeight!=null?(j||(j=d("I64"))).to_int32(f.previewHeight):void 0,e[4]=f.previewHeight,e[5]=g):g=e[5];p=g;e[6]!==f.previewWidth?(g=f.previewWidth!=null?(j||(j=d("I64"))).to_int32(f.previewWidth):void 0,e[6]=f.previewWidth,e[7]=g):g=e[7];g=g;b=m((b=p)!=null?b:120);var r=g!=null&&p!=null;r=d("MWChatImageSize").useImageSize(q,r);var s;e[8]!==p||e[9]!==r||e[10]!==g?(s=g!=null&&p!=null?[g,p]:r!=null?[r.width,r.height]:[24,24],e[8]=p,e[9]=r,e[10]=g,e[11]=s):s=e[11];p=s;r=p[0];g=p[1];e[12]!==i||e[13]!==q?(s=function(){q==null||q.length===0?i==null?void 0:i.endFail("load-image-error"):(i==null?void 0:i.addPoint("render-sticker"),i==null?void 0:i.endSuccess())},p=[q,i],e[12]=i,e[13]=q,e[14]=s,e[15]=p):(s=e[14],p=e[15]);l(s,p);if(c("getMWIsDefaultHotlikeStickerId")(f.attachmentFbid)&&!c("gkx")("23249")){e[16]!==f.attachmentFbid?(s=c("getMWHotlikeSizeFromStickerId")(f.attachmentFbid),e[16]=f.attachmentFbid,e[17]=s):s=e[17];e[18]!==s?(p=k.jsx(c("MWV2ChatEmojiHotLike.react"),{hotEmojiSize:s}),e[18]=s,e[19]=p):p=e[19];return p}if(q==null||q.length===0){e[20]!==f||e[21]!==n?(s=n!=null?n(f):null,e[20]=f,e[21]=n,e[22]=s):s=e[22];return s}n=(p=f.accessibilitySummaryText)!=null?p:"";e[23]!==a?(s=(h||(h=c("stylex")))(a),e[23]=a,e[24]=s):s=e[24];a=(p=o)!=null?p:b;e[25]!==f.attachmentFbid||e[26]!==g||e[27]!==r||e[28]!==n||e[29]!==s||e[30]!==a||e[31]!==q?(o=k.jsx(c("Sticker.react"),{accessibilityLabel:n,animationTrigger:"load_and_hover",className:s,customColor:"var(--chat-composer-button-color)",enablePopoverIfPassesGK:!0,frameCount:0,frameRate:void 0,framesPerCol:0,framesPerRow:0,packID:void 0,paddedSpriteURI:void 0,scale:a,sourceHeight:g,sourceURI:q,sourceWidth:r,spriteURI:void 0,stickerID:f.attachmentFbid,tabIndex:-1,testid:void 0}),e[25]=f.attachmentFbid,e[26]=g,e[27]=r,e[28]=n,e[29]=s,e[30]=a,e[31]=q,e[32]=o):o=e[32];return o}g["default"]=a}),98);
__d("MWV2TombstonedMessage.react",["MWXMessageBubble.react","MWXText.react","cr:13898","defaultMWPThreadTheme","gkx","react","react-compiler-runtime","react-strict-dom","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect,k={incoming:{color:"x18lvrbx",$$css:!0},message:{fontStyle:"x1k4tb9n",marginBottom:"x12nagc",marginTop:"x1gslohp",$$css:!0},messageWithOpacity:{opacity:"x1ks1olk",$$css:!0},outgoing:{color:"xyk4ms5",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(20),f=a.children,g=a.isOutgoing,h=a.isReply,l=a.mediaRenderQpl;a=a.xstyle;var m=c("useMWPThreadTheme")();m=d("defaultMWPThreadTheme").isDefaultTheme(m==null?void 0:(m=m.threadTheme)==null?void 0:m.fbid);var n,o;e[0]!==l?(n=function(){l==null?void 0:l.addPoint("render-tombstoned-message",{bool:{has_preview:!1}}),l==null?void 0:l.endSuccess()},o=[l],e[0]=l,e[1]=n,e[2]=o):(n=e[1],o=e[2]);j(n,o);n=m&&b("cr:13898")!=null?b("cr:13898"):i.Fragment;o=m&&c("gkx")("10034")?"secondary":g?"white":"primary";var p=!(m&&c("gkx")("10034"))&&k.messageWithOpacity,q=g?k.outgoing:k.incoming,r;e[3]!==p||e[4]!==q||e[5]!==a?(r=[k.message,p,q,a],e[3]=p,e[4]=q,e[5]=a,e[6]=r):r=e[6];e[7]!==f||e[8]!==r?(p=i.jsx(d("react-strict-dom").html.div,{dir:"auto",style:r,children:f}),e[7]=f,e[8]=r,e[9]=p):p=e[9];e[10]!==o||e[11]!==p?(q=i.jsx(c("MWXText.react"),{color:o,type:"body3",children:p}),e[10]=o,e[11]=p,e[12]=q):q=e[12];a=h===!0?"quoted":g?"outgoing":"incoming";f=m&&c("gkx")("10034")?"default":"opaque";e[13]!==f||e[14]!==q||e[15]!==a?(r=i.jsx(c("MWXMessageBubble.react"),{align:"right",children:q,color:a,connectBottom:!1,connectTop:!1,testid:void 0,variant:f}),e[13]=f,e[14]=q,e[15]=a,e[16]=r):r=e[16];e[17]!==n||e[18]!==r?(o=i.jsx(n,{children:r}),e[17]=n,e[18]=r,e[19]=o):o=e[19];return o}g["default"]=a}),98);
__d("MWMessageListAttachment.react",["fbt","I64","LSAuthorityLevel","LSMediaUrlAttachment","MWAnimatedImageControlsUtil","MWAnimatedImageThumbnailWithPlayButton.react","MWAudioPlayer.react","MWLSThreadDisplayContext","MWMessageListImageSizingUtils","MWV2ChatImage.react","MWV2Sticker.react","MWV2TombstonedMessage.react","cr:13757","gkx","react","react-compiler-runtime","recoverableViolation","stylex","useMWMessageListAttachmentDimensions"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k;m.useCallback;var n=m.useState;function a(a){var b=d("react-compiler-runtime").c(8),e=a.isOutgoing;a=a.xstyle;var f;b[0]!==a?(f=(i||(i=c("stylex"))).props(a),b[0]=a,b[1]=f):f=b[1];b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__962PS6SI-P2__JHASH__"),b[2]=a):a=b[2];b[3]!==e?(a=l.jsx(c("MWV2TombstonedMessage.react"),{isOutgoing:e,children:a}),b[3]=e,b[4]=a):a=b[4];b[5]!==f||b[6]!==a?(e=l.jsx("div",babelHelpers["extends"]({},f,{children:a})),b[5]=f,b[6]=a,b[7]=e):e=b[7];return e}function e(a){var e=d("react-compiler-runtime").c(7),f=a.attachment,g=a.connectTop,h=a.mediaRenderQpl,i=a.message,j=a.navigateToRouteForMediaViewer;a=a.outgoing;var k=o;e[0]!==f||e[1]!==g||e[2]!==h||e[3]!==i||e[4]!==j||e[5]!==a?(k=l.jsx(b("cr:13757"),{attachment:f,autoPlaySetting:c("gkx")("8624")?"off":void 0,connectTop:g,getPlayableUrl:k,loops:!c("gkx")("8625"),mediaRenderQpl:h,message:i,navigateToRouteForMediaViewer:j,outgoing:a}),e[0]=f,e[1]=g,e[2]=h,e[3]=i,e[4]=j,e[5]=a,e[6]=k):k=e[6];return k}function o(a){return d("LSMediaUrlAttachment").playableUrl(a)}function f(a){var b=d("react-compiler-runtime").c(8),e=a.attachment,f=a.connectBottom,g=a.connectTop,h=a.isReply,i=a.mediaRenderQpl,j=a.message;a=a.outgoing;var k=p;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==h||b[4]!==i||b[5]!==j||b[6]!==a?(k=l.jsx(c("MWAudioPlayer.react"),{attachment:e,connectBottom:f,connectTop:g,getPlayableUrl:k,isReply:h,isSecure:!1,mediaRenderQpl:i,message:j,outgoing:a}),b[0]=e,b[1]=f,b[2]=g,b[3]=h,b[4]=i,b[5]=j,b[6]=a,b[7]=k):k=b[7];return k}function p(a){return d("LSMediaUrlAttachment").playableUrl(a)}function q(a){var b,e=d("react-compiler-runtime").c(42),f=a.attachment,g=a.connectBottom,h=a.connectTop,i=a.isGroupedImage,k=a.mediaRenderQpl,m=a.message,o=a.navigateToRouteForMediaViewer,p=a.outgoing;a=a.renderUnsupportedAttachment;i=i===void 0?!1:i;var q=d("MWAnimatedImageControlsUtil").useGetMessengerAutoplaySetting(),r=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),s=n(!1),t=s[0],u=s[1];s=c("useMWMessageListAttachmentDimensions")(r,f);var v=s[0];s=s[1];var w;e[0]!==r?(w=function(a){var b=a.previewUrlLarge;return b!=null&&r==="Inbox"?b:d("LSMediaUrlAttachment").previewUrl(a)},e[0]=r,e[1]=w):w=e[1];w=w;b=(b=r)!=null?b:void 0;var x;e[2]!==i||e[3]!==b?(x=d("MWMessageListImageSizingUtils").getMaxPreviewHeightAndWidth(!1,b,i),e[2]=i,e[3]=b,e[4]=x):x=e[4];b=x;x=b.maxHeight;b=b.maxWidth;var y=f.previewUrlMimeType==="image/gif";if(e[5]!==f.authorityLevel||e[6]!==f.filename||e[7]!==f.previewUrl){var z;z=(j||(j=d("I64"))).to_int32(f.authorityLevel)!==c("LSAuthorityLevel").AUTHORITATIVE&&(((z=f.filename)==null?void 0:z.includes("gif"))||((z=f.previewUrl)==null?void 0:z.includes("gif")));e[5]=f.authorityLevel;e[6]=f.filename;e[7]=f.previewUrl;e[8]=z}else z=e[8];z=z;var A;e[9]!==y||e[10]!==z?(A=(y||z===!0)&&d("MWAnimatedImageControlsUtil").getShouldEnableGIFPlayPause(),e[9]=y,e[10]=z,e[11]=A):A=e[11];y=A;z=y&&q!==!0;if(z&&t===!1){e[12]===Symbol["for"]("react.memo_cache_sentinel")?(A=function(){return u(!0)},e[12]=A):A=e[12];if(e[13]!==s){q=(j||(j=d("I64"))).to_float((y=s)!=null?y:(j||(j=d("I64"))).zero);e[13]=s;e[14]=q}else q=e[14];if(e[15]!==v){y=(j||(j=d("I64"))).to_float((t=v)!=null?t:(j||(j=d("I64"))).zero);e[15]=v;e[16]=y}else y=e[16];e[17]!==f||e[18]!==g||e[19]!==h||e[20]!==k||e[21]!==m||e[22]!==p||e[23]!==q||e[24]!==y?(s=l.jsx(c("MWAnimatedImageThumbnailWithPlayButton.react"),{connectBottom:g,connectTop:h,dbAttachment:f,isInThread:!0,isSecure:!1,mediaRenderQpl:k,message:m,onPlay:A,outgoing:p,previewHeight:q,previewWidth:y}),e[17]=f,e[18]=g,e[19]=h,e[20]=k,e[21]=m,e[22]=p,e[23]=q,e[24]=y,e[25]=s):s=e[25];return s}t=z===!0?!1:o;e[26]!==z?(v=z===!0?function(){u(!1)}:void 0,e[26]=z,e[27]=v):v=e[27];e[28]!==f||e[29]!==g||e[30]!==h||e[31]!==w||e[32]!==i||e[33]!==x||e[34]!==b||e[35]!==k||e[36]!==m||e[37]!==p||e[38]!==a||e[39]!==t||e[40]!==v?(A=l.jsx(c("MWV2ChatImage.react"),{attachment:f,connectBottom:g,connectTop:h,getPreviewUrl:w,isGroupedImage:i,maxHeight:x,maxWidth:b,mediaRenderQpl:k,message:m,navigateToRouteForMediaViewer:t,onPressOverride:v,outgoing:p,renderUnsupportedAttachment:a}),e[28]=f,e[29]=g,e[30]=h,e[31]=w,e[32]=i,e[33]=x,e[34]=b,e[35]=k,e[36]=m,e[37]=p,e[38]=a,e[39]=t,e[40]=v,e[41]=A):A=e[41];return A}function r(a){var b=d("react-compiler-runtime").c(3),e=a.attachment;a=a.mediaRenderQpl;var f=s;b[0]!==e||b[1]!==a?(f=l.jsx(c("MWV2Sticker.react"),{attachment:e,getPreviewUrl:f,mediaRenderQpl:a}),b[0]=e,b[1]=a,b[2]=f):f=b[2];return f}function s(a){var b;b=(b=d("LSMediaUrlAttachment").playableUrl(a))!=null?b:d("LSMediaUrlAttachment").previewUrl(a);if(b!=null)return b;c("recoverableViolation")("Sticker Attachment has no preview_url or playable_url: "+a.attachmentFbid,"messenger_web_media")}g.MWMessageListAttachmentError=a;g.MWMessageListAttachmentVideo=e;g.MWMessageListAttachmentAudio=f;g.MWMessageListAttachmentImage=q;g.MWMessageListAttachmentSticker=r}),226);
__d("useAttachmentDataLS",["I64","ReQL","ReQLSuspense","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=d("react-compiler-runtime").c(15),e=(i||(i=c("useReStore")))(),g;b[0]!==e||b[1]!==a.messageId||b[2]!==a.threadKey?(g=function(){return d("ReQL").fromTableAscending(e.tables.attachments).getKeyRange(a.threadKey,a.messageId).map(function(a){var b=l(e,a);return{attachment:a,attachmentCTAs:b}})},b[0]=e,b[1]=a.messageId,b[2]=a.threadKey,b[3]=g):g=b[3];var h;b[4]!==e||b[5]!==a?(h=[a,e],b[4]=e,b[5]=a,b[6]=h):h=b[6];g=d("ReQLSuspense").useArray(g,h,f.id+":41").toSorted(k);var m=(h=g[0])==null?void 0:h.attachment,n;b[7]!==m||b[8]!==e?(h=function(){return m==null?d("ReQL").empty():d("ReQL").fromTableAscending(e.tables.attachment_items).getKeyRange(m.attachmentFbid).map(function(a){var b=l(e,a);return{attachmentItem:a,attachmentItemCTAs:b}})},n=[m,e],b[7]=m,b[8]=e,b[9]=h,b[10]=n):(h=b[9],n=b[10]);h=d("ReQLSuspense").useArray(h,n,f.id+":60");b[11]!==h?(n=h.reduce(j,[[],[]]),b[11]=h,b[12]=n):n=b[12];h=n;n=h[0];h=h[1];var o=[];g.map(function(a){o.push(a.attachment)});if(n.length>0)h=h;else{g=(g=g[0])==null?void 0:g.attachmentCTAs;var p;b[13]!==g?(p=g?[g]:[],b[13]=g,b[14]=p):p=b[14];h=p}return{attachmentCTAs:h,attachmentItems:n,attachments:o}}function j(a,b){var c=b.attachmentItem;b=b.attachmentItemCTAs;a[0].push(c);a[1].push(b);return a}function k(a,b){return(h||(h=d("I64"))).compare(a.attachment.attachmentIndex,b.attachment.attachmentIndex)}function l(a,b){var c={},e=b.attachmentCta1Id,g=b.attachmentCta2Id,h=b.attachmentCta3Id;b=b.defaultCtaId;c.defaultCta=b?d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.tables.attachment_ctas).getKeyRange(b),f.id+":112"):void 0;c.attachmentCta1=e?d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.tables.attachment_ctas).getKeyRange(e),f.id+":117"):void 0;c.attachmentCta2=g?d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.tables.attachment_ctas).getKeyRange(g),f.id+":124"):void 0;c.attachmentCta3=h?d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.tables.attachment_ctas).getKeyRange(h),f.id+":131"):void 0;return c}g.useAttachmentDataLS=a}),98);
__d("fetchOpenMissingMessage",["FBLogger","I64","LSFactory","LSMessagePointQueryStoredProcedure","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,c){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var g;g=(h||(h=d("I64"))).to_int32((g=b.syncGroup)!=null?g:(h||(h=d("I64"))).neg_one);if(g!==-1&&g===95){c("FBLogger")("messenger_web_messaging").mustfix("fetchMissingMessage: incorrect call to MPQ with secure mailbox");return}yield a.runInTransaction(function(a){return c("LSMessagePointQueryStoredProcedure")(c("LSFactory")(a),{messageId:e,threadKey:b.threadKey,threadType:b.threadType})},"readwrite",void 0,void 0,f.id+":38")});return i.apply(this,arguments)}g["default"]=a}),98);
__d("fetchSecureMissingMessage",["MAWBridgeSendAndReceive","MAWMiActOnActThreadReady","MAWPutMessagesToDB","WAJids","WAStanzaUtils","asyncToGeneratorRuntime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MAWBridgeIssuePointQueryHandler").__setRef("fetchSecureMissingMessage");function a(a,b,c,d,e,f,g){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e,g,i,k,l){c=(yield d("MAWMiActOnActThreadReady").waitForACTThreadReady(a.tables,c,l));var m=c.chatJid;l=(yield j({config:{admin:!0,editMsgHistory:!1,media:!0,polls:!0,reactions:!1,receiverFetch:!0,xma:!0},externalId:e}));yield d("MAWPutMessagesToDB").insertMessageResponseIntoDatabaseByExternalId(a,l,i);if(l.msgs.length>0||!g)return;var n=(yield h.load());return a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield n.call(a,{jid:m,messageId:e,taskSource:k,threadId:d("WAJids").threadIdForChatJid(m)})});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":79")});return i.apply(this,arguments)}function j(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.config;a=a.externalId;return babelHelpers["extends"]({},yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","loadMsgsByExternalId",{config:b,externalId:d("WAStanzaUtils").toStanzaId(a)}))});return k.apply(this,arguments)}g["default"]=a}),98);
__d("useGetOriginalMsgFromBumpMsg",["FBLogger","LSMEBTaskCreationSource","LSMessagingThreadTypeUtil","MAWFetchExternalIdUsingCache","MAWStateContext.react","MWEBEntrypointsKillswitch.enum","ReQL","ReQLSuspense","fetchOpenMissingMessage","fetchSecureMissingMessage","isMWBumpMessage","promiseDone","react","react-compiler-runtime","useMWEBBackupState","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useContext;function a(a,b,e){var g=d("react-compiler-runtime").c(14),i;g[0]!==a?(i=c("isMWBumpMessage")(a),g[0]=a,g[1]=i):i=g[1];var k=i,l=(h||(h=c("useReStore")))(),m=j(d("MAWStateContext.react").MAWDispatchContext);g[2]===Symbol["for"]("react.memo_cache_sentinel")?(a={entrypoint:c("MWEBEntrypointsKillswitch.enum").BUMP_MESSAGES},g[2]=a):a=g[2];i=c("useMWEBBackupState")(a);g[3]!==l.tables.threads||g[4]!==e?(a=function(){return e!=null?d("ReQL").fromTableAscending(l.tables.threads,["threadKey","threadType","syncGroup"]).getKeyRange(e):d("ReQL").empty()},g[3]=l.tables.threads,g[4]=e,g[5]=a):a=g[5];var n;g[6]!==l||g[7]!==e?(n=[l,e],g[6]=l,g[7]=e,g[8]=n):n=g[8];var o=d("ReQLSuspense").useFirst(a,n,f.id+":44");g[9]!==l.tables.messages||g[10]!==k||g[11]!==b?(a=function(){return b!=null&&k?d("ReQL").fromTableDescending(l.tables.messages.index("messageId")).getKeyRange(b):d("ReQL").empty()},n=[l.tables.messages,b,k],g[9]=l.tables.messages,g[10]=k,g[11]=b,g[12]=a,g[13]=n):(a=g[12],n=g[13]);g=d("ReQLSuspense").useFirst(a,n,f.id+":56");if(g==null&&o!=null&&b!=null&&k)if(d("LSMessagingThreadTypeUtil").isArmadilloSecure(o.threadType)){var p=i===3;c("promiseDone")(d("MAWFetchExternalIdUsingCache").fetchExternalIdUsingCache(b).then(function(a){a!=null?c("promiseDone")(c("fetchSecureMissingMessage")(l,o.threadKey,a,p,m,c("LSMEBTaskCreationSource").EB_POINT_QUERY_BUMP_MESSAGES,"MAWFetchBumpMessage")):c("FBLogger")("mw_bump_message").warn("[useGetOriginalMsgFromBumpMsg] failed fetch external id, invalid msgId %s",b)}))}else c("promiseDone")(c("fetchOpenMissingMessage")(l,o,b));return g}g["default"]=a}),98);
__d("useAttachmentData",["CometLruCache","I64","MAWMsg","MWPActor.react","cr:6737","cr:6964","qex","react-compiler-runtime","shouldUseImageGrouping","useAttachmentDataLS","useGetOriginalMsgFromBumpMsg","useMAWSeparateReadsSelector"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("CometLruCache").create(50);function j(a,b,e,f){var g;if(!((g=c("qex")._("60"))!=null?g:!1))return!1;if(!b)return!1;if(!d("MAWMsg").isMediaMsg(a))return!1;g=c("shouldUseImageGrouping")(a,b);if(g)return!1;if(d("MAWMsg").isOptimistic(a)){i.set(a.offlineThreadingId,!0);return!1}return e&&f==null&&i.get(a.offlineThreadingId)===!0?!1:!0}function a(a,e){var f=d("react-compiler-runtime").c(10),g=d("MWPActor.react").useActor();g=(h||(h=d("I64"))).equal(a.senderId,g);var i=c("useGetOriginalMsgFromBumpMsg")(a.replyType,a.replySourceId,a.threadKey);i=(i=i)!=null?i:a;a=d("useAttachmentDataLS").useAttachmentDataLS(i);var l=a.attachmentCTAs,m=a.attachmentItems;a=a.attachments;var n=b("cr:6737")(i,e),o=b("cr:6964")(i,e),p;f[0]!==n||f[1]!==i||f[2]!==o?(p=d("MAWMsg").isReceiverFetchMsg(i)?o:n,f[0]=n,f[1]=i,f[2]=o,f[3]=p):p=f[3];n=p;f[4]!==n?(o=n?[n]:[],f[4]=n,f[5]=o):o=f[5];p=d("useMAWSeparateReadsSelector").useMAWSeparateReadsArraySelector("Attachment",o,a,j(i,e,g,n),k);f[6]!==l||f[7]!==m||f[8]!==p?(o={attachmentCTAs:l,attachmentItems:m,attachments:p},f[6]=l,f[7]=m,f[8]=p,f[9]=o):o=f[9];return o}function k(a,b){return a.attachmentFbid.localeCompare(b.attachmentFbid)}g.useAttachmentData=a}),98);
__d("MWPAttachmentDataContext",["FBLogger","I64","ReQL","ReQLSuspense","react","react-compiler-runtime","useAttachmentData","useAttachmentDataLS","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j,m=l.createContext,n=l.useContext,o=m({attachmentCTAs:[],attachmentItems:[],attachments:[]});function a(a){var b=d("react-compiler-runtime").c(3),c=a.children,e=a.isSecureMessage;a=a.message;a=d("useAttachmentData").useAttachmentData(a,e);b[0]!==a||b[1]!==c?(e=k.jsx(o.Provider,{value:a,children:c}),b[0]=a,b[1]=c,b[2]=e):e=b[2];return e}function b(a){var b=d("react-compiler-runtime").c(3),c=a.attachmentData;a=a.children;var e;b[0]!==c||b[1]!==a?(e=k.jsx(o.Provider,{value:c,children:a}),b[0]=c,b[1]=a,b[2]=e):e=b[2];return e}function e(a){var b=d("react-compiler-runtime").c(3),c=a.children;a=a.message;a=d("useAttachmentDataLS").useAttachmentDataLS(a);var e;b[0]!==a||b[1]!==c?(e=k.jsx(o.Provider,{value:a,children:c}),b[0]=a,b[1]=c,b[2]=e):e=b[2];return e}function p(a){var b=n(o).attachments;a=q(a);if(b.length===0&&a.length>0){c("FBLogger")("messenger_web_media","attachment_context_missing").info("MWPAttachmentContext is not set, failed to retrieve attachments from context, instead retrieved attachments directly from LSDB");return a}return b}function q(a){var b=d("react-compiler-runtime").c(7),e=(h||(h=c("useReStore")))(),g=a==null?void 0:a.messageId,i=a==null?void 0:a.threadKey,j;b[0]!==e||b[1]!==g||b[2]!==i?(a=function(){return g!=null&&i!=null?d("ReQL").fromTableAscending(e.tables.attachments).getKeyRange(i,g):d("ReQL").empty()},j=[e,g,i],b[0]=e,b[1]=g,b[2]=i,b[3]=a,b[4]=j):(a=b[3],j=b[4]);a=d("ReQLSuspense").useArray(a,j,f.id+":104");b[5]!==a?(j=a.toSorted(r),b[5]=a,b[6]=j):j=b[6];return j}function r(a,b){return(i||(i=d("I64"))).compare(a.attachmentIndex,b.attachmentIndex)}function s(a){var b=(i||(i=d("I64"))).to_int32(a.attachmentIndex);b=(b=n(o).attachmentCTAs[b])!=null?b:{};a=t(a);if((b==null?void 0:b.defaultCta)==null&&(a==null?void 0:a.defaultCta)!=null||(b==null?void 0:b.attachmentCta1)==null&&(a==null?void 0:a.attachmentCta1)!=null){c("FBLogger")("messenger_web_media","attachment_context_missing").info("MWPAttachmentContext is not set, failed to retrieve attachmentCTAs from context, instead retrieved attachmentCTAs directly from LSDB");return a}return b}function t(a){var b=(h||(h=c("useReStore")))(),d={};d.defaultCta=u(b,a==null?void 0:a.defaultCtaId);d.attachmentCta1=u(b,a==null?void 0:a.attachmentCta1Id);d.attachmentCta2=u(b,a==null?void 0:a.attachmentCta2Id);d.attachmentCta3=u(b,a==null?void 0:a.attachmentCta3Id);return d}function u(a,b){var c=d("react-compiler-runtime").c(4),e,g;c[0]!==b||c[1]!==a?(e=function(){return b!=null?d("ReQL").fromTableAscending(a.tables.attachment_ctas).getKeyRange(b):d("ReQL").empty()},g=[a,b],c[0]=b,c[1]=a,c[2]=e,c[3]=g):(e=c[2],g=c[3]);return d("ReQLSuspense").useFirst(e,g,f.id+":158")}function v(a){var b;b=(b=n(o).attachmentItems)!=null?b:[];a=w(a);if(b.length===0&&a.length>0){c("FBLogger")("messenger_web_media","attachment_context_missing").info("MWPAttachmentContext is not set, failed to retrieve attachmentItems from context, instead retrieved attachmentItems directly from LSDB");return a}return b}function w(a){var b=d("react-compiler-runtime").c(6),e=(h||(h=c("useReStore")))(),g;b[0]!==a.attachmentFbid||b[1]!==e.tables.attachment_items?(g=function(){var b=a.attachmentFbid;return d("ReQL").fromTableAscending(e.tables.attachment_items).getKeyRange(b)},b[0]=a.attachmentFbid,b[1]=e.tables.attachment_items,b[2]=g):g=b[2];var i;b[3]!==a||b[4]!==e?(i=[a,e],b[3]=a,b[4]=e,b[5]=i):i=b[5];return d("ReQLSuspense").useArray(g,i,f.id+":188")}g.MWPAttachmentDataContext=o;g.MWPAttachmentDataContextProvider=a;g.MWPAttachmentDataContextProviderMAW=b;g.MWPAttachmentDataContextProviderLS=e;g.useMWPGetAttachments=p;g.useMWPGetAttachmentCTAs=s;g.useMWPGetAttachmentItems=v}),98);
__d("MWPMessageHasXMA",["I64","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return[(h||(h=d("I64"))).and_((i||(i=d("LSIntEnum"))).ofNumber(1024),a.displayedContentTypes),h.and_(i.ofNumber(2048),a.displayedContentTypes),h.and_(i.ofNumber(536870912),a.displayedContentTypes)].some(function(a){return(h||(h=d("I64"))).to_int32(a)!==0})}g["default"]=a}),98);
__d("mwpMessageIsReply",["LSIntEnum","LSMessageReplySourceTypeV2"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return a.replySourceTypeV2!=null&&(h||(h=d("LSIntEnum"))).toNumber(a.replySourceTypeV2)!==c("LSMessageReplySourceTypeV2").FORWARD}g["default"]=a}),98);
__d("mwpMessageWithAttachmentHasPoll",["I64","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return(h||(h=d("I64"))).to_int32(h.and_((i||(i=d("LSIntEnum"))).ofNumber(32),a.displayedContentTypes))!==0}g["default"]=a}),98);
__d("MWPMessageListAttachmentContainer.react",["MWPMessageHasXMA","MWPMessageListColumn.react","mwpMessageIsReply","mwpMessageWithAttachmentHasPoll","react","react-strict-dom","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={container:{maxWidth:"x193iq5w",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0},container_for_poll:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},container_for_top_margin:{marginTop:"x1gslohp",$$css:!0},container_for_xma:{width:"xh8yej3",$$css:!0},vr:{backgroundColor:"x1eb86dx",height:"x36qwtl",width:"xh8yej3",$$css:!0}};function a(a){var b=a.children,e=a.connectTop,f=a.hasTopMargin;f=f===void 0?!1:f;var g=a.message;a.outgoing;var h=a.paint;h=h===void 0?!0:h;var k=a.renderEmphasisRing,l=a.xmaLayout;a=a.xstyle;var m=c("MWPMessageHasXMA")(g),n=c("mwpMessageIsReply")(g),o=c("mwpMessageWithAttachmentHasPoll")(g);g=g.text;g=g!=null?g!=="":!1;o=i.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,style:[j.container,m?j.container_for_xma:!1,o?j.container_for_poll:!1,f?j.container_for_top_margin:!1,a!==null?a:!1],children:b});return i.jsxs(i.Fragment,{children:[e&&(l===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT||!m||!g)?i.jsx(d("react-strict-dom").html.div,{style:j.vr}):null,i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{paint:!n&&h,children:k!=null?k(o):o})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWSearchPluginUtils",["isStringNullOrEmpty","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(15),c,e,f,g,h,i,j;if(b[0]!==a){j=Symbol["for"]("react.early_return_sentinel");bb0:{var k;k=(k=a==null?void 0:(k=a.split("?")[1])==null?void 0:k.split("&"))!=null?k:[];if(k.length===0){j=null;break bb0}h=[];g=[];i=[];e="";f="";c="";k.forEach(function(a){a=a.split("=");var b=a[0];a=a[1];var d=decodeURIComponent(a);b.includes("source_titles")&&h.push(d.replaceAll("+"," "));b.includes("source_sub_titles")&&g.push(d.replaceAll("+"," "));b.includes("source_urls")&&i.push(d);b==="source_query"&&(e=a==null?"":d.replaceAll("+"," "));b==="source_query_url"&&(f=d);b==="header"&&(c=d)})}b[0]=a;b[1]=c;b[2]=e;b[3]=f;b[4]=g;b[5]=h;b[6]=i;b[7]=j}else c=b[1],e=b[2],f=b[3],g=b[4],h=b[5],i=b[6],j=b[7];if(j!==Symbol["for"]("react.early_return_sentinel"))return j;b[8]!==c||b[9]!==e||b[10]!==f||b[11]!==g||b[12]!==h||b[13]!==i?(k={header:c,source_query:e,source_query_url:f,source_sub_titles:g,source_titles:h,source_urls:i},b[8]=c,b[9]=e,b[10]=f,b[11]=g,b[12]=h,b[13]=i,b[14]=k):k=b[14];return k}function b(a){if(a.cta1Type==="xma_gen_ai_search_plugin_response_search_engine_attribution"&&a.cta2Type==="xma_gen_ai_search_plugin_response_sources")return!0;return h(a)?!0:!1}function e(a){return a.cta1Type==="xma_gen_ai_search_plugin_response_sources"}function h(a){return a.cta1Type==="xma_gen_ai_search_plugin_response_sources"&&c("isStringNullOrEmpty")(a.headerTitle)}g.useSearchPluginSources=a;g.isSearchPlugin=b;g.isSearchSingleBubblePlugin=e;g.isSearchPluginWithoutAttributionLink=h}),98);
__d("MWPMessageListAttachment.react",["I64","LSIntEnum","MWPAttachmentDataContext","MWPMessageListAttachmentContainer.react","MWPThreadCapabilitiesContext","MWSearchPluginUtils","MWVerticalRhythm","MessagingAttachmentType","ReQL","ReQLSuspense","gkx","isMWBumpMessage","react","react-compiler-runtime","useReStore","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i.useEffect;function n(a){return(j||(j=d("I64"))).equal(a.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))}function o(a){return(j||(j=d("I64"))).equal(a.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))}function p(a){return(j||(j=d("I64"))).equal(a.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))}function a(a){var b=d("react-compiler-runtime").c(74),e=a.connectBottom,f=a.connectTop,g=a.mediaRenderQpl,h=a.message,i=a.renderAudioAttachment,o=a.renderEmphasisRing,p=a.renderEphemeralMediaAttachment,s=a.renderFileAttachment,v=a.renderImageAttachment,w=a.renderImageGrid,x=a.renderMultipleAttachments,y=a.renderStickerAttachment,z=a.renderUnsupportedAttachment,A=a.renderUnsupportedMultipleAttachments,B=a.renderVideoAttachment,C=a.renderWrapper,D=a.renderXMAAttachment;a=a.xmaLayout;var E=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a,F=d("MWPAttachmentDataContext").useMWPGetAttachments(h);a=u((a=F[0])==null?void 0:a.attachmentCta1Id);var G;b[0]!==F[0]||b[1]!==F.length?(G=F.length>0?d("MWSearchPluginUtils").isSearchSingleBubblePlugin(F[0]):!1,b[0]=F[0],b[1]=F.length,b[2]=G):G=b[2];G=G;var H=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();H=H.blurMediaEnabled;H=c("gkx")("24098")&&H;var I=F.length>0?F[0]:null,J,K;b[3]!==I||b[4]!==g?(J=function(){I!=null?(g==null?void 0:g.addAttachmentAnnotations==null?void 0:g.addAttachmentAnnotations(I),g==null?void 0:g.addPoint("render-message-list-attachment")):g==null?void 0:g.addPoint("missing-message-list-attachment")},K=[I,g],b[3]=I,b[4]=g,b[5]=J,b[6]=K):(J=b[5],K=b[6]);m(J,K);if(c("isMWBumpMessage")(h.replyType))return null;if(F.length!==1)if(F.length>1&&F.every(n))if(H){if(b[7]!==F||b[8]!==f||b[9]!==h||b[10]!==o||b[11]!==v||b[12]!==z||b[13]!==E){b[15]!==F.length||b[16]!==f||b[17]!==h||b[18]!==o||b[19]!==v||b[20]!==z||b[21]!==E?(J=function(a,b){return l.jsxs(l.Fragment,{children:[b!==0?l.jsx(c("MWVerticalRhythm"),{height:2}):null,l.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:f,message:h,renderEmphasisRing:o,xmaLayout:E,children:v(a,b!==0,b!==F.length-1,z)})]},a.attachmentFbid)},b[15]=F.length,b[16]=f,b[17]=h,b[18]=o,b[19]=v,b[20]=z,b[21]=E,b[22]=J):J=b[22];K=F.map(J);b[7]=F;b[8]=f;b[9]=h;b[10]=o;b[11]=v;b[12]=z;b[13]=E;b[14]=K}else K=b[14];H=K}else{b[23]!==F||b[24]!==w?(J=w(F),b[23]=F,b[24]=w,b[25]=J):J=b[25];b[26]!==f||b[27]!==h||b[28]!==o||b[29]!==J||b[30]!==E?(K=l.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:f,message:h,renderEmphasisRing:o,xmaLayout:E,children:J}),b[26]=f,b[27]=h,b[28]=o,b[29]=J,b[30]=E,b[31]=K):K=b[31];H=K}else{w=t;J=r;if(F.length===2&&w(F)&&J(F)&&c("gkx")("10222")){if(b[32]!==F){w=(K=F.find(q))!=null?K:F[0];b[32]=F;b[33]=w}else w=b[33];J=w;b[34]!==a||b[35]!==D||b[36]!==J?(K=D(J,a),b[34]=a,b[35]=D,b[36]=J,b[37]=K):K=b[37];return K}if(F.length>1){b[38]!==F||b[39]!==x?(w=x==null?void 0:x(F),b[38]=F,b[39]=x,b[40]=w):w=b[40];H=w;if(H!=null)return H}b[41]!==F||b[42]!==A?(J=A!=null?A(F):void 0,b[41]=F,b[42]=A,b[43]=J):J=b[43];H=J}else{var L=F[0];K=L.attachmentType;x=!(j||(j=d("I64"))).equal(K,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO));w=L.attachmentType;b[44]!==L||b[45]!==g||b[46]!==z?(A=function(){g==null?void 0:g.endSuccess();return z(L)},b[44]=L,b[45]=g,b[46]=z,b[47]=A):A=b[47];J=A;b[48]!==L||b[49]!==e||b[50]!==f||b[51]!==a||b[52]!==i||b[53]!==p||b[54]!==s||b[55]!==v||b[56]!==y||b[57]!==z||b[58]!==J||b[59]!==B||b[60]!==D||b[61]!==w?(K=(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))?v(L,f,e,z):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))?B(L):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO))?i(L):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER))||(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").THIRD_PARTY_STICKER))?y(L):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))?D(L,a):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE))?s(L):(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").EPHEMERAL_IMAGE))||(j||(j=d("I64"))).equal(w,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").EPHEMERAL_VIDEO))?p(L):J(),b[48]=L,b[49]=e,b[50]=f,b[51]=a,b[52]=i,b[53]=p,b[54]=s,b[55]=v,b[56]=y,b[57]=z,b[58]=J,b[59]=B,b[60]=D,b[61]=w,b[62]=K):K=b[62];b[63]!==f||b[64]!==G||b[65]!==h||b[66]!==x||b[67]!==o||b[68]!==K||b[69]!==E?(A=l.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:f,hasTopMargin:G,message:h,paint:x,renderEmphasisRing:o,xmaLayout:E,children:K}),b[63]=f,b[64]=G,b[65]=h,b[66]=x,b[67]=o,b[68]=K,b[69]=E,b[70]=A):A=b[70];H=A}if(H!=null){b[71]!==H||b[72]!==C?(e=C!=null?C(H):H,b[71]=H,b[72]=C,b[73]=e):e=b[73];return e}return null}function q(a){return p(a)}function r(a){return a.some(s)}function s(a){return n(a)||o(a)}function t(a){return a.some(p)}function u(a){var b=d("react-compiler-runtime").c(6),e=(h||(h=c("useReStore")))(),g;b[0]!==a||b[1]!==e.tables.attachment_ctas?(g=function(){var b;return d("ReQL").fromTableAscending(e.tables.attachment_ctas).getKeyRange((b=a)!=null?b:(j||(j=d("I64"))).zero)},b[0]=a,b[1]=e.tables.attachment_ctas,b[2]=g):g=b[2];var i;b[3]!==a||b[4]!==e?(i=[e,a],b[3]=a,b[4]=e,b[5]=i):i=b[5];return d("ReQLSuspense").useFirst(g,i,f.id+":253")}g["default"]=a}),98);
__d("MWV2ChatAttachmentParserUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.startsWith("blob:");if(!b)return;b=a.length;return a.substring(5,b)}f.getBlobUrl=a}),66);
__d("formatFileSize",["fbt"],(function(a,b,c,d,e,f,g,h){var i=[function(a){return h._(/*BTDS*/"__JHASH__eMlnaQRXRvN__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH__3UzqYHovNJr__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH___CyxwP2Ni02__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH__B5cUSs7YWey__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH__7EGP9din_0A__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH__ghfLx6_Ho7n__JHASH__",[h._param("value",a,[0])])},function(a){return h._(/*BTDS*/"__JHASH__osT4Py2kL4R__JHASH__",[h._param("value",a,[0])])}],j=0;function a(a,b,c){b===void 0&&(b=1024);c===void 0&&(c=2);if(a==null)return null;if(a===0)return i[j](0);var d=Math.floor(Math.log(Math.abs(a))/Math.log(b));a=a/Math.pow(b,d);b=Math.pow(10,c);a=Math.round(a*b)/b;return i[d](a)}g["default"]=a}),226);
__d("MWV2ChatFileV2.react",["fbt","ConstUriUtils","I64","LSMediaUrlAttachment","MDSTextPairing.react","MWChatFilePreview.react","MWChatMessageId","MWFilePressable.react","MWV2ChatAttachmentParserUtils","formatFileSize","react","recoverableViolation","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react")),m=j.useMemo,n={root:{alignItems:"x6s0dn4",display:"x78zum5",userSelect:"x87ps6o",$$css:!0}};function a(a){var b=a.attachment,e=a.getPlayableUrlSecure;a=a.mediaRenderQpl;var f=m(function(){var a=b.filename;if(a!=null)return a;else return h._(/*BTDS*/"__JHASH__uiTAWyhPCWI__JHASH__")},[b]),g=m(function(){var a=b.filesize!=null?(k||(k=d("I64"))).to_int32(b.filesize):void 0;if(a!=null)return c("formatFileSize")(a);else return null},[b]),j=m(function(){if(e!=null){var a;a=(a=e(b))!=null?a:"";return d("ConstUriUtils").getUri(a)}else{a=d("LSMediaUrlAttachment").playableUrl(b);if(a!=null){var f=d("MWV2ChatAttachmentParserUtils").getBlobUrl(a);if(f!=null)return d("ConstUriUtils").getUri(f);else return d("ConstUriUtils").getUri(a)}}c("recoverableViolation")("Attachment has no playable_url "+b.attachmentFbid,"messenger_web_media")},[b,e]);return l.jsx(c("MWFilePressable.react"),{attachmentID:b.attachmentFbid,entryPoint:"chat_file_v4",mediaRenderQpl:a,messageID:d("MWChatMessageId").makeSent((k||(k=d("I64"))).to_string(b.threadKey),b.messageId,k.to_string(b.timestampMs)),url:j==null?void 0:j.toString(),children:l.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(n.root,!1),{"data-testid":void 0,children:[l.jsx(c("MWChatFilePreview.react"),{attachment:b,withPreview:!1}),l.jsxs("div",babelHelpers["extends"]({className:"xzsf02u x1iyjqo2 x1s688f xz9dl7a xn6708d xsag5q8 x1ye3gou x13faqbe"},{children:[l.jsx(c("MDSTextPairing.react"),{headline:f,headlineLineLimit:3,level:4}),l.jsx("div",babelHelpers["extends"]({className:"x889kno"},{children:l.jsx(c("MDSTextPairing.react"),{body:g,bodyColor:"secondary",bodyLineLimit:1,level:4,testid:void 0})}))]}))]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWV2ChatImagesGrid.react",["fbt","CometPhotoGrid.react","FDSImageCover.react","LSMediaUrlAttachment","MWLSThreadDisplayContext","MWXMessageBubbleCornerStyles.react","MWXPressable.react","react","react-compiler-runtime","stylex","useMWV2MediaViewerURL"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;b.useCallback;b.useMemo;var l={large:{width:"x7cdydq",$$css:!0},pressable:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",display:"x1lliihq",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xh8yej3",$$css:!0},root:{maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},small:{width:"x1so1ns2",$$css:!0}};function m(a){var b=d("react-compiler-runtime").c(2),c=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),e=a.previewUrlLarge;if(e!=null&&c==="Inbox")c=e;else{b[0]!==a?(e=d("LSMediaUrlAttachment").previewUrl(a),b[0]=a,b[1]=e):e=b[1];c=e}return c}function n(a){var b=d("react-compiler-runtime").c(17),e=a.attachment,f=a.mediaRenderQpl;b[0]!==f?(a=function(){f==null?void 0:f.endFail("load-image-error")},b[0]=f,b[1]=a):a=b[1];a=a;var g;b[2]!==f?(g=function(){f==null?void 0:f.endSuccess()},b[2]=f,b[3]=g):g=b[3];g=g;var i=m(e);e=c("useMWV2MediaViewerURL")(e);if(i==null){f==null?void 0:f.endFail("empty_preview_url");a();return null}var j;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"__JHASH__mrw3CpFXi7r__JHASH__"),b[4]=j):j=b[4];j=j;var l;b[5]!==i?(l={origSrc:i},b[5]=i,b[6]=l):l=b[6];var n;b[7]!==e||b[8]!==l?(n={passthroughProps:l,url:e},b[7]=e,b[8]=l,b[9]=n):n=b[9];b[10]!==a||b[11]!==g||b[12]!==i?(e=k.jsx(c("FDSImageCover.react"),{alt:j,onError:a,onLoad:g,src:i}),b[10]=a,b[11]=g,b[12]=i,b[13]=e):e=b[13];b[14]!==n||b[15]!==e?(l=k.jsx(c("MWXPressable.react"),{"aria-label":j,linkProps:n,overlayRadius:"compact",xstyle:o,children:e}),b[14]=n,b[15]=e,b[16]=l):l=b[16];return l}function o(){return[l.pressable]}function a(a){var b=d("react-compiler-runtime").c(15),e=a.attachments,f=a.connectBottom,g=a.connectTop,h=a.mediaRenderQpl;a=a.outgoing;var j=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();a=a?"right":"left";if(b[0]!==f||b[1]!==g||b[2]!==j||b[3]!==a){var m=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles({align:a,connectBottom:f,connectTop:g});m=(i||(i=c("stylex"))).props(l.root,j==="Inbox"?l.large:l.small,m);b[0]=f;b[1]=g;b[2]=j;b[3]=a;b[4]=m}else m=b[4];if(b[5]!==e||b[6]!==h){b[8]!==h?(f=function(a){return k.jsx(n,{attachment:a,mediaRenderQpl:h},a.attachmentFbid)},b[8]=h,b[9]=f):f=b[9];g=e.map(f);b[5]=e;b[6]=h;b[7]=g}else g=b[7];b[10]!==g?(j=k.jsx(c("CometPhotoGrid.react"),{children:g}),b[10]=g,b[11]=j):j=b[11];b[12]!==m||b[13]!==j?(a=k.jsx("div",babelHelpers["extends"]({},m,{"data-testid":void 0,children:j})),b[12]=m,b[13]=j,b[14]=a):a=b[14];return a}g["default"]=a}),226);
__d("MWV2UnsupportedAttachment.react",["fbt","MDSCautionTriangleSvgIcon.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useEffect;function a(a){var b=d("react-compiler-runtime").c(10),e=a.attachment,f=a.mediaRenderQpl;a=e.descriptionText;b[0]!==f?(e=function(){f==null?void 0:f.addPoint("render-unsupported-attachment")},b[0]=f,b[1]=e):e=b[1];k(e);var g,i;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x6s0dn4 x78zum5 xjkvuk6 x1iorvi4 x87ps6o"},g=j.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 xgx9qek x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xl56j7k xmo9yow x1iorvi4 x150jy0e xjkvuk6 x1e558r4"},{children:j.jsx(c("MDSCautionTriangleSvgIcon.react"),{color:"primary",size:24})})),i={className:"xzsf02u x1iyjqo2 x1s688f x13faqbe"},b[2]=e,b[3]=g,b[4]=i):(e=b[2],g=b[3],i=b[4]);var l;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(l=j.jsx(c("MWXText.react"),{type:"headline4",children:h._(/*BTDS*/"__JHASH__Uhh5LwoNOuv__JHASH__")}),b[5]=l):l=b[5];var m;b[6]!==a?(m=a!=null?j.jsx("div",babelHelpers["extends"]({className:"x889kno"},{children:j.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:a})})):null,b[6]=a,b[7]=m):m=b[7];b[8]!==m?(a=j.jsxs("div",babelHelpers["extends"]({},e,{children:[g,j.jsxs("div",babelHelpers["extends"]({},i,{children:[l,m]}))]})),b[8]=m,b[9]=a):a=b[9];return a}g["default"]=a}),226);
__d("MWPBaseXMAAttachmentItem.react",["BaseImage.react","I64","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MNLSXMALayoutType","MWPThreadCapabilitiesContext","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react")),l=h,m=l.createContext,n=l.useContext;l.useMemo;var o=new Set(["xma_rtc_video","xma_rtc_missed_video","xma_rtc_missed_group_video","xma_rtc_ended_video","xma_rtc_new_video_default","xma_rtc_new_video_from_fb_share","xma_rtc_new_video_from_fb_video_share","xma_rtc_new_video_from_cowatch_share","xma_rtc_cowatch_start_video"]),p=new Set(["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_missed_group_audio","xma_rtc_ended_audio","xma_rtc_new_audio_default","xma_rtc_new_audio_from_fb_share","xma_rtc_new_audio_from_fb_video_share","xma_rtc_new_audio_from_cowatch_share"]),q=m({hasAtLeastOneCta:!1,isDisabledRtcXma:!1,renderPressable:function(a){return null}});function a(a){var b=d("react-compiler-runtime").c(20),c=a.attachment,e=a.attachmentItem,f=a.children;a=a.renderPressable;var g=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();g=g.hasLSThreadBitOffset;var h;b[0]!==g?(h=g(25),b[0]=g,b[1]=h):h=b[1];h=h;var i;b[2]!==g?(i=g(24),b[2]=g,b[3]=i):i=b[3];g=i;i=c.defaultCtaType;c=e.attachmentCta1Id!=null;b[4]!==g||b[5]!==h||b[6]!==i?(e=i!=null?p.has(i)&&!h||o.has(i)&&!g:!1,b[4]=g,b[5]=h,b[6]=i,b[7]=e):e=b[7];g=e;b[8]!==a||b[9]!==c||b[10]!==g?(h={hasAtLeastOneCta:c,isDisabledRtcXma:g,renderPressable:a},b[8]=a,b[9]=c,b[10]=g,b[11]=h):h=b[11];i=h;e=i;b[12]!==f||b[13]!==a||b[14]!==c||b[15]!==g?(h=!c&&!g?a(f):f,b[12]=f,b[13]=a,b[14]=c,b[15]=g,b[16]=h):h=b[16];b[17]!==h||b[18]!==e?(i=k.jsx(q.Provider,{value:e,children:h}),b[17]=h,b[18]=e,b[19]=i):i=b[19];return i}function b(a){var b=d("react-compiler-runtime").c(3);a=a.children;var c=n(q);if(c.hasAtLeastOneCta&&!c.isDisabledRtcXma){var e;b[0]!==a||b[1]!==c?(e=c.renderPressable(a),b[0]=a,b[1]=c,b[2]=e):e=b[2];return e}else return a}var r={container:{display:"x78zum5",position:"x1n2onr6",width:"xh8yej3",$$css:!0},image:{flexGrow:"x1iyjqo2",height:"xt7dq6l",maxWidth:"x193iq5w",objectFit:"xl1xv1r",$$css:!0}};function e(a){var b=d("react-compiler-runtime").c(8),e=a.attachmentItem;a=a.url;var f=e.previewHeight;e=e.previewWidth;var g;b[0]!==f?(g=f!=null?(i||(i=d("I64"))).to_int32(f):void 0,b[0]=f,b[1]=g):g=b[1];b[2]!==e?(f=e!=null?(i||(i=d("I64"))).to_int32(e):void 0,b[2]=e,b[3]=f):f=b[3];b[4]!==g||b[5]!==f||b[6]!==a?(e=k.jsx(d("react-strict-dom").html.div,{style:r.container,children:k.jsx(c("BaseImage.react"),{height:g,src:a,width:f,xstyle:r.image})}),b[4]=g,b[5]=f,b[6]=a,b[7]=e):e=b[7];return e}function f(a){var b,c=a.attachment,e=a.attachmentItem,f=a.description,g=a.getPreviewUrl,h=a.mediaRenderQpl;a=a.preferLargePreview;a=a===void 0?!1:a;var i=d("LSMediaUrlAttachmentItem").playableUrl(e),j=d("LSMediaUrlAttachment").previewUrlLarge(c);b=a?(b=d("LSMediaUrlAttachmentItem").previewUrlLarge(e))!=null?b:d("LSMediaUrlAttachmentItem").previewUrl(e):d("LSMediaUrlAttachmentItem").previewUrl(e);g=g==null?d("LSMediaUrlAttachment").previewUrl(c):g(c,e,"MWPBaseXMAAttachmentItem.getXMAAttachmentItemPreview - "+f,h);f=a&&j!=null?j:(c=b)!=null?c:g;h=e.playableUrlMimeType;a=h!=null?h.includes("video")?"video":h.includes("image")?"image":"unsupported":"unsupported";if(a==="video"&&i!=null)return{type:"Video",url:i};if(f!=null)return{type:"Image",url:f};return a==="image"&&i!=null?{type:"Image",url:i}:{hasPlayableUrl:i!=null,hasPreviewUrl:f!=null,mimeType:a,playableUrlMimeType:e.playableUrlMimeType,type:"Unsupported"}}function s(a,b){var e=d("react-compiler-runtime").c(3),f=a.xmaLayoutType!=null&&!(i||(i=d("I64"))).equal(a.xmaLayoutType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").HSCROLL)),g=b.titleText;g=g!=null||!f?g:a.titleText;b=b.subtitleText;f=b!=null||!f?b:a.subtitleText;e[0]!==f||e[1]!==g?(b=[g,f],e[0]=f,e[1]=g,e[2]=b):b=e[2];return b}g.MWPBaseXMAAttachmentItemPressableContext=q;g.MWPBaseXMAAttachmentItemPressable=a;g.MWPBaseXMAAttachmentItemPressableNested=b;g.MWPBaseXMAAttachmentItemImage=e;g.getXMAAttachmentItemPreview=f;g.useTitleAndSubtitle=s}),98);
__d("useMWChatOpenTabByThreadKey",["I64","LSAuthorityLevel","LSContactType","LSFactory","LSIntEnum","LSVerifyThreadRowExistsStoredProcedure","MWPActor.react","Promise","ReQL","promiseDone","react","useMWBaseChatOpenTabForUser","useMWChatOpenTabForPage","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l;e=l||d("react");var m=e.useCallback,n=e.useMemo;function a(a,e){var g=(k||(k=c("useReStore")))(),l=c("useMWBaseChatOpenTabForUser")(void 0,e),o=l.openTabByThreadKey,p=c("useMWChatOpenTabForPage")(e),q=d("MWPActor.react").useActor(),r=n(function(){return new(h||(h=b("Promise")))(function(b,e){var h=(e=d("ReQL")).mergeJoin(e.fromTableAscending(g.tables.participants).getKeyRange(a).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,q)}),e.fromTableAscending(g.tables.contacts)),k={contents:function(){}};k.contents=h.subscribe(function(a,e){if(e.operation==="delete")return;a=e.value[1];if((i||(i=d("I64"))).ge(a.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))){k.contents();return b(a)}});c("promiseDone")(e.firstAsync(h),function(e){if(e!=null){e=e[1];if((i||(i=d("I64"))).ge(e.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))){k.contents();return b(e)}else return}c("promiseDone")(g.runInTransaction(function(b){return c("LSVerifyThreadRowExistsStoredProcedure")(c("LSFactory")(b),{syncGroup:(j||(j=d("LSIntEnum"))).ofNumber(1),threadKey:a,threadType:j.ofNumber(1)})},"readwrite",void 0,void 0,f.id+":89"))})})},[a,g]);return m(function(b){c("promiseDone")(r,function(e){var f=(i||(i=d("I64"))).to_string(a);e=e.contactType;if((i||(i=d("I64"))).equal(e,(j||(j=d("LSIntEnum"))).ofNumber(c("LSContactType").PAGE)))return p(f,!1);else return o(f,b)})},[r,o,p,a])}g["default"]=a}),98);
__d("MWXMAAttachmentActionTriggerWithOpenChatTab.react",["Int64Hooks","LSIntEnum","LSMessagingThreadTypeUtil","ReQL","promiseDone","react-compiler-runtime","useAsyncReStore","useCometRouterDispatcher","useMWChatOpenTabByThreadKey","useMWNavigation","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=d("react-compiler-runtime").c(3),c=a.children;a=a.threadKey;a=i(a);var e;b[0]!==c||b[1]!==a?(e=c(a),b[0]=c,b[1]=a,b[2]=e):e=b[2];return e}function i(a){var b=d("react-compiler-runtime").c(8),e=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT"),f=c("useCometRouterDispatcher")(),g=c("useMWChatOpenTabByThreadKey")(a,"chatInThread"),i=c("useAsyncReStore")(),j=c("useMWNavigation")(),k,l;b[0]!==i||b[1]!==f||b[2]!==e||b[3]!==j||b[4]!==g||b[5]!==a?(k=function(b){var k=(h||(h=d("LSIntEnum"))).ofNumber(22);c("promiseDone")(i,function(h){c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(h.tables.threads).getKeyRange(a)),function(c){var h=(c==null?void 0:c.threadType)!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(c.threadType);if(e){var i=b.metaKey||b.ctrlKey||b.shiftKey;if(!i)return g(h)}else if(f!=null&&c!=null)return j.openInbox({threadKey:a,threadType:c.threadType},"chatInThread",k);else return})})},l=[f,e,i,j,g,a],b[0]=i,b[1]=f,b[2]=e,b[3]=j,b[4]=g,b[5]=a,b[6]=k,b[7]=l):(k=b[6],l=b[7]);return d("Int64Hooks").useCallbackInt64(k,l)}g["default"]=a}),98);
__d("logXMACtaClicked",["I64","LsDidTapCallToActionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.cta,e=a.loggingDetails,f=a.source;if(e==null)return;a=b.actionContentBlob;var g=a!=null?i(a):"",n=a!=null?k(a):"",o=a!=null?j(a):"",p=a!=null?l(a):"",q=a!=null?m(a):"",r=e[1],s=e[0];c("LsDidTapCallToActionFalcoEvent").log(function(){return{action:{cta_type_unique_id:n,id:(h||(h=d("I64"))).to_string(b.ctaId),name:"",source:f,type:r},message:{campaign_id:o,id:b.messageId,marketing_message_impression_token:p,marketing_message_surface:q,notification_token:g},page:{id:s},target:{id:s},thread:{id:s}}})}function i(a){try{a=JSON.parse(a);a=a.notification_message_token;return a!=null?a:""}catch(a){return""}}function j(a){try{a=JSON.parse(a);a=a.mbs_mm_campaign_id;return a!=null?a:""}catch(a){return""}}function k(a){try{a=JSON.parse(a);a=a.mm_cta_unique_id;return a!=null?a:""}catch(a){return""}}function l(a){try{a=JSON.parse(a);a=a.mm_impression_token;return a!=null?a:""}catch(a){return""}}function m(a){try{a=JSON.parse(a);a=a.mm_surface;return a!=null?a:""}catch(a){return""}}g.logXMACtaClicked=a}),98);
__d("useMWChatPollXMAActionHandler",["JSResourceForInteraction","MWThreadKey.react","react","react-compiler-runtime","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(4),b=d("MWThreadKey.react").useMWThreadKeyMemoized(),e;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=c("JSResourceForInteraction")("MWChatPollDetailsDialog.react").__setRef("useMWChatPollXMAActionHandler"),a[0]=e):e=a[0];e=c("useMWXLazyDialog")(e);var f=e[0];a[1]!==f||a[2]!==b?(e=function(a,c){if(b==null||a==null||c==null)return;return f({pollId:a,threadKey:b,title:c},i)},a[1]=f,a[2]=b,a[3]=e):e=a[3];return e}function i(){}g["default"]=a}),98);
__d("useMWLinkHashXMAActionHandler",["ConstUriUtils","FBLogger","I64","LSCommunityInviteStatus","LSFactory","LSIntEnum","LSOptimisticFetchPendingGroupInviteStoredProcedure","MWCMGetValidId","MWCMStandaloneJoinDialog.entrypoint","MWCMStandaloneMemberJoinChatDialog.entrypoint","MWCMStandaloneRequestToJoinDialog.entrypoint","ReQL","ReQLSuspense","XMessengerDotComCometCommunityThreadsControllerRouteBuilder","gkx","goUriOnNewWindow","promiseDone","qex","react","react-compiler-runtime","requireDeferred","useCometRouterDispatcher","useMWNavigation","useMWXEntryPointDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;b=i||d("react");b.useCallback;var l=b.useRef,m=c("requireDeferred")("C4gEngagementFalcoEvent").__setRef("useMWLinkHashXMAActionHandler"),n=["ch","cm"];function o(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&&n.includes(a[0])?a[1]:null}return null}function p(a,b,e,f,g,h){if(b==null)return;if(f==null){var i=c("XMessengerDotComCometCommunityThreadsControllerRouteBuilder").buildExtraURL("/c/{folder_id}/",{folder_id:(k||(k=d("I64"))).to_string(e)});if(a)return b.go(i,{});c("goUriOnNewWindow")("https://www.messenger.com"+i);return}if(a)return b.go(c("XMessengerDotComCometCommunityThreadsControllerRouteBuilder").buildURL({folder_id:(k||(k=d("I64"))).to_string(e),thread_key:k.to_string(f)}),{});c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(g.tables.threads).getKeyRange(f)),function(a){if(a!=null)return h.openInbox({threadKey:f,threadType:a.threadType},"xmaAttachment");else{a=c("XMessengerDotComCometCommunityThreadsControllerRouteBuilder").buildURL({folder_id:(k||(k=d("I64"))).to_string(e),thread_key:k.to_string(f)});c("goUriOnNewWindow")("https://www.messenger.com"+a)}})}function a(){var a=d("react-compiler-runtime").c(10),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b={},a[0]=b):b=a[0];b=c("useMWXEntryPointDialog")(c("MWCMStandaloneRequestToJoinDialog.entrypoint"),b);var e=b[0];a[1]===Symbol["for"]("react.memo_cache_sentinel")?(b={},a[1]=b):b=a[1];b=c("useMWXEntryPointDialog")(c("MWCMStandaloneJoinDialog.entrypoint"),b);var g=b[0];a[2]===Symbol["for"]("react.memo_cache_sentinel")?(b={},a[2]=b):b=a[2];b=c("useMWXEntryPointDialog")(c("MWCMStandaloneMemberJoinChatDialog.entrypoint"),b);var i=b[0],n=(h||(h=c("useReStore")))(),q=c("useCometRouterDispatcher")(),r=c("gkx")("23433"),s=l(),t=c("useMWNavigation")();a[3]!==q||a[4]!==n||a[5]!==t||a[6]!==g||a[7]!==i||a[8]!==e?(b=function(a,b){if(a==null)return c("FBLogger")("messenger_web_sharing").info("Invalid url to extract link hash");var h=o(a);if(h==null)return c("FBLogger")("messenger_web_sharing").info("Invalid link hash in url");c("promiseDone")(n.runInTransaction(function(a){return c("LSOptimisticFetchPendingGroupInviteStoredProcedure")(c("LSFactory")(a),{linkHash:h})},"readwrite",void 0,void 0,f.id+":195"));s.current=d("ReQL").fromTableAscending(n.tables.group_invitations_pending).getKeyRange(h).subscribe(function(a,l){if(l.operation!=="delete"){a=l.value;var o=a.communityId,u=a.communityJoinRequestStatus;l=a.isSubscribed;var v=a.threadId;if(!d("MWCMGetValidId").MWCMHasValidFbGroupId(o,!0))return;s.current==null?void 0:s.current();var w=d("ReQLSuspense").first(d("ReQL").fromTableAscending(n.tables.community_folders).getKeyRange(o),f.id+":222");if(b==="xma_join_community"||b==="xma_join_community_chat"){m.onReady(function(a){a.log(function(){return{action:"tap",client_extras:{has_invite:(w==null).toString(),has_pending_request:(k||(k=d("I64"))).to_string(u)},community_id:k.to_string(o),entry_point:"cm:xma",event:v==null?"request_to_join_community_initiated":"request_to_join_community_and_thread_initiated",surface:"message_thread",thread_id:v!=null?(k||(k=d("I64"))).to_string(v):void 0}})});if(w!=null&&(k||(k=d("I64"))).equal(w.inviteStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSCommunityInviteStatus").INVITED)))return g({folder:w});return c("qex")._("1827")===!0&&(w==null?void 0:w.isMember)===!0?l?p(r,q,o,v,n,t):i({linkHash:h}):e({linkHash:h})}if(q==null)return;m.onReady(function(a){a.log(function(){return{action:"tap",community_id:(k||(k=d("I64"))).to_string(o),entry_point:"cm:xma",event:v==null?"redirect_to_community":"redirect_to_community_and_thread",surface:"message_thread",thread_id:v!=null?(k||(k=d("I64"))).to_string(v):void 0}})});return p(r,q,o,v,n,t)}})},a[3]=q,a[4]=n,a[5]=t,a[6]=g,a[7]=i,a[8]=e,a[9]=b):b=a[9];a=b;return a}g["default"]=a}),98);
__d("MWRollcallContributionsDialogContainer.react",["CometHideLayerOnEscape.react","CometTheme.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(10),e=a.children,f=a.onClose;a=a.visibilityRef;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g={className:"x1qjc9v5 xal61yo x9f619 x78zum5 xdt5ytf x1iyjqo2 x5yr21d x1n2onr6 x87ps6o x1uvtmcs"},b[0]=g):g=b[0];var h;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(h={display:"contents"},b[1]=h):h=b[1];b[2]!==e?(h=i.jsx(c("CometTheme.react"),{style:h,theme:"dark",children:e}),b[2]=e,b[3]=h):h=b[3];b[4]!==h||b[5]!==a?(e=i.jsx("div",babelHelpers["extends"]({},g,{ref:a,children:h})),b[4]=h,b[5]=a,b[6]=e):e=b[6];b[7]!==f||b[8]!==e?(g=i.jsx(c("CometHideLayerOnEscape.react"),{onHide:f,children:e}),b[7]=f,b[8]=e,b[9]=g):g=b[9];return g}g["default"]=a}),98);
__d("MWRollcallContributionsDialogFallback.react",["fbt","ix","MDSColumn.react","MDSColumnItem.react","MDSGlimmer.react","MDSRow.react","MDSRowItem.react","MWRollcallContributionsDialogContainer.react","MWXIcon.react","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(14);a=a.onClose;var e,f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=h._(/*BTDS*/"__JHASH__l-5nlfLCheV__JHASH__"),f=d("fbicon")._(i("478232"),16),b[0]=e,b[1]=f):(e=b[0],f=b[1]);b[2]!==a?(e=k.jsx(c("MDSRowItem.react"),{children:k.jsx(c("MWXIcon.react"),{"aria-label":e,icon:f,onPress:a,size:20})}),b[2]=a,b[3]=e):e=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(f=k.jsx(c("MDSRowItem.react"),{children:k.jsx(c("MDSGlimmer.react"),{index:0,xstyle:l.rollcallTitle})}),b[4]=f):f=b[4];var g;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__LLSQ7_q3mOX__JHASH__"),b[5]=g):g=b[5];b[6]===Symbol["for"]("react.memo_cache_sentinel")?(g=k.jsx(c("MDSRowItem.react"),{children:k.jsx(c("MWXIcon.react"),{"aria-label":g,disabled:!0,icon:d("fbicon")._(i("816819"),16),size:20})}),b[6]=g):g=b[6];b[7]!==e?(f=k.jsxs(c("MDSRow.react"),{paddingHorizontal:16,paddingVertical:16,spacing:0,verticalAlign:"center",children:[e,f,g]}),b[7]=e,b[8]=f):f=b[8];b[9]===Symbol["for"]("react.memo_cache_sentinel")?(g=k.jsx(c("MDSRowItem.react"),{children:k.jsx(c("MDSGlimmer.react"),{index:0,xstyle:l.profilePicture})}),b[9]=g):g=b[9];b[10]===Symbol["for"]("react.memo_cache_sentinel")?(e=k.jsx(c("MDSColumn.react"),{align:"center",expanding:!0,paddingVertical:20,spacing:20,verticalAlign:"center",children:k.jsxs(c("MDSColumnItem.react"),{children:[k.jsxs(c("MDSRow.react"),{align:"start",paddingHorizontal:0,paddingVertical:12,spacing:8,verticalAlign:"center",xstyle:l.contributionHeader,children:[g,k.jsx(c("MDSRowItem.react"),{children:k.jsx(c("MDSGlimmer.react"),{index:0,xstyle:l.profileName})})]}),k.jsx(c("MDSGlimmer.react"),{index:0,xstyle:l.contributionMedia})]})}),b[10]=e):e=b[10];b[11]!==a||b[12]!==f?(g=k.jsxs(c("MWRollcallContributionsDialogContainer.react"),{onClose:a,children:[f,e]}),b[11]=a,b[12]=f,b[13]=g):g=b[13];return g}var l={contributionHeader:{width:"x1cvmir6",$$css:!0},contributionMedia:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",height:"xuo6tqj",marginBottom:"x1e56ztr",width:"x1cvmir6",$$css:!0},profileName:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",height:"x1qx5ct2",width:"x1oysuqx",$$css:!0},profilePicture:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x10w6t97",width:"x1td3qas",$$css:!0},rollcallTitle:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x10w6t97",width:"xdzyupr",$$css:!0}};g["default"]=a}),226);
__d("RollcallXmaCtaClickQplLogging",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("QPLUserFlow").endSuccess(c("qpl")._(127406705,"1680"))}function b(){c("QPLUserFlow").endFailure(c("qpl")._(127406705,"1680"),"fail to load roll call information")}function d(a,b,d){c("QPLUserFlow").start(c("qpl")._(127406705,"1680"),{annotations:{string:{cta_title:d,entry_point:a,source_type:b}}})}g.endSuccessXMACtaClickQplLogging=a;g.endFailureXMACtaClickQplLogging=b;g.startXMACtaClickQplLogging=d}),98);
__d("RollcallXmaViewerQplLogging",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("QPLUserFlow").endSuccess(c("qpl")._(127403136,"1137"))}function b(){c("QPLUserFlow").endFailure(c("qpl")._(127403136,"1137"),"error while doing actions in Rollcall viewer.")}function d(a,b,d){c("QPLUserFlow").start(c("qpl")._(127403136,"1137"),{annotations:{bool:{is_viewer_contribute:b},"int":{total_media_items:a},string:{source_type:d}}})}function e(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"added_reaction")}function f(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"unsend_contribution")}function h(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"reset_prompt")}function i(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"report_prompt")}function j(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"report_contribution")}function k(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"reply_contribution")}g.endSuccessXMARollCallViewerQplLogging=a;g.endFailureXMARollCallViewerQplLogging=b;g.startXMARollCallViewerQplLogging=d;g.addReactionRollCallViewerQplPoint=e;g.unsendContributionRollCallViewerQplPoint=f;g.resetPromptRollCallViewerQplPoint=h;g.reportPromptRollCallViewerQplPoint=i;g.reportContributionRollCallViewerQplPoint=j;g.replyContributionRollCallViewerQplPoint=k}),98);
__d("useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23868899752758299"}),null);
__d("useRollcallContributionsXMAActionHandlerQuery.graphql",["useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"surface_nux_id",value:10706},{kind:"Literal",name:"trigger",value:"COMMUNITY_MESSAGING_PROMPT"}],c=[{kind:"Literal",name:"supported",value:"TDHjT"}],d={kind:"InlineFragment",selections:[{args:null,documentName:"useRollcallContributionsXMAActionHandlerQuery",fragmentName:"CometQuickPromotionMessengerWebPromptsNuxDialogRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebPromptsRendererStrategy",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRollcallContributionsXMAActionHandlerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[d],storageKey:'renderer_strategy(supported:"TDHjT")'}],storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_PROMPT")'}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useRollcallContributionsXMAActionHandlerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d],storageKey:'renderer_strategy(supported:"TDHjT")'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_PROMPT")'}],storageKey:null}]},params:{id:b("useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation"),metadata:{},name:"useRollcallContributionsXMAActionHandlerQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
__d("useRollcallContributionsXMAActionHandler",["CometRelay","I64","JSResourceForInteraction","LSMessagingThreadTypeUtil","MWChannelPromptContributionsDialog.entrypoint","MWChannelPromptContributionsDialogFallback.react","MWDidQueryPromptsNux","MWLSThread","MWRollcallContributionsDialogFallback.react","MessengerDiscoverableBroadcastChatsClientEventsFalcoEvent","RollcallXmaCtaClickQplLogging","RollcallXmaViewerQplLogging","mwCMIsAnyCMThread","promiseDone","react","react-compiler-runtime","useMWXEntryPointDialog","useMWXLazyDialog","usePrevious","useRollcallContributionsXMAActionHandlerQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));e=i;e.useCallback;var l=e.useEffect,m=e.useState;function n(){var a=d("react-compiler-runtime").c(2),c=d("CometRelay").useRelayEnvironment(),e;a[0]!==c?(e=function(){return d("CometRelay").fetchQuery(c,h!==void 0?h:h=b("useRollcallContributionsXMAActionHandlerQuery.graphql"),{}).toPromise()},a[0]=c,a[1]=e):e=a[1];return e}function a(){var a=d("react-compiler-runtime").c(26),b=m((j||(j=d("I64"))).zero),e=b[0],f=b[1];b=m("");var g=b[0],h=b[1];b=m(j.zero);var i=b[0],k=b[1];b=m(null);var s=b[0],t=b[1];b=m(null);var u=b[0],v=b[1],w=c("usePrevious")(e),x=c("usePrevious")(i);a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWRollcallContributionsDialog.react").__setRef("useRollcallContributionsXMAActionHandler"),a[0]=b):b=a[0];b=c("useMWXLazyDialog")(b,r);var y=b[0];a[1]!==i?(b=(j||(j=d("I64"))).to_string(i),a[1]=i,a[2]=b):b=a[2];var z;a[3]!==b?(z={promptId:b},a[3]=b,a[4]=z):z=a[4];b=c("useMWXEntryPointDialog")(c("MWChannelPromptContributionsDialog.entrypoint"),z,void 0,q);var A=b[0];a[5]===Symbol["for"]("react.memo_cache_sentinel")?(z=c("JSResourceForInteraction")("MWCommunityMessagingPromptsNUXQuickPromotion.react").__setRef("useRollcallContributionsXMAActionHandler"),a[5]=z):z=a[5];b=c("useMWXLazyDialog")(z);var B=b[0],C=n();z=d("MWLSThread").useThread(e,p);a[6]!==z?(b=z!==void 0&&c("mwCMIsAnyCMThread")(z),a[6]=z,a[7]=b):b=a[7];var D=b;a[8]!==z?(b=z!==void 0&&d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(z),a[8]=z,a[9]=b):b=a[9];var E=b;a[10]!==u||a[11]!==D||a[12]!==E||a[13]!==g||a[14]!==x||a[15]!==w||a[16]!==C||a[17]!==i||a[18]!==s||a[19]!==A||a[20]!==B||a[21]!==y||a[22]!==e?(z=function(){D!=null&&!(j||(j=d("I64"))).is_zero(e)&&!(j||(j=d("I64"))).is_zero(i)&&w!==e&&x!==i&&(d("RollcallXmaCtaClickQplLogging").startXMACtaClickQplLogging("xma_www_button",D?"cm_thread":"friends_family_thread","open_viewer"),d("MWDidQueryPromptsNux").getDidQueryPromptsNux()||d("MWDidQueryPromptsNux").markDidQueryPromptsNux(),E?(A({rollCallId:i,threadKey:e,xmaMessageId:g},function(){d("RollcallXmaViewerQplLogging").endSuccessXMARollCallViewerQplLogging(),f((j||(j=d("I64"))).zero),k(j.zero),t(null)}),c("MessengerDiscoverableBroadcastChatsClientEventsFalcoEvent").log(function(){return{action_name:1,event_name:305,source:157,surface:7,thread_id:(j||(j=d("I64"))).to_string(e)}})):y({ctaType:u,rollCallId:i,scrollToContributionMessageId:s,threadKey:e},function(){d("RollcallXmaViewerQplLogging").endSuccessXMARollCallViewerQplLogging(),f((j||(j=d("I64"))).zero),h(""),k(j.zero),t(null)}),c("promiseDone")(C(),function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.eligible_promotions)==null?void 0:(a=a.nodes)==null?void 0:(a=a.find(o))==null?void 0:(a=a.comet_qp_sections)==null?void 0:a.renderer_strategy;a&&B({asCreator:!1,rendererStrategy:a})}))},b=[D,x,w,i,A,e,s,C,B,u,y,g,E],a[10]=u,a[11]=D,a[12]=E,a[13]=g,a[14]=x,a[15]=w,a[16]=C,a[17]=i,a[18]=s,a[19]=A,a[20]=B,a[21]=y,a[22]=e,a[23]=z,a[24]=b):(z=a[23],b=a[24]);l(z,b);a[25]===Symbol["for"]("react.memo_cache_sentinel")?(z=function(a,b,c,d,e){h(e),f(b),k(a),t(c),v(d)},a[25]=z):z=a[25];return z}function o(a){return((a=a.comet_qp_sections)==null?void 0:a.renderer_strategy)!=null}function p(a){return a.threadType}function q(a){return k.jsx(c("MWChannelPromptContributionsDialogFallback.react"),{onClose:a})}q.displayName=q.name+" [from "+f.id+"]";function r(a){return k.jsx(c("MWRollcallContributionsDialogFallback.react"),{onClose:a})}r.displayName=r.name+" [from "+f.id+"]";g.useRollcallContributionsXMAActionHandler=a}),98);
__d("useShouldTryWithMessengerDesktop",["MWFacebookUserWithoutMessengerAccess","MessengerDesktopDeepLinkUtils","ODS","gkx","promiseDone","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef,l=b.useState;function a(){var a=d("react-compiler-runtime").c(2),b=l(!1),e=b[0],f=b[1],g=k(!1),h=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess();a[0]!==h?(b=function(){if(g.current)return;g.current=!0;if(h)return;if(c("gkx")("23670")||!d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEligible())return;(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","is_dapp_running");c("promiseDone")(d("MessengerDesktopDeepLinkUtils").isMessengerDesktopRunning(d("MessengerDesktopDeepLinkUtils").PORT).then(function(a){if(!a||a!==200){a||(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","localhost_did_not_respond");a===500&&(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","localhost_responded_but_crashed");return}f(!0)}))},a[0]=h,a[1]=b):b=a[1];j(b);return e}g["default"]=a}),98);
__d("useStartRTCCall",["MWLSStartPhoneCall","MWStartRTCCallUtils","useShouldTryWithMessengerDesktop"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useShouldTryWithMessengerDesktop")(),b=d("MWLSStartPhoneCall").useMakeRTCCall();b=b[0];var e=d("MWStartRTCCallUtils").useStartDesktopCall(b);return a?e:b}g["default"]=a}),98);
__d("xmaAttachmentUtils",["I64","LSIntEnum","MNXMAPreviewImageDecorationType"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){a=a.actionUrl;return(a==null?void 0:a.includes("groupcall"))===!0}function b(a){a=a.previewImageDecorationType;if(a==null)return!1;var b=(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").DXMA_LIVE));a=h.equal(a,i.ofNumber(c("MNXMAPreviewImageDecorationType").DXMA_LIVE_ENDED));return b||a}function e(a){var b=null;try{a=JSON.parse(a);a!=null&&typeof a==="object"&&Array.isArray(a)===!1&&a.postback_action_text!=null&&(b=a.postback_action_text)}catch(a){b=null}return b}g.isMeetingsAttachment=a;g.isLiveXMA=b;g.getPostbackTextFromCTAContentBlob=e}),98);
__d("useGetMWXMACtaRegistryHandler",["$InternalEnum","Actor","AdsMessengerContext.react","ConstUriUtils","CustomerInformationTemplateFalcoEvent","I64","LSIntEnum","MWChatXmaThirdPartyActionHandler","MWLSImagePostbackCtaHandler","MWLSPostbackCtaHandler","MWLSThreadDisplayContext","MWLSWebUrlCtaHandler","RoomsLinkUtils","XCometProfileControllerRouteBuilder","XCometStoriesControllerRouteBuilder","cr:131","cr:236","cr:4538","cr:4539","emptyFunction","gkx","isStringNullOrEmpty","nullthrows","react","useEmptyFunction","useLSMessagingInitiatingSource","useLSMessagingSource","useMWBaseChatOpenTabForUser","useMWChatPollXMAActionHandler","useMWLinkHashXMAActionHandler","useMWNavigation","useOpenSubthreadView","useRollcallContributionsXMAActionHandler","useStartRTCCall","xmaAttachmentUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext,l=(f=(e=b("cr:4539"))!=null?e:b("cr:131"))!=null?f:c("useEmptyFunction"),m=(f=(e=b("cr:4538"))!=null?e:b("cr:236"))!=null?f:c("useEmptyFunction"),n=b("$InternalEnum")({SUBTHREAD_LINK:"fb-messenger://community_subthread/"});function a(){var a=c("useLSMessagingInitiatingSource")(),b=c("useLSMessagingSource")(),e=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),f=c("useMWBaseChatOpenTabForUser")(void 0,"inboxInThread"),g=f.openTabForUser;f=d("Actor").useActor();var h=f[0];f=d("MWLSImagePostbackCtaHandler").usePostbackCtaHandler(b,a);b=c("useStartRTCCall")();var o=d("MWChatXmaThirdPartyActionHandler").useHandler(f,b),p=d("MWLSPostbackCtaHandler").usePostbackCtaHandler(),q=c("useMWLinkHashXMAActionHandler")(),r=c("useMWChatPollXMAActionHandler")(),s=d("useRollcallContributionsXMAActionHandler").useRollcallContributionsXMAActionHandler(),t=d("MWLSWebUrlCtaHandler").useShowWebViewDialog(),u=c("useMWNavigation")();a=m();var v=l({onSuccess:(f=a)!=null?f:c("emptyFunction")}),w=c("useOpenSubthreadView")();b=k(d("AdsMessengerContext.react").AdsMessengerContext);var x=b.isMessageSendDisabled;return function(a){var b=/^http(s)*\:\/\/m\.me\/([a-z0-9\.\_]+)$/i,f=a.actionUrl!=null&&b.test(a.actionUrl)?(b=a.actionUrl)==null?void 0:b.replace("m.me/","messenger.com/t/"):a.actionUrl,k=a.platformToken,l=a.type_,m=a.title,y=a.messageId,z=a.threadKey,A=a.attachmentFbid,B=a.targetId,C=B!=null?(i||(i=d("I64"))).to_string(B):null;b=["Title: "+m,"Type: "+l,"PlatformTokenPresent: "+(k!=null).toString(),"ActionUrlPresent: "+(f!=null).toString(),"ActionContentBlobPresent: "+(a.actionContentBlob!=null).toString()].join(", ");if(l==="xma_roll_call_open_viewer"||l==="xma_prompt_open_viewer_for_text"||l==="xma_roll_call_add_yours")return B==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){s(c("nullthrows")(B),z,null,l,y)},secondaryInfo:void 0};if(l==="xma_rtc_audio"||l==="xma_rtc_missed_audio"||l==="xma_rtc_new_audio_default"||l==="xma_rtc_ended_audio"){var D={hasVideo:!1,threadId:(i||(i=d("I64"))).to_string(z),trigger:l};B!=null&&(D.representedID=(i||(i=d("I64"))).to_string(B));return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"MakeRtcCall",VAL:D})},secondaryInfo:void 0}}if(l==="xma_rtc_video"||l==="xma_rtc_new_video_default"||l==="xma_rtc_new_video_from_fb_share"||l==="xma_rtc_new_video_from_fb_video_share"||l==="xma_rtc_missed_video"||l==="xma_rtc_ended_video")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"MakeRtcCall",VAL:{hasVideo:!0,threadId:(i||(i=d("I64"))).to_string(z),trigger:l}})},secondaryInfo:void 0};if(l==="xma_postback"){var E=c("gkx")("3418")&&a.actionContentBlob!=null?d("xmaAttachmentUtils").getPostbackTextFromCTAContentBlob(a.actionContentBlob):null;return x?{actionType:"DISABLED_BUTTON",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){var a;return p(k,(a=E)!=null?a:m)},secondaryInfo:[(i||(i=d("I64"))).to_string(z),31]}}if(l==="xma_smag_postback")return x?{actionType:"DISABLED_BUTTON",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"HandleSMAGPostback",VAL:{actionContentBlob:a.actionContentBlob,ctaLabel:a.title,message:m,platformToken:k,url:f}})},secondaryInfo:void 0};if(l==="xma_open_dialog"){var F;if(f==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected an open dialog url but didn't get any",secondaryInfo:"messenger_business_core_product"};F=(F=d("ConstUriUtils").getUri(f))==null?void 0:F.getQueryData==null?void 0:F.getQueryData();if(F==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected a valid open dialog url but didn't get any",secondaryInfo:"messenger_business_core_product"};var G=String(F.page_id).toString(),H=String(F.guest_id).toString();return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowGuestChatHistory",VAL:{guestId:H,pageId:G}})},secondaryInfo:void 0}}if(l==="xma_p2p_payment_details"||l==="xma_p2p_request_pay"||l==="xma_p2p_payment_details_receive_money"||l==="xma_p2p_verify_info"){var I=a.targetId;return I==null?{actionType:"CTA_ERROR",primaryInfo:"P2P Transaction encounterd without txn id",secondaryInfo:"messenger_privacy_web"}:{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2PPaymentTransactionDetails",VAL:{currentStatus:null,id:(i||(i=d("I64"))).to_string(I)}})},secondaryInfo:void 0}}if(l==="fill_in_thread_form"||l==="filled_in_thread_form_successfully"){var J=a.actionContentBlob;return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowInThreadFormDetails",VAL:JSON.parse(c("nullthrows")(J))})},secondaryInfo:void 0}}if(l==="xma_join_from_portal"&&f!=null)return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"MakeJoinRoomFromPortal",VAL:{linkUrl:f}})},secondaryInfo:void 0};if(l==="xma_live_location_sharing")return{actionType:"BUTTON",primaryInfo:function(){return o(a.nativeUrl!=null?{NAME:"ShowStaticLocationDetails",VAL:{msgId:y}}:{NAME:"ShowLiveLocationDetails",VAL:{messageId:y,titleString:m}})},secondaryInfo:void 0};if(l==="xma_web_url"){F=a.nativeUrl;if(F!=null&&F.includes("://timeline_review/")){F=(F=c("XCometProfileControllerRouteBuilder").buildUri({id:h,log_filter:"review",sk:"approve"}).setDomain("www.facebook.com"))==null?void 0:F.setProtocol("https");return{actionType:"URL",primaryInfo:c("nullthrows")(F).toString(),secondaryInfo:void 0}}if(f!=null&&f.includes("://location_share"))return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowStaticLocationDetails",VAL:{msgId:y}})},secondaryInfo:void 0}}if(l==="contact_sharing_profile"&&a.targetId!=null){F=(F=c("XCometProfileControllerRouteBuilder").buildUri({id:(i||(i=d("I64"))).to_string(a.targetId)}).setDomain("www.facebook.com"))==null?void 0:F.setProtocol("https");return{actionType:"URL",primaryInfo:c("nullthrows")(F).toString(),secondaryInfo:void 0}}if(l==="contact_sharing_message"&&C!=null)return{actionType:"BUTTON",primaryInfo:function(){e==="ChatTab"?C!=null&&g({userId:C}):B!=null&&u.openInbox({clientThreadKey:void 0,threadKey:B,threadType:(j||(j=d("LSIntEnum"))).ofNumber(1)},"contactShareMessage")},secondaryInfo:void 0};if(l==="xma_join_community"||l==="xma_join_community_chat"||l==="xma_see_community"||l==="xma_see_community_chat")return{actionType:"BUTTON",primaryInfo:function(){return q(f,l)},secondaryInfo:void 0};var K=a.actionContentBlob;if(l==="xma_poll_details_button"||l==="xma_poll_details_card")return{actionType:"BUTTON",primaryInfo:function(){return r(B,K)},secondaryInfo:void 0};if(K!=null&&B!=null)try{var L=JSON.parse(K);if(l==="xma_admod_chat_member_request")return{actionType:"BUTTON",primaryInfo:function(){var a=L.activityLogItemID,b=L.groupID,c=L.profileID;return o({NAME:"AdmodChatsShowMemberRequest",VAL:{activityLogItemId:a!=null?JSON.stringify(a):"",groupId:b!=null?JSON.stringify(b):"",profileId:c!=null?JSON.stringify(c):"",targetId:B!=null?(i||(i=d("I64"))).to_string(B):""}})},secondaryInfo:void 0};else if(l==="xma_admod_chat_pending_post")return{actionType:"BUTTON",primaryInfo:function(){var a=L.activityLogItemID,b=L.authorID,c=L.groupID,e=L.postID;return o({NAME:"AdmodChatsShowPendingPost",VAL:{activityLogItemId:a!=null?JSON.stringify(a):"",authorId:b!=null?JSON.stringify(b):"",groupId:c!=null?JSON.stringify(c):"",postId:e!=null?JSON.stringify(e):"",targetId:B!=null?(i||(i=d("I64"))).to_string(B):""}})},secondaryInfo:void 0}}catch(a){if(l!=="marketplace_xma_call_function")return{actionType:"NOT_SUPPORTED",primaryInfo:void 0}}var M=a.targetId;if(M!=null){if(c("gkx")("3131")&&(l==="xma_merchant_confirm_order"&&(f==null||f===""))){var N={orderID:(i||(i=d("I64"))).to_string(M)};return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowMerchantConfirmOrder",VAL:N})},secondaryInfo:void 0}}var O={ctaId:a.ctaId,ctaType:l,orderID:(i||(i=d("I64"))).to_string(M)};if(l==="xma_p2m_payment_details")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MOrderDetails",VAL:O})},secondaryInfo:void 0};else if(l==="xma_p2m_attach_receipt")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MAttachBankSlip",VAL:O})},secondaryInfo:void 0};else if(l==="xma_p2m_offsite_bank_transfer")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MOffsiteBankTransferCTA",VAL:O})},secondaryInfo:void 0};else if(l==="xma_p2m_mark_as_paid")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MMarkAsPaid",VAL:{ctaId:a.ctaId,ctaType:l,orderID:(i||(i=d("I64"))).to_string(M)}})},secondaryInfo:void 0};else if(l==="xma_p2m_mark_as_shipped")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MMarkAsShipped",VAL:{ctaId:a.ctaId,ctaType:l,orderID:(i||(i=d("I64"))).to_string(M)}})},secondaryInfo:void 0};else if(l==="xma_p2m_mark_as_received")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MMarkAsReceived",VAL:{ctaId:a.ctaId,ctaType:l,orderID:(i||(i=d("I64"))).to_string(M)}})},secondaryInfo:void 0};if(l==="xma_p2m_checkout"){var P={orderID:(i||(i=d("I64"))).to_string(M),pageID:i.to_string(z)};return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MCheckout",VAL:P})},secondaryInfo:void 0}}if(l==="xma_p2m_informational_message_bottom_sheet"){var Q={contentType:JSON.parse(c("nullthrows")(K)),orderID:(i||(i=d("I64"))).to_string(M),pageID:i.to_string(z)};return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MInformationalMessageBottomSheet",VAL:Q})},secondaryInfo:void 0}}}if(l==="xma_p2m_async_controller"){var R={payload:JSON.parse(c("nullthrows")(K))};return R.payload.action_type==="mark_as_x"&&M!=null?{actionType:"BUTTON",primaryInfo:function(){var b;return o({NAME:"P2MMarkAsX",VAL:{ctaId:a.ctaId,ctaType:(b=R.payload.extra_data.cta_type)!=null?b:"",orderID:(i||(i=d("I64"))).to_string(M)}})}}:{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"P2MAsyncControllerDialog",VAL:R})}}}if(l==="xma_ads_ai_survey")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowAdsAISurveyModal",VAL:JSON.parse(c("nullthrows")(K))})},secondaryInfo:void 0};if(l==="XMA_ADS_AI_ASSET_SELECTION"){var S=K!=null?JSON.parse(c("nullthrows")(K)):{};return x?{actionType:"DISABLED_BUTTON",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){var a;return o({NAME:"ShowAdsAILowProbabilityEntitySelectionModal",VAL:{adAccountID:S.ad_account_id,allowDraftSelection:(a=S.allow_draft_selection)!=null?a:!1,entityType:S.entity_type,threadKey:z}})},secondaryInfo:void 0}}if(l==="xma_customer_information"){var T=(i||(i=d("I64"))).to_string(z);c("CustomerInformationTemplateFalcoEvent").log(function(){return{consumer_id:h,event_type:"mw_xma_impression",form_id:a.attachmentFbid,page_id:T}});var U={actorId:h,eeMessageId:a.attachmentFbid,messageId:a.messageId,pageId:T};return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"BuyerShippingAddress",VAL:U})},secondaryInfo:void 0}}if(K==null&&(l==="xma_direct_send"||l==="xma_biz_inbox_form_send"||l==="xma_feedback_send"))return{actionType:"CTA_ERROR",primaryInfo:"Expected pii_form data but didn't get any",secondaryInfo:"mb_apix"};if(l==="xma_direct_send")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowPIIForm",VAL:JSON.parse(c("nullthrows")(K))})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),45]};if(l==="xma_biz_inbox_form_send")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowPIIFormForFormBuilder",VAL:{ctaType:l,nuxData:{description:"",seen:!0,title:"",url:"",url_text:""},piiForm:JSON.parse(c("nullthrows")(K))}})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),45]};if(l==="xma_feedback_send")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowCustomerFeedbackForm",VAL:{feedbackFormId:c("nullthrows")(K)}})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),69]};if(l==="xma_workplace_chat_bot_submit_feedback"){var aa={feedbackActionContentBlob:c("nullthrows")(K)};return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"WorkplaceChatBotSubmitFeedback",VAL:aa})},secondaryInfo:void 0}}if(l==="xma_work_meetings_invite"){F=d("RoomsLinkUtils").getRoomsLinkHash((F=a==null?void 0:a.actionUrl)!=null?F:"");return F!=null?{actionType:"POPOVER_BUTTON",primaryInfo:F}:{actionType:"NOT_SUPPORTED",primaryInfo:void 0}}if(l==="xma_account_link")return f==null?{actionType:"CTA_ERROR",primaryInfo:"Expected an account link url but didn't get any",secondaryInfo:"mb_apix"}:{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"OpenAccountLinkUrl",VAL:f})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),49]};if(l==="xma_open_joinable_call_invite_url")return{actionType:"BUTTON",primaryInfo:function(){var a;return o({NAME:"MakeWorkJoinableCallInvite",VAL:{linkUrl:(a=f)!=null?a:""}})},secondaryInfo:void 0};if(l==="xma_montage_share"){if(a.targetId==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};F=(F=c("XCometStoriesControllerRouteBuilder").buildUri({card_id:window.btoa("S:_ISC:"+(i||(i=d("I64"))).to_string(a.targetId)),view_single:!0}).setDomain("www.facebook.com"))==null?void 0:F.setProtocol("https");return F==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"URL",primaryInfo:c("nullthrows")(F).toString(),secondaryInfo:void 0}}if(l==="marketplace_xma_call_function")return a.actionContentBlob==null||a.targetId==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ProcessMarketplaceCallFunction",VAL:{actionType:c("nullthrows")(a.actionContentBlob),attachmentFbid:A,messageId:y,targetId:c("nullthrows")(a.targetId)}})},secondaryInfo:void 0};if(l==="marketplace_xma_open_dialog"){if(f==null||a.actionContentBlob==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected an open dialog url and actionContentBlob but didn't get any",secondaryInfo:"messenger_business_core_product"};F=d("ConstUriUtils").getUri(f);if(F==null)return{actionType:"CTA_ERROR",primaryInfo:"Found invalid url when creating CTA",secondaryInfo:"messenger_business_core_product"};var ba=String(F.getQueryParam("listingID")).toString();return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"OpenMarketplaceDialog",VAL:{ctaType:c("nullthrows")(a.actionContentBlob),listingId:ba,threadId:(i||(i=d("I64"))).to_string(z)}})},secondaryInfo:void 0}}if(l==="xma_ctm_in_thread_multiphoto_reply_image"){if(a.actionContentBlob==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};try{F=JSON.parse(a.actionContentBlob);var V=F.action_prefill,ca=F.ad_id,da=F.customer_id,ea=F.index,fa=F.page_id,W=F.reply_image_uri;if(V==null||W==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};var ga='{"in_thread_multiphoto_xma_reply": true}';return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"SendImagePostback",VAL:{image:W,loggingDetails:{ad_id:ca.toString(),consumer_id:da.toString(),index:ea,page_id:fa.toString()},message:V,platformToken:c("isStringNullOrEmpty")(k)?ga:k}})},secondaryInfo:void 0}}catch(a){return{actionType:"NOT_SUPPORTED",primaryInfo:void 0}}}if(l==="xma_disabled_cta")return{actionType:"DISABLED_BUTTON",primaryInfo:void 0};if(l==="xma_open_native"){F=a.nativeUrl;if(F!=null&&F.startsWith("fb-messenger://user-thread/")){var X=F.substr("fb-messenger://user-thread/".length);return{actionType:"DEEPLINK",primaryInfo:{loggingDetails:[(i||(i=d("I64"))).to_string(z),33],threadKey:i.of_string(X)}}}if(F!=null&&F.startsWith(n.SUBTHREAD_LINK)){try{X=new URL(F),F=X.searchParams.get("subthread_fbid")}catch(a){F=null}if(w!=null&&F!=null){var ha=(i||(i=d("I64"))).of_string(F);return{actionType:"BUTTON",primaryInfo:function(){return w(ha)},secondaryInfo:void 0}}}var Y=a.actionContentBlob;if(Y!=null)return{actionType:"BUTTON",primaryInfo:function(){return t(Y)},secondaryInfo:void 0};if(f!=null)if(f.includes("://m.me/j/")){if(a.targetId!=null){var ia=(i||(i=d("I64"))).to_string(a.targetId);return{actionType:"BUTTON",primaryInfo:function(){return u.openInbox({threadKey:(i||(i=d("I64"))).of_string(ia),threadType:(j||(j=d("LSIntEnum"))).ofNumber(152)},"xmaAttachment")},secondaryInfo:void 0}}return{actionType:"BUTTON",primaryInfo:function(){return v==null?void 0:v(f)},secondaryInfo:void 0}}else return{actionType:"URL",primaryInfo:f,secondaryInfo:[(i||(i=d("I64"))).to_string(z),33]};return{actionType:"CTA_ERROR",primaryInfo:"No Url found while parsing Open Native XMA "+b,secondaryInfo:"messenger_privacy_web"}}var Z=a.targetId;if(Z!=null)if(l==="xma_services_confirm_booking")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ConfirmAppointmentBooking",VAL:{requestID:(i||(i=d("I64"))).to_string(Z)}})},secondaryInfo:void 0};else if(l==="xma_services_view_appointment_details"){if(f!=null){F=(X=d("ConstUriUtils").getUri(f))==null?void 0:X.getQueryData==null?void 0:X.getQueryData();var ja=String(F==null?void 0:F.asset_id).toString();return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowBookingDetails",VAL:{pageId:ja,requestId:(i||(i=d("I64"))).to_string(Z)}})},secondaryInfo:void 0}}}else if(l==="lead_forms_response"&&f!==null)return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ViewFormDetails",VAL:{responseID:(i||(i=d("I64"))).to_string(Z)}})},secondaryInfo:void 0};if(K!=null&&K.length>0&&K!=="{}"&&!K.includes("notification_message_token")&&!K.includes("contact_type"))return{actionType:"BUTTON",primaryInfo:function(){return t(K)},secondaryInfo:void 0};if(f!=null){if(a.enableExtensions===!0){var $={actionLink:f,pageID:(i||(i=d("I64"))).to_string(z),sourceTitle:(X=m)!=null?X:"",userID:i.to_string(z)};if(l==="xma_open_rich_widget")return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowMessengerRichWidgetExtension",VAL:$})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),33]};else return{actionType:"BUTTON",primaryInfo:function(){return o({NAME:"ShowMessengerExtensions",VAL:$})},secondaryInfo:[(i||(i=d("I64"))).to_string(z),33]}}return{actionType:"URL",primaryInfo:f,secondaryInfo:[(i||(i=d("I64"))).to_string(z),32]}}return{actionType:"CTA_ERROR",primaryInfo:"Unknown CTA encountered while parsing XMA. "+b,secondaryInfo:"messenger_privacy_web"}}}g["default"]=a}),98);
__d("XmaEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5680");b=d("FalcoLoggerInternal").create("xma_events",a);e=b;g["default"]=e}),98);
__d("MessengerWebUXLoggerXMAEventLoggingImpl",["CometPassiveGetRouterStateContext","CometProductAttribution","I64","LSIntEnum","LSMessagingThreadTypeUtil","LSXmaContentType","LsThreadType","WebUXLoggingEntryPointContextProvider","XmaEventsFalcoEvent","castToEnum","cr:1576","react","react-compiler-runtime","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");k.useCallback;var l=k.useContext,m=k.useInsertionEffect,n=k.useRef;function a(){var a=d("react-compiler-runtime").c(2),b=p("xma_redirect_to_fb"),c;a[0]!==b?(c=function(a){b(a)},a[0]=b,a[1]=c):c=a[1];return c}function e(a){var b=d("react-compiler-runtime").c(3),e=p("xma_impression"),f;b[0]!==a||b[1]!==e?(f={onImpressionStart:function(){e(a)}},b[0]=a,b[1]=e,b[2]=f):f=b[2];return c("useSinglePartialViewImpression")(f)}function f(){var a=d("react-compiler-runtime").c(2),b=p("xma_click"),c;a[0]!==b?(c=function(a){b(a)},a[0]=b,a[1]=c):c=a[1];return c}function o(){var a=d("react-compiler-runtime").c(2),b=p("xma_fb_opened"),c;a[0]!==b?(c=function(a){b(a)},a[0]=b,a[1]=c):c=a[1];return c}function p(a){var e=d("react-compiler-runtime").c(5),f=l(d("WebUXLoggingEntryPointContextProvider").WebUXEntryPointLoggingContext),g=n(f),h;e[0]!==f?(h=function(){g.current=f},e[0]=f,e[1]=h):h=e[1];m(h);var k=l(c("CometPassiveGetRouterStateContext"));e[2]!==a||e[3]!==k?(h=function(e){var f,h=e.attachment.messageId;f=c("castToEnum")((i||(i=d("I64"))).to_int32((f=e.threadType)!=null?f:(i||(i=d("I64"))).zero),c("LsThreadType"),null);var l=e.threadType?d("LSMessagingThreadTypeUtil").isArmadilloSecure(e.threadType):!1,m=e.attachment.threadKey,n=i.to_string(m),o=g.current,p=r(e.attachment),t=d("CometProductAttribution").getMinifiedTopMostRouteProductAttribution(k),u=e.attachment.xmaContentType;u=s(u);var v={click_category:e==null?void 0:e.clickCategory,click_target_type:p,entrypoint:o,event:(e==null?void 0:e.isDirectToExternal)===!0?"xma_redirect_to_external_app":a,is_facebook_installed:null,is_fb_content:u,thread_id:n,thread_type:f};if(l===!0&&b("cr:1576")!=null){var w=q(e.message),x=e.message!=null&&(i||(i=d("I64"))).equal((p=e.message)==null?void 0:p.displayedContentTypes,(j||(j=d("LSIntEnum"))).ofNumber(536870912));b("cr:1576").log(function(){return babelHelpers["extends"]({},v,w,{is_receiver_fetch:x,navigation_chain:t,thread_key:(i||(i=d("I64"))).to_string(m)})})}else c("XmaEventsFalcoEvent").log(function(){return babelHelpers["extends"]({},v,{attribution_id_v2:t,message_id:h})})},e[2]=a,e[3]=k,e[4]=h):h=e[4];return h}function q(a){return a==null?{}:{forward:a.isForwarded,message_sender_id:(i||(i=d("I64"))).to_string(a.senderId),message_sent_time:i.to_string(i.div(a.timestampMs,i.of_string("1000")))}}function r(a){var b=a.defaultCtaType,c=a.attachmentLoggingType;a=a.cta1Type;var d=35;b==="xma_rtc_missed_audio"?d=37:b==="xma_rtc_missed_video"?d=36:b==="xma_rtc_missed_group_audio"?d=67:b==="xma_rtc_missed_group_video"?d=66:b==="xma_rtc_audio"?d=17:b==="xma_rtc_video"?d=18:b==="xma_rtc_ended_audio"?d=57:b==="xma_rtc_ended_video"?d=56:b==="xma_rtc_new_audio_default"?d=68:b==="xma_live_location_sharing"?(d=38,a==="xma_live_location_sharing"&&(d=39)):b==="xma_shops_pdp"?d=61:b==="xma_open_native"?d=41:b==="xma_web_url"?d=35:c==="xma_open_contact_share"?d=64:b==="xma_customer_information"?d=65:c==="xma_appointment_confirmed"?d=70:b==="xma_montage_share"&&(d=82);return d}function s(a){if(a==null)return null;a=(i||(i=d("I64"))).to_int32(a);return a===c("LSXmaContentType").FB_FEED_SHARE||a===c("LSXmaContentType").FB_STORY_REPLY||a===c("LSXmaContentType").FB_STORY_SHARE||a===c("LSXmaContentType").FB_STORY_MENTION||a===c("LSXmaContentType").FB_FEED_VIDEO_SHARE||a===c("LSXmaContentType").FB_GAMING_CUSTOM_UPDATE||a===c("LSXmaContentType").FB_PRODUCER_STORY_REPLY||a===c("LSXmaContentType").FB_EVENT||a===c("LSXmaContentType").FB_FEED_POST_PRIVATE_REPLY||a===c("LSXmaContentType").FB_SHORT||a===c("LSXmaContentType").MSG_MEMORIES_SHARE||a===c("LSXmaContentType").LIVE_LOCATION||a===c("LSXmaContentType").MSG_RECEIVER_FETCH}g.useXMAEventsRedirectDefaultToFBLogger=a;g.useXMAEventsImpressionLoggerRef=e;g.useXMAEventsClickLogger=f;g.useXMAEventOpenInFBLogger=o}),98);
__d("useHandleXmaEventsLogging",["MessengerWebUXLoggerXMAEventLoggingImpl","emptyFunction","isCometRouterUrl","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(19),e=a.attachment,f=a.message,g=a.threadType,h=d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsClickLogger(),i=d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsRedirectDefaultToFBLogger(),j=d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventOpenInFBLogger();if(e==null){b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a={handleXmaClickLogging:c("emptyFunction"),handleXmaOnNavigation:c("emptyFunction")},b[0]=a):a=b[0];return a}b[1]!==(e==null?void 0:e.actionUrl)?(a=(e==null?void 0:e.actionUrl)==null?!1:c("isCometRouterUrl")(e==null?void 0:e.actionUrl),b[1]=e==null?void 0:e.actionUrl,b[2]=a):a=b[2];var k=a;b[3]!==e||b[4]!==k||b[5]!==h||b[6]!==i||b[7]!==f||b[8]!==g?(a=function(a){a=(a=a)!=null?a:k;h==null?void 0:h({attachment:e,clickCategory:2,message:f,threadType:g});i({attachment:e,isDirectToExternal:!a,message:f,threadType:g})},b[3]=e,b[4]=k,b[5]=h,b[6]=i,b[7]=f,b[8]=g,b[9]=a):a=b[9];a=a;var l;b[10]!==e||b[11]!==k||b[12]!==j||b[13]!==f||b[14]!==g?(l=function(){if(!k)return;j({attachment:e,message:f,threadType:g})},b[10]=e,b[11]=k,b[12]=j,b[13]=f,b[14]=g,b[15]=l):l=b[15];l=l;var m;b[16]!==a||b[17]!==l?(m={handleXmaClickLogging:a,handleXmaOnNavigation:l},b[16]=a,b[17]=l,b[18]=m):m=b[18];return m}g["default"]=a}),98);
__d("useMWXMAInformedAttachmentLabel",["fbt","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a,b,c){var e=d("react-compiler-runtime").c(25);a=a===void 0?"":a;c=c===void 0?"":c;var f;e[0]!==a?(f=h._(/*BTDS*/"__JHASH__pK0fcBDpaEV__JHASH__",[h._param("attachment item title",a)]),e[0]=a,e[1]=f):f=e[1];var g;e[2]!==a?(g=h._(/*BTDS*/"__JHASH__dJ_qZg1Bnj2__JHASH__",[h._param("attachment item title",a)]),e[2]=a,e[3]=g):g=e[3];var i;e[4]!==a?(i=h._(/*BTDS*/"__JHASH__9UILySlE-wD__JHASH__",[h._param("attachment item title",a)]),e[4]=a,e[5]=i):i=e[5];var j;e[6]!==a?(j=h._(/*BTDS*/"__JHASH__7LJaDiii2kF__JHASH__",[h._param("attachment item title",a)]),e[6]=a,e[7]=j):j=e[7];var k;e[8]!==a?(k=h._(/*BTDS*/"__JHASH__JiWZCmbD51v__JHASH__",[h._param("attachment item title",a)]),e[8]=a,e[9]=k):k=e[9];var l;e[10]!==a?(l=h._(/*BTDS*/"__JHASH__gmdVuVfF78Q__JHASH__",[h._param("attachment item title",a)]),e[10]=a,e[11]=l):l=e[11];var m;e[12]!==f||e[13]!==g||e[14]!==i||e[15]!==j||e[16]!==k||e[17]!==l?(m={ALTERED_MEDIA:f,ALTERED_PHOTO:g,FALSE_NEWS:i,MISLEADING_NEWS:j,MISSING_CONTEXT:k,SENSITIVE:l},e[12]=f,e[13]=g,e[14]=i,e[15]=j,e[16]=k,e[17]=l,e[18]=m):m=e[18];f=m;if(b==null||f[b]==null){if(a!=null&&a.length>0){if(c!=null&&c.length>0){e[19]!==c||e[20]!==a?(g=h._(/*BTDS*/"__JHASH__MyCNS8a0zsm__JHASH__",[h._param("attachment item title",a),h._param("attachment item description",c)]),e[19]=c,e[20]=a,e[21]=g):g=e[21];return g}e[22]!==a?(i=h._(/*BTDS*/"__JHASH__puD6Qkz5YPM__JHASH__",[h._param("attachment item title",a)]),e[22]=a,e[23]=i):i=e[23];return i}e[24]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"__JHASH__jjBS3qmKgnt__JHASH__"),e[24]=j):j=e[24];return j}return f[b]}g["default"]=a}),226);
__d("MWXMAAttachmentActionTriggerDefault.react",["BizInboxStateContext","I64","MWInboxRouteBuilder","MWLSThread","MWPAttachmentDataContext","MWXLink.react","MWXMAAttachmentActionTriggerWithOpenChatTab.react","MWXPressable.react","MessengerWebUXLogger","ReQL","ReQLSuspense","justknobx","logXMACtaClicked","react","react-compiler-runtime","recoverableViolation","useGetMWXMACtaRegistryHandler","useHandleXmaEventsLogging","useMWXMAInformedAttachmentLabel","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useContext,m={link:{":hover_textDecoration":"x1lku1pv",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(28),e=a.attachment,g=a.attachmentItem,j=a.children;a=l(c("BizInboxStateContext"));a=a.pageID;var o=(h||(h=c("useReStore")))(),p=g.defaultCtaType,q=g.threadKey,r=c("useMWXMAInformedAttachmentLabel")(g==null?void 0:g.titleText,e==null?void 0:e.gatingTitle,e==null?void 0:e.subtitleText),s;b[0]!==e.messageId||b[1]!==o.tables.messages?(s=function(){return d("ReQL").fromTableAscending(o.tables.messages.index("messageId")).getKeyRange(e.messageId)},b[0]=e.messageId,b[1]=o.tables.messages,b[2]=s):s=b[2];var t;b[3]!==e.messageId||b[4]!==o?(t=[o,e.messageId],b[3]=e.messageId,b[4]=o,b[5]=t):t=b[5];s=d("ReQLSuspense").useFirst(s,t,f.id+":66");t=d("MWPAttachmentDataContext").useMWPGetAttachmentCTAs(g);var u=t.defaultCta,v=d("MWLSThread").useThread(q,n);t=c("useGetMWXMACtaRegistryHandler")();var w=c("MessengerWebUXLogger").useInteractionLogger(),x;b[6]!==e||b[7]!==s||b[8]!==v?(x={attachment:e,message:s,threadType:v},b[6]=e,b[7]=s,b[8]=v,b[9]=x):x=b[9];s=c("useHandleXmaEventsLogging")(x);var y=s.handleXmaClickLogging;x=s.handleXmaOnNavigation;s=e.defaultCtaType==="xma_prompt_open_viewer_for_text";if(u==null)return j;var z;if(b[10]!==r||b[11]!==g.defaultCtaTitle||b[12]!==g.titleText||b[13]!==j||b[14]!==u||b[15]!==p||b[16]!==t||b[17]!==y||b[18]!==x||b[19]!==s||b[20]!==w||b[21]!==a||b[22]!==q||b[23]!==v){z=Symbol["for"]("react.early_return_sentinel");bb0:{if(a!=null&&(p==="xma_rtc_audio"||p==="xma_rtc_missed_audio"||p==="xma_rtc_new_audio_default"||p==="xma_rtc_ended_audio")){var A=babelHelpers["extends"]({},u,{targetId:(i||(i=d("I64"))).of_string(a)});A=t(A)}else A=t(u);switch(A.actionType){case"BUTTON":var B=A,C=B.primaryInfo,D=B.secondaryInfo;z=k.jsx(c("MWXPressable.react"),{"aria-label":(B=g.titleText)!=null?B:g.defaultCtaTitle,hideHoverOverlay:s,onPress:function(){w==null?void 0:w({ctaType:p,eventName:"open_xma_attachment_cta",threadKey:q,threadType:v});d("logXMACtaClicked").logXMACtaClicked({cta:u,loggingDetails:D,source:1});y();return C()},children:j});break bb0;case"DISABLED_BUTTON":B=(B=g.titleText)!=null?B:"";var E;b[25]!==j||b[26]!==B?(E=k.jsx(c("MWXPressable.react"),{"aria-label":B,disabled:!0,children:j}),b[25]=j,b[26]=B,b[27]=E):E=b[27];z=E;break bb0;case"URL":B=A.primaryInfo;if(!(B.startsWith("http")||B.startsWith("/"))){z=j;break bb0}var F=A.secondaryInfo;z=k.jsx(c("MWXLink.react"),{href:B,label:r,onClick:function(){d("logXMACtaClicked").logXMACtaClicked({cta:u,loggingDetails:F,source:1}),y()},onNavigate:x,target:c("justknobx")._("1677")?void 0:"_blank",xstyle_DEPRECATED:m.link,children:j});break bb0;case"DEEPLINK":E=A.primaryInfo;var G=E.loggingDetails;B=E.threadKey;var H=function(){d("logXMACtaClicked").logXMACtaClicked({cta:u,loggingDetails:G,source:1}),y(!0)},I=d("MWInboxRouteBuilder").buildURL({thread_key:(i||(i=d("I64"))).to_string(B)});z=k.jsx(c("MWXMAAttachmentActionTriggerWithOpenChatTab.react"),{threadKey:B,children:function(a){return k.jsx(c("MWXLink.react"),{href:I,onClick:function(b){a(b);return H()},preventLocalNavigation:!0,xstyle_DEPRECATED:m.link,children:j})}});break bb0;case"CTA_ERROR":c("recoverableViolation")(A.primaryInfo,A.secondaryInfo,void 0,{trackOnly:!0});z=j;break bb0;case"NOT_SUPPORTED":z=j;break bb0;case"POPOVER_BUTTON":z=j;break bb0}}b[10]=r;b[11]=g.defaultCtaTitle;b[12]=g.titleText;b[13]=j;b[14]=u;b[15]=p;b[16]=t;b[17]=y;b[18]=x;b[19]=s;b[20]=w;b[21]=a;b[22]=q;b[23]=v;b[24]=z}else z=b[24];if(z!==Symbol["for"]("react.early_return_sentinel"))return z}function n(a){return a.threadType}g["default"]=a}),98);
__d("MWXMAAttachmentActionTrigger.react",["MWXMAAttachmentActionTriggerDefault.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4),e=a.attachment,f=a.attachmentItem,g=a.children;a=a.isPressable;if(a){b[0]!==e||b[1]!==f||b[2]!==g?(a=i.jsx(c("MWXMAAttachmentActionTriggerDefault.react"),{attachment:e,attachmentItem:f,children:g}),b[0]=e,b[1]=f,b[2]=g,b[3]=a):a=b[3];return a}else return g}g["default"]=a}),98);
__d("MWRollCallXMAAttachmentItem.react",["BaseImage.react","MWXImage.react","MWXText.react","MWXVideoStatusListener.react","gkx","isStringNullOrEmpty","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;b.useCallback;var j=b.useEffect,k=b.useRef,l=160,m=213,n={avatar:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0},media:{backgroundColor:"xwcfey6",backgroundPosition:"x1xsqp64",backgroundSize:"x18d0r48",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",objectFit:"xl1xv1r",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(40),e=a.attachmentItem,f=a.mediaRenderQpl;a=e.faviconUrl;var g=e.playableUrl,h=e.previewUrl,o=e.subtitleText;e=e.titleText;var p,q;b[0]!==f||b[1]!==g||b[2]!==h?(p=function(){f==null?void 0:f.addPoint("render-roll-call-xma-attachment-item",{bool:{has_playable_url:!c("isStringNullOrEmpty")(g),has_preview_url:!c("isStringNullOrEmpty")(h)}}),!c("isStringNullOrEmpty")(g)&&!c("isStringNullOrEmpty")(h)&&(f==null?void 0:f.endSuccess())},q=[f,g,h],b[0]=f,b[1]=g,b[2]=h,b[3]=p,b[4]=q):(p=b[3],q=b[4]);j(p,q);p=k(null);b[5]!==f?(q=function(a){f==null?void 0:f.endFail("load-video-error",{string:{video_error_name:a}})},b[5]=f,b[6]=q):q=b[6];q=q;var r;b[7]!==f?(r=function(){f==null?void 0:f.endSuccess()},b[7]=f,b[8]=r):r=b[8];r=r;if(!c("isStringNullOrEmpty")(g)){var s;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(s={className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xwfyxwz x1xx6w2s x6ikm8r x10wlt62 xq1dxzn"},b[9]=s):s=b[9];b[10]!==q||b[11]!==r?(p=i.jsx(c("MWXVideoStatusListener.react"),{onError:q,onLoad:r,videoRef:p}),b[10]=q,b[11]=r,b[12]=p):p=b[12];b[13]===Symbol["for"]("react.memo_cache_sentinel")?(q={className:"xwcfey6 x1xsqp64 x18d0r48 xfh8nwu xoqspk4 x12v9rci x138vmkv xl1xv1r"},b[13]=q):q=b[13];b[14]!==g?(r=i.jsx("video",babelHelpers["extends"]({},q,{height:m,muted:!0,src:g,width:l})),b[14]=g,b[15]=r):r=b[15];b[16]!==p||b[17]!==r?(q=i.jsxs("div",babelHelpers["extends"]({},s,{children:[p,r]})),b[16]=p,b[17]=r,b[18]=q):q=b[18];return q}else if(!c("isStringNullOrEmpty")(h)){b[19]===Symbol["for"]("react.memo_cache_sentinel")?(s={className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xwfyxwz x1xx6w2s x6ikm8r x10wlt62 xq1dxzn"},b[19]=s):s=b[19];b[20]!==f?(p=f==null?void 0:f.endFail("load-image-error"),b[20]=f,b[21]=p):p=b[21];b[22]!==f?(r=f==null?void 0:f.endSuccess(),b[22]=f,b[23]=r):r=b[23];b[24]!==h||b[25]!==p||b[26]!==r?(q=i.jsx("div",babelHelpers["extends"]({},s,{children:i.jsx(c("BaseImage.react"),{height:m,onError:p,onLoad:r,src:h,width:l,xstyle:n.media})})),b[24]=h,b[25]=p,b[26]=r,b[27]=q):q=b[27];return q}else if(c("gkx")("7782")&&!c("isStringNullOrEmpty")(e)&&!c("isStringNullOrEmpty")(a)){b[28]===Symbol["for"]("react.memo_cache_sentinel")?(s={className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xwfyxwz x1xx6w2s x6ikm8r x10wlt62 xq1dxzn x9bbmet x78zum5 xdt5ytf xz9dl7a xn6708d xsag5q8 x1ye3gou"},b[28]=s):s=b[28];b[29]!==a?(p=i.jsx(c("MWXImage.react"),{height:24,src:a,width:24,xstyle:n.avatar}),b[29]=a,b[30]=p):p=b[30];b[31]===Symbol["for"]("react.memo_cache_sentinel")?(r={className:"x1iyjqo2 xyamay9 x1l90r2v x1pi30zi"},b[31]=r):r=b[31];b[32]!==e?(q=i.jsx("div",babelHelpers["extends"]({},r,{children:i.jsx(c("MWXText.react"),{numberOfLines:6,type:"entityHeaderMeta3",children:e})})),b[32]=e,b[33]=q):q=b[33];b[34]!==o?(a=c("isStringNullOrEmpty")(o)?null:i.jsx("div",babelHelpers["extends"]({className:"x2lah0s x84yb8i"},{children:i.jsx(c("MWXText.react"),{type:"body4",children:o})})),b[34]=o,b[35]=a):a=b[35];b[36]!==p||b[37]!==q||b[38]!==a?(r=i.jsxs("div",babelHelpers["extends"]({},s,{children:[p,q,a]})),b[36]=p,b[37]=q,b[38]=a,b[39]=r):r=b[39];return r}return null}g["default"]=a}),98);
__d("MWXMAAttachmentItemCtaButtonBase.react",["ix","AdsMessengerContext.react","I64","ImageIconSource","LSCTAIconType","LSIntEnum","MWInboxRouteBuilder","MWLSThread","MessengerWebUXLogger","react","react-compiler-runtime","recoverableViolation","requireDeferred"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react")),m=i.useEffect,n=c("requireDeferred")("ZenonUserActionLoggerCommon").__setRef("MWXMAAttachmentItemCtaButtonBase.react");function o(a){if(a==null)return null;switch((j||(j=d("LSIntEnum"))).toNumber(a)){case c("LSCTAIconType").NONE:return null;case c("LSCTAIconType").FB:return new(c("ImageIconSource"))(h("814640"),16,16);default:return null}}function a(a){var b=d("react-compiler-runtime").c(31),e=a.attachmentCta,f=a.ctaIconType,g=a.getCtaRegistryHandler,h=a.renderButtonActionNonEventButton,i=a.renderDeeplinkActionButton,j=a.renderDisabledButtonActionButton,r=a.renderPopoverMenuButtonActionButton,s=a.renderUrlActionButton,t=a.threadKey,u=a.title,v=a.type;a=d("MWLSThread").useThread(t,q);var w;b[0]!==t||b[1]!==a||b[2]!==v?(w={ctaType:v,eventName:"xma_attachment_cta",threadKey:t,threadType:a},b[0]=t,b[1]=a,b[2]=v,b[3]=w):w=b[3];t=c("MessengerWebUXLogger").useImpressionLoggerRef(w);b[4]!==v?(a=function(){var a=["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_ended_audio","xma_rtc_video","xma_rtc_missed_video","xma_rtc_ended_video"].includes(v);a&&n.onReady(p)},w=[v],b[4]=v,b[5]=a,b[6]=w):(a=b[5],w=b[6]);m(a,w);a=d("AdsMessengerContext.react").useAdsMessengerContext();w=a.isMessengerInAds;a=a.maybeGetCallbackFromURI;if(e==null){var x;b[7]!==t||b[8]!==j||b[9]!==u||b[10]!==v?(x=v==="xma_disabled_cta"?l.jsx("div",babelHelpers["extends"]({className:"x18xmwgd x1iyjqo2 xs83m0k x1iorvi4 x150jy0e xjkvuk6 x1e558r4"},{ref:t,children:j(u)})):null,b[7]=t,b[8]=j,b[9]=u,b[10]=v,b[11]=x):x=b[11];return x}var y;if(b[12]!==e||b[13]!==f||b[14]!==g||b[15]!==w||b[16]!==a||b[17]!==h||b[18]!==i||b[19]!==j||b[20]!==r||b[21]!==s||b[22]!==u){x=g(e);var z=o(f);y=null;bb0:switch(x.actionType){case"BUTTON":var A=x.secondaryInfo,B=x.primaryInfo;y=h(u,z,e,A,B);break bb0;case"POPOVER_BUTTON":r&&(y=r(u,e,x.primaryInfo));break bb0;case"URL":A=x.secondaryInfo;B=a==null?void 0:a(x.primaryInfo);w&&B!=null?y=h(u,z,e,A,B):y=s(u,z,e,A,x.primaryInfo);break bb0;case"DISABLED_BUTTON":b[24]!==j||b[25]!==u?(B=j(u),b[24]=j,b[25]=u,b[26]=B):B=b[26];y=B;break bb0;case"DEEPLINK":z=x.primaryInfo;A=z.loggingDetails;B=z.threadKey;z=d("MWInboxRouteBuilder").buildURL({thread_key:(k||(k=d("I64"))).to_string(B)});y=i(u,B,e,A,z);break bb0;case"CTA_ERROR":c("recoverableViolation")(x.primaryInfo,x.secondaryInfo,void 0,{trackOnly:!0});y=null;break bb0;case"NOT_SUPPORTED":y=null}b[12]=e;b[13]=f;b[14]=g;b[15]=w;b[16]=a;b[17]=h;b[18]=i;b[19]=j;b[20]=r;b[21]=s;b[22]=u;b[23]=y}else y=b[23];b[27]===Symbol["for"]("react.memo_cache_sentinel")?(B={className:"x18xmwgd x1iyjqo2 xs83m0k x1iorvi4 x150jy0e xjkvuk6 x1e558r4"},b[27]=B):B=b[27];b[28]!==y||b[29]!==t?(A=l.jsx("div",babelHelpers["extends"]({},B,{ref:t,children:y})),b[28]=y,b[29]=t,b[30]=A):A=b[30];return A}function p(a){a.logImpression({surface:"admin_message"})}function q(a){return a.threadType}g["default"]=a}),98);
__d("useMWCMPollsV1Enabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,h))!=null?a:{};a=a.pollsV1UICapability;return a===!0}function h(a){return{pollsV1UICapability:d("LSThreadBitOffset").has(158,a)}}g["default"]=a}),98);
__d("useMWHasPollsVotingEnabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,h))!=null?a:!1;return a}function h(a){return d("LSThreadBitOffset").has(170,a)}g["default"]=a}),98);
__d("MWXMAAttachmentItemCtaButton.react",["LSMessagingThreadTypeUtil","MDSButton.react","MWLSThread","MWXEntryPointPopoverTrigger.react","MWXMAAttachmentActionTriggerWithOpenChatTab.react","MWXMAAttachmentItemCtaButtonBase.react","MWXPopoverLoadingState.react","MWXTooltip.react","MessengerWebUXLogger","logXMACtaClicked","mwCMIsAnyCMThread","react","react-compiler-runtime","useGetMWXMACtaRegistryHandler","useMWCMPollsV1Enabled","useMWCMPollsV2Enabled","useMWHasPollsVotingEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{minWidth:"xktpd3l",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(32),e=a.attachmentCta,f=a.ctaIconType,g=a.messageId,h=a.popoverMenu,o=a.threadKey,p=a.title;a=a.type;var q=c("MessengerWebUXLogger").useInteractionLogger(),r=d("MWLSThread").useThread(o,n),s;b[0]!==o||b[1]!==r||b[2]!==a?(s={ctaType:a,eventName:"open_xma_attachment_cta",threadKey:o,threadType:r},b[0]=o,b[1]=r,b[2]=a,b[3]=s):s=b[3];var t=s;r=c("useGetMWXMACtaRegistryHandler")();s=c("useMWHasPollsVotingEnabled")(o);var u=c("useMWCMPollsV1Enabled")(o),v=c("useMWCMPollsV2Enabled")(o),w=d("MWLSThread").useThread(o,m),x=d("MWLSThread").useThread(o,l);if(!s&&(a==="xma_poll_details_button"||a==="xma_poll_details_card"))return null;if(((s=w)!=null?s:!1)&&!u&&!v&&a==="xma_poll_details_button")return null;b[4]!==x||b[5]!==q||b[6]!==t?(w=function(a,b,e,f,g){return i.jsx(c("MWXTooltip.react"),{tooltip:a,children:i.jsx(c("MDSButton.react"),{disabled:x,icon:b,isContainerTarget:!0,label:a,onPress:function(){q==null?void 0:q(t);d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2});return g()},type:"secondary"})})},b[4]=x,b[5]=q,b[6]=t,b[7]=w):w=b[7];b[8]!==q||b[9]!==t?(s=function(a,b,e,f,g){return i.jsx(c("MWXTooltip.react"),{tooltip:a,children:i.jsx(c("MWXMAAttachmentActionTriggerWithOpenChatTab.react"),{threadKey:b,children:function(b){return i.jsx(c("MDSButton.react"),{label:a,linkProps:{preventLocalNavigation:!0,url:g},onPress:function(a){b(a);q==null?void 0:q(t);return d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2})},type:"secondary"})}})})},b[8]=q,b[9]=t,b[10]=s):s=b[10];b[11]!==q||b[12]!==t||b[13]!==h?(u=h?function(a,b,e){return i.jsx(c("MWXEntryPointPopoverTrigger.react"),{align:"stretch",entryPointParams:{primaryInfo:e},fallback:i.jsx(c("MWXPopoverLoadingState.react"),{withArrow:!1,xstyle:j.root}),otherProps:{cta:b},popoverEntryPoint:h,popoverType:"menu",position:"below",preloadTrigger:"button",children:function(e,f){return i.jsx(c("MWXTooltip.react"),{tooltip:a,children:i.jsx(c("MDSButton.react"),{label:a,onPress:function(){q==null?void 0:q(t);d("logXMACtaClicked").logXMACtaClicked({cta:b,loggingDetails:void 0,source:2});return f()},ref:e,type:"secondary"})})}})}:void 0,b[11]=q,b[12]=t,b[13]=h,b[14]=u):u=b[14];b[15]!==x||b[16]!==q||b[17]!==t||b[18]!==p?(v=function(a,b,e,f,g){return i.jsx(c("MWXTooltip.react"),{tooltip:a,children:i.jsx(c("MDSButton.react"),{disabled:x,icon:b,label:p,linkProps:{target:"_blank",url:g},onPress:function(){q==null?void 0:q(t),d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2})},type:"secondary"})})},b[15]=x,b[16]=q,b[17]=t,b[18]=p,b[19]=v):v=b[19];var y;b[20]!==e||b[21]!==f||b[22]!==r||b[23]!==g||b[24]!==w||b[25]!==s||b[26]!==u||b[27]!==v||b[28]!==o||b[29]!==p||b[30]!==a?(y=i.jsx(c("MWXMAAttachmentItemCtaButtonBase.react"),{attachmentCta:e,ctaIconType:f,getCtaRegistryHandler:r,messageId:g,renderButtonActionNonEventButton:w,renderDeeplinkActionButton:s,renderDisabledButtonActionButton:k,renderPopoverMenuButtonActionButton:u,renderUrlActionButton:v,threadKey:o,title:p,type:a}),b[20]=e,b[21]=f,b[22]=r,b[23]=g,b[24]=w,b[25]=s,b[26]=u,b[27]=v,b[28]=o,b[29]=p,b[30]=a,b[31]=y):y=b[31];return y}function k(a){return i.jsx(c("MWXTooltip.react"),{tooltip:a,children:i.jsx(c("MDSButton.react"),{disabled:!0,label:a,type:"secondary"})})}k.displayName=k.name+" [from "+f.id+"]";function l(a){return d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(a.threadType)||d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(a.threadType)}function m(a){return c("mwCMIsAnyCMThread")(a.threadType)}function n(a){return a.threadType}g["default"]=a}),98);
__d("MWPXMAIconParser",["ConstUriUtils","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){switch(a){case"clear":case"staticWhite":case"white":case"white70":case"black":case"black50":case"black34":case"black20":case"black12":case"black6":case"black4":case"bluegrey75":case"bluegrey50":case"placeholder-icon":case"blue":case"purple":case"gray":case"background":case"scarlet":case"steel":case"coregreen":case"coral":case"sky":case"coreblue":case"emerald":return"gray";case"red":return"cherry";case"green":return"lime";case"honey":return"lemon";default:c("recoverableViolation")("Unknown Icon color: "+a,"messenger_web_sharing");return"gray"}}function a(a){if(a==null)return;if(a.startsWith("https")||a.startsWith("blob"))return a;if(!a.startsWith("ls"))return;a=a.replace("ls","http");a=d("ConstUriUtils").getUri(a);if(a==null)return;var b=a.getQueryParam("icon");a=a.getQueryParam("circleColor");if(typeof b==="string"&&typeof a==="string"){a=h(a);return{color:a,icon:b}}return}g.parse=a}),98);
__d("MWXMAIconParser.react",["ix","MWPXMAIconParser","fbicon","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){switch(a){case"airplane":return d("fbicon")._(h("571771"),20);case"calendar":return d("fbicon")._(h("481118"),20);case"calendar-add":return d("fbicon")._(h("640913"),20);case"camcorder":return d("fbicon")._(h("493174"),20);case"camcorder-incoming":return d("fbicon")._(h("1096148"),20);case"camcorder-missed":return d("fbicon")._(h("662989"),20);case"camcorder-outgoing":return d("fbicon")._(h("1096150"),20);case"camcorder-plus":return d("fbicon")._(h("662993"),20);case"checkmark-circle":return d("fbicon")._(h("498146"),20);case"cross-circle":return d("fbicon")._(h("1501526"),20);case"currency-peso":return d("fbicon")._(h("1174630"),20);case"currency-pound":return d("fbicon")._(h("1174587"),20);case"currency-taka":return d("fbicon")._(h("182108"),20);case"currency-thai-baht":return d("fbicon")._(h("876716"),20);case"currency-usd":return d("fbicon")._(h("847056"),20);case"document-complete":return d("fbicon")._(h("728245"),20);case"friend-generic":return d("fbicon")._(h("502671"),20);case"friend-generic-checkmark":return d("fbicon")._(h("538342"),20);case"group":return d("fbicon")._(h("485091"),20);case"group-block":return d("fbicon")._(h("714636"),20);case"location":return d("fbicon")._(h("795388"),20);case"pin":return d("fbicon")._(h("481942"),20);case"phone":return d("fbicon")._(h("558161"),20);case"phone-incoming":return d("fbicon")._(h("1096151"),20);case"phone-outgoing":return d("fbicon")._(h("1096154"),20);case"shield":return d("fbicon")._(h("492714"),20);case"phone-missed":return d("fbicon")._(h("847457"),20);case"question-circle":return d("fbicon")._(h("1604445"),20);case"tag":return d("fbicon")._(h("502473"),20);case"watch":return d("fbicon")._(h("607169"),20);case"map":return d("fbicon")._(h("645715"),20);case"house-keyhole":return d("fbicon")._(h("1670302"),20);case"document":return d("fbicon")._(h("728245"),20);case"checkmark":return d("fbicon")._(h("477814"),20);case"shopping-cart":return d("fbicon")._(h("763120"),20);case"cross":return d("fbicon")._(h("478233"),20);default:c("recoverableViolation")("Unknown XMA Icon: "+a,"messenger_web_sharing");return}}function a(a){a=d("MWPXMAIconParser").parse(a);if(a==null)return;if(typeof a==="string")return a;var b=a.color;a=a.icon;a=i(a);if(a!=null)return{color:b,icon:a}}g.parse=a}),98);
__d("MWXMAAttachmentItemIcon.react",["FDSImageCover.react","FDSSkittleIcon.react","InteractionTracingMetrics","MWXMAIconParser.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(17),e=a.attachment,f=a.attachmentItem,g=a.getFaviconUrlXMA,h=a.mediaRenderQpl;if(b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==h){a=d("MWXMAIconParser.react").parse((a=g(e,f,"MWXMAAttachmentItemIconImpl",h))!=null?a:"");b[0]=e;b[1]=f;b[2]=g;b[3]=h;b[4]=a}else a=b[4];var l=a;b[5]!==l||b[6]!==h?(e=function(){h==null?void 0:h.addPoint("render-xma-attachment-item-icon",{bool:{has_icon:l!=null}}),l!=null&&c("InteractionTracingMetrics").currentInteractionLogger().forEach(k)},f=[l,h],b[5]=l,b[6]=h,b[7]=e,b[8]=f):(e=b[7],f=b[8]);j(e,f);if(l==null)return null;if(typeof l==="string"){b[9]===Symbol["for"]("react.memo_cache_sentinel")?(g={className:"x6s0dn4 x78zum5 x5yr21d xq8finb"},b[9]=g):g=b[9];b[10]===Symbol["for"]("react.memo_cache_sentinel")?(a={borderRadius:"50%",height:"36px",width:"36px"},b[10]=a):a=b[10];b[11]!==l?(e=i.jsx("div",babelHelpers["extends"]({},g,{children:i.jsx(c("FDSImageCover.react"),{alt:"Icon for this message",src:l,style:a})})),b[11]=l,b[12]=e):e=b[12];return e}b[13]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x6s0dn4 x78zum5 x5yr21d xq8finb"},b[13]=f):f=b[13];b[14]!==l.color||b[15]!==l.icon?(g=i.jsx("div",babelHelpers["extends"]({},f,{children:i.jsx(c("FDSSkittleIcon.react"),{color:l.color,icon:l.icon,size:36})})),b[14]=l.color,b[15]=l.icon,b[16]=g):g=b[16];return g}function k(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-icon","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentItemIconWithPlaceholder.react",["CometPlaceholder.react","InteractionTracingMetrics","MWV2AttachmentLoadingPlaceholder.react","MWXMAAttachmentItemIcon.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect,k={loadingPlaceholder:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(9),e=a.attachment,f=a.attachmentItem,g=a.getFaviconUrlXMA,h=a.mediaRenderQpl,m;b[0]!==h?(a=function(){h==null?void 0:h.addPoint("render-xma-attachment-item-icon-with-placeholder"),c("InteractionTracingMetrics").currentInteractionLogger().forEach(l)},m=[h],b[0]=h,b[1]=a,b[2]=m):(a=b[1],m=b[2]);j(a,m);b[3]===Symbol["for"]("react.memo_cache_sentinel")?(a=i.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{descriptionForLogging:"MWXMAAttachmentItemIconWithPlaceholder.Suspense",height:36,width:36,xstyle:k.loadingPlaceholder}),b[3]=a):a=b[3];b[4]!==e||b[5]!==f||b[6]!==g||b[7]!==h?(m=i.jsx(c("CometPlaceholder.react"),{fallback:a,name:"MWXMAAttachmentItemIconWithPlaceholder.Suspense",children:i.jsx(c("MWXMAAttachmentItemIcon.react"),{attachment:e,attachmentItem:f,getFaviconUrlXMA:g,mediaRenderQpl:h})}),b[4]=e,b[5]=f,b[6]=g,b[7]=h,b[8]=m):m=b[8];return m}function l(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-icon-with-placeholder","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentItemListItemsBase.react",["LSMediaUrlAttachment","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4),c=a.attachment,e=a.renderDefaultListItem,f=a.renderPercentageListItem;if(b[0]!==c||b[1]!==e||b[2]!==f){a=[{contactUrlExpirationTimestampList:c.listItemContactUrlExpirationTimestampList1,contactUrlFallbackList:c.listItemContactUrlFallbackList1,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList1(c),id:c.listItemId1,progressBarFilledPercentage:c.listItemProgressBarFilledPercentage1,titleText:c.listItemTitleText1,totalCount:c.listItemTotalCount1},{contactUrlExpirationTimestampList:c.listItemContactUrlExpirationTimestampList2,contactUrlFallbackList:c.listItemContactUrlFallbackList2,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList2(c),id:c.listItemId2,progressBarFilledPercentage:c.listItemProgressBarFilledPercentage2,titleText:c.listItemTitleText2,totalCount:c.listItemTotalCount2},{contactUrlExpirationTimestampList:c.listItemContactUrlExpirationTimestampList3,contactUrlFallbackList:c.listItemContactUrlFallbackList3,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList3(c),id:c.listItemId3,progressBarFilledPercentage:c.listItemProgressBarFilledPercentage3,titleText:c.listItemTitleText3,totalCount:c.listItemTotalCount3}];var g=[];a.forEach(function(a){var b=a.contactUrlExpirationTimestampList,c=a.contactUrlFallbackList,d=a.contactUrlList,e=a.id,f=a.progressBarFilledPercentage,h=a.titleText;a=a.totalCount;if(e!=null){d=d!=null?d.split(","):[];var i=b!=null?b.split(","):[],j=c!=null?c.split(","):[];g.push({contacts:d.map(function(a,b){return{url:a,urlExpirationTimestamp:i[b],urlFallback:j[b]}}),id:e,progressBarFilledPercentage:f,titleText:h,totalCount:a})}});a=i.jsx(d("react-strict-dom").html.ul,{children:g.map(function(a){var b=a.progressBarFilledPercentage;return b!=null?f(a,b):e(a)})});b[0]=c;b[1]=e;b[2]=f;b[3]=a}else a=b[3];return a}g["default"]=a}),98);
__d("MWXMAAttachmentItemListItems.react",["I64","MWChatPollFacepile.react","MWLSThreadDisplayContext","MWXMAAttachmentItemListItemsBase.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){var b=d("react-compiler-runtime").c(6),e=a.attachment,f=a.onPollOptionFacepilePress,g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();b[0]!==g||b[1]!==f?(a=function(a,b){return j.createElement("li",babelHelpers["extends"]({className:"x14vqqas"},{key:(i||(i=d("I64"))).to_string(a.id)}),j.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x1qughib"},{children:[a.titleText!=null?j.jsx(c("MWXText.react"),{numberOfLines:g==="Inbox"?3:1,type:"headline4",children:a.titleText}):null,j.jsx("div",babelHelpers["extends"]({className:"x1i64zmx"},{children:j.jsx(c("MWChatPollFacepile.react"),{contacts:a.contacts.map(k),countOverride:a.totalCount!=null?(i||(i=d("I64"))).to_int32(a.totalCount):void 0,direction:"reversed",gap:"negative",onPress:f!=null?function(){f(a.id)}:void 0,size:"small"})}))]})),j.jsx("div",babelHelpers["extends"]({className:"x1wpzbip x1lq5wgf xgqcy7u x30kzoy x9jhf4c xdk7pt xod5an3 x1xmf6yo"},{children:j.jsx("div",{className:"xsqyzxx x1lq5wgf xgqcy7u x30kzoy x9jhf4c xdk7pt",style:{width:i.to_string(b)+"%"}})})))},b[0]=g,b[1]=f,b[2]=a):a=b[2];var h;b[3]!==e||b[4]!==a?(h=j.jsx(c("MWXMAAttachmentItemListItemsBase.react"),{attachment:e,renderDefaultListItem:l,renderPercentageListItem:a}),b[3]=e,b[4]=a,b[5]=h):h=b[5];return h}function k(a){return{name:void 0,profile_picture_url:a.url}}function l(a){return j.createElement("li",babelHelpers["extends"]({className:"xwwskcc x1q0q8m5 xso031l x1l1xfun x13fuv20 x178xt8z x14vqqas xsag5q8 xz9dl7a"},{key:(i||(i=d("I64"))).to_string(a.id)}),j.jsxs("div",{children:[j.jsx(c("MWChatPollFacepile.react"),{contactWithBorder:!1,contacts:a.contacts.map(m),countOverride:a.totalCount!=null?(i||(i=d("I64"))).to_int32(a.totalCount):void 0,limit:9,overflowStyle:"overlayLastPhoto",size:"large"}),a.titleText!=null?j.jsx("div",babelHelpers["extends"]({className:"xsgj6o6 x1xmf6yo"},{children:j.jsx(c("MWXText.react"),{color:"secondary",numberOfLines:2,type:"body4",children:a.titleText})})):null]}))}l.displayName=l.name+" [from "+f.id+"]";function m(a){return{name:void 0,profile_picture_url:a.url}}g["default"]=a}),98);
__d("MWXIconBadgeCheckmark",["MWXSvgIcon","SVGIcon","cr:12309","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12309")),c("gkx")("23219"));g["default"]=a}),98);
__d("MessageProfileRangeTypeUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(a==="p")return"p";else if(a==="thread"||a==="t")return"t";else if(a==="thread_active"||a==="a")return"a";else if(a==="s")return"s";else if(a==="ai")return"ai";else if(a==="c")return"cc";else if(a==="cu")return"cu";else return"n"}f.ofString=a}),66);
__d("MWV2ChatTextParserUtils",["CurrentEnvironment","EmojiRenderer","EmoticonRenderer","I64","LSContactTypeExact","LSIntEnum","MWChatTextFormattingUtils","MWLSContactTypeExactUtils","MessageProfileRangeTypeUtils","ReQL","ReQLSuspense","UnicodeUtils","XCometVanityURLControllerRouteBuilder","getURLRanges","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=new RegExp("/^[ \\r\\n\\s]*$/");function a(a){var b=d("EmojiRenderer").parse(a).map(function(a){return{length:a.length,offset:a.offset}}),c=d("EmoticonRenderer").parse(a).map(function(a){return{length:a.chars.length,offset:a.offset}});b=b.concat(c).sort(function(a,b){return a.offset-b.offset|0});if(b.length===0)return!1;var e={contents:0},f={contents:0};c=b.some(function(b){e.contents===b.offset?(e.contents=e.contents+b.length|0,f.contents=e.contents):f.contents=b.offset;var c=a.substring(e.contents,f.contents);e.contents=b.offset+b.length|0;return k.test(c)===!1});b=e.contents!==a.length&&!k.test(a.substring(f.contents));if(c)return!1;else return!b}function b(a,b,e){b===void 0&&(b=!1);e===void 0&&(e=!1);var f=c("getURLRanges")(a),g=[];a=d("MWChatTextFormattingUtils").getFormattingRanges(a,b,e);f.forEach(function(a){var b=a.entity.url;b=b.startsWith("https://m.me/j/")||c("CurrentEnvironment").facebookdotcom&&b.startsWith("https://www.messenger.com/channel/");b={entity:{__typename:b?"MessengerLink":"Link",target:"blank",uri:a.entity.url},length:a.length,offset:a.offset};g.push(b)});return g.concat(a)}function l(a,b){b===void 0&&(b=!1);if(c("gkx")("23433"))return(b?"/e2ee/t/":"/t/")+a;else return(b?"/messages/e2ee/t/":"/messages/t/")+a}function m(a,b){try{a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.tables.contacts).getKeyRange((h||(h=d("I64"))).of_string(b)),f.id+":129")}catch(b){a=void 0}if(a==null)return l(b);var e=a.contactTypeExact;if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").FB_USER)))return"https://www.facebook.com"+c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:b});if(!d("MWLSContactTypeExactUtils").isIgContact(e))return l(b);e=a.secondaryName;if(e!=null)return"https://www.instagram.com/"+e+"/";else return l(b)}function e(a,b,e,f,g,i,k,n){b=b.split(",");var o=e.split(","),p=f.split(","),q=g.split(",");return b.reduce(function(b,e,f){var g=d("MessageProfileRangeTypeUtils").ofString(q[f]);if(o[f]==null||p[f]==null)return b;var r=Number(o[f]);f=Number(p[f]);var s=(j||(j=d("UnicodeUtils"))).strlen(i.slice(0,f));s=f-s;f=f-s;if(g==="t"||g==="a"){s=n&&c("gkx")("7846");var t=s&&k!=null?(h||(h=d("I64"))).to_string(k):e;b.push({entity:{__typename:s?"Thread":"Profile",id:e,uri:l(t,s)},length:r,offset:f})}else g==="p"?b.push({entity:{__typename:"Profile",id:e,uri:m(a,e)},length:r,offset:f}):g==="cc"?b.push({entity:{__typename:"CommunityChannel",threadKey:(h||(h=d("I64"))).of_string(e)},length:r,offset:f}):g==="s"||g==="cu"?b.push({entity:{__typename:"Command"},length:r,offset:f}):g==="ai"&&b.push({entity:{__typename:"Ai"},length:r,offset:f});return b},[])}g.isEmojiOnlyMessage=a;g.findRanges=b;g.findRangesForMentions=e}),98);
__d("useMWPCombineTextRenderers",["react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(2),c;b[0]!==a?(c={},a.forEach(function(a){if(a==null)return;var b=a[0];a=a[1];var d=c[b];c[b]=d!=null?d.concat([a]):[a]}),b[0]=a,b[1]=c):c=b[1];return c}g["default"]=a}),98);
__d("getMAWLinkEntityRenderer.react",["E2EEMessagingLinkContext.react","MWMessageCellFocusTable.react","MWXLink.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.encryptedLink,e=a.target,f=a.testid,g=a.xstyle;return function(a,f){return i.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:i.jsx("span",{role:"gridcell",children:i.jsx(d("E2EEMessagingLinkContext.react").E2EEMessagingLinkProvider,{isSecure:b,children:i.jsx(c("MWXLink.react"),{encryptedLink:b,href:f.uri,target:e,testid:void 0,xstyle_DEPRECATED:g,children:a})})})})}}g["default"]=a}),98);
__d("useMWPLinkRendererFactory",["MWPThreadCapabilitiesContext","getMAWLinkEntityRenderer.react","gkx","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(3),e=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),f=e.disableLinks;b[0]!==f||b[1]!==a?(e=function(b,d,e,g){return c("gkx")("24165")&&f?void 0:[e,c("getMAWLinkEntityRenderer.react")({encryptedLink:a,target:g,testid:d,xstyle:b})]},b[0]=f,b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),98);
__d("useMWTextRenderers",["AdsMessengerContext.react","CometErrorBoundary.react","GroupsCometJoinChatDialog.entrypoint","I64","MWCMThreadTypes.react","MWChatTextFormatting","MWInboxCommunityThreadsRouteBuilder","MWLSThread","MWMessageCellFocusTable.react","MWNavigationContext","MWXLink.react","goUriOnNewWindow","react","react-compiler-runtime","useCommunityFolder","useMWCMShouldGoToFullScreenChatHook","useMWNavigation","useMWPCombineTextRenderers","useMWPLinkRendererFactory","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;b.useCallback;var k=b.useMemo,l={bold:{fontWeight:"x1s688f",$$css:!0},colorForLink:{color:"x1heor9g",$$css:!0},highlight:{backgroundColor:"xacajkf",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",paddingTop:"x1nn3v0j",paddingEnd:"x4uap5",paddingBottom:"x1120s5i",paddingStart:"xkhd6sd",$$css:!0},underline:{color:"x1heor9g",textDecoration:"x1bvjpef",textDecorationLine:"xujl8zx",$$css:!0}};function m(a){var b=d("react-compiler-runtime").c(23),e=a.folder,f=a.node,g=a.thread;a=c("useMWNavigation")();var h=a.openTabOrInbox;a=(a=g.hasPendingInvitation)!=null?a:!1;var k=c("useMWCMShouldGoToFullScreenChatHook")(),l;b[0]!==a||b[1]!==k?(l={invited:a,shouldGoToMessenger:k,surface:"unknown"},b[0]=a,b[1]=k,b[2]=l):l=b[2];var m=l;b[3]!==e.fbGroupId?(a=(i||(i=d("I64"))).to_string(e.fbGroupId),b[3]=e.fbGroupId,b[4]=a):a=b[4];b[5]!==g.threadKey?(k=(i||(i=d("I64"))).to_string(g.threadKey),b[5]=g.threadKey,b[6]=k):k=b[6];b[7]!==a||b[8]!==k?(l={groupID:a,threadID:k},b[7]=a,b[8]=k,b[9]=l):l=b[9];e=l;a=c("useMWXEntryPointDialog")(c("GroupsCometJoinChatDialog.entrypoint"),e);var n=a[0];b[10]!==m||b[11]!==n?(k=function(){return n(m)},b[10]=m,b[11]=n,b[12]=k):k=b[12];var o=k;b[13]===Symbol["for"]("react.memo_cache_sentinel")?(l={className:"x1s688f"},b[13]=l):l=b[13];b[14]!==o||b[15]!==h||b[16]!==g.clientThreadKey||b[17]!==g.threadKey||b[18]!==g.threadType?(e=function(){if(d("MWCMThreadTypes.react").isUnjoinedCMThread(g.threadType))return o();else return h({clientThreadKey:g.clientThreadKey,threadKey:g.threadKey,threadType:g.threadType},"mention")},b[14]=o,b[15]=h,b[16]=g.clientThreadKey,b[17]=g.threadKey,b[18]=g.threadType,b[19]=e):e=b[19];b[20]!==f||b[21]!==e?(a=j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",babelHelpers["extends"]({},l,{role:"gridcell",children:j.jsx(c("MWXLink.react"),{onClick:e,children:f})}))}),b[20]=f,b[21]=e,b[22]=a):a=b[22];return a}function n(a){var b=d("react-compiler-runtime").c(10),c=a.folder,e=a.thread,f;b[0]!==c.folderId?(f=(i||(i=d("I64"))).to_string(c.folderId),b[0]=c.folderId,b[1]=f):f=b[1];var g=f;b[2]!==e.threadKey?(c=(i||(i=d("I64"))).to_string(e.threadKey),b[2]=e.threadKey,b[3]=c):c=b[3];var h=c;b[4]!==g||b[5]!==h?(f=function(){return d("MWInboxCommunityThreadsRouteBuilder").buildURL({folder_id:g,thread_key:h})},b[4]=g,b[5]=h,b[6]=f):f=b[6];e=f;b[7]!==e||b[8]!==a.children?(c=j.jsx(d("MWNavigationContext").Provider,{children:a.children,value:e}),b[7]=e,b[8]=a.children,b[9]=c):c=b[9];return c}function o(a){var b=d("react-compiler-runtime").c(5),e=a.communityLinkFallback,f=a.node;a=a.threadKey;a=d("MWLSThread").useThreadExn(a);var g=c("useCommunityFolder")(a),h;b[0]!==e||b[1]!==g||b[2]!==f||b[3]!==a?(h=g!=null?j.jsx(n,{folder:g,thread:a,children:j.jsx(m,{folder:g,node:f,thread:a})}):e,b[0]=e,b[1]=g,b[2]=f,b[3]=a,b[4]=h):h=b[4];return h}function p(a){var b=d("react-compiler-runtime").c(13);a=a.entity;var e=d("AdsMessengerContext.react").useAdsMessengerContext();e=e.maybeGetCallbackFromURI;var f;if(b[0]!==a.extraData||b[1]!==e){var g;f=(g=a.extraData.get("link"))!=null?g:"";g=e==null?void 0:e(f);b[0]=a.extraData;b[1]=e;b[2]=f;b[3]=g}else f=b[2],g=b[3];var h=g;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x1s688f"},b[4]=e):e=b[4];b[5]!==h||b[6]!==f?(g=function(){h!=null?h():c("goUriOnNewWindow")(f)},b[5]=h,b[6]=f,b[7]=g):g=b[7];var i;b[8]!==a.text?(i=j.jsx("u",{children:a.text}),b[8]=a.text,b[9]=i):i=b[9];b[10]!==g||b[11]!==i?(a=j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",babelHelpers["extends"]({},e,{role:"gridcell",children:j.jsx(c("MWXLink.react"),{onClick:g,children:i})}))}),b[10]=g,b[11]=i,b[12]=a):a=b[12];return a}var q=["Command",function(a){return j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",babelHelpers["extends"]({className:"x1s688f"},{role:"gridcell",children:a}))})}],r=["Ai",function(a){return j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",babelHelpers["extends"]({className:"x1s688f"},{role:"gridcell",children:a}))})}],s=[function(a,b){return j.jsx(p,{entity:b})}],t=["CommunityChannel",function(a,b){var e=j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",babelHelpers["extends"]({className:"x1s688f"},{role:"gridcell",children:a}))});return j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return e},children:j.jsx(o,{communityLinkFallback:e,node:a,threadKey:b.threadKey})})}];function a(a,b,e){var f=c("useMWPLinkRendererFactory")(b),g=c("useMWPLinkRendererFactory")(!1),h=c("useMWPCombineTextRenderers")(k(function(){return[f([l.underline],"chat_message_regular_link","Link",e),f([l.underline],"chat_message_messenger_link","MessengerLink","_self"),f([l.bold,l.colorForLink],"profile_link","Profile",e),g([l.bold,l.colorForLink],"thread_link","Thread",e),f([l.highlight],"highlight","Highlight",e),q,r,t]},[f,e]));return k(function(){return babelHelpers["extends"]({},h,{AdsAILinkFormatting:s,MessengerTextFormatting:[a?d("MWChatTextFormatting").messageRenderer:d("MWChatTextFormatting").messageIncomingRenderer]})},[h,a])}g["default"]=a}),98);
__d("MWXMAAttachmentItemBodyText.react",["MWV2ChatTextParserUtils","MWXMessageTextWithEntities.react","MWXText.react","justknobx","react","react-compiler-runtime","useMWTextRenderers"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("justknobx")._("2986");function a(a){var b=d("react-compiler-runtime").c(6),e=a.bodyText;a=a.outgoing;a=c("useMWTextRenderers")(a,!1);var f;b[0]!==e?(f=d("MWV2ChatTextParserUtils").findRanges(e,j),b[0]=e,b[1]=f):f=b[1];f=f;var g;b[2]!==e||b[3]!==f||b[4]!==a?(g=i.jsx(c("MWXText.react"),{color:"primary",type:"meta3",children:i.jsx(c("MWXMessageTextWithEntities.react"),{ranges:f,renderers:a,text:e})}),b[2]=e,b[3]=f,b[4]=a,b[5]=g):g=b[5];return g}g["default"]=a}),98);
__d("MWXMAAttachmentSourceTextDecoration.react",["ix","Int64Hooks","LSIntEnum","MNXMASubtitleDecorationType","MWXImage.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){var b=d("react-compiler-runtime").c(3),e=a.subtitleDecorationType,f;b[0]!==e?(a=function(){switch((j||(j=d("LSIntEnum"))).toNumber(e)){case c("MNXMASubtitleDecorationType").MESSENGER_ICON:return k.jsx(c("MWXImage.react"),{height:12,objectFit:"contain",src:h("855857"),width:12});default:return null}},f=[e],b[0]=e,b[1]=a,b[2]=f):(a=b[1],f=b[2]);return d("Int64Hooks").useMemoInt64(a,f)}g["default"]=a}),98);
__d("MWXMAAttachmentSubtitleDecoration.react",["ix","Int64Hooks","LSIntEnum","MNXMASubtitleDecorationType","MWXIcon.react","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){var b=d("react-compiler-runtime").c(3),e=a.subtitleDecorationType,f;b[0]!==e?(a=function(){switch((j||(j=d("LSIntEnum"))).toNumber(e)){case c("MNXMASubtitleDecorationType").THREADS_ICON:return k.jsx(c("MWXIcon.react"),{color:"secondary",icon:d("fbicon")._(h("380222"),16)});default:return null}},f=[e],b[0]=e,b[1]=a,b[2]=f):(a=b[1],f=b[2]);return d("Int64Hooks").useMemoInt64(a,f)}g["default"]=a}),98);
__d("MWXMALiveAttachmentItemMainText.react",["I64","LSIntEnum","LSVerifiedType","MWXIconBadgeCheckmark","MWXIconStrict.react","MWXTextPairing.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=d("react-compiler-runtime").c(17),e=a.attachment,f=a.bodyLineLimit,g=a.facePileElement,h=a.headlineLineLimit;a=a.title;var l;b[0]!==e.verifiedType?(l=e.verifiedType!=null?(i||(i=d("I64"))).equal(e.verifiedType,(j||(j=d("LSIntEnum"))).ofNumber(c("LSVerifiedType").DEFAULT)):!1,b[0]=e.verifiedType,b[1]=l):l=b[1];l=l;var m;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(m={className:"x6s0dn4 x78zum5 xl56j7k"},b[2]=m):m=b[2];var n;b[3]!==l?(n=l&&k.jsx("div",babelHelpers["extends"]({className:"xsgj6o6"},{children:k.jsx(c("MWXIconStrict.react"),{color:"mds-accent",icon:c("MWXIconBadgeCheckmark"),size:12})})),b[3]=l,b[4]=n):n=b[4];b[5]!==n||b[6]!==a?(l=k.jsxs("div",babelHelpers["extends"]({},m,{children:[a,n]})),b[5]=n,b[6]=a,b[7]=l):l=b[7];m=l;b[8]===Symbol["for"]("react.memo_cache_sentinel")?(n={className:"x193iq5w x126k92a xh8yej3"},b[8]=n):n=b[8];b[9]!==e.captionBodyText||b[10]!==f||b[11]!==h||b[12]!==m?(a=k.jsx(c("MWXTextPairing.react"),{body:e.captionBodyText,bodyColor:"secondary",bodyLineLimit:f,headline:m,headlineLineLimit:h,level:4,testid:void 0,textAlign:"center"}),b[9]=e.captionBodyText,b[10]=f,b[11]=h,b[12]=m,b[13]=a):a=b[13];b[14]!==g||b[15]!==a?(l=k.jsxs("div",babelHelpers["extends"]({},n,{children:[a,g]})),b[14]=g,b[15]=a,b[16]=l):l=b[16];return l}g["default"]=a}),98);
__d("MWXMAAttachmentItemMainText.react",["fbt","I64","LSIntEnum","LSVerifiedType","Locale","MNLSXMALayoutType","MNXMASubtitleDecorationType","MWXIconBadgeCheckmark","MWXIconChevronLeft","MWXIconChevronRight","MWXIconStrict.react","MWXMAAttachmentItemBodyText.react","MWXMAAttachmentSourceTextDecoration.react","MWXMAAttachmentSubtitleDecoration.react","MWXMALiveAttachmentItemMainText.react","MWXText.react","MWXTextPairing.react","react","react-compiler-runtime","stylex","xmaAttachmentUtils","xmaLayouts"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||d("react"),n={hscroll:{paddingEnd:"xsyo7zv",paddingStart:"x16hj40l",$$css:!0},root:{maxWidth:"x193iq5w",whiteSpace:"x126k92a",width:"xh8yej3",$$css:!0},withIcon:{paddingBottom:"xg8j3zb",paddingTop:"xyqdw3p",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(61),e=a.attachment,f=a.bodyLineLimit,g=a.bodyText,j=a.facePileElement,o=a.hasIcon,p=a.headlineLineLimit,q=a.isHscroll,r=a.outgoing,s=a.subtitleText,t=a.title;a=a.xmaLayout;r=r===void 0?!1:r;if(b[0]!==e.xmaLayoutType){var u;u=(k||(k=d("I64"))).equal((u=e.xmaLayoutType)!=null?u:(k||(k=d("I64"))).zero,(l||(l=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));b[0]=e.xmaLayoutType;b[1]=u}else u=b[1];u=u;if(d("xmaAttachmentUtils").isLiveXMA(e)){var v;v=(v=t)!=null?v:"";var w;b[2]!==e||b[3]!==f||b[4]!==j||b[5]!==p||b[6]!==v?(w=m.jsx(c("MWXMALiveAttachmentItemMainText.react"),{attachment:e,bodyLineLimit:f,facePileElement:j,headlineLineLimit:p,title:v}),b[2]=e,b[3]=f,b[4]=j,b[5]=p,b[6]=v,b[7]=w):w=b[7];return w}b[8]===Symbol["for"]("react.memo_cache_sentinel")?(v=h._(/*BTDS*/"__JHASH__SFJQf-uN6yj__JHASH__"),b[8]=v):v=b[8];w=v;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(v=h._(/*BTDS*/"__JHASH__-LANapr3SYq__JHASH__"),b[9]=v):v=b[9];v=v;var x=d("Locale").isRTL()?c("MWXIconChevronLeft"):c("MWXIconChevronRight");b[10]!==e.attachmentLoggingType||b[11]!==p||b[12]!==u||b[13]!==r||b[14]!==t?(x=t!==""?u?m.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 x1qughib"},{children:[m.jsx(c("MWXText.react"),{color:r?"white":"secondary",type:"meta2",children:t}),m.jsx(c("MWXIconStrict.react"),{color:r?"white":"secondary",icon:x,size:12})]})):m.jsx(c("MWXTextPairing.react"),{headline:u?w:t,headlineLineLimit:p,level:4,testid:void 0,textAlign:e.attachmentLoggingType==="xma_view_event"?"center":"start"}):null,b[10]=e.attachmentLoggingType,b[11]=p,b[12]=u,b[13]=r,b[14]=t,b[15]=x):x=b[15];w=x;if(b[16]!==e.replyCount||b[17]!==f||b[18]!==j||b[19]!==u||b[20]!==r||b[21]!==s){x=s!==""?u?m.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 x1nhvcw1"},{children:[j,m.jsx("div",babelHelpers["extends"]({className:"x1k70j0n"},{children:m.jsx(c("MWXText.react"),{color:r?"white":"secondary",type:"meta2",children:e.replyCount==null||(k||(k=d("I64"))).equal(e.replyCount,(k||(k=d("I64"))).zero)?s:(k||(k=d("I64"))).gt((p=e.replyCount)!=null?p:(k||(k=d("I64"))).zero,(k||(k=d("I64"))).of_int32(20))?h._(/*BTDS*/"__JHASH__Dd3JSX2bl8X__JHASH__"):h._(/*BTDS*/"__JHASH__J-X-Y424pwe__JHASH__",[h._plural((k||(k=d("I64"))).to_int32((t=e.replyCount)!=null?t:(k||(k=d("I64"))).zero),"number")])})}))]})):m.jsx("div",babelHelpers["extends"]({className:"x889kno"},{children:m.jsx(c("MWXTextPairing.react"),{body:u?v:s,bodyColor:"secondary",bodyLineLimit:f,level:4,testid:void 0})})):null;b[16]=e.replyCount;b[17]=f;b[18]=j;b[19]=u;b[20]=r;b[21]=s;b[22]=x}else x=b[22];p=x;v=(t=e.subtitleDecorationType)!=null?t:(k||(k=d("I64"))).zero;b[23]!==v?(f=(l||(l=d("LSIntEnum"))).toNumber(v)===c("MNXMASubtitleDecorationType").THREADS_ICON?m.jsx("div",babelHelpers["extends"]({className:"x1emribx x1k70j0n"},{children:m.jsx(c("MWXMAAttachmentSubtitleDecoration.react"),{subtitleDecorationType:v})})):null,b[23]=v,b[24]=f):f=b[24];j=f;b[25]!==e.captionBodyText?(u=e.captionBodyText!=null&&e.captionBodyText.length>0?m.jsx(c("MWXText.react"),{color:"primary",type:"meta3",children:e.captionBodyText}):null,b[25]=e.captionBodyText,b[26]=u):u=b[26];s=u;b[27]!==g||b[28]!==r?(x=g!=null&&g.length>0?m.jsx(c("MWXMAAttachmentItemBodyText.react"),{bodyText:g,outgoing:r}):null,b[27]=g,b[28]=r,b[29]=x):x=b[29];t=x;b[30]!==e.verifiedType?(f=e.verifiedType!=null?(k||(k=d("I64"))).equal(e.verifiedType,(l||(l=d("LSIntEnum"))).ofNumber(c("LSVerifiedType").VERIFIED_FOOTER)):!1,b[30]=e.verifiedType,b[31]=f):f=b[31];u=f;b[32]!==e.sourceText||b[33]!==v?(g=e.sourceText!=null?m.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 x17zd0t2 x78zum5 x1q0g3np x889kno"},{children:[v!=null?m.jsx(c("MWXMAAttachmentSourceTextDecoration.react"),{subtitleDecorationType:v}):null,m.jsx(c("MWXText.react"),{color:"secondary",type:"meta3",children:e.sourceText})]})):null,b[32]=e.sourceText,b[33]=v,b[34]=g):g=b[34];r=g;b[35]!==o||b[36]!==q?(x=(i||(i=c("stylex"))).props(n.root,o?n.withIcon:q?n.hscroll:!1),b[35]=o,b[36]=q,b[37]=x):x=b[37];b[38]!==s||b[39]!==w||b[40]!==a?(f=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&w!==null?m.jsx("div",babelHelpers["extends"]({className:"xahult9"},{children:w})):s!=null?m.jsx("div",babelHelpers["extends"]({className:"x1e56ztr"},{children:w})):w,b[38]=s,b[39]=w,b[40]=a,b[41]=f):f=b[41];b[42]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x6s0dn4 x78zum5 x1q0g3np"},b[42]=e):e=b[42];b[43]!==u?(v=u?m.jsx("div",babelHelpers["extends"]({className:"x78zum5 xsgj6o6"},{children:m.jsx(c("MWXIconStrict.react"),{color:"highlight",icon:c("MWXIconBadgeCheckmark"),size:12})})):null,b[43]=u,b[44]=v):v=b[44];b[45]!==s||b[46]!==v?(g=m.jsxs("div",babelHelpers["extends"]({},e,{children:[s,v]})),b[45]=s,b[46]=v,b[47]=g):g=b[47];b[48]===Symbol["for"]("react.memo_cache_sentinel")?(o={className:"x6s0dn4 x78zum5"},b[48]=o):o=b[48];b[49]!==j||b[50]!==p?(q=m.jsxs("div",babelHelpers["extends"]({},o,{children:[j,p]})),b[49]=j,b[50]=p,b[51]=q):q=b[51];b[52]!==t?(w=t!=null&&m.jsx("div",babelHelpers["extends"]({className:"x889kno"},{children:t})),b[52]=t,b[53]=w):w=b[53];b[54]!==r||b[55]!==x||b[56]!==f||b[57]!==g||b[58]!==q||b[59]!==w?(a=m.jsxs("div",babelHelpers["extends"]({},x,{children:[f,g,q,w,r]})),b[54]=r,b[55]=x,b[56]=f,b[57]=g,b[58]=q,b[59]=w,b[60]=a):a=b[60];return a}g["default"]=a}),226);
__d("MWXMAEventFacepiles.react",["ALT_PLACEHOLDER_FIXME","FDSPressableFacepile.react","I64","MWXText.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||d("react"),l={facepile:{display:"x78zum5",flexDirection:"xdt5ytf",maxWidth:"x193iq5w",paddingTop:"x889kno",paddingBottom:"x1a8lsjc",$$css:!0},root_center_aligned:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},root_start_aligned:{display:"x78zum5",justifyContent:"x1nhvcw1",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(17),e=a.avatarText,f=a.count,g=a.cta,i=a.size,o=a.urls;a=a.xstyle;i=i===void 0?32:i;var p;b[0]!==f?(p=f!=null?(j||(j=d("I64"))).le(f,(j||(j=d("I64"))).of_int32(9)):!1,b[0]=f,b[1]=p):p=b[1];p=p;var q;b[2]!==(g==null?void 0:g.actionUrl)||b[3]!==p?(q=p?void 0:{target:"_blank",url:g==null?void 0:g.actionUrl},b[2]=g==null?void 0:g.actionUrl,b[3]=p,b[4]=q):q=b[4];g=q;b[5]!==p||b[6]!==o?(q=p?o.map(n):o.slice(0,9).map(m),b[5]=p,b[6]=o,b[7]=q):q=b[7];p=q;q=e==null?l.root_center_aligned:l.root_start_aligned;var r;b[8]!==e||b[9]!==f||b[10]!==g||b[11]!==q||b[12]!==i||b[13]!==p||b[14]!==o.length||b[15]!==a?(r=p.length>0?k.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(q),{"data-testid":void 0,children:k.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(l.facepile,a),{role:"gridcell",children:k.jsx(c("FDSPressableFacepile.react"),{count:f!=null?(j||(j=d("I64"))).to_int32(f):o.length,isOverlapping:!0,isTextInline:e!=null,items:p,linkProps:g,size:i,text:e!=null?k.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:e}):void 0})}))})):null,b[8]=e,b[9]=f,b[10]=g,b[11]=q,b[12]=i,b[13]=p,b[14]=o.length,b[15]=a,b[16]=r):r=b[16];return r}function m(a){return{alt:c("ALT_PLACEHOLDER_FIXME"),source:{uri:a}}}function n(a){return{alt:c("ALT_PLACEHOLDER_FIXME"),source:{uri:a}}}g["default"]=a}),98);
__d("getLSMediaAttachmentAvatarViewUrlList",["I64","LSMediaUrlUtils","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.avatarViewUrlExpirationTimestampList,e=a.avatarViewUrlFallbackList;a=a.avatarViewUrlList;if(c("isStringNullOrEmpty")(a))if(!c("isStringNullOrEmpty")(b))return[];else if(e!=null)return e.split(", ");else return[];if(c("isStringNullOrEmpty")(b))return[];if(e==null)return[];a=a.split(", ");var f=b.split(", "),g=e.split(", ");return a.map(function(a,b){var c;try{c=d("LSMediaUrlUtils").isTimestampExpired((h||(h=d("I64"))).of_string(f[b]))}catch(a){c=!0}if(c){return(c=g[b])!=null?c:""}else return a})}g["default"]=a}),98);
__d("MWXMAAttachmentItemBody.react",["I64","InteractionTracingMetrics","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MAWIsXMAWithPlaintextHash","MDSTextPairing.react","MNLSXMALayoutType","MWLSThread","MWPAttachmentDataContext","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemCtaButton.react","MWXMAAttachmentItemIcon.react","MWXMAAttachmentItemIconWithPlaceholder.react","MWXMAAttachmentItemListItems.react","MWXMAAttachmentItemMainText.react","MWXMAEventFacepiles.react","MessengerWebUXLoggerXMAEventLoggingImpl","ReQL","ReQLSuspense","cr:13018","getLSMediaAttachmentAvatarViewUrlList","react","react-compiler-runtime","stylex","useReStore","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=j||(j=d("react")),n=j.useEffect,o={buttonHorizontal:{flex:"x98rzlu",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",width:"xj35x94",$$css:!0},buttonsOnly:{marginTop:"xdj266r",$$css:!0},buttonsWrapper:{justifySelf:"x1qab1bc",marginTop:"x14vqqas",$$css:!0},buttonsWrapperHorizontal:{display:"x78zum5",flexDirection:"x1q0g3np",justifySelf:"x1qab1bc",marginTop:"x14vqqas",$$css:!0},description:{display:"x78zum5",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",marginEnd:"xw3qccf",$$css:!0},hasFavicon:{paddingEnd:"x4uap5",paddingStart:"xkhd6sd",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",minHeight:"xisnujt",$$css:!0},rootWithHeaderAndNoMedia:{marginTop:"xdj266r",$$css:!0},subthreadFacepiles:{marginEnd:"xmo9yow",marginTop:"x1k70j0n",paddingTop:"xexx8yu",paddingBottom:"x18d9i69",$$css:!0},xmaUnifiedtyles:{marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",marginTop:"x14vqqas",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(21),g=a.attachment,j=a.attachmentItem,v=a.bodyLineLimit,w=a.buttonLayout,x=a.ctaPopoverMenu,y=a.facepiles,z=a.getFaviconUrlXMA,A=a.headlineLineLimit,B=a.isHscroll,C=a.isPressable,D=a.isSearchSingleBubblePlugin,E=a.isSecureThread,F=a.isStandalone,G=a.mediaRenderQpl,H=a.onPollOptionFacepilePress,I=a.outgoing;a=a.xmaLayout;D=D===void 0?!1:D;I=I===void 0?!1:I;var J=d("MWPAttachmentDataContext").useMWPGetAttachmentCTAs(j),K=J.attachmentCta1,L=J.attachmentCta2;J=J.attachmentCta3;var M;M=!1;M=d("LSMediaUrlAttachment").faviconUrl(g)!=null||d("LSMediaUrlAttachmentItem").faviconUrl(j)!=null||g.hasXmaFavicon===!0;n(function(){G==null?void 0:G.addPoint("render-xma-attachment-item-body",{bool:{has_icon:M}}),c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMetadata(a.traceId,"xma_has_fav_icon",M)})},[M,G]);if(e[0]!==g.xmaLayoutType){var N;N=(k||(k=d("I64"))).equal((N=g.xmaLayoutType)!=null?N:(k||(k=d("I64"))).zero,(l||(l=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));e[0]=g.xmaLayoutType;e[1]=N}else N=e[1];N=N;var O=!Boolean(j.titleText)&&!Boolean(j.subtitleText)&&!M,P=Boolean(j.titleText)||!F?j.titleText:g.titleText,Q=Boolean(j.subtitleText)||!F?j.subtitleText:g.subtitleText,R=Boolean(j.bodyText)||!F?j.bodyText:g.bodyText,S;e[2]!==g?(S=c("getLSMediaAttachmentAvatarViewUrlList")(g),e[2]=g,e[3]=S):S=e[3];S=S;if(e[4]!==g.avatarCount||e[5]!==g.avatarViewContextText||e[6]!==K||e[7]!==S||e[8]!==y||e[9]!==N){var T;T=(T=y)!=null?T:S.length!==0&&!N?[m.jsx(c("MWXMAEventFacepiles.react"),{avatarText:g.avatarViewContextText,count:g.avatarCount,cta:K,urls:S},"xma-event-facepiles")]:[];e[4]=g.avatarCount;e[5]=g.avatarViewContextText;e[6]=K;e[7]=S;e[8]=y;e[9]=N;e[10]=T}else T=e[10];y=T;N=E&&g.xmaFaviconFbid!=null&&d("MAWIsXMAWithPlaintextHash").isXMAWithPlaintextHash(g);N=!Boolean(P)&&!Boolean(Q)?[]:[m.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:g,attachmentItem:j,isPressable:C,children:m.jsxs("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(o.description,(T=M)!=null?T:o.hasFavicon),{children:[N&&b("cr:13018")!=null?m.jsx(b("cr:13018"),{dbAttachment:g,iconSize:32,plaintextHash:g.xmaFaviconFbid,xmaIcon:m.jsx(c("MWXMAAttachmentItemIcon.react"),{attachment:g,attachmentItem:j,getFaviconUrlXMA:z,mediaRenderQpl:G}),xmaMediaType:"favicon"}):m.jsx(c("MWXMAAttachmentItemIconWithPlaceholder.react"),{attachment:g,attachmentItem:j,getFaviconUrlXMA:z,mediaRenderQpl:G}),m.jsx(c("MWXMAAttachmentItemMainText.react"),{attachment:g,bodyLineLimit:v,bodyText:R,facePileElement:(k||(k=d("I64"))).equal((E=g.avatarCount)!=null?E:(k||(k=d("I64"))).zero,(k||(k=d("I64"))).zero)?null:m.jsx(c("MWXMAEventFacepiles.react"),{avatarText:g.avatarViewContextText,count:g.avatarCount,cta:K,size:24,urls:S,xstyle:o.subthreadFacepiles}),hasIcon:M,headlineLineLimit:A,isHscroll:B,isStandalone:F,outgoing:I,subtitleText:(C=Q)!=null?C:"",title:(T=P)!=null?T:"",xmaLayout:a})]}))},"xma-action-trigger")];z=g.listItemsDescriptionText;R=g.listItemsDescriptionSubtitleText;E=g.cta2IconType;S=g.cta3IconType;B=g.listItemId1;F=g.listItemsSecondaryDescriptionText;I=g.messageId;Q=g.threadKey;C=j.cta1IconType;P=j.cta1Title;T=j.cta1Type;var U=j.cta2Title,V=j.cta2Type,W=j.cta3Title,X=j.cta3Type;O=T!=null&&P!=null&&K!=null?[m.createElement("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(w==="horizontal"?o.buttonsWrapperHorizontal:o.buttonsWrapper,O?o.buttonsOnly:!1),{key:"xma-cta-button"}),m.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(w==="horizontal"?o.buttonHorizontal:!1),{children:m.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentCta:K,ctaIconType:C,messageId:I,threadKey:Q,title:P,type:T})})),V!=null&&U!=null&&L!=null?m.jsxs(m.Fragment,{children:[m.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(w==="horizontal"?o.buttonHorizontal:!1),{children:m.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentCta:L,ctaIconType:E,messageId:I,popoverMenu:x,threadKey:Q,title:U,type:V})})),X!=null&&W!=null&&J!=null?m.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(w==="horizontal"?o.buttonHorizontal:!1),{children:m.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentCta:J,ctaIconType:S,messageId:I,threadKey:Q,title:W,type:X})})):null]}):null)]:[];K=z!=null?[m.jsx(s,{headlineLineLimit:A,listItemsDescriptionText:z},"xma-list-items-description-text")]:[];C=R!=null?[m.jsx(t,{bodyLineLimit:v,value:R},"xma-list-items-description-subtitle-text")]:[];P=B!=null?[m.jsx(c("MWXMAAttachmentItemListItems.react"),{attachment:g,onPollOptionFacepilePress:H},"list-item-1")]:[];T=F!=null?[m.jsx(u,{bodyLineLimit:v,listItemsSecondaryDescriptionText:F},"xma-list-items-secondary-description-text")]:[];L=[N,K,C,y,P,T,O].reduce(r,[]);E=d("LSMediaUrlAttachment").previewUrl(g)!=null||d("LSMediaUrlAttachmentItem").playableUrl(j)!=null||d("LSMediaUrlAttachmentItem").previewUrl(j)!=null||d("LSMediaUrlAttachmentItem").previewUrlLarge(j)!=null||g.hasXmaPreview===!0;var Y=(i||(i=c("useReStore")))();x=d("MWLSThread").useThread(Q,q);e[11]!==g.messageId||e[12]!==Y.tables.messages?(U=function(){return d("ReQL").fromTableAscending(Y.tables.messages.index("messageId")).getKeyRange(g.messageId)},e[11]=g.messageId,e[12]=Y.tables.messages,e[13]=U):U=e[13];e[14]!==g.messageId||e[15]!==Y?(V=[Y,g.messageId],e[14]=g.messageId,e[15]=Y,e[16]=V):V=e[16];w=d("ReQLSuspense").useFirst(U,V,f.id+":436");e[17]!==g||e[18]!==w||e[19]!==x?(J={attachment:g,clickCategory:1,message:w,threadType:x},e[17]=g,e[18]=w,e[19]=x,e[20]=J):J=e[20];S=d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsImpressionLoggerRef(J);return D?null:L.length===0?null:m.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(o.root,a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?o.xmaUnifiedtyles:!1,a!==d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&!E&&g.headerTitle!=null?o.rootWithHeaderAndNoMedia:!1),{ref:S,children:L.map(p)}))}function p(a,b){return m.jsx(m.Fragment,{children:a},String(b))}p.displayName=p.name+" [from "+f.id+"]";function q(a){return a.threadType}function r(a,b){return a.concat(b)}function s(a){var b=d("react-compiler-runtime").c(4),e=a.headlineLineLimit;a=a.listItemsDescriptionText;var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x78zum5 x1q0g3np x1iyjqo2 xl56j7k xw3qccf"},b[0]=f):f=b[0];b[1]!==e||b[2]!==a?(f=m.jsx("div",babelHelpers["extends"]({},f,{children:m.jsx(c("MDSTextPairing.react"),{headline:a,headlineLineLimit:e,level:4,textAlign:"center"})})),b[1]=e,b[2]=a,b[3]=f):f=b[3];return f}function t(a){var b=d("react-compiler-runtime").c(4),e=a.bodyLineLimit;a=a.value;var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x78zum5 xl56j7k xwib8y2 x889kno"},b[0]=f):f=b[0];b[1]!==e||b[2]!==a?(f=m.jsx("div",babelHelpers["extends"]({},f,{children:m.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:"secondary",bodyLineLimit:e,level:4,textAlign:"center"})})),b[1]=e,b[2]=a,b[3]=f):f=b[3];return f}function u(a){var b=d("react-compiler-runtime").c(4),e=a.bodyLineLimit;a=a.listItemsSecondaryDescriptionText;var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"xod5an3"},b[0]=f):f=b[0];b[1]!==e||b[2]!==a?(f=m.jsx("div",babelHelpers["extends"]({},f,{children:m.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:"secondary",bodyLineLimit:e,level:4})})),b[1]=e,b[2]=a,b[3]=f):f=b[3];return f}g["default"]=a}),98);
__d("MWXMAAttachmentItemImageDimensionCalculator",["I64","LSIntEnum","MNLSXMALayoutType","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e,f,g){var j=b.previewWidth!=null?(h||(h=d("I64"))).to_int32(b.previewWidth):0,k=a.previewWidth!=null?(h||(h=d("I64"))).to_int32(a.previewWidth):0,l=a.previewWidthLarge!=null?(h||(h=d("I64"))).to_int32(a.previewWidthLarge):0;j=j>0?j:k>0?k:l;k=b.previewHeight!=null?(h||(h=d("I64"))).to_int32(b.previewHeight):0;l=a.previewHeight!=null?(h||(h=d("I64"))).to_int32(a.previewHeight):0;var m=a.previewHeightLarge!=null?(h||(h=d("I64"))).to_int32(a.previewHeightLarge):0;k=k>0?k:l>0?l:m;l=b.defaultCtaType;l==="xma_montage_share"?m=!0:m=b.imageUrl==null?g:j===k;l=j!==0?k!==0?j/(k*1):0:0;a.xmaLayoutType!=null&&(h||(h=d("I64"))).equal(a.xmaLayoutType,(i||(i=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").STANDARD_DXMA))&&(l===0&&(l=2),m=!0);b=e;g={height:l===0?106:b/l,width:b};a={};f===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&(k>j&&(g.height=b,g.width=l===0?106:b*l),a={aspectRatio:void 0,flexGrow:"0",height:g.height.toString()+"px",margin:"auto",width:g.width.toString()+"px"});e={height:(l===0?b-106:b/l).toString()+"px",width:b.toString()+"px"};return{aspectRatio:l,dimensions:g,dimensionsStyle:{height:g.height.toString()+"px",width:g.width.toString()+"px"},expand:m,informedTreatmentCardDimension:e,unifiedStyles:a}}g.calculateDimensions=a}),98);
__d("MWXIconClock",["MWXSvgIcon","SVGIcon","cr:12373","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12373")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWXMAEarlyAccessOverlay.react",["fbt","I64","LSIntEnum","MNXMAPreviewImageDecorationType","MWXColumn.react","MWXColumnItem.react","MWXIconClock","MWXIconStrict.react","MWXRow.react","MWXRowItem.react","MWXText.react","ServerTime","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react"));b=i;var m=b.useEffect;b.useMemo;var n=b.useState,o={pill:{backgroundColor:"xatbrnm",borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(17),e=a.attachment;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=d("ServerTime").getMillis(),b[0]=a):a=b[0];a=n(a);var f=a[0],g=a[1];b[1]!==e.previewImageDecorationType||b[2]!==e.previewOverlayCountdownExpiry?(a=function(){if(e.previewOverlayCountdownExpiry!=null&&e.previewImageDecorationType!==null&&(j||(j=d("I64"))).equal(e.previewImageDecorationType,(k||(k=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").PILL))&&c("gkx")("1643")){var a=window.setInterval(function(){g(d("ServerTime").getMillis())},1e3);return function(){return window.clearInterval(a)}}},b[1]=e.previewImageDecorationType,b[2]=e.previewOverlayCountdownExpiry,b[3]=a):a=b[3];var i;b[4]!==e.previewImageDecorationType||b[5]!==e.previewOverlayCountdownExpiry||b[6]!==f?(i=[e.previewImageDecorationType,e.previewOverlayCountdownExpiry,f],b[4]=e.previewImageDecorationType,b[5]=e.previewOverlayCountdownExpiry,b[6]=f,b[7]=i):i=b[7];m(a,i);var p;bb0:{a=e.previewOverlayCountdownExpiry;if(a!=null){i=(j||(j=d("I64"))).to_float(a)*1e3-f;a=Math.floor(i/36e5);f=Math.floor(i/6e4)%60;i=Math.floor(i/1e3)%60;if(a<0&&f<0&&i<0){p=null;break bb0}var q;b[8]!==a||b[9]!==f||b[10]!==i?(q=a?h._(/*BTDS*/"__JHASH__z-6zXNtvXEV__JHASH__",[h._param("hours",a)]):f?h._(/*BTDS*/"__JHASH__J0Qi9lOhYJe__JHASH__",[h._param("minutes",f)]):i?h._(/*BTDS*/"__JHASH__0RhXAr4DyYr__JHASH__",[h._param("seconds",i)]):null,b[8]=a,b[9]=f,b[10]=i,b[11]=q):q=b[11];p=q;break bb0}p=void 0}a=p;if(e.previewImageDecorationType==null||!c("gkx")("1643"))return null;if((j||(j=d("I64"))).equal(e.previewImageDecorationType,(k||(k=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").BLUR))){b[12]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x1h6ucep x1ey2m1c x78zum5 xds687c x17qophe x10l6tqk x13vifvy"},b[12]=f):f=b[12];b[13]===Symbol["for"]("react.memo_cache_sentinel")?(i=l.jsx(c("MWXColumnItem.react"),{align:"center",children:l.jsx(c("MWXIconStrict.react"),{color:"white",icon:c("MWXIconClock"),size:20})}),b[13]=i):i=b[13];b[14]===Symbol["for"]("react.memo_cache_sentinel")?(q=l.jsx("div",babelHelpers["extends"]({},f,{children:l.jsx(c("MWXRow.react"),{align:"center",expanding:!0,children:l.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:l.jsxs(c("MWXColumn.react"),{spacing:16,children:[i,l.jsx(c("MWXColumnItem.react"),{align:"center",children:l.jsx(c("MWXText.react"),{color:"white",type:"body2",children:h._(/*BTDS*/"__JHASH__wNWq__FwzYH__JHASH__")})})]})})})})),b[14]=q):q=b[14];return q}if((j||(j=d("I64"))).equal(e.previewImageDecorationType,(k||(k=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").PILL))){b[15]!==a?(p=a!=null&&l.jsx("div",babelHelpers["extends"]({className:"x1ey2m1c x78zum5 xds687c x17qophe x10l6tqk x13vifvy"},{children:l.jsx(c("MWXRow.react"),{align:"end",expanding:!0,verticalAlign:"top",children:l.jsxs(c("MWXRow.react"),{paddingHorizontal:8,paddingVertical:0,spacingHorizontal:4,xstyle:o.pill,children:[l.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:l.jsx(c("MWXIconStrict.react"),{color:"white",icon:c("MWXIconClock"),size:16})}),l.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:l.jsx(c("MWXText.react"),{color:"white",type:"body4",children:a})})]})})})),b[15]=a,b[16]=p):p=b[16];return p}return null}g["default"]=a}),226);
__d("MWXIconLive",["MWXSvgIcon","SVGIcon","cr:12483","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12483")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWXMALivePill.react",["fbt","I64","LSIntEnum","MNXMAPreviewImageDecorationType","MWXRow.react","MWXRowItem.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react"),m={pill:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",paddingTop:"x1nn3v0j",paddingBottom:"x1120s5i",paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,textTransform:"xtvhhri",$$css:!0},pillLive:{backgroundColor:"x1cdvf7c",$$css:!0},pillLiveEnded:{backgroundColor:"x2bj2ny",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(8);a=a.previewImageDecorationType;a=(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").DXMA_LIVE_ENDED));var e=a?m.pillLiveEnded:m.pillLive,f;b[0]!==e?(f=[m.pill,e],b[0]=e,b[1]=f):f=b[1];e=a?"primary":"white";b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__naqiogLE-_g__JHASH__"),b[2]=a):a=b[2];b[3]!==e?(a=l.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:l.jsx(c("MWXText.react"),{color:e,type:"bodyLink4",children:a})}),b[3]=e,b[4]=a):a=b[4];b[5]!==f||b[6]!==a?(e=l.jsx(c("MWXRow.react"),{paddingHorizontal:0,paddingVertical:0,spacingHorizontal:0,xstyle:f,children:a}),b[5]=f,b[6]=a,b[7]=e):e=b[7];return e}g["default"]=a}),226);
__d("MWXMALiveOverlay.react",["fbt","MWXColumn.react","MWXColumnItem.react","MWXIconLive","MWXIconStrict.react","MWXMALivePill.react","MWXRow.react","MWXRowItem.react","MWXText.react","react","react-compiler-runtime","xmaAttachmentUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(5),e=a.attachment;a=a.isUnjoined;var f=e.previewImageDecorationType;if(f==null)return null;e=d("xmaAttachmentUtils").isLiveXMA(e);var g;b[0]!==f?(g=j.jsx(c("MWXMALivePill.react"),{previewImageDecorationType:f}),b[0]=f,b[1]=g):g=b[1];f=g;if(e){b[2]!==a||b[3]!==f?(g=a?j.jsx("div",babelHelpers["extends"]({className:"x1h6ucep x1ey2m1c x78zum5 xds687c x17qophe x10l6tqk x13vifvy"},{children:j.jsx(c("MWXRow.react"),{align:"center",expanding:!0,children:j.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:j.jsxs(c("MWXColumn.react"),{spacing:16,children:[j.jsx(c("MWXColumnItem.react"),{align:"center",children:j.jsx(c("MWXIconStrict.react"),{color:"white",icon:c("MWXIconLive"),size:36})}),j.jsx(c("MWXColumnItem.react"),{align:"center",children:j.jsx(c("MWXText.react"),{color:"primaryOnMedia",type:"body2",children:h._(/*BTDS*/"__JHASH__Ck-x9Kir4L3__JHASH__")})})]})})})})):j.jsx("div",babelHelpers["extends"]({className:"x1ey2m1c x78zum5 xds687c x17qophe x10l6tqk x13vifvy"},{children:j.jsx(c("MWXRow.react"),{align:"end",expanding:!0,verticalAlign:"top",children:j.jsx(c("MWXRowItem.react"),{children:f})})})),b[2]=a,b[3]=f,b[4]=g):g=b[4];return g}return null}g["default"]=a}),226);
__d("MWXMAAttachmentItemImage.react",["FDSImageCover.react","I64","LSIntEnum","LSMessagingThreadTypeUtil","MAWConvertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType","MNXMAPreviewImageDecorationType","MWInformedTreatment.react","MWXMAAttachmentItemImageDimensionCalculator","MWXMAEarlyAccessOverlay.react","MWXMALiveOverlay.react","ReQL","ReQLSuspense","gkx","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));b=k;var m=b.useEffect,n=b.useRef;function a(a){var b=d("react-compiler-runtime").c(73),e=a.attachment,g=a.attachmentItem,k=a.cardWidth,o=a.isStandalone,p=a.mediaRenderQpl,q=a.previewUrl,r=a.testid;a=a.xmaLayout;var s=(h||(h=c("useReStore")))(),t;b[0]!==e.threadKey||b[1]!==s.tables.threads?(t=function(){return d("ReQL").fromTableAscending(s.tables.threads,["threadType"]).getKeyRange(e.threadKey)},b[0]=e.threadKey,b[1]=s.tables.threads,b[2]=t):t=b[2];var u;b[3]!==e.threadKey||b[4]!==s?(u=[s,e.threadKey],b[3]=e.threadKey,b[4]=s,b[5]=u):u=b[5];t=d("ReQLSuspense").useFirst(t,u,f.id+":61");b[6]!==t?(u=t!=null&&d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(t==null?void 0:t.threadType),b[6]=t,b[7]=u):u=b[7];u=u;var v;b[8]!==t?(v=t!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(t.threadType),b[8]=t,b[9]=v):v=b[9];v=v;var w=e.gatingTitle,x=e.gatingType;t=d("MWInformedTreatment.react").checkIsInformedTreatmentVisible(w,x,q,t==null?void 0:t.threadType);var y;b[10]!==e||b[11]!==g||b[12]!==k||b[13]!==o||b[14]!==a?(y=d("MWXMAAttachmentItemImageDimensionCalculator").calculateDimensions(e,g,k,a,o),b[10]=e,b[11]=g,b[12]=k,b[13]=o,b[14]=a,b[15]=y):y=b[15];g=y;b[16]!==e.previewImageDecorationType?(k=e.previewImageDecorationType!=null&&(i||(i=d("I64"))).equal(e.previewImageDecorationType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").BLUR))&&c("gkx")("1643"),b[16]=e.previewImageDecorationType,b[17]=k):k=b[17];o=k;b[18]!==e.previewImageDecorationType||b[19]!==u?(a=u&&e.previewImageDecorationType!=null&&((i||(i=d("I64"))).equal(e.previewImageDecorationType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").DXMA_LIVE))||(i||(i=d("I64"))).equal(e.previewImageDecorationType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNXMAPreviewImageDecorationType").DXMA_LIVE_ENDED))),b[18]=e.previewImageDecorationType,b[19]=u,b[20]=a):a=b[20];y=a;b[21]!==o||b[22]!==y?(k=o||y?{filter:"blur(15px)",transform:"scale(1.1)"}:{},b[21]=o,b[22]=y,b[23]=k):k=b[23];a=k;var z=n(null);b[24]!==p?(o=function(){var a=z.current;a!=null&&a.complete&&(p==null?void 0:p.endSuccess())},y=[p],b[24]=p,b[25]=y,b[26]=o):(y=b[25],o=b[26]);m(o,y);if(q.length===0||q===""){p==null?void 0:p.endFail("empty_preview_url");return null}b[27]!==x||b[28]!==v?(k=v?d("MAWConvertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType").convertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType(parseInt(x,10)):x,b[27]=x,b[28]=v,b[29]=k):k=b[29];o=k;if(w!=null&&o!=null&&t){b[30]!==e.messageId||b[31]!==g.informedTreatmentCardDimension||b[32]!==w||b[33]!==o||b[34]!==p||b[35]!==q?(y=l.jsx(d("MWInformedTreatment.react").MWInformedTreatment,{dimension:g.informedTreatmentCardDimension,gatingTitle:w,gatingType:o,isXMA:!0,mediaRenderQpl:p,messageId:e.messageId,previewUrl:q}),b[30]=e.messageId,b[31]=g.informedTreatmentCardDimension,b[32]=w,b[33]=o,b[34]=p,b[35]=q,b[36]=y):y=b[36];return y}if(g.expand){b[37]===Symbol["for"]("react.memo_cache_sentinel")?(x={className:"x78zum5 x6ikm8r x10wlt62 x1n2onr6 xh8yej3"},b[37]=x):x=b[37];b[38]!==p?(v=function(){return p==null?void 0:p.endFail("load-image-error")},k=function(){return p==null?void 0:p.endSuccess()},b[38]=p,b[39]=v,b[40]=k):(v=b[39],k=b[40]);b[41]!==a||b[42]!==g.aspectRatio||b[43]!==g.unifiedStyles?(t=babelHelpers["extends"]({aspectRatio:g.aspectRatio,flexGrow:"1",height:"auto",maxWidth:"100%",objectFit:"cover"},g.unifiedStyles,a),b[41]=a,b[42]=g.aspectRatio,b[43]=g.unifiedStyles,b[44]=t):t=b[44];b[45]!==q||b[46]!==v||b[47]!==k||b[48]!==t?(w=l.jsx("img",{alt:"",onError:v,onLoad:k,ref:z,src:q,style:t}),b[45]=q,b[46]=v,b[47]=k,b[48]=t,b[49]=w):w=b[49];b[50]!==e?(o=l.jsx(c("MWXMAEarlyAccessOverlay.react"),{attachment:e}),b[50]=e,b[51]=o):o=b[51];b[52]!==e||b[53]!==u?(y=l.jsx(c("MWXMALiveOverlay.react"),{attachment:e,isUnjoined:u}),b[52]=e,b[53]=u,b[54]=y):y=b[54];b[55]!==w||b[56]!==o||b[57]!==y||b[58]!==r?(a=l.jsxs("div",babelHelpers["extends"]({},x,{"data-testid":void 0,children:[w,o,y]})),b[55]=w,b[56]=o,b[57]=y,b[58]=r,b[59]=a):a=b[59];return a}b[60]===Symbol["for"]("react.memo_cache_sentinel")?(v="x78zum5 x6ikm8r x10wlt62 x1n2onr6 xh8yej3",b[60]=v):v=b[60];b[61]!==p?(k=function(){return p==null?void 0:p.endFail("load-image-error")},t=function(){return p==null?void 0:p.endSuccess()},b[61]=p,b[62]=k,b[63]=t):(k=b[62],t=b[63]);b[64]===Symbol["for"]("react.memo_cache_sentinel")?(u={bottom:"0",left:"0",position:"absolute",right:"0",top:"0"},b[64]=u):u=b[64];b[65]!==q||b[66]!==k||b[67]!==t?(x=l.jsx(c("FDSImageCover.react"),{alt:"",onError:k,onLoad:t,src:q,style:u}),b[65]=q,b[66]=k,b[67]=t,b[68]=x):x=b[68];b[69]!==g.dimensionsStyle||b[70]!==x||b[71]!==r?(w=l.jsx("div",{className:v,"data-testid":void 0,style:g.dimensionsStyle,children:x}),b[69]=g.dimensionsStyle,b[70]=x,b[71]=r,b[72]=w):w=b[72];return w}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultImagePreview.react",["CometPlaceholder.react","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemImage.react","nullthrows","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(20),e=a.attachment,f=a.attachmentItem,g=a.attachmentPreview,h=a.cardWidth,l=a.isPressable,m=a.isStandalone,n=a.mediaRenderQpl,o=a.renderLoadingPlaceholder;a=a.xmaLayout;var p,q;b[0]!==g.url||b[1]!==n?(p=function(){n==null?void 0:n.addPoint("render-xma-attachment-item-default-image-preview",{bool:{has_attachment_preview_url:Boolean(g.url)}}),Boolean(g.url)||(n==null?void 0:n.endFail("image-missing-preview-url"))},q=[g.url,n],b[0]=g.url,b[1]=n,b[2]=p,b[3]=q):(p=b[2],q=b[3]);j(p,q);if(!Boolean(g.url))return null;b[4]!==o?(p=o("MWXMAAttachmentItemDefaultImagePreview.Suspense",!0),b[4]=o,b[5]=p):p=b[5];b[6]!==g.url?(q=c("nullthrows")(g.url),b[6]=g.url,b[7]=q):q=b[7];b[8]!==e||b[9]!==f||b[10]!==h||b[11]!==l||b[12]!==m||b[13]!==n||b[14]!==q||b[15]!==a?(o=i.jsx(k,{attachment:e,attachmentItem:f,cardWidth:h,isPressable:l,isStandalone:m,mediaRenderQpl:n,previewUrl:q,xmaLayout:a}),b[8]=e,b[9]=f,b[10]=h,b[11]=l,b[12]=m,b[13]=n,b[14]=q,b[15]=a,b[16]=o):o=b[16];b[17]!==p||b[18]!==o?(e=i.jsx(c("CometPlaceholder.react"),{fallback:p,name:"MWXMAAttachmentItemDefaultImagePreview",children:o}),b[17]=p,b[18]=o,b[19]=e):e=b[19];return e}function k(a){var b=d("react-compiler-runtime").c(16),e=a.attachment,f=a.attachmentItem,g=a.cardWidth,h=a.isPressable,k=a.isStandalone,l=a.mediaRenderQpl,m=a.previewUrl;a=a.xmaLayout;var n,o;b[0]!==l?(n=function(){l==null?void 0:l.addPoint("render-xma-attachment-item-default-image-preview-impl")},o=[l],b[0]=l,b[1]=n,b[2]=o):(n=b[1],o=b[2]);j(n,o);b[3]!==e||b[4]!==f||b[5]!==g||b[6]!==k||b[7]!==l||b[8]!==m||b[9]!==a?(n=i.jsx(c("MWXMAAttachmentItemImage.react"),{attachment:e,attachmentItem:f,cardWidth:g,isStandalone:k,mediaRenderQpl:l,previewUrl:m,testid:void 0,xmaLayout:a}),b[3]=e,b[4]=f,b[5]=g,b[6]=k,b[7]=l,b[8]=m,b[9]=a,b[10]=n):n=b[10];b[11]!==e||b[12]!==f||b[13]!==h||b[14]!==n?(o=i.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:f,isPressable:h,children:n}),b[11]=e,b[12]=f,b[13]=h,b[14]=n,b[15]=o):o=b[15];return o}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultUnsupportedPreview.react",["MWXMALivePill.react","react","react-compiler-runtime","xmaAttachmentUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(11),e=a.attachment,f=a.mediaRenderQpl,g=e.previewImageDecorationType;b[0]!==e?(a=d("xmaAttachmentUtils").isLiveXMA(e),b[0]=e,b[1]=a):a=b[1];var h=a,k;b[2]!==e||b[3]!==h||b[4]!==f||b[5]!==g?(a=function(){f==null?void 0:f.addPoint("render-xma-attachment-item-default-unsupported-preview",{bool:{has_preview_image_decoration_type:g!=null,is_live_xma:h}}),d("xmaAttachmentUtils").isLiveXMA(e)&&g!=null?f==null?void 0:f.endSuccess():f==null?void 0:f.endFail("missing-xma-media")},k=[e,h,f,g],b[2]=e,b[3]=h,b[4]=f,b[5]=g,b[6]=a,b[7]=k):(a=b[6],k=b[7]);j(a,k);if(d("xmaAttachmentUtils").isLiveXMA(e)&&g!=null){b[8]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"x78zum5 xzueoph xkrivgy x1gryazu xhrpt6u"},b[8]=a):a=b[8];b[9]!==g?(k=i.jsx("div",babelHelpers["extends"]({},a,{children:i.jsx(c("MWXMALivePill.react"),{previewImageDecorationType:g})})),b[9]=g,b[10]=k):k=b[10];return k}return null}g["default"]=a}),98);
__d("MWXMAAttachmentItemAttribution.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(10);a=a.attachment;a=a;var c=a.attributionAppIcon;a=a.attributionAppName;if(c!=null&&a!=null){var e,f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x6s0dn4 x1gn5b1j x230xth x78zum5 x1rfph6h x1iorvi4 xsyo7zv xjkvuk6 x16hj40l"},f={className:"x14yjl9h xudhj91 x18nykt9 xww2gxu xlup9mm x1kky2od"},b[0]=e,b[1]=f):(e=b[0],f=b[1]);b[2]!==c?(f=i.jsx("img",babelHelpers["extends"]({},f,{src:c})),b[2]=c,b[3]=f):f=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(c={className:"xzsf02u x1nxh6w3 x1mnrxsn x13faqbe"},b[4]=c):c=b[4];b[5]!==a?(c=i.jsx("span",babelHelpers["extends"]({},c,{children:a})),b[5]=a,b[6]=c):c=b[6];b[7]!==f||b[8]!==c?(a=i.jsxs("div",babelHelpers["extends"]({},e,{children:[f,c]})),b[7]=f,b[8]=c,b[9]=a):a=b[9];return a}return null}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultVideoPreview.react",["CometObjectFitContainer.react","CometPlaceholder.react","I64","MWXGlimmer.react","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemAttribution.react","deferredLoadComponent","nullthrows","react","react-compiler-runtime","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useEffect,l=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWChatVideoPlayer.react").__setRef("MWXMAAttachmentItemDefaultVideoPreview.react")),m={glimmer:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(17),e=a.attachment,f=a.attachmentItem,g=a.attachmentPreview,h=a.isPressable,i=a.mediaRenderQpl;a=a.renderLoadingPlaceholder;var l,m;b[0]!==g.url||b[1]!==i?(l=function(){i==null?void 0:i.addPoint("render-xma-attachment-item-default-video-preview",{bool:{has_attachment_preview_url:Boolean(g.url)}}),Boolean(g.url)||(i==null?void 0:i.endFail("video-missing-preview-url"))},m=[g.url,i],b[0]=g.url,b[1]=i,b[2]=l,b[3]=m):(l=b[2],m=b[3]);k(l,m);if(!Boolean(g.url))return null;b[4]!==a?(l=a("MWXMAAttachmentItemDefaultVideoPreview.Suspense",!0),b[4]=a,b[5]=l):l=b[5];b[6]!==g.url?(m=c("nullthrows")(g.url),b[6]=g.url,b[7]=m):m=b[7];b[8]!==e||b[9]!==f||b[10]!==h||b[11]!==i||b[12]!==m?(a=j.jsx(n,{attachment:e,attachmentItem:f,isPressable:h,mediaRenderQpl:i,playableUrl:m}),b[8]=e,b[9]=f,b[10]=h,b[11]=i,b[12]=m,b[13]=a):a=b[13];b[14]!==l||b[15]!==a?(e=j.jsx(c("CometPlaceholder.react"),{fallback:l,name:"MWXMAAttachmentItemDefaultVideoPreview",children:a}),b[14]=l,b[15]=a,b[16]=e):e=b[16];return e}function n(a){var b=d("react-compiler-runtime").c(26),e=a.attachment,f=a.attachmentItem,g=a.isPressable,h=a.mediaRenderQpl;a=a.playableUrl;var m,n;b[0]!==h?(m=function(){h==null?void 0:h.addPoint("render-xma-attachment-item-default-video-preview-impl")},n=[h],b[0]=h,b[1]=m,b[2]=n):(m=b[1],n=b[2]);k(m,n);n=(m=e.shouldAutoplayVideo)!=null?m:!1;m=n?"none":"mwchat";var o;b[3]!==f.previewHeight?(o=f.previewHeight!=null?(i||(i=d("I64"))).to_int32(f.previewHeight):0,b[3]=f.previewHeight,b[4]=o):o=b[4];var q;b[5]!==f.previewWidth?(q=f.previewWidth!=null?(i||(i=d("I64"))).to_int32(f.previewWidth):0,b[5]=f.previewWidth,b[6]=q):q=b[6];var r;b[7]!==f.attachmentFbid||b[8]!==h||b[9]!==a||b[10]!==m||b[11]!==o||b[12]!==q?(r=j.jsx(l,{controls:m,fbid:f.attachmentFbid,hideExpandButton:!1,mediaRenderQpl:h,originalHeight:o,originalWidth:q,sdSrc:a,shouldForcePauseOnClick:!0}),b[7]=f.attachmentFbid,b[8]=h,b[9]=a,b[10]=m,b[11]=o,b[12]=q,b[13]=r):r=b[13];b[14]!==f||b[15]!==r?(a=j.jsx(p,{attachmentItem:f,testid:void 0,children:r}),b[14]=f,b[15]=r,b[16]=a):a=b[16];b[17]!==e||b[18]!==n?(m=n?j.jsx(c("MWXMAAttachmentItemAttribution.react"),{attachment:e}):null,b[17]=e,b[18]=n,b[19]=m):m=b[19];b[20]!==e||b[21]!==f||b[22]!==g||b[23]!==a||b[24]!==m?(o=j.jsxs(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:f,isPressable:g,children:[a,m]}),b[20]=e,b[21]=f,b[22]=g,b[23]=a,b[24]=m,b[25]=o):o=b[25];return o}function o(){var a=d("react-compiler-runtime").c(1),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=j.jsx("div",babelHelpers["extends"]({className:"x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk xh8yej3"},{children:j.jsx(c("MWXGlimmer.react"),{index:0,xstyle:m.glimmer})})),a[0]=b):b=a[0];return b}function p(a){var b,e=d("react-compiler-runtime").c(7),f=a.attachmentItem,g=a.children;a=a.testid;b=(i||(i=d("I64"))).to_int32((b=f.previewWidth)!=null?b:(i||(i=d("I64"))).zero);f=i.to_int32((f=f.previewHeight)!=null?f:(i||(i=d("I64"))).zero);b=b!==0?f!==0?b/f:0:0;f=f>250&&b<.8;f=f?.8:b;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=j.jsx(o,{}),e[0]=b):b=e[0];e[1]!==g?(b=j.jsx(c("CometPlaceholder.react"),{fallback:b,name:"MWXMAAttachmentItemVideoContainer",children:g}),e[1]=g,e[2]=b):b=e[2];e[3]!==f||e[4]!==b||e[5]!==a?(g=j.jsx(c("CometObjectFitContainer.react"),{contentAspectRatio:f,testid:void 0,children:b}),e[3]=f,e[4]=b,e[5]=a,e[6]=g):g=e[6];return g}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultPreviewInner.react",["InteractionTracingMetrics","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MWLSThreadDisplayContext","MWPBaseXMAAttachmentItem.react","MWXMAAttachmentItemDefaultImagePreview.react","MWXMAAttachmentItemDefaultUnsupportedPreview.react","MWXMAAttachmentItemDefaultVideoPreview.react","react","react-compiler-runtime","xmaAttachmentUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(43),e=a.attachment,f=a.attachmentItem,g=a.cardWidth,h=a.getPreviewUrlXMA,l=a.isPressable,m=a.isStandalone,n=a.mediaRenderQpl,o=a.renderLoadingPlaceholder;a=a.xmaLayout;var p=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),q=p==="Inbox";b[0]!==e||b[1]!==f||b[2]!==h||b[3]!==q||b[4]!==n?(p=d("MWPBaseXMAAttachmentItem.react").getXMAAttachmentItemPreview({attachment:e,attachmentItem:f,description:"MWXMAAttachmentItemDefaultPreviewImpl",getPreviewUrl:h,mediaRenderQpl:n,preferLargePreview:q}),b[0]=e,b[1]=f,b[2]=h,b[3]=q,b[4]=n,b[5]=p):p=b[5];var r=p,s=(r.type==="Video"||r.type==="Image")&&r.url.length>0;b[6]!==e?(p=d("xmaAttachmentUtils").isLiveXMA(e),b[6]=e,b[7]=p):p=b[7];var t=p,u;b[8]!==e||b[9]!==f||b[10]!==r.hasPlayableUrl||b[11]!==r.hasPreviewUrl||b[12]!==r.mimeType||b[13]!==r.playableUrlMimeType||b[14]!==r.type||b[15]!==r.url||b[16]!==h||b[17]!==s||b[18]!==q||b[19]!==t||b[20]!==n?(p=function(){n==null?void 0:n.addPoint("render-xma-attachment-item-default-preview-impl",{bool:{attachment_has_playable_url:Boolean(d("LSMediaUrlAttachment").playableUrl(e)),attachment_has_preview_url:Boolean(d("LSMediaUrlAttachment").previewUrl(e)),attachment_has_preview_url_large:Boolean(d("LSMediaUrlAttachment").previewUrlLarge(e)),attachment_item_has_playable_url:Boolean(d("LSMediaUrlAttachmentItem").playableUrl(f)),attachment_item_has_preview_url:Boolean(d("LSMediaUrlAttachmentItem").previewUrl(f)),attachment_item_has_preview_url_large:Boolean(d("LSMediaUrlAttachmentItem").previewUrlLarge(f)),has_media:s,has_playable_url:r.hasPlayableUrl,has_preview_url:r.hasPreviewUrl,has_url:Boolean(r.url),is_large_surface:q,is_live_xma:t,is_preview_url_callback_fct_set:h!=null},string:{attachment_preview_type:r.type,playable_url_mime_type:r.playableUrlMimeType,preview_url_mime_type:r.mimeType}}),c("InteractionTracingMetrics").currentInteractionLogger().forEach(k)},u=[e,f,r.hasPlayableUrl,r.hasPreviewUrl,r.mimeType,r.playableUrlMimeType,r.type,r.url,h,s,q,t,n],b[8]=e,b[9]=f,b[10]=r.hasPlayableUrl,b[11]=r.hasPreviewUrl,b[12]=r.mimeType,b[13]=r.playableUrlMimeType,b[14]=r.type,b[15]=r.url,b[16]=h,b[17]=s,b[18]=q,b[19]=t,b[20]=n,b[21]=p,b[22]=u):(p=b[21],u=b[22]);j(p,u);switch(r.type){case"Video":b[23]!==e||b[24]!==f||b[25]!==r||b[26]!==l||b[27]!==n||b[28]!==o?(p=i.jsx(c("MWXMAAttachmentItemDefaultVideoPreview.react"),{attachment:e,attachmentItem:f,attachmentPreview:r,isPressable:l,mediaRenderQpl:n,renderLoadingPlaceholder:o}),b[23]=e,b[24]=f,b[25]=r,b[26]=l,b[27]=n,b[28]=o,b[29]=p):p=b[29];return p;case"Image":b[30]!==e||b[31]!==f||b[32]!==r||b[33]!==g||b[34]!==l||b[35]!==m||b[36]!==n||b[37]!==o||b[38]!==a?(u=i.jsx(c("MWXMAAttachmentItemDefaultImagePreview.react"),{attachment:e,attachmentItem:f,attachmentPreview:r,cardWidth:g,isPressable:l,isStandalone:m,mediaRenderQpl:n,renderLoadingPlaceholder:o,xmaLayout:a}),b[30]=e,b[31]=f,b[32]=r,b[33]=g,b[34]=l,b[35]=m,b[36]=n,b[37]=o,b[38]=a,b[39]=u):u=b[39];return u;case"Unsupported":b[40]!==e||b[41]!==n?(p=i.jsx(c("MWXMAAttachmentItemDefaultUnsupportedPreview.react"),{attachment:e,mediaRenderQpl:n}),b[40]=e,b[41]=n,b[42]=p):p=b[42];return p}}function k(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-default-preview-impl","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultPreview.react",["CometHeroHoldTrigger.react","CometPlaceholder.react","InteractionTracingMetrics","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","LSMessagingThreadTypeUtil","MWV2AttachmentLoadingPlaceholder.react","MWXMAAttachmentItemDefaultPreviewInner.react","MWXMAAttachmentItemImageDimensionCalculator","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect,k={loadingPlaceholder:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",display:"x78zum5",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(37),e=a.attachment,f=a.attachmentItem,g=a.cardWidth,h=a.getPreviewUrlXMA,l=a.isPressable,m=a.isStandalone,n=a.mediaRenderQpl,o=a.threadType;a=a.xmaLayout;var p=d("LSMediaUrlAttachment").previewUrl(e)!=null||d("LSMediaUrlAttachmentItem").playableUrl(f)!=null||d("LSMediaUrlAttachmentItem").previewUrl(f)!=null||d("LSMediaUrlAttachmentItem").previewUrlLarge(f)!=null||e.hasXmaPreview===!0,q,r;b[0]!==e||b[1]!==f||b[2]!==h||b[3]!==p||b[4]!==n?(q=function(){n==null?void 0:n.addPoint("render-xma-attachment-item-default-preview",{bool:{attachment_has_playable_url:Boolean(d("LSMediaUrlAttachment").playableUrl(e)),attachment_has_preview_url:Boolean(d("LSMediaUrlAttachment").previewUrl(e)),attachment_has_preview_url_large:Boolean(d("LSMediaUrlAttachment").previewUrlLarge(e)),attachment_item_has_playable_url:Boolean(d("LSMediaUrlAttachmentItem").playableUrl(f)),attachment_item_has_preview_url:Boolean(d("LSMediaUrlAttachmentItem").previewUrl(f)),attachment_item_has_preview_url_large:Boolean(d("LSMediaUrlAttachmentItem").previewUrlLarge(f)),has_attachment_fbid:Boolean(e.attachmentFbid),has_media:e.hasMedia,has_preview:p,has_xma_preview:e.hasXmaPreview,is_attachment_fbid_number:!isNaN(e.attachmentFbid),is_preview_url_callback_fct_set:h!=null},string:{attachment_item_playable_url_mime_type:e.playableUrlMimeType,attachment_item_preview_url_mime_type:e.previewUrlMimeType,attachment_playable_url_mime_type:e.playableUrlMimeType,attachment_preview_url_mime_type:e.previewUrlMimeType}}),p||(n==null?void 0:n.endSuccess()),c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-default-preview","AppTiming"),c("InteractionTracingMetrics").addMetadata(a.traceId,"xma_has_preview",p?1:0)})},r=[e,f,h,p,n],b[0]=e,b[1]=f,b[2]=h,b[3]=p,b[4]=n,b[5]=q,b[6]=r):(q=b[5],r=b[6]);j(q,r);b[7]!==e||b[8]!==f||b[9]!==g||b[10]!==m||b[11]!==a?(q=d("MWXMAAttachmentItemImageDimensionCalculator").calculateDimensions(e,f,g,a,m),b[7]=e,b[8]=f,b[9]=g,b[10]=m,b[11]=a,b[12]=q):q=b[12];r=q;var s=r.dimensions.width,t=r.dimensions.height;q=r.aspectRatio;var u=g/(q>0?q:1);r=o!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(o);if(!p)return null;b[13]!==g||b[14]!==u||b[15]!==n||b[16]!==t||b[17]!==s?(q=function(a,b){return i.jsxs(i.Fragment,{children:[i.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{descriptionForLogging:a,height:t,maxHeight:u,maxWidth:g,mediaRenderQpl:n,width:s,xstyle:k.loadingPlaceholder}),!b&&i.jsx(c("CometHeroHoldTrigger.react"),{description:a,hold:!0})]})},b[13]=g,b[14]=u,b[15]=n,b[16]=t,b[17]=s,b[18]=q):q=b[18];o=q;if(r&&p&&e.hasMedia===!1){b[19]!==o?(q=o("MWXMAAttachmentItemDefaultPreview.NoMedia",!1),b[19]=o,b[20]=q):q=b[20];return q}b[21]!==p||b[22]!==o?(r=p&&o("MWXMAAttachmentItemDefaultPreview.Suspense",!0),b[21]=p,b[22]=o,b[23]=r):r=b[23];b[24]!==e||b[25]!==f||b[26]!==g||b[27]!==h||b[28]!==l||b[29]!==m||b[30]!==n||b[31]!==o||b[32]!==a?(q=i.jsx(c("MWXMAAttachmentItemDefaultPreviewInner.react"),{attachment:e,attachmentItem:f,cardWidth:g,getPreviewUrlXMA:h,isPressable:l,isStandalone:m,mediaRenderQpl:n,renderLoadingPlaceholder:o,xmaLayout:a}),b[24]=e,b[25]=f,b[26]=g,b[27]=h,b[28]=l,b[29]=m,b[30]=n,b[31]=o,b[32]=a,b[33]=q):q=b[33];b[34]!==r||b[35]!==q?(l=i.jsx(c("CometPlaceholder.react"),{fallback:r,name:"MWXMAAttachmentItemDefaultPreview",children:q}),b[34]=r,b[35]=q,b[36]=l):l=b[36];return l}g["default"]=a}),98);
__d("MWXMAAttachmentItemHeaderIcon.react",["FDSImageCover.react","FDSSkittleIcon.react","InteractionTracingMetrics","MWXMAIconParser.react","react","react-compiler-runtime","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=d("react-compiler-runtime").c(18),e=a.attachment,f=a.getHeaderUrlXMA,g=a.mediaRenderQpl;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;if(b[0]!==e||b[1]!==f||b[2]!==g){var h=f(e,"MWXMAAttachmentItemHeaderIcon",g);h=h==null?void 0:d("MWXMAIconParser.react").parse(h);b[0]=e;b[1]=f;b[2]=g;b[3]=h}else h=b[3];var l=h;b[4]!==l||b[5]!==g?(e=function(){g==null?void 0:g.addPoint("render-xma-attachment-item-header-icon",{bool:{has_icon:l!=null}}),l!=null&&c("InteractionTracingMetrics").currentInteractionLogger().forEach(k)},f=[l,g],b[4]=l,b[5]=g,b[6]=e,b[7]=f):(e=b[6],f=b[7]);j(e,f);if(l==null)return null;if(typeof l==="string"){h=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?"40px":"32px";b[8]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x6s0dn4 x78zum5 x5yr21d xq8finb"},b[8]=e):e=b[8];b[9]!==h?(f={borderRadius:"50%",height:h,width:h},b[9]=h,b[10]=f):f=b[10];b[11]!==l||b[12]!==f?(a=i.jsx("div",babelHelpers["extends"]({},e,{children:i.jsx(c("FDSImageCover.react"),{alt:"Icon for this message's header",src:l,style:f})})),b[11]=l,b[12]=f,b[13]=a):a=b[13];return a}b[14]===Symbol["for"]("react.memo_cache_sentinel")?(h={className:"x6s0dn4 x78zum5 x5yr21d xq8finb"},b[14]=h):h=b[14];b[15]!==l.color||b[16]!==l.icon?(e=i.jsx("div",babelHelpers["extends"]({},h,{children:i.jsx(c("FDSSkittleIcon.react"),{color:l.color,icon:l.icon,size:36})})),b[15]=l.color,b[16]=l.icon,b[17]=e):e=b[17];return e}function k(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-header-icon","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentItemHeaderIconWithPlaceholder.react",["CometPlaceholder.react","InteractionTracingMetrics","MWV2AttachmentLoadingPlaceholder.react","MWXMAAttachmentItemHeaderIcon.react","react","react-compiler-runtime","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect,k={loadingPlaceholder:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(14),e=a.attachment,f=a.getHeaderUrlXMA,g=a.mediaRenderQpl;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var h,m;b[0]!==g?(h=function(){g==null?void 0:g.addPoint("render-xma-attachment-item-header-icon-with-placeholder"),c("InteractionTracingMetrics").currentInteractionLogger().forEach(l)},m=[g],b[0]=g,b[1]=h,b[2]=m):(h=b[1],m=b[2]);j(h,m);h=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?40:32;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(m={className:"x6s0dn4 x78zum5 x5yr21d xq8finb"},b[3]=m):m=b[3];b[4]!==h?(m=i.jsx("div",babelHelpers["extends"]({},m,{children:i.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{descriptionForLogging:"MWXMAAttachmentItemHeaderIconWithPlaceholder.Suspense",height:h,width:h,xstyle:k.loadingPlaceholder})})),b[4]=h,b[5]=m):m=b[5];b[6]!==e||b[7]!==f||b[8]!==g||b[9]!==a?(h=i.jsx(c("MWXMAAttachmentItemHeaderIcon.react"),{attachment:e,getHeaderUrlXMA:f,mediaRenderQpl:g,xmaLayout:a}),b[6]=e,b[7]=f,b[8]=g,b[9]=a,b[10]=h):h=b[10];b[11]!==m||b[12]!==h?(e=i.jsx(c("CometPlaceholder.react"),{fallback:m,name:"MWXMAAttachmentItemHeaderIconWithPlaceholder",children:h}),b[11]=m,b[12]=h,b[13]=e):e=b[13];return e}function l(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item-header-icon","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentItemHeader.react",["ix","I64","InteractionTracingMetrics","LSIntEnum","LSMediaUrlAttachment","LSVerifiedType","MAWIsXMAWithPlaintextHash","MWSearchPluginUtils","MWXIcon.react","MWXMAAttachmentItemHeaderIcon.react","MWXMAAttachmentItemHeaderIconWithPlaceholder.react","MWXText.react","MWXTextPairing.react","cr:13018","fbicon","react","react-compiler-runtime","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||(j=d("react")),n=j.useEffect,o={root:{alignItems:"x6s0dn4",display:"x78zum5",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",$$css:!0},withBorder:{borderBottomColor:"x1nb4dca",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(41),f=a.attachment,g=a.getHeaderUrlXMA,j=a.isSecureThread,p=a.mediaRenderQpl;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var q=d("LSMediaUrlAttachment").headerImageUrl(f)!=null||f.hasXmaHeaderImage===!0,r,s;e[0]!==f.headerTitle||e[1]!==q||e[2]!==p?(r=function(){p==null?void 0:p.addPoint("render-xma-attachment-item-header",{bool:{has_header_icon:q,has_title:f.headerTitle!=null}}),c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMetadata(a.traceId,"xma_has_header_icon",q)})},s=[f.headerTitle,q,p],e[0]=f.headerTitle,e[1]=q,e[2]=p,e[3]=r,e[4]=s):(r=e[3],s=e[4]);n(r,s);r=f.headerTitle;if(r==null)return null;s=f.headerSubtitleText;var t=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT,u;e[5]!==f?(u=d("MWSearchPluginUtils").isSearchSingleBubblePlugin(f),e[5]=f,e[6]=u):u=e[6];u=u;var v;e[7]!==f.verifiedType?(v=f.verifiedType!=null?(k||(k=d("I64"))).equal(f.verifiedType,(l||(l=d("LSIntEnum"))).ofNumber(c("LSVerifiedType").DEFAULT)):!1,e[7]=f.verifiedType,e[8]=v):v=e[8];v=v;var w;e[9]!==f||e[10]!==j?(w=j&&f.receiverFetchId==null&&d("MAWIsXMAWithPlaintextHash").isXMAWithPlaintextHash(f),e[9]=f,e[10]=j,e[11]=w):w=e[11];j=w;e[12]!==t?(w=(i||(i=c("stylex"))).props(o.root,t?o.withBorder:!1),e[12]=t,e[13]=w):w=e[13];var x;e[14]!==f||e[15]!==g||e[16]!==q||e[17]!==p||e[18]!==j||e[19]!==a?(x=q!=null&&j&&b("cr:13018")!=null&&m.jsx(b("cr:13018"),{dbAttachment:f,iconSize:a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?40:32,plaintextHash:f.xmaHeaderImageFbid,xmaIcon:m.jsx(c("MWXMAAttachmentItemHeaderIcon.react"),{attachment:f,getHeaderUrlXMA:g,mediaRenderQpl:p,xmaLayout:a}),xmaMediaType:"headerImage"}),e[14]=f,e[15]=g,e[16]=q,e[17]=p,e[18]=j,e[19]=a,e[20]=x):x=e[20];var y;e[21]!==f||e[22]!==g||e[23]!==q||e[24]!==p||e[25]!==j||e[26]!==a?(y=q!=null&&!j&&m.jsx(c("MWXMAAttachmentItemHeaderIconWithPlaceholder.react"),{attachment:f,getHeaderUrlXMA:g,mediaRenderQpl:p,xmaLayout:a}),e[21]=f,e[22]=g,e[23]=q,e[24]=p,e[25]=j,e[26]=a,e[27]=y):y=e[27];e[28]!==s||e[29]!==r||e[30]!==u||e[31]!==t?(g=(t||u)&&s!==null&&s!=null&&s!==""?m.jsx(c("MWXTextPairing.react"),{headline:r,level:4,meta:s}):m.jsx(c("MWXText.react"),{type:"bodyLink3",children:r}),e[28]=s,e[29]=r,e[30]=u,e[31]=t,e[32]=g):g=e[32];e[33]!==v?(j=v?m.jsx("div",babelHelpers["extends"]({className:"x78zum5 xsgj6o6"},{children:m.jsx(c("MWXIcon.react"),{color:"highlight",icon:d("fbicon")._(h("494936"),12)})})):null,e[33]=v,e[34]=j):j=e[34];e[35]!==g||e[36]!==j||e[37]!==w||e[38]!==x||e[39]!==y?(a=m.jsxs("div",babelHelpers["extends"]({},w,{children:[x,y,g,j]})),e[35]=g,e[36]=j,e[37]=w,e[38]=x,e[39]=y,e[40]=a):a=e[40];return a}g["default"]=a}),98);
__d("MWXMAAttachmentItemDefaultXMAContent.react",["InteractionTracingMetrics","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","LSMessagingThreadTypeUtil","MAWIsXMAWithPlaintextHash","MAWLocalizationType","MAWXMAUtils","MNLSXMALayoutType","MWRollCallXMAAttachmentItem.react","MWSearchPluginUtils","MWV2TombstonedMessage.react","MWXMAAttachmentActionTriggerDefault.react","MWXMAAttachmentItemBody.react","MWXMAAttachmentItemDefaultPreview.react","MWXMAAttachmentItemHeader.react","cr:5326","getMAWLocalizedFallbackMsgSnippet","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useEffect;function a(a){var e=d("react-compiler-runtime").c(70),f=a.attachment,g=a.attachmentItem,h=a.bodyLineLimit,l=a.buttonLayout,m=a.cardWidth,n=a.ctaPopoverMenu,o=a.facepiles,p=a.getFaviconUrlXMA,q=a.getHeaderUrlXMA,r=a.getPreviewUrlXMA,s=a.headlineLineLimit,t=a.isHscroll,u=a.isPressable,v=a.isStandalone,w=a.mediaRenderQpl,x=a.onPollOptionFacepilePress,y=a.outgoing,z=a.threadType;a=a.xmaLayout;y=y===void 0?!1:y;var A=f.defaultCtaType,B=f.xmaContentType,C;e[0]!==z?(C=z!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(z),e[0]=z,e[1]=C):C=e[1];C=C;var D=f.xmaLayoutType!==void 0&&(i||(i=d("LSIntEnum"))).toNumber(f.xmaLayoutType)===c("MNLSXMALayoutType").SHARED_STACK,E;e[2]!==f?(E=d("MWSearchPluginUtils").isSearchSingleBubblePlugin(f),e[2]=f,e[3]=E):E=e[3];E=E;var F,G;e[4]!==A||e[5]!==D||e[6]!==w?(F=function(){w==null?void 0:w.addPoint("render-xma-attachment-default-content",{bool:{is_roll_call:D},string:{default_cta_type:A}}),c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMetadata(a.traceId,"default_cta_type",(a=A)!=null?a:"unknown")})},G=[A,D,w],e[4]=A,e[5]=D,e[6]=w,e[7]=F,e[8]=G):(F=e[7],G=e[8]);k(F,G);if(D){e[9]!==g||e[10]!==w?(F=j.jsx(c("MWRollCallXMAAttachmentItem.react"),{attachmentItem:g,mediaRenderQpl:w}),e[9]=g,e[10]=w,e[11]=F):F=e[11];return F}if(d("MAWXMAUtils").isXMAFBStory(B)){G=d("LSMediaUrlAttachment").previewUrl(f)!=null||d("LSMediaUrlAttachmentItem").playableUrl(g)!=null||d("LSMediaUrlAttachmentItem").previewUrl(g)!=null||d("LSMediaUrlAttachmentItem").previewUrlLarge(g)!=null||f.hasXmaPreview===!0;if(!G){e[12]===Symbol["for"]("react.memo_cache_sentinel")?(F=c("getMAWLocalizedFallbackMsgSnippet")(d("MAWLocalizationType").LOCALIZATION_TYPE.UNAVAILABLE_STORY),e[12]=F):F=e[12];e[13]!==w||e[14]!==y?(B=j.jsx(c("MWV2TombstonedMessage.react"),{isOutgoing:y,mediaRenderQpl:w,children:F}),e[13]=w,e[14]=y,e[15]=B):B=e[15];return B}}if(A==="xma_montage_share"){e[16]!==f||e[17]!==g||e[18]!==m||e[19]!==r||e[20]!==u||e[21]!==v||e[22]!==w||e[23]!==z||e[24]!==a?(G=j.jsx(c("MWXMAAttachmentItemDefaultPreview.react"),{attachment:f,attachmentItem:g,cardWidth:m,getPreviewUrlXMA:r,isPressable:u,isStandalone:v,mediaRenderQpl:w,threadType:z,xmaLayout:a}),e[16]=f,e[17]=g,e[18]=m,e[19]=r,e[20]=u,e[21]=v,e[22]=w,e[23]=z,e[24]=a,e[25]=G):G=e[25];return G}e[26]!==f||e[27]!==C?(F=C&&f.receiverFetchId==null&&d("MAWIsXMAWithPlaintextHash").isXMAWithPlaintextHash(f),e[26]=f,e[27]=C,e[28]=F):F=e[28];B=F;e[29]!==f||e[30]!==g||e[31]!==q||e[32]!==E||e[33]!==C||e[34]!==w||e[35]!==a?(G=E?j.jsx(c("MWXMAAttachmentActionTriggerDefault.react"),{attachment:f,attachmentItem:g,children:j.jsx(c("MWXMAAttachmentItemHeader.react"),{attachment:f,getHeaderUrlXMA:q,isSecureThread:C,mediaRenderQpl:w,xmaLayout:a})}):j.jsx(c("MWXMAAttachmentItemHeader.react"),{attachment:f,getHeaderUrlXMA:q,isSecureThread:C,mediaRenderQpl:w,xmaLayout:a}),e[29]=f,e[30]=g,e[31]=q,e[32]=E,e[33]=C,e[34]=w,e[35]=a,e[36]=G):G=e[36];e[37]!==f||e[38]!==g||e[39]!==m||e[40]!==r||e[41]!==u||e[42]!==v||e[43]!==w||e[44]!==B||e[45]!==z||e[46]!==a?(F=B&&b("cr:5326")!=null?j.jsx(b("cr:5326"),{attachment:f,attachmentItem:g,cardWidth:m,getPreviewUrlXMA:r,isPressable:u,isStandalone:v,mediaRenderQpl:w,xmaLayout:a}):j.jsx(c("MWXMAAttachmentItemDefaultPreview.react"),{attachment:f,attachmentItem:g,cardWidth:m,getPreviewUrlXMA:r,isPressable:u,isStandalone:v,mediaRenderQpl:w,threadType:z,xmaLayout:a}),e[37]=f,e[38]=g,e[39]=m,e[40]=r,e[41]=u,e[42]=v,e[43]=w,e[44]=B,e[45]=z,e[46]=a,e[47]=F):F=e[47];e[48]!==f||e[49]!==g||e[50]!==h||e[51]!==l||e[52]!==n||e[53]!==o||e[54]!==p||e[55]!==s||e[56]!==t||e[57]!==u||e[58]!==E||e[59]!==C||e[60]!==v||e[61]!==w||e[62]!==x||e[63]!==y||e[64]!==a?(q=j.jsx(c("MWXMAAttachmentItemBody.react"),{attachment:f,attachmentItem:g,bodyLineLimit:h,buttonLayout:l,ctaPopoverMenu:n,facepiles:o,getFaviconUrlXMA:p,headlineLineLimit:s,isHscroll:t,isPressable:u,isSearchSingleBubblePlugin:E,isSecureThread:C,isStandalone:v,mediaRenderQpl:w,onPollOptionFacepilePress:x,outgoing:y,xmaLayout:a}),e[48]=f,e[49]=g,e[50]=h,e[51]=l,e[52]=n,e[53]=o,e[54]=p,e[55]=s,e[56]=t,e[57]=u,e[58]=E,e[59]=C,e[60]=v,e[61]=w,e[62]=x,e[63]=y,e[64]=a,e[65]=q):q=e[65];e[66]!==G||e[67]!==F||e[68]!==q?(m=j.jsxs(j.Fragment,{children:[G,F,q]}),e[66]=G,e[67]=F,e[68]=q,e[69]=m):m=e[69];return m}g["default"]=a}),98);
__d("MWXMAPrivateAttachment.react",["fbt","ix","IconSource","LSMessagingThreadTypeUtil","MAWConvertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType","MWInformedTreatment.react","MWLSThread","MWXIcon.react","MWXMAAttachmentActionTrigger.react","MWXText.react","emptyFunction","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useEffect,m={sensitiveContent:{alignItems:"x6s0dn4",backdropFilter:"x1qb2erx",backgroundColor:"x1av1boa",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",justifyContent:"xl56j7k",textAlign:"x2b8uid",width:"xni59qk",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(34),e=a.attachment,f=a.attachmentItem,g=a.getPreviewUrlXMA,h=a.isPressable,i=a.mediaRenderQpl;a=g===void 0?c("emptyFunction"):g;var j=e.defaultCtaType,q=a(e,f,"MWXMAPrivateAttachment",i);a=(g=d("MWLSThread").useThread(e.threadKey,n))!=null?g:{isSecureThread:!1,threadType:null};var r=a.isSecureThread;g=a.threadType;a=e.gatingTitle;var s=e.gatingType,t=d("MWInformedTreatment.react").checkIsInformedTreatmentVisible(a,s,q,g),u;b[0]!==j||b[1]!==t||b[2]!==r||b[3]!==i||b[4]!==q?(g=function(){return i==null?void 0:i.addPoint("render-xma-private-attachment",{bool:{has_preview_url:q!=null,is_inform_treatment_visible:t,is_secure_thread:r},string:{default_cta_type:j}})},u=[j,t,r,i,q],b[0]=j,b[1]=t,b[2]=r,b[3]=i,b[4]=q,b[5]=g,b[6]=u):(g=b[5],u=b[6]);l(g,u);b[7]!==s||b[8]!==r?(g=r?d("MAWConvertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType").convertExtendedContentOverlayIconGlyphToInformTreatmentRenderingType(parseInt(s,10)):s,b[7]=s,b[8]=r,b[9]=g):g=b[9];u=g;if(a!=null&&u!=null&&t){b[10]===Symbol["for"]("react.memo_cache_sentinel")?(s={className:"x1iu8u7t xh8yej3"},b[10]=s):s=b[10];b[11]===Symbol["for"]("react.memo_cache_sentinel")?(g={height:"100%",width:"100%"},b[11]=g):g=b[11];b[12]!==e.messageId||b[13]!==a||b[14]!==u||b[15]!==i||b[16]!==q?(s=k.jsx("div",babelHelpers["extends"]({},s,{children:k.jsx(d("MWInformedTreatment.react").MWInformedTreatment,{dimension:g,gatingTitle:a,gatingType:u,isXMA:!0,mediaRenderQpl:i,messageId:e.messageId,previewUrl:q,xstyle:m.sensitiveContent})})),b[12]=e.messageId,b[13]=a,b[14]=u,b[15]=i,b[16]=q,b[17]=s):s=b[17];b[18]!==e||b[19]!==f||b[20]!==h||b[21]!==i?(g=k.jsx(p,{attachment:e,attachmentItem:f,isPressable:h,mediaRenderQpl:i,showPreview:!1}),b[18]=e,b[19]=f,b[20]=h,b[21]=i,b[22]=g):g=b[22];b[23]!==s||b[24]!==g?(a=k.jsxs(k.Fragment,{children:[s,g]}),b[23]=s,b[24]=g,b[25]=a):a=b[25];return a}if(j==="xma_montage_share"){b[26]!==e||b[27]!==i?(u=k.jsx(o,{attachment:e,mediaRenderQpl:i}),b[26]=e,b[27]=i,b[28]=u):u=b[28];return u}b[29]!==e||b[30]!==f||b[31]!==h||b[32]!==i?(s=k.jsx(p,{attachment:e,attachmentItem:f,isPressable:h,mediaRenderQpl:i,showPreview:!0}),b[29]=e,b[30]=f,b[31]=h,b[32]=i,b[33]=s):s=b[33];return s}function n(a){return{isSecureThread:d("LSMessagingThreadTypeUtil").isArmadilloSecure(a.threadType),threadType:a.threadType}}function o(a){var b=d("react-compiler-runtime").c(7),e=a.attachment,f=a.mediaRenderQpl,g;b[0]!==f?(a=function(){f==null?void 0:f.addPoint("render-xma-private-attachment-preview"),f==null?void 0:f.endSuccess({bool:{is_private_xma_preview:!0}})},g=[f],b[0]=f,b[1]=a,b[2]=g):(a=b[1],g=b[2]);l(a,g);b[3]===Symbol["for"]("react.memo_cache_sentinel")?(a=new(c("IconSource"))("FB",i("1423125"),32),b[3]=a):a=b[3];g=a;a=e.defaultCtaType;if(a==="xma_montage_share"){b[4]===Symbol["for"]("react.memo_cache_sentinel")?(e=k.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 x1qb2erx xjw5052 x78zum5 xdt5ytf x1dr9wh xl56j7k x2b8uid xni59qk"},{children:k.jsx("div",babelHelpers["extends"]({className:"x14vqqas xq8finb xod5an3 x16n37ib"},{children:k.jsx(c("MWXIcon.react"),{icon:g})}))})),b[4]=e):e=b[4];return e}b[5]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__EXLuTpYr-at__JHASH__"),b[5]=a):a=b[5];e=a;b[6]===Symbol["for"]("react.memo_cache_sentinel")?(a=k.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 xzudefj x78zum5 xdt5ytf xl56j7k x2b8uid x1iu8u7t xh8yej3"},{children:[k.jsx("div",babelHelpers["extends"]({className:"x14vqqas xq8finb xod5an3 x16n37ib"},{children:k.jsx(c("MWXIcon.react"),{icon:g})})),k.jsx(c("MWXText.react"),{color:"white",type:"bodyLink4",children:e})]})),b[6]=a):a=b[6];return a}function p(a){var b=d("react-compiler-runtime").c(17),e=a.attachment,f=a.attachmentItem,g=a.isPressable,i=a.mediaRenderQpl;a=a.showPreview;var j,m;b[0]!==i?(j=function(){i==null?void 0:i.addPoint("render-xma-private-attachment-private-body")},m=[i],b[0]=i,b[1]=j,b[2]=m):(j=b[1],m=b[2]);l(j,m);b[3]!==e||b[4]!==i||b[5]!==a?(j=a===!0&&k.jsx(o,{attachment:e,mediaRenderQpl:i}),b[3]=e,b[4]=i,b[5]=a,b[6]=j):j=b[6];b[7]!==j?(m=k.jsx(k.Fragment,{children:j}),b[7]=j,b[8]=m):m=b[8];b[9]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"x78zum5 x1q0g3np x1iyjqo2 xw3qccf"},j={className:"x78zum5 xdt5ytf x1iyjqo2 xl56j7k x14vqqas xq8finb xod5an3 x16n37ib x193iq5w xisnujt x1jzhcrs xh8yej3"},b[9]=a,b[10]=j):(a=b[9],j=b[10]);b[11]===Symbol["for"]("react.memo_cache_sentinel")?(a=k.jsx("div",babelHelpers["extends"]({},a,{children:k.jsx("div",babelHelpers["extends"]({},j,{children:k.jsx(c("MWXText.react"),{type:"meta4",children:h._(/*BTDS*/"__JHASH__N1DOsSnTIti__JHASH__")})}))})),b[11]=a):a=b[11];b[12]!==e||b[13]!==f||b[14]!==g||b[15]!==m?(j=k.jsxs(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:f,isPressable:g,children:[m,a]}),b[12]=e,b[13]=f,b[14]=g,b[15]=m,b[16]=j):j=b[16];return j}g["default"]=a}),226);
__d("MWXMAAttachmentItem.react",["I64","InteractionTracingMetrics","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MAWXMAUtils","MNLSXMALayoutType","MWCMThreadTypes.react","MWLSThreadDisplayContext","MWPBaseXMAAttachmentItem.react","MWPThreadCapabilitiesContext","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemDefaultXMAContent.react","MWXMAPrivateAttachment.react","ReQL","ReQLSuspense","WAArmadilloXMA.pb","react","react-compiler-runtime","stylex","useReStore","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));b=l;b.useCallback;var n=b.useEffect,o={root:{display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",$$css:!0},withBorder:{borderTopColor:"x1exxf4d",borderEndColor:"x1y71gwh",borderBottomColor:"x1nb4dca",borderStartColor:"xu1343h",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",$$css:!0}},p=new Set(["xma_rtc_video","xma_rtc_missed_video","xma_rtc_missed_group_video","xma_rtc_ended_video","xma_rtc_new_video_default","xma_rtc_new_video_from_fb_share","xma_rtc_new_video_from_fb_video_share","xma_rtc_new_video_from_cowatch_share","xma_rtc_cowatch_start_video"]),q=new Set(["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_missed_group_audio","xma_rtc_ended_audio","xma_rtc_new_audio_default","xma_rtc_new_audio_from_fb_share","xma_rtc_new_audio_from_fb_video_share","xma_rtc_new_audio_from_cowatch_share"]);function a(a){var b=d("react-compiler-runtime").c(57),e=a.attachment,g=a.attachmentItem,l=a.bodyLineLimit,t=a.cardWidth,u=a.ctaPopoverMenu,v=a.facepiles,w=a.getFaviconUrlXMA,x=a.getHeaderUrlXMA,y=a.getPreviewUrlXMA,z=a.headlineLineLimit,A=a.isHscroll,B=a.isStandalone,C=a.mediaRenderQpl,D=a.onPollOptionFacepilePress,E=a.outgoing;a=a.xmaLayout;l=l===void 0?3:l;t=t===void 0?300:t;x=x===void 0?d("LSMediaUrlAttachment").headerImageUrl:x;z=z===void 0?3:z;E=E===void 0?!1:E;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var F=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),G=F.rtcVideoCallEnabled;F=F.rtcVoiceCallEnabled;var H=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext()==="Inbox",I;b[0]!==H?(I=function(a,b,c,e){a=d("MWPBaseXMAAttachmentItem.react").getXMAAttachmentItemPreview({attachment:a,attachmentItem:b,description:"MWXMAAttachmentItem.getDefaultUrl - "+c,mediaRenderQpl:e,preferLargePreview:H});switch(a.type){case"Video":case"Image":return a.url;case"Unsupported":return}},b[0]=H,b[1]=I):I=b[1];I=I;var J=(h||(h=c("useReStore")))(),K;b[2]!==e.threadKey||b[3]!==J.tables.threads?(K=function(){return d("ReQL").fromTableAscending(J.tables.threads,["threadType"]).getKeyRange(e.threadKey)},b[2]=e.threadKey,b[3]=J.tables.threads,b[4]=K):K=b[4];var L;b[5]!==e.threadKey||b[6]!==J?(L=[J,e.threadKey],b[5]=e.threadKey,b[6]=J,b[7]=L):L=b[7];K=d("ReQLSuspense").useFirst(K,L,f.id+":132");L=e.defaultCtaType;var M;b[8]!==G||b[9]!==F||b[10]!==L?(M=L!=null?q.has(L)&&!F||p.has(L)&&!G:!1,b[8]=G,b[9]=F,b[10]=L,b[11]=M):M=b[11];var N=M;F=(G=e.shouldAutoplayVideo)!=null?G:!1;L=F&&e.attributionAppIcon!=null&&e.attributionAppName!=null;M=L?o.withBorder:!1;b[12]!==M?(G=(k||(k=c("stylex")))(o.root,M),b[12]=M,b[13]=G):G=b[13];F=G;L=g.attachmentCta1Id!=null;var O=e.gatingType===d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE.toString();b[14]!==K?(M=K?d("MWCMThreadTypes.react").isUnjoinedCMThread(K.threadType):!1,b[14]=K,b[15]=M):M=b[15];var P=M;if(b[16]!==e.xmaLayoutType){M=(i||(i=d("I64"))).equal((G=e.xmaLayoutType)!=null?G:(i||(i=d("I64"))).zero,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));b[16]=e.xmaLayoutType;b[17]=M}else M=b[17];var Q=M,R=e.cta1Type==="xma_join_community"||e.cta1Type==="xma_join_community_chat";G=P&&Q||N||R;M=H&&d("MAWXMAUtils").isXMAContactShare(e.xmaContentType)?"horizontal":"vertical";var S,T;b[18]!==R||b[19]!==O||b[20]!==N||b[21]!==Q||b[22]!==P||b[23]!==C?(S=function(){C==null?void 0:C.addPoint("render-xma-attachment-item",{bool:{is_join_xma:R,is_private_xma:O,is_rtc_xma_disabled:N,is_subthread_xma:Q,is_unjoined_cm_thread:P}}),c("InteractionTracingMetrics").currentInteractionLogger().forEach(s)},T=[C,N,O,P,Q,R],b[18]=R,b[19]=O,b[20]=N,b[21]=Q,b[22]=P,b[23]=C,b[24]=S,b[25]=T):(S=b[24],T=b[25]);n(S,T);S=!L&&!G;if(b[26]!==e||b[27]!==g||b[28]!==l||b[29]!==M||b[30]!==t||b[31]!==u||b[32]!==v||b[33]!==I||b[34]!==w||b[35]!==x||b[36]!==y||b[37]!==L||b[38]!==z||b[39]!==A||b[40]!==O||b[41]!==B||b[42]!==C||b[43]!==D||b[44]!==E||b[45]!==G||b[46]!==(K==null?void 0:K.threadType)||b[47]!==a){T=O?m.jsx(c("MWXMAPrivateAttachment.react"),{attachment:e,attachmentItem:g,getPreviewUrlXMA:(T=y)!=null?T:I,isPressable:L&&!G,mediaRenderQpl:C}):m.jsx(c("MWXMAAttachmentItemDefaultXMAContent.react"),{attachment:e,attachmentItem:g,bodyLineLimit:l,buttonLayout:M,cardWidth:t,ctaPopoverMenu:u,facepiles:v,getFaviconUrlXMA:(T=w)!=null?T:r,getHeaderUrlXMA:x,getPreviewUrlXMA:(T=y)!=null?T:I,headlineLineLimit:z,isHscroll:A,isPressable:L&&!G,isStandalone:B,mediaRenderQpl:C,onPollOptionFacepilePress:D,outgoing:E,threadType:K==null?void 0:K.threadType,xmaLayout:a});b[26]=e;b[27]=g;b[28]=l;b[29]=M;b[30]=t;b[31]=u;b[32]=v;b[33]=I;b[34]=w;b[35]=x;b[36]=y;b[37]=L;b[38]=z;b[39]=A;b[40]=O;b[41]=B;b[42]=C;b[43]=D;b[44]=E;b[45]=G;b[46]=K==null?void 0:K.threadType;b[47]=a;b[48]=T}else T=b[48];b[49]!==F||b[50]!==T?(l=m.jsx("div",{className:F,"data-testid":void 0,children:T}),b[49]=F,b[50]=T,b[51]=l):l=b[51];b[52]!==e||b[53]!==g||b[54]!==S||b[55]!==l?(M=m.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:g,isPressable:S,children:l}),b[52]=e,b[53]=g,b[54]=S,b[55]=l,b[56]=M):M=b[56];return M}function r(a,b){return(a=(a=d("LSMediaUrlAttachment").faviconUrl(a))!=null?a:d("LSMediaUrlAttachmentItem").faviconUrl(b))!=null?a:""}function s(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"render-xma-attachment-item","AppTiming")}g["default"]=a}),98);
__d("MWXMAAttachmentHorizontalItems.react",["fbt","AdsMessengerContext.react","FDSHScroll.react","I64","MWXMAAttachmentItem.react","MWXMessageBubbleCornerStyles.react","justknobx","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=284,n={centerElement:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",$$css:!0},firstElement:{borderBottomEndRadius:"xrt01vj",borderTopEndRadius:"x1yr5g0i",borderTopStartRadius:"x1lcm9me",$$css:!0},flexibleContainer:{"@media (max-width: 1439px)_maxWidth":"x1bu0bv6","@media (min-width: 1440px)_maxWidth":"x6vbh5p",$$css:!0},hScrollContainerPadding:{paddingBottom:"x18d9i69",paddingTop:"xexx8yu",$$css:!0},lastElement:{borderBottomStartRadius:"x10y3i5r",borderTopStartRadius:"x1lcm9me",$$css:!0},spacer:{marginTop:"xifccgj",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(36),e,f,g,k,o,p;b[0]!==a?(e=a.attachmentItems,k=a.fullWidthContainer,o=a.hasText,p=a.xstyle,f=a.cardWidth,g=babelHelpers.objectWithoutPropertiesLoose(a,["attachmentItems","fullWidthContainer","hasText","xstyle","cardWidth"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=k,b[5]=o,b[6]=p):(e=b[1],f=b[2],g=b[3],k=b[4],o=b[5],p=b[6]);a=k===void 0?!1:k;var q=o===void 0?!1:o;k=d("AdsMessengerContext.react").useAdsMessengerContext();o=k.isMessengerInAds;var r,s,t,u,v,w;if(b[7]!==e||b[8]!==f||b[9]!==a||b[10]!==q||b[11]!==o||b[12]!==g||b[13]!==p){var x=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles();k=c("justknobx")._("3407");b[21]!==a?(w=(i||(i=c("stylex"))).props(!a&&n.flexibleContainer),b[21]=a,b[22]=w):w=b[22];r=d("FDSHScroll.react").Container;b[23]===Symbol["for"]("react.memo_cache_sentinel")?(s=h._(/*BTDS*/"__JHASH__grvWiY5ySlo__JHASH__"),b[23]=s):s=b[23];b[24]!==f?(t=f!=null?{type:"fixed",width:f}:{minWidth:m,type:"responsive"},b[24]=f,b[25]=t):t=b[25];k=o&&k?n.hScrollContainerPadding:void 0;u=8;v=e.map(function(a,b){var h=b===0;b=b===e.length-1;var k=!h&&!b;return l.jsx(d("FDSHScroll.react").Child,{expanding:!0,children:l.jsx("div",babelHelpers["extends"]({className:"xjbqb8w x5yr21d xh8yej3"},{children:l.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(x,p,h&&q&&n.firstElement,b&&q&&n.lastElement,k&&q&&n.centerElement,q&&n.spacer),{children:l.jsx(c("MWXMAAttachmentItem.react"),babelHelpers["extends"]({},g,{attachmentItem:a,cardWidth:f,isStandalone:!1}))}))}))},(j||(j=d("I64"))).to_string(a.attachmentIndex))});b[7]=e;b[8]=f;b[9]=a;b[10]=q;b[11]=o;b[12]=g;b[13]=p;b[14]=r;b[15]=s;b[16]=t;b[17]=k;b[18]=u;b[19]=v;b[20]=w}else r=b[14],s=b[15],t=b[16],k=b[17],u=b[18],v=b[19],w=b[20];b[26]!==r||b[27]!==s||b[28]!==t||b[29]!==k||b[30]!==u||b[31]!==v?(a=l.jsx(r,{accessibilityLabel:s,cardWidth:t,containerXStyle:k,gap:u,children:v}),b[26]=r,b[27]=s,b[28]=t,b[29]=k,b[30]=u,b[31]=v,b[32]=a):a=b[32];b[33]!==w||b[34]!==a?(o=l.jsx("div",babelHelpers["extends"]({},w,{children:a})),b[33]=w,b[34]=a,b[35]=o):o=b[35];return o}g["default"]=a}),226);
__d("MWPResponsiveImageGrid.react",["BaseImage.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={gridImage:{bottom:"x1ey2m1c",height:"x5yr21d",end:"xds687c",start:"x17qophe",left:null,right:null,objectFit:"xl1xv1r",objectPosition:"x115dhu7",position:"x10l6tqk",top:"x13vifvy",width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(5);a=a.urls;var c;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(c={className:"x78zum5 x1a02dak x8182xy x1kgmq87"},b[0]=c):c=b[0];var e;b[1]!==a?(e=a.map(k),b[1]=a,b[2]=e):e=b[2];b[3]!==e?(a=i.jsx("ul",babelHelpers["extends"]({},c,{children:e})),b[3]=e,b[4]=a):a=b[4];return a}function k(a){return i.createElement("li",babelHelpers["extends"]({className:"x1yu6fn4"},{key:a}),i.jsx("div",babelHelpers["extends"]({className:"xqtp20y x12mruv9 xr9ek0c x1vrad04 x1n2onr6"},{children:i.jsx(c("BaseImage.react"),{src:a,xstyle:j.gridImage})})))}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWPXMAIgProfile.react",["MWPResponsiveImageGrid.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));h.useMemo;var j=function(a){a=a.previewUrl;return a};function a(a){var b=d("react-compiler-runtime").c(5);a=a.attachmentItems;var e;b[0]!==a?(e=a.map(j).filter(Boolean),b[0]=a,b[1]=e):e=b[1];a=e;e=a;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"x193iq5w xgqtt45 xdzyupr"},b[2]=a):a=b[2];b[3]!==e?(a=i.jsx("div",babelHelpers["extends"]({},a,{children:i.jsx(c("MWPResponsiveImageGrid.react"),{urls:e})})),b[3]=e,b[4]=a):a=b[4];return a}g["default"]=a}),98);
__d("MWXMAAttachmentItemIgProfile.react",["LSMediaUrlAttachment","MWPXMAIgProfile.react","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemHeader.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect;function a(a){var b=d("react-compiler-runtime").c(19),e=a.attachment,f=a.attachmentItems,g=a.getHeaderUrlXMA,i=a.mediaRenderQpl;a=a.xstyle;g=g===void 0?d("LSMediaUrlAttachment").headerImageUrl:g;var l,m;b[0]!==i?(l=function(){i==null?void 0:i.endSuccess()},m=[i],b[0]=i,b[1]=l,b[2]=m):(l=b[1],m=b[2]);k(l,m);l=f[0];b[3]!==a?(m=(h||(h=c("stylex"))).props(a),b[3]=a,b[4]=m):m=b[4];b[5]!==e||b[6]!==g||b[7]!==i?(a=j.jsx(c("MWXMAAttachmentItemHeader.react"),{attachment:e,getHeaderUrlXMA:g,isSecureThread:!1,mediaRenderQpl:i}),b[5]=e,b[6]=g,b[7]=i,b[8]=a):a=b[8];b[9]!==f?(g=j.jsx(c("MWPXMAIgProfile.react"),{attachmentItems:f}),b[9]=f,b[10]=g):g=b[10];b[11]!==m||b[12]!==a||b[13]!==g?(f=j.jsxs("div",babelHelpers["extends"]({},m,{"data-testid":void 0,children:[a,g]})),b[11]=m,b[12]=a,b[13]=g,b[14]=f):f=b[14];b[15]!==e||b[16]!==l||b[17]!==f?(m=j.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:l,isPressable:!0,children:f}),b[15]=e,b[16]=l,b[17]=f,b[18]=m):m=b[18];return m}g["default"]=a}),98);
__d("MWRollCallTimerPill.react",["fbt","I64","MWXText.react","react","react-compiler-runtime","useInterval"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;b.useMemo;var l=b.useState;function m(a){var b=1e3,c=b*60,d=c*60,e=d*24;a=a;var f=Math.floor(a/e);a-=f*e;e=Math.floor(a/d);a-=e*d;d=Math.floor(a/c);a-=d*c;c=Math.floor(a/b);a-=c*b;return{days:f,hours:e,minutes:d,seconds:c}}function a(a){var b,e=d("react-compiler-runtime").c(16);a=a.attachment;b=(j||(j=d("I64"))).to_float((b=a.countdownTimestampMs)!=null?b:(j||(j=d("I64"))).zero);b=b;var f;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=Date.now(),e[0]=f):f=e[0];f=l(f);var g=f[0],i=f[1];f=g>b;var n;e[1]===Symbol["for"]("react.memo_cache_sentinel")?(n=function(){i(Date.now())},e[1]=n):n=e[1];var o;e[2]===Symbol["for"]("react.memo_cache_sentinel")?(o=[i],e[2]=o):o=e[2];c("useInterval")(n,f?6e4:1e3,o);if(!f){n=m(b-g);o=n.minutes;f=n.seconds;n=("0"+o).slice(-2)+":"+("0"+f).slice(-2)}else if(a.cta1Type==="xma_roll_call_open_viewer"){e[3]===Symbol["for"]("react.memo_cache_sentinel")?(o=h._(/*BTDS*/"__JHASH__iEcmesFoHMR__JHASH__"),e[3]=o):o=e[3];n=o}else{f=g-b;e[4]!==f?(a=m(f),e[4]=f,e[5]=a):a=e[5];o=a;g=o.days;b=o.hours;f=o.minutes;if(g>30){e[6]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__FgpGUEY9N0G__JHASH__"),e[6]=a):a=e[6];n=a}else if(g>0){e[7]!==g?(o=h._(/*BTDS*/"__JHASH__UZjF4IaHC-f__JHASH__",[h._param("days",g)]),e[7]=g,e[8]=o):o=e[8];n=o}else if(b>0){e[9]!==b?(a=h._(/*BTDS*/"__JHASH__4LZO7x78s0P__JHASH__",[h._param("hours",b)]),e[9]=b,e[10]=a):a=e[10];n=a}else{e[11]!==f?(g=h._(/*BTDS*/"__JHASH__JXYYWJwIx9x__JHASH__",[h._param("minutes",Math.max(1,f))]),e[11]=f,e[12]=g):g=e[12];n=g}}e[13]===Symbol["for"]("react.memo_cache_sentinel")?(o={className:"x1h0vfkc x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj x9f619 x78zum5 xdt5ytf x1qx5ct2 xl56j7k xkrivgy x1gryazu x1sxyh0 xurb0ha xeq5yr9"},e[13]=o):o=e[13];e[14]!==n?(b=k.jsx("div",babelHelpers["extends"]({},o,{children:k.jsx(c("MWXText.react"),{numberOfLines:1,type:"meta4",children:n})})),e[14]=n,e[15]=b):b=e[15];return b}g["default"]=a}),226);
__d("MWXMAAttachmentSharedStackFrontCard.react",["CometContainerPressable.react","I64","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","MWChannelPromptTimerPill.react","MWChatPollFacepile.react","MWLSThread","MWPAttachmentDataContext","MWRollCallTimerPill.react","MWXMAAttachmentItemCtaButton.react","MWXSpinner.react","MWXText.react","MessengerWebUXLoggerXMAEventLoggingImpl","ReQL","ReQLSuspense","getLSMediaAttachmentAvatarViewUrlList","react","react-compiler-runtime","stylex","useCurrentDisplayMode","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useEffect,o={containerPressable:{height:"x5yr21d",$$css:!0},frontCard:{backgroundColor:"x9bbmet",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",boxShadow:"x28gwc1",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x1odjw0f",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",width:"xh8yej3",$$css:!0},frontCardDarkMode:{boxShadow:"xdxoyvu",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(50),e=a.attachment,g=a.mediaRenderQpl;a=a.xstyle;var l=c("getLSMediaAttachmentAvatarViewUrlList")(e),r=d("MWPAttachmentDataContext").useMWPGetAttachmentCTAs(e);r=r.attachmentCta1;var s=(h||(h=c("useReStore")))(),t;b[0]!==e.messageId||b[1]!==s.tables.messages?(t=function(){return d("ReQL").fromTableAscending(s.tables.messages.index("messageId")).getKeyRange(e.messageId)},b[0]=e.messageId,b[1]=s.tables.messages,b[2]=t):t=b[2];var u;b[3]!==e.messageId||b[4]!==s?(u=[s,e.messageId],b[3]=e.messageId,b[4]=s,b[5]=u):u=b[5];t=d("ReQLSuspense").useFirst(t,u,f.id+":87");u=d("MWLSThread").useThread(e.threadKey,q);var v;b[6]!==e||b[7]!==t||b[8]!==u?(v={attachment:e,clickCategory:1,message:t,threadType:u},b[6]=e,b[7]=t,b[8]=u,b[9]=v):v=b[9];t=d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsImpressionLoggerRef(v);v=(j||(j=d("LSIntEnum"))).toNumber(e.authorityLevel)===c("LSAuthorityLevel").OPTIMISTIC;var w=c("useCurrentDisplayMode")()==="dark",x;b[10]!==u?(x=u===void 0?!1:d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(u),b[10]=u,b[11]=x):x=b[11];x=x;var y=e.countdownTimestampMs,z;b[12]!==e||b[13]!==y||b[14]!==x?(z=y!=null&&!(k||(k=d("I64"))).equal(y,(k||(k=d("I64"))).zero)?x?m.jsx(c("MWChannelPromptTimerPill.react"),{countdownTimestampMs:y}):m.jsx(c("MWRollCallTimerPill.react"),{attachment:e}):null,b[12]=e,b[13]=y,b[14]=x,b[15]=z):z=b[15];y=z;var A;b[16]!==g?(z=function(){g==null?void 0:g.endSuccess()},A=[g],b[16]=g,b[17]=z,b[18]=A):(z=b[17],A=b[18]);n(z,A);b[19]!==w||b[20]!==a?(z=(i||(i=c("stylex"))).props(o.frontCard,w&&o.frontCardDarkMode,a),b[19]=w,b[20]=a,b[21]=z):z=b[21];b[22]===Symbol["for"]("react.memo_cache_sentinel")?(A={className:"x78zum5 xdt5ytf x1iyjqo2 x1xmf6yo"},b[22]=A):A=b[22];b[23]!==e.titleText?(w=m.jsx("div",babelHelpers["extends"]({},A,{children:m.jsx(c("MWXText.react"),{align:"center",numberOfLines:3,type:"headlineEmphasized4",children:e.titleText})})),b[23]=e.titleText,b[24]=w):w=b[24];b[25]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu"},b[25]=a):a=b[25];A=v?m.jsx(c("MWXSpinner.react"),{color:"disabled",size:24}):m.jsx(c("MWChatPollFacepile.react"),{contacts:l.map(p),countOverride:x&&e.avatarCount!=null?(k||(k=d("I64"))).to_float(e.avatarCount):void 0,direction:"reversed",gap:"negative",isPrompt:x,limit:x?3:void 0,size:x?"mediumLarge":"large"});b[26]!==a||b[27]!==A?(v=m.jsx("div",babelHelpers["extends"]({},a,{children:A})),b[26]=a,b[27]=A,b[28]=v):v=b[28];b[29]===Symbol["for"]("react.memo_cache_sentinel")?(l={className:"x1xmf6yo"},b[29]=l):l=b[29];b[30]!==e.cta1Title||b[31]!==e.cta1Type||b[32]!==e.messageId||b[33]!==e.threadKey||b[34]!==r?(x=r!=null&&e.cta1Title!=null&&e.cta1Type!=null?m.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentCta:r,messageId:e.messageId,threadKey:e.threadKey,title:e.cta1Title,type:e.cta1Type}):null,b[30]=e.cta1Title,b[31]=e.cta1Type,b[32]=e.messageId,b[33]=e.threadKey,b[34]=r,b[35]=x):x=b[35];b[36]!==x?(a=m.jsx("div",babelHelpers["extends"]({},l,{children:x})),b[36]=x,b[37]=a):a=b[37];b[38]!==w||b[39]!==v||b[40]!==a||b[41]!==z||b[42]!==y||b[43]!==t?(A=m.jsxs("div",babelHelpers["extends"]({},z,{ref:t,children:[y,w,v,a]})),b[38]=w,b[39]=v,b[40]=a,b[41]=z,b[42]=y,b[43]=t,b[44]=A):A=b[44];r=A;b[45]!==u?(l=u===void 0?!1:d("LSMessagingThreadTypeUtil").isJoinedDiscoverablePublicBroadcastChannel(u),b[45]=u,b[46]=l):l=b[46];x=l;b[47]!==r||b[48]!==x?(w=x?m.jsx(c("CometContainerPressable.react"),{xstyle:o.containerPressable,children:r}):r,b[47]=r,b[48]=x,b[49]=w):w=b[49];return w}function p(a){return{name:void 0,profile_picture_url:a}}function q(a){return a.threadType}g["default"]=a}),98);
__d("MWXMAAttachmentSharedStackItem.react",["Locale","MWXMAAttachmentItem.react","MWXMAAttachmentSharedStackConstants","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={stackItem:{borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",bottom:"x1ey2m1c",boxShadow:"x28gwc1",start:"x17qophe",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(13),e=a.attachment,f=a.attachmentItem,g=a.index,i=a.mediaRenderQpl,l=a.totalItems;a=a.xstyle;var m=g%2===0?-4:4,n=0,o=0;bb0:switch(g){case 0:n=0;o=-12;break bb0;case 1:n=58;o=-20;break bb0;case 2:n=34,o=-28}d("Locale").isRTL()&&(n=n*-1,m=m*-1);if((e.defaultCtaType==="xma_prompt_open_viewer_for_text"||e.defaultCtaType==="xma_roll_call_open_viewer")&&f.previewUrl===void 0&&f.titleText===void 0)return null;var p;b[0]!==a?(p=(h||(h=c("stylex")))(k.stackItem,a),b[0]=a,b[1]=p):p=b[1];a="rotate("+m+"deg) translateX("+n+"px) translateY("+o+"px)";m=l-g;b[2]!==a||b[3]!==m?(n={height:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT,transform:a,width:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,zIndex:m},b[2]=a,b[3]=m,b[4]=n):n=b[4];b[5]!==e||b[6]!==f||b[7]!==i?(o=j.jsx(c("MWXMAAttachmentItem.react"),{attachment:e,attachmentItem:f,cardWidth:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,isHscroll:!1,isStandalone:!1,mediaRenderQpl:i}),b[5]=e,b[6]=f,b[7]=i,b[8]=o):o=b[8];b[9]!==p||b[10]!==n||b[11]!==o?(l=j.jsx("div",{className:p,style:n,children:o}),b[9]=p,b[10]=n,b[11]=o,b[12]=l):l=b[12];return l}g["default"]=a}),98);
__d("MWXMAAttachmentSharedStackLayout.react",["LSMessagingThreadTypeUtil","MWLSThread","MWXMAAttachmentSharedStackConstants","MWXMAAttachmentSharedStackItem.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo,l={centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},stackContainer:{position:"x1n2onr6",$$css:!0}};function a(a){var b,e=a.attachment,f=a.attachmentItems,g=a.centered;g=g===void 0?!1:g;var i=a.children;a=a.xstyle;b=(b=d("MWLSThread").useThread(e.threadKey,function(a){return d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)}))!=null?b:!1;var m=b?f.slice(1,4):f.slice(0,3);b=k(function(){switch(m.length){case 0:return d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT+8;case 1:return d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT+20;case 2:return d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT+30;default:return d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT+40}},[m.length]);f=d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH+64;return j.jsxs("div",{className:(h||(h=c("stylex")))(l.stackContainer,a,g&&l.centered),style:{height:b,width:f},children:[m.map(function(a,b){return j.jsx(c("MWXMAAttachmentSharedStackItem.react"),{attachment:e,attachmentItem:a,index:b,mediaRenderQpl:null,totalItems:m.length},b)}),j.jsx("div",{className:"x1ey2m1c x10l6tqk x3f4u1h",style:{height:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT,width:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,zIndex:m.length+1},children:i})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWXMAAttachmentSubthreadShortcutLayout.react",["MWXMessageBubbleCornerStyles.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={background:{backgroundColor:"x1xr0vuk",$$css:!0},centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},outgoingBackground:{backgroundAttachment:"x1nr1p0w",backgroundColor:"x11jlvup",backgroundImage:"xl54vp5",color:"x14ctfv",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(6),e=a.children,f=a.outgoing;a=a.xstyle;if(b[0]!==f||b[1]!==a){var g=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles();g=(h||(h=c("stylex"))).props(g,a,k.centered,f?k.outgoingBackground:k.background);b[0]=f;b[1]=a;b[2]=g}else g=b[2];b[3]!==e||b[4]!==g?(f=j.jsx("div",babelHelpers["extends"]({},g,{children:e})),b[3]=e,b[4]=g,b[5]=f):f=b[5];return f}g["default"]=a}),98);
__d("MWXMAAttachmentVerticalLayout.react",["CometPlaceholder.react","MWLSThreadDisplayContext","MWXGlimmer.react","MWXMessageBubbleCornerStyles.react","react","react-compiler-runtime","react-strict-dom","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},glimmer:{height:"x1m3v4wt",width:"xdzyupr",$$css:!0},glimmerChatTabWidth:{width:"x1t9vceh",$$css:!0},glimmerMissingPreview:{height:"xqvfhly",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(21),e=a.attachment,f=a.centered,g=a.children,h=a.connectBottom,k=a.connectTop,l=a.hasText,m=a.outgoing,n=a.xmaLayout;a=a.xstyle;f=f===void 0?!1:f;l=l===void 0?!1:l;m=m?"right":"left";l=l;n=n!==d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&l?"top":"none";b[0]!==m||b[1]!==h||b[2]!==k||b[3]!==n?(l=d("MWXMessageBubbleCornerStyles.react").getMWXBubbleCornerStyles({align:m,connectBottom:h,connectTop:k,flatten:n}),b[0]=m,b[1]=h,b[2]=k,b[3]=n,b[4]=l):l=b[4];m=l;h=f&&j.centered;b[5]!==m||b[6]!==h?(k=[m,h],b[5]=m,b[6]=h,b[7]=k):k=b[7];n=k;l=(e==null?void 0:e.previewHeightLarge)==null&&(e==null?void 0:e.previewHeight)==null;f=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext()==="ChatTab";m=f&&j.glimmerChatTabWidth;h=l&&j.glimmerMissingPreview;b[8]!==n||b[9]!==m||b[10]!==h?(k=i.jsx(c("MWXGlimmer.react"),{index:1,xstyle:[j.glimmer,m,h].concat(n)}),b[8]=n,b[9]=m,b[10]=h,b[11]=k):k=b[11];b[12]!==n||b[13]!==a?(e=[a,n],b[12]=n,b[13]=a,b[14]=e):e=b[14];b[15]!==g||b[16]!==e?(f=i.jsx(d("react-strict-dom").html.div,{style:e,children:g}),b[15]=g,b[16]=e,b[17]=f):f=b[17];b[18]!==f||b[19]!==k?(l=i.jsx(c("CometPlaceholder.react"),{fallback:k,name:"MWXMAAttachmentVerticalLayout",children:f}),b[18]=f,b[19]=k,b[20]=l):l=b[20];return l}g["default"]=a}),98);
__d("MWXMAAttachment.react",["I64","Int64Hooks","LSIntEnum","LSXmaContentType","MNLSXMALayoutType","MWLSThreadDisplayContext","MWPAttachmentDataContext","MWXMAAttachmentHorizontalItems.react","MWXMAAttachmentItem.react","MWXMAAttachmentItemIgProfile.react","MWXMAAttachmentSharedStackFrontCard.react","MWXMAAttachmentSharedStackLayout.react","MWXMAAttachmentSubthreadShortcutLayout.react","MWXMAAttachmentVerticalLayout.react","react","react-compiler-runtime","recoverableViolation","stylex","xmaAttachmentUtils","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||d("react");function m(a){return{attachmentCta1Id:a.attachmentCta1Id,attachmentCta2Id:a.attachmentCta2Id,attachmentCta3Id:a.attachmentCta3Id,attachmentFbid:a.attachmentFbid,attachmentIndex:a.attachmentIndex,cta1Title:a.cta1Title,cta1Type:a.cta1Type,cta2Title:a.cta2Title,cta2Type:a.cta2Type,cta3Title:a.cta3Title,cta3Type:a.cta3Type,dashManifest:a.dashManifest,defaultActionEnableExtensions:!1,defaultActionUrl:void 0,defaultButtonType:void 0,defaultCtaId:a.defaultCtaId,defaultCtaTitle:a.defaultCtaTitle,defaultCtaType:a.defaultCtaType,defaultWebviewHeightRatio:void 0,faviconUrl:a.faviconUrl,faviconUrlExpirationTimestampMs:a.faviconUrlExpirationTimestampMs,faviconUrlFallback:a.faviconUrlFallback,imageUrl:a.imageUrl,messageId:a.messageId,originalPageSenderId:a.originalPageSenderId,playableUrl:a.playableUrl,playableUrlExpirationTimestampMs:a.playableUrlExpirationTimestampMs,playableUrlFallback:a.playableUrlFallback,playableUrlMimeType:a.playableUrlMimeType,previewHeight:a.previewHeight,previewUrl:a.previewUrl,previewUrlExpirationTimestampMs:a.previewUrlExpirationTimestampMs,previewUrlFallback:a.previewUrlFallback,previewUrlLarge:a.previewUrlLarge,previewUrlMimeType:a.previewUrlMimeType,previewWidth:a.previewWidth,subtitleText:a.subtitleText,threadKey:a.threadKey,titleText:a.titleText}}var n={cardWidth:{maxWidth:"xw5ewwj",width:"xh8yej3",$$css:!0},cardWidthChatTab:{maxWidth:"x1i5r0r9",width:"xh8yej3",$$css:!0},liveCardWidth:{marginBottom:"x1e56ztr",width:"xdzyupr",$$css:!0},liveCardWidthChatTab:{marginBottom:"x1e56ztr",width:"x1t9vceh",$$css:!0},outgoing_xma:{marginStart:"x1gryazu",$$css:!0},storyCardWidth:{maxWidth:"x18qnofl",width:"xh8yej3",$$css:!0}},o={card:{height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",verticalAlign:"xxymvpz",$$css:!0},opaqueCard:{backgroundColor:"x1xr0vuk",$$css:!0},rootForHScrollInChatTab:{maxWidth:"xaka53j",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(149),e=a.attachment,f=a.bodyLineLimit,g=a.cardWidth,i=a.connectBottom,p=a.connectTop,q=a.ctaPopoverMenu,r=a.facepiles,s=a.fullWidthContainer,t=a.getFaviconUrlXMA,u=a.getHeaderUrlXMA,v=a.getPreviewUrlXMA,w=a.hasText,x=a.headlineLineLimit,y=a.mediaRenderQpl,z=a.onPollOptionFacepilePress,A=a.outgoing,B=a.xmaLayout;a=a.xstyle;s=s===void 0?!1:s;w=w===void 0?!1:w;B=B===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:B;var C=e.attachmentType,D=e.cta1Type,E=e.defaultCtaType,F=e.isBorderless,G=e.xmaContentType,H=e.xmaLayoutType,I=d("MWPAttachmentDataContext").useMWPGetAttachmentItems(e),J,K;b[0]!==H?(J=function(){return H!=null?[(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").HSCROLL)),(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").XCENTER)),(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").SINGLE)),(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").SHARED_STACK)),(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT)),(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").STANDARD_DXMA))]:[!1,!1,!1]},K=[H],b[0]=H,b[1]=J,b[2]=K):(J=b[1],K=b[2]);J=d("Int64Hooks").useMemoInt64(J,K);K=J[0];var L=J[1],M=J[2],N=J[3],O=J[4];J=J[5];var P;b[3]!==e?(P=d("xmaAttachmentUtils").isLiveXMA(e),b[3]=e,b[4]=P):P=b[4];P=P;var Q=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),R=null;if(N){b[5]!==e||b[6]!==y?(N=l.jsx(c("MWXMAAttachmentSharedStackFrontCard.react"),{attachment:e,mediaRenderQpl:y}),b[5]=e,b[6]=y,b[7]=N):N=b[7];var S;b[8]!==e||b[9]!==I||b[10]!==N?(S=l.jsx(c("MWXMAAttachmentSharedStackLayout.react"),{attachment:e,attachmentItems:I,children:N}),b[8]=e,b[9]=I,b[10]=N,b[11]=S):S=b[11];R=S}else if(O){b[12]!==e||b[13]!==I[0]||b[14]!==f||b[15]!==g||b[16]!==q||b[17]!==r||b[18]!==t||b[19]!==u||b[20]!==v||b[21]!==x||b[22]!==K||b[23]!==y||b[24]!==A||b[25]!==B?(N=l.jsx(c("MWXMAAttachmentItem.react"),{attachment:e,attachmentItem:I[0],bodyLineLimit:f,cardWidth:g,ctaPopoverMenu:q,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPreviewUrlXMA:v,headlineLineLimit:x,isHscroll:K,isStandalone:!0,mediaRenderQpl:y,outgoing:A,xmaLayout:B}),b[12]=e,b[13]=I[0],b[14]=f,b[15]=g,b[16]=q,b[17]=r,b[18]=t,b[19]=u,b[20]=v,b[21]=x,b[22]=K,b[23]=y,b[24]=A,b[25]=B,b[26]=N):N=b[26];b[27]!==A||b[28]!==N?(S=l.jsx(c("MWXMAAttachmentSubthreadShortcutLayout.react"),{outgoing:A,xstyle:o.card,children:N}),b[27]=A,b[28]=N,b[29]=S):S=b[29];R=S}else if(K){b[30]===Symbol["for"]("react.memo_cache_sentinel")?(O=[o.card,o.opaqueCard],b[30]=O):O=b[30];b[31]!==e||b[32]!==I||b[33]!==f||b[34]!==g||b[35]!==q||b[36]!==r||b[37]!==s||b[38]!==t||b[39]!==u||b[40]!==v||b[41]!==w||b[42]!==x||b[43]!==K||b[44]!==y||b[45]!==B?(N=l.jsx(c("MWXMAAttachmentHorizontalItems.react"),{attachment:e,attachmentItems:I,bodyLineLimit:f,cardWidth:g,ctaPopoverMenu:q,facepiles:r,fullWidthContainer:s,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPreviewUrlXMA:v,hasText:w,headlineLineLimit:x,isHscroll:K,mediaRenderQpl:y,xmaLayout:B,xstyle:O}),b[31]=e,b[32]=I,b[33]=f,b[34]=g,b[35]=q,b[36]=r,b[37]=s,b[38]=t,b[39]=u,b[40]=v,b[41]=w,b[42]=x,b[43]=K,b[44]=y,b[45]=B,b[46]=N):N=b[46];R=N}else if(M&&I.length===6){b[47]===Symbol["for"]("react.memo_cache_sentinel")?(S=[o.card,o.opaqueCard],b[47]=S):S=b[47];b[48]!==e||b[49]!==I||b[50]!==u||b[51]!==y?(O=l.jsx(c("MWXMAAttachmentItemIgProfile.react"),{attachment:e,attachmentItems:I,getHeaderUrlXMA:u,mediaRenderQpl:y}),b[48]=e,b[49]=I,b[50]=u,b[51]=y,b[52]=O):O=b[52];b[53]!==e||b[54]!==i||b[55]!==p||b[56]!==A||b[57]!==O||b[58]!==B?(s=l.jsx(c("MWXMAAttachmentVerticalLayout.react"),{attachment:e,centered:!0,connectBottom:i,connectTop:p,outgoing:A,xmaLayout:B,xstyle:S,children:O}),b[53]=e,b[54]=i,b[55]=p,b[56]=A,b[57]=O,b[58]=B,b[59]=s):s=b[59];R=s}else if(L&&I.length===1){b[60]===Symbol["for"]("react.memo_cache_sentinel")?(N=[o.card,o.opaqueCard],b[60]=N):N=b[60];b[61]!==e||b[62]!==I[0]||b[63]!==f||b[64]!==g||b[65]!==q||b[66]!==r||b[67]!==t||b[68]!==u||b[69]!==v||b[70]!==x||b[71]!==K||b[72]!==y||b[73]!==z||b[74]!==B?(M=l.jsx(c("MWXMAAttachmentItem.react"),{attachment:e,attachmentItem:I[0],bodyLineLimit:f,cardWidth:g,ctaPopoverMenu:q,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPreviewUrlXMA:v,headlineLineLimit:x,isHscroll:K,isStandalone:!0,mediaRenderQpl:y,onPollOptionFacepilePress:z,xmaLayout:B}),b[61]=e,b[62]=I[0],b[63]=f,b[64]=g,b[65]=q,b[66]=r,b[67]=t,b[68]=u,b[69]=v,b[70]=x,b[71]=K,b[72]=y,b[73]=z,b[74]=B,b[75]=M):M=b[75];b[76]!==e||b[77]!==i||b[78]!==p||b[79]!==A||b[80]!==M||b[81]!==B?(S=l.jsx(c("MWXMAAttachmentVerticalLayout.react"),{attachment:e,centered:!0,connectBottom:i,connectTop:p,outgoing:A,xmaLayout:B,xstyle:N,children:M}),b[76]=e,b[77]=i,b[78]=p,b[79]=A,b[80]=M,b[81]=B,b[82]=S):S=b[82];R=S}else if(I.length===0){O=F!==!0&&o.opaqueCard;b[83]!==O?(s=[o.card,O],b[83]=O,b[84]=s):s=b[84];b[85]!==e?(z=m(e),b[85]=e,b[86]=z):z=b[86];b[87]!==e||b[88]!==f||b[89]!==g||b[90]!==q||b[91]!==r||b[92]!==t||b[93]!==u||b[94]!==v||b[95]!==x||b[96]!==K||b[97]!==y||b[98]!==z||b[99]!==B?(N=l.jsx(c("MWXMAAttachmentItem.react"),{attachment:e,attachmentItem:z,bodyLineLimit:f,cardWidth:g,ctaPopoverMenu:q,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPreviewUrlXMA:v,headlineLineLimit:x,isHscroll:K,isStandalone:!0,mediaRenderQpl:y,xmaLayout:B}),b[87]=e,b[88]=f,b[89]=g,b[90]=q,b[91]=r,b[92]=t,b[93]=u,b[94]=v,b[95]=x,b[96]=K,b[97]=y,b[98]=z,b[99]=B,b[100]=N):N=b[100];b[101]!==e||b[102]!==i||b[103]!==p||b[104]!==w||b[105]!==A||b[106]!==N||b[107]!==s||b[108]!==B?(M=l.jsx(c("MWXMAAttachmentVerticalLayout.react"),{attachment:e,connectBottom:i,connectTop:p,hasText:w,outgoing:A,xmaLayout:B,xstyle:s,children:N}),b[101]=e,b[102]=i,b[103]=p,b[104]=w,b[105]=A,b[106]=N,b[107]=s,b[108]=B,b[109]=M):M=b[109];R=M}else if(I.length===1){b[110]===Symbol["for"]("react.memo_cache_sentinel")?(S=[o.card,o.opaqueCard],b[110]=S):S=b[110];b[111]!==e||b[112]!==I[0]||b[113]!==f||b[114]!==g||b[115]!==q||b[116]!==r||b[117]!==t||b[118]!==u||b[119]!==v||b[120]!==x||b[121]!==K||b[122]!==y||b[123]!==A||b[124]!==B?(F=l.jsx(c("MWXMAAttachmentItem.react"),{attachment:e,attachmentItem:I[0],bodyLineLimit:f,cardWidth:g,ctaPopoverMenu:q,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPreviewUrlXMA:v,headlineLineLimit:x,isHscroll:K,isStandalone:!0,mediaRenderQpl:y,outgoing:A,xmaLayout:B}),b[111]=e,b[112]=I[0],b[113]=f,b[114]=g,b[115]=q,b[116]=r,b[117]=t,b[118]=u,b[119]=v,b[120]=x,b[121]=K,b[122]=y,b[123]=A,b[124]=B,b[125]=F):F=b[125];b[126]!==e||b[127]!==i||b[128]!==p||b[129]!==w||b[130]!==A||b[131]!==F||b[132]!==B?(O=l.jsx(c("MWXMAAttachmentVerticalLayout.react"),{attachment:e,connectBottom:i,connectTop:p,hasText:w,outgoing:A,xmaLayout:B,xstyle:S,children:F}),b[126]=e,b[127]=i,b[128]=p,b[129]=w,b[130]=A,b[131]=F,b[132]=B,b[133]=O):O=b[133];R=O}else y==null?void 0:y.endFail("unknown_combination_of_xma_items_and_layout"),c("recoverableViolation")("Unknown combination of XMA items and layout. n Attachment Items: "+String(I.length)+", XMA Layout Type: "+(H==null?"na":(j||(j=d("I64"))).to_string(H))+", Attachment Type: "+(j||(j=d("I64"))).to_string(C)+",  XMA content Type: "+(G==null?"na":(j||(j=d("I64"))).to_string(G))+", default CTA type: "+(E==null?"na":E)+", CTA 1 type: "+(D==null?"na":D),"messenger_web_sharing",void 0,{trackOnly:!0});b[134]!==G?(z=G!=null&&(j||(j=d("I64"))).equal(G,(k||(k=d("LSIntEnum"))).ofNumber(c("LSXmaContentType").FB_STORY_MENTION)),b[134]=G,b[135]=z):z=b[135];N=z;if(b[136]!==Q||b[137]!==L||b[138]!==J||b[139]!==N||b[140]!==K||b[141]!==P||b[142]!==A||b[143]!==B||b[144]!==a){s=B===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?[n.cardWidth,A&&n.outgoing_xma]:N?n.storyCardWidth:n.cardWidth;M=Q==="ChatTab";f=J?M?n.cardWidthChatTab:n.cardWidth:a;g=M?n.liveCardWidthChatTab:n.liveCardWidth;q=(h||(h=c("stylex"))).props(K&&M&&o.rootForHScrollInChatTab,!K&&!L&&!P&&s,P?g:f);b[136]=Q;b[137]=L;b[138]=J;b[139]=N;b[140]=K;b[141]=P;b[142]=A;b[143]=B;b[144]=a;b[145]=q}else q=b[145];b[146]!==R||b[147]!==q?(r=l.jsx("div",babelHelpers["extends"]({},q,{children:R})),b[146]=R,b[147]=q,b[148]=r):r=b[148];return r}g.xmaCardStyles=n;g.MWXMAAttachment=a}),98);
__d("useMWIsChatEntityThread",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=Boolean(d("MWLSThread").useThread(a,h));return a}function h(a){return d("LSThreadBitOffset").has(136,a)}g.useMWIsChatEntityThread=a}),98);
__d("MWMessageListAttachmentContainer.react",["CometErrorBoundary.react","MWChatBubbleEmphasisRing.react","MWLSThreadDisplayContext","MWMessageListAttachment.react","MWPMessageListAttachment.react","MWV2ChatFileV2.react","MWV2ChatImagesGrid.react","MWV2UnsupportedAttachment.react","MWXMAAttachment.react","MWXMessageBubble.react","mwpMessageIsReply","react","react-compiler-runtime","useMWIsChatEntityThread"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={bubble:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(62),e=a.connectBottom,f=a.connectTop,g=a.hasEmphasisRing,h=a.hasText,l=a.mediaRenderQpl,m=a.message,n=a.navigateToRouteForMediaViewer,o=a.outgoing,p=a.xstyle;a=g===void 0?!1:g;var q=h===void 0?!1:h;g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();var r=g==="ChatTab"?180:void 0,s=d("useMWIsChatEntityThread").useMWIsChatEntityThread(m.threadKey);b[0]!==e||b[1]!==f||b[2]!==l||b[3]!==m||b[4]!==o?(h=function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentAudio,{attachment:a,connectBottom:e,connectTop:f,isReply:c("mwpMessageIsReply")(m),mediaRenderQpl:l,message:m,outgoing:o})},b[0]=e,b[1]=f,b[2]=l,b[3]=m,b[4]=o,b[5]=h):h=b[5];b[6]!==f||b[7]!==a||b[8]!==m||b[9]!==o?(g=a?function(a){return i.jsx(c("MWChatBubbleEmphasisRing.react"),{connectBottom:!1,connectTop:f,message:m,outgoing:o,precedesXMA:!1,children:a})}:void 0,b[6]=f,b[7]=a,b[8]=m,b[9]=o,b[10]=g):g=b[10];b[11]!==e||b[12]!==f||b[13]!==l||b[14]!==o?(a=function(a){return i.jsx(c("MWXMessageBubble.react"),{align:o?"right":"left",color:"incoming",connectBottom:e,connectTop:f,xstyle:j.bubble,children:i.jsx(c("MWV2ChatFileV2.react"),{attachment:a,mediaRenderQpl:l})})},b[11]=e,b[12]=f,b[13]=l,b[14]=o,b[15]=a):a=b[15];var t;b[16]!==l||b[17]!==m||b[18]!==n||b[19]!==o?(t=function(a,b,c,e){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentImage,{attachment:a,connectBottom:c,connectTop:b,mediaRenderQpl:l,message:m,navigateToRouteForMediaViewer:n,outgoing:o,renderUnsupportedAttachment:e})},b[16]=l,b[17]=m,b[18]=n,b[19]=o,b[20]=t):t=b[20];var u;b[21]!==e||b[22]!==f||b[23]!==l||b[24]!==o?(u=function(a){return i.jsx(c("MWV2ChatImagesGrid.react"),{attachments:a,connectBottom:e,connectTop:f,mediaRenderQpl:l,outgoing:o})},b[21]=e,b[22]=f,b[23]=l,b[24]=o,b[25]=u):u=b[25];var v;b[26]!==l?(v=function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentSticker,{attachment:a,mediaRenderQpl:l})},b[26]=l,b[27]=v):v=b[27];var w;b[28]!==e||b[29]!==f||b[30]!==l||b[31]!==o?(w=function(a){return i.jsx(c("MWXMessageBubble.react"),{align:o?"right":"left",color:"incoming",connectBottom:e,connectTop:f,children:i.jsx(c("MWV2UnsupportedAttachment.react"),{attachment:a,mediaRenderQpl:l})})},b[28]=e,b[29]=f,b[30]=l,b[31]=o,b[32]=w):w=b[32];var x;b[33]!==f||b[34]!==l||b[35]!==m||b[36]!==n||b[37]!==o?(x=function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentVideo,{attachment:a,connectTop:f,mediaRenderQpl:l,message:m,navigateToRouteForMediaViewer:n,outgoing:o})},b[33]=f,b[34]=l,b[35]=m,b[36]=n,b[37]=o,b[38]=x):x=b[38];var y;b[39]!==r||b[40]!==e||b[41]!==f||b[42]!==q||b[43]!==l||b[44]!==o||b[45]!==s||b[46]!==p?(y=function(a){return i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentError,{isOutgoing:o,xstyle:p})},children:i.jsx(d("MWXMAAttachment.react").MWXMAAttachment,{attachment:a,bodyLineLimit:s?10:3,cardWidth:r,connectBottom:e,connectTop:f,hasText:q,mediaRenderQpl:l,outgoing:o,xstyle:p})})},b[39]=r,b[40]=e,b[41]=f,b[42]=q,b[43]=l,b[44]=o,b[45]=s,b[46]=p,b[47]=y):y=b[47];var z;b[48]!==e||b[49]!==f||b[50]!==l||b[51]!==m||b[52]!==x||b[53]!==y||b[54]!==h||b[55]!==g||b[56]!==a||b[57]!==t||b[58]!==u||b[59]!==v||b[60]!==w?(z=i.jsx(c("MWPMessageListAttachment.react"),{connectBottom:e,connectTop:f,mediaRenderQpl:l,message:m,renderAudioAttachment:h,renderEmphasisRing:g,renderEphemeralMediaAttachment:k,renderFileAttachment:a,renderImageAttachment:t,renderImageGrid:u,renderStickerAttachment:v,renderUnsupportedAttachment:w,renderVideoAttachment:x,renderXMAAttachment:y}),b[48]=e,b[49]=f,b[50]=l,b[51]=m,b[52]=x,b[53]=y,b[54]=h,b[55]=g,b[56]=a,b[57]=t,b[58]=u,b[59]=v,b[60]=w,b[61]=z):z=b[61];return z}function k(){return null}b=i.memo(a);g["default"]=b}),98);
__d("MWMessageListDisplayContext.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;var j=c.useContext;c.useMemo;var k=i.createContext("standard");function a(a){var b=d("react-compiler-runtime").c(3),c=a.children;a=a.value;a=a===void 0?"standard":a;var e;b[0]!==c||b[1]!==a?(e=i.jsx(k.Provider,{value:a,children:c}),b[0]=c,b[1]=a,b[2]=e):e=b[2];return e}function b(){var a=d("react-compiler-runtime").c(4),b=j(k),c=b==="pinnedMessages",e=b==="reportMessages";b=b==="standard";var f;a[0]!==c||a[1]!==e||a[2]!==b?(f={isPinnedMessageList:c,isReportMessageList:e,isStandardMessageList:b},a[0]=c,a[1]=e,a[2]=b,a[3]=f):f=a[3];c=f;return c}g.MWMessageListDisplayContextProvider=a;g.useMWMessageListDisplayContext=b}),98);
__d("MWMessageSendingContext.react",["emptyFunction","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;f=e.createContext;var j=e.useContext;e.useMemo;var k=e.useRef,l=f({findSendingMessage:c("emptyFunction").thatReturnsFalse,trackSendingMessage:c("emptyFunction"),untrackSendingMessage:c("emptyFunction")});function a(a){var b=d("react-compiler-runtime").c(4);a=a.children;var c;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(c=new Set(),b[0]=c):c=b[0];var e=k(c);b[1]===Symbol["for"]("react.memo_cache_sentinel")?(c={findSendingMessage:function(a){return e.current.has(a)},trackSendingMessage:function(a){e.current.add(a)},untrackSendingMessage:function(a){e.current["delete"](a)}},b[1]=c):c=b[1];c=c;c=c;b[2]!==a?(c=i.jsx(l.Provider,{value:c,children:a}),b[2]=a,b[3]=c):c=b[3];return c}function b(){return j(l)}e={Provider:a,useHook:b};g["default"]=e}),98);
__d("useLSMessagingInitiatingSourceNumber",["LSMessagingInitiatingSource","MWLSThreadDisplayContext"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();if(a==null)return;else if(a==="Inbox")return c("LSMessagingInitiatingSource").FACEBOOK_INBOX;else if(a==="FullscreenChat")return c("LSMessagingInitiatingSource").FACEBOOK_FULLSCREEN;else if(a==="ChatTab")return c("LSMessagingInitiatingSource").FACEBOOK_CHAT;else return c("LSMessagingInitiatingSource").ROOMS_SIDE_CHAT}g["default"]=a}),98);
__d("useMAWSendMessageV2",["I64","LSHotEmojiSize","LSIntEnum","MAWBridgeSendAndReceive","MAWMessageSendReporter","MAWMessageSendReporterV2","MWPActor.react","MWPReplyContext.react","QPLUserFlow","WAResultOrError","asyncToGeneratorRuntime","qpl","react","react-compiler-runtime","requireDeferred","useLSMessagingInitiatingSourceNumber"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext,l=c("requireDeferred")("MWLogSend").__setRef("useMAWSendMessageV2");function m(a){if(a==null)return;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL)))return 1;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").MEDIUM)))return 2;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").LARGE)))return 3}function a(){var a=d("react-compiler-runtime").c(4),e=d("MWPActor.react").useActor(),f=k(d("MWPReplyContext.react").MWPReplyContext),g=f.reply,h=c("useLSMessagingInitiatingSourceNumber")();a[0]!==h||a[1]!==g||a[2]!==e?(f=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,f,j,k,n,o,p,q,r,s,t,u,v,w,x,y,z,A){k=babelHelpers["extends"]({content:k,initiatingSource:h,isFirstMsg:s,isForwarded:!1,openMessageOtid:o,openMessageParticipantCount:t,optimisticMsg:{msgId:p,ts:q},participantCount:u,source:n,specialTextSize:m(r)},v!=null&&{quote:v});w!=null&&(k.ephemeralSetting=w);x!=null&&(k.mentionedJids=[].concat(x));A!=null&&(k.commands=[].concat(A));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"sending_message_to_wajob_start",{instanceKey:y});s=d("MAWBridgeSendAndReceive").sendAndReceive("backend","sendMsg",{args:k,chatJid:j,externalId:z,qplEventType:c("qpl")._(25313175,"1551"),qplInstanceKey:y});l.onReady(function(c){var h=(i||(i=d("I64"))).to_string(b),j=r!=null?3:0;return c.log(a,{_mentionedJids:x,actor:e,attachmentFbids:[],attachmentType:j,backend:1,hasReply:g!=null,messagingThreadId:h,msgTtl:w==null?void 0:w.ephemeralExpirationInSec,offlineThreadingId:z,sendType:0,source:n,threadKey:b,threadType:f})});c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"sending_message_to_wajob_end",{instanceKey:y});if(d("MAWMessageSendReporterV2").isMessageSendReporterV2Enabled())return s;else{yield d("MAWMessageSendReporter").MAWMessageSendReporter({chatJid:j,externalId:z},s,{qplEventType:c("qpl")._(25313175,"1551"),qplInstanceKey:y},a);return d("WAResultOrError").makeResult({description:"removal pending rollout of Message Send Reporter V2",messageType:"fixMe"})}});return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){return a.apply(this,arguments)}}(),a[0]=h,a[1]=g,a[2]=e,a[3]=f):f=a[3];return f}g["default"]=a}),98);
__d("MWRetryMessageSend.react",["fbt","BaseMiddot.react","FBLogger","I64","LSIntEnum","LSThreadAttributionTypeUtil","MAWMessageSendReporterV2","MAWMiActOnActThreadReady","MWSharedMsgLogUtils","MWSharedS2SBaseAnnotations","MWXLink.react","MWXSpinner.react","MWXText.react","MessengerWebUXLogger","ReQL","WAStanzaUtils","asyncToGeneratorRuntime","promiseDone","react","react-compiler-runtime","sendToSentQPLLogger","setTimeout","useAsyncReStore","useLSMessagingSource","useMAWSendMessageV2","useMWLSDefaultThreadSource"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react")),m=i.useState,n={loadingSpinner:{display:"x3nfvp2",paddingTop:"x1iorvi4",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xurb0ha",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(13),f=a.message,g=c("useAsyncReStore")(),i=c("useMWLSDefaultThreadSource")(),o=c("useMAWSendMessageV2")(),p=c("MessengerWebUXLogger").useInteractionLogger();e[0]===Symbol["for"]("react.memo_cache_sentinel")?(a={eventName:"secure_message_retry_impression"},e[0]=a):a=e[0];a=c("MessengerWebUXLogger").useImpressionLoggerRef(a);var q=c("useLSMessagingSource")(),r=m(!1),s=r[0],t=r[1];r=m(!1);var u=r[0],v=r[1],w=s||u;e[1]!==g||e[2]!==i||e[3]!==w||e[4]!==p||e[5]!==q||e[6]!==f||e[7]!==o?(r=function(){if(w)return;t(!0);v(!0);c("setTimeout")(function(){t(!1)},1e3);p==null?void 0:p({eventName:"secure_message_retry_lick"});c("promiseDone")(g,function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(f.threadKey))),g=d("WAStanzaUtils").toStanzaId(f.offlineThreadingId),h=function(){var h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){d("sendToSentQPLLogger").markSendToSentPoint(b,"retry_secure_message_start");if(e==null){d("MAWMessageSendReporterV2").isMessageSendReporterV2Enabled()||d("sendToSentQPLLogger").markSendToSentFail(b,"message_retry_fail");throw c("FBLogger")("messenger_web_messaging").mustfixThrow("Failed while fetching thread from DB in MWRetryMessageSend.react")}var h=(yield d("MAWMiActOnActThreadReady").waitForACTThreadReady(a.tables,e.threadKey,"MWRetryMessageSend"));return o(a,e.threadKey,e.threadType,h.chatJid,(h=f.text)!=null?h:"",i(e.threadKey),void 0,f.offlineThreadingId,(j||(j=d("I64"))).to_int32(f.timestampMs),f.hotEmojiSize,!1,void 0,void 0,void 0,void 0,void 0,b,g).then(function(a){v(!1);return[a]},function(a){v(!1);return[a]})});return function(a){return h.apply(this,arguments)}}();if(d("MAWMessageSendReporterV2").isMessageSendReporterV2Enabled())return d("MAWMessageSendReporterV2").MAWMessageSendReporterV2({composerEntrypoint:"retry-button",externalId:g,lsSource:q,messageTypeParamsArgs:{hotEmojiSize:f.hotEmojiSize,messageText:f.text},thread:e},h,a);else{var l=d("sendToSentQPLLogger").markSendToSentStart();if(e){var m=d("LSThreadAttributionTypeUtil").getSource(e.threadKey,q),n=d("MWSharedS2SBaseAnnotations").getMessageTypeParams({hotEmojiSize:f.hotEmojiSize,messageText:f.text,threadType:e.threadType});d("sendToSentQPLLogger").addSendToSentAnnotations(l,yield d("MWSharedMsgLogUtils").getSendToSentAnnotations(e,n,(k||(k=d("LSIntEnum"))).unwrapIntEnum(m),"retry-button"))}return h(l)}});return function(b){return a.apply(this,arguments)}}())},e[1]=g,e[2]=i,e[3]=w,e[4]=p,e[5]=q,e[6]=f,e[7]=o,e[8]=r):r=e[8];s=r;e[9]!==w||e[10]!==a||e[11]!==s?(u=l.jsx(l.Fragment,{children:w?l.jsx(c("MWXSpinner.react"),{color:"disabled",size:12,xstyle:n.loadingSpinner}):l.jsxs(l.Fragment,{children:[l.jsx(c("BaseMiddot.react"),{}),l.jsx(c("MWXText.react"),{color:"negative",type:"bodyLink4",children:l.jsx(c("MWXLink.react"),{onClick:s,ref:a,children:h._(/*BTDS*/"__JHASH__9CDNHt9PfWl__JHASH__")})})]})}),e[9]=w,e[10]=a,e[11]=s,e[12]=u):u=e[12];return u}g["default"]=a}),226);
__d("MWMessageOutgoingStatus.react",["MWMessageDeliverySentTimestamp","MWMessageDeliveryStatus","MWMessageSendingContext.react","MWPMessageListColumn.react","MWRetryMessageSend.react","MWStatusText.react","MessengerWebUXLogger","clearTimeout","gkx","react","react-strict-dom","setTimeout","useServerTime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo,l=b.useRef,m=b.useState,n=3e3,o={mountAnimation:{animationDuration:"x4afe7t",animationName:"x1nuzdyh",animationTimingFunction:"x4hg4is",display:"x1rg5ohu",$$css:!0},statusText:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",$$css:!0},statusTextRow:{backgroundColor:"x1eb86dx",display:"x78zum5",justifyContent:"x13a6bvl",$$css:!0}};function a(a){var b=a.alignLeft,e=a.isLastMessage,f=a.isSecureMessage,g=a.message,h=a.status,p=a.xstyle;a=m(!1);var q=a[0],r=a[1],s=l(null),t=l(!1);a=c("MWMessageSendingContext.react").useHook();var u=a.findSendingMessage,v=a.trackSendingMessage,w=a.untrackSendingMessage,x=c("useServerTime")();j(function(){w(g.offlineThreadingId);h.type==="Sending"?(v(g.offlineThreadingId),s.current=c("setTimeout")(function(){r(!0)},n)):s.current&&c("clearTimeout")(s.current);return function(){s.current&&c("clearTimeout")(s.current)}},[u,g.offlineThreadingId,h.type,v,w]);var y=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"message_cant_send_status",threadKey:g.threadKey});a=k(function(){h.type==="Sending"?v(g.offlineThreadingId):u(g.offlineThreadingId)&&(t.current=!0);var a=h.type==="Sending"||t.current;a=[o.statusText,a&&o.mountAnimation,p];var j=c("gkx")("7471");j=j&&f===!0&&g.subscriptErrorMessage!=null?g.subscriptErrorMessage:d("MWMessageDeliveryStatus").Titles.error.toString();switch(h.type){case"Sending":return q?i.jsx(c("MWStatusText.react"),{alignLeft:b,text:d("MWMessageDeliveryStatus").Titles.sending.toString(),xstyle:a}):i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:17});case"Sent":case"Delivered":return e?i.jsx(c("MWStatusText.react"),{alignLeft:b,text:d("MWMessageDeliverySentTimestamp").getSentTitleWithTimestamp(g.timestampMs,x).toString(),xstyle:a}):null;case"Error":return i.jsx(c("MWStatusText.react"),{alignLeft:b,error:!0,ref:y,text:j,xstyle:a});case"RetriableError":return i.jsx(c("MWStatusText.react"),{addOnEnd:f===!0?i.jsx(c("MWRetryMessageSend.react"),{message:g}):void 0,alignLeft:b,error:!0,text:j,xstyle:a});case"ValidationError":return null;default:return null}},[b,u,e,f,g,x,q,h.type,v,p,y]);return i.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,style:[o.statusTextRow],children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWMessageTranslationContext.react",["emptyFunction","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;f=e.createContext;e.useCallback;var j=e.useContext;e.useMemo;var k=e.useState,l=f({shouldShowTranslateOption:function(){return!1},toggleMessageTranslation:c("emptyFunction")});function a(a){var b=d("react-compiler-runtime").c(11);a=a.children;var c;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(c=new Set(),b[0]=c):c=b[0];c=k(c);var e=c[0],f=c[1];b[1]!==e?(c=function(a){var b=new Set(e);e.has(a)?b["delete"](a):b.add(a);f(b)},b[1]=e,b[2]=c):c=b[2];c=c;var g;b[3]!==e?(g=function(a){return!e.has(a)},b[3]=e,b[4]=g):g=b[4];g=g;var h;b[5]!==g||b[6]!==c?(h={shouldShowTranslateOption:g,toggleMessageTranslation:c},b[5]=g,b[6]=c,b[7]=h):h=b[7];g=h;c=g;b[8]!==a||b[9]!==c?(h=i.jsx(l.Provider,{value:c,children:a}),b[8]=a,b[9]=c,b[10]=h):h=b[10];return h}function b(){return j(l)}e={Provider:a,useHook:b};g["default"]=e}),98);
__d("MWMessageUnsentTimestampText.react",["fbt","I64","getMessengerPreciseTimestamp","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){var b=d("react-compiler-runtime").c(11),e=a.timestampMs;a=a.unsentTimestampMs;var f;b[0]!==e?(f=h._(/*BTDS*/"__JHASH__L93MxMH-RPL__JHASH__",[h._param("time",c("getMessengerPreciseTimestamp")((j||(j=d("I64"))).to_float(e)))]),b[0]=e,b[1]=f):f=b[1];b[2]!==f?(e=k.jsx("div",{children:f}),b[2]=f,b[3]=e):e=b[3];b[4]!==a?(f=h._(/*BTDS*/"__JHASH__6L85PWgp0uQ__JHASH__",[h._param("time",c("getMessengerPreciseTimestamp")((j||(j=d("I64"))).to_float(a)))]),b[4]=a,b[5]=f):f=b[5];b[6]!==f?(a=k.jsx("div",{children:f}),b[6]=f,b[7]=a):a=b[7];b[8]!==e||b[9]!==a?(f=k.jsxs("div",{children:[e,a]}),b[8]=e,b[9]=a,b[10]=f):f=b[10];return f}g["default"]=a}),226);
__d("MWMultiReactConstants",[],(function(a,b,c,d,e,f){"use strict";a=3;b=20;c=3;d=9;e=180;var g=2;f.DEFAULT_MAX_REACTION_PREVIEWED_ALLOWED=a;f.CM_MAX_REACTION_EMOJIS_ALLOWED=b;f.PUBLIC_CHANNELS_MAX_REACTIONS_EMOJIS_PREVIEWED_WHEN_COLLAPSED=c;f.SPACING_PER_COUNT_CHARACTER=d;f.REACTIONS_ROW_EXPAND_COLLAPSE_ANIMATION_TOTAL_DURATION=e;f.REACTION_BUTTON_BUBBLE_EASE_FACTOR=g}),66);
__d("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react",["LSCustomUpdateMuteManagementStoredProcedure","LSFactory","LSIntEnum","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));j.useCallback;function a(a){var b=d("react-compiler-runtime").c(19),e=a.message,g=a.shouldMute,j=(h||(h=c("useReStore")))();b[0]!==j.tables.admin_message_ctas||b[1]!==e.messageId||b[2]!==e.threadKey?(a=function(){return d("ReQL").fromTableAscending(j.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId)},b[0]=j.tables.admin_message_ctas,b[1]=e.messageId,b[2]=e.threadKey,b[3]=a):a=b[3];var l;b[4]!==j||b[5]!==e.messageId||b[6]!==e.threadKey?(l=[j,e.messageId,e.threadKey],b[4]=j,b[5]=e.messageId,b[6]=e.threadKey,b[7]=l):l=b[7];var m=d("ReQLSuspense").useFirst(a,l,f.id+":32");b[8]!==j||b[9]!==e.threadKey||b[10]!==g||b[11]!==m?(a=function(){if((m==null?void 0:m.targetId)==null)return;var a=m.targetId,b=g?(i||(i=d("LSIntEnum"))).ofNumber(0):(i||(i=d("LSIntEnum"))).ofNumber(1);c("promiseDone")(j.runInTransaction(function(d){return c("LSCustomUpdateMuteManagementStoredProcedure")(c("LSFactory")(d),{gameId:a,mutedUserId:e.threadKey,userActionType:b})},"readwrite",void 0,void 0,f.id+":55"))},b[8]=j,b[9]=e.threadKey,b[10]=g,b[11]=m,b[12]=a):a=b[12];l=a;b[13]!==e.adminMsgCtaTitle||b[14]!==l?(a=e.adminMsgCtaTitle!=null?k.jsx(c("MWXLink.react"),{onClick:l,target:"_blank",children:e.adminMsgCtaTitle}):void 0,b[13]=e.adminMsgCtaTitle,b[14]=l,b[15]=a):a=b[15];l=a;b[16]!==l||b[17]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{cta:l,message:e}),b[16]=l,b[17]=e,b[18]=a):a=b[18];return a}g["default"]=a}),98);
__d("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react",["I64","LSFactory","LSIntEnum","LSUpdateBotSubscriptionStoredProcedure","MWAdminTextLayout.react","MWXLink.react","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));k.useCallback;function a(a){var b=d("react-compiler-runtime").c(12),e=a.message,g=a.shouldSubscribe,k=(h||(h=c("useReStore")))();b[0]!==e.threadKey?(a=(i||(i=d("I64"))).to_string(e.threadKey),b[0]=e.threadKey,b[1]=a):a=b[1];var m=a;b[2]!==g||b[3]!==k||b[4]!==m?(a=function(){var a=g?(j||(j=d("LSIntEnum"))).ofNumber(0):(j||(j=d("LSIntEnum"))).ofNumber(1);c("promiseDone")(k.runInTransaction(function(b){return c("LSUpdateBotSubscriptionStoredProcedure")(c("LSFactory")(b),{threadKey:(i||(i=d("I64"))).of_string(m),userActionType:a})},"readwrite",void 0,void 0,f.id+":41"))},b[2]=g,b[3]=k,b[4]=m,b[5]=a):a=b[5];var n=a;b[6]!==e.adminMsgCtaTitle||b[7]!==n?(a=e.adminMsgCtaTitle!=null?l.jsx(c("MWXLink.react"),{onClick:function(){return n()},target:"_blank",children:e.adminMsgCtaTitle}):void 0,b[6]=e.adminMsgCtaTitle,b[7]=n,b[8]=a):a=b[8];a=a;var o;b[9]!==a||b[10]!==e?(o=l.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e}),b[9]=a,b[10]=e,b[11]=o):o=b[11];return o}g["default"]=a}),98);
__d("MWNotificationMessageManageNotificationsLazyDialogTrigger.react",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");var i=c("JSResourceForInteraction")("MWNotificationMessagesManageNotificationsDialog.react").__setRef("MWNotificationMessageManageNotificationsLazyDialogTrigger.react");function a(a){var b=a.isOptOut,d=a.renderer,e=a.targetId;a=a.threadKey;var f={isOptOut:b,targetId:e,threadKey:a};b=c("useMWXLazyDialog")(i);var g=b[0];e=function(){return g(f,c("emptyFunction"))};return d(e)}g["default"]=a}),98);
__d("MWNotificationMessageManageNotificationsAdminMsgCta.react",["CometTextWithEntities.react","MWNotificationMessageManageNotificationsLazyDialogTrigger.react","MWXPressable.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(7),e=a.isOptOut,f=a.targetId,g=a.threadKey,h=a.title;b[0]!==h?(a=function(a){return i.jsx(c("MWXPressable.react"),{onPress:function(){return a()},children:i.jsx(c("CometTextWithEntities.react"),{text:h})})},b[0]=h,b[1]=a):a=b[1];a=a;var j;b[2]!==e||b[3]!==a||b[4]!==f||b[5]!==g?(j=i.jsx(c("MWNotificationMessageManageNotificationsLazyDialogTrigger.react"),{isOptOut:e,renderer:a,targetId:f,threadKey:g}),b[2]=e,b[3]=a,b[4]=f,b[5]=g,b[6]=j):j=b[6];return j}g["default"]=a}),98);
__d("MWPMessageAuthor.react",["I64","Int64Hooks","LSAuthorityLevel","LSContactBlockedByViewerStatus","LSContactGender","LSContactIdType","LSContactType","LSContactViewerRelationship","LSContactWorkForeignEntityType","LSFactory","LSIntEnum","LSVerifyContactRowExistsStoredProcedure","MWPContactContext.react","ReQL","ReQLSuspense","mwCMIsCMSubthread","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));k.useMemo;function m(a){var b=d("react-compiler-runtime").c(16),e=a.children,g=a.contactId,j=(h||(h=c("useReStore")))();b[0]!==g||b[1]!==j.tables.contacts?(a=function(){return d("ReQL").fromTableAscending(j.tables.contacts).getKeyRange(g)},b[0]=g,b[1]=j.tables.contacts,b[2]=a):a=b[2];var k;b[3]!==g||b[4]!==j?(k=[j,g],b[3]=g,b[4]=j,b[5]=k):k=b[5];a=d("ReQLSuspense").useFirst(a,k,f.id+":51");b[6]!==a?(k={contact:a,nickname:void 0},b[6]=a,b[7]=k):k=b[7];a=k;k=a;var m;b[8]!==g||b[9]!==j?(a=function(){c("promiseDone")(j.runInTransaction(function(a){return c("LSVerifyContactRowExistsStoredProcedure")(c("LSFactory")(a),{authorityLevel:(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL),blockedByViewerStatus:i.ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED),contactIdType:i.ofNumber(c("LSContactIdType").FBID),contactType:i.ofNumber(c("LSContactType").USER),contactViewerRelationship:i.ofNumber(c("LSContactViewerRelationship").UNKNOWN),gender:i.ofNumber(c("LSContactGender").UNKNOWN),id:g,isBlocked:!1,isMemorialized:!1,isSelf:!1,workForeignEntityType:i.ofNumber(c("LSContactWorkForeignEntityType").UNKNOWN)})},"readwrite",void 0,void 0,f.id+":65"))},m=[j,g],b[8]=g,b[9]=j,b[10]=a,b[11]=m):(a=b[10],m=b[11]);d("Int64Hooks").useEffectInt64(a,m);b[12]!==e||b[13]!==k.contact||b[14]!==k.nickname?(a=l.jsx(d("MWPContactContext.react").MWPContactContextProvider,{contact:k.contact,nickname:k.nickname,children:e}),b[12]=e,b[13]=k.contact,b[14]=k.nickname,b[15]=a):a=b[15];return a}function n(a){var b=d("react-compiler-runtime").c(7),c=a.children,e=a.contact;a=a.nickname;var f;b[0]!==e||b[1]!==a?(f={contact:e,nickname:a},b[0]=e,b[1]=a,b[2]=f):f=b[2];e=f;a=e;b[3]!==c||b[4]!==a.contact||b[5]!==a.nickname?(f=l.jsx(d("MWPContactContext.react").MWPContactContextProvider,{contact:a.contact,nickname:a.nickname,children:c}),b[3]=c,b[4]=a.contact,b[5]=a.nickname,b[6]=f):f=b[6];return f}function a(a){var b=d("react-compiler-runtime").c(25),e=a.children,g=a.contactId,k=a.threadKey,o=(h||(h=c("useReStore")))();b[0]!==g||b[1]!==o.tables.contacts?(a=function(){return d("ReQL").fromTableAscending(o.tables.contacts).getKeyRange(g)},b[0]=g,b[1]=o.tables.contacts,b[2]=a):a=b[2];var p;b[3]!==g||b[4]!==o?(p=[g,o],b[3]=g,b[4]=o,b[5]=p):p=b[5];a=d("ReQLSuspense").useFirst(a,p,f.id+":126");p=(p=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(o.tables.participants,["nickname"]).getKeyRange(k,g)},[g,o,k],f.id+":130"))==null?void 0:p.nickname;var q;b[6]!==g||b[7]!==o.tables.contextual_profile_v1||b[8]!==o.tables.threads||b[9]!==k?(q=function(){return d("ReQL").fromTableAscending(o.tables.threads,["parentThreadKey","secondaryParentThreadKey","threadType"]).getKeyRange(k).map(function(a){var b=a.parentThreadKey,e=a.secondaryParentThreadKey;a=a.threadType;a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(o.tables.contextual_profile_v1,["profileName"]).getKeyRange(g,c("mwCMIsCMSubthread")(a)&&e!=null?e:b),f.id+":155");return a==null?void 0:a.profileName})},b[6]=g,b[7]=o.tables.contextual_profile_v1,b[8]=o.tables.threads,b[9]=k,b[10]=q):q=b[10];var r;b[11]!==g||b[12]!==o||b[13]!==k?(r=[o,k,g],b[11]=g,b[12]=o,b[13]=k,b[14]=r):r=b[14];q=d("ReQLSuspense").useFirst(q,r,f.id+":146");r=q!=null?q:p;if(a!=null)if((j||(j=d("I64"))).ge(a.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE_PENDING_REPLACEMENT))){b[15]!==e||b[16]!==a||b[17]!==r?(q=l.jsx(n,{contact:a,nickname:r,children:e}),b[15]=e,b[16]=a,b[17]=r,b[18]=q):q=b[18];return q}else{b[19]!==e||b[20]!==g?(p=l.jsx(m,{contactId:g,children:e}),b[19]=e,b[20]=g,b[21]=p):p=b[21];return p}else{b[22]!==e||b[23]!==g?(a=l.jsx(m,{contactId:g,children:e}),b[22]=e,b[23]=g,b[24]=a):a=b[24];return a}}a=l.memo(a,function(a,b){if(a!=null&&b!=null&&(j||(j=d("I64"))).equal(a.contactId,b.contactId)&&(j||(j=d("I64"))).equal(a.threadKey,b.threadKey))return a.children===b.children;else return!1});function b(){var a=d("react-compiler-runtime").c(2),b=d("MWPContactContext.react").useMWPContactStableContext();b=b.authorName;var c;a[0]!==b?(c=[b],a[0]=b,a[1]=c):c=a[1];return c}function e(){var a=d("react-compiler-runtime").c(3),b=d("MWPContactContext.react").useMWPContactFullContext();b=b.contact;var c=b!=null?b.name:void 0,e;a[0]!==b||a[1]!==c?(e=[c,b],a[0]=b,a[1]=c,a[2]=e):e=a[2];return e}g.MissingContactProvider=m;g.Provider=n;g.MWPMessageAuthor=a;g.useAuthorName=b;g.useAuthorFullName=e}),98);
__d("MWPAccessibleEyebrowsText.react",["fbt","MWPMessageAuthor.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={visuallyHidden:{clip:"xzpqnlu",clipPath:"x1hyvwdk",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"x1i1rx1s",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(7),c=a.message;a=a.outgoing;var e=d("MWPMessageAuthor.react").useAuthorName();e=e[0];var f;b[0]!==a?(f=a?h._(/*BTDS*/"__JHASH__950lIWTelJN__JHASH__"):h._(/*BTDS*/"__JHASH__uufWL2Zp_42__JHASH__"),b[0]=a,b[1]=f):f=b[1];f=f;var g;b[2]!==e||b[3]!==f||b[4]!==c.isAdminMessage||b[5]!==a?(g=!c.isAdminMessage&&j.jsx(d("react-strict-dom").html.span,{style:k.visuallyHidden,children:e!=null&&!a?e:f}),b[2]=e,b[3]=f,b[4]=c.isAdminMessage,b[5]=a,b[6]=g):g=b[6];return g}g["default"]=a}),226);
__d("MWPMessageParsingUtils",["I64","LSBitFlag","LSIntEnum","LSMessageReplySourceTypeV2","MWPMessageHasXMA","MWUnvaultedText","isStringNullOrEmpty","justknobx"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=280,k=3e5;function l(a){return!c("isStringNullOrEmpty")(a.text)}function m(a){a=a.replySourceTypeV2;return a==null?!1:!(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD))}function n(a){a=a.replySourceTypeV2;return a==null?!1:(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD))}function o(a){a=a.text;c("justknobx")._("3406")&&(a=d("MWUnvaultedText").getMWUnvaultedText(!1,a));return((a=a)!=null?a:"").length>j}var p=[128,256,65536,131072,262144,524288,4294967296,1048576,2097152,4194304,8388608,16777216,33554432,67108864,1073741824,4096,512].filter(Boolean);function q(a){return a.isAdminMessage||p.some(function(b){return d("LSBitFlag").has((i||(i=d("LSIntEnum"))).ofNumber(b),a.displayedContentTypes)})||o(a)}function r(a,b){return c("justknobx")._("3622")&&c("MWPMessageHasXMA")(a)&&c("MWPMessageHasXMA")(b)}function s(a,b){if(b===void 0)return!0;var c=Math.abs((h||(h=d("I64"))).to_float(a.timestampMs)-h.to_float(b.timestampMs))>k,e=n(a),f=h.equal(a.senderId,b.senderId);if(b.isUnsent||a.isUnsent||b.isExpired||r(b,a)||a.isExpired||m(a)||!f||c||e||q(a))return!0;else return q(b)}function t(a,b){return b==null||s(a,b)}function u(a,b){return b==null||s(b,a)}function a(a,b,c){return c==="below"?l(a)?!0:!t(a,b):!1}function b(a,b,c){if(c==="below")return!u(a,b);else if(u(a,b))return!1;else return l(a)}e={shouldConnectBottom:b,shouldConnectTop:a};g.hasText=l;g.isReplyToSomething=m;g.isForwarded=n;g.isLongText=o;g.shouldBeStandalone=q;g.areXMAsAdjacent=r;g.isInDifferentGroup=s;g.isStartOfGroup=t;g.isEndOfGroup=u;g.MessageWithAttachments=e}),98);
__d("MWReactionUtils",["LSMessagingThreadTypeUtil","MWCMThreadTypes.react","ReQL","ReQLSuspense","useIsMultiReactionEnabled","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e,g=(h||(h=c("useReStore")))(),i=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(b);e=(e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.tables.threads,["threadSubtype","threadType"]).getKeyRange(b)},[g,b],f.id+":30"))!=null?e:{};var j=e.threadSubtype;e=e.threadType;if(!(e!=null&&d("LSMessagingThreadTypeUtil").isDiscoverableChannel(e))&&!(e!=null&&d("MWCMThreadTypes.react").isBroadcastThread(e))&&!(j!=null&&d("MWCMThreadTypes.react").isIGBroadcastChannelThread(j)))return;if(i)return;a.sort(function(a,b){return a.count===b.count&&a.reactionLiteral!=null&&b.reactionLiteral!=null?a.reactionLiteral.localeCompare(b.reactionLiteral):b.count-a.count})}g.useSortReactionsForBroadcastChat=a}),98);
__d("useIsReactionDialogEnabled",["LSMessagingThreadTypeUtil","LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a=d("MWLSThread").useThread(a,h))!=null?a:!1}function h(a){return d("LSThreadBitOffset").has(184,a)||d("LSMessagingThreadTypeUtil").isArmadilloSecure(a.threadType)}g["default"]=a}),98);
__d("MWPMessageReactions.react",["fbt","EmojiRenderer","I64","JSResourceForInteraction","LSFactory","LSIssueReactionsV2DetailsUsersListFetchStoredProcedure","LSMessagingThreadTypeUtil","LSPlatformWaitForTaskCompletion","MWChatReactionsUtils","MWLSThread","MWMultiReactConstants","MWReactionUtils","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","ReQL","ReQLSuspense","emptyFunction","gkx","intlList","promiseDone","react","react-compiler-runtime","useIsMultiReactionEnabled","useIsReactionDialogEnabled","useIsReactionsV2Enabled","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k,n=m.useCallback,o=m.useContext,p=m.useDeferredValue,q=m.useMemo,r=m.useRef,s=m.useState,t=c("gkx")("24166")?d("MWChatReactionsUtils").heartType2:d("MWChatReactionsUtils").heartType1;function a(a){var b=d("react-compiler-runtime").c(4),e=(i||(i=c("useReStore")))(),g,h;b[0]!==e.tables.reactions||b[1]!==a?(g=function(){if(a==null)return d("ReQL").empty();var b=a.messageId,c=a.threadKey;return d("ReQL").fromTableAscending(e.tables.reactions).getKeyRange(c,b).map(u)},h=[a,e.tables.reactions],b[0]=e.tables.reactions,b[1]=a,b[2]=g,b[3]=h):(g=b[2],h=b[3]);b=p(d("ReQLSuspense").useArray(g,h,f.id+":64"));return b}function u(a){return d("MWChatReactionsUtils").isHeart(a.reaction)?{actorId:a.actorId,authorityLevel:a.authorityLevel,messageId:a.messageId,reaction:t,threadKey:a.threadKey,timestampMs:a.timestampMs}:a}function b(a){var b=d("react-compiler-runtime").c(8),e=(i||(i=c("useReStore")))(),g=a.messageId,h=a.threadKey;b[0]!==e.tables.reactions_v2||b[1]!==g||b[2]!==h?(a=function(){return d("ReQL").fromTableAscending(e.tables.reactions_v2).getKeyRange(h,g)},b[0]=e.tables.reactions_v2,b[1]=g,b[2]=h,b[3]=a):a=b[3];var j;b[4]!==e||b[5]!==g||b[6]!==h?(j=[e,h,g],b[4]=e,b[5]=g,b[6]=h,b[7]=j):j=b[7];b=d("ReQLSuspense").useArray(a,j,f.id+":91");return b}function e(a){var b=d("react-compiler-runtime").c(8),e=(i||(i=c("useReStore")))(),g=a.messageId,h=a.threadKey;b[0]!==e.tables.reactions_v2||b[1]!==g||b[2]!==h?(a=function(){return d("ReQL").fromTableAscending(e.tables.reactions_v2).getKeyRange(h,g).filter(v)},b[0]=e.tables.reactions_v2,b[1]=g,b[2]=h,b[3]=a):a=b[3];var j;b[4]!==e||b[5]!==g||b[6]!==h?(j=[e,h,g],b[4]=e,b[5]=g,b[6]=h,b[7]=j):j=b[7];b=d("ReQLSuspense").useArray(a,j,f.id+":105");return b}function v(a){return(j||(j=d("I64"))).gt(a.count,j.zero)}function w(a,b){a=a!=null?c("intlList")(a.map(function(a){return a.join("")}),c("intlList").CONJUNCTIONS.AND,c("intlList").DELIMITERS.COMMA):"";return h._(/*BTDS*/"__JHASH__tSgM5wXgT0G__JHASH__",[h._plural(b,"number"),h._param("the comma separated list of emojis used to react on this message",a)])}function x(a){return a.map(function(a,b){b=d("EmojiRenderer").parse(a).map(function(a){return a.emoji});return b.length!==1?[""]:b[0]}).filter(function(a){return a.join("")!==""})}function y(a){var b=a.children,e=a.dialogResource,g=a.message,h=a.onPress;a.outgoing;var k=a.reactions,m=a.reactionsV2;a=a.shouldUseVariant16ForReactionsV2;var p=a===void 0?!1:a,t=g.messageId,u=g.threadKey;a=o(d("MWV2MessageRowIsRowFocusedContext.react").context);var v=a.setFocused,y=a.setIsDialogOpened,z=(i||(i=c("useReStore")))();a=s(!1);var A=a[0],B=a[1];a=function(){B(function(a){return!a})};var C=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(u),D=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(u),E=d("MWLSThread").useThread(u,function(a){return d("LSMessagingThreadTypeUtil").isDiscoverableChannel(a.threadType)}),F=D?d("MWMultiReactConstants").CM_MAX_REACTION_EMOJIS_ALLOWED:3,G=c("useIsReactionDialogEnabled")(u),H=r(new Map()),I=n(function(){C&&c("promiseDone")(c("LSPlatformWaitForTaskCompletion")(z,function(a){return c("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure")(c("LSFactory")(a),{messageId:g.messageId,threadId:u})},"issueReactionsV2DetailsUsersListFetch").then(function(){return H.current.forEach(function(a){return a()})}))},[z,C,g.messageId,u]),J=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(z.tables.reactions_v2).getKeyRange(u,t).filter(function(a){return(j||(j=d("I64"))).gt(a.count,j.zero)}).map(function(a){var b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(z.tables.reaction_v2_types).getKeyRange(a.reactionFbid),f.id+":224");b=p?b==null?void 0:b.reactionLiteralVariant16:b==null?void 0:b.reactionLiteral;return babelHelpers["extends"]({},a,{count:(j||(j=d("I64"))).to_int32(a.count),reactionLiteral:b})})},[z,u,t,p],f.id+":218");d("MWReactionUtils").useSortReactionsForBroadcastChat(J,u);var K=Array.from(new Set(J.map(function(a){return(a=a.reactionLiteral)!=null?a:""})));E=D&&E===!0?K:K.slice(0,F);K=m!=null&&C?x(E):x(Array.from(new Set(k.map(function(a){a=a.reaction;return a}))).slice(0,F));E=m!=null&&C?(j||(j=d("I64"))).to_int32(J.reduce(function(a,b){return(j||(j=d("I64"))).add(a,j.of_int32(b.count))},(j||(j=d("I64"))).zero)):k.length;F=w(K,E);m=r(null);J=q(function(){return e!=null?e:C?c("JSResourceForInteraction")("MWBroadcastChatReactionsDialog.react").__setRef("MWPMessageReactions.react"):c("JSResourceForInteraction")("MWV2ChatReactionsDialog.react").__setRef("MWPMessageReactions.react")},[e,C]);var L=q(function(){return{message:g,onLoadComplete:function(a){H.current.set(a,a);return function(){H.current["delete"](a)}},thread:{threadKey:u}}},[g,u]),M=n(function(){y(function(){return!1}),v(function(){return!0})},[v,y]);J=c("useMWXLazyDialog")(J);var N=J[0],O=n(function(a){y(function(){return!0}),N(babelHelpers["extends"]({},L,{initialTab:a}),M),h==null?void 0:h(),I()},[L,M,h,y,N,I]);J={eventName:"open_message_reactions_dialog",threadKey:u};return D||!G?b(K,E,k,g,u,O,A,a):l.jsx(c("MWXPressable.react"),{"aria-label":F,loggingEvent:J,onPress:function(){return O()},overlayDisabled:!0,ref:m,children:b(K,E,k,g,u,O,!1,c("emptyFunction"))})}y.displayName=y.name+" [from "+f.id+"]";g.useReactions=a;g.useReactionsV2=b;g.useNonZeroCountReactionsV2=e;g.MWPMessageReactions=y}),226);
__d("isMWEditedMessage",["I64"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.editCount!=null&&(h||(h=d("I64"))).gt(a.editCount,(h||(h=d("I64"))).zero);return b&&!a.isUnsent}g["default"]=a}),98);
__d("MWPBaseMessageContent.react",["I64","InteractionTracingMetrics","LSReplyMessageAttachmentType","MAWIsFBXMA","MAWIsReceiverFetchXmaInLoadingState","MWMediaRenderQplUtils","MWPAttachmentDataContext","MWPMessageHasXMA","MWPMessageListColumn.react","MWPMessageParsingUtils","MWPMessageReactions.react","MWPThreadCapabilitiesContext","gkx","isMWBumpMessage","isMWEditedMessage","mwpMessageHasAttachment","mwpMessageIsReply","react","useXMAPreviewsDisabledSetting","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;var k=b.useContext,l=b.useEffect;function a(a){var b=a.attachmentRenderPosition,e=a.isEmojiOnly,f=a.isFirstMessageInGroup,g=a.isLastMessageInGroup,h=a.isMessagePinned,m=a.isNextMessagePinned,n=a.isSearchPluginAttachment,o=a.isSecureMessage,p=a.mediaRenderQpl,q=a.message,r=a.nextMessage,s=a.outgoing,t=a.prevMessage,u=a.renderAttachment,v=a.renderEmoji,w=a.renderMessageBubble,x=a.shouldRenderMessageContent;a=a.xmaLayout;var y=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();y=y.disableLinks;var z=c("mwpMessageIsReply")(q),A=c("isMWEditedMessage")(q),B=r!=null&&c("isMWEditedMessage")(r),C=d("MWPMessageParsingUtils").hasText(q),D=k(d("MWPAttachmentDataContext").MWPAttachmentDataContext);D=D.attachments;D=D!=null&&D.length>0?D[0]:null;var E=c("MWPMessageHasXMA")(q)&&D!=null,F=d("MWPMessageReactions.react").useReactions(q);F=F.length>0;var G=d("MWPMessageReactions.react").useReactions(t);G=G.length>0;var H=c("gkx")("24165")&&y&&E&&q.textHasLinks;l(function(){c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMetadata(a.traceId,"message_row_has_attachment",1),c("InteractionTracingMetrics").addMetadata(a.traceId,"content_type",q.replyAttachmentType!=null?d("MWMediaRenderQplUtils").deriveMessageContentTypeStringFromAttachmentTypeLessAccurate(q.replyAttachmentType):d("MWMediaRenderQplUtils").getMessageContentTypeString(q)),c("InteractionTracingMetrics").addMetadata(a.traceId,"content_type_num",(i||(i=d("I64"))).to_string(q.displayedContentTypes))}),p==null?void 0:p.addAnnotations({bool:{message_type_supports_attachment:c("mwpMessageHasAttachment")(q)}}),c("mwpMessageHasAttachment")(q)&&!H&&(p==null?void 0:p.addPoint("base-message-render-attachment"),c("InteractionTracingMetrics").currentInteractionLogger().forEach(function(a){c("InteractionTracingMetrics").addMarkerPoint(a.traceId,"base-message-render-attachment","AppTiming")}))},[p,q,H]);y=c("isMWBumpMessage")(q.replyType);var I=c("useXMAPreviewsDisabledSetting")();o=o===!0&&I&&d("MAWIsFBXMA").isFBXMA(D==null?void 0:D.xmaContentType);I=d("MAWIsReceiverFetchXmaInLoadingState").isReceiverFetchXmaInLoadingState(q.displayedContentTypes,D);D=!I&&!o&&!y&&E&&b==="below"&&!H&&!n;y=b==="below"?!z&&!f&&!h&&!A&&!G:!1;E=I||o||!g&&!m&&!B&&!F||(a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?D:!1);x?n=q.text!=null?e?z?j.jsx("div",babelHelpers["extends"]({className:"x1n2onr6 x1vjfegm"},{children:v(q)})):z?null:j.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[y?j.jsx("div",{className:"x1eb86dx x36qwtl xh8yej3"}):null,j.jsx("div",babelHelpers["extends"]({className:"x1n2onr6 x1vjfegm"},{children:v(q)}))]}):q.text!==""?j.jsxs(j.Fragment,{children:[y||b==="above"?j.jsx("div",{className:"x1eb86dx x36qwtl xh8yej3"}):null,j.jsxs("div",babelHelpers["extends"]({className:"x78zum5 xh8yej3"},{role:"none",children:[s?j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{paint:!z,children:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})}):null,w(q,y,E,D,s),s?null:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{paint:!z,children:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})})]}))]}):null:null:n=null;f=q.replyAttachmentType!==void 0&&(i||(i=d("I64"))).to_float(q.replyAttachmentType)===c("LSReplyMessageAttachmentType").ROLL_CALL_TEXT_CONTRIBUTION;var J;c("mwpMessageHasAttachment")(q)&&!H&&!f&&(J=u(d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectTop(q,t,b),d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectBottom(q,r,b),C));return j.jsxs(j.Fragment,{children:[b==="above"?J:null,n,b==="below"?J:null]})}a.displayName=a.name+" [from "+f.id+"]";g.MWPBaseMessageContent=a}),98);
__d("MWPBaseMessageContentWithPinnedMessageSupport.react",["MWPBaseMessageContent.react","react","react-compiler-runtime","useMWPIsMessagePinned"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));h.useMemo;function a(a){var b=d("react-compiler-runtime").c(19),e=a.attachmentRenderPosition,f=a.isEmojiOnly,g=a.isFirstMessageInGroup,h=a.isLastMessageInGroup,j=a.isSearchPluginAttachment,k=a.isSecureMessage,l=a.mediaRenderQpl,m=a.message,n=a.nextMessage,o=a.outgoing,p=a.prevMessage,q=a.renderAttachment,r=a.renderEmoji,s=a.renderMessageBubble,t=a.shouldRenderMessageContent;a=a.xmaLayout;var u=c("useMWPIsMessagePinned")(m),v=c("useMWPIsMessagePinned")(n),w;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==h||b[4]!==u||b[5]!==v||b[6]!==j||b[7]!==k||b[8]!==l||b[9]!==m||b[10]!==n||b[11]!==o||b[12]!==p||b[13]!==q||b[14]!==r||b[15]!==s||b[16]!==t||b[17]!==a?(w=i.jsx(d("MWPBaseMessageContent.react").MWPBaseMessageContent,{attachmentRenderPosition:e,isEmojiOnly:f,isFirstMessageInGroup:g,isLastMessageInGroup:h,isMessagePinned:u,isNextMessagePinned:v,isSearchPluginAttachment:j,isSecureMessage:k,mediaRenderQpl:l,message:m,nextMessage:n,outgoing:o,prevMessage:p,renderAttachment:q,renderEmoji:r,renderMessageBubble:s,shouldRenderMessageContent:t,xmaLayout:a}),b[0]=e,b[1]=f,b[2]=g,b[3]=h,b[4]=u,b[5]=v,b[6]=j,b[7]=k,b[8]=l,b[9]=m,b[10]=n,b[11]=o,b[12]=p,b[13]=q,b[14]=r,b[15]=s,b[16]=t,b[17]=a,b[18]=w):w=b[18];e=w;return e}g["default"]=a}),98);
__d("mwpIsMessageUnsupported",["I64"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){return(h||(h=d("I64"))).equal(a.displayedContentTypes,(h||(h=d("I64"))).zero)&&b.length===0}g["default"]=a}),98);
__d("mwv2MessageIsEmojiOnly",["EmojiRenderer","EmoticonRenderer","ReStoreVaulting"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[ \r\n\s]*$/;function a(a,b){if(a==null)return!1;var c=d("ReStoreVaulting").maybeUnvault(a);a=d("EmojiRenderer").parse(c).map(function(a){return{length:a.length,offset:a.offset}});b=b?d("EmoticonRenderer").parse(c).map(function(a){return{length:a.chars.length,offset:a.offset}}):[];a=a.concat(b);if(a.length===0)return!1;b=a.sort(function(a,b){return a.offset-b.offset|0});var e={contents:0},f={contents:0};a=b.some(function(a){e.contents===a.offset?(e.contents=e.contents+a.length|0,f.contents=e.contents):f.contents=a.offset;var b=c.substring(e.contents,f.contents);e.contents=a.offset+a.length|0;return h.test(b)===!1});b=e.contents!==c.length&&!h.test(c.substring(f.contents));if(a)return!1;else return!b}g["default"]=a}),98);
__d("MWPBaseMessage.react",["LSBitFlag","LSIntEnum","MWBlockingProtectionContext.react","MWGroupBlockingProtectionUtils","MWPAttachmentDataContext","MWPBaseMessageContentWithPinnedMessageSupport.react","MWPMessageListColumn.react","MessengerWebUXLogger","mwpIsMessageUnsupported","mwv2MessageIsEmojiOnly","react","react-compiler-runtime","react-strict-dom","useGetMediaGroupInformation","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useContext,l={container:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",maxWidth:"x193iq5w",position:"x1n2onr6",userSelect:"x1kxipp6",$$css:!0},footerForGroupedImageStack:{paddingEnd:"x1pi30zi",$$css:!0},footerForGroupedImageTile:{paddingEnd:"x1tyevoi",$$css:!0},outgoing:{alignItems:"xuk3077",$$css:!0},row_container:{display:"x78zum5",width:"xh8yej3",$$css:!0}};function m(a,b){if(d("LSBitFlag").has((i||(i=d("LSIntEnum"))).ofNumber(128),a.displayedContentTypes))return!0;else return c("mwv2MessageIsEmojiOnly")(a.text,b)}function a(a){var b,e=d("react-compiler-runtime").c(67),f=a.attachmentRenderPosition,g=a.checkEmoticon,h=a.isFirstMessageInGroup,i=a.isLastMessageInGroup,n=a.isSearchPluginAttachment,o=a.isSecureMessage,p=a.mediaRenderQpl,q=a.message,r=a.nextMessage,s=a.outgoing,t=a.prevMessage,u=a.reactions,v=a.renderAttachment,w=a.renderEmoji,x=a.renderMessageBubble,y=a.renderMessageContainer,z=a.renderMessageFooter,A=a.renderMessageFromBlockee,B=a.renderUnsentMessage,C=a.renderUnsupportedMessage,D=a.shouldRenderMessageContent;a=a.xmaLayout;f=f===void 0?"below":f;n=n===void 0?!1:n;D=D===void 0?!0:D;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var E;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(E={eventName:"messagelist_message_impression"},e[0]=E):E=e[0];E=c("MessengerWebUXLogger").useImpressionLoggerRef(E);var F=d("MWGroupBlockingProtectionUtils").useMWIsContactBlocked(q.threadKey),G=c("MWBlockingProtectionContext.react").useHook(),H=G.addMessageId;G=G.findMessageId;b=c("useGetMediaGroupInformation")(q,(b=o)!=null?b:!1,p);var I=k(d("MWPAttachmentDataContext").MWPAttachmentDataContext);I=I.attachments;I=c("mwpIsMessageUnsupported")(q,I);if(q.isUnsent)if(B!=null){var J;e[1]!==B?(J=B(),e[1]=B,e[2]=J):J=e[2];e[3]!==J?(B=j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:J}),e[3]=J,e[4]=B):B=e[4];return B}else return null;if(I)if(C!=null){e[5]!==C?(J=C(),e[5]=C,e[6]=J):J=e[6];e[7]!==J?(B=j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:J}),e[7]=J,e[8]=B):B=e[8];return B}else return null;if(!G(q.messageId)&&F&&A!=null){e[9]!==H||e[10]!==q.messageId?(I=function(){H(q.messageId)},e[9]=H,e[10]=q.messageId,e[11]=I):I=e[11];e[12]!==A||e[13]!==I?(C=A(I),e[12]=A,e[13]=I,e[14]=C):C=e[14];e[15]!==C?(J=j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:C}),e[15]=C,e[16]=J):J=e[16];return J}e[17]!==g||e[18]!==q?(B=m(q,g),e[17]=g,e[18]=q,e[19]=B):B=e[19];G=B;e[20]!==f||e[21]!==G||e[22]!==h||e[23]!==i||e[24]!==n||e[25]!==o||e[26]!==p||e[27]!==q||e[28]!==r||e[29]!==s||e[30]!==t||e[31]!==v||e[32]!==w||e[33]!==x||e[34]!==D||e[35]!==a?(F=j.jsx(c("MWPBaseMessageContentWithPinnedMessageSupport.react"),{attachmentRenderPosition:f,isEmojiOnly:G,isFirstMessageInGroup:h,isLastMessageInGroup:i,isSearchPluginAttachment:n,isSecureMessage:o,mediaRenderQpl:p,message:q,nextMessage:r,outgoing:s,prevMessage:t,renderAttachment:v,renderEmoji:w,renderMessageBubble:x,shouldRenderMessageContent:D,xmaLayout:a}),e[20]=f,e[21]=G,e[22]=h,e[23]=i,e[24]=n,e[25]=o,e[26]=p,e[27]=q,e[28]=r,e[29]=s,e[30]=t,e[31]=v,e[32]=w,e[33]=x,e[34]=D,e[35]=a,e[36]=F):F=e[36];A=F;e[37]!==s?(I=s?j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})}):null,e[37]=s,e[38]=I):I=e[38];e[39]!==A||e[40]!==s||e[41]!==y?(C=y!=null?y(A,[l.container,s?l.outgoing:!1]):j.jsx(d("react-strict-dom").html.div,{style:[l.container,s?l.outgoing:!1],children:A}),e[39]=A,e[40]=s,e[41]=y,e[42]=C):C=e[42];e[43]!==s?(J=s?null:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})}),e[43]=s,e[44]=J):J=e[44];e[45]!==E||e[46]!==J||e[47]!==I||e[48]!==C?(g=j.jsxs(d("react-strict-dom").html.div,{ref:E,role:"none",style:l.row_container,children:[I,C,J]}),e[45]=E,e[46]=J,e[47]=I,e[48]=C,e[49]=g):g=e[49];e[50]!==G||e[51]!==u?(B=G&&u.length>0?j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:5}):null,e[50]=G,e[51]=u,e[52]=B):B=e[52];f=b!=null&&b.groupSize>=4&&l.footerForGroupedImageStack;h=!s&&b!=null&&b.groupSize<4&&l.footerForGroupedImageTile;e[53]!==f||e[54]!==h?(i=[f,h],e[53]=f,e[54]=h,e[55]=i):i=e[55];e[56]!==z?(n=z(),e[56]=z,e[57]=n):n=e[57];e[58]!==i||e[59]!==n?(o=j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:j.jsx(d("react-strict-dom").html.div,{style:i,children:n})}),e[58]=i,e[59]=n,e[60]=o):o=e[60];e[61]!==B||e[62]!==o?(p=j.jsxs(j.Fragment,{children:[B,o]}),e[61]=B,e[62]=o,e[63]=p):p=e[63];e[64]!==g||e[65]!==p?(r=j.jsxs(j.Fragment,{children:[g,p]}),e[64]=g,e[65]=p,e[66]=r):r=e[66];return r}g["default"]=a}),98);
__d("MWPBaseMessageListRowCountdown.react",["MAWEphemeralMessageTimer.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(8),e=a.ariaHidden,f=a.ephemeralDurationInSec,g=a.expirationTimestamp;a=a.handleMessageExpired;e=e===void 0?!1:e;var h;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(h={className:"x78zum5 xdt5ytf x1c4vz4f xl56j7k x4ii5y1 xr1yuqi x1e558r4 x150jy0e x1vjfegm"},b[0]=h):h=b[0];var j;b[1]!==f||b[2]!==g||b[3]!==a?(j=i.jsx(c("MAWEphemeralMessageTimer.react"),{ephemeralDurationInSec:f,expirationTimestamp:g,handleMessageExpired:a}),b[1]=f,b[2]=g,b[3]=a,b[4]=j):j=b[4];b[5]!==e||b[6]!==j?(f=i.jsx("div",babelHelpers["extends"]({"aria-hidden":e},h,{children:j})),b[5]=e,b[6]=j,b[7]=f):f=b[7];return f}g["default"]=a}),98);
__d("MWXMessageBubbleRow.react",["react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={addOn:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",$$css:!0},bubble:{minWidth:"xeuugli",zIndex:"x1vjfegm",$$css:!0},container:{display:"x78zum5",$$css:!0},containerRight:{flexDirection:"x15zctf7",$$css:!0},opaque:{backgroundColor:"x1eb86dx",$$css:!0},paddingBottom:function(a){return[{paddingBottom:a==null?null:"x18061mc",$$css:!0},{"--paddingBottom":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(a)}]},paddingEnd:function(a){function b(b){return a.apply(this,arguments)}b.toString=function(){return a.toString()};return b}(function(a){return[{paddingEnd:a==null?null:"x55ruut",paddingLeft:null,paddingRight:null,$$css:!0},{"--paddingEnd":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(a)}]}),paddingStart:function(a){function b(b){return a.apply(this,arguments)}b.toString=function(){return a.toString()};return b}(function(a){return[{paddingStart:a==null?null:"xjz4gdx",paddingLeft:null,paddingRight:null,$$css:!0},{"--paddingStart":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(a)}]}),spacer:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0}},k={bottom:{alignSelf:"xpvyfi4",$$css:!0},center:{alignSelf:"xamitd3",$$css:!0},top:{alignSelf:"xqcrz7y",$$css:!0}},l={left:{end:j.paddingStart,start:j.paddingEnd},right:{end:j.paddingEnd,start:j.paddingStart}};function m(a){var b=d("react-compiler-runtime").c(8),c=a.children,e=a.gap,f=a.paddingBottom,g=a.rowAlign,h=a.testid,m=a.type;a=a.verticalAlign;var n;b[0]!==c||b[1]!==e||b[2]!==f||b[3]!==g||b[4]!==h||b[5]!==m||b[6]!==a?(n=c!=null?i.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,style:[j.opaque,j.addOn,f!=null&&j.paddingBottom(f),e!=null&&l[g][m](e)],children:i.jsx(d("react-strict-dom").html.div,{style:[j.container,g==="right"&&j.containerRight,k[a]],children:c})}):null,b[0]=c,b[1]=e,b[2]=f,b[3]=g,b[4]=h,b[5]=m,b[6]=a,b[7]=n):n=b[7];return n}function a(a){var b=d("react-compiler-runtime").c(25),c=a.addOnEnd,e=a.addOnEndGap,f=a.addOnEndVerticalAlign,g=a.addOnPaddingBottom,h=a.addOnStart,k=a.addOnStartGap,l=a.addOnStartVerticalAlign,n=a.align,o=a.children,p=a.opaque,q=a.testid;a=a.xstyle;e=e===void 0?0:e;f=f===void 0?"center":f;g=g===void 0?0:g;k=k===void 0?0:k;l=l===void 0?"center":l;n=n===void 0?"right":n;p=p===void 0?!1:p;var r=n==="right"&&j.containerRight;p=p&&j.opaque;var s;b[0]!==r||b[1]!==p||b[2]!==a?(s=[j.container,r,p,a],b[0]=r,b[1]=p,b[2]=a,b[3]=s):s=b[3];b[4]!==g||b[5]!==h||b[6]!==k||b[7]!==l||b[8]!==n?(r=i.jsx(m,{gap:k,paddingBottom:g,rowAlign:n,testid:void 0,type:"start",verticalAlign:l,children:h}),b[4]=g,b[5]=h,b[6]=k,b[7]=l,b[8]=n,b[9]=r):r=b[9];b[10]!==o?(p=o!=null?i.jsx(d("react-strict-dom").html.div,{style:j.bubble,children:o}):null,b[10]=o,b[11]=p):p=b[11];b[12]!==c||b[13]!==e||b[14]!==f||b[15]!==g||b[16]!==n?(a=i.jsx(m,{gap:e,paddingBottom:g,rowAlign:n,type:"end",verticalAlign:f,children:c}),b[12]=c,b[13]=e,b[14]=f,b[15]=g,b[16]=n,b[17]=a):a=b[17];b[18]===Symbol["for"]("react.memo_cache_sentinel")?(h=i.jsx(d("react-strict-dom").html.div,{style:[j.opaque,j.spacer]}),b[18]=h):h=b[18];b[19]!==s||b[20]!==r||b[21]!==p||b[22]!==a||b[23]!==q?(k=i.jsxs(d("react-strict-dom").html.div,{"data-testid":void 0,style:s,children:[r,p,a,h]}),b[19]=s,b[20]=r,b[21]=p,b[22]=a,b[23]=q,b[24]=k):k=b[24];return k}g["default"]=a}),98);
__d("MWPBaseMessageListRow.react",["BaseThemeProvider.react","I64","LSIntEnum","MWCombineThemeConfigs","MWMessageDeliveryStatus","MWPBaseMessageListRowActions.react","MWPBaseMessageListRowCountdown.react","MWPMessageListColumn.react","MWPMessageParsingUtils","MWXMessageBubbleRow.react","cr:8668","mwpMessageIsReply","react","react-compiler-runtime","stylex","useEmptyFunction"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i,n=m.useCallback,o=m.useMemo,p=(m=b("cr:8668"))!=null?m:c("useEmptyFunction");function a(a){var b=d("react-compiler-runtime").c(2),c=a.children,e=a.message;a=a.prevMessage;e=d("MWPMessageParsingUtils").isStartOfGroup(e,a);if(e){b[0]!==c?(a=c(),b[0]=c,b[1]=a):a=b[1];return a}return null}function q(a){return(j||(j=d("I64"))).equal(j.and_(a.displayedContentTypes,(k||(k=d("LSIntEnum"))).ofNumber(2048)),j.zero)}var r={container:{display:"x78zum5",$$css:!0},multiReact:{zIndex:"x1vjfegm",$$css:!0},multiReactIncoming:{marginStart:"x1liizu2",$$css:!0},multiReactOutgoing:{display:"x78zum5",flexDirection:"x15zctf7",marginEnd:"xw3qccf",marginStart:"x1mh8g0r",$$css:!0}};function e(a){var b,e=d("react-compiler-runtime").c(29),f=a.children,g=a.handleMessageExpired,i=a.hasMessageEmphasisRing,j=a.hasReactions,k=a.message,m=a.originalBumpedMsg,n=a.outgoing,o=a.renderGutterItem,s=a.renderMessageActions,t=a.renderMultiReactions;a=a.renderProfile;m=(m=m)!=null?m:k;var u;e[0]!==m?(u=c("mwpMessageIsReply")(m),e[0]=m,e[1]=u):u=e[1];m=u;u=k.ephemeralExpirationTs;var v=k.ephemeralDurationInSec,w=k.isUnsent,x=d("MWMessageDeliveryStatus").getFromSendStatus(k.sendStatusV2).type==="Sending";b=(b=p(k.threadKey))!=null?b:!1;b=b;var y;e[2]!==t?(y=t&&t(),e[2]=t,e[3]=y):y=e[3];t=y;y=t!=null;var z;e[4]!==v||e[5]!==u||e[6]!==g||e[7]!==w||e[8]!==k||e[9]!==s||e[10]!==x?(z=q(k)?l.jsxs(l.Fragment,{children:[u!=null&&!w?l.jsx(c("MWPBaseMessageListRowCountdown.react"),{ephemeralDurationInSec:v,expirationTimestamp:u,handleMessageExpired:g}):null,s(x)]}):l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsEmptyList,{}),e[4]=v,e[5]=u,e[6]=g,e[7]=w,e[8]=k,e[9]=s,e[10]=x,e[11]=z):z=e[11];v=b?"bottom":"center";u=j?18:0;e[12]!==n||e[13]!==o||e[14]!==a?(g=n?o():l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnProfile,{children:a()}),e[12]=n,e[13]=o,e[14]=a,e[15]=g):g=e[15];w=n?"right":"left";k=!n||m||i===!0;e[16]!==f||e[17]!==z||e[18]!==v||e[19]!==u||e[20]!==g||e[21]!==w||e[22]!==k?(s=l.jsx(c("MWXMessageBubbleRow.react"),{addOnEnd:z,addOnEndVerticalAlign:v,addOnPaddingBottom:u,addOnStart:g,addOnStartVerticalAlign:"bottom",align:w,opaque:k,testid:void 0,children:f}),e[16]=f,e[17]=z,e[18]=v,e[19]=u,e[20]=g,e[21]=w,e[22]=k,e[23]=s):s=e[23];x=s;e[24]!==y||e[25]!==x||e[26]!==t||e[27]!==n?(b=y?l.jsxs("div",babelHelpers["extends"]({className:"x78zum5 xdt5ytf x1n2onr6"},{role:"none",children:[x,l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:l.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(r.container,r.multiReact,n?r.multiReactOutgoing:r.multiReactIncoming),{children:t}))})]})):x,e[24]=y,e[25]=x,e[26]=t,e[27]=n,e[28]=b):b=e[28];return b}function s(a){var b=d("react-compiler-runtime").c(2),c=a.children,e=a.message,f=a.nextMessage;a=a.showContent;e=d("MWPMessageParsingUtils").isEndOfGroup(e,f);if(e||a===!0){b[0]!==c?(f=c(),b[0]=c,b[1]=f):f=b[1];return f}return null}b={"mwp-reply-background-color":"var(--comment-footer-background)"};m={"mwp-reply-background-color":"var(--comment-footer-background)"};var t={dark:m,light:b,type:"VARIABLES"};function u(a){var b=a.children,e=a.domElementRef;a.message;var f=a.role,g=a.setHovered,i=a.stopHoveringRef,j=a.theme,k=j===void 0?t:j,m=a.xstyle,p=n(function(){return g(function(){return!1})},[g]);return l.jsx(c("BaseThemeProvider.react"),{config:o(function(){return d("MWCombineThemeConfigs").combine(t,k)},[k]),children:function(a,d){return l.jsx("div",{className:(h||(h=c("stylex")))(a,m),onMouseEnter:function(){i.current&&i.current(),g(function(){return!0}),i.current=p},onMouseLeave:function(){if(i.current===p){p();i.current=function(){};return}},ref:e,role:f,style:babelHelpers["extends"]({},d),children:b})}})}u.displayName=u.name+" [from "+f.id+"]";g.MWPBaseMessageListRowBeforeContent=a;g.MWPBaseMessageListRowBody=e;g.MWPBaseMessageListRowFooter=s;g.MWPBaseMessageListRow=u}),98);
__d("MercuryTimestamp",["fbt","formatDate"],(function(a,b,c,d,e,f,g){a=864e5;var h=6*a,i={getFormatedTimestamp:function(a){var b=a/1e3;return i.getFormattedTimestampByBucket(b,i.getTimeBucket(a))},getAbsoluteTimestamp:function(a){if(a==null)return null;else{a=i.getFormatedTimestamp(a);return a.absolute}},getRelativeTimestamp:function(a){a=i.getFormatedTimestamp(a);return a.relative},getFormattedTimestampByBucket:function(a,c){switch(c){case 0:return{absolute:g._(/*BTDS*/"__JHASH__EpdLnM9AeUo__JHASH__").toString(),relative:b("formatDate")(a,"g:ia")};case 1:return{absolute:b("formatDate")(a,"l"),relative:b("formatDate")(a,"D")};case 3:return{absolute:b("formatDate")(a,"F j"),relative:b("formatDate")(a,"M j")};default:return{absolute:b("formatDate")(a,"F j, Y"),relative:b("formatDate")(a,"n/j/y")}}},getTimeBucket:function(a){a=new Date(a);var b=new Date();b=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(b<a)return 0;else if(b.getTime()-h<a.getTime())return 1;else if(b.getFullYear()===a.getFullYear())return 3;else return 4},getPreciseTimestamp:function(a){return b("formatDate")(new Date(a),i.getPreciseFormat(a))},getPreciseFormat:function(a){a=i.getTimeBucket(a);switch(a){case 0:return"g:ia";case 1:return"l g:ia";case 3:return"F jS, g:ia";case 4:default:return"F j, Y g:i a"}}};e.exports=i}),130);
__d("MWPBaseMessageRowHeaderTimestamp.react",["I64","MercuryTimestamp","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(9),e=a.message,f=a.renderText,g=a.renderTimestamp;a=a.xstyle;var j;b[0]!==a?(j=(h||(h=c("stylex"))).props(a),b[0]=a,b[1]=j):j=b[1];b[2]!==e.timestampMs||b[3]!==f||b[4]!==g?(a=f(g(c("MercuryTimestamp").getRelativeTimestamp((i||(i=d("I64"))).to_float(e.timestampMs)))),b[2]=e.timestampMs,b[3]=f,b[4]=g,b[5]=a):a=b[5];b[6]!==j||b[7]!==a?(e=k.jsx("div",babelHelpers["extends"]({},j,{children:a})),b[6]=j,b[7]=a,b[8]=e):e=b[8];return e}g["default"]=a}),98);
__d("MWXHovercardTrigger.react",["BaseHovercardTrigger.react"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("BaseHovercardTrigger.react")}),98);
__d("MWPMessageAdModOrHostText.react",["fbt","BaseMiddot.react","MWCMGetValidId","MWCMHostTextHovercard.entrypoint","MWXHovercardTrigger.react","MWXText.react","react","react-compiler-runtime","react-strict-dom","useMWCMIsSenderAdModOrChatHost"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){var b=d("react-compiler-runtime").c(15),e=a.communityId,f=a.senderId,g=a.shouldRenderSenderName;a=a.threadKey;e=c("useMWCMIsSenderAdModOrChatHost")(e,a,f);f=e.isAdmin;var i=e.isChatHost;e=e.isModerator;var k;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(k=h._(/*BTDS*/"__JHASH__l4xCpI5VHpV__JHASH__"),b[0]=k):k=b[0];k=k;var n;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"__JHASH__hz8R4t8GDy7__JHASH__"),b[1]=n):n=b[1];n=n;var o;b[2]!==a?(o={onClose:m,threadKey:a},b[2]=a,b[3]=o):o=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(a={},b[4]=a):a=b[4];b[5]!==o?(a=j.jsx(c("MWXHovercardTrigger.react"),{align:"middle",display:"inline-block",popoverEntryPoint:c("MWCMHostTextHovercard.entrypoint"),popoverOtherProps:o,popoverProps:a,position:"above",children:l}),b[5]=o,b[6]=a):a=b[6];o=a;b[7]!==o||b[8]!==f||b[9]!==i||b[10]!==e||b[11]!==g?(a=g&&(f||e||i)&&j.jsxs(j.Fragment,{children:[j.jsx(c("BaseMiddot.react"),{}),j.jsx(d("react-strict-dom").html.span,{"data-testid":void 0,children:f?k:e?n:o})]}),b[7]=o,b[8]=f,b[9]=i,b[10]=e,b[11]=g,b[12]=a):a=b[12];b[13]!==a?(k=j.jsx(j.Fragment,{children:a}),b[13]=a,b[14]=k):k=b[14];return k}function l(a){return j.jsx(c("MWXText.react"),{ref:a,type:"meta4",children:h._(/*BTDS*/"__JHASH__bZRJOb_t9fa__JHASH__")})}l.displayName=l.name+" [from "+f.id+"]";function m(){}function a(a){var b=a.communityId,c=a.message;a=a.shouldRenderSenderName;return!d("MWCMGetValidId").MWCMHasValidFbGroupId(b,!1)?null:j.jsx(k,{communityId:b,senderId:c.senderId,shouldRenderSenderName:a,threadKey:c.threadKey})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWXIconBot",["MWXSvgIcon","SVGIcon","cr:12328","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12328")),c("gkx")("23219"));g["default"]=a}),98);
__d("useMessageAttachments",["I64","ReQL","ReQLSuspense","mwpMessageHasAttachment","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=d("react-compiler-runtime").c(10),e=(i||(i=c("useReStore")))(),g;b[0]!==a?(g=c("mwpMessageHasAttachment")(a),b[0]=a,b[1]=g):g=b[1];var h=g,k;b[2]!==e||b[3]!==h||b[4]!==a.messageId||b[5]!==a.threadKey?(g=function(){return h?d("ReQL").fromTableAscending(e.tables.attachments).getKeyRange(a.threadKey,a.messageId):d("ReQL").empty()},k=[e,a.threadKey,a.messageId,h],b[2]=e,b[3]=h,b[4]=a.messageId,b[5]=a.threadKey,b[6]=g,b[7]=k):(g=b[6],k=b[7]);g=d("ReQLSuspense").useArray(g,k,f.id+":26");b[8]!==g?(k=g.toSorted(j),b[8]=g,b[9]=k):k=b[9];return k}function j(a,b){return(h||(h=d("I64"))).compare(a.attachmentIndex,b.attachmentIndex)}g["default"]=a}),98);
__d("usePinnedTextAnimation",["react","react-compiler-runtime","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState,l={mountAnimation:{animationDuration:"x5hsz1j",animationName:"x127lhb5",animationTimingFunction:"x4hg4is",$$css:!0},unmountAnimation:{animationDuration:"x5hsz1j",animationFillMode:"x10e4vud",animationName:"xvma63k",animationTimingFunction:"x4hg4is",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(6),e=k(!1),f=e[0],g=e[1],h=j(a),m;b[0]!==a?(e=function(){a!==h.current&&g(!0),h.current=a},m=[a],b[0]=a,b[1]=e,b[2]=m):(e=b[1],m=b[2]);i(e,m);e=f?l.mountAnimation:null;m=c("useDebouncedValue")(a,200);b[3]!==e||b[4]!==m?(f={mountAnimation:e,shouldShow:m,unmountAnimation:l.unmountAnimation},b[3]=e,b[4]=m,b[5]=f):f=b[5];return f}g["default"]=a}),98);
__d("MWPMessageEyebrows.react",["fbt","Actor","BaseMiddot.react","I64","LSContactBitOffset","LSContactBlockedByViewerStatus","LSIntEnum","LSMessagingThreadTypeUtil","MWEditedEyebrow.react","MWLSThread","MWMessageListDisplayContext.react","MWPAccessibleEyebrowsText.react","MWPContactContext.react","MWPMessageAdModOrHostText.react","MWPMessageAuthor.react","MWPMessageListColumn.react","MWPThreadIsPage.react","MWXIconBadgeCheckmark","MWXIconBot","MWXIconStrict.react","MessagingAttachmentType","ReQL","ReQLSuspense","gkx","isMWEditedMessage","justknobx","react","react-compiler-runtime","react-strict-dom","useMWPIsMessagePinned","useMessageAttachments","usePinnedTextAnimation","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n={alignEnd:{justifyContent:"x13a6bvl",$$css:!0},alignStart:{justifyContent:"x1nhvcw1",$$css:!0},botBadge:{display:"x1rg5ohu",paddingStart:"x1e558r4",position:"x1n2onr6",top:"xs7f9wi",$$css:!0},color:{color:"x186z157",$$css:!0},container:{display:"x78zum5",marginTop:"x1anpbxc",paddingBottom:"x10b6aqq",paddingStart:"x1ye3gou",$$css:!0},separator:{paddingEnd:"x19um543",paddingStart:"x1m6msm",$$css:!0}};function o(a){var b=d("react-compiler-runtime").c(5),c=a.children;a=a.outgoing;a=a?n.alignEnd:n.alignStart;var e;b[0]!==a?(e=[n.container,a],b[0]=a,b[1]=e):e=b[1];b[2]!==c||b[3]!==e?(a=m.jsx(d("react-strict-dom").html.div,{style:e,children:c}),b[2]=c,b[3]=e,b[4]=a):a=b[4];return a}function a(a){var b=d("react-compiler-runtime").c(59),e=a.isFirstMessageInGroup,g=a.isLastMessageInGroup,l=a.message,t=a.outgoing,u=a.renderPaidPartnerShipText,v=a.renderPinnedText,w=a.renderTextWrapper;a=a.shouldRenderSenderName;var x=d("MWPMessageAuthor.react").useAuthorName();x=x[0];var y=d("MWPContactContext.react").useMWPContactStableContext(),z=y.contact;y=y.nickname;var A=d("Actor").useActor();A=A[0];var B=d("MWMessageListDisplayContext.react").useMWMessageListDisplayContext(),C=B.isReportMessageList,D=B.isStandardMessageList,E=(i||(i=c("useReStore")))();B=c("useMessageAttachments")(l);var F=d("MWLSThread").useThread(l.threadKey,s),G,H;b[0]!==E||b[1]!==F?(G=function(){return F?d("ReQL").fromTableAscending(E.tables.community_folders).getKeyRange(F).map(r):d("ReQL").empty()},H=[E,F],b[0]=E,b[1]=F,b[2]=G,b[3]=H):(G=b[2],H=b[3]);var I=d("ReQLSuspense").useFirst(G,H,f.id+":116");b[4]!==l?(G=c("isMWEditedMessage")(l),b[4]=l,b[5]=G):G=b[5];var J=G;H=d("MWPThreadIsPage.react").useIsPage();G=d("MWLSThread").useThread(l.threadKey,q);G=G!=null&&d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(G);var K=z?!(j||(j=d("I64"))).equal(z.blockedByViewerStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED)):!1,L;b[6]!==H||b[7]!==l.senderId||b[8]!==l.threadKey||b[9]!==t?(L=H&&!(j||(j=d("I64"))).equal(l.senderId,l.threadKey)&&!t,b[6]=H,b[7]=l.senderId,b[8]=l.threadKey,b[9]=t,b[10]=L):L=b[10];H=L;L=H&&!G;c("justknobx")._("3405")&&(L=L&&e);b[11]!==z?(H=z?d("LSContactBitOffset").has(77,z):!1,b[11]=z,b[12]=H):H=b[12];var M=H;b[13]!==z?(G=z?d("LSContactBitOffset").has(84,z):!1,b[13]=z,b[14]=G):G=b[14];var N=G,O=c("useMWPIsMessagePinned")(l);H=c("usePinnedTextAnimation")(O);var P=H.mountAnimation,Q=H.unmountAnimation,R=l.isPaidPartnership===!0;if(b[15]!==l.groupId||b[16]!==l.groupIndex||b[17]!==l.groupSize){G=l.groupId!=null&&l.groupIndex!=null&&(j||(j=d("I64"))).to_int32(l.groupIndex)===0&&(j||(j=d("I64"))).to_int32((z=l.groupSize)!=null?z:(j||(j=d("I64"))).zero)>=4&&c("gkx")("852");b[15]=l.groupId;b[16]=l.groupIndex;b[17]=l.groupSize;b[18]=G}else G=b[18];var S=G;b[19]!==B?(H=B!=null&&B.length>=4&&B.every(p)&&c("gkx")("852"),b[19]=B,b[20]=H):H=b[20];var T=H,U=(a||L)&&!S&&!T;z=U||O||J||R||S||T;var V;if(b[21]!==B||b[22]!==l.groupSize||b[23]!==S||b[24]!==T){V="";if(T&&B!=null&&B.length>1)V=B.length.toString();else if(S){V=(j||(j=d("I64"))).to_int32((G=l.groupSize)!=null?G:(j||(j=d("I64"))).zero).toString()}b[21]=B;b[22]=l.groupSize;b[23]=S;b[24]=T;b[25]=V}else V=b[25];if(b[26]!==y){a=(H=y)!=null?H:h._(/*BTDS*/"__JHASH__4LwiFWKMkVy__JHASH__");b[26]=y;b[27]=a}else a=b[27];L=a;var W=A===(j||(j=d("I64"))).to_string(l.senderId),X;if(b[28]!==x||b[29]!==I||b[30]!==M||b[31]!==J||b[32]!==e||b[33]!==K||b[34]!==N||b[35]!==g||b[36]!==R||b[37]!==O||b[38]!==C||b[39]!==W||b[40]!==D||b[41]!==l||b[42]!==V||b[43]!==t||b[44]!==P||b[45]!==Q||b[46]!==u||b[47]!==v||b[48]!==U||b[49]!==w||b[50]!==L||b[51]!==z||b[52]!==S||b[53]!==T){G=Symbol["for"]("react.early_return_sentinel");bb0:{var Y=W?L.toString():x==null?void 0:x.toString(),Z=g&&e;B=h._(/*BTDS*/"__JHASH__G4Bi2CYTkJR__JHASH__");if(!z){b[56]!==l||b[57]!==t?(H=m.jsx(c("MWPAccessibleEyebrowsText.react"),{message:l,outgoing:t}),b[56]=l,b[57]=t,b[58]=H):H=b[58];G=H;break bb0}y=function(a){var b=U&&a!=null||O||K;a=m.jsx(o,{outgoing:t,children:w(m.jsxs(d("react-strict-dom").html.span,{style:n.color,children:[(U||K)&&a!=null&&m.jsx(d("react-strict-dom").html.span,{"data-testid":void 0,children:a}),m.jsx(c("MWPMessageAdModOrHostText.react"),{communityId:I,message:l,shouldRenderSenderName:U}),O&&!K&&m.jsx(d("react-strict-dom").html.span,{style:O?P:Q,children:v(l,U)}),K&&m.jsxs(m.Fragment,{children:[m.jsx(d("react-strict-dom").html.span,{children:m.jsx(c("BaseMiddot.react"),{})}),m.jsx(d("react-strict-dom").html.span,{"data-testid":void 0,children:h._(/*BTDS*/"__JHASH__3kkmPi45q6Z__JHASH__")})]}),J&&m.jsx(d("MWEditedEyebrow.react").MWEditedEyebrow,{hasPadding:!Z&&!e,separatorStyle:b?n.separator:null}),M===!0?m.jsx(d("react-strict-dom").html.span,{style:n.botBadge,children:m.jsx(c("MWXIconStrict.react"),{color:"secondary",icon:c("MWXIconBot"),size:12})}):null,N&&m.jsx(d("react-strict-dom").html.span,{style:n.botBadge,children:m.jsx(c("MWXIconStrict.react"),{color:"primaryAccent",icon:c("MWXIconBadgeCheckmark"),size:12})}),R&&u!=null&&u(l),(S||T)&&m.jsxs(d("react-strict-dom").html.span,{"data-testid":void 0,children:[O&&D&&m.jsx(c("BaseMiddot.react"),{}),W?h._(/*BTDS*/"__JHASH__sU6rPDUfX2M__JHASH__",[h._param("numberOfMedia",V)]):h._(/*BTDS*/"__JHASH__njxyvSSomiA__JHASH__",[h._param("senderName",K?null:Y),h._param("numberOfMedia",V)])]})]}))});return C?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:a}):m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:a})};X=l.takedownState!=null?y(B.toString()):y(Y)}b[28]=x;b[29]=I;b[30]=M;b[31]=J;b[32]=e;b[33]=K;b[34]=N;b[35]=g;b[36]=R;b[37]=O;b[38]=C;b[39]=W;b[40]=D;b[41]=l;b[42]=V;b[43]=t;b[44]=P;b[45]=Q;b[46]=u;b[47]=v;b[48]=U;b[49]=w;b[50]=L;b[51]=z;b[52]=S;b[53]=T;b[54]=X;b[55]=G}else X=b[54],G=b[55];return G!==Symbol["for"]("react.early_return_sentinel")?G:X}function p(a){return(j||(j=d("I64"))).equal(a.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))}function q(a){return a.threadType}function r(a){return a.folderId}function s(a){return a.parentThreadKey}g["default"]=a}),226);
__d("MWPBaseMessageRowHeader.react",["BaseHeading.react","BaseRow.react","BaseRowItem.react","LSIntEnum","LSMessageReplySourceTypeV2","MWMessageListDisplayContext.react","MWPBaseMessageRowHeaderTimestamp.react","MWPContactContext.react","MWPMessageEyebrows.react","MWPMessageListColumn.react","MWPThreadIsPage.react","mwpMessageIsReply","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||d("react"),l={alignEnd:{alignItems:"xuk3077",$$css:!0},header:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},timestamp:{marginTop:"x1anpbxc",paddingEnd:"x11eofan",$$css:!0},timestampWithSnippet:{marginTop:"x1ok221b",paddingEnd:"x11eofan",$$css:!0}};function m(a,b,e,f){var g=d("react-compiler-runtime").c(8),h=a.replySnippet;h=h!=null?h!=="":!1;var i=a.replySourceTypeV2!=null&&(j||(j=d("LSIntEnum"))).toNumber(a.replySourceTypeV2)===c("LSMessageReplySourceTypeV2").FORWARD;if(h){g[0]!==a||g[1]!==f||g[2]!==e?(h=e(a,f),g[0]=a,g[1]=f,g[2]=e,g[3]=h):h=g[3];return h}if(!i)return null;g[4]!==a||g[5]!==f||g[6]!==b?(e=b(a,f),g[4]=a,g[5]=f,g[6]=b,g[7]=e):e=g[7];return e}function a(a){var b=d("react-compiler-runtime").c(39),e=a.alwaysRenderSenderName,f=a.isAnyCMThread,g=a.isFirstMessageInGroup,i=a.isGroupThread,j=a.isLastMessageInGroup,n=a.message,o=a.outgoing,p=a.renderForwardSnippet,q=a.renderMessageEyebrows,r=a.renderPaidPartnerShipText,s=a.renderPinnedText,t=a.renderReplySnippet,u=a.renderTextWrapper;a=a.renderTimestamp;e=e===void 0?!1:e;f=f===void 0?!1:f;var v=c("mwpMessageIsReply")(n);p=m(n,p,t,o);t=d("MWPContactContext.react").useMWPContactStableContext();t=t.nickname;var w=d("MWMessageListDisplayContext.react").useMWMessageListDisplayContext();w=w.isReportMessageList;t=g&&t!=null&&f;f=e||i&&g&&!o&&!v||t;if(p!=null){b[0]!==o?(e=(h||(h=c("stylex"))).props(l.header,o?l.alignEnd:!1),b[0]=o,b[1]=e):e=b[1];b[2]!==w||b[3]!==p?(i=w?k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:p}):k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:p}),b[2]=w,b[3]=p,b[4]=i):i=b[4];b[5]!==e||b[6]!==i?(v=k.jsx("div",babelHelpers["extends"]({},e,{role:"none",children:i})),b[5]=e,b[6]=i,b[7]=v):v=b[7];t=v}else if(q!=null){b[8]!==n||b[9]!==o||b[10]!==q||b[11]!==u||b[12]!==f?(w=q(n,o,u,f),b[8]=n,b[9]=o,b[10]=q,b[11]=u,b[12]=f,b[13]=w):w=b[13];t=w}else{b[14]!==g||b[15]!==j||b[16]!==n||b[17]!==o||b[18]!==r||b[19]!==s||b[20]!==u||b[21]!==f?(e=k.jsx(c("MWPMessageEyebrows.react"),{isFirstMessageInGroup:g,isLastMessageInGroup:j,message:n,outgoing:o,renderPaidPartnerShipText:r,renderPinnedText:s,renderTextWrapper:u,shouldRenderSenderName:f}),b[14]=g,b[15]=j,b[16]=n,b[17]=o,b[18]=r,b[19]=s,b[20]=u,b[21]=f,b[22]=e):e=b[22];b[23]!==n.threadKey||b[24]!==e?(i=k.jsx(d("MWPThreadIsPage.react").Provider,{threadKey:n.threadKey,children:e}),b[23]=n.threadKey,b[24]=e,b[25]=i):i=b[25];t=i}v=p!=null?l.timestampWithSnippet:l.timestamp;b[26]!==n||b[27]!==u||b[28]!==a||b[29]!==v?(q=a!=null?k.jsx(c("MWPBaseMessageRowHeaderTimestamp.react"),{message:n,renderText:u,renderTimestamp:a,xstyle:v}):null,b[26]=n,b[27]=u,b[28]=a,b[29]=v,b[30]=q):q=b[30];w=q;if(g){j=o?"backward":"forward";b[31]!==t?(r=k.jsx(c("BaseRowItem.react"),{children:k.jsx(c("BaseHeading.react"),{children:t})}),b[31]=t,b[32]=r):r=b[32];b[33]!==w?(s=w!=null?k.jsx(c("BaseRowItem.react"),{children:k.jsx(c("BaseHeading.react"),{children:w})}):null,b[33]=w,b[34]=s):s=b[34];b[35]!==j||b[36]!==r||b[37]!==s?(f=k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsxs(c("BaseRow.react"),{direction:j,children:[r,s]})}),b[35]=j,b[36]=r,b[37]=s,b[38]=f):f=b[38];return f}else return t}g["default"]=a}),98);
__d("MWPComposerDraftMessages",["FBLogger","I64","LSMessagingThreadTypeUtil","MAWFindFirstUrl","MWHasLinksUtil","cr:5710","justknobx","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i=new Map(),j=void 0;function k(){return Array.from(i.values()).some(function(a){return a.messageText.trim()!==""})}function l(a){return i.get((h||(h=d("I64"))).to_string(a))}function m(){if(!c("justknobx")._("2955")||b("cr:5710")==null||j!=null)return;j=b("cr:5710").onBeforeUnload(function(){if(k())return"You have pending messages. Please wait for them to be sent before closing the window.";return})}function a(a){var b=a.deleteLinkPreviewXMATableData,e=a.fetchAndWriteLinkPreviewXMA,f=a.message,g=a.threadKey;a=a.threadType;if(f==null){i["delete"]((h||(h=d("I64"))).to_string(g));if(i.size===0){var k;(k=j)==null?void 0:k.remove();j=void 0}return}if(i.has((h||(h=d("I64"))).to_string(g)))n(g,f);else{k=c("uuidv4")();i.set((h||(h=d("I64"))).to_string(g),{id:k,linkPreviewAbortToken:null,linkPreviewURL:null,messageText:f})}k=a!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(a);k&&o(g,f,e,b);m()}function n(a,b){var e=l(a);if(e==null){c("FBLogger")("messenger_web_messaging").mustfix("currentDraft was null in updateDraftMessageText");return}i.set((h||(h=d("I64"))).to_string(a),babelHelpers["extends"]({},e,{messageText:b}))}function o(a,b,e,f){var g,h=l(a);if(h==null){c("FBLogger")("messenger_web_sharing").mustfix("currentDraft was null in updateDraftMessageURL");return}var i=h==null?void 0:h.linkPreviewURL,j=h==null?void 0:h.linkPreviewAbortToken;g=(g=d("MAWFindFirstUrl").findFirstUrl(b))!=null?g:[];b=d("MWHasLinksUtil").getHasLinks(b);b=b?(b=(b=g[0])==null?void 0:b.entity.url)!=null?b:null:null;if(i===b)return;if(b==null){f&&void f({draftId:h.id});j==null?void 0:j.abort();p({linkPreviewURL:null,threadKey:a});q({linkPreviewAbortToken:null,threadKey:a});return}p({linkPreviewURL:b,threadKey:a});i=e&&e({draftId:h.id,urls:g})||null;q({linkPreviewAbortToken:i,threadKey:a})}function p(a){var b=a.linkPreviewURL;a=a.threadKey;var e=l(a);if(e==null){c("FBLogger")("messenger_web_messaging").mustfix("currentDraft was null in setDraftMessageURL");return}i.set((h||(h=d("I64"))).to_string(a),babelHelpers["extends"]({},e,{linkPreviewURL:b}))}function q(a){var b=a.linkPreviewAbortToken;a=a.threadKey;var e=l(a);if(e==null){c("FBLogger")("messenger_web_messaging").mustfix("currentDraft was null in setDraftMessageURL");return}i.set((h||(h=d("I64"))).to_string(a),babelHelpers["extends"]({},e,{linkPreviewAbortToken:b}))}g.getDraftMessage=l;g.updateDraftMessage=a}),98);
__d("MWTheme.react",["I64","cr:4128","emptyFunction","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h,l=k.createContext,m=k.useContext,n=k.useEffect;k.useMemo;function a(a,b){a=a!=null?a:.4;var c=parseInt(b.slice(1,3),16),d=parseInt(b.slice(3,5),16);b=parseInt(b.slice(5,7),16);a=a.toFixed(4);return"rgba("+c+","+d+","+b+","+a+")"}function e(a){return a.type==="solid"?a.color:a.colors[0]}function f(a){return"#"+a.slice(2)}function o(a){a=(i||(i=d("I64"))).to_int32(a);var b=(a&16711680)>>>16,c=(a&65280)>>>8;a=a&255;var e=function(a){return a.toString(16).padStart(2,"0")};return"#"+(e(b)+(e(c)+e(a)))}var p=l({clearTheme:c("emptyFunction"),setTheme:c("emptyFunction"),theme:b("cr:4128")});function q(){return m(p).theme}function r(){var a=d("react-compiler-runtime").c(6),b=m(p),c=b.clearTheme;b=b.setTheme;var e,f;a[0]!==c?(e=function(){return c},f=[c],a[0]=c,a[1]=e,a[2]=f):(e=a[1],f=a[2]);n(e,f);a[3]!==c||a[4]!==b?(e=[b,c],a[3]=c,a[4]=b,a[5]=e):e=a[5];return e}function s(a){var b=d("react-compiler-runtime").c(7),e=a.children,f=a.clearTheme,g=a.setTheme;a=a.theme;f=(f=f)!=null?f:c("emptyFunction");g=(g=g)!=null?g:c("emptyFunction");var h;b[0]!==f||b[1]!==g||b[2]!==a?(h={clearTheme:f,setTheme:g,theme:a},b[0]=f,b[1]=g,b[2]=a,b[3]=h):h=b[3];f=h;g=f;b[4]!==e||b[5]!==g?(a=j.jsx(p.Provider,{value:g,children:e}),b[4]=e,b[5]=g,b[6]=a):a=b[6];return a}function t(a){return a.type==="gradient"}g.defaultTheme=b("cr:4128");g.lighten=a;g.top=e;g.aRGBtoHex=f;g.intToHex=o;g.useTheme=q;g.usePreview=r;g.MWThemeProvider=s;g.isGradient=t}),98);
__d("MWPDateBreak.react",["BaseHeading.react","BaseTimestamp.react","MWTheme.react","MWXText.react","formatDate","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={mask:{backgroundColor:"x1eb86dx",$$css:!0},root:{marginBottom:"xjpr12u",marginTop:"xr9ek0c",textAlign:"x2b8uid",$$css:!0}};function l(a){var b=d("react-compiler-runtime").c(8),e=a.renderTextWrapper;a=a.timestamp;var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x186z157 xk50ysn"},b[0]=f):f=b[0];var g;b[1]!==a?(g=c("formatDate")(new Date(a),{future:"g:ia",older:"m/d/Y g:ia",thisYear:"M jS, g:ia",today:"g:ia",withinWeek:"D g:ia"}),b[1]=a,b[2]=g):g=b[2];b[3]!==g?(a=j.jsx("span",babelHelpers["extends"]({},f,{children:g})),b[3]=g,b[4]=a):a=b[4];f=a;if(e!=null){b[5]!==e||b[6]!==f?(g=e(f),b[5]=e,b[6]=f,b[7]=g):g=b[7];return g}return f}function a(a){var b=d("react-compiler-runtime").c(16),e=a.renderTextWrapper;a=a.timestamp;var f=d("MWTheme.react").useTheme(),g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g={className:"xzpqnlu x1hyvwdk xqtp20y x6ikm8r x10wlt62 xnalus7"},b[0]=g):g=b[0];var i;b[1]!==a?(i=new Date(a),b[1]=a,b[2]=i):i=b[2];b[3]!==i?(g=j.jsx("div",babelHelpers["extends"]({},g,{children:j.jsx(c("BaseTimestamp.react"),{date:i})})),b[3]=i,b[4]=g):g=b[4];b[5]!==f?(i=(h||(h=c("stylex"))).props(k.root,d("MWTheme.react").isGradient(f)&&k.mask),b[5]=f,b[6]=i):i=b[6];b[7]!==e||b[8]!==a?(f=j.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:j.jsx(l,{renderTextWrapper:e,timestamp:a})}),b[7]=e,b[8]=a,b[9]=f):f=b[9];b[10]!==i||b[11]!==f?(e=j.jsx("div",babelHelpers["extends"]({"aria-hidden":!0},i,{"data-scope":"date_break",children:f})),b[10]=i,b[11]=f,b[12]=e):e=b[12];b[13]!==g||b[14]!==e?(a=j.jsxs(c("BaseHeading.react"),{testid:void 0,children:[g,e]}),b[13]=g,b[14]=e,b[15]=a):a=b[15];return a}g["default"]=a}),98);
__d("MWPJumpToMostRecentMessageButtonAnimationWrapper.react",["react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect;b.useMemo;var l=b.useState,m={animateIn:{animationDuration:"x2mfxb",animationName:"x1j49z95",transform:"x1dufm33",$$css:!0},animateOut:{animationDuration:"x2mfxb",animationName:"x1j4bph1",transform:"xk9af5f",$$css:!0},animationWrapper:{bottom:"x1ey2m1c",start:"x14yxtea",position:"x10l6tqk",zIndex:"x1vjfegm",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(12),e=a.children,f=a.visible;a=l(f);var g=a[0],i=a[1],n;b[0]!==f?(a=function(){f&&i(!0)},n=[f,i],b[0]=f,b[1]=a,b[2]=n):(a=b[1],n=b[2]);k(a,n);bb0:{if(g){b[3]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"xqtp20y x1n2onr6 xh8yej3"},b[3]=a):a=b[3];b[4]!==f?(n=(h||(h=c("stylex"))).props([m.animationWrapper,f?m.animateIn:m.animateOut]),b[4]=f,b[5]=n):n=b[5];b[6]!==f?(g=function(a){f||i(!1)},b[6]=f,b[7]=g):g=b[7];b[8]!==e||b[9]!==n||b[10]!==g?(a=j.jsx("div",babelHelpers["extends"]({},a,{children:j.jsx("div",babelHelpers["extends"]({},n,{onAnimationEnd:g,children:e}))})),b[8]=e,b[9]=n,b[10]=g,b[11]=a):a=b[11];e=a;break bb0}e=null}return e}g["default"]=a}),98);
__d("MWPMessageListFocusTable.react",["FocusRegion.react","MWMessageTableFocusTable.react","MWV2MessageListIsRowModalContext.react","emptyFunction","focusScopeQueries","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo;function l(a,b,c){return b["data-scope"]==="date_break"}function a(a){var b=a.ariaLabel,e=a.children,f=a.hasMessages,g=f===void 0?!0:f;f=a.modal;var h=a.onNavigate,m=h===void 0?c("emptyFunction"):h;h=a.setModal;var n=a.wrapX;n=n===void 0?!1:n;a=a.wrapY;a=a===void 0?!1:a;var o=j(function(a){m(a);var b=a.type;switch(b){case"PAGE_DOWN":case"PAGE_UP":break;default:return}b=b==="PAGE_DOWN";a.preventDefault();var c=a.currentRowIndex+(b?1:-1)|0,d=!1;while(!d){var e=a.getCell(c,a.currentCellIndex);if(e==null){var f=a.getCell(b?c-1|0:0,a.currentCellIndex);f!=null&&a.focusCell(f);d=!0}else{f=e.scopeRef.current;f=f!=null?f.DO_NOT_USE_queryFirstNode(l):null;f==null?c=b?c+1|0:c-1|0:(a.focusCell(e),d=!0)}}},[]),p=k(function(){return g?i.jsx("div",babelHelpers["extends"]({"aria-label":b},{className:"x1uipg7g xu3j5b3 xol2nv xlauuyb x26u7qi x19p7ews x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62"},{role:"grid",children:e})):i.jsx("div",babelHelpers["extends"]({className:"x1uipg7g xu3j5b3 xol2nv xlauuyb x26u7qi x19p7ews x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62"},{children:e}))},[b,e,g]);return i.jsx(d("MWV2MessageListIsRowModalContext.react").MWV2MessageListIsRowModalContextProvider,{modal:f,setModal:h,children:i.jsx(d("FocusRegion.react").FocusRegion,{recoverFocusQuery:d("MWMessageTableFocusTable.react").scopeQuery,stopOnFocusWithinPropagation:!1,children:i.jsx(d("MWMessageTableFocusTable.react").FocusTable[0],{allowModifiers:!0,disabled:f!=="",onNavigate:o,tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrapX:n,wrapY:a,children:p})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWPMessageListFocusableTableRow.react",["fbt","BaseHeadingContextWrapper.react","CometScreenReaderText.react","FocusInertRegion.react","FocusManager","FocusRegion.react","FocusWithinHandler.react","KeyCommandHandler.react","MDSTextPairing.react","MWMessageCellFocusTable.react","MWMessageTableFocusTable.react","MWV2MessageListIsRowModalContext.react","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","ReactDOM","focusScopeQueries","justknobx","react","react-compiler-runtime","setTimeout","stylex","useCometTheme","useMAWEditMessageData"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;e.useCallback;var l=e.useEffect,m=e.useId;e.useMemo;var n=e.useRef,o=e.useState,p={cell:{display:"x78zum5",flexDirection:"xdt5ytf",position:"x1n2onr6",$$css:!0},cellFocusVisible:{zIndex:"x1vjfegm",$$css:!0},cellModal:{outline:"x1k66dxp",outlineOffset:"x1g40iwv","@media (-webkit-min-device-pixel-ratio: 0)_outline":"x1bkw7pg",$$css:!0},enterModalButton:{backgroundColor:"x1h0vfkc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x152obne",end:"xlr8s2x",left:null,right:null,paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",position:"x10l6tqk",zIndex:"x1vjfegm",$$css:!0},enterModalButtonInsideRow:{top:"xndqk7f",$$css:!0},enterModalButtonOutsideRow:{top:"x1qiirwl",transform:"x105ttfm",$$css:!0},enterModalButtonVisible:{opacity:"x1hc1fzr",$$css:!0},visuallyHidden:{clip:"xzpqnlu",clipPath:"x1hyvwdk",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"x1i1rx1s",$$css:!0}};function q(a){var b=a.key;(b==="ArrowUp"||b==="ArrowDown"||b==="ArrowLeft"||b==="ArrowRight"||b==="PageUp"||b==="PageDown"||b==="Home"||b==="End")&&a.preventDefault()}var r=h._(/*BTDS*/"__JHASH__U5V4JiyTDSI__JHASH__"),s=h._(/*BTDS*/"__JHASH__GoIrDg5lzef__JHASH__"),t=h._(/*BTDS*/"__JHASH__ctLNxPXr8we__JHASH__"),u=k.forwardRef(a);function a(a,b){var e=d("react-compiler-runtime").c(18),f=a.ariaLabel,g=a.focusable,h=a.onPress,i=a.showButtonInsideRow,j=a.text;a=a.xstyle;var l=c("useCometTheme")("invert"),m=l[0];l=l[1];var n;e[0]!==h?(n=function(){return h()},e[0]=h,e[1]=n):n=e[1];i=i?p.enterModalButtonInsideRow:p.enterModalButtonOutsideRow;var o;e[2]!==i||e[3]!==l||e[4]!==a?(o=[l,p.enterModalButton,i,a],e[2]=i,e[3]=l,e[4]=a,e[5]=o):o=e[5];e[6]!==j?(i=k.jsx(c("MDSTextPairing.react"),{body:j,bodyColor:"primary",level:4}),e[6]=j,e[7]=i):i=e[7];e[8]!==f||e[9]!==g||e[10]!==b||e[11]!==n||e[12]!==o||e[13]!==i?(l=k.jsx(c("MWXPressable.react"),{"aria-label":f,focusable:g,onPress:n,ref:b,xstyle:o,children:i}),e[8]=f,e[9]=g,e[10]=b,e[11]=n,e[12]=o,e[13]=i,e[14]=l):l=e[14];e[15]!==m||e[16]!==l?(a=k.jsx(m,{children:l}),e[15]=m,e[16]=l,e[17]=a):a=e[17];return a}function b(a){var b=d("react-compiler-runtime").c(51),e=a.accessibilityDialogTitleText,f=a.checkIfContentsAreTabbable,g=a.children,j=a.focusCellOnRender,w=a.isDialogOpened,x=a.isFocused,y=a.isModal,z=a.messageDomID,A=a.nameForModality,B=a.setFocused,C=a.setIsDialogOpened;a=a.showButtonInsideRow;var D=f===void 0?!1:f,E=j===void 0?!1:j,F=a===void 0?!1:a;f=d("MWV2MessageListIsRowModalContext.react").useMWV2MessageListIsRowModal();var G=f.setModal,H=n(null),I=m();b[0]!==I||b[1]!==A||b[2]!==G?(j=function(){G(function(){return A}),c("setTimeout")(function(){d("FocusRegion.react").focusRegionById(I,d("focusScopeQueries").tabbableScopeQuery)},0)},b[0]=I,b[1]=A,b[2]=G,b[3]=j):j=b[3];var J=j,K=n(null);b[4]!==G?(a=function(){G(v);var a=H.current;if(a!=null)return a.focus()},b[4]=G,b[5]=a):a=b[5];var L=a,M=m();b[6]!==e||b[7]!==M?(f=k.jsx(c("CometScreenReaderText.react"),{id:M,text:e}),b[6]=e,b[7]=M,b[8]=f):f=b[8];var N=f,O=m(),P=n(null);b[9]!==w||b[10]!==B||b[11]!==C?(j={isDialogOpened:w,setFocused:B,setIsDialogOpened:C},b[9]=w,b[10]=B,b[11]=C,b[12]=j):j=b[12];a=j;e=a;var Q=c("useMAWEditMessageData")()!=null;b[13]!==w||b[14]!==x||b[15]!==y||b[16]!==A||b[17]!==B||b[18]!==G?(f=function(a){if(x!==a){c("justknobx")._("3588")?w||B(function(){return a}):B(function(){return a});return G(function(){if((a||w)&&y)return A;else return""})}},b[13]=w,b[14]=x,b[15]=y,b[16]=A,b[17]=B,b[18]=G,b[19]=f):f=b[19];C=f;j=o(!1);var R=j[0],S=j[1];b[20]!==w||b[21]!==x||b[22]!==B?(a=function(a){x!==a&&(c("justknobx")._("3588")?w||B(function(){return a}):B(function(){return a}));if(K.current!=null){var b=d("FocusManager").getFirstNodeFromOneOrManyQueries(d("focusScopeQueries").tabbableScopeQuery,K.current);S(b!=null)}var e=P.current;if(a&&e!=null){c("setTimeout")(function(){try{return e.scrollIntoView({behavior:"smooth",block:"nearest"})}catch(a){return e.scrollIntoView(!1)}},0);return}},b[20]=w,b[21]=x,b[22]=B,b[23]=a):a=b[23];f=a;b[24]!==E?(j=function(){if(E){var a;(a=H.current)==null?void 0:a.focus();(a=H.current)==null?void 0:a.scrollIntoView()}},a=[E],b[24]=E,b[25]=j,b[26]=a):(j=b[25],a=b[26]);l(j,a);b[27]!==D||b[28]!==g?(j=D?k.jsx(d("FocusRegion.react").FocusRegion,{forwardRef:K,children:g}):g,b[27]=D,b[28]=g,b[29]=j):j=b[29];var T=j;a=Q?void 0:C;g=Q?void 0:f;b[30]!==N||b[31]!==M||b[32]!==D||b[33]!==T||b[34]!==O||b[35]!==I||b[36]!==R||b[37]!==Q||b[38]!==y||b[39]!==z||b[40]!==J||b[41]!==L||b[42]!==F?(j=function(a,b){a=k.jsx(d("MWMessageTableFocusTable.react").FocusTable[2],{children:k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(p.cell,y?p.cellModal:!1,b?p.cellFocusVisible:!1),{"data-release-focus-from":"CLICK","data-scope":d("MWMessageTableFocusTable.react").scopeID,ref:H,role:"gridcell",tabIndex:Q?-1:0,children:k.jsx(c("FocusInertRegion.react"),{disabled:y,focusQuery:d("focusScopeQueries").tabbableScopeQuery,children:y?k.jsxs(k.Fragment,{children:[k.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").tabbableScopeQuery,autoRestoreFocus:!0,containFocusQuery:d("focusScopeQueries").tabbableScopeQuery,id:I,recoverFocusQuery:d("focusScopeQueries").tabbableScopeQuery,children:k.jsx(c("KeyCommandHandler.react"),{onKeyDown:q,children:k.jsxs("div",{"aria-describedby":z,"aria-labelledby":M,id:O,role:"dialog",children:[T,y?N:null,k.jsx(u,{ariaLabel:s,focusable:!0,onPress:L,showButtonInsideRow:F,text:h._(/*BTDS*/"__JHASH__PEyi9JodUw1__JHASH__"),xstyle:p.enterModalButtonVisible})]})})}),d("ReactDOM").createPortal(k.jsx("div",{"aria-owns":O}),document.body)]}):T})}))});return k.jsxs(k.Fragment,{children:[k.jsx(d("MWMessageCellFocusTable.react").keyCommands,{onEnter:y||Q||D&&!R?void 0:J,onEscape:y?L:void 0,onSpace:y||Q||D&&!R?void 0:J,children:a}),k.jsx("div",{role:"gridcell",children:k.jsx(u,{ariaLabel:y?h._(/*BTDS*/"__JHASH__7kFsaJ4_Q_k__JHASH__"):r,focusable:y,onPress:J,ref:P,showButtonInsideRow:F,text:y?h._(/*BTDS*/"__JHASH__7kFsaJ4_Q_k__JHASH__"):t,xstyle:b&&!y&&(R||!D)?p.enterModalButtonVisible:p.visuallyHidden})})]})},b[30]=N,b[31]=M,b[32]=D,b[33]=T,b[34]=O,b[35]=I,b[36]=R,b[37]=Q,b[38]=y,b[39]=z,b[40]=J,b[41]=L,b[42]=F,b[43]=j):j=b[43];b[44]!==a||b[45]!==g||b[46]!==j?(C=k.jsx(d("MWMessageTableFocusTable.react").FocusTable[1],{children:k.jsx(c("FocusWithinHandler.react"),{onFocusChange:a,onFocusVisibleChange:g,children:j})}),b[44]=a,b[45]=g,b[46]=j,b[47]=C):C=b[47];b[48]!==e||b[49]!==C?(f=k.jsx(c("BaseHeadingContextWrapper.react"),{children:k.jsx(d("MWV2MessageRowIsRowFocusedContext.react").MWV2MessageRowIsRowFocusedContextProvider,{value:e,children:C})}),b[48]=e,b[49]=C,b[50]=f):f=b[50];return f}function v(){return""}g["default"]=b}),226);
__d("MWPMessageListRowWithKeyboardInteractions.react",["fbt","BaseHeadingContextWrapper.react","I64","MWEditMessageOverlay.react","MWPBaseMessageListRow.react","MWPMessageAuthor.react","MWPMessageListFocusableTableRow.react","MWV2MessageRowActionsContext.react","TimestampUtils","cr:11506","emptyFunction","react","react-compiler-runtime","useMAWEditMessageData","useMWPEditMessageDeemphasizer","useServerTime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));e=i;e.useMemo;var l=e.useRef,m=(f=b("cr:11506"))!=null?f:k.Fragment,n={row:{position:"x1n2onr6",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(27),e=a.children,f=a.domElementRef,g=a.focusCellOnRender,i=a.isDialogOpened,o=a.isFocused,p=a.isModal,q=a.message,r=a.messageDomID,s=a.outgoing,t=a.setFocused,u=a.setHovered,v=a.setIsDialogOpened,w=a.stopHoveringRef;a=a.theme;g=g===void 0?!1:g;var x=d("TimestampUtils").getTimestamp(c("useServerTime")(),new Date((j||(j=d("I64"))).to_float(q.timestampMs))),y=d("MWPMessageAuthor.react").useAuthorName();y=y[0];s=s?h._(/*BTDS*/"__JHASH__g90cYI08lR4__JHASH__"):y!=null?y:h._(/*BTDS*/"__JHASH__I4KHPAQ-RAf__JHASH__");y=h._(/*BTDS*/"__JHASH__BGN2Md9i0L4__JHASH__",[h._param("Stringified timestamp of the incoming message",x),h._param("Name of the author of the incoming message",s)]);x=l(c("emptyFunction"));s=l(c("emptyFunction"));var z=l(c("emptyFunction")),A=l(c("emptyFunction"));b[0]===Symbol["for"]("react.memo_cache_sentinel")?(z={forwardMessage:z,openReactionsMenu:x,removeMessage:A,replyToMessage:s},b[0]=z):z=b[0];x=z;A=x;s=c("useMAWEditMessageData")()!=null;z=c("useMWPEditMessageDeemphasizer")(q.messageId);x=s?c("emptyFunction"):u;b[1]!==z?(s=[n.row,z],b[1]=z,b[2]=s):s=b[2];b[3]!==y||b[4]!==e||b[5]!==g||b[6]!==i||b[7]!==o||b[8]!==p||b[9]!==q.messageId||b[10]!==r||b[11]!==t||b[12]!==v?(u=k.jsx(c("MWPMessageListFocusableTableRow.react"),{accessibilityDialogTitleText:y,focusCellOnRender:g,isDialogOpened:i,isFocused:o,isModal:p,messageDomID:r,nameForModality:q.messageId,setFocused:t,setIsDialogOpened:v,children:e}),b[3]=y,b[4]=e,b[5]=g,b[6]=i,b[7]=o,b[8]=p,b[9]=q.messageId,b[10]=r,b[11]=t,b[12]=v,b[13]=u):u=b[13];b[14]!==q.messageId?(z=k.jsx(c("MWEditMessageOverlay.react"),{messageId:q.messageId}),b[14]=q.messageId,b[15]=z):z=b[15];b[16]!==u||b[17]!==z?(y=k.jsxs(m,{children:[u,z]}),b[16]=u,b[17]=z,b[18]=y):y=b[18];b[19]!==f||b[20]!==q||b[21]!==w||b[22]!==x||b[23]!==s||b[24]!==y||b[25]!==a?(e=k.jsx(c("BaseHeadingContextWrapper.react"),{children:k.jsx(d("MWV2MessageRowActionsContext.react").MWV2MessageRowActionsContextProvider,{value:A,children:k.jsx(d("MWPBaseMessageListRow.react").MWPBaseMessageListRow,{domElementRef:f,message:q,role:"row",setHovered:x,stopHoveringRef:w,theme:a,xstyle:s,children:y})})}),b[19]=f,b[20]=q,b[21]=w,b[22]=x,b[23]=s,b[24]=y,b[25]=a,b[26]=e):e=b[26];return e}g["default"]=a}),226);
__d("MWPMessageRowCalculateStatus.react",["GenderConst","I64","MAWThreadCutover","MAWVideoAudioPlaybackErrorHandlerUtils","MWClickedMessageContext.react","MWMessageDeliveryStatus","MWPActor.react","MWPThreadCapabilitiesContext","ReQL","ReQLSuspense","getLSMediaContactProfilePictureUrl","gkx","react","react-compiler-runtime","useGetMediaGroupInformation","useMWIsReadReceiptsDisabledForThread","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;j||(j=d("react"));b=j;var k=b.useEffect,l=b.useMemo,m=b.useState,n={type:"NoneStatus"},o={type:"Loading"},p={type:"RetriableError"},q={type:"Error"},r={type:"ValidationError"},s={type:"Sending"},t={type:"Sent"},u={type:"Delivered"};function a(a){var b=a.children,e=a.isBroadcastChannel,g=e===void 0?!1:e;e=a.isBroadcastThread;var j=a.isLargeGroup,m=a.isSecureGroupThread,w=a.isSecureThread,y=a.message,z=a.nextMessage,A=d("MWPActor.react").useActor(),B=(h||(h=c("useReStore")))(),C=(i||(i=d("I64"))).equal(A,y.senderId),D=z!=null&&!(i||(i=d("I64"))).equal(A,z.senderId),E=y.isUnsent,F=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();F=F.seenCountV2Enabled;var G=!y.isUnsent&&F,H=z==null;F=c("useMWIsReadReceiptsDisabledForThread")(y.threadKey);w=c("useGetMediaGroupInformation")(y,w);var I=d("MAWVideoAudioPlaybackErrorHandlerUtils").useIsInvalidVideoMessage(y),J=c("MWClickedMessageContext.react").useHook(),K=J.clickedMessageId,L=J.fetchMessageSeenCount,M=J.hasError;J=J.isLoading;var N=d("ReQLSuspense").useFirst(function(){return G?d("ReQL").fromTableAscending(B.tables.community_chat_message_seen_count,["seenCount"]).getKeyRange(y.threadKey,y.messageId):d("ReQL").empty()},[B,G,y.threadKey,y.messageId],f.id+":114");k(function(){g===!0&&H&&L(y.threadKey,y.messageId)},[L,y.messageId,y.threadKey,H,g,C]);var O=v(a,function(a){return!H&&a.length===0},[H]),P=x(function(){return d("ReQL").fromTableDescending(B.tables.participants.index("threadKeyReadWatermarkTimestampMs"),["contactId"]).getKeyRange(y.threadKey).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,A)}).take(1)},function(a){return a.length>0},[y.threadKey,A]).length>0,Q=x(function(){return d("ReQL").fromTableDescending(B.tables.participants.index("threadKeyReadWatermarkTimestampMs"),["readWatermarkTimestampMs","contactId"]).getKeyRange(y.threadKey).bounds({gte:d("ReQL").key(y.timestampMs)}).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,A)}).take(1)},function(a){return P&&a.length>0},[y.timestampMs,y.threadKey,A,P]),R=Q.length>0;Q=x(function(){return d("ReQL").fromTableDescending(B.tables.participants.index("threadKeyDeliveredWatermarkTimestampMs"),["contactId"]).getKeyRange(y.threadKey).bounds({gte:d("ReQL").key(y.timestampMs)}).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,A)}).take(1)},function(a){return a.length>0||R},[y.threadKey,y.timestampMs,R,A]).length>0;var S=v(a,function(a){return R&&a.length===0},[R]),T=l(function(){var a;return d("MWMessageDeliveryStatus").seenCount((i||(i=d("I64"))).to_int32((a=N==null?void 0:N.seenCount)!=null?a:(i||(i=d("I64"))).zero))},[N==null?void 0:N.seenCount]),U=l(function(){return d("MWMessageDeliveryStatus").seenHead(O)},[O]),V=l(function(){return d("MWMessageDeliveryStatus").seenHead(S)},[S]);if(I)return b(r);if(y.isAdminMessage)return b(n);if(e)if(!G){if(!C||z!=null||E)return b(n)}else{if(K!==y.messageId)return b(n);if(J)return b(o);return M?b(p):N!=null?b(T):b(o)}if(!C){if(m&&!c("gkx")("3265")||j)return b(n);return g===!0?N!=null?b(T):b(n):O.length>0?a.children(U):a.children(n)}if(C&&H&&g&&(N!=null&&(i||(i=d("I64"))).to_int32(N.seenCount)>0))return b(T);if(D&&m)return b(n);if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(0)))return b(n);if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(4)))return b(q);if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(5)))return b(p);if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(1)))return b(s);if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(6)))return b(t);if(j)if(z!=null||E)return b(n);else if((i||(i=d("I64"))).equal(y.sendStatusV2,(i||(i=d("I64"))).of_int32(2)))return b(u);if(R&&!F)return S.length>0?b(V):b(n);if(w!=null&&w.isMediaGroupLastMessage)if(w.hasAllMessagesSent)return b(t);else return b(s);return Q?b(u):b(t)}a.displayName=a.name+" [from "+f.id+"]";function v(a,b,e){var g=d("react-compiler-runtime").c(25),j=(h||(h=c("useReStore")))(),k=d("MWPActor.react").useActor(),l=a.message,m=a.nextMessage,n=c("useMWIsReadReceiptsDisabledForThread")(l.threadKey),o;g[0]!==l.threadKey||g[1]!==a.isSecureThread?(o=a.isSecureThread?(i||(i=d("I64"))).to_string(l.threadKey):void 0,g[0]=l.threadKey,g[1]=a.isSecureThread,g[2]=o):o=g[2];a=d("MAWThreadCutover").useGetCutoverSecureThreadKey(o);g[3]!==a?(o=a!=null?(i||(i=d("I64"))).of_string(a):null,g[3]=a,g[4]=o):o=g[4];var p=o;g[5]!==k||g[6]!==p||g[7]!==j.tables.contacts||g[8]!==j.tables.participants||g[9]!==l.threadKey||g[10]!==l.timestampMs||g[11]!==m?(a=function(){var a=m!=null?{gte:d("ReQL").key(l.timestampMs),lt:d("ReQL").key(m.timestampMs)}:{gte:d("ReQL").key(l.timestampMs)};a=d("ReQL").fromTableAscending(j.tables.participants.index("threadKeyReadWatermarkTimestampMs"),["contactId","nickname","readActionTimestampMs"]).getKeyRange(l.threadKey).bounds(a).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,k)});var b={gte:d("ReQL").key(l.timestampMs)},c=p!=null?d("ReQL").fromTableAscending(j.tables.participants.index("threadKeyReadWatermarkTimestampMs"),["contactId","nickname","readActionTimestampMs"]).getKeyRange(p).bounds(b).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,k)}):d("ReQL").empty();return d("ReQL").union(a,c).map(function(a){var b=d("ReQLSuspense").toArray(c,f.id+":461").some(function(b){return(i||(i=d("I64"))).equal(b.contactId,a.contactId)});if(b)return;return a}).filter(Boolean).map(function(a){var b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(j.tables.contacts,["id","name","profilePictureFallbackUrl","profilePictureUrl","profilePictureUrlExpirationTimestampMs"]).getKeyRange(a.contactId),f.id+":476");return[a,b]})},g[5]=k,g[6]=p,g[7]=j.tables.contacts,g[8]=j.tables.participants,g[9]=l.threadKey,g[10]=l.timestampMs,g[11]=m,g[12]=a):a=g[12];o=m==null?void 0:m.timestampMs;var q=m==null,r=p==null,s;g[13]!==k||g[14]!==j||g[15]!==l.threadKey||g[16]!==l.timestampMs||g[17]!==o||g[18]!==q||g[19]!==r||g[20]!==e?(s=[j,l.threadKey,l.timestampMs,o,q,r,k].concat(e),g[13]=k,g[14]=j,g[15]=l.threadKey,g[16]=l.timestampMs,g[17]=o,g[18]=q,g[19]=r,g[20]=e,g[21]=s):s=g[21];o=x(a,b,s);g[22]!==o||g[23]!==n?(q=n?[]:o.map(w).filter(Boolean),g[22]=o,g[23]=n,g[24]=q):q=g[24];return q}function w(a){var b,e=a[0];a=a[1];if(a==null)return;return{gender:c("GenderConst").UNKNOWN_SINGULAR,id:(i||(i=d("I64"))).to_string(a.id),imageSrc:c("getLSMediaContactProfilePictureUrl")(a),name:(b=e.nickname)!=null?b:a.name,timestamp:i.to_float(e.readActionTimestampMs)}}function x(a,b,c){var e=m(void 0),g=e[0];e=e[1];c=d("ReQLSuspense").useArray(function(){return g!=null?d("ReQL").empty():a()},[].concat(c,[g]),f.id+":536");b(c)&&g==null&&e(c);return g!=null?g:c}g["default"]=a}),98);
__d("MWPNewMessageDraftContext.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;e=c.createContext;var j=c.useContext,k=c.useRef,l=e();function a(a){var b=d("react-compiler-runtime").c(2);a=a.children;var c=k("");b[0]!==a?(c=i.jsx(l.Provider,{value:c,children:a}),b[0]=a,b[1]=c):c=b[1];return c}function b(){return j(l)}g.MWPNewMessageDraftContextProvider=a;g.useNewMessageDraftContext=b}),98);
__d("MWPQuickReplies.react",["AdsMessengerContext.react","FBLogger","I64","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","MWChatBusinessQuickReplyList.react","MWPActor.react","MessagePowerUp","Promise","ReQL","ReQLSuspense","promiseDone","react","react-compiler-runtime","useLSMessagingSource","useReStore","withCometPlaceholder"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useContext;function o(a){var b=d("react-compiler-runtime").c(21),e=a.lastMessageId,g=a.quickReplyType,h=a.threadKey,l=c("useLSMessagingSource")(),o=(i||(i=c("useReStore")))(),s=d("MWPActor.react").useActor(),t=n(d("AdsMessengerContext.react").AdsMessengerContext);b[0]!==e||b[1]!==o.tables.quick_reply_ctas||b[2]!==h?(a=function(){return d("ReQL").fromTableAscending(o.tables.quick_reply_ctas).getKeyRange(h,e).map(r).filter(q)},b[0]=e,b[1]=o.tables.quick_reply_ctas,b[2]=h,b[3]=a):a=b[3];var u;b[4]!==e||b[5]!==o||b[6]!==h?(u=[o,e,h],b[4]=e,b[5]=o,b[6]=h,b[7]=u):u=b[7];a=d("ReQLSuspense").useArray(a,u,f.id+":54");if(a.length>0){b[8]!==s?(u=(j||(j=d("I64"))).to_string(s),b[8]=s,b[9]=u):u=b[9];var v;b[10]!==s||b[11]!==t||b[12]!==l||b[13]!==o||b[14]!==h?(v=function(a){if(t.onSendQuickReply!=null)return c("promiseDone")(t.onSendQuickReply(a,!1));var b=d("LSThreadAttributionTypeUtil").getSource(h,l);c("promiseDone")(o.runInTransaction(function(e){var f;f=(f=a.payload)!=null?f:void 0;return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(e),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,mark_read:!0,platform_token:f,power_up_style:(k||(k=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:k.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:k.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:b}),mailboxType:k.ofNumber(c("LSMailboxType").MESSENGER),senderId:s,text:a.title,threadKey:h,threadType:k.ofNumber(1)}).then(p)},"readwrite",void 0,void 0,f.id+":109"))},b[10]=s,b[11]=t,b[12]=l,b[13]=o,b[14]=h,b[15]=v):v=b[15];var w;b[16]!==a||b[17]!==g||b[18]!==u||b[19]!==v?(w=m.jsx(c("MWChatBusinessQuickReplyList.react"),{arrayQR:a,id:u,onSend:v,quickReplyType:g}),b[16]=a,b[17]=g,b[18]=u,b[19]=v,b[20]=w):w=b[20];return w}else return null}function p(a){return(h||(h=b("Promise"))).resolve(a)}function q(a){return a.content_type!==""}function r(a){var b=a.type_,d=b==="quick_reply_text"||b==="quick_reply_ad"?"text":b==="quick_reply_phone"?"user_phone_number":b==="quick_reply_email"?"user_email":"";d===""&&c("FBLogger")("messenger_web_messaging").mustfix("Unexpected quick-reply type: %s, title: %s",b,a.title);return{content_type:d,data:void 0,image_url:a.imageUrl,payload:a.platformToken,title:a.title}}function a(a){var b=d("react-compiler-runtime").c(8),e=a.threadKey,g=(i||(i=c("useReStore")))(),h;b[0]!==g||b[1]!==e?(a=function(){return d("ReQL").fromTableDescending(g.tables.messages).getKeyRange(e).take(2)},h=[g,e],b[0]=g,b[1]=e,b[2]=a,b[3]=h):(a=b[2],h=b[3]);a=d("ReQLSuspense").useArray(a,h,f.id+":150");if(a.length===0)return null;h=a[0];h.isAdminMessage&&a.length===2&&(h=a[1]);b[4]!==h.messageId||b[5]!==h.quickReplyType||b[6]!==e?(a=m.jsx(o,{lastMessageId:h.messageId,quickReplyType:h.quickReplyType,threadKey:e}),b[4]=h.messageId,b[5]=h.quickReplyType,b[6]=e,b[7]=a):a=b[7];return a}e=d("withCometPlaceholder").withCometPlaceholder(a,null,"MWPQuickReplies");g["default"]=e}),98);
__d("MWPSendMessageLogger",["LSIntEnum","LSPendingTasksPluginType","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("requireDeferred")("MWLogSend").__setRef("MWPSendMessageLogger");function a(a,b,e,f,g,j,k,l,m,n,o,p){var q=n!=null&&(h||(h=d("LSIntEnum"))).unwrapIntEnum(n)===c("LSPendingTasksPluginType").IGD_INSTAMADILLO,r=q?1:0;i.onReady(function(c){return c.log(a,{actor:f,additionalTags:q?["armadillo_express"]:void 0,attachmentFbids:j,attachmentType:l,backend:r,ephemeralDurationInSec:p,hasReply:m,isInstamadilloTTLC:o,offlineThreadingId:g,sendType:0,source:k,threadKey:b,threadType:e})})}g.log=a}),98);
__d("MWPThreadThemeProviderQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7801872189881330"}),null);
__d("MWPThreadThemeProviderQuery.graphql",["MWPThreadThemeProviderQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c=[{kind:"Variable",name:"id",variableName:"id"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"accessibility_label",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"app_color_mode",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"composer_background_color",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"background_gradient_colors",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"is_deprecated",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"title_bar_button_tint_color",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"inbound_message_gradient_colors",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"title_bar_text_color",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"composer_tint_color",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"title_bar_attribution_color",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"composer_input_background_color",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"hot_like_color",storageKey:null},r=[d,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null}],s={alias:null,args:null,concreteType:"MessengerThreadBackgroundAsset",kind:"LinkedField",name:"background_asset",plural:!1,selections:r,storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"message_text_color",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"message_border_color",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"message_border_width",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"inbound_message_text_color",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"inbound_message_border_color",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"inbound_message_border_width",storageKey:null},z={alias:null,args:null,kind:"ScalarField",name:"primary_button_background_color",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"title_bar_background_color",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"tertiary_text_color",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"reverse_gradients_for_radial",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"reaction_pill_background_color",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"secondary_text_color",storageKey:null},F={alias:null,args:null,kind:"ScalarField",name:"fallback_color",storageKey:null},G={alias:null,args:null,kind:"ScalarField",name:"gradient_colors",storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"normal_theme_id",storageKey:null};r={alias:null,args:null,concreteType:"MessengerThreadThemeIconAsset",kind:"LinkedField",name:"icon_asset",plural:!1,selections:r,storageKey:null};d=[d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,r,{alias:null,args:null,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"alternative_themes",plural:!0,selections:[d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,x,y,H,z,A,B,C,D,E,F,G,r],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWPThreadThemeProviderQuery",selections:[{alias:null,args:c,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"messenger_thread_theme",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"MWPThreadThemeQuery_Fragment",selections:d,args:null,argumentDefinitions:[]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWPThreadThemeProviderQuery",selections:[{alias:null,args:c,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"messenger_thread_theme",plural:!1,selections:d,storageKey:null}]},params:{id:b("MWPThreadThemeProviderQuery_facebookRelayOperation"),metadata:{},name:"MWPThreadThemeProviderQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWPThreadThemesFetchQPLLogger",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=0,i=c("qpl")._(25308538,"426");function a(){c("QPLUserFlow").start(i,{instanceKey:h});return h++}function b(a,b){b!=null?c("QPLUserFlow").endFailure(i,b,{instanceKey:a}):c("QPLUserFlow").endSuccess(i,{instanceKey:a})}function d(a,b,d){c("QPLUserFlow").addPoint(i,b,{instanceKey:a}),d!=null&&c("QPLUserFlow").addAnnotations(i,d,{instanceKey:a})}g.logThemesFetchStart=a;g.logThemesFetchEnd=b;g.logPoint=d}),98);
__d("MessengerThreadThemeGradientType",[],(function(a,b,c,d,e,f){a=Object.freeze({MESSAGE_BUBBLE_OUTBOUND:0,MESSAGE_BUBBLE_INBOUND:1,THREADVIEW_BACKGROUND:2,DELIVERY_RECEIPT:3,COMPOSER_CIRCLE_BUTTON:4,COMPOSER_SEND_BUTTON:5,EMPHASIS:6});f["default"]=a}),66);
__d("useMWPDarkModeTheme",["I64","LSIntEnum","MessengerAppColorMode","ReQL","ReQLSuspense","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){var e=d("react-compiler-runtime").c(4),g,j;e[0]!==a||e[1]!==b?(g=function(){return b==null?d("ReQL").empty():d("ReQL").fromTableAscending(a.tables.thread_themes).filter(function(a){return(h||(h=d("I64"))).equal(a.normalThemeId,b)&&(h||(h=d("I64"))).equal(a.appColorMode,(i||(i=d("LSIntEnum"))).ofNumber(c("MessengerAppColorMode").DARK))})},j=[a,b],e[0]=a,e[1]=b,e[2]=g,e[3]=j):(g=e[2],j=e[3]);return d("ReQLSuspense").useFirst(g,j,f.id+":25")}g["default"]=a}),98);
__d("MWPThreadThemeProvider.react",["CometRelay","I64","Int64Hooks","LSIntEnum","MWPThemeCSSProvider.react","MWPThreadThemeContext","MWPThreadThemeProviderQuery.graphql","MWPThreadThemesFetchQPLLogger","MessengerThreadThemeGradientType","ReQL","ReQLSuspense","cr:8933","defaultMWPThreadTheme","promiseDone","react","react-compiler-runtime","useCurrentDisplayMode","useMWPDarkModeTheme","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));e=l;e.useMemo;var n=e.useState;function o(a,e){var g=d("react-compiler-runtime").c(30),k=(i||(i=c("useReStore")))(),l=c("useCurrentDisplayMode")(),m,n;g[0]!==k||g[1]!==a?(m=function(){return a==null?d("ReQL").empty():d("ReQL").fromTableAscending(k.tables.thread_themes).getKeyRange(a)},n=[k,a],g[0]=k,g[1]=a,g[2]=m,g[3]=n):(m=g[2],n=g[3]);m=d("ReQLSuspense").useFirst(m,n,f.id+":40");n=d("MWPThemeCSSProvider.react").useIsThemeV2();var o=c("useMWPDarkModeTheme")(k,a),s=l==="dark"&&n&&o!=null?o:m;g[4]!==k||g[5]!==(s==null?void 0:s.fbid)?(l=function(){return(s==null?void 0:s.fbid)==null?d("ReQL").empty():d("ReQL").fromTableAscending(k.tables.gradient_colors).getKeyRange(s==null?void 0:s.fbid)},g[4]=k,g[5]=s==null?void 0:s.fbid,g[6]=l):l=g[6];n=s==null?void 0:s.fbid;g[7]!==k||g[8]!==n?(o=[k,n],g[7]=k,g[8]=n,g[9]=o):o=g[9];m=d("ReQLSuspense").useArray(l,o,f.id+":55");var t=d("CometRelay").useRelayEnvironment();g[10]!==t||g[11]!==s||g[12]!==a?(n=function(){if(s==null&&a!=null&&b("cr:8933")!=null){var e=d("MWPThreadThemesFetchQPLLogger").logThemesFetchStart();c("promiseDone")(d("CometRelay").fetchQuery(t,h!==void 0?h:h=b("MWPThreadThemeProviderQuery.graphql"),{id:(j||(j=d("I64"))).to_string(a)}).toPromise().then(function(a){return b("cr:8933").insertGraphQLThemeResponseIntoDatabase(a==null?void 0:a.messenger_thread_theme,e)}))}},g[10]=t,g[11]=s,g[12]=a,g[13]=n):n=g[13];g[14]!==t||g[15]!==k||g[16]!==s||g[17]!==a?(l=[a,s,t,k],g[14]=t,g[15]=k,g[16]=s,g[17]=a,g[18]=l):l=g[18];d("Int64Hooks").useEffectInt64(n,l);bb0:{if(s!=null){g[19]!==m?(o=m.filter(r),g[19]=m,g[20]=o):o=g[20];g[21]!==m?(n=m.filter(q),g[21]=m,g[22]=n):n=g[22];g[23]!==m?(l=m.filter(p),g[23]=m,g[24]=l):l=g[24];g[25]!==l||g[26]!==o||g[27]!==n||g[28]!==s?(m={backgroundGradientColors:o,incomingGradientColors:n,outgoingGradientColors:l,threadTheme:s},g[25]=l,g[26]=o,g[27]=n,g[28]=s,g[29]=m):m=g[29];l=m;break bb0}l=e}return l}function p(a){return(j||(j=d("I64"))).equal(a.type_,(k||(k=d("LSIntEnum"))).ofNumber(c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_OUTBOUND))}function q(a){return(j||(j=d("I64"))).equal(a.type_,(k||(k=d("LSIntEnum"))).ofNumber(c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_INBOUND))}function r(a){return(j||(j=d("I64"))).equal(a.type_,(k||(k=d("LSIntEnum"))).ofNumber(c("MessengerThreadThemeGradientType").THREADVIEW_BACKGROUND))}function a(a){var b=d("react-compiler-runtime").c(18),c=a.children,e=a.defaultTheme,f=a.themeFbid;a=n();var g=a[0],h=a[1],i;b[0]!==g||b[1]!==f?(a=function(){var a;return(a=g)!=null?a:f},i=[f,g],b[0]=g,b[1]=f,b[2]=a,b[3]=i):(a=b[2],i=b[3]);a=d("Int64Hooks").useMemoInt64(a,i);i=d("defaultMWPThreadTheme").useDefaultThemeWithColors();var j=o(a,(a=e)!=null?a:i);b[4]!==g||b[5]!==j.backgroundGradientColors||b[6]!==j.incomingGradientColors||b[7]!==j.outgoingGradientColors||b[8]!==j.threadTheme?(e=function(){return{backgroundGradientColors:j.backgroundGradientColors,incomingGradientColors:j.incomingGradientColors,outgoingGradientColors:j.outgoingGradientColors,previewId:g,setPreviewId:h,threadTheme:j.threadTheme}},b[4]=g,b[5]=j.backgroundGradientColors,b[6]=j.incomingGradientColors,b[7]=j.outgoingGradientColors,b[8]=j.threadTheme,b[9]=e):e=b[9];b[10]!==g||b[11]!==j?(a=[j,g],b[10]=g,b[11]=j,b[12]=a):a=b[12];i=d("Int64Hooks").useMemoInt64(e,a);b[13]!==c?(e=m.jsx(d("MWPThemeCSSProvider.react").MWPThemeCSSProvider,{children:c}),b[13]=c,b[14]=e):e=b[14];b[15]!==e||b[16]!==i?(a=m.jsx(d("MWPThreadThemeContext").MWPThreadThemeContext.Provider,{value:i,children:e}),b[15]=e,b[16]=i,b[17]=a):a=b[17];return a}g["default"]=a}),98);
__d("MWPThreadThemeQuery_AllThemesQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="26068956082718275"}),null);
__d("MWPThreadThemeQuery_AllThemesQuery.graphql",["MWPThreadThemeQuery_AllThemesQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"version"}],c=[{kind:"Variable",name:"version",variableName:"version"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"accessibility_label",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"app_color_mode",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"composer_background_color",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"background_gradient_colors",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"is_deprecated",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"title_bar_button_tint_color",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"inbound_message_gradient_colors",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"title_bar_text_color",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"composer_tint_color",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"title_bar_attribution_color",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"composer_input_background_color",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"hot_like_color",storageKey:null},r=[d,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null}],s={alias:null,args:null,concreteType:"MessengerThreadBackgroundAsset",kind:"LinkedField",name:"background_asset",plural:!1,selections:r,storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"message_text_color",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"message_border_color",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"message_border_width",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"inbound_message_text_color",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"inbound_message_border_color",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"inbound_message_border_width",storageKey:null},z={alias:null,args:null,kind:"ScalarField",name:"primary_button_background_color",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"title_bar_background_color",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"tertiary_text_color",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"reverse_gradients_for_radial",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"reaction_pill_background_color",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"secondary_text_color",storageKey:null},F={alias:null,args:null,kind:"ScalarField",name:"fallback_color",storageKey:null},G={alias:null,args:null,kind:"ScalarField",name:"gradient_colors",storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"normal_theme_id",storageKey:null};r={alias:null,args:null,concreteType:"MessengerThreadThemeIconAsset",kind:"LinkedField",name:"icon_asset",plural:!1,selections:r,storageKey:null};d=[d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,r,{alias:null,args:null,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"alternative_themes",plural:!0,selections:[d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,x,y,H,z,A,B,C,D,E,F,G,r],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWPThreadThemeQuery_AllThemesQuery",selections:[{alias:null,args:c,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"messenger_thread_themes",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"MWPThreadThemeQuery_Fragment",selections:d,args:null,argumentDefinitions:[]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWPThreadThemeQuery_AllThemesQuery",selections:[{alias:null,args:c,concreteType:"MessengerThreadTheme",kind:"LinkedField",name:"messenger_thread_themes",plural:!0,selections:d,storageKey:null}]},params:{id:b("MWPThreadThemeQuery_AllThemesQuery_facebookRelayOperation"),metadata:{},name:"MWPThreadThemeQuery_AllThemesQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
__d("MWPThreadThemeQuery_Fragment.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"MWPThreadThemeQuery_Fragment"};e.exports=a}),null);
__d("MWPThreadThemeQuery",["CometRelay","I64","LSDatabaseSingleton","MWPColorUtils","MWPThreadThemeQuery_AllThemesQuery.graphql","MWPThreadThemeQuery_Fragment.graphql","MWPThreadThemesFetchQPLLogger","MessengerAppColorMode","MessengerThreadThemeGradientType","Promise","asyncToGeneratorRuntime","nullthrows","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n,o=(l||d("react")).useEffect,p=h!==void 0?h:h=b("MWPThreadThemeQuery_Fragment.graphql");function q(a){return a==null?null:d("MWPColorUtils").hexToI64(a)}function r(a){switch(a){case"LIGHT":return(m||(m=d("I64"))).of_int32(c("MessengerAppColorMode").NORMAL);case"DARK":return(m||(m=d("I64"))).of_int32(c("MessengerAppColorMode").DARK)}return(m||(m=d("I64"))).of_int32(c("MessengerAppColorMode").NORMAL)}function s(a,b,c,d){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){for(e of e.entries()){var g=e[0],h=e[1];yield b.gradient_colors.put({color:c("nullthrows")(q(h)),gradientIndex:(m||(m=d("I64"))).of_int32(g+10*f),themeFbid:a,type_:m.of_int32(f)})}});return t.apply(this,arguments)}function a(a,b){var e;a=d("CometRelay").readInlineData(p,a);if(a==null)return[];e=[].concat((e=a==null?void 0:a.alternative_themes)!=null?e:[]);e.unshift(a);return e.map(function(a){var e,f=(m||(m=d("I64"))).of_string(c("nullthrows")(a.id));return{accessibilityLabel:(e=a.accessibility_label)!=null?e:"",appColorMode:r(a.app_color_mode),backgroundUrl:(e=a.background_asset)==null?void 0:(e=e.image)==null?void 0:e.uri,composerBackgroundColor:q(a.composer_background_color),composerInputBackgroundColor:q(a.composer_input_background_color),composerTintColor:q(a.composer_tint_color),description:a.description,fallbackColor:q(c("nullthrows")(a.fallback_color)),fbid:f,hotLikeColor:a.hot_like_color,iconUrl:(e=a.icon_asset)==null?void 0:(f=e.image)==null?void 0:f.uri,incomingMessageBorderColor:q(a.inbound_message_border_color),incomingMessageBorderWidth:a.inbound_message_border_width,incomingMessageTextColor:q(a.inbound_message_text_color),isDeprecated:!!a.is_deprecated,messageBorderColor:q(a.message_border_color),messageBorderWidth:a.message_border_width?(m||(m=d("I64"))).of_int32(a.message_border_width):void 0,messageTextColor:q(a.message_text_color),normalThemeId:m.of_string(c("nullthrows")(a.normal_theme_id)),primaryButtonBackgroundColor:q(a.primary_button_background_color),reactionPillBackgroundColor:q(a.reaction_pill_background_color),reverseGradiantsForRadial:!!a.reverse_gradients_for_radial,secondaryTextColor:q(a.secondary_text_color),tertiaryTextColor:q(a.tertiary_text_color),themeIdx:b!=null?(m||(m=d("I64"))).of_int32(b):(m||(m=d("I64"))).of_string(c("nullthrows")(a.id)),titlebarAttributionTextColor:q(a.title_bar_attribution_color),titlebarBackgroundColor:q(a.title_bar_background_color),titlebarButtonTintColor:q(a.title_bar_button_tint_color),titlebarTextColor:q(a.title_bar_text_color)}})}function u(a,b,c,d){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){var g;a=d("CometRelay").readInlineData(p,a);if(a==null){e!=null&&d("MWPThreadThemesFetchQPLLogger").logThemesFetchEnd(e,"themes_null");return}g=[].concat((g=a==null?void 0:a.alternative_themes)!=null?g:[]);g.push(a);for(a of g){var h;if(a==null)continue;g=(m||(m=d("I64"))).of_string(c("nullthrows")(a.id));yield s(g,b,a.background_gradient_colors,c("MessengerThreadThemeGradientType").THREADVIEW_BACKGROUND);yield s(g,b,a.gradient_colors,c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_OUTBOUND);yield s(g,b,a.inbound_message_gradient_colors,c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_INBOUND);yield b.thread_themes.put({accessibilityLabel:(h=a.accessibility_label)!=null?h:"",appColorMode:r(a.app_color_mode),backgroundUrl:(h=a.background_asset)==null?void 0:(h=h.image)==null?void 0:h.uri,composerBackgroundColor:q(a.composer_background_color),composerInputBackgroundColor:q(a.composer_input_background_color),composerTintColor:q(a.composer_tint_color),description:a.description,fallbackColor:q(c("nullthrows")(a.fallback_color)),fbid:g,hotLikeColor:a.hot_like_color,iconUrl:(h=a.icon_asset)==null?void 0:(g=h.image)==null?void 0:g.uri,incomingMessageBorderColor:q(a.inbound_message_border_color),incomingMessageBorderWidth:a.inbound_message_border_width,incomingMessageTextColor:q(a.inbound_message_text_color),isDeprecated:!!a.is_deprecated,messageBorderColor:q(a.message_border_color),messageBorderWidth:a.message_border_width?(m||(m=d("I64"))).of_int32(a.message_border_width):void 0,messageTextColor:q(a.message_text_color),normalThemeId:m.of_string(c("nullthrows")(a.normal_theme_id)),primaryButtonBackgroundColor:q(a.primary_button_background_color),reactionPillBackgroundColor:q(a.reaction_pill_background_color),reverseGradiantsForRadial:!!a.reverse_gradients_for_radial,secondaryTextColor:q(a.secondary_text_color),tertiaryTextColor:q(a.tertiary_text_color),themeIdx:f!=null?(m||(m=d("I64"))).of_int32(f):(m||(m=d("I64"))).of_string(c("nullthrows")(a.id)),titlebarAttributionTextColor:q(a.title_bar_attribution_color),titlebarBackgroundColor:q(a.title_bar_background_color),titlebarButtonTintColor:q(a.title_bar_button_tint_color),titlebarTextColor:q(a.title_bar_text_color)})}e!=null&&(d("MWPThreadThemesFetchQPLLogger").logPoint(e,"insert_themes_to_db_end"),d("MWPThreadThemesFetchQPLLogger").logThemesFetchEnd(e))});return v.apply(this,arguments)}function e(a,b){return w.apply(this,arguments)}function w(){w=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){d("MWPThreadThemesFetchQPLLogger").logPoint(b,"insert_themes_to_db_start");var c=(yield (n||(n=d("LSDatabaseSingleton"))).LSDatabaseSingleton);return c.runInTransaction(function(c){return u(a,c,b)},"readwrite",void 0,void 0,f.id+":412")});return w.apply(this,arguments)}function x(){var a=d("react-compiler-runtime").c(4),e=(k||(k=c("useReStore")))(),g=d("CometRelay").useLazyLoadQuery(i!==void 0?i:i=b("MWPThreadThemeQuery_AllThemesQuery.graphql"),{version:"default"}),h,l;a[0]!==g||a[1]!==e?(h=function(){c("promiseDone")(e.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield (j||(j=b("Promise"))).all(g.messenger_thread_themes.map(function(b,c){return u(b,a,void 0,c+1)}))});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":449"))},l=[g,e],a[0]=g,a[1]=e,a[2]=h,a[3]=l):(h=a[2],l=a[3]);o(h,l)}g.MWPThreadThemeQuery_Fragment=p;g.convertToLSThemes=a;g.insertGraphQLThemeResponseIntoDatabaseWithTxn=u;g.insertGraphQLThemeResponseIntoDatabase=e;g.useFetchAllThreadThemes=x}),98);
__d("MWPreloadedText",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=(h||d("react")).createContext;b=a({text:null});g["default"]=b}),98);
__d("MWV2AdminMsgArmadilloEphemeralChangeDuration.react",["MWAdminTextLayout.react","cr:7125","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var e=d("react-compiler-runtime").c(6);a=a.message;var f=a.adminMsgCtaTitle,g;e[0]!==a.threadKey||e[1]!==f?(g=f!=null&&b("cr:7125")!=null?i.jsx("div",babelHelpers["extends"]({className:"xz94kzr x1rg5ohu xo1l8bm"},{children:i.jsx(b("cr:7125"),{threadKey:a.threadKey,title:f})})):null,e[0]=a.threadKey,e[1]=f,e[2]=g):g=e[2];f=g;e[3]!==f||e[4]!==a?(g=i.jsx(c("MWAdminTextLayout.react"),{cta:f,message:a}),e[3]=f,e[4]=a,e[5]=g):g=e[5];return g}g["default"]=a}),98);
__d("MWV2AdminMsgBMGenAIConsumerDisclaimerLearnMore.react",["fbt","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(3);a=a.message;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(c("MWAdminMsgCtaLink.react"),{href:"https://www.facebook.com/legal/ai-terms",target:"_blank",children:h._(/*BTDS*/"__JHASH__0TSM4SpHjsx__JHASH__")}),b[0]=e):e=b[0];b[1]!==a?(e=j.jsx(c("MWAdminTextLayout.react"),{cta:e,message:a}),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),226);
__d("useMWInboxOpenChangeThemeDialog",["JSResourceForInteraction","MWEditThemeDialogRoot.entrypoint","MWEditThemeQplLogger","MWPBumpEntityKey","gkx","promiseDone","react","react-compiler-runtime","useAsyncReStore","useMWEntrypoint","useMWFalcoFeatureEventLogger","useMWPThreadTheme","useMWXEntryPointDialog","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(a,b){var e=d("react-compiler-runtime").c(10),f=c("useMWFalcoFeatureEventLogger")(a,b),g=c("useMWEntrypoint")(),h=c("useAsyncReStore")();b=c("useMWPThreadTheme")();var k=b.setPreviewId;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("JSResourceForInteraction")("MWEditThemeDialog.react").__setRef("useMWInboxOpenChangeThemeDialog"),e[0]=b):b=e[0];b=c("useMWXLazyDialog")(b);var l=b[0];e[1]===Symbol["for"]("react.memo_cache_sentinel")?(b={},e[1]=b):b=e[1];b=c("useMWXEntryPointDialog")(c("MWEditThemeDialogRoot.entrypoint"),b);var m=b[0];e[2]!==h||e[3]!==g||e[4]!==f||e[5]!==k||e[6]!==l||e[7]!==m||e[8]!==a?(b=function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","customise_section_change_theme"),f(g,"change_thread_theme"),c("promiseDone")(h,function(b){c("promiseDone")(b.tables.threads.get(a),function(a){if(a==null)return;if(c("gkx")("11175")){var b=d("MWEditThemeQplLogger").startEventAndReturnInstanceKey("MWInboxInfoEditTheme","v2");m({instanceKey:b,thread:a},function(){return k(j)})}else{b=d("MWEditThemeQplLogger").startEventAndReturnInstanceKey("MWInboxInfoEditTheme","v1");l({instanceKey:b,thread:a},function(){return k(i)})}})})},e[2]=h,e[3]=g,e[4]=f,e[5]=k,e[6]=l,e[7]=m,e[8]=a,e[9]=b):b=e[9];return b}function i(){}function j(){}g["default"]=a}),98);
__d("MWV2AdminMsgChangeTheme.react",["I64","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","ReQL","ReQLSuspense","justknobx","react","react-compiler-runtime","unrecoverableViolation","useMWInboxOpenChangeThemeDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(18),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];a=d("ReQLSuspense").useFirst(a,j,f.id+":27");j=(j=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.tables.threads).getKeyRange(e.threadKey)},[g,e],f.id+":37"))==null?void 0:j.threadType;if(j==null)throw c("unrecoverableViolation")("threadType should not be null when trying to open the change theme dialog at MWV2AdminMsgChangeTheme","comet_infra");var l=c("useMWInboxOpenChangeThemeDialog")(e.threadKey,j);if(a==null||j==null||!c("justknobx")._("3921")){var m;b[8]!==e?(m=k.jsx(c("MWAdminTextLayout.react"),{message:e}),b[8]=e,b[9]=m):m=b[9];return m}if(a==null||j==null){b[10]!==e?(m=k.jsx(c("MWAdminTextLayout.react"),{message:e}),b[10]=e,b[11]=m):m=b[11];return m}j=a==null?void 0:a.title;b[12]!==l||b[13]!==j?(m=j!=null?k.jsx(c("MWAdminMsgCtaLink.react"),{onClick:l,children:j}):null,b[12]=l,b[13]=j,b[14]=m):m=b[14];a=m;b[15]!==a||b[16]!==e?(l=k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e}),b[15]=a,b[16]=e,b[17]=l):l=b[17];return l}g["default"]=a}),98);
__d("MWV2AdminMsgDMLearnMore.react",["fbt","IGDDisappearingMessagesStrings","MWAdminTextLayout.react","MWXLink.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(3);a=a.message;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(c("MWXLink.react"),{href:d("IGDDisappearingMessagesStrings").LEARN_MORE_LINK,target:"_blank",children:h._(/*BTDS*/"__JHASH__t0_WbzixXKp__JHASH__")}),b[0]=e):e=b[0];b[1]!==a?(e=j.jsx(c("MWAdminTextLayout.react"),{cta:e,message:a}),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),226);
__d("XPolarisDirectInboxControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/direct/inbox/",Object.freeze({initial_e2ee_toggle_position:!1,recurring_notification:!1}),["/direct/t/{?thread_key}/","/direct/{?subpage}/{?folder}/"],void 0);b=a;g["default"]=b}),98);
__d("useAdminMessageCTATitleLS",["ReQL","ReQLSuspense","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var c=d("react-compiler-runtime").c(7),e;c[0]!==a.tables.admin_message_ctas||c[1]!==b.messageId||c[2]!==b.threadKey?(e=function(){return d("ReQL").fromTableAscending(a.tables.admin_message_ctas).getKeyRange(b.threadKey,b.messageId)},c[0]=a.tables.admin_message_ctas,c[1]=b.messageId,c[2]=b.threadKey,c[3]=e):e=c[3];var g;c[4]!==a||c[5]!==b?(g=[a,b],c[4]=a,c[5]=b,c[6]=g):g=c[6];c=d("ReQLSuspense").useFirst(e,g,f.id+":26");return c==null?void 0:c.title}g["default"]=a}),98);
__d("useAdminMessageCTATitleProvider",["qex","react-compiler-runtime","useAdminMessageCTATitleLS","useMAWSeparateReadsSelector"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){var f=d("react-compiler-runtime").c(2);if(f[0]!==e){var g;g=e&&((g=c("qex")._("62"))!=null?g:!1);f[0]=e;f[1]=g}else g=f[1];e=g;f=c("useAdminMessageCTATitleLS")(a,b);g=d("useMAWSeparateReadsSelector").useMAWSeparateReadsSelector("Title",b.adminMsgCtaTitle,e?void 0:f,e);return g}g["default"]=a}),98);
__d("MWV2AdminMsgE2EECutoverRollback.react",["CurrentEnvironment","I64","MWAdminTextLayout.react","MWInboxRouteBuilder","MWXLink.react","ReQL","ReQLSuspense","WALoggerDeferred","XPolarisDirectInboxControllerRouteBuilder","promiseDone","react","react-strict-dom","useAdminMessageCTATitleProvider","useIsSecureMessage","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Failed to generate the url, thread is missing in mi_act_mapping table for threadKey ",""]);k=function(){return a};return a}var l=j||d("react"),m={adminTextCta:{color:"xz94kzr",display:"x1rg5ohu",fontWeight:"xk50ysn",$$css:!0}};function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.tables.mi_act_mapping_table).getKeyRange(b.threadKey).map(function(a){return(i||(i=d("I64"))).to_string(a.jid)})},[e,b.threadKey],f.id+":43");var g;a!=null?c("CurrentEnvironment").instagramdotcom?g=c("XPolarisDirectInboxControllerRouteBuilder").buildExtraURL("/direct/t/{?thread_key}/",{thread_key:a}):g=d("MWInboxRouteBuilder").buildURL({thread_key:a}):(c("promiseDone")(d("WALoggerDeferred").LOG(k(),(i||(i=d("I64"))).to_string(b.threadKey))),g=d("MWInboxRouteBuilder").buildHomeURL());a=c("useIsSecureMessage")(e,b,{fallbackIsSecure:!0});a=c("useAdminMessageCTATitleProvider")(e,b,a);g=a!=null?l.jsx(d("react-strict-dom").html.div,{style:m.adminTextCta,children:l.jsx(c("MWXLink.react"),{href:g,target:"_self",children:a})}):null;return l.jsx(c("MWAdminTextLayout.react"),{cta:g,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWV2AdminMsgE2EEDescription.react",["fbt","CurrentEnvironment","JSResourceForInteraction","MDSLockSvgIcon.react","MWAdminTextLayout.react","MWXLink.react","XInstagramHelpDotComContentControllerRouteBuilder","react","react-compiler-runtime","useAdminMessageCTATitleProvider","useIsSecureMessage","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MAWLearnMoreCutoverDialog.react").__setRef("MWV2AdminMsgE2EEDescription.react"),m=h._(/*BTDS*/"__JHASH__8YEBJluoCs5__JHASH__");function a(a){var b=d("react-compiler-runtime").c(12);a=a.message;var e=(i||(i=c("useReStore")))();if(b[0]===Symbol["for"]("react.memo_cache_sentinel")){var f;f=(f=c("XInstagramHelpDotComContentControllerRouteBuilder").buildUri({cms_id:"491565145294150"}).setDomain("help.instagram.com"))==null?void 0:(f=f.setProtocol("https"))==null?void 0:f.toString();b[0]=f}else f=b[0];f=f;var g;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g={},b[1]=g):g=b[1];var h=g;g=c("useMWXLazyDialog")(l);var j=g[0];b[2]!==j?(g=function(){return j(h)},b[2]=j,b[3]=g):g=b[3];g=g;var n;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(n={fallbackIsSecure:!0},b[4]=n):n=b[4];n=c("useIsSecureMessage")(e,a,n);e=c("useAdminMessageCTATitleProvider")(e,a,n);b[5]!==g||b[6]!==e?(n=e!=null?c("CurrentEnvironment").instagramdotcom?k.jsx(c("MWXLink.react"),{href:f,target:"_blank",children:m}):k.jsx("div",babelHelpers["extends"]({className:"xz94kzr x1rg5ohu xk50ysn"},{children:k.jsx(c("MWXLink.react"),{onClick:g,target:"_blank",children:e})})):null,b[5]=g,b[6]=e,b[7]=n):n=b[7];f=n;b[8]===Symbol["for"]("react.memo_cache_sentinel")?(g=k.jsx("div",babelHelpers["extends"]({className:"x1o583il x1rg5ohu x177n6bx x1n2onr6"},{children:k.jsx(c("MDSLockSvgIcon.react"),{color:"tertiary",size:16})})),b[8]=g):g=b[8];b[9]!==f||b[10]!==a?(e=k.jsxs(k.Fragment,{children:[g,k.jsx(c("MWAdminTextLayout.react"),{cta:f,message:a})]}),b[9]=f,b[10]=a,b[11]=e):e=b[11];return e}g["default"]=a}),226);
__d("MWV2AdminMsgE2EEUKOSA.react",["MWAdminTextLayout.react","MWXLink.react","react","react-compiler-runtime","useAdminMessageCTATitleProvider","useIsSecureMessage","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k="https://www.messenger.com/help/1145318292241859/?helpref=uk_lm";function a(a){var b=d("react-compiler-runtime").c(7);a=a.message;var e=(h||(h=c("useReStore")))(),f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={fallbackIsSecure:!0},b[0]=f):f=b[0];f=c("useIsSecureMessage")(e,a,f);e=c("useAdminMessageCTATitleProvider")(e,a,f);b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"xxq4lyh x1rg5ohu xk50ysn"},b[1]=f):f=b[1];b[2]!==e?(f=j.jsx("div",babelHelpers["extends"]({},f,{children:j.jsx(c("MWXLink.react"),{href:k,children:e})})),b[2]=e,b[3]=f):f=b[3];e=f;b[4]!==e||b[5]!==a?(f=j.jsx(c("MWAdminTextLayout.react"),{cta:e,message:a}),b[4]=e,b[5]=a,b[6]=f):f=b[6];return f}g["default"]=a}),98);
__d("MWV2AdminMsgICDC.react",["fbt","MWAdminTextLayout.react","MWXLink.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k="https://www.facebook.com/help/147596532316790";function a(a){var b=d("react-compiler-runtime").c(3);a=a.message;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(d("react-strict-dom").html.div,{children:j.jsx(c("MWXLink.react"),{color_DEPRECATED:"blueLink",href:k,target:"_blank",children:h._(/*BTDS*/"__JHASH__t0_WbzixXKp__JHASH__")})}),b[0]=e):e=b[0];b[1]!==a?(e=j.jsx(c("MWAdminTextLayout.react"),{cta:e,message:a}),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),226);
__d("MWV2AdminMsgNotificationMessageManageNotifications.react",["I64","MWAdminTextLayout.react","MWNotificationMessageManageNotificationsAdminMsgCta.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(17),e=a.isOptOut,g=a.message,j=(h||(h=c("useReStore")))();b[0]!==j.tables.admin_message_ctas||b[1]!==g.adminMsgCtaId||b[2]!==g.messageId||b[3]!==g.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(j.tables.admin_message_ctas).getKeyRange(g.threadKey,g.messageId,(a=g.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=j.tables.admin_message_ctas,b[1]=g.adminMsgCtaId,b[2]=g.messageId,b[3]=g.threadKey,b[4]=a):a=b[4];var l;b[5]!==j||b[6]!==g?(l=[j,g],b[5]=j,b[6]=g,b[7]=l):l=b[7];a=d("ReQLSuspense").useFirst(a,l,f.id+":35");l=g.adminMsgCtaTitle;var m=a==null?void 0:a.targetId,n;b[8]!==a||b[9]!==l||b[10]!==e||b[11]!==g.threadKey||b[12]!==m?(n=l!=null&&a!=null&&m!=null?k.jsx("div",babelHelpers["extends"]({className:"x1rg5ohu x1s688f"},{children:k.jsx(c("MWNotificationMessageManageNotificationsAdminMsgCta.react"),{isOptOut:e,targetId:m,threadKey:g.threadKey,title:l})})):null,b[8]=a,b[9]=l,b[10]=e,b[11]=g.threadKey,b[12]=m,b[13]=n):n=b[13];a=n;b[14]!==a||b[15]!==g?(l=k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:g}),b[14]=a,b[15]=g,b[16]=l):l=b[16];return l}g["default"]=a}),98);
__d("P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("3008");b=d("FalcoLoggerInternal").create("p2b_differentiation_privacy_disclosure_open_click_web",a);e=b;g["default"]=e}),98);
__d("MWV2AdminMsgP2BPrivacyDisclosure.react",["I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent","ReQL","ReQLSuspense","react","react-compiler-runtime","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPrivacyDisclosureDialog.react").__setRef("MWV2AdminMsgP2BPrivacyDisclosure.react");function a(a){var b=d("react-compiler-runtime").c(15),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];a=d("ReQLSuspense").useFirst(a,j,f.id+":31");j=c("useMWXLazyDialog")(l);var n=j[0];j=a==null?void 0:a.title;b[8]!==e.threadKey||b[9]!==n||b[10]!==j?(a=j!=null?k.jsx(c("MWXLink.react"),{onClick:function(){n({entryPoint:"ADMIN_TEXT",threadKey:e.threadKey},m),c("P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent").log(function(){return{consumer_id:"0",entry_point:"ADMIN_TEXT",page_id:(i||(i=d("I64"))).to_string(e.threadKey)}})},children:j}):null,b[8]=e.threadKey,b[9]=n,b[10]=j,b[11]=a):a=b[11];j=a;b[12]!==j||b[13]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{cta:j,message:e}),b[12]=j,b[13]=e,b[14]=a):a=b[14];return a}function m(){}g["default"]=a}),98);
__d("MWV2AdminMsgPostMessageRemoveActions.react",["C4GFalcoLoggerDeferred","I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));i.useCallback;var l=c("JSResourceForInteraction")("MWCMAdmodRemoveMessageOtherActionsDialog.react").__setRef("MWV2AdminMsgPostMessageRemoveActions.react");function m(a){var b=d("react-compiler-runtime").c(7),e=a.senderId,f=a.threadKey;a=a.title;var g=c("useMWXLazyDialog")(l),h=g[0];b[0]!==e||b[1]!==h||b[2]!==f?(g=function(){d("C4GFalcoLoggerDeferred").logC4GEngagementFalcoEvent({action:"tap",event:"message_removed_more_actions_sheet_rendered",surface:"thread_view",thread_id:(j||(j=d("I64"))).to_string(f)}),h({senderId:e,threadKey:f})},b[0]=e,b[1]=h,b[2]=f,b[3]=g):g=b[3];g=g;var i;b[4]!==g||b[5]!==a?(i=k.jsx(c("MWXLink.react"),{color_DEPRECATED:"highlight",onClick:g,role:"button",children:a}),b[4]=g,b[5]=a,b[6]=i):i=b[6];return i}function a(a){var b=d("react-compiler-runtime").c(17),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(j||(j=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var i;b[5]!==g||b[6]!==e?(i=[g,e],b[5]=g,b[6]=e,b[7]=i):i=b[7];a=d("ReQLSuspense").useFirst(a,i,f.id+":63");i=a==null?void 0:a.title;a=a==null?void 0:a.actionUrl;var l=null;if(a!=null){if(b[8]!==a){var n=new URL(a);n=n.searchParams.get("removed_msg_sender_id");b[8]=a;b[9]=n}else n=b[9];l=n}b[10]!==e.threadKey||b[11]!==l||b[12]!==i?(a=l!=null&&i!=null?k.jsx(m,{senderId:l,threadKey:e.threadKey,title:i}):null,b[10]=e.threadKey,b[11]=l,b[12]=i,b[13]=a):a=b[13];n=a;b[14]!==n||b[15]!==e?(l=k.jsx(c("MWAdminTextLayout.react"),{cta:n,message:e}),b[14]=n,b[15]=e,b[16]=l):l=b[16];return l}g["default"]=a}),98);
__d("MWV2AdminMsgServiceBookingLegalDisclaimer.react",["I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPrivacyDisclosureDialog.react").__setRef("MWV2AdminMsgServiceBookingLegalDisclaimer.react");function a(a){var b=d("react-compiler-runtime").c(15),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];a=d("ReQLSuspense").useFirst(a,j,f.id+":32");j=c("useMWXLazyDialog")(l);var n=j[0];j=a==null?void 0:a.title;b[8]!==e.threadKey||b[9]!==n||b[10]!==j?(a=j!=null?k.jsx(c("MWXLink.react"),{onClick:function(){return n({entryPoint:"ADMIN_TEXT",threadKey:e.threadKey},m)},children:j}):null,b[8]=e.threadKey,b[9]=n,b[10]=j,b[11]=a):a=b[11];j=a;b[12]!==j||b[13]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{cta:j,message:e}),b[12]=j,b[13]=e,b[14]=a):a=b[14];return a}function m(){}g["default"]=a}),98);
__d("MWV2AdminMsgShowPinnedMessages.react",["JSResourceForInteraction","LSMessagingThreadTypeUtil","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","MWPBumpEntityKey","MessengerWebUXLogger","ReQL","ReQLSuspense","react","react-compiler-runtime","useAdminMessageCTATitleProvider","useIsSecureMessage","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=c("JSResourceForInteraction")("MWPinnedMessagesDialog.react").__setRef("MWV2AdminMsgShowPinnedMessages.react");function a(a){var b=d("react-compiler-runtime").c(21),e=a.message,g=(h||(h=c("useReStore")))();a=c("useMWXLazyDialog")(k);var i=a[0];b[0]!==g.tables.threads||b[1]!==e.threadKey?(a=function(){return d("ReQL").fromTableAscending(g.tables.threads,["threadType"]).getKeyRange(e.threadKey)},b[0]=g.tables.threads,b[1]=e.threadKey,b[2]=a):a=b[2];var m;b[3]!==g||b[4]!==e.threadKey?(m=[g,e.threadKey],b[3]=g,b[4]=e.threadKey,b[5]=m):m=b[5];var n=d("ReQLSuspense").useFirst(a,m,f.id+":36"),o=c("MessengerWebUXLogger").useInteractionLogger();b[6]!==o||b[7]!==e.threadKey||b[8]!==i||b[9]!==(n==null?void 0:n.threadType)?(a=function(){var a={eventName:"open_view_pinned_messages_dialog",threadKey:e.threadKey,threadType:n==null?void 0:n.threadType};o==null?void 0:o(a);d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw_pinned_messages","see_all_admin_msg_cta");return i({threadKey:e.threadKey},l)},b[6]=o,b[7]=e.threadKey,b[8]=i,b[9]=n==null?void 0:n.threadType,b[10]=a):a=b[10];m=a;b[11]!==n?(a=n!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(n==null?void 0:n.threadType),b[11]=n,b[12]=a):a=b[12];var p;b[13]!==a?(p={fallbackIsSecure:a},b[13]=a,b[14]=p):p=b[14];a=c("useIsSecureMessage")(g,e,p);p=c("useAdminMessageCTATitleProvider")(g,e,a);b[15]!==m||b[16]!==p?(a=p!=null?j.jsx(c("MWAdminMsgCtaLink.react"),{onClick:m,children:p}):null,b[15]=m,b[16]=p,b[17]=a):a=b[17];m=a;b[18]!==m||b[19]!==e?(p=j.jsx(c("MWAdminTextLayout.react"),{cta:m,message:e}),b[18]=m,b[19]=e,b[20]=p):p=b[20];return p}function l(){}g["default"]=a}),98);
__d("MWV2AdminMsgSupportDialogCTA.react",["AdsMessengerContext.react","I64","MWAdminTextLayout.react","MWXLink.react","MWXText.react","ReQL","ReQLSuspense","promiseDone","react","react-compiler-runtime","useJSON","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(15),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];a=d("ReQLSuspense").useFirst(a,j,f.id+":29");j=d("AdsMessengerContext.react").useAdsMessengerContext();var l=j.showAdsAISMAGModal;j=a==null?void 0:a.actionContentBlob;var m=c("useJSON")((j=j)!=null?j:"{}");if(l===void 0)return null;j=a==null?void 0:a.title;b[8]!==m||b[9]!==l||b[10]!==j?(a=j!=null?k.jsx(c("MWXText.react"),{color:"blueLink",type:"meta4",children:k.jsx(c("MWXLink.react"),{onClick:function(){return c("promiseDone")(l({overlay_view_type:m.overlay_view_type,use_case:m.use_case,use_case_params:m.use_case_params}))},children:j})}):null,b[8]=m,b[9]=l,b[10]=j,b[11]=a):a=b[11];j=a;b[12]!==j||b[13]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{cta:j,message:e}),b[12]=j,b[13]=e,b[14]=a):a=b[14];return a}g["default"]=a}),98);
__d("MWV2AdminMsgViewMessagesDualThreadCutover.react",["I64","LSFactory","LSIntEnum","LSPlatformWaitForTaskCompletion","LSVerifyThreadRowExistsStoredProcedure","MWAdminTextLayout.react","MWXLink.react","MWXText.react","ReQL","WALoggerDeferred","asyncToGeneratorRuntime","promiseDone","react","useAsyncReStore","useMWNavigation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Dual-thread-cutover] Failed to navitage to open messages thread ",""]);k=function(){return a};return a}var l=h||(h=d("react")),m=h.useCallback;function a(a){var e=a.message,f=c("useAsyncReStore")(),g=c("useMWNavigation")();a=m(function(){c("promiseDone")(f,function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b,f=(b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.mi_act_mapping_table).getKeyRange(e.threadKey))))==null?void 0:b.jid;f&&(yield c("LSPlatformWaitForTaskCompletion")(a,function(a){return c("LSVerifyThreadRowExistsStoredProcedure")(c("LSFactory")(a),{syncGroup:(i||(i=d("LSIntEnum"))).ofNumber(1),threadKey:f,threadType:i.ofNumber(1)})},"readwrite"));b=f?yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(f)):null;b?g.openTabOrInbox({clientThreadKey:b.clientThreadKey,threadKey:b.threadKey,threadType:b.threadType},"preCutoverThread"):void d("WALoggerDeferred").LOG(k(),(j||(j=d("I64"))).to_string(e.threadKey))});return function(b){return a.apply(this,arguments)}}())},[f,e.threadKey,g]);var h=e.adminMsgCtaTitle;a=h!=null?l.jsx(c("MWXLink.react"),{onClick:a,role:"button",children:l.jsx(c("MWXText.react"),{color:"blueLink",type:"body4",children:h})}):null;return l.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWV2AdminMsgViewPoll.react",["I64","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","ReQL","ReQLSuspense","justknobx","react","react-compiler-runtime","useMWChatPollXMAActionHandler","useMWHasPollsVotingEnabled","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));j.useCallback;function a(a){var b=d("react-compiler-runtime").c(20),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];var l=d("ReQLSuspense").useFirst(a,j,f.id+":28");a=c("useMWHasPollsVotingEnabled")(e.threadKey);var m=c("useMWChatPollXMAActionHandler")();b[8]!==(l==null?void 0:l.targetId)||b[9]!==(l==null?void 0:l.targetTitle)||b[10]!==m?(j=function(){m(l==null?void 0:l.targetId,l==null?void 0:l.targetTitle)},b[8]=l==null?void 0:l.targetId,b[9]=l==null?void 0:l.targetTitle,b[10]=m,b[11]=j):j=b[11];l==null?void 0:l.targetId;l==null?void 0:l.targetTitle;j=j;if(!c("justknobx")._("1987")||!a||l==null){b[12]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{message:e}),b[12]=e,b[13]=a):a=b[13];return a}a=l==null?void 0:l.title;var n;b[14]!==j||b[15]!==a?(n=a!=null?k.jsx(c("MWAdminMsgCtaLink.react"),{onClick:j,children:a}):null,b[14]=j,b[15]=a,b[16]=n):n=b[16];j=n;b[17]!==j||b[18]!==e?(a=k.jsx(c("MWAdminTextLayout.react"),{cta:j,message:e}),b[17]=j,b[18]=e,b[19]=a):a=b[19];return a}g["default"]=a}),98);
__d("MWV2AdminMsgWebUrl.react",["AdsMessengerContext.react","I64","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useContext;function a(a){var b=d("react-compiler-runtime").c(15),e=a.message,g=(h||(h=c("useReStore")))();b[0]!==g.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(g.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=g.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var j;b[5]!==g||b[6]!==e?(j=[g,e],b[5]=g,b[6]=e,b[7]=j):j=b[7];a=d("ReQLSuspense").useFirst(a,j,f.id+":26");j=l(d("AdsMessengerContext.react").AdsMessengerContext);var m=a==null?void 0:a.title;a=a==null?void 0:a.actionUrl;j=(j==null?void 0:j.messengerLinkColor)||"primary";var n;b[8]!==a||b[9]!==j||b[10]!==m?(n=m!=null&&a!=null?k.jsx(c("MWXLink.react"),{color_DEPRECATED:j,href:a,target:"_blank",children:m}):null,b[8]=a,b[9]=j,b[10]=m,b[11]=n):n=b[11];a=n;b[12]!==a||b[13]!==e?(j=k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e}),b[12]=a,b[13]=e,b[14]=j):j=b[14];return j}g["default"]=a}),98);
__d("MWV2SBGProactiveChatMutationUrl.react",["CometRelay","I64","LWICometProactiveChatOptInMutation.react","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(17),e=a.message,g=a.opted_in,j=d("CometRelay").useRelayEnvironment(),n=(h||(h=c("useReStore")))();b[0]!==n.tables.admin_message_ctas||b[1]!==e.adminMsgCtaId||b[2]!==e.messageId||b[3]!==e.threadKey?(a=function(){var a;return d("ReQL").fromTableAscending(n.tables.admin_message_ctas).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},b[0]=n.tables.admin_message_ctas,b[1]=e.adminMsgCtaId,b[2]=e.messageId,b[3]=e.threadKey,b[4]=a):a=b[4];var o;b[5]!==n||b[6]!==e?(o=[n,e],b[5]=n,b[6]=e,b[7]=o):o=b[7];a=d("ReQLSuspense").useFirst(a,o,f.id+":32");a=(o=a==null?void 0:a.title)!=null?o:"";b[8]!==j||b[9]!==g?(o=function(){return d("LWICometProactiveChatOptInMutation.react").commitProactiveChatOptInMutation({entryPoint:"sbg_messenger_xmat",environment:j,optInValue:g,setLoading:m,setOptedIn:l})},b[8]=j,b[9]=g,b[10]=o):o=b[10];o=o;var p;b[11]!==a||b[12]!==o?(p=a!=null?k.jsx(c("MWAdminMsgCtaLink.react"),{onClick:o,children:a}):null,b[11]=a,b[12]=o,b[13]=p):p=b[13];a=p;b[14]!==a||b[15]!==e?(o=k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e}),b[14]=a,b[15]=e,b[16]=o):o=b[16];return o}function l(){}function m(){}g["default"]=a}),98);
__d("MWV2ChatAdminMessage.react",["MWAdminTextLayout.react","MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react","MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react","MWV2AdminMsgArmadilloEphemeralChangeDuration.react","MWV2AdminMsgBMGenAIConsumerDisclaimerLearnMore.react","MWV2AdminMsgChangeTheme.react","MWV2AdminMsgDMLearnMore.react","MWV2AdminMsgE2EECutoverRollback.react","MWV2AdminMsgE2EEDescription.react","MWV2AdminMsgE2EEUKOSA.react","MWV2AdminMsgICDC.react","MWV2AdminMsgNotificationMessageManageNotifications.react","MWV2AdminMsgP2BPrivacyDisclosure.react","MWV2AdminMsgPostMessageRemoveActions.react","MWV2AdminMsgServiceBookingLegalDisclaimer.react","MWV2AdminMsgShowPinnedMessages.react","MWV2AdminMsgSupportDialogCTA.react","MWV2AdminMsgViewMessagesDualThreadCutover.react","MWV2AdminMsgViewPoll.react","MWV2AdminMsgWebUrl.react","MWV2SBGProactiveChatMutationUrl.react","MWXText.react","gkx","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={color:{color:"x186z157",fontWeight:"xk50ysn",$$css:!0},container:{paddingTop:"xyamay9",paddingBottom:"x1l90r2v",paddingStart:"x5ib6vp",paddingEnd:"xc73u3c",paddingLeft:null,paddingRight:null,$$css:!0},containerThatPrecedesAdminMessage:{paddingBottom:"x1a8lsjc",$$css:!0},containerThatProceedsAdminMessage:{paddingTop:"x889kno",$$css:!0},content:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1ekjcvx",textAlign:"x2b8uid",wordBreak:"x13faqbe",$$css:!0}};function k(a){if(a!=null)return a.isAdminMessage;else return!1}function l(a){var b=d("react-compiler-runtime").c(8),c=a.children,e=a.nextMessage;a=a.prevMessage;a=k(a)?j.containerThatProceedsAdminMessage:!1;e=k(e)?j.containerThatPrecedesAdminMessage:!1;var f;b[0]!==a||b[1]!==e?(f=[j.container,a,e],b[0]=a,b[1]=e,b[2]=f):f=b[2];b[3]!==c?(a=i.jsx(d("react-strict-dom").html.div,{style:j.content,children:c}),b[3]=c,b[4]=a):a=b[4];b[5]!==f||b[6]!==a?(e=i.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,style:f,children:a}),b[5]=f,b[6]=a,b[7]=e):e=b[7];return e}function m(a){var b=d("react-compiler-runtime").c(50);a=a.message;bb0:switch(a.adminMsgCtaType){case"admin_msg_armadillo_ephemeral_change_duration":var e;b[0]!==a?(e=i.jsx(c("MWV2AdminMsgArmadilloEphemeralChangeDuration.react"),{message:a}),b[0]=a,b[1]=e):e=b[1];return e;case"admin_msg_dual_thread_cutover":b[2]!==a?(e=i.jsx(c("MWV2AdminMsgViewMessagesDualThreadCutover.react"),{message:a}),b[2]=a,b[3]=e):e=b[3];return e;case"admin_msg_web_url":b[4]!==a?(e=i.jsx(c("MWV2AdminMsgWebUrl.react"),{message:a}),b[4]=a,b[5]=e):e=b[5];return e;case"admin_msg_sbg_proactive_chat_opt_in":b[6]!==a?(e=i.jsx(c("MWV2SBGProactiveChatMutationUrl.react"),{message:a,opted_in:!0}),b[6]=a,b[7]=e):e=b[7];return e;case"admin_msg_sbg_proactive_chat_opt_out":b[8]!==a?(e=i.jsx(c("MWV2SBGProactiveChatMutationUrl.react"),{message:a,opted_in:!1}),b[8]=a,b[9]=e):e=b[9];return e;case"admin_msg_p2b_privacy_disclosure":if(c("gkx")("24144")){b[10]!==a?(e=i.jsx(c("MWV2AdminMsgP2BPrivacyDisclosure.react"),{message:a}),b[10]=a,b[11]=e):e=b[11];return e}else break bb0;case"admin_notification_messages_opt_out":b[12]!==a?(e=i.jsx(c("MWV2AdminMsgNotificationMessageManageNotifications.react"),{isOptOut:!0,message:a}),b[12]=a,b[13]=e):e=b[13];return e;case"admin_notification_messages_opt_in":b[14]!==a?(e=i.jsx(c("MWV2AdminMsgNotificationMessageManageNotifications.react"),{isOptOut:!1,message:a}),b[14]=a,b[15]=e):e=b[15];return e;case"admin_msg_thread_level_cutover":b[16]!==a?(e=i.jsx(c("MWV2AdminMsgE2EEDescription.react"),{message:a}),b[16]=a,b[17]=e):e=b[17];return e;case"admin_msg_e2ee_thread":return null;case"admin_msg_cutover_rollback":b[18]!==a?(e=i.jsx(c("MWV2AdminMsgE2EECutoverRollback.react"),{message:a}),b[18]=a,b[19]=e):e=b[19];return e;case"admin_msg_e2ee_uk_osa":b[20]!==a?(e=i.jsx(c("MWV2AdminMsgE2EEUKOSA.react"),{message:a}),b[20]=a,b[21]=e):e=b[21];return e;case"xmat_instant_game_bot_message_subscribe":b[22]!==a?(e=i.jsx(c("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react"),{message:a,shouldSubscribe:!0}),b[22]=a,b[23]=e):e=b[23];return e;case"xmat_instant_game_bot_message_unsubscribe":b[24]!==a?(e=i.jsx(c("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react"),{message:a,shouldSubscribe:!1}),b[24]=a,b[25]=e):e=b[25];return e;case"admin_msg_view_pin_msgs_v2":b[26]!==a?(e=i.jsx(c("MWV2AdminMsgShowPinnedMessages.react"),{message:a}),b[26]=a,b[27]=e):e=b[27];return e;case"xmat_instant_game_custom_update_message_mute":b[28]!==a?(e=i.jsx(c("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react"),{message:a,shouldMute:!0}),b[28]=a,b[29]=e):e=b[29];return e;case"xmat_instant_game_custom_update_message_unmute":b[30]!==a?(e=i.jsx(c("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react"),{message:a,shouldMute:!1}),b[30]=a,b[31]=e):e=b[31];return e;case"admin_message_service_booking_legal_disclaimer":b[32]!==a?(e=i.jsx(c("MWV2AdminMsgServiceBookingLegalDisclaimer.react"),{message:a}),b[32]=a,b[33]=e):e=b[33];return e;case"admin_msg_admod_post_msg_remove_actions":b[34]!==a?(e=i.jsx(c("MWV2AdminMsgPostMessageRemoveActions.react"),{message:a}),b[34]=a,b[35]=e):e=b[35];return e;case"admin_msg_change_theme":b[36]!==a?(e=i.jsx(c("MWV2AdminMsgChangeTheme.react"),{message:a}),b[36]=a,b[37]=e):e=b[37];return e;case"admin_msg_poll_details":b[38]!==a?(e=i.jsx(c("MWV2AdminMsgViewPoll.react"),{message:a}),b[38]=a,b[39]=e):e=b[39];return e;case"admin_msg_icdc":b[40]!==a?(e=i.jsx(c("MWV2AdminMsgICDC.react"),{message:a}),b[40]=a,b[41]=e):e=b[41];return e;case"admin_msg_ig_dm_learn_more":b[42]!==a?(e=i.jsx(c("MWV2AdminMsgDMLearnMore.react"),{message:a}),b[42]=a,b[43]=e):e=b[43];return e;case"admin_msg_bm_genai_consumer_disclaimer_learn_more":b[44]!==a?(e=i.jsx(c("MWV2AdminMsgBMGenAIConsumerDisclaimerLearnMore.react"),{message:a}),b[44]=a,b[45]=e):e=b[45];return e;case"support_open_dialog":b[46]!==a?(e=i.jsx(c("MWV2AdminMsgSupportDialogCTA.react"),{message:a}),b[46]=a,b[47]=e):e=b[47];return e}b[48]!==a?(e=i.jsx(c("MWAdminTextLayout.react"),{message:a}),b[48]=a,b[49]=e):e=b[49];return e}function a(a){var b=d("react-compiler-runtime").c(6),e=a.message,f=a.nextMessage;a=a.prevMessage;if(e.adminMsgCtaType==="admin_msg_e2ee_thread")return null;var g;b[0]!==e?(g=i.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:i.jsx(d("react-strict-dom").html.div,{style:j.color,children:i.jsx(m,{message:e})})}),b[0]=e,b[1]=g):g=b[1];b[2]!==f||b[3]!==a||b[4]!==g?(e=i.jsx(l,{nextMessage:f,prevMessage:a,children:g}),b[2]=f,b[3]=a,b[4]=g,b[5]=e):e=b[5];return e}g.isAdminMessage=k;g.MWV2ChatAdminMessageContainer=l;g.MWV2ChatAdminMessage=a}),98);
__d("MWV2ChatBubble.react",["MWXMessageBubble.react","mwpMessageIsReply","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(9),e=a.emphasized,f=a.message,g=a.xmaLayout,h=a.children,j=a.connectBottom,k=a.connectTop,l=a.outgoing;a=a.precedesXMA;f=c("mwpMessageIsReply")(f);var m=l?"right":"left";l=l?"outgoing":"incoming";f=f||e?"opaque":"default";b[0]!==h||b[1]!==j||b[2]!==k||b[3]!==a||b[4]!==m||b[5]!==l||b[6]!==f||b[7]!==g?(e=i.jsx(c("MWXMessageBubble.react"),{align:m,color:l,connectBottom:j,connectTop:k,precedesXMA:a,variant:f,xmaLayout:g,children:h}),b[0]=h,b[1]=j,b[2]=k,b[3]=a,b[4]=m,b[5]=l,b[6]=f,b[7]=g,b[8]=e):e=b[8];return e}g["default"]=a}),98);
__d("MWV2ChatBubbleContainer.react",["MWChatBubbleEmphasisRing.react","MWV2ChatBubble.react","react","react-compiler-runtime","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(16),e,f,g,h,j;b[0]!==a?(h=a.hasEmphasisRing,f=a.message,j=a.xmaLayout,e=a.children,g=babelHelpers.objectWithoutPropertiesLoose(a,["hasEmphasisRing","message","xmaLayout","children"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=h,b[5]=j):(e=b[1],f=b[2],g=b[3],h=b[4],j=b[5]);a=h===void 0?!1:h;h=j===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:j;b[6]!==e||b[7]!==a||b[8]!==f||b[9]!==g||b[10]!==h?(j=i.jsx(c("MWV2ChatBubble.react"),babelHelpers["extends"]({children:e,emphasized:a,message:f,xmaLayout:h},g)),b[6]=e,b[7]=a,b[8]=f,b[9]=g,b[10]=h,b[11]=j):j=b[11];e=j;if(a){b[12]!==e||b[13]!==f||b[14]!==g?(h=i.jsx(c("MWChatBubbleEmphasisRing.react"),babelHelpers["extends"]({message:f},g,{children:e})),b[12]=e,b[13]=f,b[14]=g,b[15]=h):h=b[15];return h}return e}g["default"]=a}),98);
__d("MWV2ChatComposerGetViewContent",["Lexical","MessengerLexicalActorNode","MessengerLexicalEntityTextNode","cr:11494"],(function(a,b,c,d,e,f,g){"use strict";a={getRanges:function(a){var c=[],e=0;a.getEditorState().read(function(){var a=d("Lexical").$getRoot().getFirstChild();a instanceof d("Lexical").ElementNode&&a.getChildren().forEach(function(a){if(d("MessengerLexicalEntityTextNode").isMessengerLexicalEntityTextNode(a)){var f=a.getEntity();c.push({id:f.id,length:a.getTextContent().length,offset:e,type:d("MessengerLexicalActorNode").$isMessengerLexicalActorNode(a)?a.getRangeType():"p"})}if(b("cr:11494")!=null&&a instanceof b("cr:11494").MessengerLexicalCommandNode){f=a.getEntity();c.push({id:f.commandId,length:a.getTextContent().length,offset:e,type:a.getRangeType()})}e+=a.getTextContent().length})});return c}};c=a;g["default"]=c}),98);
__d("MWV2ChatEmoji.react",["CometTextWithEntities.react","I64","LSHotEmojiSize","LSIntEnum","MWChatBubbleEmphasisRing.react","MWChatTextTransform","MWV2ChatEmojiHotLike.react","ReStoreVaulting","gkx","justknobx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react"));h.useMemo;var l=(b={},b[c("LSHotEmojiSize").NONE]=32,b[c("LSHotEmojiSize").SMALL]=32,b[c("LSHotEmojiSize").MEDIUM]=56,b[c("LSHotEmojiSize").LARGE]=96,b);function a(a){var b=d("react-compiler-runtime").c(15),e=a.hasEmphasisRing,f=a.isSecureMessage;a=a.message;e=e===void 0?!1:e;f=f===void 0?!1:f;var g=a.hotEmojiSize,h=g!=null&&((i||(i=d("I64"))).equal(g,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL))||(i||(i=d("I64"))).equal(g,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").MEDIUM))||(i||(i=d("I64"))).equal(g,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").LARGE))),m;b[0]!==g?(m=g?(j||(j=d("LSIntEnum"))).unwrapIntEnum(g):c("LSHotEmojiSize").NONE,b[0]=g,b[1]=m):m=b[1];g=m;b[2]!==g?(m=d("MWChatTextTransform").textTransformsWithOptions({size:c("gkx")("23249")?32:l[g]}),b[2]=g,b[3]=m):m=b[3];m=m;m=m;var n=a.text;if(n==null)return null;var o;b[4]!==n?(o=d("ReStoreVaulting").maybeUnvault(n),b[4]=n,b[5]=o):o=b[5];n=o;if(f&&h&&n==="\ud83d\udc4d"){b[6]!==g?(o=k.jsx(c("MWV2ChatEmojiHotLike.react"),{hotEmojiSize:g}),b[6]=g,b[7]=o):o=b[7];return o}b[8]===Symbol["for"]("react.memo_cache_sentinel")?(f=c("justknobx")._("3030"),b[8]=f):f=b[8];b[9]!==m||b[10]!==n?(h=k.jsx(c("CometTextWithEntities.react"),{text:n,transforms:m,withLineBreaks:f,withParagraphs:!0}),b[9]=m,b[10]=n,b[11]=h):h=b[11];g=h;if(e){b[12]!==g||b[13]!==a?(o=k.jsx(c("MWChatBubbleEmphasisRing.react"),{connectBottom:!1,connectTop:!1,message:a,outgoing:!1,precedesXMA:!1,children:g}),b[12]=g,b[13]=a,b[14]=o):o=b[14];return o}return g}g["default"]=a}),98);
__d("MWV2ChatErrorBubble.react",["fbt","MWV2TombstonedMessage.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={vr:{height:"x36qwtl",width:"xh8yej3",$$css:!0},withRepliedMessage:{zIndex:"x1vjfegm",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(9),e=a.isOutgoing;a=a.isReply;var f=a&&k.withRepliedMessage,g;b[0]!==a?(g=a?null:j.jsx(d("react-strict-dom").html.div,{style:k.vr}),b[0]=a,b[1]=g):g=b[1];b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__fgvjfNhcDBr__JHASH__"),b[2]=a):a=b[2];b[3]!==e?(a=j.jsxs(c("MWV2TombstonedMessage.react"),{isOutgoing:e,children:[" ",a]}),b[3]=e,b[4]=a):a=b[4];b[5]!==f||b[6]!==g||b[7]!==a?(e=j.jsxs(d("react-strict-dom").html.div,{style:f,children:[g,a]}),b[5]=f,b[6]=g,b[7]=a,b[8]=e):e=b[8];return e}g["default"]=a}),226);
__d("MWV2ChatSeenHeadsRow.react",["fbt","JSResourceForInteraction","MDSGlimmer.react","MWLSThreadDisplayContext","MWV2MessageRowIsRowFocusedContext.react","MWXImage.react","MWXPressable.react","MWXTooltip.react","MWXTooltipGroup.react","getFBTSafeGenderFromGenderConst","getMessengerPreciseTimestamp","react","react-compiler-runtime","react-strict-dom","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useRef,m=5,n=c("JSResourceForInteraction")("MWV2ChatSeenHeadsDialog.react").__setRef("MWV2ChatSeenHeadsRow.react"),o={heads:{display:"x78zum5",flexShrink:"x2lah0s",$$css:!0},img:{borderTopStartRadius:"x1rcc7c0",borderTopEndRadius:"xbtbmw4",borderBottomEndRadius:"x1lie4ck",borderBottomStartRadius:"x16hxpj1",height:"x1v9usgg",paddingEnd:"x19um543",paddingStart:"x1m6msm",verticalAlign:"xxymvpz",width:"x6jxa94",$$css:!0},mask:{backgroundColor:"x1eb86dx",$$css:!0},overflow:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",color:"xi81zsa",fontSize:"x1ncwhqj",fontWeight:"x117nqv4",lineHeight:"x1hkbg2g",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x150jy0e",paddingBottom:"x18d9i69",paddingStart:"x1e558r4",textAlign:"x2b8uid",$$css:!0},root:{display:"x78zum5",paddingBottom:"x1120s5i",$$css:!0},spacer:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0}};function p(a,b,e,f){if(!e)return[];e=Math.max(Math.floor(b-9),0);a=a.slice(e,b);var g="\n"+h._(/*BTDS*/"__JHASH__8_D_WS90lqj__JHASH__",[h._param("Number of additional views",e,[0])]).toString();a=j.jsxs(d("react-strict-dom").html.ul,{children:[a.reverse().map(function(a,b){return j.jsx(d("react-strict-dom").html.li,{children:a.name},String(b))}),e>0?j.jsx(d("react-strict-dom").html.li,{children:g},"overflow"):null]});e=h._(/*BTDS*/"__JHASH__hpZlVXKj1CE__JHASH__",[h._param("the number of additional viewers",b,[0])]);return[j.jsx(c("MWXTooltip.react"),{align:f==="Inbox"?"middle":"end",forceInlineDisplay:!0,label:e,position:"above",tooltip:a,children:j.jsx(d("react-strict-dom").html.span,{style:o.overflow,children:e})},"overflow")]}function q(a){var b=d("react-compiler-runtime").c(12),e=a.displayContext,f=a.index;a=a.user;var g;b[0]!==a.gender||b[1]!==a.name||b[2]!==a.timestamp?(g=a.timestamp>0?h._(/*BTDS*/"__JHASH__i65FoHjBJBT__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender)),h._param("seen time",c("getMessengerPreciseTimestamp")(a.timestamp))]):h._(/*BTDS*/"__JHASH__o0y2JESDXU1__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender))]),b[0]=a.gender,b[1]=a.name,b[2]=a.timestamp,b[3]=g):g=b[3];g=g;e=e==="Inbox"?"middle":"end";var i;b[4]!==f||b[5]!==g||b[6]!==a.imageSrc?(i=a.imageSrc===""?j.jsx(c("MDSGlimmer.react"),{index:f,xstyle:o.img}):j.jsx(c("MWXImage.react"),{alt:g,src:a.imageSrc,xstyle:o.img}),b[4]=f,b[5]=g,b[6]=a.imageSrc,b[7]=i):i=b[7];b[8]!==g||b[9]!==e||b[10]!==i?(f=j.jsx(c("MWXTooltip.react"),{align:e,forceInlineDisplay:!0,position:"above",tooltip:g,children:i}),b[8]=g,b[9]=e,b[10]=i,b[11]=f):f=b[11];return f}function r(a,b){var c=a.length,d=c>m;c=Math.max(Math.floor(c-(d?m-1:m)),0);var e=a.slice(c);return[].concat(p(a,c,d,b),e.map(function(a,c){return j.jsx(q,{displayContext:b,index:c,user:a},a.id)}))}function a(a){var b=d("react-compiler-runtime").c(26),e=a.messageSeenBy,f=a.xstyle;a=k(d("MWV2MessageRowIsRowFocusedContext.react").context);var g=a.setFocused,i=a.setIsDialogOpened;a=e.length;var m=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),p=l(null),q;b[0]!==e?(q={messageSeenBy:e},b[0]=e,b[1]=q):q=b[1];var v=q;q=c("useMWXLazyDialog")(n);var w=q[0];b[2]!==v||b[3]!==g||b[4]!==i||b[5]!==w?(q=function(){return w(v,function(){i(u),g(t)})},b[2]=v,b[3]=g,b[4]=i,b[5]=w,b[6]=q):q=b[6];var x=q,y;b[7]===Symbol["for"]("react.memo_cache_sentinel")?(q=[o.root,o.mask],y=j.jsx(d("react-strict-dom").html.div,{style:o.spacer}),b[7]=q,b[8]=y):(q=b[7],y=b[8]);var z;b[9]!==a?(z=h._(/*BTDS*/"__JHASH__JhvMDLpCFuF__JHASH__",[h._param("number of participants who have seen this message",String(a))]).toString(),b[9]=a,b[10]=z):z=b[10];b[11]!==x||b[12]!==i?(a=function(){i(s),x()},b[11]=x,b[12]=i,b[13]=a):a=b[13];var A;b[14]!==f?(A=function(){return[o.heads,f]},b[14]=f,b[15]=A):A=b[15];var B;b[16]!==m||b[17]!==e?(B=r(e,m),b[16]=m,b[17]=e,b[18]=B):B=b[18];b[19]!==B?(m=j.jsx(c("MWXTooltipGroup.react"),{children:B}),b[19]=B,b[20]=m):m=b[20];b[21]!==z||b[22]!==a||b[23]!==A||b[24]!==m?(e=j.jsxs(d("react-strict-dom").html.div,{role:"none",style:q,children:[y,j.jsx(c("MWXPressable.react"),{"aria-label":z,onPress:a,overlayDisabled:!0,ref:p,xstyle:A,children:m})]}),b[21]=z,b[22]=a,b[23]=A,b[24]=m,b[25]=e):e=b[25];return e}function s(){return!0}function t(){return!0}function u(){return!1}g["default"]=a}),226);
__d("MWV2ChatTextUtils",["AdsAIMessengerUtils","LSMessagingThreadTypeUtil","MWPVisibleMessageContext.react","MWV2ChatTextParserUtils","gkx","justknobx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useMemo;function k(a){return a.replace(/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069\u2029]/g,"")}function a(a,b){if(b.length===0)return a;var c=0,d="";b.forEach(function(b){var e=b.offset;b=b.length;d+=a.substring(c,e);b=e+b;d+="\u2066"+k(a.substring(e,b))+"\u2069";c=b});c<a.length&&(d+=a.substring(c));return d}function l(a,b,c,e,f){var g=b.mentionIds,h=b.mentionLengths,i=b.mentionOffsets;b=b.mentionTypes;return g!=null&&h!=null&&i!=null&&b!=null?d("MWV2ChatTextParserUtils").findRangesForMentions(a,g,h,i,b,c,e,f):[]}function m(a,b,c){if(a==null)return[];if(a.messageId!==c)return[];var d=b.indexOf(a.contextLine);if(d>-1)return a.highlights.map(function(a){return{entity:{__typename:"Highlight"},length:a.matchLength,offset:a.matchOffset+d}});else return[]}function b(a,b,e,f){var g=(h||(h=c("useReStore")))(),i=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),k=i.visibleMessage,n=!1,o=!1;if(d("AdsAIMessengerUtils").isMessageFromAdsAIBot(b))n=c("justknobx")._("2986"),o=c("justknobx")._("2986")&&!c("gkx")("3883");else{i=c("gkx")("9850");o=i}var p=f!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(f)&&d("LSMessagingThreadTypeUtil").isGroup(f);return j(function(){return a==null||d("MWV2ChatTextParserUtils").isEmojiOnlyMessage(a)?[]:l(g,{mentionIds:b.mentionIds,mentionLengths:b.mentionLengths,mentionOffsets:b.mentionOffsets,mentionTypes:b.mentionTypes},a,e,p).concat(d("MWV2ChatTextParserUtils").findRanges(a,n,o)).concat(m(k==null?void 0:k,a,b.messageId))},[a,b.mentionIds,b.mentionLengths,b.mentionOffsets,b.mentionTypes,b.messageId,g,k,n,o,e,p])}g.getRTLOMitigatedText=a;g.useRanges=b}),98);
__d("MWXMessageBaseMessageListText.react",["MWChatTextTransform","MWXMessageTextWithEntities.react","MWXText.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={incoming:{color:"x18lvrbx",$$css:!0},outgoing:{color:"xyk4ms5",$$css:!0},regular:{marginTop:"x1gslohp",marginEnd:"x11i5rnm",marginBottom:"x12nagc",marginStart:"x1mh8g0r",textAlign:"x1yc453h",whiteSpace:"x126k92a",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(14),e=a.outgoing,f=a.text,g=a.xstyle,h=a.ranges,k=a.renderers;a=a.transforms;if(f==null)return null;var l=e?"white":"primary";e=e?j.outgoing:j.incoming;var m;b[0]!==e||b[1]!==g?(m=[j.regular,e,g],b[0]=e,b[1]=g,b[2]=m):m=b[2];g=(e=a)!=null?e:d("MWChatTextTransform").textTransforms;b[3]!==h||b[4]!==k||b[5]!==g||b[6]!==f?(a=i.jsx(c("MWXMessageTextWithEntities.react"),{ranges:h,renderers:k,text:f,transforms:g,withParagraphs:!1}),b[3]=h,b[4]=k,b[5]=g,b[6]=f,b[7]=a):a=b[7];b[8]!==m||b[9]!==a?(e=i.jsx(d("react-strict-dom").html.div,{dir:"auto",style:m,children:a}),b[8]=m,b[9]=a,b[10]=e):e=b[10];b[11]!==l||b[12]!==e?(h=i.jsx(c("MWXText.react"),{color:l,type:"body3",children:e}),b[11]=l,b[12]=e,b[13]=h):h=b[13];return h}g["default"]=a}),98);
__d("MWXMessageListText.react",["I64","LSIntEnum","LSMessageReplySourceTypeV2","MWChatTextTransform","MWXMessageBaseMessageListText.react","MWXMessageBlockQuote.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=d("react-compiler-runtime").c(15),e=a.hasBlockQuoteStyle,f=a.message,g=a.xstyleForForwarded,h=a.xstyleForText,l=a.outgoing,m=a.ranges,n=a.renderers,o=a.text;a=a.transforms;e=e===void 0?!1:e;if(o==null)return null;var p;b[0]!==f.replySourceTypeV2?(p=f.replySourceTypeV2!=null&&(i||(i=d("I64"))).equal(f.replySourceTypeV2,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD)),b[0]=f.replySourceTypeV2,b[1]=p):p=b[1];f=p;a=(p=a)!=null?p:d("MWChatTextTransform").textTransforms;b[2]!==l||b[3]!==m||b[4]!==n||b[5]!==a||b[6]!==o||b[7]!==h?(p=k.jsx(c("MWXMessageBaseMessageListText.react"),{outgoing:l,ranges:m,renderers:n,text:o,transforms:a,xstyle:h}),b[2]=l,b[3]=m,b[4]=n,b[5]=a,b[6]=o,b[7]=h,b[8]=p):p=b[8];m=p;b[9]!==m||b[10]!==e||b[11]!==f||b[12]!==l||b[13]!==g?(n=f||e===!0?k.jsx(c("MWXMessageBlockQuote.react"),{outgoing:l,xstyle:g,children:m}):m,b[9]=m,b[10]=e,b[11]=f,b[12]=l,b[13]=g,b[14]=n):n=b[14];return n}g["default"]=a}),98);
__d("MWV2ChatText.react",["MWMessageTranslationContext.react","MWUnvaultedText","MWV2ChatTextUtils","MWXMessageListText.react","gkx","isMWBumpMessage","react","react-compiler-runtime","useMWTextRenderers","useStringWithSubstitutions"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));h.useMemo;function a(a){var b=d("react-compiler-runtime").c(14),e=a.containerThreadKey,f=a.containerThreadType,g=a.hasBlockQuoteStyle,h=a.isSecureMessage,l=a.message;a=a.outgoing;g=g===void 0?!1:g;var m=c("useMWTextRenderers")(a,h),n=c("MWMessageTranslationContext.react").useHook();n=n.shouldShowTranslateOption;n=c("gkx")("4988")&&!n(l.messageId);n=n&&l.translatedText!=null?l.translatedText:l.text;n=d("MWUnvaultedText").useMWUnvaultedText(h,n);e=d("MWV2ChatTextUtils").useRanges(n,l,e,f);if(n==null)return null;if(h&&c("isMWBumpMessage")(l.replyType)){b[0]!==l||b[1]!==a||b[2]!==e||b[3]!==m||b[4]!==n?(f=i.jsx(k,{message:l,outgoing:a,ranges:e,renderers:m,text:n}),b[0]=l,b[1]=a,b[2]=e,b[3]=m,b[4]=n,b[5]=f):f=b[5];return f}b[6]!==g||b[7]!==h||b[8]!==l||b[9]!==a||b[10]!==e||b[11]!==m||b[12]!==n?(f=i.jsx(j,{hasBlockQuoteStyle:g,isSecureMessage:h,message:l,outgoing:a,ranges:e,renderers:m,text:n}),b[6]=g,b[7]=h,b[8]=l,b[9]=a,b[10]=e,b[11]=m,b[12]=n,b[13]=f):f=b[13];return f}function j(a){var b=d("react-compiler-runtime").c(9),e=a.hasBlockQuoteStyle,f=a.isSecureMessage,g=a.message,h=a.outgoing,j=a.ranges,k=a.renderers;a=a.text;e=e===void 0?!1:e;if(b[0]!==g.mentionIds){var l;l=new Set((l=(l=g.mentionIds)==null?void 0:l.split==null?void 0:l.split(","))!=null?l:[]);b[0]=g.mentionIds;b[1]=l}else l=b[1];l=l;l=l;l=(f=d("useStringWithSubstitutions").useStringWithMentionSubstitutionsAndUpdatedRanges(f?a:null,j,l,g.threadKey))!=null?f:{textWithSubstitutions:a,updatedRanges:j};f=l.textWithSubstitutions;a=l.updatedRanges;b[2]!==e||b[3]!==g||b[4]!==h||b[5]!==k||b[6]!==f||b[7]!==a?(j=i.jsx(c("MWXMessageListText.react"),{hasBlockQuoteStyle:e,message:g,outgoing:h,ranges:a,renderers:k,text:f}),b[2]=e,b[3]=g,b[4]=h,b[5]=k,b[6]=f,b[7]=a,b[8]=j):j=b[8];return j}function k(a){var b,e=d("react-compiler-runtime").c(6),f=a.message,g=a.outgoing,h=a.ranges,j=a.renderers;a=a.text;b=(b=d("useStringWithSubstitutions").useStringWithSubstitutions(a,f.threadKey))!=null?b:a;e[0]!==f||e[1]!==g||e[2]!==h||e[3]!==j||e[4]!==b?(a=i.jsx(c("MWXMessageListText.react"),{message:f,outgoing:g,ranges:h,renderers:j,text:b}),e[0]=f,e[1]=g,e[2]=h,e[3]=j,e[4]=b,e[5]=a):a=e[5];return a}g["default"]=a}),98);
__d("useMAWUnsendContentInSecureThread",["fbt","MWPMessageAuthor.react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){a=d("react-compiler-runtime").c(3);var b=d("MWPMessageAuthor.react").useAuthorName();b=b[0];if(b!=null){var c;a[0]!==b?(c=h._(/*BTDS*/"__JHASH___lYaXtrKDTe__JHASH__",[h._param("first name",b)]),a[0]=b,a[1]=c):c=a[1];return c}a[2]===Symbol["for"]("react.memo_cache_sentinel")?(b=h._(/*BTDS*/"__JHASH__I-2GRtvMpnJ__JHASH__"),a[2]=b):b=a[2];return b}g["default"]=a}),226);
__d("MWV2ChatUnsentMessage.react",["fbt","I64","MWLSThread","MWPMessageAuthor.react","MWV2TombstonedMessage.react","MWXPressable.react","MWXText.react","ReQL","ReQLSuspense","XCometGroupAdminActivitiesControllerRouteBuilder","mwCMIsAnyCMThread","react","react-compiler-runtime","useCommunityFolder","useMAWUnsendContentInSecureThread","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||d("react"),m={linkText:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,$$css:!0}};function n(a){var b=d("react-compiler-runtime").c(5),e=a.attachment,f=a.isSecureMessage;a=a.message;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__I-2GRtvMpnJ__JHASH__"),b[0]=g):g=b[0];g=g;a=c("useMAWUnsendContentInSecureThread")(a);var i=d("MWPMessageAuthor.react").useAuthorName();i=i[0];if(f)f=a;else if(i!=null){b[1]!==i?(a=h._(/*BTDS*/"__JHASH___lYaXtrKDTe__JHASH__",[h._param("first name",i)]),b[1]=i,b[2]=a):a=b[2];f=a}else if(e!=null){i=e.descriptionText;f=i!=null?i:g}else f=g;b[3]!==f?(a=l.jsx(c("MWV2TombstonedMessage.react"),{isOutgoing:!1,children:f}),b[3]=f,b[4]=a):a=b[4];return a}function o(a){var b=d("react-compiler-runtime").c(5);a=a.attachment;if(a!=null){a=a.descriptionText;var e;b[0]!==a?(e=a!=null?a:h._(/*BTDS*/"__JHASH__eGohYC1zonu__JHASH__"),b[0]=a,b[1]=e):e=b[1];a=e}else{b[2]===Symbol["for"]("react.memo_cache_sentinel")?(e=h._(/*BTDS*/"__JHASH__eGohYC1zonu__JHASH__"),b[2]=e):e=b[2];a=e}b[3]!==a?(e=l.jsx(c("MWV2TombstonedMessage.react"),{isOutgoing:!0,children:a}),b[3]=a,b[4]=e):e=b[4];return e}function p(a){var b=d("react-compiler-runtime").c(10),e=a.attachment;a=a.thread;a=c("useCommunityFolder")(a);if(e!=null){e=e.cta1Title;var f;b[0]!==e?(f=e!=null?e:h._(/*BTDS*/"__JHASH__8jyfQXNgswL__JHASH__"),b[0]=e,b[1]=f):f=b[1];e=f}else{b[2]===Symbol["for"]("react.memo_cache_sentinel")?(f=h._(/*BTDS*/"__JHASH__8jyfQXNgswL__JHASH__"),b[2]=f):f=b[2];e=f}if(a!=null){f="https://www.facebook.com"+c("XCometGroupAdminActivitiesControllerRouteBuilder").buildURL({idorvanity:(k||(k=d("I64"))).to_string(a.fbGroupId)});b[3]!==f?(a={url:f},b[3]=f,b[4]=a):a=b[4];b[5]!==e?(f=l.jsx(c("MWXText.react"),{color:"blueLink",type:"meta2",children:e}),b[5]=e,b[6]=f):f=b[6];b[7]!==a||b[8]!==f?(e=l.jsx(c("MWXPressable.react"),{linkProps:a,overlayDisabled:!0,xstyle:q,children:f}),b[7]=a,b[8]=f,b[9]=e):e=b[9];return e}else return null}function q(){return[m.linkText]}function a(a){var b=d("react-compiler-runtime").c(20),e=a.isSecureMessage,g=a.message;a=a.outgoing;var h=(i||(i=c("useReStore")))(),j=g.messageId,k=g.threadKey,m=d("MWLSThread").useThread(k),q;b[0]!==h.tables.attachments||b[1]!==j||b[2]!==k?(q=function(){return d("ReQL").fromTableAscending(h.tables.attachments).getKeyRange(k,j)},b[0]=h.tables.attachments,b[1]=j,b[2]=k,b[3]=q):q=b[3];var r;b[4]!==h||b[5]!==j||b[6]!==k?(r=[h,j,k],b[4]=h,b[5]=j,b[6]=k,b[7]=r):r=b[7];q=d("ReQLSuspense").useFirst(q,r,f.id+":145");if(q!=null){r=q.cta1Type;r=r!=null?r==="xma_view_activity_log":!1}else r=!1;var s;b[8]!==q||b[9]!==e||b[10]!==g||b[11]!==a?(s=a?l.jsx(o,{attachment:q}):l.jsx(n,{attachment:q,isSecureMessage:e,message:g}),b[8]=q,b[9]=e,b[10]=g,b[11]=a,b[12]=s):s=b[12];b[13]!==q||b[14]!==r||b[15]!==m?(e=m!=null&&r&&c("mwCMIsAnyCMThread")(m.threadType)?l.jsx(p,{attachment:q,thread:m}):null,b[13]=q,b[14]=r,b[15]=m,b[16]=e):e=b[16];b[17]!==s||b[18]!==e?(g=l.jsxs(l.Fragment,{children:[s,e]}),b[17]=s,b[18]=e,b[19]=g):g=b[19];return g}g.MWV2ChatUnsentMessage=a}),226);
__d("MWV2ComposerActionsContext.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;c=b.createContext;var j=b.useContext;b.useMemo;var k=c({});function a(a){var b=d("react-compiler-runtime").c(6),c=a.children,e=a.onMessageSendAttempt;a=j(k);var f=a.onMessageSendAttempt;b[0]!==e||b[1]!==f?(a={onMessageSendAttempt:function(a){f==null?void 0:f(a),e==null?void 0:e(a)}},b[0]=e,b[1]=f,b[2]=a):a=b[2];a=a;a=a;var g;b[3]!==c||b[4]!==a?(g=i.jsx(k.Provider,{value:a,children:c}),b[3]=c,b[4]=a,b[5]=g):g=b[5];return g}g.MWV2ComposerActionsContext=k;g.MWV2ComposerActionsListener=a}),98);
__d("useAsyncReStoreBulkFix",["isPromise","promiseDone","qex","useAsyncReStore","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;d=(b=c("qex")._("3408"))!=null?b:!1;function a(a,b,d){(h||(h=c("isPromise")))(a)?c("promiseDone").apply(void 0,arguments):b==null?void 0:b(a)}e={onDbReady:c("promiseDone"),useReStoreHook:c("useAsyncReStore")};f={onDbReady:a,useReStoreHook:i||(i=c("useReStore"))};b=d?e:f;d=b.useReStoreHook;e=a;g.useReStoreHook=d;g.onDbReady=e}),98);
__d("MWV2FileDropzone.react",["fbt","LSFactory","LSIssueNewErrorStoredProcedure","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWCMThreadTypes.react","MWMediaManagerFileSizeLimit","MWXText.react","MWXTextPairing.react","cometIsMimeTypeForMedia","gkx","promiseDone","react","react-compiler-runtime","recoverableViolation","stylex","useAsyncReStoreBulkFix","useFileDragEvents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;e=b.createContext;var l=b.useCallback,m=b.useRef,n=e({current:{enabled:!0,handler:null}});function o(a){var b=d("react-compiler-runtime").c(3),c=a.children;a=a.fileUploadHandlerConfigRef;var e=n.Provider;b[0]!==c||b[1]!==a?(e=k.jsx(e,{value:a,children:c}),b[0]=c,b[1]=a,b[2]=e):e=b[2];return e}var p={root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",maxWidth:"x193iq5w",minHeight:"x2lwn1j",position:"x1n2onr6",$$css:!0}};function q(a){if(a==null)return[];a=a.dataTransfer;return a==null?[]:a.types}function r(a){switch(a){case 0:return void 0;case 1:return h._(/*BTDS*/"__JHASH__M7mGXjgzxvT__JHASH__").toString();default:return h._(/*BTDS*/"__JHASH__UaK2GgtSNQH__JHASH__").toString()}}function s(a,b){var d=r(b);if(d==null)return;c("promiseDone")(a.runInTransaction(function(a){return c("LSIssueNewErrorStoredProcedure")(c("LSFactory")(a),{errorBodyText:d,errorTitleText:d})},"readwrite",void 0,void 0,f.id+":124"))}function t(a){a=a.type;return d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a)||d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a)?!0:a.startsWith("audio/")}var u=new Set(["text/plain","text/html","text/uri-list"]);function a(a){var b=a.children,e=a.isDisabled,f=a.isMediaOnly,g=a.thread;a=a.xstyle;var j=m({enabled:!1,handler:null}),n=m(null),r=d("useAsyncReStoreBulkFix").useReStoreHook(),v=g!=null?(d("MWCMThreadTypes.react").isBroadcastThread(g.threadType)||d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(g.threadType)||d("LSMessagingThreadTypeUtil").isAiBot(g.threadType))&&!d("LSThreadBitOffset").has(56,g):!1;g=g!=null?d("LSMessagingThreadTypeUtil").isArmadilloSecure(g.threadType):!1;var w=e===!0||v;e=function(a){var b;return((b=j.current)==null?void 0:b.handler)==null?!1:!q(a).some(function(a){return u.has(a)})};e=c("useFileDragEvents")(function(){return!1},void 0,e);var x=l(function(a){d("useAsyncReStoreBulkFix").onDbReady(r,function(b){var d;if(((d=j.current)==null?void 0:d.enabled)===!1)return;d=(d=j.current)==null?void 0:d.handler;if(d==null){if(!v){var e=j.current==null?"fileUploadHandlerConfigRef was not setup to handle dropped file!":"fileUploadHandlerConfigRef.current.handler was not setup to handle dropped file";c("recoverableViolation")(e,"messenger_web_media")}return}e=Array.from(a);var g=f?e.filter(t):e;e.length!==g.length&&s(b,e.length);!w&&g.length!==0&&d(g)})},[f,w,v,r]);c("useFileDragEvents")(x,n.current,function(a){return!0});return k.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(p.root,(x=a)!=null?x:!1),{ref:n,children:[k.jsx(o,{fileUploadHandlerConfigRef:j,children:b}),!w&&e?k.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 x1h0vfkc x1ey2m1c x78zum5 xds687c x17qophe xl56j7k x10l6tqk x13vifvy x1vjfegm"},{children:c("gkx")("7430")?k.jsx(c("MWXTextPairing.react"),{body:h._(/*BTDS*/"__JHASH__AnH53PdmVOq__JHASH__",[h._param("fileSizeLimit",String(d("MWMediaManagerFileSizeLimit").getMWMaxAttachmentSizeInMB(g)))]),bodyColor:"secondary",headline:h._(/*BTDS*/"__JHASH__Cpq0daihgaG__JHASH__"),level:4,textAlign:"center"}):k.jsx(c("MWXText.react"),{type:"body1",children:h._(/*BTDS*/"__JHASH__Cpq0daihgaG__JHASH__")})})):null]}))}a.displayName=a.name+" [from "+f.id+"]";g.mWV2FileDropzoneContext=n;g.MWV2FileDropzone=a}),226);
__d("MWV2MessageActionsVisibility.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useRef;function a(){return i(j)}function j(){}g.useStopHoveringRef=a}),98);
__d("MWV2MessageEndOfGroupContentTextOnly.react",["fbt","MWMessageDeliveryStatus","MWStatusText.react","intlSummarizeNumber","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={statusText:{paddingBottom:"xwib8y2",paddingTop:"x1iorvi4",$$css:!0}};function l(a){var b=d("react-compiler-runtime").c(6),e=a.alignLeft,f=a.enableSeenInfo;a=a.num;if(!f){b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(j.Fragment,{}),b[0]=f):f=b[0];return f}b[1]!==a?(f=h._(/*BTDS*/"__JHASH__SlWkB_YFGR6__JHASH__",[h._param("seenByNumber",c("intlSummarizeNumber")(a))]).toString(),b[1]=a,b[2]=f):f=b[2];b[3]!==e||b[4]!==f?(a=j.jsx(c("MWStatusText.react"),{alignLeft:e,text:f,xstyle:k.statusText}),b[3]=e,b[4]=f,b[5]=a):a=b[5];return a}function a(a){var b=d("react-compiler-runtime").c(13),e=a.alignLeft,f=a.enableSeenInfo;a=a.status;f=f===void 0?!0:f;var g;if(b[0]!==e||b[1]!==f||b[2]!==a){g=Symbol["for"]("react.early_return_sentinel");bb0:{var h=d("MWMessageDeliveryStatus").getBroadcastStatusTitle(a);bb1:switch(a.type){case"NoneStatus":g=null;break bb0;case"Error":g=j.jsx(c("MWStatusText.react"),{error:!0,text:h.toString(),xstyle:k.statusText});break bb0;case"SingleSeenHead":var i;b[4]!==f?(i=j.jsx(l,{enableSeenInfo:f,num:1}),b[4]=f,b[5]=i):i=b[5];g=i;break bb0;case"MultipleSeenHeads":case"DeliveredAndRead":break bb1;case"SeenCount":b[6]!==e||b[7]!==f||b[8]!==a.count?(i=j.jsx(l,{alignLeft:e,enableSeenInfo:f,num:a.count}),b[6]=e,b[7]=f,b[8]=a.count,b[9]=i):i=b[9];g=i;break bb0;case"Loading":g=j.jsx(c("MWStatusText.react"),{alignLeft:e,text:h.toString(),xstyle:k.statusText});break bb0;case"RetriableError":g=j.jsx(c("MWStatusText.react"),{alignLeft:e,error:!0,text:h.toString(),xstyle:k.statusText});break bb0;default:g=j.jsx(c("MWStatusText.react"),{text:h.toString(),xstyle:k.statusText});break bb0}}b[0]=e;b[1]=f;b[2]=a;b[3]=g}else g=b[3];if(g!==Symbol["for"]("react.early_return_sentinel"))return g;b[10]!==f||b[11]!==a.heads.length?(i=j.jsx(l,{enableSeenInfo:f,num:a.heads.length}),b[10]=f,b[11]=a.heads.length,b[12]=i):i=b[12];return i}g["default"]=a}),226);
__d("MWV2MessageEndOfGroupContent.react",["LSMessagingThreadTypeUtil","MWChatSingleSeenHeadRow.react","MWClickToRevealMustacheText.react","MWLSThread","MWMessageDeliveryStatus","MWMessageOutgoingStatus.react","MWPMessageListColumn.react","MWV2ChatSeenHeadsRow.react","MWV2MessageEndOfGroupContentTextOnly.react","justknobx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={baseStyle:{marginEnd:"xpdqn1h",marginTop:"x1gslohp",$$css:!0},lastMessage:{marginBottom:"x12nagc",$$css:!0},nonLastMessage:{marginBottom:"xod5an3",$$css:!0},seenHeads:{marginTop:"x1gslohp",marginEnd:"xw3qccf",marginBottom:"xjpr12u",marginStart:"x1mh8g0r",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(35),e=a.alignLeft,f=a.enableSeenInfo,g=a.hasTextBasedMessageReceipts,h=a.isFromBlockedContact,l=a.isLastMessage,m=a.isOutgoing,n=a.isSecureMessage,o=a.isTextOnly,p=a.message;a=a.status;f=f===void 0?!0:f;var q=d("MWLSThread").useThread(p.threadKey,k);if(l&&g&&a.type==="NoneStatus"){var r;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(r=i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:17}),b[0]=r):r=b[0];return r}if(h){b[1]!==p.messageId?(r=i.jsx(c("MWClickToRevealMustacheText.react"),{messageId:p.messageId}),b[1]=p.messageId,b[2]=r):r=b[2];return r}if(o===!0){b[3]!==e||b[4]!==f||b[5]!==a?(h=i.jsx(c("MWV2MessageEndOfGroupContentTextOnly.react"),{alignLeft:e,enableSeenInfo:f,status:a}),b[3]=e,b[4]=f,b[5]=a,b[6]=h):h=b[6];return h}if(a.type==="MultipleSeenHeads"){r=g&&(l?j.lastMessage:j.nonLastMessage);o=g&&j.baseStyle;b[7]!==r||b[8]!==o?(h=[j.seenHeads,r,o],b[7]=r,b[8]=o,b[9]=h):h=b[9];b[10]!==a.heads||b[11]!==h?(r=i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:i.jsx(c("MWV2ChatSeenHeadsRow.react"),{messageSeenBy:a.heads,xstyle:h})}),b[10]=a.heads,b[11]=h,b[12]=r):r=b[12];return r}if(l===!0&&q===!0&&g===!0&&a.type==="SeenCount"){if(a.count>0||!c("justknobx")._("2943")){b[13]!==e||b[14]!==f||b[15]!==a?(o=i.jsx(c("MWV2MessageEndOfGroupContentTextOnly.react"),{alignLeft:e,enableSeenInfo:f,status:a}),b[13]=e,b[14]=f,b[15]=a,b[16]=o):o=b[16];return o}b[17]===Symbol["for"]("react.memo_cache_sentinel")?(h=i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:22}),b[17]=h):h=b[17];return h}if(g&&a.type==="SingleSeenHead"){r=a.head;b[18]!==a.head?(q=d("MWMessageDeliveryStatus").getSingleSeenHead(a.head),b[18]=a.head,b[19]=q):q=b[19];f=l?j.lastMessage:j.nonLastMessage;b[20]!==f?(o=[f,j.baseStyle],b[20]=f,b[21]=o):o=b[21];b[22]!==a.head||b[23]!==q||b[24]!==o?(h=i.jsx(c("MWChatSingleSeenHeadRow.react"),{head:r,text:q,xstyle:o}),b[22]=a.head,b[23]=q,b[24]=o,b[25]=h):h=b[25];return h}if(m&&g){f=l?j.lastMessage:j.nonLastMessage;b[26]!==f?(r=[f,j.baseStyle],b[26]=f,b[27]=r):r=b[27];b[28]!==e||b[29]!==l||b[30]!==n||b[31]!==p||b[32]!==a||b[33]!==r?(q=i.jsx(c("MWMessageOutgoingStatus.react"),{alignLeft:e,isLastMessage:l,isSecureMessage:n,message:p,status:a,xstyle:r}),b[28]=e,b[29]=l,b[30]=n,b[31]=p,b[32]=a,b[33]=r,b[34]=q):q=b[34];return q}return null}function k(a){return d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)}g.MWV2MessageEndOfGroupContent=a}),98);
__d("MWV2MessageProfilePhotoMenuQuery$Parameters",["MWV2MessageProfilePhotoMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWV2MessageProfilePhotoMenuQuery_facebookRelayOperation"),metadata:{},name:"MWV2MessageProfilePhotoMenuQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("MWV2MessageProfilePhotoMenu.entrypoint",["JSResourceForInteraction","MWV2MessageProfilePhotoMenuQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID;a=a.userID;return{queries:{messageProfilePhotoMenuQueryRef:{parameters:c("MWV2MessageProfilePhotoMenuQuery$Parameters"),variables:{groupID:b,userID:a}}}}},root:c("JSResourceForInteraction")("MWV2MessageProfilePhotoMenu.react").__setRef("MWV2MessageProfilePhotoMenu.entrypoint")};g["default"]=a}),98);
__d("MWXIconAccount",["MWXSvgIcon","SVGIcon","cr:12266","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12266")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWV2MessageProfilePhotoContent.react",["fbt","FDSImageCover.react","I64","LSContactBitOffset","LSMessagingThreadTypeUtil","MWLSThread","MWPActor.react","MWPContactContext.react","MWPreloadableQueries","MWV2MessageProfilePhotoMenu.entrypoint","MWXEntryPointPopoverTrigger.react","MWXGlimmer.react","MWXIconAccount","MWXIconStrict.react","MWXPressable.react","MWXTooltip.react","QE2Logger","ReQLSuspense","getLSMediaContactProfilePictureUrl","gkx","mwCMIsAnyCMThread","qex","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=h._(/*BTDS*/"__JHASH__G4Bi2CYTkJR__JHASH__"),n={glimmer:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x5yr21d",width:"xh8yej3",$$css:!0},profile:{alignItems:"xuk3077",display:"x78zum5",flexShrink:"x2lah0s",height:"x1fgtraw",maxWidth:"x193iq5w",width:"xgd8bvy",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(39),e=a.ariaHidden,g=a.isGroupThread;a=a.message;e=e===void 0?!1:e;var h=d("MWPContactContext.react").useMWPContactStableContext(),k=h.contact;h=h.nickname;var p=d("MWPActor.react").useActor(),q=(i||(i=c("useReStore")))(),r=d("MWLSThread").useThread(a.threadKey),s=r==null?void 0:r.parentThreadKey,t=r==null?void 0:r.threadType,u,v;b[0]!==q||b[1]!==s?(u=function(){var a;return d("MWPreloadableQueries").getCommunityFolderQuery(q,(a=s)!=null?a:(j||(j=d("I64"))).zero).map(o)},v=[q,s],b[0]=q,b[1]=s,b[2]=u,b[3]=v):(u=b[2],v=b[3]);u=d("ReQLSuspense").useFirst(u,v,f.id+":74");b[4]!==t?(v=t?c("mwCMIsAnyCMThread")(t):!1,b[4]=t,b[5]=v):v=b[5];var w=v;if(a.takedownState!=null){b[6]===Symbol["for"]("react.memo_cache_sentinel")?(t=l.jsx(c("MWXTooltip.react"),{align:"middle",position:"start",tooltip:m,children:l.jsx(c("MWXIconStrict.react"),{alt:m,color:"secondary",icon:c("MWXIconAccount"),size:28})}),b[6]=t):t=b[6];v=t}else if(k!=null&&c("getLSMediaContactProfilePictureUrl")(k)!==""){var x;t=h!=null?h+" ("+k.name+")":k.name;h=(h=d("LSContactBitOffset").has(77,k))!=null?h:!1;x=(x=d("LSContactBitOffset").has(84,k))!=null?x:!1;x=!x&&!h;b[7]!==w||b[8]!==x?(h=x&&w&&c("qex")._("20")===!0,b[7]=w,b[8]=x,b[9]=h):h=b[9];h=h;var y;b[10]!==x||b[11]!==r?(y=x&&r!=null&&d("LSMessagingThreadTypeUtil").isOpenOrArmadilloFnFThread(r)&&c("gkx")("11046"),b[10]=x,b[11]=r,b[12]=y):y=b[12];x=y;r=k.name;b[13]!==k?(y=c("getLSMediaContactProfilePictureUrl")(k),b[13]=k,b[14]=y):y=b[14];var z;b[15]===Symbol["for"]("react.memo_cache_sentinel")?(z={borderRadius:"50%"},b[15]=z):z=b[15];b[16]!==k.name||b[17]!==y?(r=l.jsx(c("FDSImageCover.react"),{alt:r,src:y,style:z}),b[16]=k.name,b[17]=y,b[18]=r):r=b[18];var A=r;b[19]!==w?(z=function(a){a&&(w&&d("QE2Logger").logExposureForUser("cm_web_group_message_profile_photo_menu"))},b[19]=w,b[20]=z):z=b[20];if(b[21]!==p||b[22]!==A||b[23]!==u||b[24]!==w||b[25]!==g||b[26]!==a||b[27]!==h||b[28]!==x){y=h||x?l.jsx(c("MWXEntryPointPopoverTrigger.react"),{entryPointParams:{groupID:(j||(j=d("I64"))).to_string((k=u)!=null?k:(j||(j=d("I64"))).zero),userID:(j||(j=d("I64"))).to_string(p)},otherProps:{isGroupThread:g,message:a},popoverEntryPoint:c("MWV2MessageProfilePhotoMenu.entrypoint"),position:"above",children:function(a,b,e,f,g,h){return l.jsx(c("MWXPressable.react"),{onHoverIn:f,onHoverOut:g,onPress:function(){w&&d("QE2Logger").logExposureForUser("cm_web_group_message_profile_photo_menu"),b()},onPressIn:h,overlayRadius:"50%",ref:a,xstyle:n.profile,children:A})}}):A;b[21]=p;b[22]=A;b[23]=u;b[24]=w;b[25]=g;b[26]=a;b[27]=h;b[28]=x;b[29]=y}else y=b[29];b[30]!==z||b[31]!==y||b[32]!==t?(r=l.jsx(c("MWXTooltip.react"),{align:"middle",onVisibilityChange:z,position:"start",tooltip:t,children:y}),b[30]=z,b[31]=y,b[32]=t,b[33]=r):r=b[33];v=r}else{b[34]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("MWXGlimmer.react"),{index:1,xstyle:n.glimmer}),b[34]=k):k=b[34];v=k}b[35]===Symbol["for"]("react.memo_cache_sentinel")?(p={className:"xuk3077 x78zum5 x2lah0s x1fgtraw x193iq5w xgd8bvy"},b[35]=p):p=b[35];b[36]!==e||b[37]!==v?(u=l.jsx("div",babelHelpers["extends"]({"aria-hidden":e},p,{children:v})),b[36]=e,b[37]=v,b[38]=u):u=b[38];return u}function o(a){return a.fbGroupId}g["default"]=a}),226);
__d("MWV2MessageProfilePhoto.react",["MWV2MessageProfilePhotoContent.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(8),e=a.ariaHidden,f=a.display,g=a.isGroupThread;a=a.message;e=e===void 0?!1:e;f=f===void 0?"visible":f;var h;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(h={className:"xgd8bvy"},b[0]=h):h=b[0];var j;b[1]!==e||b[2]!==f||b[3]!==g||b[4]!==a?(j=f==="visible"&&i.jsx(c("MWV2MessageProfilePhotoContent.react"),{ariaHidden:e,isGroupThread:g,message:a}),b[1]=e,b[2]=f,b[3]=g,b[4]=a,b[5]=j):j=b[5];b[6]!==j?(e=i.jsx("div",babelHelpers["extends"]({},h,{children:j})),b[6]=j,b[7]=e):e=b[7];return e}g["default"]=a}),98);
__d("MWV2MessageStartOfGroupContent.react",["I64","MWPDateBreak.react","MWPMessageListColumn.react","MWV2ChatAdminMessage.react","MWV2MessageRowSimple.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function k(a,b){if(b!=null)return(i||(i=d("I64"))).compare(i.abs(i.sub(a.timestampMs,b.timestampMs)),i.of_string("900000"))>0;else return!0}function l(a){var b=d("react-compiler-runtime").c(12),e=a.domElementRef,f=a.message,g=a.prevMessage;a=a.renderTextWrapper;if(k(f,g)){var h;b[0]!==f.timestampMs?(h=(i||(i=d("I64"))).to_float(f.timestampMs),b[0]=f.timestampMs,b[1]=h):h=b[1];var l;b[2]!==a||b[3]!==h?(l=j.jsx(c("MWPDateBreak.react"),{renderTextWrapper:a,timestamp:h}),b[2]=a,b[3]=h,b[4]=l):l=b[4];b[5]!==f||b[6]!==g||b[7]!==l?(a=j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:j.jsx(d("MWV2ChatAdminMessage.react").MWV2ChatAdminMessageContainer,{nextMessage:f,prevMessage:g,children:l})}),b[5]=f,b[6]=g,b[7]=l,b[8]=a):a=b[8];b[9]!==e||b[10]!==a?(h=j.jsx(c("MWV2MessageRowSimple.react"),{domElementRef:e,children:a}),b[9]=e,b[10]=a,b[11]=h):h=b[11];return h}else return null}function a(a){var b=d("react-compiler-runtime").c(5),c=a.domElementRef,e=a.message,f=a.prevMessage;a=a.renderTextWrapper;var g;b[0]!==c||b[1]!==e||b[2]!==f||b[3]!==a?(g=j.jsx(l,{domElementRef:c,message:e,prevMessage:f,renderTextWrapper:a}),b[0]=c,b[1]=e,b[2]=f,b[3]=a,b[4]=g):g=b[4];return g}g["default"]=a}),98);
__d("MWV2MessageTimestampTooltip.react",["fbt","I64","MWMessageUnsentTimestampText.react","MWXTooltip.react","cr:1654","cr:6194","getMessengerPreciseTimestamp","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react")),l=i.useMemo;function m(a){var b=d("react-compiler-runtime").c(2);a=a.ts;a=a!=null?"Uploaded to EB: "+a:null;var c;b[0]!==a?(c=k.jsx("div",{children:a}),b[0]=a,b[1]=c):c=b[1];return c}function n(a){var b=d("react-compiler-runtime").c(2);a=a.ts;a=a!=null&&a>0?"Send Latency: "+a.toString()+"ms":null;var c;b[0]!==a?(c=k.jsx("div",{children:a}),b[0]=a,b[1]=c):c=b[1];return c}function a(a){var e=a.children,f=a.message,g=b("cr:1654")==null?void 0:b("cr:1654")(f.messageId),i=b("cr:6194")==null?void 0:b("cr:6194")(f.messageId);a=l(function(){var a=f.isUnsent,b=f.unsentTimestampMs;if(b!=null&&a)return[k.jsx(c("MWMessageUnsentTimestampText.react"),{timestampMs:f.timestampMs,unsentTimestampMs:b},"first"),h._(/*BTDS*/"__JHASH__8eZEd_EeDsx__JHASH__")];a=h._(/*BTDS*/"__JHASH__GNnexJRNZQN__JHASH__",[h._param("time",c("getMessengerPreciseTimestamp")((j||(j=d("I64"))).to_float(f.timestampMs),!0))]);return[k.jsxs("div",{"data-testid":void 0,children:[k.jsx(n,{ts:g}),k.jsx(m,{ts:i}),k.jsx("div",{children:a})]},"first"),a]},[f,g,i]);var o=a[0];a=a[1];return k.jsx(c("MWXTooltip.react"),{align:"middle",label:a,position:"start",tooltip:o,children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWV2SetupS2SLoggingShared",["I64","LSIntEnum","MWChatInteraction","MWLSLogSend","MWSharedS2SBaseAnnotations","MWVersion","ReQL","ReQLSubscribe","asyncToGeneratorRuntime","err","sendToSentQPLLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b){d("sendToSentQPLLogger").markSendToSentPoint(a,"received_successful_server_ack"),d("sendToSentQPLLogger").markSendToSentSuccess(a),d("MWChatInteraction").remove(d("MWChatInteraction").s2sKey(b))}function k(a,b){d("sendToSentQPLLogger").markSendToSentFail(a,"send_message_server_error",c("err")("send_message_server_error")),d("MWChatInteraction").remove(d("MWChatInteraction").s2sKey(b))}function l(a){d("sendToSentQPLLogger").markSendToSentPoint(a,"sending_message")}function a(a){var c=a.db,e=a.isCommunityEvent,f=a.isMessageRequest,g=a.s2sInstanceKey,m=a.source,n=a.threadType,o=a.traceSendMessageAPI,p={isCommunityEvent:e,isMessageRequest:f,mwVersion:d("MWVersion").v2,source:m,threadType:n};return function(a){d("MWLSLogSend").logSentHeroInteraction(o,a,p);d("MWChatInteraction").set(d("MWChatInteraction").s2sKey(a),String(g));d("sendToSentQPLLogger").addSendToSentAnnotations(g,{bool:{subscription_points_gk:!0},string:{entrypoint:d("MWSharedS2SBaseAnnotations").getEntrypointAnnotation(m),is_community_event:e===!0?"true":"false",is_message_request:f===!0?"true":"false",thread_type:n==null?"unknown":(h||(h=d("I64"))).to_string(n)}});var q=!1,r=d("ReQL").fromTableAscending(c.tables.messages.index("optimistic")).getKeyRange(a),s=d("ReQLSubscribe").subscribeToFirst(r,function(b){b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(2))?(q=!0,j(g,a),s()):b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(4))?(q=!0,k(g,a),s()):b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(1))&&l(g)});window.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!q){var a=(yield d("ReQL").firstAsync(r));q||d("sendToSentQPLLogger").addSendToSentAnnotations(g,{string:{status_after_10s:a?""+(i||(i=d("LSIntEnum"))).toNumber(a.sendStatusV2):"none"}})}}),1e4);window.setTimeout(function(){s()},6e4)}}g["default"]=a}),98);
__d("MWXIconLike",["MWXSvgIcon","SVGIcon","cr:12480","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12480")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWXIconPlusCircle",["MWXSvgIcon","SVGIcon","cr:12533","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12533")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWXUseLatch",["CometThrottle","Run","debounce","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect;b.useMemo;function a(a,b,e){var f=d("react-compiler-runtime").c(20),g=b!=null?b:!1,h;f[0]!==a||f[1]!==g?(b=function(){if(!g)return;var b=d("Run").onUnload(function(){return a(!1)});return function(){return b.remove()}},h=[g,a],f[0]=a,f[1]=g,f[2]=b,f[3]=h):(b=f[2],h=f[3]);i(b,h);f[4]===Symbol["for"]("react.memo_cache_sentinel")?(b={contents:!1},f[4]=b):b=f[4];var j=b;f[5]!==a?(h=function(){if(!j.contents)return a(!1)},f[5]=a,f[6]=h):h=f[6];b=e|0;f[7]!==h||f[8]!==b?(e=c("debounce")(h,b),f[7]=h,f[8]=b,f[9]=e):e=f[9];var k=e;f[10]!==a?(h=c("CometThrottle")(function(){return a(!0)},3e3,{leading:!0,trailing:!1}),f[10]=a,f[11]=h):h=f[11];var l=h;f[12]!==a?(b=function(){a(!1),j.contents=!0},f[12]=a,f[13]=b):b=f[13];e=b;f[14]!==k||f[15]!==l?(h=function(){l();return k()},f[14]=k,f[15]=l,f[16]=h):h=f[16];b=h;f[17]!==e||f[18]!==b?(h=[b,e],f[17]=e,f[18]=b,f[19]=h):h=f[19];e=h;return e}g.useLatch=a}),98);
__d("MessagingLoggingUtils",["I64","MessagingAttachmentType"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){a=(h||(h=d("I64"))).to_int32(a);switch(a){case c("MessagingAttachmentType").NONE:return 1;case c("MessagingAttachmentType").STICKER:return 4;case c("MessagingAttachmentType").IMAGE:return 8;case c("MessagingAttachmentType").ANIMATED_IMAGE:return 6;case c("MessagingAttachmentType").VIDEO:return 10;case c("MessagingAttachmentType").AUDIO:return 11;case c("MessagingAttachmentType").FILE:return 9;case c("MessagingAttachmentType").XMA:return 13;case c("MessagingAttachmentType").EPHEMERAL_IMAGE:return 8;case c("MessagingAttachmentType").EPHEMERAL_VIDEO:return 5;case c("MessagingAttachmentType").SELFIE_STICKER:return 22;case c("MessagingAttachmentType").SOUND_BITE:return 23;default:return 1}}g.convertI64ToAttachmentType=a}),98);
__d("MessengerDefaultTheme",["CurrentEnvironment","I64"],(function(a,b,c,d,e,f,g){"use strict";var h;a={color:c("CurrentEnvironment").messengerdotcom?"#0099FF":"#0084FF",id:(h||(h=d("I64"))).of_string("196241301102133"),label:"Default Blue",type:"solid"};g["default"]=a}),98);
__d("XmaEventsE2eeFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1399");b=d("FalcoLoggerInternal").create("xma_events_e2ee",a);e=b;g["default"]=e}),98);
__d("issueLSAudioMediaSendJob",["I64","LSDatabaseSingletonLazyWrapper","LSFactory","LSInsertNewMediaSendStoredProcedure","LSMarkSubJobCompletedV2StoredProcedure","MWPComposerMediaUploadUtil","MWPOpenComposerUtils","ReQL","asyncToGeneratorRuntime","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a,b,c,e){if(a==null)return;if(!a.startsWith("blob:"))return;var f={contents:function(){}};f.contents=d("ReQL").fromTableAscending(c.tables.attachments).getKeyRange(e).subscribe(function(c,d){if(d.operation==="put"){c=d.value;if(c.attachmentFbid!==b.toString())return;d=c.playableUrl;d!=null&&!d.startsWith("blob:")&&(f.contents(),URL.revokeObjectURL(a))}})}function a(a,b,c,d,e,f,g,h,i,k,l){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,g,j,k,l,m,n,o,p,q){yield c("LSInsertNewMediaSendStoredProcedure")(c("LSFactory")(a),{attachmentType:m.attachment_type,inMessageIndex:(h||(h=d("I64"))).zero,isSecure:!1,offlineAttachmentId:k,offlineThreadingId:l,sendByServer:!1,shouldTranscode:!1,useDoublePhase:!1});a=function(a,g){if(g==null||g.length===0)return;var n=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("LSDatabaseSingletonLazyWrapper")());return a.runInTransaction(function(){var f=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=c("LSFactory")(b);yield c("LSMarkSubJobCompletedV2StoredProcedure")(b,{fbid:(h||(h=d("I64"))).of_string(g),offlineAttachmentId:k});yield d("MWPOpenComposerUtils").resumeSendJob(b,l,j);i(m.playable_url,g,a,e)});return function(a){return f.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":99")});return function(){return a.apply(this,arguments)}}();c("promiseDone")(n(),function(){p==null?void 0:p(a)})};var r=function(a,b){q==null?void 0:q((b=b.response.getErrorDescriptionString())!=null?b:"unknown_upload_failure",a)};yield d("MWPComposerMediaUploadUtil").startUpload(o,void 0,a,r,!0,[n.file],[k],void 0,void 0,n.waveformData,void 0,h.to_string(g))});return j.apply(this,arguments)}g["default"]=a}),98);
__d("issueLSMediaSendJobs",["ArmadilloDataTraceCheckPoint","I64","LSAppendDataTraceAddonStoredProcedure","LSFactory","LSGenerateTraceId","LSInsertNewMediaSendStoredProcedure","LSMarkSubJobCompletedV2StoredProcedure","MWConsole","MWMediaTraceHandler","MWPOpenComposerUtils","MessagingLoggingUtils","Promise","asyncToGeneratorRuntime","gkx","updateAndFlushLSDataTrace"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b,c,d){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){b!=null&&(yield d("MWMediaTraceHandler").logMediaSendStart(a,b,c,(i||(i=d("I64"))).of_int32(e)))});return k.apply(this,arguments)}function l(a,b,c){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){e!=null&&c("gkx")("23995")&&(yield c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:d("ArmadilloDataTraceCheckPoint").armadilloTlcControlOpenThread,dataTraceId:e,syncChannel:(i||(i=d("I64"))).minus_one,tags:b}))});return m.apply(this,arguments)}function a(a,b,c,d,e){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g,k){var m=c("LSGenerateTraceId")(),n=k[0];n=d("MessagingLoggingUtils").convertI64ToAttachmentType(n.attachmentType);yield j(a,m,(i||(i=d("I64"))).of_int32(g.length),n);var o=0;n=g.map(function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,g){yield c("LSInsertNewMediaSendStoredProcedure")(c("LSFactory")(a),{attachmentType:b.attachment_type,inMessageIndex:(i||(i=d("I64"))).of_int32(g),isSecure:!1,offlineAttachmentId:b.attachment_fbid,offlineThreadingId:f,sendByServer:!1,shouldTranscode:!1,useDoublePhase:!1});yield d("MWPOpenComposerUtils").updateMediaStaging(a,b.attachment_fbid,function(a){return babelHelpers["extends"]({},a,{isSent:!0})});g=k.find(function(a){return a.offlineAttachmentId===b.offline_attachment_id});if(g!=null){var h=g.fbid;h!=null&&(yield c("LSMarkSubJobCompletedV2StoredProcedure")(c("LSFactory")(a),{fbid:h,offlineAttachmentId:b.attachment_fbid}),yield d("MWPOpenComposerUtils").deleteMediaStaging(a,b.attachment_fbid),yield d("MWPOpenComposerUtils").updateAttachment(a,e,f,b.attachment_fbid,function(a){return babelHelpers["extends"]({},a,{attachmentFbid:(i||(i=d("I64"))).to_string(h)})}),o++)}c("gkx")("24136")&&(yield d("MWPOpenComposerUtils").updateAttachment(a,e,f,b.attachment_fbid,function(a){return babelHelpers["extends"]({},a,{previewHeight:void 0,previewWidth:void 0})}))});return function(a,b){return g.apply(this,arguments)}}());yield (h||(h=b("Promise"))).allSettled(n);yield d("MWPOpenComposerUtils").resumeSendJob(c("LSFactory")(a),f,m);yield l(a,i.to_string(e),m);yield c("updateAndFlushLSDataTrace")(a,m);return{sentWithAllFilesUploaded:o===g.length}});return n.apply(this,arguments)}g["default"]=a}),98);
__d("issueSendInstamadilloMediaMessage",["IGDBridgedAPI","MWPOpenComposerUtils","Promise","asyncToGeneratorRuntime","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,c){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f){c("promiseDone")(c("IGDBridgedAPI").sendMediaMessage({offlineThreadingId:f}));f=e.map(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){yield d("MWPOpenComposerUtils").updateMediaStaging(a,b.attachment_fbid,function(a){return babelHelpers["extends"]({},a,{isSent:!0})})});return function(a){return c.apply(this,arguments)}}());yield (h||(h=b("Promise"))).allSettled(f)});return i.apply(this,arguments)}g["default"]=a}),98);
__d("useAttachmentMAWNoop",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){}f["default"]=a}),66);
__d("useIsAdsAIChat",["AdsAIMessengerUtils","ReQL","ReQLSuspense","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(i||d("react")).useMemo;function a(a){var b=d("react-compiler-runtime").c(8),e=(h||(h=c("useReStore")))(),g;b[0]!==e.tables.participants||b[1]!==a?(g=function(){return d("ReQL").fromTableAscending(e.tables.participants,["contactId"]).getKeyRange(a)},b[0]=e.tables.participants,b[1]=a,b[2]=g):g=b[2];var i;b[3]!==e||b[4]!==a?(i=[e,a],b[3]=e,b[4]=a,b[5]=i):i=b[5];g=d("ReQLSuspense").useArray(g,i,f.id+":23");b[6]!==g?(i=g.some(j),b[6]=g,b[7]=i):i=b[7];g=i;b=g;return b}function j(a){return d("AdsAIMessengerUtils").isAdsAIParticipant(a.contactId)}g["default"]=a}),98);
__d("useMAWDeleteLinkPreviewXMATableData",["FBLogger","Int64Hooks","LSMessagingThreadTypeUtil","asyncToGeneratorRuntime","react-compiler-runtime","useAsyncReStore"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var e=d("react-compiler-runtime").c(5),g=c("useAsyncReStore")(),h;e[0]!==a?(h=a!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(a),e[0]=a,e[1]=h):h=e[1];var i=h;e[2]!==g||e[3]!==i?(a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var d=a.draftId;if(!i)return;a=(yield g);a=(yield a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;b=null;yield a.e2ee_composer_draft_link_preview.get(d).then(function(a){a=JSON.parse((a=a==null?void 0:a.data)!=null?a:"{}");b=a.iframeMediaURL});yield a.e2ee_composer_draft_link_preview["delete"](d);return b});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":40"));if(a!=null)try{URL.revokeObjectURL(a)}catch(b){a=b;c("FBLogger")("messenger_web_sharing").mustfix("Failed to revoke the object URL with, failed with error: %s",a)}});return function(b){return a.apply(this,arguments)}}(),e[2]=g,e[3]=i,e[4]=a):a=e[4];return d("Int64Hooks").useCallbackInt64(a)}g["default"]=a}),98);
__d("useMAWFetchAndWriteLinkPreviewXMATableData",["ConstUriUtils","E2EELinkPreviewXMADataStatus","E2EELinkPreviewXMADataType","FBLogger","I64","Int64Hooks","LSMessagingThreadTypeUtil","MAWExternalLinkUtil","MAWPreProcessLinkPreviewQPL","asyncToGeneratorRuntime","getRequestConstUri","isFacebookURI","promiseDone","react-compiler-runtime","useAsyncReStore","useMAWDeleteLinkPreviewXMATableData","useXMAPreviewsDisabledSetting"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(){var a=!1;return{abort:function(){a=!0},isAborted:function(){return a}}};function e(a){var e=d("react-compiler-runtime").c(9),f=a.threadKey;a=a.threadType;var g=c("useAsyncReStore")(),h;e[0]!==a?(h=a!=null&&d("LSMessagingThreadTypeUtil").isArmadilloSecure(a),e[0]=a,e[1]=h):h=e[1];var l=h,n=c("useMAWDeleteLinkPreviewXMATableData")(a);e[2]===Symbol["for"]("react.memo_cache_sentinel")?(h=c("getRequestConstUri")(),e[2]=h):h=e[2];var o=h,p=c("useXMAPreviewsDisabledSetting")();e[3]!==g||e[4]!==n||e[5]!==p||e[6]!==l||e[7]!==f?(a=function(a){var e=a.draftId,h=a.urls,q=i();a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!l)return;var a=d("ConstUriUtils").getUri(h[0].entity.url);if(a==null)return;var b=d("MAWPreProcessLinkPreviewQPL").startMediaPreProcessLinkPreviewQpl({draftId:e,url:a.toString()}),i=c("isFacebookURI")(a),r=c("isFacebookURI")(o);r=i&&r;if(i&&p){j({abortToken:q,dbPromise:g,deleteLinkPreviewXMATableData:n,draftId:e,qplEvent:b,qplSubspanPoint:"write_fb_disabled",status:c("E2EELinkPreviewXMADataStatus").DISABLED,threadKey:f,xmaData:null});b.endCancel({string:{cancel_reason:"fb_xmas_disabled"}},706);return}j({abortToken:q,dbPromise:g,deleteLinkPreviewXMATableData:n,draftId:e,qplEvent:b,qplSubspanPoint:"write_loading_status",status:c("E2EELinkPreviewXMADataStatus").LOADING,threadKey:f,xmaData:{title:a.getDomain(),url:a.toString()}});b.addAnnotations({bool:{should_fetch_from_og:r},string:{link_type:i?"facebook":"external"}});i=r?yield k(a.toString(),b):yield m(h,b);r=i.dataType;a=i.xmaData;j({abortToken:q,dataType:r,dbPromise:g,deleteLinkPreviewXMATableData:n,draftId:e,qplEvent:b,qplSubspanPoint:"write_xma_data",status:c("E2EELinkPreviewXMADataStatus").LOADED,threadKey:f,xmaData:a})});return function(){return a.apply(this,arguments)}}();a();return q},e[3]=g,e[4]=n,e[5]=p,e[6]=l,e[7]=f,e[8]=a):a=e[8];return d("Int64Hooks").useCallbackInt64(a)}function j(a){var b=a.abortToken,e=a.dataType,g=a.dbPromise,i=a.deleteLinkPreviewXMATableData,j=a.draftId,k=a.qplEvent,l=a.qplSubspanPoint,m=a.status,n=a.xmaData;k.addAnnotations({"int":{data_type:e}});if(b.isAborted()){k.endCancel({string:{cancel_reason:"fetch_aborted"}},706);return}k.addPoint(l+"_start");c("promiseDone")(g,function(a){return a.runInTransaction(function(a){return a.e2ee_composer_draft_link_preview.put({data:n!=null?JSON.stringify(n):void 0,dataType:e!=null?(h||(h=d("I64"))).of_int32(e):void 0,draftId:j,status:(h||(h=d("I64"))).of_int32(m)})},"readwrite",void 0,void 0,f.id+":213").then(function(a){b.isAborted()&&(k.endCancel({string:{cancel_reason:"fetch_aborted_delete"}},706),void i({draftId:a[0]})),k.addPoint(l+"_success"),l==="write_xma_data"&&k.endSuccess()})["catch"](function(a){k.endFail(l+"_failed",{string:{data_status:String(m),error:"Error thrown when writing Link Preview XMA data to LSDB table. Error: "+a}}),c("FBLogger")("messenger_web_sharing").catching(a).mustfix("Failed to write Link Preview XMA data to LSDB table.")})})}function k(a,b){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var e;b.addPoint("fetch_fb_og_data_start");e=(e=(e=d("ConstUriUtils").getUri(a))==null?void 0:e.getDomain())!=null?e:a;try{var f;b.addPoint("http_request_start");var g=(yield window.fetch(a,{credentials:"omit",referrerPolicy:"no-referrer"}));b.addPoint("http_response_end");if(!g.ok){b.addPoint("fetch_fb_og_data_end",{string:{fetch_fb_og_data_end:"http_response_error",response_status_code:String(g.status),xma_data_returned:"fallback"}});return o(e,a)}g=(yield g.text());var h=new DOMParser();h=h.parseFromString(g,"text/html");h.querySelector("parsererror")&&b.addPoint("html_parsererror");g=(g=h.querySelector('meta[property="og:image"]'))==null?void 0:g.getAttribute("content");f=(f=h.querySelector('meta[name="description"]'))==null?void 0:f.getAttribute("content");h=(h=h.querySelector('meta[property="og:title"]'))==null?void 0:h.getAttribute("content");if(g==null&&f==null&&h==null){b.addPoint("fetch_fb_og_data_end",{string:{fetch_fb_og_data_end:"og_data_is_null",xma_data_returned:"fallback"}});return o(e,a)}b.addPoint("fetch_fb_og_data_success",{string:{xma_data_returned:"rich_xma"}});return{dataType:c("E2EELinkPreviewXMADataType").FB_CLIENT_FETCH,xmaData:{author_name:(f=f)!=null?f:void 0,iframeMediaURL:g,thumbnail_url:(f=g)!=null?f:void 0,title:(g=h)!=null?g:e,url:a}}}catch(c){b.addPoint("fetch_fb_og_data_end",{string:{fetch_fb_og_data_end:"failed_to_fetch_data",xma_data_returned:"fallback"}});return o(e,a)}});return l.apply(this,arguments)}function m(a,b){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,e){e.addPoint("fetch_external_link_oembed_data_start");var f=d("MAWExternalLinkUtil").findFirstAvailableOembedUrlAndRequestPair(b);b=b[0].entity.url;var g=null;if(f!=null){b=f.oEmbedUrl;try{e.addPoint("get_oembed_response_start"),g=(yield d("MAWExternalLinkUtil").getOembedResponse({fallbackUrl:b,qplEvent:e,request:f.oEmbedRequest})),e.addPoint("get_oembed_response_success")}catch(a){e.addPoint("get_oembed_response_returned_null",{string:{get_oembed_response_returned_null:"Error thrown when fetching oEmbed data for External Link XMA. Error message: "+a}}),e.addPoint("get_oembed_response_end"),c("FBLogger")("messenger_web_sharing").catching(a).mustfix("[External link] Error thrown when fetching oEmbed data for External Link XMA.")}}f=(f=d("ConstUriUtils").getUri(b))==null?void 0:f.getDomain();if(g==null){var h;e.addPoint("fetch_external_link_oembed_data_success",{string:{xma_data_returned:"fallback"}});return o((h=f)!=null?h:b,b)}e==null?void 0:e.addPoint("get_image_blob_response_start");h=(yield d("MAWExternalLinkUtil").getImageBlobResponse({qplEvent:e,xmaData:g}));var i=null;if(h!=null&&d("MAWExternalLinkUtil").allowedPreviewTypes.includes(h.type)){h=new File([h],"preview",{type:h.type});i=a.URL.createObjectURL(h)}e==null?void 0:e.addPoint("get_image_blob_response_end",{bool:{media_url_is_null:i==null}});e.addPoint("fetch_external_link_oembed_data_success",{string:{xma_data_returned:"rich_xma"}});return{dataType:c("E2EELinkPreviewXMADataType").OEMBED,xmaData:babelHelpers["extends"]({iframeMediaURL:i},g,{title:(h=g.title)!=null?h:f,url:(e=g.url)!=null?e:b})}});return n.apply(this,arguments)}function o(a,b){return{dataType:c("E2EELinkPreviewXMADataType").FALLBACK,xmaData:{title:a,url:b}}}g["default"]=e}),98);
__d("useMWLSSaveDrafts",["CometDebounce","Int64Hooks","LexicalText","MWPComposerDraftMessages","MWPNewMessageDraftContext.react","isStringNullOrEmpty","justknobx","react","useMAWDeleteLinkPreviewXMATableData","useMAWFetchAndWriteLinkPreviewXMATableData"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback,j=c("justknobx")._("3119");function a(a){var b=a.editor,e=a.isPreviewThread,f=a.threadKey,g=a.threadType,h=j,k=c("useMAWFetchAndWriteLinkPreviewXMATableData")({threadKey:f,threadType:g}),l=c("useMAWDeleteLinkPreviewXMATableData")(g),m=d("MWPNewMessageDraftContext.react").useNewMessageDraftContext(),n=i(function(a){e&&m!=null?m.current=a:d("MWPComposerDraftMessages").updateDraftMessage({deleteLinkPreviewXMATableData:l,fetchAndWriteLinkPreviewXMA:k,message:a,threadKey:f,threadType:g})},[l,k,e,m,f,g]);d("Int64Hooks").useEffectInt64(function(){b.registerUpdateListener(c("CometDebounce")(function(a){a=a.editorState;a=a.read(function(){return d("LexicalText").$rootTextContent()});if(c("isStringNullOrEmpty")(a)){n(a);return}n(a)},{wait:h}))},[h,b,n]);d("Int64Hooks").useEffectInt64(function(){var a=b.getEditorState().read(function(){return d("LexicalText").$rootTextContent()});n(a)},[b,n])}g["default"]=a}),98);
__d("useMWMarkThreadAsReadWhenNewMessagesArrive",["I64","Int64Hooks","MWLSThreadDisplayContext","MWV2IsTabFocusedContext.react","ReQL","ReQLObservable","UserActivity","asyncToGeneratorRuntime","cr:268","gkx","promiseDone","react-compiler-runtime","useAsyncReStore","useEmptyFunction","useMWInboxPassiveContext","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(e=b("cr:268"))!=null?e:c("useEmptyFunction");function k(a,b,c,d,e){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g){var h=(yield d("ReQL").firstAsync(d("ReQL").fromTableDescending(a.tables.messages).getKeyRange(b)));if(h==null)return!1;a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(b)));if(a==null)return!1;b=g!==void 0?g==="ChatTab"?e:g==="Inbox"&&c("gkx")("24041")?!f.isPassive:!0:!0;e=(i||(i=d("I64"))).gt(h.timestampMs,a.lastActivityTimestampMs)?h.timestampMs:a.lastActivityTimestampMs;g=(i||(i=d("I64"))).gt(e,a.lastReadWatermarkTimestampMs);return c("UserActivity").isOnTab()&&c("UserActivity").isActive()&&b&&g});return l.apply(this,arguments)}function m(a,e){var f=d("react-compiler-runtime").c(8),g=c("useAsyncReStore")(),h=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),i=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),j=c("useMWInboxPassiveContext")(),l,m;f[0]!==g||f[1]!==h||f[2]!==e||f[3]!==j||f[4]!==i||f[5]!==a?(l=function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield g);if(yield k(b,a,h,j,i))return e()})())},m=[g,a,h,j,i,e],f[0]=g,f[1]=h,f[2]=e,f[3]=j,f[4]=i,f[5]=a,f[6]=l,f[7]=m):(l=f[6],m=f[7]);return d("Int64Hooks").useCallbackInt64(l,m)}function n(a,e,f,g){var i=d("react-compiler-runtime").c(7),j=(h||(h=c("useReStore")))(),k,l;i[0]!==a||i[1]!==e||i[2]!==j||i[3]!==f||i[4]!==g?(k=function(){var c=function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=a();typeof b!=="boolean"&&(b=(yield b));if(b&&!e())return f()});return function(){return c.apply(this,arguments)}}();window.addEventListener("focus",c);document.hasFocus()&&c();var h=d("ReQLObservable").create(j,function(){return d("ReQL").fromTableDescending(j.tables.messages).getKeyRange(g)}).subscribe({next:c});return function(){window.removeEventListener("focus",c),h.unsubscribe()}},l=[f,a,e,g,j],i[0]=a,i[1]=e,i[2]=j,i[3]=f,i[4]=g,i[5]=k,i[6]=l):(k=i[5],l=i[6]);d("Int64Hooks").useEffectInt64(k,l)}function a(a,b,c,d){b=m(a.threadKey,b);j(a);n(c,d,b,a.threadKey);return b}g["default"]=a}),98);
__d("useMWPAriaLabelForMessageListGrid",["fbt","Int64Hooks","MWPActor.react","MWPGetThreadTitle","ReQL","ReQLSuspense","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function a(a){var b=d("react-compiler-runtime").c(11),e=d("MWPActor.react").useActor(),g=(i||(i=c("useReStore")))(),j,k;b[0]!==g||b[1]!==a.threadKey||b[2]!==a.threadName?(j=function(){return a.threadName!=null?d("ReQL").empty():d("ReQL").leftJoin(d("ReQL").fromTableAscending(g.tables.participants,["contactId","nickname","authorityLevel"]).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(g.tables.contacts,["name","rank","contactType","firstName","capabilities","capabilities2"])).take(8)},k=[g,a.threadKey,a.threadName],b[0]=g,b[1]=a.threadKey,b[2]=a.threadName,b[3]=j,b[4]=k):(j=b[3],k=b[4]);var l=d("ReQLSuspense").useArray(j,k,f.id+":32");b[5]!==e||b[6]!==l||b[7]!==a.threadName||b[8]!==a.threadType?(j=function(){var b;if(a.threadName!=null)return h._(/*BTDS*/"__JHASH__NOo4A_R8oVU__JHASH__",[h._param("name of conversation",a.threadName)]).toString();b=(b=d("MWPGetThreadTitle").computeThreadTitle(void 0,a.threadType,l,e))!=null?b:"";return h._(/*BTDS*/"__JHASH__KCW8qihKWub__JHASH__",[h._param("participant list",b)]).toString()},k=[e,l,a.threadName,a.threadType],b[5]=e,b[6]=l,b[7]=a.threadName,b[8]=a.threadType,b[9]=j,b[10]=k):(j=b[9],k=b[10]);return d("Int64Hooks").useMemoInt64(j,k)}g["default"]=a}),226);
__d("useMWPComposerAutoFocus",["MWChatFocusComposerContext","MWPReplyContext.react","MWV2IsTabFocusedContext.react","deepEquals","react","react-compiler-runtime","useMWGetInboxFocusTargetFromRoute","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useContext,j=b.useEffect;function k(a){var b;b=(b=document.activeElement)==null?void 0:(b=b.attributes.getNamedItem("id"))==null?void 0:b.value;if(b==null?void 0:b.includes("prevent-composer-focus-steal"))return;return a.focus(function(){})}function a(a){var b=d("react-compiler-runtime").c(19),e=a.editor,f=a.focusEditorDelayed,g=a.hasUnsentAttachments,h=a.isPreviewThread,l=a.isQuickchat,m=g===void 0?!1:g;a=h===void 0?!1:h;g=d("MWChatFocusComposerContext").useMWChatFocusComposer();h=g.setFocusComposer;g=i(d("MWPReplyContext.react").MWPReplyContext);var n=g.reply,o=c("usePrevious")(n),p;b[0]!==e||b[1]!==f||b[2]!==l||b[3]!==o||b[4]!==n?(g=function(){(o==null?n!=null:!c("deepEquals")(o,n))&&(l&&f?f(e):k(e))},p=[e,n,o,f,l],b[0]=e,b[1]=f,b[2]=l,b[3]=o,b[4]=n,b[5]=g,b[6]=p):(g=b[5],p=b[6]);j(g,p);g=c("useMWGetInboxFocusTargetFromRoute")();p=d("MWV2IsTabFocusedContext.react").useIsTabFocused();var q=g===0&&p&&!a;b[7]!==e||b[8]!==f||b[9]!==l||b[10]!==q?(g=function(){q&&(l&&f?f(e):k(e))},p=[e,q,f,l],b[7]=e,b[8]=f,b[9]=l,b[10]=q,b[11]=g,b[12]=p):(g=b[11],p=b[12]);j(g,p);b[13]!==e||b[14]!==f||b[15]!==m||b[16]!==l?(a=function(){m&&(l&&f?f(e):k(e))},g=[e,m,f,l],b[13]=e,b[14]=f,b[15]=m,b[16]=l,b[17]=a,b[18]=g):(a=b[17],g=b[18]);j(a,g);h(function(){l&&f?f(e):k(e)})}g["default"]=a}),98);
__d("usePrepopulateLexicalEditor",["Lexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect;function a(a,b,c){i(function(){if(b==null)return;a.update(function(){if(b!=null){var a=d("Lexical").$getRoot(),e=a.getFirstChild();d("Lexical").$isParagraphNode(e)||(e=d("Lexical").$createParagraphNode(),a.append(e));a=d("Lexical").$createTextNode(b);e.clear();e.append(a);c===!0&&e.selectEnd()}})},[a])}g["default"]=a}),98);
__d("useMWPComposerEditorDraftText",["MWPComposerDraftMessages","MWPNewMessageDraftContext.react","MWPreloadedText","react","useMWLSSaveDrafts","usePrepopulateLexicalEditor"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(a){var b=a.editor,e=a.isPreviewThread;e=e===void 0?!1:e;var f=a.isQuickchat;f=f===void 0?!1:f;var g=a.threadKey;a=a.threadType;var h=d("MWPNewMessageDraftContext.react").useNewMessageDraftContext(),j=i(c("MWPreloadedText"));h=j.text!=null?j.text:h!=null?h.current:(j=d("MWPComposerDraftMessages").getDraftMessage(g))==null?void 0:j.messageText;c("useMWLSSaveDrafts")({editor:b,isPreviewThread:e,threadKey:g,threadType:a});c("usePrepopulateLexicalEditor")(b,f?void 0:h);return h}g["default"]=a}),98);
__d("useMWPLexicalClearEditor",["Lexical","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect;function a(a,b){var c=d("react-compiler-runtime").c(4),e=b===void 0?!1:b,f;c[0]!==e||c[1]!==a?(b=function(){return a.registerCommand(d("Lexical").CLEAR_EDITOR_COMMAND,function(){a.update(function(){var a=d("Lexical").$getRoot(),b=d("Lexical").$getSelection(),c=d("Lexical").$createParagraphNode();a.clear();a.append(c);b!==null&&(c.select(),e===!0&&d("Lexical").$isRangeSelection(b)&&(b.format=0))});return!0},d("Lexical").COMMAND_PRIORITY_EDITOR)},f=[e,a],c[0]=e,c[1]=a,c[2]=b,c[3]=f):(b=c[2],f=c[3]);i(b,f)}g["default"]=a}),98);
__d("useMWPSafelyMarkThreadAsRead",["I64","Int64Hooks","LSFactory","LSMessagingThreadTypeUtil","LSOptimisticMarkThreadReadV2StoredProcedure","ServerTime","cr:886","promiseDone","react-compiler-runtime","useAsyncReStoreBulkFix","useMAWMarkThreadAsRead","useMWMarkThreadAsReadWhenNewMessagesArrive"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e,f,g){var i=d("react-compiler-runtime").c(12),j=d("useAsyncReStoreBulkFix").useReStoreHook(),k=a.consistentThreadFbid,l=a.threadKey,m=a.threadType,n=c("useMAWMarkThreadAsRead")(a),o;i[0]!==k||i[1]!==g||i[2]!==l||i[3]!==m?(o={consistentThreadFbid:k,entryPoint:g,threadKey:l,threadType:m},i[0]=k,i[1]=g,i[2]=l,i[3]=m,i[4]=o):o=i[4];var p=b("cr:886")(o);i[5]!==j||i[6]!==p||i[7]!==n||i[8]!==l||i[9]!==m?(k=function(){d("useAsyncReStoreBulkFix").onDbReady(j,function(a){p==null?void 0:p();if(d("LSMessagingThreadTypeUtil").isArmadilloSecure(m)){n();return}c("promiseDone")(a.runInTransaction(function(a){return c("LSOptimisticMarkThreadReadV2StoredProcedure")(c("LSFactory")(a),{readWatermarkTimestampMs:(h||(h=d("I64"))).of_float(d("ServerTime").getMillis()),threadKey:l})},"readwrite","ui"))})},g=[j,p,n,l,m],i[5]=j,i[6]=p,i[7]=n,i[8]=l,i[9]=m,i[10]=k,i[11]=g):(k=i[10],g=i[11]);o=d("Int64Hooks").useCallbackInt64(k,g);return c("useMWMarkThreadAsReadWhenNewMessagesArrive")(a,o,e,f)}g["default"]=a}),98);
__d("useMWV2FileDropzoneRegisterHandler",["MWV2FileDropzone.react","react","useMWIsHDMediaEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect;function a(a){var b=i(d("MWV2FileDropzone.react").mWV2FileDropzoneContext),e=c("useMWIsHDMediaEnabled")();j(function(){var c={enabled:!0,handler:function(b){return a(b,e)}};b.current=c;return function(){c.enabled=!1,c.handler=null}},[b,a,e])}g["default"]=a}),98);
__d("useMWV2SendOpenMessageImplShared",["ArmadilloDataTraceCheckPoint","I64","IGDGetMessagePluginInfo","IGDThreadTTLCUtils","Int64Hooks","LSAppendDataTraceAddonStoredProcedure","LSAuthorityLevel","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSPendingTasksPluginType","LSShape","MWPActor.react","MWPReplyContext.react","MWPSendMessageLogger","MessagePowerUp","MessagingAttachmentType","Promise","ReQL","ReQLSuspense","asyncToGeneratorRuntime","gkx","isMWBumpMessage","react","sendToSentQPLLogger","useLSMessagingInitiatingSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=(k||d("react")).useContext;function n(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){e!=null&&c("gkx")("23995")&&(yield c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:d("ArmadilloDataTraceCheckPoint").armadilloTlcControlOpenThread,dataTraceId:e,syncChannel:(l||(l=d("I64"))).minus_one,tags:b}))});return o.apply(this,arguments)}function a(a){var e=a.authorityLevel,g=a.disableMarkRead,k=a.ephemeralDurationInSec,o=a.onOptimisticMessageCreation,p=a.skipUrlPreviewGen,q=a.threadKey,r=a.threadType,s=d("MWPActor.react").useActor();a=m(d("MWPReplyContext.react").MWPReplyContext);var t=a.reply,u=c("useLSMessagingInitiatingSource")(),v=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return(t==null?void 0:t.messageId)==null?d("ReQL").empty():d("ReQL").fromTableAscending(v.tables.messages.index("messageId")).getKeyRange(t.messageId)},[t==null?void 0:t.messageId,v.tables.messages],f.id+":132");var w=c("isMWBumpMessage")(a==null?void 0:a.replyType)?a==null?void 0:a.replySourceId:t==null?void 0:t.messageId;return d("Int64Hooks").useCallbackInt64(function(a,f){var i=f.afterSend,m=f.attributionAppId,v=f.dataclassParams,x=f.dataTraceId,y=f.externalAttachmentUrl,z=f.hotEmojiSize,A=f.logSendPoint,B=f.mentionData,C=f.messageText,D=f.messageTypeParams,E=f.multitabEnv,F=f.optimisticAttachmentPreview,G=f.platformToken,H=f.pluginType,I=f.profileRanges,J=f.richTextFormatType,K=f.s2sInstanceKey,L=f.setupS2SLogging,M=f.source,N=f.stickerID,O=f.traceSendMessageAPI,P=f.transaction;return Q(P);function Q(a){return R.apply(this,arguments)}function R(){R=b("asyncToGeneratorRuntime").asyncToGenerator(function*(f){var Q=c("LSFactory")(f),R=c("gkx")("24135");yield n(f,(l||(l=d("I64"))).to_string(q),x);var S=D.hasAttachment,T=D.hasGif,U=D.hasLinks,V=D.hasSticker,W=D.hasText,X=(yield f.threads.get(q)),Y=U?d("IGDThreadTTLCUtils").isInstamadilloTTLCLinkEnabled(X):d("IGDThreadTTLCUtils").isInstamadilloTTLCTextEnabled(X);X=(yield d("IGDGetMessagePluginInfo").IGDGetMessagePluginInfo(f,t,function(){return(h||(h=b("Promise"))).resolve({openEb:Y,pluginType:Y?(j||(j=d("LSIntEnum"))).ofNumber(c("LSPendingTasksPluginType").IGD_INSTAMADILLO):H})}));f=X.openEb;X=X.pluginType;Q=(yield c("LSOptimisticSendMessageV2StoredProcedure")(Q,{dataclassParams:v!=null?JSON.stringify(v):void 0,extraSendMessageParams:d("LSShape").ofRecord({attribution_app_id:m,calculate_denormalizations:!1,data_trace_id:(Q=x)!=null?Q:void 0,ephemeral_duration_in_sec:k,external_attachment_url:y,hot_emoji_size:z,initiating_source:u,mark_read:g===!0?!1:(l||(l=d("I64"))).ge(e,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)),mention_data:B,multitab_env:E,openEb:f,optimistic_attachment_preview:F,platform_token:G,plugin_type:X,power_up_style:(j||(j=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),qpl_instance_key:K.toString(),reply_source_id:w,reply_source_type:t!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceType").MESSAGE):void 0,reply_source_type_v2:t!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE):void 0,rich_text_format_type:J,skip_url_preview_gen:p,source:M,sticker_id:N,text_has_links:U&&R}),mailboxType:j.ofNumber(c("LSMailboxType").MESSENGER),senderId:s,text:C,threadKey:q,threadType:r}));A("create_optimistic_message_end");d("MWPSendMessageLogger").log(a,q,r,s,void 0,[],M,c("MessagingAttachmentType").NONE,t!=null,X,Y,k);if(!S){R=Q[0];L(R);O.addAnnotationBoolean("is_instamadillo_ttlc",Y&&f===!0);d("sendToSentQPLLogger").addSendToSentAnnotations(K,{bool:{is_instamadillo_ttlc:Y&&f===!0}})}o!=null&&o({TAG:0,hasLink:U,hasMention:I!=null&&I.length>0,isGIF:T,isReply:!!(t&&t.messageId!==""),isSticker:V,isText:W,offlineThreadingId:Q[0]});i!=null&&(yield i(P));return Q});return R.apply(this,arguments)}},[q,t,k,u,g,e,w,p,s,r,o])}g["default"]=a}),98);
__d("useMWV2SendOpenMessageImpl",["react-compiler-runtime","useMWV2SendOpenMessageImplShared"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(8),e=a.disableMarkRead,f=a.ephemeralDurationInSec,g=a.onOptimisticMessageCreation,h=a.skipUrlPreviewGen;a=a.thread;var i;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==h||b[4]!==a.authorityLevel||b[5]!==a.threadKey||b[6]!==a.threadType?(i={authorityLevel:a.authorityLevel,disableMarkRead:e,ephemeralDurationInSec:f,onOptimisticMessageCreation:g,skipUrlPreviewGen:h,threadKey:a.threadKey,threadType:a.threadType},b[0]=e,b[1]=f,b[2]=g,b[3]=h,b[4]=a.authorityLevel,b[5]=a.threadKey,b[6]=a.threadType,b[7]=i):i=b[7];return c("useMWV2SendOpenMessageImplShared")(i)}g["default"]=a}),98);
__d("useMWV2SendOpenStagedMedia",["I64","IGDGetMessagePluginInfo","IGDThreadTTLCUtils","Int64Hooks","LSFactory","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsV2StoredProcedure","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSMessagingThreadTypeUtil","LSPendingTasksPluginType","LSShape","LSThreadBitOffset","LSVec","MWConsole","MWPActor.react","MWPComposerMediaUploadUtil","MWPReplyContext.react","MWPSendMessageLogger","MessagingAttachmentType","MessagingLoggingUtils","MessengerWebEventsFalcoEvent","Promise","asyncToGeneratorRuntime","issueLSMediaSendJobs","issueSendInstamadilloMediaMessage","react","react-compiler-runtime","sendToSentQPLLogger","useLSMessagingInitiatingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(i||d("react")).useContext;function a(a,e,f){var g=d("react-compiler-runtime").c(11),i=d("MWPActor.react").useActor(),n=l(d("MWPReplyContext.react").MWPReplyContext),o=n.reply,p=c("useLSMessagingInitiatingSource")();g[0]!==f?(n=d("LSThreadBitOffset").has(40,f),g[0]=f,g[1]=n):n=g[1];var q=n,r;g[2]!==i||g[3]!==a||g[4]!==p||g[5]!==e||g[6]!==o||g[7]!==q||g[8]!==f?(n=function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(g,l){var n=l.isFirstMessage,r=l.isFirstMessageText,s=l.mediaStagings,t=l.pluginType,u=l.s2sInstanceKey,v=l.sendFirstMessageSeparately,w=l.setupS2SLogging,x=l.source,y=l.traceSendMessageAPI;l=l.transaction;n=n===void 0?!1:n;v=v===void 0?!1:v;if(s.length===0)return;var z;z=!1;if(s.length===1){var A=s[0];(k||(k=d("I64"))).to_int32(A.attachmentType)===c("MessagingAttachmentType").IMAGE?z=d("IGDThreadTTLCUtils").isInstamadilloTTLCImageEnabled(f):(k||(k=d("I64"))).to_int32(A.attachmentType)===c("MessagingAttachmentType").VIDEO&&(z=d("IGDThreadTTLCUtils").isInstamadilloTTLCVideoEnabled(f))}A=(yield d("IGDGetMessagePluginInfo").IGDGetMessagePluginInfo(l,o,function(){return(h||(h=b("Promise"))).resolve({openEb:z,pluginType:z?(j||(j=d("LSIntEnum"))).ofNumber(c("LSPendingTasksPluginType").IGD_INSTAMADILLO):t})}));var B=A.openEb;A=A.pluginType;var C=s[0];C=d("MessagingLoggingUtils").convertI64ToAttachmentType(C.attachmentType);var D=d("MWPComposerMediaUploadUtil").createPartitionedAttachments(s,q),E;E=!0;for(var F=0;F<D.length;F++)if(!n||!v||F===0&&n&&!r){var G=D[F],H=(yield c("LSLocalApplyOptimisticMessageWithAttachmentsV2StoredProcedure")(c("LSFactory")(l),{extraSendMessageParams:d("LSShape").ofRecord({attachments:c("LSVec").ofArray(G.map(d("LSShape").ofRecord)),ephemeral_duration_in_sec:a,external_attachment_url:void 0,initiating_source:p,mark_read:!1,platform_ref:void 0,platform_token:void 0,plugin_type:A,reply_source_id:o==null?void 0:o.messageId,reply_source_type:o!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceType").MESSAGE):void 0,reply_source_type_v2:o!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE):void 0,source:x}),senderId:i,threadKey:f.threadKey,threadType:f.threadType}));H=H[0];F===0&&(w(H),y.addAnnotationBoolean("is_instamadillo_ttlc",z&&B===!0),d("sendToSentQPLLogger").addSendToSentAnnotations(u,{bool:{is_instamadillo_ttlc:z&&B===!0}}));yield l.messages_optimistic_context.add({externalAttachmentUrl:void 0,initiatingSource:p,markThreadRead:!1,messageId:void 0,offlineThreadingId:H,openEb:B,platformRef:void 0,platformToken:void 0,replySourceId:void 0,replySourceType:void 0,sendType:void 0,skipUrlPreviewGen:void 0,taskId:(k||(k=d("I64"))).of_string(H),threadAttributionSource:x,threadKey:f.threadKey});e==null?void 0:e({TAG:2,numberOfAttachments:G.length,offlineThreadingId:H});if(A!=null&&(j||(j=d("LSIntEnum"))).unwrapIntEnum(A)===c("LSPendingTasksPluginType").IGD_INSTAMADILLO)yield c("issueSendInstamadilloMediaMessage")(l,G,H);else{var I=(yield c("issueLSMediaSendJobs")(l,f.threadKey,H,G,s));E=E&&I.sentWithAllFilesUploaded}d("MWPSendMessageLogger").log(g,f.threadKey,f.threadType,i,H,G.map(m),x,C,o!=null,A,z,a)}I=(k||(k=d("I64"))).to_string(f.threadKey);H=d("LSMessagingThreadTypeUtil").isGroup(f.threadType)?[I,null]:[null,I];var J=H[0],K=H[1];c("MessengerWebEventsFalcoEvent").log(function(){return{event_name:E?"hit_send_message_with_all_files_uploaded":"hit_send_message_with_files_pending",extra_data:null,other_user_fbid:K,thread_fbid:J}})});return function(a,b){return g.apply(this,arguments)}}(),r=[o,q,f,a,p,i,e],g[2]=i,g[3]=a,g[4]=p,g[5]=e,g[6]=o,g[7]=q,g[8]=f,g[9]=n,g[10]=r):(n=g[9],r=g[10]);return d("Int64Hooks").useCallbackInt64(n,r)}function m(a){return a.attachment_fbid}g["default"]=a}),98);
__d("useMWV2SendOpenVoiceClipImplShared",["I64","IGDGetMessagePluginInfo","IGDThreadTTLCUtils","Int64Hooks","LSFactory","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsV2StoredProcedure","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSPendingTasksPluginType","LSShape","LSVec","MWMediaTraceHandler","MWPActor.react","MWPComposerMediaUploadUtil","MWPReplyContext.react","MessagingLoggingUtils","OfflineThreadingId","Promise","asyncToGeneratorRuntime","issueLSAudioMediaSendJob","issueSendInstamadilloMediaMessage","react","react-compiler-runtime","sendToSentQPLLogger","useLSMessagingInitiatingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(i||d("react")).useContext;function m(a,b,c,d){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){b!=null&&(yield d("MWMediaTraceHandler").logMediaSendStart(a,b,c,(k||(k=d("I64"))).of_int32(e)))});return n.apply(this,arguments)}function a(a){var e=d("react-compiler-runtime").c(14),f=a.ephemeralDurationInSec,g=a.onOptimisticMessageCreation,i=a.onUploadFailure,n=a.onUploadStart,o=a.onUploadSuccess,p=a.sendMessageLogger,q=a.skipUrlPreviewGen,r=a.threadKey,s=a.threadType,t=d("MWPActor.react").useActor();a=l(d("MWPReplyContext.react").MWPReplyContext);var u=a.reply,v=c("useLSMessagingInitiatingSource")(),w;e[0]!==t||e[1]!==f||e[2]!==v||e[3]!==g||e[4]!==i||e[5]!==n||e[6]!==o||e[7]!==u||e[8]!==p||e[9]!==q||e[10]!==r||e[11]!==s?(a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e){var l=e.dataTraceId,w=e.pluginType,x=e.s2sInstanceKey,y=e.setupS2SLogging,z=e.source,A=e.traceSendMessageAPI,B=e.transaction;e=e.voiceClip;var C=c("LSFactory")(B),D=d("OfflineThreadingId").createOfflineThreadingID(),E=d("MWPComposerMediaUploadUtil").getAudioAttachment(D,e.file,e.duration,e.waveformData);yield m(B,l,(k||(k=d("I64"))).one,2);var F=(yield B.threads.get(r)),G=d("IGDThreadTTLCUtils").isInstamadilloTTLCAudioEnabled(F);F=(yield d("IGDGetMessagePluginInfo").IGDGetMessagePluginInfo(B,u,function(){return(h||(h=b("Promise"))).resolve({openEb:G,pluginType:G?(j||(j=d("LSIntEnum"))).ofNumber(c("LSPendingTasksPluginType").IGD_INSTAMADILLO):w})}));var H=F.openEb;F=F.pluginType;C=(yield c("LSLocalApplyOptimisticMessageWithAttachmentsV2StoredProcedure")(C,{extraSendMessageParams:d("LSShape").ofRecord({attachments:c("LSVec").ofArray([d("LSShape").ofRecord(E)]),ephemeral_duration_in_sec:f,external_attachment_url:void 0,initiating_source:v,mark_read:!1,platform_ref:void 0,platform_token:void 0,plugin_type:F,reply_source_id:u==null?void 0:u.messageId,reply_source_type:u!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceType").MESSAGE):void 0,reply_source_type_v2:u!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE):void 0,source:z}),senderId:t,threadKey:r,threadType:s}));C=C[0];y(C);A.addAnnotationBoolean("is_instamadillo_ttlc",G&&H===!0);d("sendToSentQPLLogger").addSendToSentAnnotations(x,{bool:{is_instamadillo_ttlc:G&&H===!0}});yield B.messages_optimistic_context.add({externalAttachmentUrl:void 0,initiatingSource:v,markThreadRead:!1,messageId:void 0,offlineThreadingId:C,openEb:H,platformRef:void 0,platformToken:void 0,replySourceId:void 0,replySourceType:void 0,sendType:void 0,skipUrlPreviewGen:q,taskId:k.of_string(C),threadAttributionSource:z,threadKey:r});g!=null&&g({TAG:1,offlineThreadingId:C});F!=null&&(j||(j=d("LSIntEnum"))).unwrapIntEnum(F)===c("LSPendingTasksPluginType").IGD_INSTAMADILLO?yield c("issueSendInstamadilloMediaMessage")(B,[E],C):yield c("issueLSAudioMediaSendJob")(B,r,t,l,D,C,E,e,n,o,i);p(a,{actor:t,attachmentFbids:[E.attachment_fbid],attachmentType:d("MessagingLoggingUtils").convertI64ToAttachmentType(E.attachment_type),hasReply:u!=null,isInstamadilloTTLC:H,key:r,offlineThreadingId:C,pluginType:F,source:z,type:s})});return function(b,c){return a.apply(this,arguments)}}(),w=[r,f,v,u,t,s,q,g,p,n,o,i],e[0]=t,e[1]=f,e[2]=v,e[3]=g,e[4]=i,e[5]=n,e[6]=o,e[7]=u,e[8]=p,e[9]=q,e[10]=r,e[11]=s,e[12]=a,e[13]=w):(a=e[12],w=e[13]);return d("Int64Hooks").useCallbackInt64(a,w)}g["default"]=a}),98);
__d("useMWV2SendOpenVoiceClip",["Int64Hooks","MWPSendMessageLogger","react-compiler-runtime","useMWV2SendOpenVoiceClipImplShared"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(13),e=a.ephemeralDurationInSec,f=a.onOptimisticMessageCreation,g=a.onUploadFailure,h=a.onUploadStart,i=a.onUploadSuccess,j=a.skipUrlPreviewGen;a=a.thread;var k,l;b[0]!==e?(k=function(a,b){var c=b.actor,f=b.attachmentFbids,g=b.attachmentType,h=b.hasReply,i=b.isInstamadilloTTLC,j=b.key,k=b.offlineThreadingId,l=b.pluginType,m=b.source;b=b.type;c!=null&&d("MWPSendMessageLogger").log(a,j,b,c,k,f,m,g,h,l,i,e)},l=[e],b[0]=e,b[1]=k,b[2]=l):(k=b[1],l=b[2]);k=d("Int64Hooks").useCallbackInt64(k,l);b[3]!==e||b[4]!==f||b[5]!==g||b[6]!==h||b[7]!==i||b[8]!==k||b[9]!==j||b[10]!==a.threadKey||b[11]!==a.threadType?(l={ephemeralDurationInSec:e,onOptimisticMessageCreation:f,onUploadFailure:g,onUploadStart:h,onUploadSuccess:i,sendMessageLogger:k,skipUrlPreviewGen:j,threadKey:a.threadKey,threadType:a.threadType},b[3]=e,b[4]=f,b[5]=g,b[6]=h,b[7]=i,b[8]=k,b[9]=j,b[10]=a.threadKey,b[11]=a.threadType,b[12]=l):l=b[12];return c("useMWV2SendOpenVoiceClipImplShared")(l)}g["default"]=a}),98);
__d("useMWV2SendOpenMessage",["I64","Int64Hooks","LSGenerateTraceId","LSIntEnum","LSMessagingThreadTypeUtil","LSShape","MWPReplyContext.react","MWSharedMsgLogUtils","MWSharedS2SBaseAnnotations","MWV2ComposerActionsContext.react","MWV2SetupS2SLoggingShared","MultipleTabsLogger","ReQL","asyncToGeneratorRuntime","react","react-compiler-runtime","sendToSentQPLLogger","useAsyncReStore","useMWLSDefaultThreadSource","useMWV2SendOpenMessageImpl","useMWV2SendOpenStagedMedia","useMWV2SendOpenVoiceClip"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext;function a(a){var e=d("react-compiler-runtime").c(28),g=a.disableMarkRead,h=a.ephemeralDurationInSec,p=a.onOptimisticMessageCreation,q=a.onUploadFailure,r=a.onUploadStart,s=a.onUploadSuccess,t=a.pluginType,u=a.skipUrlPreviewGen,v=a.thread,w=c("useAsyncReStore")();a=k(d("MWPReplyContext.react").MWPReplyContext);var x=a.reply,y=c("useMWLSDefaultThreadSource")();e[0]!==h||e[1]!==p||e[2]!==q||e[3]!==r||e[4]!==s||e[5]!==u||e[6]!==v?(a={ephemeralDurationInSec:h,onOptimisticMessageCreation:p,onUploadFailure:q,onUploadStart:r,onUploadSuccess:s,skipUrlPreviewGen:u,thread:v},e[0]=h,e[1]=p,e[2]=q,e[3]=r,e[4]=s,e[5]=u,e[6]=v,e[7]=a):a=e[7];var z=c("useMWV2SendOpenVoiceClip")(a),A=c("useMWV2SendOpenStagedMedia")(h,p,v);r=(q=g)!=null?q:!1;e[8]!==h||e[9]!==p||e[10]!==u||e[11]!==r||e[12]!==v?(s={disableMarkRead:r,ephemeralDurationInSec:h,onOptimisticMessageCreation:p,skipUrlPreviewGen:u,thread:v},e[8]=h,e[9]=p,e[10]=u,e[11]=r,e[12]=v,e[13]=s):s=e[13];var B=c("useMWV2SendOpenMessageImpl")(s);e[14]!==v?(a=d("LSMessagingThreadTypeUtil").isMessageRequest(v),e[14]=v,e[15]=a):a=e[15];var C=a;g=k(d("MWV2ComposerActionsContext.react").MWV2ComposerActionsContext);var D=g.onMessageSendAttempt;e[16]!==w||e[17]!==y||e[18]!==C||e[19]!==D||e[20]!==t||e[21]!==x||e[22]!==B||e[23]!==A||e[24]!==z||e[25]!==v?(q=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,g,h,k,p,q,r,s,u,E,F,G,H,I,J,K,L,M){var N=E===void 0?!1:E,O=F===void 0?!1:F,P;P=!1;D==null?void 0:D(!0);var Q=function(a){G.addMarkerPoint(a,"AppTiming"),d("sendToSentQPLLogger").markSendToSentPoint(H,a)},R=y(v.threadKey),S=c("LSGenerateTraceId")(),T={contents:1};I=v.eventStartTimestampMs!=null;K=v.threadType;var U=(yield w),V=c("MWV2SetupS2SLoggingShared")({db:U,isCommunityEvent:I,isMessageRequest:C,s2sInstanceKey:H,source:(i||(i=d("LSIntEnum"))).unwrapIntEnum(R),threadType:K,traceSendMessageAPI:G});L=(yield d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(U.tables.media_staging).filter(function(a){return!a.isSent&&(j||(j=d("I64"))).equal(a.threadKey,v.threadKey)})));var W=d("MWSharedS2SBaseAnnotations").getMessageTypeParams({externalAttachmentUrl:p,hotEmojiSize:h,mediaStagings:L,messageText:a,reply:x,stickerId:g,threadType:v.threadType,voiceClip:r}),X=(yield d("MWSharedMsgLogUtils").getSendToSentAnnotations(v,W,i.unwrapIntEnum(R))),Y=(yield d("MultipleTabsLogger").hasMultipleTabs());return U.runInTransaction(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){d("MWSharedMsgLogUtils").addSendMessageMetadataForInteractionTrace(G,W,v);d("sendToSentQPLLogger").addSendToSentAnnotations(H,X);if(r!=null){(N===!1||O===!0)&&(yield z(U,{dataTraceId:S,pluginType:t,s2sInstanceKey:H,setupS2SLogging:V,source:R,traceSendMessageAPI:G,transaction:b,voiceClip:r}));return}var c=W.hasGif,f=W.hasHotEmoji,i=W.hasSticker,w=W.hasText;i||f?T.contents=4:c&&(T.contents=6);var x=e!=null?d("LSShape").ofRecord({mention_ids:e.map(o).join(","),mention_lengths:e.map(n).join(","),mention_offsets:e.map(m).join(","),mention_types:e.length!==0?e.map(l).join(","):void 0}):void 0;Q("create_optimistic_message_start");if(w||i||f||c){P=!0;if(N===!1||O===!0){yield B(U,{afterSend:u,attributionAppId:k,dataclassParams:M,dataTraceId:S,externalAttachmentUrl:p,hotEmojiSize:h,logSendPoint:Q,mentionData:x,messageText:a,messageTypeParams:W,multitabEnv:Y,optimisticAttachmentPreview:q,platformToken:s,pluginType:t,profileRanges:e,richTextFormatType:J,s2sInstanceKey:H,setupS2SLogging:V,source:R,stickerID:g,traceSendMessageAPI:G,transaction:b});if(N===!0)return}}else u!=null&&(yield u(b));!i&&!c&&!f&&(yield A(U,{isFirstMessage:O,isFirstMessageText:P,mediaStagings:yield d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(b.media_staging).filter(function(a){return!a.isSent&&(j||(j=d("I64"))).equal(a.threadKey,v.threadKey)})),pluginType:t,s2sInstanceKey:H,sendFirstMessageSeparately:N,setupS2SLogging:V,source:R,traceSendMessageAPI:G,transaction:b}))});return function(a){return c.apply(this,arguments)}}(),"readwrite","ui",void 0,f.id+":229")});return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){return a.apply(this,arguments)}}(),h=[D,y,v,w,C,x,z,B,A,t],e[16]=w,e[17]=y,e[18]=C,e[19]=D,e[20]=t,e[21]=x,e[22]=B,e[23]=A,e[24]=z,e[25]=v,e[26]=q,e[27]=h):(q=e[26],h=e[27]);return d("Int64Hooks").useCallbackInt64(q,h)}function l(a){return a.type}function m(a){return String(a.offset)}function n(a){return String(a.length)}function o(a){return a.id}g["default"]=a}),98);
__d("useMWXLexicalHasText",["LexicalText","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;c=h||d("react");var i=c.useCallback,j=c.useEffect,k=c.useRef,l=c.useState;function m(a){return a.getEditorState().read(d("LexicalText").$isRootTextContentEmptyCurry(a.isComposing()))}function n(a){var b=d("react-compiler-runtime").c(5),c;b[0]!==a?(c=function(){return!m(a)},b[0]=a,b[1]=c):c=b[1];c=l(c);var e=c[0],f=c[1],g;b[2]!==a?(c=function(){return a.registerUpdateListener(function(){f(!m(a))})},g=[a],b[2]=a,b[3]=c,b[4]=g):(c=b[3],g=b[4]);j(c,g);return e}function a(a){var b=a.editor;a=a.initialValue;var c=k(a);return{useHasText:i(function(){var a,d=k((a=c.current)!=null?a:!1);j(function(){d.current=!1},[]);return n(b)||d.current},[b])}}function b(a){var b=a.editor;a=a.initialValue;a=k(a);var c=k((a=a.current)!=null?a:!1);j(function(){c.current=!1},[]);return n(b)||c.current}g.useMWXLexicalHasText_DEPRECATED=a;g.useMWXLexicalHasText=b}),98);
__d("useMWXLexicalOnTypingChanged",["LexicalText","MWXUseLatch","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef;function a(a){var b=d("react-compiler-runtime").c(6),c=a.editor;a=a.onTypingStateChanged;a=d("MWXUseLatch").useLatch(a,!0,5e3);var e=a[0],f=a[1],g=j(""),h;b[0]!==c||b[1]!==e||b[2]!==f?(a=function(){var a=function(a){a=a.editorState.read(k);if(a!==g.current){g.current=a;if(a==="")return f();else return e()}};return c.registerUpdateListener(a)},h=[e,f,c],b[0]=c,b[1]=e,b[2]=f,b[3]=a,b[4]=h):(a=b[3],h=b[4]);i(a,h);b[5]===Symbol["for"]("react.memo_cache_sentinel")?(a={},b[5]=a):a=b[5];return a}function k(){return d("LexicalText").$rootTextContent()}g["default"]=a}),98);
__d("useRegisterMAWThreadEvent",["I64","Int64Hooks","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","MAWMiActOnActThreadReady","MAWThreadEvent","Promise","promiseDone","react-compiler-runtime","useAsyncReStoreBulkFix","useMWGetOtherUserContact","useMWIsReadReceiptsDisabledForThread"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a){var e=d("react-compiler-runtime").c(11),f=a.authorityLevel,g=a.threadKey,k=a.threadType,l;e[0]!==f?(l=(i||(i=d("I64"))).ge(f,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)),e[0]=f,e[1]=l):l=e[1];var m=l,n=d("useAsyncReStoreBulkFix").useReStoreHook(),o=c("useMWIsReadReceiptsDisabledForThread")(a.threadKey);e[2]===Symbol["for"]("react.memo_cache_sentinel")?(f=["capabilities","capabilities2","contactViewerRelationship","blockedByViewerStatus"],e[2]=f):f=e[2];var p=c("useMWGetOtherUserContact")(a.threadKey,a.threadType,f);e[3]!==p||e[4]!==n||e[5]!==m||e[6]!==o||e[7]!==g||e[8]!==k?(l=function(){d("useAsyncReStoreBulkFix").onDbReady(n,function(a){d("LSMessagingThreadTypeUtil").isArmadilloSecure(k)&&m&&c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(a.tables,g,"useRegisterMAWThreadEvent",function(a,c){d("MAWThreadEvent").setThreadEventHandler(c,p,o);return(h||(h=b("Promise"))).resolve()}))})},a=[g,k,m,n,o,p],e[3]=p,e[4]=n,e[5]=m,e[6]=o,e[7]=g,e[8]=k,e[9]=l,e[10]=a):(l=e[9],a=e[10]);d("Int64Hooks").useEffectInt64(l,a)}g["default"]=a}),98);