if (self.CavalryLogger) { CavalryLogger.start_js(["PtiY\/Yr"]); } __d("DetectBrokenProxyCache",["AsyncSignal","Cookie","URI"],(function(a,b,c,d,e,f){var g;function a(a,c){var d=b("Cookie").get(c);if(d!=a&&d!=null&&a!="0"){c={c:"si_detect_broken_proxy_cache",m:c+" "+a+" "+d};a=new(g||(g=b("URI")))("/common/scribe_endpoint.php").getQualifiedURI().toString();new(b("AsyncSignal"))(a,c).send()}}e.exports={run:a}}),null); __d("CometRouteActorToasterQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4283634038368163"}),null); __d("CometRouteActorToasterQuery.graphql",["CometRouteActorToasterQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"scale"}],c={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:"toast_icon",args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},f={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XFBProfilePlusContinuityModeInfo",kind:"LinkedField",name:"profile_plus_continuity_mode_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_acting_as_profile_plus",storageKey:null}],storageKey:null}],type:"User",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometRouteActorToasterQuery",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:[c,d,e,f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometRouteActorToasterQuery",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:[c,d,e,f,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("CometRouteActorToasterQuery_facebookRelayOperation"),metadata:{},name:"CometRouteActorToasterQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("LiveVideoCometNuxForCVCQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"nuxID"},{defaultValue:null,kind:"LocalArgument",name:"videoID"}],b=[{kind:"Variable",name:"nux_id",variableName:"nuxID"}],c={kind:"InlineFragment",selections:[{args:null,documentName:"LiveVideoCometNuxForCVCQuery",fragmentName:"LiveVideoCometNuxForCVCInternal_nux",fragmentPropName:"nux",kind:"ModuleImport"}],type:"DefaultNUX",abstractKey:null},d=[{kind:"Variable",name:"id",variableName:"videoID"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"LiveVideoCometNuxForCVCQuery",selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[c],storageKey:null},{alias:null,args:d,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"LiveVideoCometNuxForCVCInternal_video"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LiveVideoCometNuxForCVCQuery",selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,e],storageKey:null},{alias:null,args:d,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_premiere",storageKey:null},e],storageKey:null}]},params:{id:"3832265616859130",metadata:{},name:"LiveVideoCometNuxForCVCQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometBatchNotificationsStateChangeSubscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3434598286567017"}),null); __d("CometBatchNotificationsStateChangeSubscription.graphql",["CometBatchNotificationsStateChangeSubscription_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"environment"},c={defaultValue:null,kind:"LocalArgument",name:"input"},d=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"BatchNotificationStateChangeSubscribeResponsePayload",kind:"LinkedField",name:"batch_notification_state_change_subscribe",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"aggregated_notifications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"CometBatchNotificationsStateChangeSubscription",selections:d,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"CometBatchNotificationsStateChangeSubscription",selections:d},params:{id:b("CometBatchNotificationsStateChangeSubscription_facebookRelayOperation"),metadata:{subscriptionName:"batch_notification_state_change_subscribe"},name:"CometBatchNotificationsStateChangeSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("CometNotificationsStateChangeSubscription.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"environment"},b={defaultValue:null,kind:"LocalArgument",name:"input"},c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"NotificationStateChangeSubscribeResponsePayload",kind:"LinkedField",name:"notification_state_change_subscribe",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,b],kind:"Fragment",metadata:null,name:"CometNotificationsStateChangeSubscription",selections:c,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a],kind:"Operation",name:"CometNotificationsStateChangeSubscription",selections:c},params:{id:"2889547877749972",metadata:{subscriptionName:"notification_state_change_subscribe"},name:"CometNotificationsStateChangeSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscriptionComponentQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"scale"}],b=[{kind:"Variable",name:"count",variableName:"count"}],c={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"buddy_id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscriptionComponentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"ChatSidebarRankedContact",kind:"LinkedField",name:"chat_sidebar_contact_rankings",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"PresenceStatusProviderSubscription_rankings",selections:[c,d,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[e,{args:null,kind:"FragmentSpread",name:"MWChatContact_profile"}],storageKey:null}]}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"PresenceStatusProviderSubscriptionComponentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"ChatSidebarRankedContact",kind:"LinkedField",name:"chat_sidebar_contact_rankings",plural:!0,selections:[c,d,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:36},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:36}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"availability",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_active_time",storageKey:null}]}],type:"User",abstractKey:null}],type:"Profile",abstractKey:"__isProfile"}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"4601721123227254",metadata:{},name:"PresenceStatusProviderSubscriptionComponentQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("PresenceStatusProviderSubscription_ContactProfilesQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"ids"},{defaultValue:null,kind:"LocalArgument",name:"scale"}],b=[{kind:"Variable",name:"ids",variableName:"ids"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:[{kind:"Literal",name:"height",value:36},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:36}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscription_ContactProfilesQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"chat_sidebar_contact_nodes",plural:!0,selections:[c,d,e],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"PresenceStatusProviderSubscription_ContactProfilesQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"chat_sidebar_contact_nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{kind:"TypeDiscriminator",abstractKey:"__isProfile"},d,e],storageKey:null}],storageKey:null}]},params:{id:"4115654068514312",metadata:{},name:"PresenceStatusProviderSubscription_ContactProfilesQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"chat_visibility",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"has_converted_to_view_side_settings",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[a,{alias:null,args:null,concreteType:"PresenceViewerBasedSettings",kind:"LinkedField",name:"presence_view_side_settings",plural:!1,selections:[b],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[a,{alias:null,args:null,concreteType:"PresenceViewerBasedSettings",kind:"LinkedField",name:"presence_view_side_settings",plural:!1,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"2607318959337318",metadata:{},name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscription_rankings.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"PresenceStatusProviderSubscription_rankings"};e.exports=a}),null); __d("RTWebCallBlockSettingHooksQuery.graphql",["relay-runtime"],(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,kind:"ScalarField",name:"call_blocked_until",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RTWebCallBlockSettingHooksQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"RTWebCallBlockSettingHooksQuery",selections:a},params:{id:"5359827550755125",metadata:{},name:"RTWebCallBlockSettingHooksQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters",["RTWebCometRoomIncomingCallDialog_DisclaimerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("RTWebCometRoomIncomingCallDialog_DisclaimerQuery_facebookRelayOperation"),metadata:{},name:"RTWebCometRoomIncomingCallDialog_DisclaimerQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("VideoPlayerWithWatchAndScrollWarningScreen_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithWatchAndScrollWarningScreen_video",selections:[{alias:null,args:[{kind:"Literal",name:"framework",value:"WARNING_SCREENS"},{kind:"Literal",name:"location",value:"video_channel"}],concreteType:"CIXScreen",kind:"LinkedField",name:"cix_screen",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"view_model",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithWatchAndScrollWarningScreen_video",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null}],storageKey:null}],storageKey:'cix_screen(framework:"WARNING_SCREENS",location:"video_channel")'},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"container_story",plural:!1,selections:[a],storageKey:null},a,{alias:null,args:null,concreteType:"VideoThumbnail",kind:"LinkedField",name:"preferred_thumbnail",plural:!1,selections:[{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}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerCaptionsControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerCaptionsControl_video",selections:[a,{alias:null,args:null,concreteType:"VideoCaptionLocale",kind:"LinkedField",name:"video_available_captions_locales",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"localized_creation_method",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"locale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"localized_language",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"localized_country",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerCaptionsSettingMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"VideoPlayerCaptionsSettingResponsePayload",kind:"LinkedField",name:"video_player_captions_setting",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"VideoPlayerCaptionsSettingMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"VideoPlayerCaptionsSettingMutation",selections:b},params:{id:"4189998731054969",metadata:{},name:"VideoPlayerCaptionsSettingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("VideoPlayerDefaultControlsImplLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerDefaultControlsImplLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerLiveVideoControls_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerDefaultControlsImplNotLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerDefaultControlsImplNotLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerScrubberPreview_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWatchAndScrollControl_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerCaptionsControl_video"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_clipping",plural:!1,selections:[{args:null,documentName:"VideoPlayerDefaultControlsImplNotLive_video_if_viewer_can_use_clipping",fragmentName:"VideoPlayerClipVideoControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerLiveVideoControls_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerLiveVideoControls_video",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"is_clipping_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"live_rewind_enabled",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[a],storageKey:null},{args:null,kind:"FragmentSpread",name:"VideoPlayerWatchAndScrollControl_video"},{args:null,kind:"FragmentSpread",name:"LiveVideoLatencyMenuContextProvider_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerCaptionsControl_video"},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_community_moderation_tools",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video",fragmentName:"VideoPlayerModeratorControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_live_rewind",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_use_live_rewind",fragmentName:"VideoPlayerLiveRewindControlsGroup_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_clipping",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_use_clipping",fragmentName:"VideoPlayerClipVideoControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_costreaming_tools",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_see_costreaming_tools",fragmentName:"VideoPlayerCostreamingControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerSkipControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:"WNS",kind:"LocalArgument",name:"caller"},{defaultValue:"WNS",kind:"LocalArgument",name:"channelEntryPoint"},{defaultValue:1,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"seedVideoID"}],kind:"Fragment",metadata:null,name:"VideoPlayerSkipControl_video",selections:[a,{alias:null,args:[{kind:"Variable",name:"entry_point",variableName:"channelEntryPoint"}],concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"caller",variableName:"caller"},{kind:"Variable",name:"exclude_video",variableName:"seedVideoID"},{kind:"Variable",name:"first",variableName:"count"}],concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[a,{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollUpNextCard_video"}],type:"Video",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},{alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerWatchAndScrollControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWatchAndScrollControl_video",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"playable_duration_in_ms",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4063034090470312"}),null); __d("useVideoPlayerWatchAndScrollControlNUXQuery.graphql",["useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"nux_id",value:9347}],c={alias:null,args:null,kind:"ScalarField",name:"should_show",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useVideoPlayerWatchAndScrollControlNUXQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[c],storageKey:"nux(nux_id:9347)"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useVideoPlayerWatchAndScrollControlNUXQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:"nux(nux_id:9347)"}]},params:{id:b("useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation"),metadata:{},name:"useVideoPlayerWatchAndScrollControlNUXQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometWatchAndScrollChainingQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"caller"},{defaultValue:null,kind:"LocalArgument",name:"chainingCursor"},{defaultValue:null,kind:"LocalArgument",name:"channelEntryPoint"},{defaultValue:null,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"scale"},{defaultValue:null,kind:"LocalArgument",name:"seedVideoID"}],b=[{kind:"Variable",name:"id",variableName:"seedVideoID"}],c=[{kind:"Variable",name:"entry_point",variableName:"channelEntryPoint"}],d=[{kind:"Variable",name:"after",variableName:"chainingCursor"},{kind:"Variable",name:"caller",variableName:"caller"},{kind:"Variable",name:"exclude_video",variableName:"seedVideoID"},{kind:"Variable",name:"first",variableName:"count"}],e={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},h=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],i={alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:h,storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},j={alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},n={alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null},o=[{kind:"Literal",name:"site",value:"www"}],p=[g],q={kind:"InlineFragment",selections:p,type:"Node",abstractKey:"__isNode"};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometWatchAndScrollChainingQuery",selections:[{alias:null,args:b,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[{alias:null,args:d,concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollContextSection_video"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollUpNextCard_video"},g,i],type:"Video",abstractKey:null}],storageKey:null}],storageKey:null},j,k,l,m,n],type:"Story",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollFallbackCTAScreen_video"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometWatchAndScrollChainingQuery",selections:[{alias:null,args:b,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[f,{alias:null,args:d,concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},g,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:h,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},{kind:"InlineFragment",selections:[{alias:null,args:o,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],storageKey:null},i,g],type:"Video",abstractKey:null},q,{kind:"InlineFragment",selections:p,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:p,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:p,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},j,k,l,m,n],type:"Story",abstractKey:null},q,{kind:"InlineFragment",selections:p,type:"CommunityChatFeedObject",abstractKey:null},{kind:"InlineFragment",selections:p,type:"CommunityTabNewJoinFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:p,type:"CommunityTabTrendingPOGFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:p,type:"XFBGroupsTabSuggestedGroupSetFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:p,type:"XFBGroupsTabSuggestedGroupSetsFeedUnit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},g],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_viewer_share",storageKey:null},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shareable",plural:!1,selections:[f,{alias:"wwwUrl",args:o,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'},q],storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:"3780271015408064",metadata:{},name:"CometWatchAndScrollChainingQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometWatchAndScrollCloseButton_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollCloseButton_video",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollContainer_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollContainer_video",selections:[{args:null,kind:"FragmentSpread",name:"useVideoOriginalDimensionsRelay_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollContextSection_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometWatchAndScrollContextSection_video",selections:[{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollFallbackCTAScreen_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollFallbackCTAScreen_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerReshareButton_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollTopBar_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"uri_token",storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometWatchAndScrollTopBar_video",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollCloseButton_video"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[b,a,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[c,{alias:null,args:null,kind:"ScalarField",name:"page_vanity_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"vanity",storageKey:null}],type:"Page",abstractKey:null},{kind:"InlineFragment",selections:[c,{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifier_token",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_info",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("CometWatchAndScrollUpNextCard_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollUpNextCard_video",selections:[{alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollVideoQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"chainingCursor"},b={defaultValue:null,kind:"LocalArgument",name:"chainingSeedVideoID"},c={defaultValue:null,kind:"LocalArgument",name:"scale"},d={defaultValue:null,kind:"LocalArgument",name:"videoID"},e=[{kind:"Variable",name:"id",variableName:"videoID"}],f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"is_gaming_video",storageKey:null},j={alias:null,args:null,concreteType:"PayToAccessPaywall",kind:"LinkedField",name:"pay_to_access_paywall",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"should_show_paywall",storageKey:null}],storageKey:null},k=[{kind:"Variable",name:"id",variableName:"chainingSeedVideoID"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"uri_token",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],p=[g,{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"representation_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mime_codec",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"segment_type",storageKey:null}],q={alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},r=[f],s={kind:"InlineFragment",selections:r,type:"Node",abstractKey:"__isNode"};return{fragment:{argumentDefinitions:[a,b,c,d],kind:"Fragment",metadata:null,name:"CometWatchAndScrollVideoQuery",selections:[{alias:null,args:e,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[h],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null},i,{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollContainer_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerRelay_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithLiveVideoIndicator_video"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollTopBar_video"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollCloseButton_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithWatchAndScrollWarningScreen_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithAudioOverlay_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithAudioBackground_video"},j],storageKey:null},{alias:"chainingSeedVideo",args:k,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{kind:"Defer",selections:[{args:[{kind:"Variable",name:"cursor",variableName:"chainingCursor"},{kind:"Variable",name:"seedVideoID",variableName:"chainingSeedVideoID"}],kind:"FragmentSpread",name:"VideoPlayerSkipControl_video"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,b,d,c],kind:"Operation",name:"CometWatchAndScrollVideoQuery",selections:[{alias:null,args:e,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[l,{kind:"InlineFragment",selections:[h,m,{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},f,n,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:o,storageKey:null},{kind:"InlineFragment",selections:[m,{alias:null,args:null,kind:"ScalarField",name:"page_vanity_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"vanity",storageKey:null}],type:"Page",abstractKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"original_width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"original_height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"original_rotation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"animated_image_caption",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcaster_origin",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_trace_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_looping",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_video_broadcast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"loop_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unsupported_browser_message",storageKey:null},{alias:null,args:null,concreteType:"MusicVideoMetadata",kind:"LinkedField",name:"pmv_metadata",plural:!1,selections:[l,f],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_ncsr",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"permalink_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dash_prefetch_experimental",storageKey:null},{alias:null,args:null,concreteType:"VideoCaptionLocale",kind:"LinkedField",name:"video_available_captions_locales",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"localized_creation_method",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoPrefetchResources",kind:"LinkedField",name:"dash_prefetch_resources",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoPrefetchResource",kind:"LinkedField",name:"audio",plural:!0,selections:p,storageKey:null},{alias:null,args:null,concreteType:"VideoPrefetchResource",kind:"LinkedField",name:"video",plural:!0,selections:p,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"context",value:"DEFAULT"},{kind:"Literal",name:"supported",value:["CometVideoPlayerOzImplementation","CometVideoPlayerShakaImplementation","CometVideoPlayerProgressiveImplementation"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_implementations",plural:!0,selections:[l,{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DOzImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerOzImplementation",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DShakaImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerShakaImplementation",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DProgressiveImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerProgressiveImplementation",abstractKey:null}],storageKey:'comet_video_player_implementations(context:"DEFAULT",supported:["CometVideoPlayerOzImplementation","CometVideoPlayerShakaImplementation","CometVideoPlayerProgressiveImplementation"])'},{alias:null,args:null,kind:"ScalarField",name:"can_use_oz",storageKey:null},{alias:"playable_url_dash",args:[{kind:"Literal",name:"scrubbing_preference",value:"MPEG_DASH"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(scrubbing_preference:"MPEG_DASH")'},{alias:null,args:null,kind:"ScalarField",name:"dash_manifest",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"min_quality_preference",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_rss_podcast_video",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaLiveP2PInit",kind:"LinkedField",name:"video_player_shaka_live_p2p_init",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"json_encoded_video_data",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"playable_url",storageKey:null},{alias:"playable_url_quality_hd",args:[{kind:"Literal",name:"quality",value:"HD"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(quality:"HD")'},{alias:null,args:null,concreteType:"SphericalVideoFallbackUrls",kind:"LinkedField",name:"spherical_video_fallback_urls",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hd",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sd",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_menu_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fbls_tier",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_sensitive_broadcast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_static_config",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_context_sensitive_config",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_init",fragmentPropName:"init",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"video_player_shaka_performance_logger_should_sample",storageKey:null},{alias:"video_player_shaka_performance_logger_init2",args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerBuilder_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerBuilder_init",fragmentPropName:"init",kind:"ModuleImport"},{alias:null,args:null,kind:"ScalarField",name:"per_session_sampling_rate",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoplay_gating_result",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_autoplay_setting",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_autoplay",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"drm_info",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettings",kind:"LinkedField",name:"p2p_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ticket",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettingsConfig",kind:"LinkedField",name:"config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"delay_p2p_until_play",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"disable_hivejava_for_livevc",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoHiveInitializationOptions",kind:"LinkedField",name:"hive_initialization_options",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoHiveInitializationOptionHiveJava",kind:"LinkedField",name:"hive_java",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"min_version",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hive_tech_order",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_level",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AudioSettings",kind:"LinkedField",name:"audio_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"video_volume_setting",storageKey:null},f],storageKey:null},{alias:null,args:null,concreteType:"CaptionsSettings",kind:"LinkedField",name:"captions_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"always_show_captions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_opacity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_size",storageKey:null},f],storageKey:null},{alias:null,args:null,concreteType:"VideoBroadcastLowLatencyConfig",kind:"LinkedField",name:"broadcast_low_latency_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ll_desired_latency_ms",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ll_latency_tolerance_ms",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audio_availability",storageKey:null},{alias:null,args:null,concreteType:"VideoMutedSegment",kind:"LinkedField",name:"muted_segments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"mute_start_time_in_sec",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mute_end_time_in_sec",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SphericalVideoRenderer",kind:"LinkedField",name:"spherical_video_renderer",plural:!1,selections:[{args:null,documentName:"VideoPlayerRelay_video_spherical_video_renderer",fragmentName:"VideoPlayerSphericalRelay_sphericalVideoRenderer",fragmentPropName:"sphericalVideoRenderer",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"VideoThumbnail",kind:"LinkedField",name:"preferred_thumbnail",plural:!1,selections:[{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_preview_payload",storageKey:null},f],storageKey:null},{alias:"breakingStatus",args:null,kind:"ScalarField",name:"breaking_status",storageKey:null},{alias:"videoId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:"isPremiere",args:null,kind:"ScalarField",name:"is_premiere",storageKey:null},{alias:"liveViewerCount",args:null,kind:"ScalarField",name:"live_viewer_count_read_only",storageKey:null},{alias:"rehearsalInfo",args:null,concreteType:"LiveVideoRehearsalInfo",kind:"LinkedField",name:"rehearsal_info",plural:!1,selections:[{alias:"typeName",args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_huddle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publish_time",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"live_speaker_count_indicator",plural:!1,selections:[{args:null,documentName:"VideoPlayerWithLiveVideoIndicator_video",fragmentName:"HuddlesSpeakerCountIndicatorContainer_video",fragmentPropName:"video",kind:"ModuleImport"},f],storageKey:null},n,q,{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifier_token",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_info",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null},f],storageKey:null},{alias:null,args:[{kind:"Literal",name:"framework",value:"WARNING_SCREENS"},{kind:"Literal",name:"location",value:"video_channel"}],concreteType:"CIXScreen",kind:"LinkedField",name:"cix_screen",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"view_model",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithWatchAndScrollWarningScreen_video",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null},s],storageKey:null}],storageKey:'cix_screen(framework:"WARNING_SCREENS",location:"video_channel")'},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"container_story",plural:!1,selections:r,storageKey:null},{alias:null,args:[{kind:"Literal",name:"supported",value:["CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_overlay_renderer",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithHuddleOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithHuddleOverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithPodcastOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithPodcastOverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"VideoPlayerWithMusicSproutOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"VideoPlayerWithMusicSproutOverlayRenderer",abstractKey:null}],storageKey:'comet_video_player_audio_overlay_renderer(supported:["CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer"])'},{alias:null,args:[{kind:"Literal",name:"supported",value:["CometVideoPlayerWithHuddleBackgroundRenderer","CometVideoPlayerWithPodcastBackgroundRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_background_renderer",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioBackground_video",fragmentName:"CometVideoPlayerWithHuddleBackgroundRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithHuddleBackgroundRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioBackground_video",fragmentName:"CometVideoPlayerWithPodcastBackgroundRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithPodcastBackgroundRenderer",abstractKey:null}],storageKey:'comet_video_player_audio_background_renderer(supported:["CometVideoPlayerWithHuddleBackgroundRenderer","CometVideoPlayerWithPodcastBackgroundRenderer"])'},j,{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"selected_latency_setting",storageKey:null}]},{"if":null,kind:"Defer",label:"VideoPlayerRelay_video$defer$InstreamVideoAdBreaksPlayer_video",selections:[f,{alias:null,args:null,concreteType:"InstreamExtraConfig",kind:"LinkedField",name:"instream_extra_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"instream_halo_delay_time_seconds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"InstreamVideoAdBreaks",kind:"LinkedField",name:"instream_video_ad_breaks_comet",plural:!1,selections:[{args:null,documentName:"InstreamVideoAdBreaksPlayer_video_instream_video_ad_breaks_comet",fragmentName:"InstreamVideoAdBreaksPlayerImpl_adBreaks",fragmentPropName:"adBreaks",kind:"ModuleImport"}],storageKey:null}]}],storageKey:null},{alias:"chainingSeedVideo",args:k,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{"if":null,kind:"Defer",label:"CometWatchAndScrollVideoQuery$defer$VideoPlayerSkipControl_video_izUbj",selections:[f,{alias:null,args:[{kind:"Literal",name:"entry_point",value:"WNS"}],concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[l,{alias:null,args:[{kind:"Variable",name:"after",variableName:"chainingCursor"},{kind:"Literal",name:"caller",value:"WNS"},{kind:"Variable",name:"exclude_video",variableName:"chainingSeedVideoID"},{kind:"Literal",name:"first",value:1}],concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[l,{kind:"InlineFragment",selections:[f,{alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:o,storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},q,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[l,n,f],storageKey:null}],type:"Video",abstractKey:null},s,{kind:"InlineFragment",selections:r,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:r,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:r,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},{alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null},s,{kind:"InlineFragment",selections:r,type:"CommunityChatFeedObject",abstractKey:null},{kind:"InlineFragment",selections:r,type:"CommunityTabNewJoinFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:r,type:"CommunityTabTrendingPOGFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:r,type:"XFBGroupsTabSuggestedGroupSetFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:r,type:"XFBGroupsTabSuggestedGroupSetsFeedUnit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},f],storageKey:'video_channel(entry_point:"WNS")'}]},f],storageKey:null}]},params:{id:"4755378764481758",metadata:{},name:"CometWatchAndScrollVideoQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("FleetBeaconSubscriptionNetwork_LogMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"FleetBeaconLogResponsePayload",kind:"LinkedField",name:"fleet_beacon_log",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_LogMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_LogMutation",selections:b},params:{id:"4501085869904851",metadata:{},name:"FleetBeaconSubscriptionNetwork_LogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("FleetBeaconSubscriptionNetwork_PublishMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3918234471547751"}),null); __d("FleetBeaconSubscriptionNetwork_PublishMutation.graphql",["FleetBeaconSubscriptionNetwork_PublishMutation_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:"FleetBeaconPublishResponsePayload",kind:"LinkedField",name:"fleet_beacon_publish",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_PublishMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_PublishMutation",selections:c},params:{id:b("FleetBeaconSubscriptionNetwork_PublishMutation_facebookRelayOperation"),metadata:{},name:"FleetBeaconSubscriptionNetwork_PublishMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("FleetBeaconSubscriptionNetwork_Subscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3194829573871785"}),null); __d("FleetBeaconSubscriptionNetwork_Subscription.graphql",["FleetBeaconSubscriptionNetwork_Subscription_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:"TestFleetBeaconSubscribeResponsePayload",kind:"LinkedField",name:"test_fleet_beacon_subscribe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_subscription_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"test_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_Subscription",selections:c,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_Subscription",selections:c},params:{id:b("FleetBeaconSubscriptionNetwork_Subscription_facebookRelayOperation"),metadata:{subscriptionName:"test_fleet_beacon_subscribe"},name:"FleetBeaconSubscriptionNetwork_Subscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("CometVirtualCursorStatus",["UserAgent","cr:1345969","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h=null,i=null;function j(){i||(i=window.addEventListener("blur",function(){h=null,k()}))}function k(){i&&(i.remove(),i=null)}function a(a){h=a.keyCode,j()}function d(a){h=null,k()}if(typeof window!=="undefined"&&window.document&&window.document.createElement){f=document.documentElement;if(f)if(f.addEventListener)f.addEventListener("keydown",a,!0),f.addEventListener("keyup",d,!0);else if(f.attachEvent){f=f.attachEvent;f("onkeydown",a);f("onkeyup",d)}}var l={getKeyDownCode:function(){return h},isKeyDown:function(){return!!h}},m=!1,n=!1,o=null,p=!1;function q(a){var b=new Set(),d=l.isKeyDown(),e=a.WEBKIT_FORCE_AT_MOUSE_DOWN,f=a.clientX,g=a.clientY,h=a.isTrusted,i=a.mozInputSource,j=a.offsetX,k=a.offsetY,o=a.webkitForce;f===0&&g===0&&j>=0&&k>=0&&n&&h&&i==null&&b.add("Chrome");m&&n&&!d&&o!=null&&o= 10")&&i==null){o=a.target;e=o.clientHeight;d=o.clientWidth;f<0&&g<0?b.add("IE"):(j<0||j>d)&&(k<0||k>e)&&b.add("MSIE")}i===0&&h&&b.add("Firefox");return b}function r(){m=!0,c("setTimeout")(function(){m=!1},0)}function s(){n=!0,c("setTimeout")(function(){n=!1},0)}function t(a){p&&b("cr:1345969").log({extra_data:{source_app:"comet"},indicated_browsers:o,is_virtual_cursor_action:a})}function u(a){o===null&&(o=Array.from(q(a)));p=o!=null&&o.length>0;a=a.target!=null&&a.target.getAttribute!=null&&a.target.getAttribute("data-accessibilityid")==="virtual_cursor_trigger";t(a);c("setTimeout")(function(){p=!1,o=null},0)}function e(){document.addEventListener("click",u,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("mouseup",s,!0)}g.initLogging=e}),98); __d("XUpdateTimezoneControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/ajax/autoset_timezone_ajax/",Object.freeze({is_forced:!1}),["/ajax/autoset_timezone_ajax.php","/ajax/timezone/update/","/ajax/timezone/update.php"],void 0);b=a;g["default"]=b}),98); __d("getBrowserTimezone",["FBLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(){try{var a;a=((a=window.Intl)==null?void 0:a.DateTimeFormat)&&Intl.DateTimeFormat();a=(a==null?void 0:a.resolvedOptions)&&a.resolvedOptions();return a==null?void 0:a.timeZone}catch(a){c("FBLogger")("TimezoneAutoset").catching(a).warn("Could not read IANA timezone from browser");return null}}g["default"]=a}),98); __d("CometTimezoneUpdater",["UserTimezoneServerTimeData","XUpdateTimezoneControllerRouteBuilder","cometAsyncFetch","getBrowserGMTOffsetAdjustedForSkew","getBrowserTimezone","killswitch"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("UserTimezoneServerTimeData").force_update,b=d("UserTimezoneServerTimeData").server_gmt_offset,e=d("UserTimezoneServerTimeData").server_time,f=d("UserTimezoneServerTimeData").timezone;if(e==null||b==null)return;e=-c("getBrowserGMTOffsetAdjustedForSkew")(e);var g=c("killswitch")("TIMEZONE_SET_IANA_ZONE_NAME")?null:c("getBrowserTimezone")();(a===!0||e!==b||g!=null&&g!==f)&&c("cometAsyncFetch")(c("XUpdateTimezoneControllerRouteBuilder").buildExtraURL("/ajax/timezone/update.php",{}),{data:{gmt_off:e,is_forced:a,tz:g},method:"POST"})}b={updateTimezoneIfNecessary:a};e=b;g["default"]=e}),98); __d("LogoutHandler.react",["cr:11880"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:11880")}),98); __d("CometOnBeforeUnloadDialog.react",["fbt","CometCardedDialog.react","CometTrackingNodeProvider.react","TetraButtonGroup.react","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.body,d=a.cancel,e=a.confirm,f=a.disabled;f=f===void 0?!1:f;var g=a.onClose,j=a.onCloseButtonPress,k=a.primaryAction,l=a.secondaryAction;a=a.title;var m=function(){k(),g()},n=function(){l(),g()};return i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:163,children:i.jsxs(c("CometCardedDialog.react"),{onClose:function(){j(),g()},testid:void 0,title:a,titleHorizontalAlignment:"start",withCloseButton:!0,children:[i.jsx("div",{className:"l9j0dhe7 dati1w0a f10w8fjw hv4rvrfc pybr56ya",children:i.jsx(c("TetraText.react"),{type:"body3",children:b})}),i.jsx("div",{className:"a8nywdso ihqw7lf3 rz4wbd8a jb3vyjys bkfpd7mw btwxx1t3 j83agx80",children:i.jsx(c("TetraButtonGroup.react"),{direction:"backward",paddingHorizontal:16,primary:{disabled:f,label:(a=e)!=null?a:h._(/*FBT_CALL*/"Confirmar"/*FBT_CALL*/),onPress:m,testid:"CometOnBeforeUnloadDialogConfirmButton"},secondary:{disabled:f,label:(b=d)!=null?b:h._(/*FBT_CALL*/"Cancelar"/*FBT_CALL*/),onPress:n,reduceEmphasis:!0,testid:"CometOnBeforeUnloadDialogCancelButton"}})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometRouteActorToaster.react",["fbt","Actor","CometRelay","CometRouteActorToasterBlocklist","CometRouteActorToasterQuery.graphql","TetraProfilePhoto.react","TetraText.react","WebPixelRatio","cometPushToast","getTopMostRoute","promiseDone","react","requireDeferred","useCometRouterState","useCurrentRoute","useProfileCometIsViewAs","useRouteReferrer"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useEffect,l=e.useRef,m=c("requireDeferred")("AcfToastImpressionFalcoEvent").__setRef("CometRouteActorToaster.react");function n(a,b){if(b)return j.jsx(c("TetraText.react"),{color:"primary",type:"body3",children:h._(/*FBT_CALL*/"Agora voc\u00ea est\u00e1 interagindo como {=your profile}"/*FBT_CALL*/,[h._param("=your profile",j.jsx(c("TetraText.react"),{type:"bodyLink3",children:h._(/*FBT_CALL*/"seu perfil"/*FBT_CALL*/)}))])});else return j.jsx(c("TetraText.react"),{color:"primary",type:"body3",children:h._(/*FBT_CALL*/"Agora voc\u00ea est\u00e1 interagindo como {actor}"/*FBT_CALL*/,[h._param("actor",j.jsx(c("TetraText.react"),{type:"bodyLink3",children:a}))])})}var o=i!==void 0?i:i=b("CometRouteActorToasterQuery.graphql");function a(){var a=d("CometRelay").useRelayEnvironment(),b=d("Actor").useActor(),e=b[0];b=c("useCometRouterState")();var f=c("useCurrentRoute")(),g=c("useRouteReferrer")(),h=c("useProfileCometIsViewAs")(),i=l({actorID:g==null?void 0:g.actorID,tracePolicy:g==null?void 0:g.tracePolicy});g=c("CometRouteActorToasterBlocklist").route_trace_policies;var p=f==null?void 0:f.tracePolicy;g=g.includes(p);b=b!=null?c("getTopMostRoute")(b):null;f=f===b;var q=f&&!g&&!h;k(function(){var b,f=(b=i.current)==null?void 0:b.actorID,g=(b=i.current)==null?void 0:b.tracePolicy;if(f!=null&&f!==e&&q){b=function(a){var b;b=a==null?void 0:(b=a.viewer)==null?void 0:(b=b.actor)==null?void 0:b.name;if(b!=null){var e;e=(a==null?void 0:(e=a.viewer)==null?void 0:(e=e.actor)==null?void 0:e.__typename)==="User"&&(a==null?void 0:(e=a.viewer)==null?void 0:(e=e.actor)==null?void 0:(e=e.profile_plus_continuity_mode_info)==null?void 0:e.is_acting_as_profile_plus)!==!0;a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.actor)==null?void 0:(a=a.toast_icon)==null?void 0:a.uri;a=a!=null?j.jsx(c("TetraProfilePhoto.react"),{shape:"circle",size:32,source:{uri:a}}):null;b=n(b,e);d("cometPushToast").cometPushToast({icon:a,message:b});m.onReady(function(a){a=a.log;a(function(){var a;return{destination:(a=p)!=null?a:"comet.app",destination_type:"comet_route",source:g,source_type:"comet_route",source_userid:f}})})}};var h={scale:d("WebPixelRatio").get()};c("promiseDone")(d("CometRelay").fetchQuery(a,o,h).toPromise(),b)}i.current={actorID:e,tracePolicy:p}},[e,p,a,q]);return null}g["default"]=a}),98); __d("CometAlertDialogImpl.react",["fbt","CometCardedDialog.react","CometRow.react","CometRowItem.react","TetraButton.react","TetraText.react","react","useCometUniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.body,d=a.close,e=a.onClose;a=a.title;var f=c("useCometUniqueID")();return i.jsxs(c("CometCardedDialog.react"),{labelledBy:f,onClose:e,withCloseButton:!0,children:[i.jsx("div",{className:"bjjx79mm dati1w0a clqubjjj jbae33se",id:f,suppressHydrationWarning:!0,children:i.jsx(c("TetraText.react"),{numberOfLines:1,type:"headlineEmphasized2",children:a})}),i.jsx("div",{className:"l9j0dhe7 dati1w0a f10w8fjw hv4rvrfc pybr56ya",children:i.jsx(c("TetraText.react"),{type:"body3",children:b})}),i.jsx("div",{className:"a8nywdso ihqw7lf3 rz4wbd8a jb3vyjys",children:i.jsx(c("CometRow.react"),{align:"end",children:i.jsx(c("CometRowItem.react"),{children:i.jsx(c("TetraButton.react"),{label:(f=d)!=null?f:h._(/*FBT_CALL*/"Fechar"/*FBT_CALL*/),onPress:e,testid:void 0,type:"primary"})})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometIconWirelessSlashFilled.react",["CometSVGIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometSVGIcon.react"),babelHelpers["extends"]({viewBox:"0 0 24 24"},a,{children:h.jsx("path",{d:"M23.7805.2195c.2925.293.2925.768 0 1.061l-22.5 22.5C1.134 23.927.942 24 .75 24c-.192 0-.384-.073-.5305-.2195-.2925-.293-.2925-.768 0-1.061l12.1967947-12.1971509c-2.3773758-.1150468-4.79162015.7286756-6.6038447 2.5401009-.3905.3905-1.0235.3905-1.414 0-.3905-.3905-.3905-1.024 0-1.414 2.65728981-2.65728981 6.3696459-3.62280965 9.8005664-2.90852144l2.430738-2.43186193C11.7816792 4.58111626 6.15198938 5.65271062 2.27735 9.52735c-.3905.3905-1.0235.3905-1.414 0-.3905-.3905-.3905-1.0235 0-1.414 4.6714534-4.67191574 11.571522-5.78608437 17.3096457-3.34843552L22.7195.2195c.293-.2925.768-.2925 1.061 0zM12 18.5c.6905 0 1.25.5595 1.25 1.25S12.6905 21 12 21s-1.25-.5595-1.25-1.25.5595-1.25 1.25-1.25zm1.4175-4.81495c.9705.2455 1.8905.741 2.6485 1.499.3905.3905.3905 1.0235 0 1.414-.1955.1955-.451.293-.707.293-.256 0-.512-.0975-.707-.293-.7835333-.7835333-1.8301422-1.1445778-2.8581093-1.0880116L11.574 15.52855l1.8435-1.8435zm3.8154-3.8154c.848.4725 1.649 1.059 2.3685 1.779.391.39.391 1.023 0 1.414-.195.195-.451.293-.707.293-.2555 0-.5115-.098-.707-.293-.7285-.728-1.5575-1.291-2.439-1.7085zm2.1908-2.1908l1.4425-1.4425c.8.545 1.5615 1.168 2.2705 1.877.3905.3905.3905 1.0235 0 1.414-.1955.1955-.451.293-.707.293-.256 0-.5115-.0975-.707-.293-.5933333-.59333333-1.2283333-1.11861111-1.895162-1.57959491L19.4237 7.67885l1.4425-1.4425z"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUncaughtError.react",["fbt","CometContentArea.react","NullStateGeneral","TetraNullState.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(){return i.jsx("div",{className:"k4urcfbm poy2od1o taijpn5t nznu9b0o j83agx80 bp9cbjyn",children:i.jsx(c("CometContentArea.react"),{verticalAlign:"middle",children:i.jsx(c("TetraNullState.react"),{headline:h._(/*FBT_CALL*/"Ocorreu um erro :("/*FBT_CALL*/),icon:c("NullStateGeneral")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometToasterView_DO_NOT_USE.react",["BaseContextualLayerAnchorRoot.react","BasePortal.react","BaseToastAnimationInternal.react","BaseToasterView.react","gkx","react","stylex","useToasterStateManager"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useState,k={list:{display:"j83agx80",flexDirection:"cbu4d94t",listStyle:"p7hjln8o",maxWidth:"d2edcug0"},root:{bottom:"i09qtzwb",display:"j83agx80",end:"n7fi1qx3",pointerEvents:"hzruof5a",position:"poy2od1o",start:"j9ispegn",zIndex:"kavbgo14"},rootBlue:{zIndex:"guygq49l"},rootWorkplaceLegacy:{zIndex:"lidd1b6n"},toast:{paddingTop:"discj3wi",paddingEnd:"hv4rvrfc",paddingBottom:"ihqw7lf3",paddingStart:"dati1w0a",pointerEvents:"oqq733wu"}},l={center:{justifyContent:"taijpn5t"},start:{justifyContent:"jifvfom9"}};function a(a){var b=a.align;b=b===void 0?"start":b;var d=a.filterToasts;a=a.maxVisible;a=a===void 0?1:a;var e=c("useToasterStateManager")(),f=j(function(){return e.getEmptyState()}),g=f[0],m=f[1];i(function(){var a=e.registerView(m,0);return a.remove},[e]);return h.jsx(c("BasePortal.react"),{target:document.body,xstyle:[k.root,c("gkx")("708253")?null:c("gkx")("1341692")?k.rootWorkplaceLegacy:k.rootBlue,l[b]],children:h.jsx(c("BaseToasterView.react"),{className:c("stylex")(k.list),filterToasts:d,maxVisible:a,toasterState:g,children:function(a,b,d,e){return h.jsx(c("BaseToastAnimationInternal.react"),{expired:d,id:b,position:e,xstyle:k.toast,children:h.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:a})},e)}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometFeedUnitLoadingIndicatorMask.react",["CometProgressIndicator.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx("div",{className:"tkr6xdv7 kr520xx4 j9ispegn pmk7jnqg taijpn5t cbu4d94t n7fi1qx3 j83agx80 i09qtzwb ms7hmo2b bp9cbjyn",children:h.jsx(c("CometProgressIndicator.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("GhlTestUbtFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1942319");c=b("FalcoLoggerInternal").create("ghl_test_ubt",a);e.exports=c}),null); __d("CometGHLTestUBT",["GhlTestUbtFalcoEvent","JSScheduler","ghlTestUBT"],(function(a,b,c,d,e,f,g){"use strict";function a(){d("JSScheduler").scheduleLoggingPriCallback(function(){c("ghlTestUBT")(function(a){return c("GhlTestUbtFalcoEvent").log(function(){return{ubt:a}})})})}g["default"]=a}),98); __d("ErrorSetup",["fb-error"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("fb-error").ErrorSetup}),98); __d("JavascriptWebErrorFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1828905");c=b("FalcoLoggerInternal").create("javascript_web_error",a);e.exports=c}),null); __d("ErrorTransport",["JavascriptWebErrorFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("JavascriptWebErrorFalcoEvent").log(function(){return a})}g.log=a}),98); __d("CometErrorLogging",["ClientConsistency","Env","ErrorGuard","ErrorSetup","ErrorTransport","JSErrorLoggingConfig","SiteData","WebSession"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("ErrorGuard").skipGuardGlobal(c("Env").nocatch);b=a;if(c("JSErrorLoggingConfig").sampleWeight!=null){c("ErrorSetup").setup({additional_client_revisions:c("ClientConsistency").getAdditionalRevisions(),appId:c("JSErrorLoggingConfig").appId,cavalry_lid:b,client_revision:c("SiteData").client_revision,extra:c("JSErrorLoggingConfig").extra,loggingFramework:"comet",push_phase:c("SiteData").push_phase,report_source:c("JSErrorLoggingConfig").report_source,report_source_ref:c("JSErrorLoggingConfig").report_source_ref,sample_weight:(a=c("JSErrorLoggingConfig").sampleWeight)!=null?a:0,script_path:"/comet",server_revision:c("SiteData").server_revision,spin:c("SiteData").spin,web_session_id:d("WebSession").getId()},d("ErrorTransport").log)}}c("ErrorSetup").preSetup();g.init=a}),98); __d("CometBootloaderEventsTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:CometBootloaderEventsLoggerConfig")}),null); __d("HasteResponseFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1823926");c=b("FalcoLoggerInternal").create("haste_response",a);e.exports=c}),null); __d("CometBootloaderLoggerUtil",["BootloaderEvents","BootloaderEventsPerf","CometBootloaderEventsTypedLoggerLite","CometTimeSpentNavigation","HasteResponseFalcoEvent","ResourceTimingStore","SiteData","performanceNavigationStart"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(a){var b=a.bl_sample_rate,e=a.hr_sample_rate,f=a.parent_lid;if(h||!(b||e))return;h=!0;d("ResourceTimingStore").init();var g=function(a){return{ms_since_navstart:Math.round(a-c("performanceNavigationStart")()),parent_lid:f,pkg_cohort:c("SiteData").pkg_cohort,request_path:(a=c("CometTimeSpentNavigation").getPathInfo())==null?void 0:a.name,svn_rev:c("SiteData").client_revision}};e&&d("BootloaderEvents").onHasteResponse(function(a){return c("HasteResponseFalcoEvent").log(function(){var b=d("BootloaderEventsPerf").computeHRData(a),c=d("BootloaderEventsPerf").flattenData(b);return babelHelpers["extends"]({},c,g(b.start_time))})});b&&d("BootloaderEvents").onBootload(function(a){a=d("BootloaderEventsPerf").computeBLData(a);var e=d("BootloaderEventsPerf").flattenData(a);c("CometBootloaderEventsTypedLoggerLite").log(babelHelpers["extends"]({},e,g(a.start_time)),{weight:b})})}g.initLogging=a}),98); __d("CometPixelRatioUpdater",["Cookie","Run","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";var h="dpr";function i(a){c("Cookie").set(h,String(a))}function j(){window.devicePixelRatio!==d("WebPixelRatio").get()&&i(window.devicePixelRatio)}function a(){j(),d("Run").onBeforeUnload(j,!1),"onpagehide"in window&&window.addEventListener("pageHide",j)}g.startDetecting=a}),98); __d("CometNetworkStatusToast",["fbt","ix","BaseToasterStateManager","CometIconWirelessSlashFilled.react","CometRelayEnvironmentFactory","NetworkStatus","TetraIcon.react","cometPushToast","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=null;function l(a){a=a.online;var b=c("BaseToasterStateManager").getInstance();k!=null&&(b.expire(k),k=null);k=a?d("cometPushToast").cometPushToast({icon:j.jsx(c("TetraIcon.react"),{color:"positive",icon:d("fbicon")._(i("485124"),24)}),message:h._(/*FBT_CALL*/"Sua conex\u00e3o com a internet foi restaurada."/*FBT_CALL*/)},4e3,b):d("cometPushToast").cometPushToast({action:{label:h._(/*FBT_CALL*/"Atualizar"/*FBT_CALL*/),onPress:function(){d("CometRelayEnvironmentFactory").commitLocalUpdateForEachEnvironment(function(a,b,c){c.invalidateStore()})}},icon:j.jsx(c("TetraIcon.react"),{color:"disabled",icon:c("CometIconWirelessSlashFilled.react"),size:24}),message:h._(/*FBT_CALL*/"Voc\u00ea est\u00e1 offline no momento."/*FBT_CALL*/)},Infinity,b)}function a(){c("NetworkStatus").onChange(l)}g.subscribe=a}),98); __d("SimplePageLoadLogger",["ODS","performance"],(function(a,b,c,d,e,f,g){"use strict";function a(){d("ODS").bumpEntityKey(1678,"www_client_navigations",h())}function h(){if(c("performance").navigation==null||c("performance").navigation.type==null)return"UNSUPPORTED";switch(c("performance").navigation.type){case c("performance").navigation.TYPE_NAVIGATE:return"NAVIGATE";case c("performance").navigation.TYPE_RELOAD:return"RELOAD";case c("performance").navigation.TYPE_BACK_FORWARD:return"BACK_FORWARD";case c("performance").navigation.TYPE_RESERVED:return"RESERVED";default:return"UNKNOWN"}}g.logPageNavigationType=a}),98); __d("CometRootDeferredShared",["CometBootloaderLoggerUtil","CometErrorRoot.react","CometFullPageCompatRoot.react","CometNetworkStatusToast","CometVCTracker","CometVirtualCursorStatus","DeferredCookie","DetectBrokenProxyCache","ErrorGuard","JSScheduler","SimplePageLoadLogger","WebStorageMonster","cr:10026","cr:1201738","cr:1332233","cr:1516609","cr:1813330","cr:2917","currentCometRouterInstance"],(function(a,b,c,d,e,f,g){"use strict";b("CometErrorRoot.react");b("CometFullPageCompatRoot.react");function a(a){var e=a.blLoggingCavalryFields,f=a.deferredCookies,g=a.userID;c("ErrorGuard").applyWithGuard(function(){return d("CometBootloaderLoggerUtil").initLogging(e)},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("CometVirtualCursorStatus").initLogging()},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("CometNetworkStatusToast").subscribe()},null,[]);b("cr:10026")!=null&&c("ErrorGuard").applyWithGuard(function(){return b("cr:10026")(function(){var a;return(a=d("currentCometRouterInstance").get())==null?void 0:(a=a.getCurrentRouterState())==null?void 0:(a=a.main)==null?void 0:a.route})},null,[]);b("cr:2917")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:2917")()},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("SimplePageLoadLogger").logPageNavigationType()},null,[]);d("JSScheduler").scheduleSpeculativeCallback(function(){c("WebStorageMonster").schedule()});d("JSScheduler").scheduleSpeculativeCallback(function(){d("DetectBrokenProxyCache").run(g,"c_user")});b("cr:1201738")&&c("CometVCTracker").VisualCompletionTraceObserver.subscribe(function(a){a.interactionType==="INITIAL_LOAD"&&b("cr:1201738").init()});Object.keys(f).forEach(function(a){var b=f[a],d=b.expiration_for_js,e=b.first_party_only,g=b.path,h=b.secure;b=b.value;c("DeferredCookie").addToQueue(a,b,d,g,e,!1,h)});b("cr:1332233")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1332233")()},null,[]);b("cr:1516609")!=null&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1516609").initSignalCollection()},null,[]);b("cr:1813330")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1813330").init()},null,[])}g.initDeferred=a}),98); __d("CometRootDeferred",["CometRootDeferredShared","CometTimezoneUpdater","JSScheduler","SketchComet"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.sketchInfo;a=babelHelpers.objectWithoutPropertiesLoose(a,["sketchInfo"]);b!=null&&d("JSScheduler").scheduleSpeculativeCallback(function(){c("SketchComet").solveAllPrimitivesAndCallAsyncController(b.seed1,b.seed2,b.rounds)});d("CometRootDeferredShared").initDeferred(a);c("CometTimezoneUpdater").updateTimezoneIfNecessary()}g.initDeferred=a}),98); __d("LiveVideoCometNuxForCVC.react",["CometPlaceholder.react","CometRelay","LiveVideoCometNuxForCVCQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("LiveVideoCometNuxForCVCQuery.graphql");function a(a){a=a.videoID;a=d("CometRelay").useLazyLoadQuery(j,{nuxID:8030,videoID:a});return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:a.nux,props:{video:a.video}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WebBrowserDimensionsTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:WebBrowserDimensionsLoggerConfig")}),null); __d("CometBrowserDimensionsLogger",["SiteData","WebBrowserDimensionsTypedLoggerLite","getViewportDimensions"],(function(a,b,c,d,e,f,g){"use strict";var h=null;function i(){h===null&&(h=c("getViewportDimensions")());return h}function a(a){var b,d=i();b={client_hint_width:a==null?void 0:a.clientHintWidth,pixel_ratio:(b=window.devicePixelRatio)!=null?b:1,screen_x:window.screen.width,screen_y:window.screen.height,server_pixel_ratio:c("SiteData").pr,server_viewport_x:a==null?void 0:a.viewportWidth,server_viewport_y:a==null?void 0:a.viewportHeight,viewport_x:d.width,viewport_y:d.height};window.navigator&&window.navigator.hardwareConcurrency&&(b.cpu_cores_count=window.navigator.hardwareConcurrency);if(window.innerWidth>0&&window.outerWidth>0){a=Math.round(window.outerWidth/window.innerWidth*100)/100;b.zoom_ratio=a}if(window.getComputedStyle&&document.documentElement!=null){d=window.getComputedStyle(document.documentElement);d!=null&&(b.document_font_size=d.fontSize)}c("WebBrowserDimensionsTypedLoggerLite").log(b)}g.init=a}),98); __d("CometBatchNotificationsStateChangeSubscription",["CometBatchNotificationsStateChangeSubscription.graphql","CometRelay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("CometBatchNotificationsStateChangeSubscription.graphql");function a(a){return d("CometRelay").requestSubscription(a,{subscription:i,variables:{environment:"MAIN_SURFACE",input:{environment:"MAIN_SURFACE",query_flags:["INCLUDE_WA_P2B_NOTIFS"]}}})}g.subscription=i;g.batchSubscribe=a}),98); __d("CometNotificationsStateChangeSubscription",["CometNotificationsStateChangeSubscription.graphql","CometRelay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("CometNotificationsStateChangeSubscription.graphql");function a(a){return d("CometRelay").requestSubscription(a,{subscription:i,variables:{environment:"MAIN_SURFACE",input:{environment:"MAIN_SURFACE",query_flags:["INCLUDE_WA_P2B_NOTIFS"]}}})}c={subscribe:a,subscription:i};g["default"]=c}),98); __d("MWChatLogOpenChatTab.bs",["LSThreadAttributionStore.bs","MWChatTabEntryPoints.bs","MessengerWebEntryPointsUtil.bs","MessengerWebEvent","MessengerWebEventsFalcoEvent.bs","ODS"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d,e){var f=a!==void 0?a:!1;b("ODS").bumpEntityKey(3185,"mwchat_tab","open_user");b("LSThreadAttributionStore.bs").setSource(c,d);var g=b("MessengerWebEntryPointsUtil.bs").cast(d);b("MWChatTabEntryPoints.bs").tabEntryPoints[c]=g;return b("MessengerWebEventsFalcoEvent.bs").log(function(){return{entry_point:g,event_name:b("MessengerWebEvent").OPEN_CHAT_TAB,other_user_fbid:f?null:c,is_secured:f}})}function c(a,c,d){var e=a!==void 0?a:!1;b("ODS").bumpEntityKey(3185,"mwchat_tab","open_group");var f=b("MessengerWebEntryPointsUtil.bs").cast(d);b("LSThreadAttributionStore.bs").setSource(c,d);b("MWChatTabEntryPoints.bs").tabEntryPoints[c]=f;return b("MessengerWebEventsFalcoEvent.bs").log(function(){return{entry_point:f,event_name:b("MessengerWebEvent").OPEN_CHAT_TAB,thread_fbid:e?null:c,is_secured:e}})}function d(a,c,d,e){var f=a!==void 0?a:!1;b("ODS").bumpEntityKey(3185,"mwchat_tab","open_page");var g=b("MessengerWebEntryPointsUtil.bs").cast(d);b("LSThreadAttributionStore.bs").setSource(c,d);b("MWChatTabEntryPoints.bs").tabEntryPoints[c]=g;return b("MessengerWebEventsFalcoEvent.bs").log(function(){return{entry_point:g,event_name:b("MessengerWebEvent").OPEN_CHAT_TAB,other_user_fbid:f?null:c,is_secured:f}})}f.logOpenUserTab=a;f.logOpenGroupTab=c;f.logOpenPageTab=d}),null); __d("MWChatMultitabCookieWriter.bs",["DeferredCookie","MWChatThreadId.bs","recoverableViolation"],(function(a,b,c,d,e,f){"use strict";function a(a){var c=a.chatHeads.map(function(a){return{i:b("MWChatThreadId.bs").serializeFuture(a)}});a=a.openTabsState;var d;if(a.length!==1)d=void 0;else{a=a[0];a=a.threadID;d=a?b("MWChatThreadId.bs").serializeFuture(a._0):void 0}a=JSON.stringify({t3:c,utc3:Date.now(),lm3:d,v:1});a!==void 0?b("DeferredCookie").addToQueue("presence","C"+a,0,"",!1,!1,!0):b("recoverableViolation")("Failed to serialize cookie","messenger_comet")}c=1;f.version=c;f.write=a}),null); __d("AvailableListState",[],(function(a,b,c,d,e,f){a=Object.freeze({OFFLINE:0,IDLE:1,ACTIVE:2,MOBILE:3});f["default"]=a}),66); __d("PresenceStatusProviderSubscription",["AvailableListState","CometHomeContactsConfig","CometRelay","CurrentUser","LogHistory","PresenceStatusProviderSubscription_ContactProfilesQuery.graphql","PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql","PresenceStatusProviderSubscription_rankings.graphql","Promise","WebPixelRatio","chunkArray","gkx","promiseDone","recoverableViolation","relay-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=c("requireDeferred")("FBMqttChannel").__setRef("PresenceStatusProviderSubscription"),l=c("requireDeferred")("MessengerMQTTPresence").__setRef("PresenceStatusProviderSubscription"),m=Object.assign.apply(Object,[{}].concat(Object.entries(c("AvailableListState")).map(function(a){var b,c=a[0];a=a[1];return b={},b[String(a)]=c,b}))),n=h!==void 0?h:h=b("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql"),o=i!==void 0?i:i=b("PresenceStatusProviderSubscription_ContactProfilesQuery.graphql");function p(a){var b=null,c=k.onReady(function(c){c.subscribe("/legacy_web",function(b){var c=JSON.parse(b);c.type==="privacy_changed"&&a.commitUpdate(function(a){a=a.getRoot();if(a==null)return;a=a.getLinkedRecord("viewer");if(a==null)return;a.setValue(((a=c.data)==null?void 0:a.visibility)===!0,"chat_visibility")})}),b=function(){return c.unsubscribeAll("/legacy_web")}});return{remove:function(){c.remove(),b!=null&&b()}}}function q(a,b,c,d,e){var f=null,g=l.onReady(function(g){g.subscribe({reset:function(){var f=b.current,g={};Object.keys(f).forEach(function(a){delete g[a]});b.current=g;y(a,b.current,c,d,e)},setMultiFromMQTT:function(f){var g=b.current,h=babelHelpers["extends"]({},g);f.forEach(function(a){h[a.u]={last_active_time:a.l,status:a.p}});b.current=h;y(a,b.current,c,d,e)}}),f=function(){return g.unsubscribe()}});return{remove:function(){g.remove(),f!=null&&f()}}}function r(a,b,c,e,f){var g,h=d("relay-runtime").getRequest(n);h=d("relay-runtime").createOperationDescriptor(h,{});h=a.lookup(h.fragment);g=(g=h.data)==null?void 0:g.viewer;var i=typeof g==="object"?g==null?void 0:g.chat_visibility:null;e.current=!!i;g=a.subscribe(h,function(d){d=d.data;d=d==null?void 0:d.viewer;if(typeof d!=="object"||d==null)return;var g=d==null?void 0:d.presence_view_side_settings;if(typeof g==="object"&&g!=null&&g.has_converted_to_view_side_settings===!0)return;g=d.chat_visibility;i!=null&&g!==i&&y(a,b.current,c,e,f);i=g});return g}var s={height:36,scale:d("WebPixelRatio").get(),width:36},t=500,u=function(a,e){a=c("chunkArray")(Array.from(a),t);a=a.map(function(a){d("CometRelay").fetchQuery(e,o,{ids:a,scale:d("WebPixelRatio").get()},c("gkx")("1820749")?{fetchPolicy:"store-or-network"}:void 0).toPromise()});return b("Promise").all(a)},v=function(a,b,d){if(b.size===0)return;c("promiseDone")(u(b,d).then(function(b){d.commitUpdate(function(d){b.forEach(function(b){b=(b==null?void 0:(b=b.viewer)==null?void 0:b.chat_sidebar_contact_nodes)||[];b.forEach(function(b){var e,f=b==null?void 0:b.id;if(f==null)return;var g=d.get(f);g==null&&(g=d.create(f,"User"));var h=b==null?void 0:b.name;if(h==null)return c("recoverableViolation")("ContactProfilesQuery return empty name for user "+f,"messenger_comet");g.setValue(h,"name");h=g.getOrCreateLinkedRecord("profile_picture","Image",s);e=b==null?void 0:(e=b.profile_picture)==null?void 0:e.uri;if(e==null)return c("recoverableViolation")("ContactProfilesQuery return empty profileUri for user "+f,"messenger_comet");h.setValue(b==null?void 0:(e=b.profile_picture)==null?void 0:e.uri,"uri");g.setLinkedRecord(h,"profile_picture",s);a.push(g)})}),x(d,a)})}))},w=function(a,b,d,e){a.commitUpdate(function(f){if(d==null)return;var g=new Set(Object.keys(b).filter(function(a){return c("CurrentUser").getID()!==a&&((a=b[a])==null?void 0:a.status)===2})),h=d.filter(function(a){var c=a.buddy_id;a=a.status;return a==null||c==null?!1:((c=e.current?(c=b[c])==null?void 0:c.status:0)!=null?c:0)===a}).map(function(a){a=(a=a.user)==null?void 0:a.id;if(a==null)return null;g["delete"](a);return f.get(a)}).filter(Boolean);g.size>0&&(g.forEach(function(a){var b=f.get(a);if(b!=null&&b.getValue("name")!=null){var c=b.getLinkedRecord("profile_picture",s);c!=null&&c.getValue("uri")!=null&&(h.push(b),g["delete"](a))}}),v(h,g,a));x(f,h)})};function x(a,b){d("LogHistory").getInstance("messenger-comet").log("updateChatSidebarContacts",b.length);a=a.getRoot().getLinkedRecord("viewer");if(a==null){c("recoverableViolation")("Viewer should not be null here, something has gone horribly wrong","messenger_web_product");return}a.setLinkedRecords(b,"chat_sidebar_contacts",{count:c("CometHomeContactsConfig").numContactsToFetch})}function y(a,b,c,d,e){a.commitUpdate(function(a){var e=a.getRoot();if(e==null)return;e=e.getLinkedRecord("viewer");if(e==null)return;var f=e.getLinkedRecord("presence_view_side_settings"),g=f!=null&&f.getValue("has_converted_to_view_side_settings")===!0||e.getValue("chat_visibility")===!0;f=e.getLinkedRecord("actor");f!=null&&g?f.setValue("ACTIVE","availability"):f!=null&&f.setValue("OFFLINE","availability");d.current=g;e=Object.keys(b);e.forEach(function(c){var d,e;d=(d=b[c])==null?void 0:d.status;e=(e=b[c])==null?void 0:e.last_active_time;d=d==null?null:m[String(d)];var f=a.get(c);f==null&&d==="ACTIVE"&&(f=a.create(c,"User"));f!=null&&(f.setValue(d==="ACTIVE"&&g?d:null,"availability"),!g?f.setValue(null,"last_active_time"):e!==0&&e!=null&&f.setValue(e,"last_active_time"))});c()}),w(a,b,e,d)}a={init:function(a,c,e,f,g){g=g!=null?g.map(function(a){return d("CometRelay").readInlineData(j!==void 0?j:j=b("PresenceStatusProviderSubscription_rankings.graphql"),a)}):null;var h=p(a),i=q(a,c,e,f,g),k=r(a,c,e,f,g);return{remove:function(){i.remove(),h.remove(),k.dispose()}}}};g["default"]=a}),98); __d("PresenceStatusProviderSubscriptionComponent.react",["CometRelay","PresenceStatusProviderSubscription","PresenceStatusProviderSubscriptionComponentQuery.graphql","WebPixelRatio","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useEffect,j=50,k=function(){return d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("PresenceStatusProviderSubscriptionComponentQuery.graphql"),{count:j,scale:d("WebPixelRatio").get()})};function a(a){var b=a.chatVisibilityRef,e=a.presenceInformer,f=a.presenceMap;a=k();var g=(a=a==null?void 0:(a=a.viewer)==null?void 0:a.chat_sidebar_contact_rankings)!=null?a:null,h=d("CometRelay").useRelayEnvironment();i(function(){var a=c("PresenceStatusProviderSubscription").init(h,f,e,b,g);return function(){a.remove()}},[h,e,f,g,b]);return null}g["default"]=a}),98); __d("CometRelayEF",["Bootloader","BootloaderEvents","ClientConsistencyEventEmitter","CometSSREntrypoint","cometAsyncFetch","gkx","performanceAbsoluteNow","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map();function i(a,b){if(!c("gkx")("1334580"))return;a=d("CometSSREntrypoint").processRootEntryPoint(a,b);var e=[];a.forEach(function(a){a=a.name;h.has(a)||(e.push(a),d("BootloaderEvents").notifyHasteResponseEFStart("relay_3d",a))});if(e.length===0)return;var f=c("performanceAbsoluteNow")(),g=c("cometAsyncFetch")("/ajax/relay-ef/",{data:{queries:e},method:"POST"}).then(function(a){return{fetchPredictionsEnd:c("performanceAbsoluteNow")(),fetchPredictionsStart:f,payload:a}});e.forEach(function(a){return h.set(a,g)})}function a(a,b){if(!c("gkx")("1334580"))return;var e=c("performanceAbsoluteNow")();i(a,b);a=d("CometSSREntrypoint").processRootEntryPoint(a,b);a.forEach(function(a){var b=a.name,f=h.get(b);f&&f!==!0&&c("promiseDone")(f,function(a){var f=a.fetchPredictionsEnd,g=a.fetchPredictionsStart;a=a.payload;a!=null&&typeof a==="object"&&(c("Bootloader").loadPredictedResourceMap(a.predictions[b],{onLog:function(a){return d("BootloaderEvents").notifyHasteResponseEF("relay_3d",b,{fetchPredictionsEnd:f,fetchPredictionsStart:g,fetchRsrcsStart:e,tierOne:a})}},a.consistency.rev),c("ClientConsistencyEventEmitter").emit("newEntry",a.consistency))});h.set(a.name,!0)})}g.fetchPredictions=i;g.fetchPredictedResources=a}),98); __d("RTWebCallBlockSettingHooks",["CometRelay","DateConsts","RTWebCallBlockSettingHooksQuery.graphql","RTWebCallBlockedSettingSubscription","RTWebPreCallContext","ServerTime","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useContext,j=e.useEffect,k=e.useState,l=6e4,m=h!==void 0?h:h=b("RTWebCallBlockSettingHooksQuery.graphql"),n=function(a,b){return function(c){c=c.getRoot();if(c==null)return;c=c.getLinkedRecord("viewer");if(c==null)return;c.setValue(b,a)}};function o(a){return a===-1?a:(a||0)*d("DateConsts").MS_PER_SEC}function p(){var a=d("CometRelay").useRelayEnvironment(),b=d("CometRelay").getActorID(a),e=k(0),f=e[0],g=e[1];j(function(){var e=d("CometRelay").fetchQuery(a,m,{},{fetchPolicy:"store-or-network"}).toPromise().then(function(a){a=a==null?void 0:a.viewer;a!=null&&g(o(a.call_blocked_until))});c("promiseDone")(e);var f=d("RTWebCallBlockedSettingSubscription").subscribe(a,{viewer_id:b},function(b){b=b==null?void 0:b.rtweb_call_blocked_setting_subscribe;b!=null&&(g(o(b.call_blocked_until)),a.commitUpdate(n("call_blocked_until",b.call_blocked_until)))});return function(){f.dispose()}},[a,b]);return f}function q(){var a=p(),b=d("ServerTime").getMillis(),c=a<0,e=a>b;b=k(c||e);var f=b[0],g=b[1];(c||e)!==f&&g(c||e);j(function(){if(e){var b=window.setInterval(function(){a<=d("ServerTime").getMillis()&&(g(!1),window.clearInterval(b))},l);return function(){window.clearInterval(b)}}},[a,e]);return f}function a(){var a=i(c("RTWebPreCallContext")),b=q();j(function(){a!=null&&a.callInviteModel.startListening({callsBlocked:b})},[a,b])}g.useCallBlockSettingValue=p;g.useHasCallsBlocked=q;g.useCallBlockSetting=a}),98); __d("showDesktopNotification",["MessengerDesktopNotificationPermissions","MessengerDesktopNotifications","ZenonUserActionLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=8e3;function a(){return function(a){var b=a.acceptCall,e=a.body,f=a.icon;a=a.title;var g={body:e,closeTime:h,icon:f,onClick:function(){d("ZenonUserActionLogger").logClick({component:"browser_notification",surface:"desktop_notification"}),window.focus(),b({trigger:"desktop_notification"})},onShow:function(){d("ZenonUserActionLogger").logImpression({component:"browser_notification",surface:"desktop_notification"})},title:a};if(d("MessengerDesktopNotifications").checkPermission()===c("MessengerDesktopNotificationPermissions").DEFAULT){d("MessengerDesktopNotifications").requestPermission(function(){d("MessengerDesktopNotifications").showNotification(g)});return}d("MessengerDesktopNotifications").showNotification(g)}}g["default"]=a}),98); __d("RTWebCallInviteDesktopNotification.react",["fbt","RTWebPreCallHooks","ZenonUsersHooks","react","showDesktopNotification","usePrevious"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.invite;return(a==null?void 0:a.type)==="ringing"?i.jsx(j,{invite:a}):null}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.invite;var b=c("showDesktopNotification")(),e=c("usePrevious")(a.ringID),f=d("RTWebPreCallHooks").useAcceptCallCallback(),g=d("ZenonUsersHooks").useZenonUser(a.inviterID),h=a.requestingVideo,i=a.participants.length>1;if(e!==a.ringID&&g!=null){b({acceptCall:f,body:l(g.shortName),icon:(e=g.profilePictureUrl)!=null?e:null,title:k(h,i)})}return null}function k(a,b){if(!b)return a?h._(/*FBT_CALL*/"Recebendo um bate-papo de v\u00eddeo"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o recebida"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Bate-papo de v\u00eddeo em grupo recebido"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o em grupo recebida"/*FBT_CALL*/)}function l(a){return h._(/*FBT_CALL*/"{caller name} est\u00e1 ligando. Clique para atender."/*FBT_CALL*/,[h._param("caller name",a)])}g["default"]=a}),98); __d("ZenonDialogContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({hide:c("emptyFunction"),hideAll:c("emptyFunction"),hideByID:c("emptyFunction"),show:c("emptyFunction"),showByID:c("emptyFunction"),toggle:c("emptyFunction")});e=b;g["default"]=e}),98); __d("useRTWebIncomingCallDialog",["fbt","ix","RTWebPreCallContext","ZenonDialogContext","ZenonUserActionLogger","cr:1568669","deferredLoadComponent","emptyFunction","fbicon","qpl","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=c("deferredLoadComponent")(c("requireDeferred")("RTWebCometIncomingCallContent.react").__setRef("useRTWebIncomingCallDialog")),n=c("deferredLoadComponent")(c("requireDeferred")("RTWebCometCallDialog.react").__setRef("useRTWebIncomingCallDialog")),o=b("cr:1568669")?b("cr:1568669").addPoint:c("emptyFunction");function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;a=l(c("RTWebPreCallContext"));var f=a?a.callInviteModel:null;return k(function(a){var g,k=a.inviterID,l=a.isVideoCall,q=a.onAccept,r=a.onDecline;a=a.participantIDs;d("ZenonUserActionLogger").logImpression({surface:"incoming_call_dialog"});o(c("qpl")._(64225282,"3408"),"render_dialog",{instanceKey:+(f==null?void 0:(g=f.getCurrentInvite())==null?void 0:g.ringID)});e(j.jsx(n,{acceptIcon:l?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._(/*FBT_CALL*/"Aceitar"/*FBT_CALL*/),acceptTestid:"answerCallButton",body:j.jsx(m,{inviterID:k,isVideoCall:l,participantIDs:a}),declineLabel:h._(/*FBT_CALL*/"Recusar"/*FBT_CALL*/),onClose:function(a){d("ZenonUserActionLogger").logClick({component:a?"accept_button":"decline_button",surface:"incoming_call_dialog"});b();return a?q():r()},title:p(l,a.length>1)}));return{dismiss:b}},[f,b,e])}function p(a,b){if(!b)return a?h._(/*FBT_CALL*/"Recebendo um bate-papo de v\u00eddeo"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o recebida"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Bate-papo de v\u00eddeo em grupo recebido"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o em grupo recebida"/*FBT_CALL*/)}g["default"]=a}),98); __d("RTWebIncomingUnsupportedBrowserDialogWrapper.react",["cr:230"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:230")}),98); __d("useRTWebIncomingUnsupportedBrowserDialog",["RTWebIncomingUnsupportedBrowserDialogWrapper.react","ZenonDialogContext","ZenonUserActionLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function a(){var a=j(c("ZenonDialogContext")),b=a.hide,e=a.show;return i(function(a){d("ZenonUserActionLogger").logImpression({surface:"unsupported_browser_dialog"});a=babelHelpers["extends"]({},a,{hide:b});e(h.jsx(c("RTWebIncomingUnsupportedBrowserDialogWrapper.react"),babelHelpers["extends"]({},a)));return{dismiss:b}},[b,e])}g["default"]=a}),98); __d("useRTWebMissedCallDialog",["fbt","ix","CometCardedDialogLoadingState.react","CometPlaceholder.react","JSResourceForInteraction","ZenonDialogContext","ZenonUserActionLogger","fbicon","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext,m=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometMissedCallContent.react").__setRef("useRTWebMissedCallDialog")),n=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometCallDialog.react").__setRef("useRTWebMissedCallDialog"));function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;return k(function(a){var f=a.inviterID,g=a.isVideoCall,k=a.onCallback,l=a.participantIDs;a=a.timeMissed;d("ZenonUserActionLogger").logImpression({surface:"missed_call_dialog"});e(j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("CometCardedDialogLoadingState.react"),{}),children:j.jsx(n,{acceptIcon:g?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._(/*FBT_CALL*/"Retornar liga\u00e7\u00e3o"/*FBT_CALL*/),body:j.jsx(m,{inviterID:f,isRoomCall:!1,isVideoCall:g,participantIDs:l,timeMissed:a}),declineLabel:h._(/*FBT_CALL*/"Fechar"/*FBT_CALL*/),onClose:function(a){d("ZenonUserActionLogger").logClick({component:a?"call_back":"close_dialog",surface:"missed_call_dialog"});a&&d("ZenonUserActionLogger").logClick({component:"start_call_button",surface:"missed_call_dialog"});b();return a?k():void 0},title:o(g,l.length>1)})}));return{dismiss:b}},[b,e])}function o(a,b){if(!b)return a?h._(/*FBT_CALL*/"Bate-papo de v\u00eddeo perdido"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o perdida"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Bate-papo de v\u00eddeo em grupo perdido"/*FBT_CALL*/):h._(/*FBT_CALL*/"Liga\u00e7\u00e3o em grupo perdida"/*FBT_CALL*/)}g["default"]=a}),98); __d("RTWebCometRoomIncomingCallDialog.entrypoint",["JSResourceForInteraction","RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{queries:{queryReference:{parameters:b("RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters"),variables:{nuxID:8259}}}}},root:c("JSResourceForInteraction")("RTWebCometRoomIncomingCallDialogContainer.react").__setRef("RTWebCometRoomIncomingCallDialog.entrypoint")};g["default"]=a}),98); __d("useRoomIncomingCallDialog",["CometPlaceholder.react","CometRelay","RTWebCometRoomIncomingCallDialog.entrypoint","VideoChatLinksUserActionsMultiplexLogger","ZenonDialogContext","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function a(){var a=j(c("ZenonDialogContext")),b=a.hide,e=a.show,f=c("useCometRelayEntrypointContextualEnvironmentProvider")();return i(function(a){var g=a.inviterID,i=a.linkUrl,j=a.onAccept,k=a.onDecline,l=a.roomName;a=a.sender;new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_received").setVideoCallLinkURLRaw(i).log();var m=d("CometRelay").loadEntryPoint(f,c("RTWebCometRoomIncomingCallDialog.entrypoint"),{});e(h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:m,props:{inviterID:g,linkUrl:i,onAccept:j,onDecline:k,roomName:l,sender:a}})}));return{dismiss:b}},[f,b,e])}g["default"]=a}),98); __d("useRoomMissedCallDialog",["fbt","ix","CometCardedDialogLoadingState.react","CometPlaceholder.react","JSResourceForInteraction","VideoChatLinksUserActionsMultiplexLogger","ZenonDialogContext","fbicon","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext,m=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometMissedCallContent.react").__setRef("useRoomMissedCallDialog")),n=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometCallDialog.react").__setRef("useRoomMissedCallDialog"));function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;return k(function(a){var f=a.inviterID,g=a.linkUrl,k=a.onCallback,l=a.participantIDs,o=a.roomName;a=a.timeMissed;new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed").setVideoCallLinkURLRaw(g).log();e(j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("CometCardedDialogLoadingState.react"),{}),children:j.jsx(n,{acceptIcon:d("fbicon")._(i("493173"),16),acceptLabel:h._(/*FBT_CALL*/"Participar"/*FBT_CALL*/),body:j.jsx(m,{inviterID:f,isRoomCall:!0,isVideoCall:!1,participantIDs:l,timeMissed:a}),declineLabel:h._(/*FBT_CALL*/"Fechar"/*FBT_CALL*/),onClose:function(a){a?(new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_accepted").setVideoCallLinkURLRaw(g).log(),k()):new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed_dialog_dismissed").setVideoCallLinkURLRaw(g).log(),b()},title:h._(/*FBT_CALL*/"Liga\u00e7\u00e3o perdida de {room name}"/*FBT_CALL*/,[h._param("room name",o)])})}));return{dismiss:b}},[b,e])}g["default"]=a}),98); __d("useZenonDialogController",["react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useState;function a(a,b){var d=i(null),e=d[0],f=d[1],g=c("usePrevious")(a);h(function(){if((a==null?void 0:a.ringID)===(g==null?void 0:g.ringID)&&(a==null?void 0:a.type)===(g==null?void 0:g.type))return;e&&(e.dismiss(),f(null));if(a===null)return;f(b())},[e,a,g,b]);return e}g["default"]=a}),98); __d("RTWebCometCallInviteDialogs.react",["Actor","RTWebPreCallContext","RTWebPreCallHooks","ServerTime","StartVideoChatLinkCall","qex","react","useRTWebIncomingCallDialog","useRTWebIncomingUnsupportedBrowserDialog","useRTWebMissedCallDialog","useRoomIncomingCallDialog","useRoomMissedCallDialog","useZenonDialogController"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(a){var b=a.invite;a=d("Actor").useActor();var e=a[0];a=h(c("RTWebPreCallContext"));var f=c("useRTWebIncomingCallDialog")(),g=c("useRoomIncomingCallDialog")(),i=c("useRTWebMissedCallDialog")(),j=c("useRoomMissedCallDialog")(),k=c("useRTWebIncomingUnsupportedBrowserDialog")(),l=d("RTWebPreCallHooks").useAcceptCallCallback(),m=d("RTWebPreCallHooks").useStartCallCallback(),n=a?a.callInviteModel:null;c("useZenonDialogController")(b,function(){if(b===null||n==null)return null;if(b.context.type==="room"){var a,h=b.context.room;a=(a=c("qex")._("1968272"))!=null?a:!1;if(a)switch(b.type){case"ringing":return g({inviterID:b.inviterID,linkUrl:h.linkHash,onAccept:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0)},onDecline:function(){n.decline("IgnoreCall")},roomName:h.roomName,sender:h.sender});case"missed":return j({inviterID:b.inviterID,linkUrl:h.linkHash,onCallback:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0),n.dismiss()},participantIDs:b.participants,roomName:h.roomName,timeMissed:new Date(d("ServerTime").getMillis())});case"unsupported_browser":return k({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onClose:function(){n.dismiss()},participantIDs:b.participants,threadType:3});default:return null}else switch(b.type){case"ringing":return g({inviterID:b.inviterID,linkUrl:h.linkHash,onAccept:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0)},onDecline:function(){n.decline("IgnoreCall")},roomName:h.roomName,sender:h.sender});case"missed":return j({inviterID:b.inviterID,linkUrl:h.linkHash,onCallback:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0),n.dismiss()},participantIDs:b.participants,roomName:h.roomName,timeMissed:new Date(d("ServerTime").getMillis())});default:return null}}switch(b.type){case"ringing":return f({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onAccept:function(){l({trigger:"comet_incoming_dialog_accept_button"})},onDecline:function(){n.decline("IgnoreCall")},participantIDs:b.participants});case"missed":if(b.context.type==="thread"){var o=b.context.thread;return i({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onCallback:function(){m({existingCall:null,invitees:[b.inviterID].concat(b.participants.filter(function(a){return a!==e})),mediaType:b.requestingVideo?"video":"audio",thread:o,trigger:"comet_missed_call_dialog"}),n.dismiss()},participantIDs:b.participants,timeMissed:new Date(d("ServerTime").getMillis())})}return null;case"unsupported_browser":return k({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onClose:function(){n.dismiss()},participantIDs:b.participants,threadType:b.context.type==="thread"?b.context.thread.type:2});default:return null}});return null}g["default"]=a}),98); __d("useZenonRingTone",["RTCSounds","Sound","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect,i=[d("RTCSounds").ringtone_mp3_url,d("RTCSounds").ringtone_ogg_url];function a(a){a===void 0&&(a=!1),h(function(){if(a){d("Sound").play(i,null,!0);return function(){d("Sound").stop(i)}}},[a])}g["default"]=a}),98); __d("ZenonCallInviteRingtone.react",["useZenonRingTone"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.invite;c("useZenonRingTone")((a==null?void 0:a.type)==="ringing");return null}g["default"]=a}),98); __d("useDocumentTitleBlink",["DocumentTitle","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(a){h(function(){if(a==null)return;var b=c("DocumentTitle").blink(a);return function(){b.stop()}},[a])}g["default"]=a}),98); __d("ZenonCallInviteTitleBlinking.react",["fbt","ZenonUsersHooks","react","useDocumentTitleBlink"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.invite;return a!==null&&a.type==="ringing"&&a.inviterID!=null?i.jsx(j,{inviterID:a.inviterID}):null}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.inviterID;a=d("ZenonUsersHooks").useZenonUser(a);c("useDocumentTitleBlink")(a?h._(/*FBT_CALL*/"{name} est\u00e1 ligando"/*FBT_CALL*/,[h._param("name",a.shortName)]):null);return null}g["default"]=a}),98); __d("useZenonDialogSetters",["react"],(function(a,b,c,d,e,f,g){"use strict";d("react");var h=d("react").useMemo;function a(a,b){return h(function(){return{hide:function(){a(null)},hideAll:function(){a(null),b([])},hideByID:function(a){b(function(b){return b.filter(function(b){return b.key!==a})})},show:a,showByID:function(a,c){b(function(b){var d=b.findIndex(function(b){return b.key===a}),e={key:a,node:c};if(d===-1)return[].concat(b,[e]);else return[].concat(b.slice(0,d),b.slice(d+1),[e])})},toggle:function(b){b===void 0&&(b=!1),b||a(null)}}},[a,b])}g["default"]=a}),98); __d("ZenonDialogProvider.react",["ZenonDialogContext","react","useZenonDialogSetters"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){a=a.children;var b=i(null),d=b[0];b=b[1];var e=i([]),f=e[0];e=e[1];b=c("useZenonDialogSetters")(b,e);return h.jsxs(c("ZenonDialogContext").Provider,{value:b,children:[a,d,f.map(function(a){a=a.node;return a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("RTWebCometCallInviteController.react",["RTWebCallBlockSettingHooks","RTWebCallInviteDesktopNotification.react","RTWebCometCallInviteDialogs.react","RTWebPreCallHooks","ZenonCallInviteRingtone.react","ZenonCallInviteTitleBlinking.react","ZenonDialogProvider.react","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=c("requireDeferred")("FBRTCCallSummaryUploader").__setRef("RTWebCometCallInviteController.react");b.onReady(function(a){a.init()});function a(){d("RTWebCallBlockSettingHooks").useCallBlockSetting();d("RTWebPreCallHooks").useNoAnswerTimeout();var a=d("RTWebPreCallHooks").useCallInvite();return h.jsxs(c("ZenonDialogProvider.react"),{children:[h.jsx(c("RTWebCometCallInviteDialogs.react"),{invite:a}),h.jsx(c("RTWebCallInviteDesktopNotification.react"),{invite:a}),h.jsx(c("ZenonCallInviteRingtone.react"),{invite:a}),h.jsx(c("ZenonCallInviteTitleBlinking.react"),{invite:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("RTWebCallWindowOpener",["cr:1099565"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1099565")}),98); __d("RTWebCometIncomingCallContent.react",["fbt","CometProgressIndicator.react","RTWebCometCallMessageLayout.react","ZenonUsersHooks","cr:1568669","cr:1568670","emptyFunction","gkx","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect,k=b("cr:1568669")?b("cr:1568669").addPoint:c("emptyFunction"),l=b("cr:1568670")?b("cr:1568670").useCallInvite:c("emptyFunction"),m=c("gkx")("1536863")?e:c("emptyFunction");function a(a){var b=a.inviterID,e=a.isVideoCall;a=a.participantIDs;b=d("ZenonUsersHooks").useZenonUser(b);var f=d("ZenonUsersHooks").useZenonUsers(a).valueSeq().toArray();m(f,a,c("qpl")._(64225282,"3408"));a=a.length>1;var g=a?e?h._(/*FBT_CALL*/"{caller name} convidou voc\u00ea para um bate-papo de v\u00eddeo em grupo."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]):h._(/*FBT_CALL*/"{caller name} convidou voc\u00ea para uma liga\u00e7\u00e3o em grupo."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]):h._(/*FBT_CALL*/"{caller name} est\u00e1 ligando para voc\u00ea."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]);a=a?e?h._(/*FBT_CALL*/"Seu v\u00eddeo ser\u00e1 compartilhado assim que voc\u00ea atender"/*FBT_CALL*/):h._(/*FBT_CALL*/"A liga\u00e7\u00e3o ser\u00e1 iniciada assim que voc\u00ea atender."/*FBT_CALL*/):h._(/*FBT_CALL*/"A liga\u00e7\u00e3o ser\u00e1 iniciada assim que voc\u00ea atender."/*FBT_CALL*/);return b===null?i.jsx(c("CometProgressIndicator.react"),{}):i.jsx(c("RTWebCometCallMessageLayout.react"),{caller:b,mainMessage:g,participants:f,subMessage:a})}a.displayName=a.name+" [from "+f.id+"]";function e(a,b,c){var d=n();j(function(){a.length===0&&k(c,"fetching_participants",{instanceKey:d}),a.length===b.length&&k(c,"fetched_participants",{instanceKey:d})},[d,b.length,a,c])}function n(){var a=l();return+(a==null?void 0:a.ringID)}g["default"]=a}),98); __d("ZenonCallInviteModelTypes",[],(function(a,b,c,d,e,f){"use strict";a={missed:"missed",ringing:"ringing",unsupported_browser:"unsupported_browser"};f.CallInviteModelType=a}),66); __d("ZenonCallInviteModel",["BaseEventEmitter","FBLogger","ZenonCallInviteModelTypes","ZenonCallsModelTypes","ZenonIncomingRingSDKTypes","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this)||this;e.$ZenonCallInviteModel3=function(a){c("FBLogger")("rtc_www").info("Received cancel for: ",a.ringID);if(e.__currentRequest&&e.__currentRequest.model&&e.__currentRequest.model.ringID===a.ringID)switch(a.reason){case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.Hangup:a=((a=e.__currentRequest)==null?void 0:(a=a.model)==null?void 0:a.type)!==d("ZenonCallInviteModelTypes").CallInviteModelType.unsupported_browser;e.__currentRequest.model=babelHelpers["extends"]({},e.__currentRequest.model,{type:"missed"});a&&e.emit("callInvite",e.__currentRequest.model);break;case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.OtherDismiss:e.dismiss();break}};e.$ZenonCallInviteModel2=function(a){var b;c("FBLogger")("rtc_www").info("Receiving ring: ",a.ringID);if(((b=e.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.type)==="ringing"){if(((b=e.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.ringID)!==a.ringID&&c("gkx")("1434282")){a.onDecline("InAnotherCall");c("FBLogger")("rtc_www").info("Sending InAnotherCall to ring: ",a.ringID,"Current ring: ",(b=e.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.ringID)}}else e.__currentRequest={model:{context:a.context,controllerParams:a.controllerParams,inviterID:a.inviterID,participants:a.otherParticipants,requestingVideo:a.requestingVideo,ringID:a.ringID,type:a.isClientPermissableRing?"ringing":"unsupported_browser"},ringPayload:a},e.emit("callInvite",e.__currentRequest.model),a.isClientPermissableRing||a.onDecline("VersionUnsupported")};e.$ZenonCallInviteModel1=function(a){c("FBLogger")("rtc_www").info("Blocking ring: ",a.ringID),a.onDecline("IgnoreCall",d("ZenonCallsModelTypes").ZenonEndCallSubreason.CallsBlocked)};e.__eventSource=b;e.__currentRequest=null;return e}var e=b.prototype;e.getCurrentInvite=function(){var a;return(a=(a=this.__currentRequest)==null?void 0:a.model)!=null?a:null};e.startListening=function(a){a=a.callsBlocked;this.__currentRequest&&this.dismiss();this.stopListening();a?this.__eventSource.addListener("incomingRing",this.$ZenonCallInviteModel1):(this.__eventSource.addListener("incomingRing",this.$ZenonCallInviteModel2),this.__eventSource.addListener("ringCancel",this.$ZenonCallInviteModel3))};e.stopListening=function(){this.__eventSource.removeAllListeners("incomingRing"),this.__eventSource.removeAllListeners("ringCancel"),this.__currentRequest=null};e.dismiss=function(){var a;c("FBLogger")("rtc_www").info("Dismissing ring: ",(a=this.__currentRequest)==null?void 0:(a=a.model)==null?void 0:a.ringID);this.__currentRequest=null;this.emit("callInvite",null)};e.accept=function(a,b){var d=this.__currentRequest;if(d){var e;c("FBLogger")("rtc_www").info("Accepting ring: ",(e=d.model)==null?void 0:e.ringID);((e=d.model)==null?void 0:e.type)==="ringing"&&d.ringPayload.onAccept(a,b);this.dismiss()}};e.decline=function(a,b){a===void 0&&(a="IgnoreCall");var d=this.__currentRequest;if(d){var e;c("FBLogger")("rtc_www").info("Declining ring: ",(e=d.model)==null?void 0:e.ringID);d.ringPayload.onDecline(a,b);this.dismiss();return}};return b}(c("BaseEventEmitter"));g["default"]=a}),98); __d("delegateZenonCallInviteModel",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a.getCurrentInvite=b.getCurrentInvite.bind(b),a.startListening=b.startListening.bind(b),a.stopListening=b.stopListening.bind(b),a.dismiss=b.dismiss.bind(b),a.accept=b.accept.bind(b),a.decline=b.decline.bind(b),b.addListener("callInvite",function(b){a.emit("callInvite",b)})}f["default"]=a}),66); __d("ZenonCallWindowController",["FBLogger","Promise","ZenonCallWindowErrors"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b){var c=b.callWindowInitializerResource,d=b.callWindowOpener;b=b.uriBuilderResource;this.$2=null;this.$3=!1;this.$5=null;this.$1=a;this.$7=b;this.$4=c;this.$6=d}var e=a.prototype;e.initCall=function(a){var e=this;if(this.$3)throw new(d("ZenonCallWindowErrors").OpeningAnotherCallError)();try{if(this.$2&&!this.$2.closed&&a.joinContext.type==="thread"&&this.$2.inCallWith===a.joinContext.thread.id){this.$2.focus();return[this.$2,b("Promise").resolve({alohaEscalatedMW:!1})]}}catch(a){c("FBLogger")("rtc_www").catching(a).warn("Failed to access inCallWith on call window")}var f=this.$6.openWindow(a);try{this.$2&&(this.$2.closed||this.$2.close(),this.$2=null)}catch(a){c("FBLogger")("rtc_www").catching(a).warn("Failed to access close on call window")}this.$2=f;this.$3=!0;return[f,b("Promise").all([this.$7.load(),this.$4.load()]).then(function(b){var c=b[0];b=b[1];e.$5===null&&(e.$5=new b(e.$1,new c(e.$1)));return e.$5.initCall(e.$2,a)})["finally"](function(){e.$3=!1})]};return a}();g["default"]=a}),98); __d("handleCometUBTCheckSuccessMarker",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("CometUBTLogger").__setRef("handleCometUBTCheckSuccessMarker");function i(a,b){if(a==null||a.length===0)return!0;else if(b==null||b.length===0)return!1;var c=!0;a.forEach(function(a){var d,e=a.key;a=a.requiredValue;((d=b.find(function(a){return a.key===e}))==null?void 0:d.requiredValue)!==a&&(c=!1)});return c}function a(a,b,c,d,e){if(d==="SUCCESS")return;else if(b==null||c==null)return;c.some(function(c){if(c.module.includes(b.module)&&c.event===b.event&&i(c.extraData,b.extraData)){e&&e(c.id);h.onReadyImmediately(function(a){return a.addSuccessMarkerHit(c.id)});a({type:"SET_TASK_RESULT",value:"SUCCESS"});return!0}})}g["default"]=a}),98); __d("CometWatchAndScrollContextSection.react",["CometLink.react","CometRelay","CometWatchAndScrollContextSection_video.graphql","TetraProfilePhoto.react","TetraText.react","XCometVideoHomePlaylistControllerRouteBuilder","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollContextSection.react");function a(a){var e;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometWatchAndScrollContextSection_video.graphql"),a);var f=a==null?void 0:a.owner;if(a==null||f==null)return null;var g=f.id,k=f.name,l=f.url;e=(e=f.profile_picture)==null?void 0:e.uri;var m="#";f.has_professional_features_for_watch===!0?m=c("XCometVideoHomePlaylistControllerRouteBuilder").buildURL({idorvanity:g}):l!=null&&(m=l);return i.jsxs("div",{className:"j83agx80 bp9cbjyn",children:[i.jsx("div",{className:"oi9244e8",children:i.jsx(c("TetraProfilePhoto.react"),{"aria-label":k!=null&&k!==""?k:m,linkProps:{url:m},onPress:function(){j.onReady(function(a){a.log({click_point:"actor_profile_picture",click_target:"watch_and_scroll_end_screen",event:"click"})})},size:32,source:{uri:e||""}})}),i.jsxs("div",{className:"hpfvmrgz",children:[k!=null&&k!==""&&i.jsx(c("CometLink.react"),{color:"secondary",href:m,onClick:function(){j.onReady(function(a){a.log({click_point:"actor_name",click_target:"watch_and_scroll_end_screen",event:"click"})})},children:i.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"meta4",children:k})}),i.jsx("div",{className:"aahdfvyu",children:i.jsx(c("TetraText.react"),{color:"primary",numberOfLines:1,type:"headlineEmphasized4",children:a==null?void 0:a.title_with_fallback})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollActionButton.react",["CometPressable.react","TetraIcon.react","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.icon,d=a.label,e=a.onPress,f=a.testid;f=a.url;return h.jsxs("div",{className:"etr7akla l9j0dhe7 ozuftl9m n851cfcs tvfksri0 n1l5q3vz taijpn5t cbu4d94t j83agx80 bp9cbjyn","data-testid":void 0,children:[h.jsx("div",{className:"h4z51re5 osnr6wyh rv4hoivh jktsbyx5 n851cfcs spb7xbtv bkmhp75w emlxlaya s45kfl79 kozd3uwk moy3fgm5 jsrkvy3z gag4i7dh",children:h.jsx(c("CometPressable.react"),{"aria-label":d,linkProps:{url:f},onPress:e,children:h.jsx(c("TetraIcon.react"),{"aria-label":d,color:"white",hideHoverOverlay:!0,icon:b})})}),h.jsx(c("CometPressable.react"),{linkProps:{url:f},onPress:e,children:h.jsx(c("TetraText.react"),{align:"center",color:"white",type:"bodyLink4",children:d})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollFallbackCTAScreen.react",["fbt","ix","CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollActionButton.react","CometWatchAndScrollFallbackCTAScreen_video.graphql","VideoPlayerHooks","VideoPlayerReshareButton.react","XCometWatchControllerRouteBuilder","fbicon","react","requireDeferred","useCometRouterState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useContext,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollFallbackCTAScreen.react");function a(a){var e=a.setIsCanceled;a=a.video;a=d("CometRelay").useFragment(j!==void 0?j:j=b("CometWatchAndScrollFallbackCTAScreen_video.graphql"),a);var f=d("VideoPlayerHooks").useController(),g=c("useCometRouterState")();g=g==null?void 0:g.main.route.tabKey;g=g!=="watch";var n=l(c("CometSetWatchAndScrollVideoContext")),o=function(a){m.onReady(function(b){b.log({click_point:a,click_target:"watch_and_scroll_end_screen",event:"click"})})};return k.jsx("div",{className:"fl8dtwsd gbhij3x4 tkv8g59h dsae2hpk taijpn5t j83agx80 kzizifcz c6a7hszh bp9cbjyn kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:k.jsxs("div",{className:"taijpn5t btwxx1t3 j83agx80 ll8tlv6m",children:[g&&k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("607168"),16),label:h._(/*FBT_CALL*/"Mais v\u00eddeos no Watch"/*FBT_CALL*/),onPress:function(){n(null),o("watch_button")},url:c("XCometWatchControllerRouteBuilder").buildURL({})}),k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("534218"),16),label:h._(/*FBT_CALL*/"Reproduzir v\u00eddeo novamente"/*FBT_CALL*/),onPress:function(){f.play("user_initiated"),e(!1),o("replay")}}),a!=null&&k.jsx(c("VideoPlayerReshareButton.react"),{renderActionButton:function(a){var b=a.onPress;return k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("484394"),16),label:h._(/*FBT_CALL*/"Compartilhar"/*FBT_CALL*/),onPress:function(){b(),o("share_button")}})},video:a})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollUpNextCard.react",["fbt","CometLink.react","CometRelay","CometResponsiveColumns.react","CometTahoeEndScreenProgressCircle.react","CometWatchAndScrollUpNextCard_video.graphql","TetraText.react","VideoPlayerHooks","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k={backgroundThumbnail:{bottom:"i09qtzwb",boxSizing:"rq0escxv",end:"n7fi1qx3",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4",backgroundPosition:"skiu6z9h",backgroundSize:"r4lidvzm",borderTopStartRadius:"jk6sbkaj",borderTopEndRadius:"kdgqqoy6",borderBottomEndRadius:"ihh4hy1g",borderBottomStartRadius:"qttc61fc"},cardRoot:{backgroundColor:"cwj9ozl2",borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",bottom:"mio9le5o",display:"j83agx80",end:"n7fi1qx3",marginTop:"aov4n071",marginEnd:"oi9244e8",marginBottom:"bi6gxh9e",marginStart:"h676nmdw",paddingTop:"cxgpxx05",paddingEnd:"dflh9lhu",paddingBottom:"sj5x9vvc",paddingStart:"scb9dxdr",position:"pmk7jnqg",start:"j9ispegn"},metaColumn:{flexBasis:"ovwxwvn6"},metadataContainer:{display:"j83agx80",flexDirection:"cbu4d94t",marginBottom:"qzhwtbm6",marginTop:"knvmm38d"},previewContainer:{alignItems:"bp9cbjyn",display:"j83agx80",flexDirection:"cbu4d94t",height:"pkqgeaxr",justifyContent:"taijpn5t",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4",width:"e1e8jytk"},thumbnailColumn:{flexBasis:"cy3bvc1o"},upNextText:{marginBottom:"dicw6rsg"},videoMetaText:{marginTop:"aov4n071"}};function a(a){var e,f=a.hidden,g=a.onNextVideo;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollUpNextCard_video.graphql"),a);var l=d("VideoPlayerHooks").useEnded();if(a==null)return null;e=(e=a.image)==null?void 0:e.uri;e=e!=null?{backgroundImage:"url("+e+")"}:{backgroundColor:"var(--disabled-icon)"};e=j.jsx("div",{className:c("stylex")(k.backgroundThumbnail),style:e});var m=a.title_with_fallback;a=(a=a.owner)==null?void 0:a.name;return j.jsx("div",{className:c("stylex")(k.cardRoot),children:j.jsxs(d("CometResponsiveColumns.react").Container,{children:[j.jsx(d("CometResponsiveColumns.react").Column,{xstyle:k.thumbnailColumn,children:j.jsxs("div",{className:c("stylex")(k.previewContainer),children:[e,g&&j.jsx(c("CometLink.react"),{onClick:function(){return g("watch_and_scroll_chaining_click_advance")},children:j.jsx(c("CometTahoeEndScreenProgressCircle.react"),{circleDiameter:32,circleStrokeColor:"var(--base-blue)",circleStrokeWidth:3,iconSize:20,isMakingProgress:!f&&l,onProgressDone:function(){return g("watch_and_scroll_chaining_auto_advance")},timeoutSec:6})})]})}),j.jsx(d("CometResponsiveColumns.react").Column,{xstyle:k.metaColumn,children:j.jsxs("div",{className:c("stylex")(k.metadataContainer),children:[j.jsx("div",{className:c("stylex")(k.upNextText),children:j.jsx(c("TetraText.react"),{color:"secondary",type:"meta4",children:h._(/*FBT_CALL*/"A SEGUIR"/*FBT_CALL*/)})}),j.jsx("div",{className:c("stylex")(k.videoMetaText),children:j.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body4",children:a})}),j.jsx("div",{className:c("stylex")(k.videoMetaText),children:j.jsx(c("TetraText.react"),{color:"primary",numberOfLines:1,type:"bodyLink4",children:m})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollChaining.react",["fbt","ix","CometBackgroundImage.react","CometPressable.react","CometRelay","CometSetWatchAndScrollVideoContext","CometTahoeEndScreenProgressCircle.react","CometTheme.react","CometWatchAndScrollChainingQuery.graphql","CometWatchAndScrollContextSection.react","CometWatchAndScrollFallbackCTAScreen.react","CometWatchAndScrollSetStoryViewabilityLoggerContext","CometWatchAndScrollUpNextCard.react","CometWatchAndScrollVideoContext","TetraIcon.react","TetraText.react","VideoPlayerHooks","WebPixelRatio","fbicon","qex","react","requireDeferred","useCometTahoeChainingDepth"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useState,p=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollChaining.react");function a(a){var e=a.hidden,f=a.routeTracePolicy,g=a.seedVideoID,q=a.subOrigin,r=m(c("CometWatchAndScrollVideoContext"));a=r==null?void 0:r.chainingCursor;var s=!!c("qex")._("221");a=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("CometWatchAndScrollChainingQuery.graphql"),{caller:"WNS",chainingCursor:a,channelEntryPoint:"WNS",count:1,scale:d("WebPixelRatio").get(),seedVideoID:g});var t=d("useCometTahoeChainingDepth").useChainingDepthContext(),u=t.chainingDepthDispatch;t=o(!1);var v=t[0],w=t[1],x=d("VideoPlayerHooks").useController(),y=m(c("CometSetWatchAndScrollVideoContext"));t=(t=a.video)==null?void 0:(t=t.video_channel)==null?void 0:(t=t.video_channel_feed)==null?void 0:(t=t.edges)==null?void 0:t[0];var z=t==null?void 0:t.cursor,A=t==null?void 0:t.node;t=A==null?void 0:(t=A.attachments)==null?void 0:(t=t[0])==null?void 0:t.media;var B=t!=null&&t.__typename==="Video"?t==null?void 0:t.id:null;n(function(){!e&&!v&&p.onReady(function(a){a.log({event:"watch_and_scroll_end_screen_impression"})})},[e,v]);var C=m(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),D=l(function(a){p.onReady(function(b){b.log({event:a})}),y({chainingCursor:z,chainingSeedVideoID:g,routeTracePolicy:f,sessionStartTime:r==null?void 0:r.sessionStartTime,sessionTrigger:r==null?void 0:r.sessionTrigger,subOrigin:q,videoID:B}),C({clientViewConfig:A==null?void 0:A.client_view_config,encryptedTracking:A==null?void 0:A.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(A==null?void 0:A.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(A==null?void 0:A.encrypted_click_tracking)||"",encrypted_tracking:(A==null?void 0:A.encrypted_tracking)||""},videoID:B,viewabilityConfig:A==null?void 0:A.viewability_config})},[B,z,f,g,C,y,A==null?void 0:A.click_tracking_linkshim_cb,A==null?void 0:A.client_view_config,A==null?void 0:A.encrypted_click_tracking,A==null?void 0:A.encrypted_tracking,A==null?void 0:A.viewability_config,q,r==null?void 0:r.sessionStartTime,r==null?void 0:r.sessionTrigger]);if(v)return k.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:w,video:a==null?void 0:a.video});if(t==null||t.__typename!=="Video"){p.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});return k.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:w,video:a==null?void 0:a.video})}a=(a=t.image)==null?void 0:a.uri;var E=function(){w(!0),p.onReady(function(a){a.log({click_point:"cancel_button",click_target:"watch_and_scroll_end_screen",event:"click"})})},F=function(){x.play("user_initiated"),p.onReady(function(a){a.log({click_point:"replay",click_target:"watch_and_scroll_end_screen",event:"click"})})},G=h._(/*FBT_CALL*/"Reproduzir novamente"/*FBT_CALL*/);return s?k.jsx(c("CometWatchAndScrollUpNextCard.react"),{hidden:e,onNextVideo:function(a){D(a),u&&u({type:"INCREMENT"})},video:t}):k.jsx(c("CometTheme.react"),{theme:"dark",children:k.jsxs("div",{className:"kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:[k.jsx("div",{className:"kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:a!=null&&k.jsx(c("CometBackgroundImage.react"),{src:a})}),k.jsxs("div",{className:"h4z51re5 osnr6wyh rv4hoivh jktsbyx5 cbu4d94t j83agx80 c6a7hszh kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:[k.jsx("div",{className:"oud54xpy",children:k.jsx(c("TetraText.react"),{color:"white",type:"body3",children:h._(/*FBT_CALL*/"A SEGUIR NO WATCH"/*FBT_CALL*/)})}),k.jsx(c("CometWatchAndScrollContextSection.react"),{video:t}),k.jsxs("div",{className:"km676qkl j83agx80 bp9cbjyn",children:[k.jsx("div",{className:"oi9244e8",children:k.jsx(c("TetraIcon.react"),{"aria-label":G,color:"white",icon:d("fbicon")._(i("534219"),20),onPress:F})}),k.jsx(c("CometPressable.react"),{onPress:F,children:k.jsx(c("TetraText.react"),{color:"white",type:"bodyLink4",children:G})})]})]}),k.jsx("div",{className:"hzruof5a taijpn5t cbu4d94t j83agx80 bp9cbjyn kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:k.jsxs("div",{className:"oqq733wu jei6r52m",children:[!e&&k.jsx(c("CometPressable.react"),{"aria-label":h._(/*FBT_CALL*/"Reproduza o pr\u00f3ximo v\u00eddeo"/*FBT_CALL*/),onPress:function(){D("watch_and_scroll_chaining_click_advance"),u&&u({type:"INCREMENT"})},children:k.jsx(c("CometTahoeEndScreenProgressCircle.react"),{circleDiameter:44,circleStrokeColor:"var(--base-blue)",circleStrokeWidth:3,iconSize:20,isMakingProgress:!e,onProgressDone:function(){D("watch_and_scroll_chaining_auto_advance"),u&&u({type:"INCREMENT"})},timeoutSec:6})}),k.jsx("div",{className:"ku2m03ct",children:k.jsx(c("CometPressable.react"),{onPress:E,children:k.jsx(c("TetraText.react"),{color:"secondary",type:"bodyLink4",children:h._(/*FBT_CALL*/"Cancelar"/*FBT_CALL*/)})})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollChaining.react",["CometLoadingAnimation.react","CometPlaceholder.react","CometWatchAndScrollChaining.react","CometWatchAndScrollVideoContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b=a.hidden,d=a.routeTracePolicy;a=a.subOrigin;var e=i(c("CometWatchAndScrollVideoContext"));e=e==null?void 0:e.chainingSeedVideoID;return e==null?null:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx("div",{className:"taijpn5t j83agx80 c6a7hszh bp9cbjyn kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:h.jsx("div",{className:"thwo4zme l9j0dhe7 tv7at329",children:h.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:h.jsx(c("CometWatchAndScrollChaining.react"),{hidden:b,routeTracePolicy:d,seedVideoID:e,subOrigin:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollSoundContext.react",["CometWatchAndScrollSoundContext","VideoPlayerHooks","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";d("react");b=d("react");var h=b.useContext,i=b.useEffect,j=b.useRef;function a(){var a=h(c("CometWatchAndScrollSoundContext")),b=d("VideoPlayerHooks").useController(),e=d("VideoPlayerHooks").useMuted(),f=d("VideoPlayerHooks").useVolume(),g=d("VideoPlayerHooks").usePaused(),k=c("usePrevious")(e),l=c("usePrevious")(f),m=j(e),n=j(f);i(function(){k!==null&&k!==e&&a.setMuted(e),l!==null&&l!==f&&a.setVolume(f)},[e,k,l,a,f]);i(function(){g||(a.muted==null&&a.setMuted(m.current),a.volume==null&&a.setVolume(n.current))},[g,a]);i(function(){if(!g){var c=a.muted,d=a.volume;c!=null&&b.setMuted(c,"user_initiated");d!=null&&b.setVolume(d)}},[b,g,a]);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollWarningScreen.react",["CometRelay","CometWarningScreenContext","VideoPlayerHooks","VideoPlayerWithWatchAndScrollWarningScreen_video.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useEffect;function a(a){var c,e;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithWatchAndScrollWarningScreen_video.graphql"),a);var f=d("VideoPlayerHooks").useController(),g=d("VideoPlayerHooks").usePaused(),k=d("VideoPlayerHooks").useEnded(),l=d("CometWarningScreenContext").useSetOverlayExists(),m=d("CometWarningScreenContext").useShowOverlay(),n=d("CometWarningScreenContext").useIsOverlayShown();c=a==null?void 0:(c=a.cix_screen)==null?void 0:c.view_model;var o=c!=null;e=(e=a==null?void 0:(e=a.preferred_thumbnail)==null?void 0:(e=e.image)==null?void 0:e.uri)!=null?e:"#";var p=a==null?void 0:a.id;a=a==null?void 0:(a=a.container_story)==null?void 0:a.id;j(function(){o&&(l(!0),m(!0))},[f,l,m,o]);j(function(){!g&&n&&f.pause("warning_screen_cover")},[f,n,g]);return o&&!k?i.jsx(d("CometRelay").MatchContainer,{match:c,props:{alwaysShowDetails:!0,contentID:p,data:c,mediaUri:e,storyID:a,surface:"video_channel"}}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometCastingMiniplayerRoot.react",["CastingContext","CometPlaceholder.react","JSResourceForInteraction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j=c("lazyLoadComponent")(c("JSResourceForInteraction")("CometCastingMiniplayer.react").__setRef("CometCastingMiniplayerRoot.react"));function a(){var a=i(d("CastingContext").CastingStateContext);return a==null?null:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(j,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsMenu.react",["fbt","$InternalEnum","CometKeys","VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react","VideoPlayerCaptionsMenuCaptionsDisplayPane.react","VideoPlayerCaptionsMenuMainPane.react","VideoPlayerHooks","react","useLayerKeyCommands"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState,o=b("$InternalEnum")({CAPTIONS_BG_COLOR:"captionsBackgroundColor",CAPTIONS_BG_OPACITY:"captionsBackgroundOpacity",CAPTIONS_DISPLAY_MAIN:"captionsDisplayMain",CAPTIONS_TEXT_COLOR:"captionsTextColor",CAPTIONS_TEXT_SIZE:"captionsTextSize",CAPTIONS_MAIN:"captionsMain"});function a(a){var b=a.availableCaptionsLocales,e=a.captionsListExpanded,f=a.children;f=f===void 0?null:f;var g=a.onClose,p=a.selectedCaptionsLocale,q=a.setCaptionsListExpanded;a=a.setSelectedCaptionsLocale;var r=d("VideoPlayerHooks").useCaptionDisplayStyle(),s=n(o.CAPTIONS_MAIN),t=s[0];s=s[1];var u=m(null),v=m(null),w=j(function(a){u.current&&v.current&&a.target instanceof HTMLElement&&document.contains(a.target)&&!u.current.contains(a.target)&&v.current.contains(a.target)&&g()},[g]);k(function(){document.addEventListener("click",w);return function(){document.removeEventListener("click",w)}},[w]);var x=l(function(){return[{command:{key:c("CometKeys").ESCAPE},description:h._(/*FBT_CALL*/"Menu de legendas ocultas"/*FBT_CALL*/),handler:function(){g()}}]},[g]);c("useLayerKeyCommands")(x);x=i.jsx(d("VideoPlayerCaptionsMenuMainPane.react").VideoPlayerCaptionsMenuMainPane,{availableCaptionsLocales:b,captionsListExpanded:e,selectedCaptionsLocale:p,setCaptionsListExpanded:q,setPane:s,setSelectedCaptionsLocale:a,children:f});switch(t){case o.CAPTIONS_MAIN:break;case o.CAPTIONS_DISPLAY_MAIN:x=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").VideoPlayerCaptionsMenuCaptionsDisplayMainPane,{currentCaptionsDisplay:r,setPane:s});break;case o.CAPTIONS_BG_COLOR:x=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsBackgroundColor",currentCaptionsDisplay:r,setPane:s});break;case o.CAPTIONS_BG_OPACITY:x=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsBackgroundOpacity",currentCaptionsDisplay:r,setPane:s});break;case o.CAPTIONS_TEXT_SIZE:x=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsTextSize",currentCaptionsDisplay:r,setPane:s});break;case o.CAPTIONS_TEXT_COLOR:x=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsTextColor",currentCaptionsDisplay:r,setPane:s});break}return i.jsxs(i.Fragment,{children:[i.jsx("div",{ref:u,children:x}),i.jsx("div",{className:"enjifjd9 k4urcfbm kr520xx4 j9ispegn poy2od1o datstx6m",ref:v})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuPaneType=o;g.VideoPlayerCaptionsMenu=a}),98); __d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react",["fbt","ix","CometImage.react","CometPressable.react","FocusRegion.react","VideoPlayerCaptionsMenu.react","focusScopeQueries","qex","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={captionsDisplayLabel:{fontSize:"e9vueds3",fontWeight:"lrazzd5p",marginStart:"ozuftl9m"},chevronLeft:{alignItems:"bp9cbjyn",display:"pq6dq46d"},chevronRight:{display:"a8c37x1j"},icon:{display:"q9uorilb"},menuHeading:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"j83agx80",fontWeight:"lrazzd5p",":hover":{textDecoration:"p8dawk7l"}},menuOptionLabel:{cursor:"nhd2j8a9",display:"q9uorilb",fontSize:"e9vueds3",fontWeight:"lrazzd5p",width:"ohfs48kq"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m",width:"fwkrndq2"},menuOptionValue:{fontSize:"e9vueds3",fontWeight:"b1v8xokw"},menuOptions:{marginTop:"ku2m03ct"},pressableOption:{width:"k4urcfbm"}},m={captionsBackgroundColor:{Black:"BLACK",Blue:"BLUE",Cyan:"CYAN",Green:"GREEN",Magenta:"MAGENTA",Red:"RED",White:"WHITE",Yellow:"YELLOW"},captionsBackgroundOpacity:{"0%":"TRANSPARENT","25%":"LIGHT","45%":"DEFAULT","75%":"DARK","100%":"OPAQUE"},captionsTextColor:{Black:"BLACK",Blue:"BLUE",Cyan:"CYAN",Green:"GREEN",Magenta:"MAGENTA",Red:"RED",White:"WHITE",Yellow:"YELLOW"},captionsTextSize:{"(50%)":"SMALLEST","(75%)":"SMALL","(100%)":"DEFAULT","(125%)":"MEDIUM","(150%)":"BIG","(175%)":"BIGGER","(200%)":"BIGGEST"}},n={"Background Color":{ftbLabel:h._(/*FBT_CALL*/"Cor do plano de fundo"/*FBT_CALL*/),name:"captionsBackgroundColor"},"Background Opacity":{ftbLabel:h._(/*FBT_CALL*/"Opacidade do plano de fundo"/*FBT_CALL*/),name:"captionsBackgroundOpacity"},"Text Color":{ftbLabel:h._(/*FBT_CALL*/"Cor do texto"/*FBT_CALL*/),name:"captionsTextColor"},"Text Size":{ftbLabel:h._(/*FBT_CALL*/"Tamanho do texto"/*FBT_CALL*/),name:"captionsTextSize"}},o={Black:h._(/*FBT_CALL*/"Preto"/*FBT_CALL*/),Blue:h._(/*FBT_CALL*/"Azul"/*FBT_CALL*/),Cyan:h._(/*FBT_CALL*/"Ciano"/*FBT_CALL*/),Green:h._(/*FBT_CALL*/"Verde"/*FBT_CALL*/),Magenta:h._(/*FBT_CALL*/"Magenta"/*FBT_CALL*/),Red:h._(/*FBT_CALL*/"Vermelho"/*FBT_CALL*/),White:h._(/*FBT_CALL*/"Branco"/*FBT_CALL*/),Yellow:h._(/*FBT_CALL*/"Amarelo"/*FBT_CALL*/)};function p(a){var b=null,c=null;switch(a){case"(50%)":b=h._(/*FBT_CALL*/"Pequeno"/*FBT_CALL*/);c="X-";break;case"(75%)":b=h._(/*FBT_CALL*/"Pequeno"/*FBT_CALL*/);break;case"(125%)":b=h._(/*FBT_CALL*/"Grande"/*FBT_CALL*/);break;case"(150%)":b=h._(/*FBT_CALL*/"Grande"/*FBT_CALL*/);c="X-";break;case"(175%)":b=h._(/*FBT_CALL*/"Grande"/*FBT_CALL*/);c="XX-";break;case"(200%)":b=h._(/*FBT_CALL*/"Grande"/*FBT_CALL*/);c="XXX-";break;case"(100%)":b=h._(/*FBT_CALL*/"M\u00e9dio"/*FBT_CALL*/)}return j.jsxs("span",{children:[c!=null&&c,b,a]})}p.displayName=p.name+" [from "+f.id+"]";var q={captionsBackgroundColor:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_BG_COLOR,captionsBackgroundOpacity:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_BG_OPACITY,captionsTextColor:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_TEXT_COLOR,captionsTextSize:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_TEXT_SIZE};function r(a){var b=a.option,d=a.optionVal,e=a.setPane,f=n[b].name;a=k(function(){e(q[f])},[f,e]);var g=null;switch(f){case"captionsTextColor":case"captionsBackgroundColor":g=o[d];break;default:g=d;break}return j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.menuOptionRow,children:[j.jsxs("div",{className:c("stylex")(l.menuOptionLabel),children:[n[b].ftbLabel,j.jsx("div",{className:c("stylex")(l.menuOptionValue),children:f==="captionsTextSize"?p(d):g})]}),j.jsx("div",{className:c("stylex")(l.icon),children:j.jsx("div",{className:c("stylex")(l.chevronRight),children:j.jsx("div",{style:{display:"table-cell"},children:j.jsx(c("CometImage.react"),{src:i("480588")})})})})]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b,e=a.currentCaptionsDisplay,f=a.setPane;a=k(function(){f(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_MAIN)},[f]);var g=(b=c("qex")._("914"))!=null?b:"";return j.jsxs(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:[j.jsx("div",{className:c("stylex")(l.menuHeading),children:j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.pressableOption,children:[j.jsx("span",{className:c("stylex")(l.chevronLeft),children:j.jsx(c("CometImage.react"),{src:i("480580")})}),j.jsx("span",{className:c("stylex")(l.captionsDisplayLabel),children:h._(/*FBT_CALL*/"Op\u00e7\u00f5es de legenda"/*FBT_CALL*/)})]})}),j.jsx("div",{className:c("stylex")(l.menuOptions),children:Object.keys(n).map(function(a){var b=n[a].name,c=m[b];c=Object.fromEntries(Object.entries(c).map(function(a){var b=a[0];a=a[1];return[a,b]}));c=e!=null?c[e[b]]:"";return b==="captionsTextSize"&&g==="fixed"?null:j.jsx(r,{option:a,optionVal:c,setPane:f},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g.captionsDisplayOptionsMap=m;g.colorsFBTMap=o;g.getFontSizeDivWithFBTLabel=p;g.VideoPlayerCaptionsMenuCaptionsDisplayMainPane=a}),98); __d("VideoPlayerCaptionsSettingMutation",["CometRelay","VideoPlayerCaptionsSettingMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("VideoPlayerCaptionsSettingMutation.graphql");function a(a,b,c){return d("CometRelay").commitMutation(a,{mutation:i,onCompleted:c&&c.onCompleted,onError:c&&c.onError,optimisticResponse:{video_captions_setting:{success:!0}},variables:{input:{captions_background_color:b.captions_background_color,captions_background_opacity:b.captions_background_opacity,captions_text_color:b.captions_text_color,captions_text_size:b.captions_text_size,client_mutation_id:"www_captions_settings"}}})}g.commit=a}),98); __d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react",["fbt","ix","CometImage.react","CometPressable.react","CometRelay","FocusRegion.react","TetraIcon.react","VideoPlayerCaptionsMenu.react","VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react","VideoPlayerCaptionsSettingMutation","VideoPlayerHooks","fbicon","focusScopeQueries","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={chevronLeft:{alignItems:"bp9cbjyn",display:"pq6dq46d",width:"la0tivve"},icon:{display:"q9uorilb",width:"la0tivve"},menuHeading:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"j83agx80",fontSize:"e9vueds3",fontWeight:"lrazzd5p",":hover":{textDecoration:"p8dawk7l"}},menuLabel:{cursor:"nhd2j8a9",display:"q9uorilb"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m"},menuOptions:{fontSize:"e9vueds3",fontWeight:"b1v8xokw",marginTop:"ku2m03ct"},pressableOption:{width:"k4urcfbm"}},m={captionsBackgroundColor:h._(/*FBT_CALL*/"Cor do plano de fundo"/*FBT_CALL*/),captionsBackgroundOpacity:h._(/*FBT_CALL*/"Opacidade do plano de fundo"/*FBT_CALL*/),captionsTextColor:h._(/*FBT_CALL*/"Cor do texto"/*FBT_CALL*/),captionsTextSize:h._(/*FBT_CALL*/"Tamanho do texto"/*FBT_CALL*/)},n=function(a){return{captions_background_color:a.captionsBackgroundColor,captions_background_opacity:a.captionsBackgroundOpacity,captions_text_color:a.captionsTextColor,captions_text_size:a.captionsTextSize}};function o(a){var b=a.captionsDisplayOption,e=a.currentCaptionsDisplay,f=a.option,g=a.selected,h=a.setPane,m=d("VideoPlayerHooks").useController();a=g;var o=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").captionsDisplayOptionsMap[b];g=null;switch(b){case"captionsTextColor":case"captionsBackgroundColor":g=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").colorsFBTMap[f];break;default:g=f}var p=k(function(){a=!0;if(e!=null){e[b]=o[f];m.setCaptionsDisplayStyle(e);var c=n(e);d("VideoPlayerCaptionsSettingMutation").commit(q,c)}h(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN)},[e,o,b,m,f]),q=d("CometRelay").useRelayEnvironment();return j.jsxs(c("CometPressable.react"),{onPress:p,xstyle:l.menuOptionRow,children:[j.jsx("div",{className:c("stylex")(l.icon),children:a&&j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})}),b==="captionsTextSize"?d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").getFontSizeDivWithFBTLabel(f):j.jsx("div",{className:c("stylex")(l.menuLabel),children:g})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.captionsDisplayOption,e=a.currentCaptionsDisplay,f=a.setPane;a=m[b];var g=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").captionsDisplayOptionsMap[b],h=e!=null?e[b]:null,n=k(function(){f(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN)},[f]);return j.jsxs(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:[j.jsx("div",{className:c("stylex")(l.menuHeading),children:j.jsxs(c("CometPressable.react"),{onPress:n,xstyle:l.pressableOption,children:[j.jsx("span",{className:c("stylex")(l.chevronLeft),children:j.jsx(c("CometImage.react"),{src:i("480580")})}),a]})}),j.jsx("div",{className:c("stylex")(l.menuOptions),children:Object.keys(g).map(function(a){var c=h===g[a];return j.jsx(o,{captionsDisplayOption:b,currentCaptionsDisplay:e,option:a,selected:c,setPane:f},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuCaptionsDisplayPane=a}),98); __d("VideoPlayerCaptionsMenuMainPane.react",["fbt","ix","CometPressable.react","CometScrollableArea.react","FocusRegion.react","TetraIcon.react","VideoPlayerCaptionsMenuTopBar.react","VideoPlayerHooks","fbicon","focusScopeQueries","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useEffect,l={icon:{display:"q9uorilb",width:"odw8uiq3"},menuLabel:{cursor:"nhd2j8a9",display:"q9uorilb",marginStart:"gu00c43d",width:"e6erh6tl"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",fontSize:"e9vueds3",fontWeight:"b1v8xokw",minWidth:"jrlfinob",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m",":hover":{backgroundColor:"hb574vwe"}},menuOptions:{marginTop:"ku2m03ct",maxHeight:"jl1kqi8g"},moreOptionsLabel:{cursor:"nhd2j8a9",display:"q9uorilb",marginStart:"fp4oknrt"}},m=5;function n(a){var b=a.captions,e=a.captionsVisible,f=a.controller,g=a.focused,k=a.setSelectedCaptionsLocale;a=b.localized_creation_method!=null;return j.jsxs(c("CometPressable.react"),{onPress:function(){b.locale!=null&&k(b.locale),e||f.setCaptionsVisible(!0),b.captions_url!=null&&f.setCaptionsUrl(b.captions_url)},xstyle:l.menuOptionRow,children:[j.jsx("div",{className:c("stylex")(l.icon),children:g&&j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})}),j.jsxs("div",{className:c("stylex")(l.menuLabel),children:[b.localized_language,(g=b.localized_country)!=null?g:null,!a&&h._(/*FBT_CALL*/"(Fornecido pelo autor)"/*FBT_CALL*/)]})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.availableCaptionsLocales,e=a.captionsListExpanded,f=a.children,g=a.selectedCaptionsLocale,o=a.setCaptionsListExpanded,p=a.setPane,q=a.setSelectedCaptionsLocale,r=d("VideoPlayerHooks").useController(),s=d("VideoPlayerHooks").useCaptionsVisible();a=b!=null?b.length:0;k(function(){s||q("")},[s,q]);return b==null?null:j.jsxs(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:[j.jsx(c("VideoPlayerCaptionsMenuTopBar.react"),{availableCaptionsLocales:b,setPane:p}),f,j.jsx(c("CometScrollableArea.react"),{hideScrollbar:!0,children:j.jsxs("div",{className:c("stylex")(l.menuOptions),children:[j.jsxs(c("CometPressable.react"),{onPress:function(){q(""),r.setCaptionsVisible(!1)},xstyle:l.menuOptionRow,children:[j.jsx("div",{className:c("stylex")(l.icon),children:g===""&&j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})}),j.jsx("div",{className:c("stylex")(l.menuLabel),children:h._(/*FBT_CALL*/"Desativado"/*FBT_CALL*/)})]}),b.slice(0,4).map(function(a){var b=a.locale===g;return a.localized_language!=null?j.jsx(n,{captions:a,captionsVisible:s,controller:r,focused:b,setSelectedCaptionsLocale:q},a.locale):null}),a>=m&&!e&&j.jsx(c("CometPressable.react"),{onPress:function(){o(!0)},xstyle:l.menuOptionRow,children:j.jsx("div",{className:c("stylex")(l.moreOptionsLabel),children:h._(/*FBT_CALL*/"Ver mais"/*FBT_CALL*/)})}),e&&b.slice(4).map(function(a){var b=a.locale===g;return a.localized_language!=null?j.jsx(n,{captions:a,captionsVisible:s,controller:r,focused:b,setSelectedCaptionsLocale:q},a.locale):null}),e&&j.jsx(c("CometPressable.react"),{onPress:function(){o(!1)},xstyle:l.menuOptionRow,children:j.jsx("div",{className:c("stylex")(l.moreOptionsLabel),children:h._(/*FBT_CALL*/"Ver menos"/*FBT_CALL*/)})})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuMainPane=a}),98); __d("VideoPlayerCaptionsMenuTopBar.react",["fbt","ix","CometImage.react","CometPressable.react","VideoPlayerCaptionsMenu.react","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={"default":{color:"ljqsnud1",display:"j83agx80",minWidth:"b38knevg"},label:{fontSize:"e9vueds3",fontWeight:"lrazzd5p"},labelAutoGenerated:{fontSize:"e9vueds3",fontStyle:"fmqa7x8m"},option:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"pq6dq46d",flexGrow:"idf2khru",justifyContent:"bkfpd7mw",marginStart:"scy8460b"},optionsLabel:{display:"pq6dq46d",fontWeight:"b1v8xokw",marginStart:"ggphbty4"},pressableOption:{width:"k4urcfbm"},settingIconRight:{display:"pq6dq46d"}};function a(a){var b=a.availableCaptionsLocales,e=a.setPane;a=k(function(){e(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN)},[e]);b=b==null?void 0:b.some(function(a){return a.localized_creation_method!=null});return j.jsxs("div",{children:[j.jsx("div",{className:c("stylex")(l["default"]),children:j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.pressableOption,children:[j.jsx("div",{className:c("stylex")(l.label),children:h._(/*FBT_CALL*/"Legendas"/*FBT_CALL*/)}),j.jsxs("div",{className:c("stylex")(l.option),children:[j.jsx("span",{className:c("stylex")(l.settingIconRight),children:j.jsx(c("CometImage.react"),{src:i("492300")})}),j.jsx("div",{className:c("stylex")(l.optionsLabel),children:h._(/*FBT_CALL*/"Op\u00e7\u00f5es"/*FBT_CALL*/)})]})]})}),b!=null&&b&&j.jsx("div",{className:c("stylex")(l.labelAutoGenerated),children:h._(/*FBT_CALL*/"Geradas automaticamente"/*FBT_CALL*/)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsControl.react",["fbt","ix","CometRelay","VideoPlayerCaptionsControl_video.graphql","VideoPlayerCaptionsMenu.react","VideoPlayerControlIcon.react","VideoPlayerDefaultControlsProperties","VideoPlayerUserInteractionCounter","fbicon","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useEffect,m=e.useState;e=k.forwardRef(a);function a(a){var e=a.alignMenuToIcon;e=e===void 0?!1:e;var f=a.captionsVisible,g=a.children;g=g===void 0?null:g;var n=a.compactMenu,o=a.icon,p=a.menuOpened,q=a.onMenuOpen,r=a.onUserInteraction,s=a.setMenuOpened;a=a.video;var t=h._(/*FBT_CALL*/"Legendas"/*FBT_CALL*/);d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_captions_menu",p===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU,r);r=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerCaptionsControl_video.graphql"),a);var u=r==null?void 0:r.video_available_captions_locales,v=r==null?void 0:r.captions_url;a=m("");r=a[0];var w=a[1];l(function(){u==null?void 0:u.map(function(a){a.captions_url===v&&a.locale!=null&&w(a.locale)})},[u,v]);a=[];if(u!=null)for(var x=u,y=Array.isArray(x),z=0,x=y?x:x[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var A;if(y){if(z>=x.length)break;A=x[z++]}else{z=x.next();if(z.done)break;A=z.value}A=A;var B={};B.captions_url=A.captions_url;B.localized_country=A.localized_country;B.localized_creation_method=A.localized_creation_method;B.localized_language=A.localized_language;B.locale=A.locale;a.push(B)}a.sort(function(a,b){return((a=a.localized_language)!=null?a:"")>((a=b.localized_language)!=null?a:"")?1:-1});var C=p===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU;A=m(!1);B=A[0];z=A[1];return k.jsxs("div",{className:"ggphbty4 w0hvl6rk fv0vnmcu qjjbsfad q9uorilb"+(e===!0?" g0qnabr5 l9j0dhe7":""),children:[C&&k.jsx("div",{className:c("stylex").dedupe({"background-color-1":"i6mnz4h1","border-top-start-radius-1":"jk6sbkaj","border-top-end-radius-1":"kdgqqoy6","border-bottom-end-radius-1":"ihh4hy1g","border-bottom-start-radius-1":"qttc61fc","bottom-1":"c55xq0r4","color-1":"ljqsnud1","margin-left-1":"nd86bwwq","max-height-1":"jl64ab26","max-width-1":"q9x9keny","padding-top-1":"discj3wi","padding-end-1":"hv4rvrfc","padding-bottom-1":"ihqw7lf3","padding-start-1":"dati1w0a","position-1":"pmk7jnqg","right-1":"a5343qcf","width-1":"bc3a0qav"},n===!0?{"right-1":"cq2v5s49"}:null,e===!0?{"right-1":"k7ouz845"}:null),children:k.jsx(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenu,{availableCaptionsLocales:a,captionsListExpanded:B,onClose:function(){s!=null&&s(null)},selectedCaptionsLocale:r,setCaptionsListExpanded:z,setSelectedCaptionsLocale:w,children:g})}),k.jsx(c("VideoPlayerControlIcon.react"),{icon:o==null?f?d("fbicon")._(i("662652"),20):d("fbicon")._(i("662655"),20):o,label:t,onPress:function(){s!=null&&s(C?null:d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU),!C&&q!=null&&q()},tooltip:t})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=e}),98); __d("VideoPlayerCastControlShim.react",["CometPlaceholder.react","VideoPlayerControlsGroups.react","cr:11811","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var e=a.isVisible;a=babelHelpers.objectWithoutPropertiesLoose(a,["isVisible"]);return h.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:e,noPaddingEnd:!0,noPaddingStart:!0,children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(b("cr:11811"),babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerJoinOnPortalControl.react",["cr:1795495","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){a=a.isVisible;return!a||b("cr:1795495")==null?null:h.jsx(b("cr:1795495"),{})};c=a;g["default"]=c}),98); __d("VideoPlayerQuietModeControl.react",["fbt","ix","CometTahoeSidePaneContext","VideoPlayerControlIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext;function a(){var a=k(c("CometTahoeSidePaneContext")),b=a.rightRailHidden,e=a.setRightRailHidden;a=b?h._(/*FBT_CALL*/"Mostrar coment\u00e1rios e rea\u00e7\u00f5es"/*FBT_CALL*/):h._(/*FBT_CALL*/"Ocultar coment\u00e1rios e rea\u00e7\u00f5es"/*FBT_CALL*/);return j.jsx("div",{className:"ggphbty4 w0hvl6rk fv0vnmcu qjjbsfad q9uorilb",children:j.jsx(c("VideoPlayerControlIcon.react"),{icon:b?d("fbicon")._(i("942218"),20):d("fbicon")._(i("942221"),20),label:a,onPress:function(){e(!b)},tooltip:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerWatchAndScrollControlNUX",["fbt","CometRelay","CometWatchAndScrollTriggerContext","react","recoverableViolation","requireDeferred","useCometCallout","useVideoPlayerWatchAndScrollControlNUXQuery.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i;e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState,n=c("requireDeferred")("CometDismissFBNuxMutation").__setRef("useVideoPlayerWatchAndScrollControlNUX"),o=c("requireDeferred")("CometLogImpressionFBNuxMutation").__setRef("useVideoPlayerWatchAndScrollControlNUX"),p={nux:{maxWidth:"nqmqzb3c"}},q=9347,r=i!==void 0?i:i=b("useVideoPlayerWatchAndScrollControlNUXQuery.graphql");function a(a){var b=k(c("CometWatchAndScrollTriggerContext")),e=b.setIsTriggerDisabled;b=m(null);var f=b[0],g=b[1],i=d("CometRelay").useRelayEnvironment(),s=j(function(){e!=null&&e(!0),g(!1),n.onReady(function(a){a.commit(i,q)})},[i,e]);l(function(){if(a&&f===null){var b=d("CometRelay").fetchQuery(i,r,{fetchPolicy:"store-or-network"}).subscribe({next:function(b){b=(b==null?void 0:(b=b.nux)==null?void 0:b.should_show)||!1;g(b);b&&a&&o.onReady(function(a){a.commit(i,q,function(){},function(){c("recoverableViolation")("logimpression fb nux mutation failed for video player watch and scroll control.","watch_www_bug_rotation")})})}});return function(){b.unsubscribe()}}},[i,a,f]);b={align:"end",arrowStyle:"inset",disableAutoFlip:!0,hasCloseButton:!0,label:h._(/*FBT_CALL*/"Continue a assistir enquanto navega no Facebook."/*FBT_CALL*/),onClose:function(){s()},onHide:function(){g(!1)},position:"below",type:"accent",xstyle:p.nux};b=c("useCometCallout")(b,f===!0&&a||!1);return{handleDismissNUX:s,nuxRef:b,shouldShowNUX:f}}g["default"]=a}),98); __d("VideoPlayerWatchAndScrollControl.react",["fbt","ix","CastingStateHooks","CometRelay","CometRouteRenderType","CometWatchAndScrollControlNUXContext","CometWatchAndScrollTriggerContext","JSResourceForInteraction","VideoPlayerControlIcon.react","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerWatchAndScrollControl_video.graphql","VideoPlayerWithWatchAndScrollTrigger.react","emptyFunction","fbicon","gkx","react","requireDeferred","useCometLazyDialog","useCometRouterDispatcher","useCometRouterState","useIsVideoHomePlayerOriginFromTracePolicy","usePlayerOriginRouteTracePolicy","useVideoPlayerWatchAndScrollControlNUX","useWatchAndScrollTrigger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useState,p=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerWatchAndScrollControl.react"),q=c("JSResourceForInteraction")("CometCastingStopWatchAndScrollDialog.react").__setRef("VideoPlayerWatchAndScrollControl.react"),r=6e4;function a(a){var e=a.subOrigin;a=a.video;var f=m(c("CometWatchAndScrollTriggerContext")),g=f.isControlShown,s=f.setIsControlShown;f=d("CometRouteRenderType").useIsPushView();var t=d("VideoPlayerHooks").useIsFullscreen(),u=c("useCometRouterDispatcher")(),v=c("useCometRouterState")(),w=(v=v==null?void 0:v.main.route.tabKey)!=null?v:"undefined";v=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerWatchAndScrollControl_video.graphql"),a);var x=v==null?void 0:v.id;a=(a=v==null?void 0:v.playable_duration_in_ms)!=null?a:0;n(function(){s!=null&&s(!0)},[s]);var y=c("usePlayerOriginRouteTracePolicy")(),z=c("useIsVideoHomePlayerOriginFromTracePolicy")(y);v=(v==null?void 0:(v=v.owner)==null?void 0:v.has_professional_features_for_watch)===!0&&a>=r&&g&&!z;var A=d("VideoPlayerHooks").usePlaying(),B=d("VideoPlayerHooks").useController();a=B.getPlayheadPosition();var C=a>=10;g=o(!1);z=g[0];var D=g[1];a=c("gkx")("3017");g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsStateValue();g=g==="STARTING_INDICATOR"||g==="PLAY_NI_VIDEO"||g==="START_AD"||g==="PLAY_LONGER_AD";n(function(){A&&C&&D(!0)},[C,A]);var E=d("CastingStateHooks").useIsCastingAnyVideo(),F=c("useCometLazyDialog")(q),G=F[0];F=!g&&z&&v;g=c("useVideoPlayerWatchAndScrollControlNUX")(F);var H=g.handleDismissNUX;z=g.nuxRef;v=g.shouldShowNUX;var I=v===!0&&F;g=m(c("CometWatchAndScrollControlNUXContext"));var J=g.setIsVideoPlayerWatchAndScrollControlNUXVisible;n(function(){J&&J(I)},[I,J]);var K=d("useWatchAndScrollTrigger").useWatchAndScrollTrigger(e,d("VideoPlayerWithWatchAndScrollTrigger.react").WatchAndScrollTriggerType.WNS_CONTROL,x),L=y==="comet.videos.tahoe",M=l(function(){E&&x!=null?G({onClose:c("emptyFunction"),onContinue:K,startingVideoType:"wns"},c("emptyFunction")):K()},[E,K,G,x]);v=l(function(){M(),p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:w})}),I===!0&&H(),u&&u.popPushView&&u.popPushView()},[M,I,u,w,H]);var N=e==="live_producer";F=l(function(){M(),p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:w})}),I===!0&&H(),t&&B.requestSetIsFullscreen(!1),u!=null&&(N||L)&&u.go("/",{})},[M,I,t,w,H,B,u,N,L]);g=f?v:F;y=c("gkx")("1224637")?h._(/*FBT_CALL*/"Continue a assistir enquanto usa o Workplace"/*FBT_CALL*/):h._(/*FBT_CALL*/"Continue a assistir enquanto navega no Facebook."/*FBT_CALL*/);return k.jsx("div",{ref:z,children:k.jsx(c("VideoPlayerControlIcon.react"),{color:"white",icon:a?d("fbicon")._(i("150489"),20):d("fbicon")._(i("1414201"),20),label:y,onPress:g,tooltip:I?null:y})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerLiveVideoControls.react",["CometPlaceholder.react","CometRelay","CometTrackingNodeProvider.react","LiveCostreamerTagSubscription.react","LiveVideoLatencyMenu.react","PlaybackSpeedExperiments","VideoPlayerCaptionsControl.react","VideoPlayerCastControlShim.react","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerHooks","VideoPlayerJoinOnPortalControl.react","VideoPlayerLiveVideoControls_video.graphql","VideoPlayerPlaybackControl.react","VideoPlayerQuietModeControl.react","VideoPlayerSettingsControl.react","VideoPlayerVolumeControl.react","VideoPlayerWatchAndScrollControl.react","cr:1809777","qex","react","useVideoPlayerBigPlayButtonOverlay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useState,l=d("PlaybackSpeedExperiments").isInCometHeadroomTest()?b("cr:1809777"):null,m=h!==void 0?h:h=b("VideoPlayerLiveVideoControls_video.graphql");function n(a){var b,e,f=d("CometRelay").useFragment(m,a.video),g=d("VideoPlayerHooks").useEnded(),h=d("VideoPlayerHooks").useIsFullscreen(),n=j(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext),o=c("useVideoPlayerBigPlayButtonOverlay")();o=o.bigPlayButtonIsVisible;var p=d("VideoPlayerHooks").useCaptionsLoaded(),q=d("VideoPlayerHooks").useCaptionsVisible(),r=k(null),s=r[0];r=r[1];if(g)return null;g=a.disablePlaybackControls;var t=a.expandControl,u=a.isControlsVisible,v=a.isExpandControlVisible;v=v===void 0?!1:v;var w=a.isVolumeControlVisible,x=a.isWatchAndScrollControlVisible;x=x===void 0?!1:x;var y=a.onUserInteraction,z=a.shouldRenderCostreamControl;z=z===void 0?!1:z;var A=a.shouldRenderModeratorControl;A=A===void 0?!1:A;var B=a.subOrigin,C=f==null?void 0:f.id;b=f==null?void 0:(b=f.owner)==null?void 0:b.id;var D=f==null?void 0:f.if_viewer_can_see_costreaming_tools,E=D!=null,F=f==null?void 0:f.if_viewer_can_use_clipping,G=(f==null?void 0:f.is_clipping_enabled)===!0,H=f==null?void 0:f.if_viewer_can_see_community_moderation_tools,I=H!=null,J=f==null?void 0:f.if_viewer_can_use_live_rewind;e=((e=f==null?void 0:f.live_rewind_enabled)!=null?e:!1)&&a.shouldHideRewindControls!==!0;v=v||u||g===!0&&!o;x=x||u||g===!0&&!o;o=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:v,noPaddingEnd:!0,noPaddingStart:!0,children:t});v=a.shouldRenderWatchAndScrollControl===!0&&B!=null&&f!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:x,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:B,video:f})}):null;t=B==="watch_scroll";p=p&&!t?(x=c("qex")._("63"))!=null?x:!1:!1;return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:u,children:[e?i.jsx(d("CometRelay").MatchContainer,{match:J,props:{isControlsVisible:u&&!g,onUserInteraction:y,video:J}}):i.jsxs(i.Fragment,{children:[Boolean(a.shouldRenderPauseControl)?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:u&&!g,children:i.jsx(c("VideoPlayerPlaybackControl.react"),{})}):null,i.jsx(d("VideoPlayerControlsGroups.react").Expanded,{children:i.jsx(i.Fragment,{})})]}),i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:u,children:[b!=null&&C!=null&&i.jsx(c("LiveCostreamerTagSubscription.react"),{pageID:b,videoID:C}),E&&z&&C!=null&&!h&&i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:D,props:{video:D}})}),a.shouldRenderQuietModeControl===!0&&!h&&i.jsx(c("VideoPlayerQuietModeControl.react"),{}),G&&C!=null&&i.jsx(d("CometRelay").MatchContainer,{match:F,props:{video:F,videoID:C}}),I&&A?i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:H,props:{video:H,videoID:C}})}):null,g===!0?null:i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:257,children:i.jsx(d("LiveVideoLatencyMenu.react").LiveVideoLatencyMenuContextProvider,{video:f,children:i.jsx(c("VideoPlayerSettingsControl.react"),{alignMenuToIcon:(n==null?void 0:n.getBottomRowAddOn())!=null,menuOpened:s,onUserInteraction:y,setMenuOpened:r})})}),l!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:u,children:i.jsx(l,{onUserInteraction:y})}):null,p?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:u,children:i.jsx(c("VideoPlayerCaptionsControl.react"),{alignMenuToIcon:(n==null?void 0:n.getBottomRowAddOn())!=null,captionsVisible:q,menuOpened:s,onUserInteraction:y,setMenuOpened:r,video:f})}):null,a.shouldRenderCastControl===!0&&B!=null&&f!=null?i.jsx(c("VideoPlayerCastControlShim.react"),{isVisible:u&&!g,subOrigin:B}):null]}),o,i.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:u}),v,i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:w,noPaddingStart:!0,children:i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:114,children:i.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:y})})})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(n,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerDefaultControlsImplLive.react",["CometRelay","VideoPlayerDefaultControlsImplLive_video.graphql","VideoPlayerLiveVideoControls.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.expandControl,f=a.isControlsVisible,g=a.isVolumeControlVisible,j=a.onUserInteraction,k=a.shouldHideRewindControls,l=a.shouldRenderCostreamControl,m=a.shouldRenderModeratorControl,n=a.shouldRenderPauseControl,o=a.shouldRenderQuietModeControl,p=a.shouldRenderWatchAndScrollControl,q=a.subOrigin,r=a.video;a=a.videoTahoeUrl;r=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplLive_video.graphql"),r);return i.jsx(c("VideoPlayerLiveVideoControls.react"),{expandControl:e,isControlsVisible:f,isVolumeControlVisible:g,onUserInteraction:j,shouldHideRewindControls:k,shouldRenderCostreamControl:l,shouldRenderModeratorControl:m,shouldRenderPauseControl:n,shouldRenderQuietModeControl:o,shouldRenderWatchAndScrollControl:p,subOrigin:q,video:r,videoTahoeUrl:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerDefaultControlsImplNotLive.react",["CometRelay","PlaybackSpeedExperiments","VideoPlayerCaptionsControl.react","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerDefaultControlsImplNotLive_video.graphql","VideoPlayerHooks","VideoPlayerJoinOnPortalControl.react","VideoPlayerPlaybackControl.react","VideoPlayerPlaybackTimer.react","VideoPlayerQuietModeControl.react","VideoPlayerScrubberWithPreview.react","VideoPlayerSettingsControl.react","VideoPlayerVolumeControl.react","VideoPlayerWatchAndScrollControl.react","cr:1790881","cr:1809777","qex","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useState,k=d("PlaybackSpeedExperiments").isInCometHeadroomTest?b("cr:1790881"):null,l=d("PlaybackSpeedExperiments").isInCometHeadroomTest?b("cr:1809777"):null;function a(a){var e=a.expandControl,f=a.isControlsVisible,g=a.isVolumeControlVisible,m=a.onUserInteraction,n=a.shouldRenderQuietModeControl;n=n===void 0?!1:n;var o=a.shouldRenderWatchAndScrollControl,p=a.skipControl,q=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplNotLive_video.graphql"),a);var r=d("VideoPlayerHooks").useIsFullscreen(),s=a==null?void 0:a.id,t=a==null?void 0:a.if_viewer_can_use_clipping;n=n===!0&&!r?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,children:i.jsx(c("VideoPlayerQuietModeControl.react"),{})}):null;r=t!=null&&s!=null&&i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:n!=null,children:i.jsx(d("CometRelay").MatchContainer,{match:t,props:{video:t,videoID:s}})});t=j(null);s=t[0];t=t[1];var u=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:n!=null||r!=null,children:i.jsx(c("VideoPlayerSettingsControl.react"),{menuOpened:s,onUserInteraction:m,setMenuOpened:t})});o=o===!0&&q!=null&&a!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:q,video:a})}):null;e=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,children:[e,i.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:f})]});var v=l!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!0,children:i.jsx(l,{enableNUX:d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlHeadroomTestNUX(),onUserInteraction:m})}):null;g=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:l?!0:g,noPaddingStart:!0,children:i.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:m})});var w=i.jsx(d("VideoPlayerControlsGroups.react").Expanded,{isVisible:f,children:i.jsx(c("VideoPlayerScrubberWithPreview.react"),{onUserInteraction:m,video:a})});p=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:[i.jsx(c("VideoPlayerPlaybackControl.react"),{}),p,i.jsx(c("VideoPlayerPlaybackTimer.react"),{}),k!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(k,{onUserInteraction:m})}):null]});q=q==="watch_scroll";var x=d("VideoPlayerHooks").useCaptionsLoaded();q=x&&!q?(x=c("qex")._("63"))!=null?x:!1:!1;x=d("VideoPlayerHooks").useCaptionsVisible();q=q?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerCaptionsControl.react"),{captionsVisible:x,menuOpened:s,onUserInteraction:m,setMenuOpened:t,video:a})}):null;return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:f,children:[p,w,n,r,u,q,o,e,v,g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSkipControlBase.react",["fbt","ix","VideoPlayerControlIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){return j.jsx(c("VideoPlayerControlIcon.react"),{color:"white",disabled:a.disabled,icon:d("fbicon")._(i("1052613"),20),label:h._(/*FBT_CALL*/"Pular"/*FBT_CALL*/),onHoverIn:a.onHoverIn,onHoverOut:a.onHoverOut,onPress:a.onPress})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSkipControl.react",["CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollSetStoryViewabilityLoggerContext","CometWatchAndScrollUpNextCard.react","CometWatchAndScrollVideoContext","VideoPlayerHooks","VideoPlayerSkipControlBase.react","VideoPlayerSkipControl_video.graphql","react","requireDeferred","useCometTahoeChainingDepth","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useState,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerSkipControl.react");function a(a){var e=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerSkipControl_video.graphql"),a);var f=d("useCometTahoeChainingDepth").useChainingDepthContext(),g=f.chainingDepthDispatch,n=k(c("CometWatchAndScrollVideoContext"));f=d("VideoPlayerHooks").useEnded();var o=k(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),p=k(c("CometSetWatchAndScrollVideoContext"));a=(a=a.video_channel)==null?void 0:(a=a.video_channel_feed)==null?void 0:(a=a.edges)==null?void 0:a[0];var q=a==null?void 0:a.cursor,r=a==null?void 0:a.node,s=r==null?void 0:r.client_view_config;a=r==null?void 0:(a=r.attachments)==null?void 0:(a=a[0])==null?void 0:a.media;var t=a!=null&&a.__typename==="Video"?a==null?void 0:a.id:null,u=n==null?void 0:n.chainingSeedVideoID,v=c("usePlayerOriginRouteTracePolicy")(),w=l(!1),x=w[0],y=w[1];w=j(function(){y(!0),m.onReady(function(a){a.log({event:"watch_and_scroll_skip_overlay_impression"})})},[]);var z=j(function(){y(!1)},[]),A=j(function(){var a;m.onReady(function(a){a.log({click_point:"control_skip",click_target:"watch_and_scroll",event:"click"})});p({chainingCursor:q,chainingSeedVideoID:u,routeTracePolicy:(a=n==null?void 0:n.routeTracePolicy)!=null?a:v,sessionStartTime:n==null?void 0:n.sessionStartTime,sessionTrigger:n==null?void 0:n.sessionTrigger,subOrigin:e,videoID:t});a={can_delay_log_impression:s==null?void 0:s.can_delay_log_impression,use_banzai_signal_imp:s==null?void 0:s.use_banzai_signal_imp,use_banzai_vital_imp:s==null?void 0:s.use_banzai_vital_imp};o({clientViewConfig:a,encryptedTracking:r==null?void 0:r.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(r==null?void 0:r.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(r==null?void 0:r.encrypted_click_tracking)||"",encrypted_tracking:(r==null?void 0:r.encrypted_tracking)||""},videoID:t,viewabilityConfig:r==null?void 0:r.viewability_config});g&&g({type:"INCREMENT"})},[t,g,s==null?void 0:s.can_delay_log_impression,s==null?void 0:s.use_banzai_signal_imp,s==null?void 0:s.use_banzai_vital_imp,q,v,o,p,r==null?void 0:r.click_tracking_linkshim_cb,r==null?void 0:r.encrypted_click_tracking,r==null?void 0:r.encrypted_tracking,r==null?void 0:r.viewability_config,e,u,n==null?void 0:n.routeTracePolicy,n==null?void 0:n.sessionStartTime]);if(a==null||a.__typename!=="Video"){m.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});return i.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0})}return i.jsxs(i.Fragment,{children:[i.jsx(c("VideoPlayerSkipControlBase.react"),{onHoverIn:w,onHoverOut:z,onPress:A}),x&&!f&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"mindcfhs t35zue3m oz0m54rj pmk7jnqg kmzbrmfl mio9le5o b6jg2yqc hp05c5td bn9qtmzc s8bnoagg cwj9ozl2"}),i.jsx(c("CometWatchAndScrollUpNextCard.react"),{hidden:!1,video:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerWithWatchAndScrollChaining.react",["CometPrerenderer.react","VideoPlayerHooks","VideoPlayerWithWatchAndScrollChaining.react","qex","react","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=.8,j=0;function a(a){var b=a.isVideoHomeEligible,e=a.routeTracePolicy,f=a.subOrigin,g=d("VideoPlayerHooks").useIsLive();a=c("useVideoPlayerControllerSubscription")(function(a,b){var d,e;if(g)d=!1,e=!1;else{var f=a.getCurrentState().ended,h=a.getPlayheadPosition();a=a.getCurrentState();var k=a.duration,l=a.loopCount;a=a.loopCurrent;k=Math.min(k*i,k-j);var m=!!c("qex")._("221");d=a>=l&&f;e=m||b!=null&&b.shouldPrerender||h>k}return b!=null&&b.isVisible===d&&b.shouldPrerender===e?b:{isVisible:d,shouldPrerender:e}});if(!b)return{isWatchAndScrollChainingComponentRendered:!1,watchAndScrollChainingComponent:null};b=h.jsx(c("CometPrerenderer.react"),{prerenderingProps:a,children:function(a){return h.jsx("div",{className:a.hidden===!0?"mkhogb32":"",children:h.jsx(c("VideoPlayerWithWatchAndScrollChaining.react"),babelHelpers["extends"]({routeTracePolicy:e,subOrigin:f},a))})}});return{isWatchAndScrollChainingComponentRendered:a.isVisible,watchAndScrollChainingComponent:b}}g["default"]=a}),98); __d("CometWatchAndScrollCloseButton.react",["fbt","ix","CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollCloseButton_video.graphql","CometWatchAndScrollVideoContext","TetraIcon.react","VideoPlayerInstreamAdsStateHooks","fbicon","react","requireDeferred","useCometRouterState","useCometTahoeChainingDepth","useRainbowNativeSurveyDialog","useVideoPlayerDefaultControlsVisibility"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useContext,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollCloseButton.react"),n="906640246872605";function a(a){a=a.video;a=d("CometRelay").useFragment(j!==void 0?j:j=b("CometWatchAndScrollCloseButton_video.graphql"),a);var e=l(c("CometSetWatchAndScrollVideoContext")),f=l(c("CometWatchAndScrollVideoContext")),g=d("useCometTahoeChainingDepth").useChainingDepthContext(),o=g.chainingDepthState;g=c("useVideoPlayerDefaultControlsVisibility")();var p=g.isControlsVisible,q=g.onUserInteraction;a=!!(a==null?void 0:(g=a.owner)==null?void 0:g.has_professional_features_for_watch);g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart();var r=a||g;a=c("useCometRouterState")();var s=(g=a==null?void 0:a.main.route.tabKey)!=null?g:"undefined",t=c("useRainbowNativeSurveyDialog")(n,[]);return k.jsx("i",{className:(r?"":"ntk8zc1u pmk7jnqg agsi23a0")+" tkr6xdv7"+(!r&&!p?" kr9hpln1 b5wmifdl":""),children:k.jsx(c("TetraIcon.react"),{"aria-label":h._(/*FBT_CALL*/"Fechar modo Assistir e rolar"/*FBT_CALL*/),color:r?"primary":"white",icon:d("fbicon")._(i("478233"),20),onPress:function(){var a=f==null?void 0:f.sessionStartTime,b=new Date(),c=(f==null?void 0:f.sessionTrigger)?f==null?void 0:f.sessionTrigger:null;s==="home"&&c==="vod"&&t();e(null);q({name:"exit_watch_and_scroll_video",type:"happened"});r&&m.onReady(function(d){var e=o+1,f=a?(b.getTime()-a.getTime())/1e3:null;d.log({click_point:"close_button",click_target:"watch_and_scroll",event:"click",event_target_info:s});d.log({event:"watch_and_scroll_end_session",event_target_info:c,video_watched_count:e,watch_time_in_watch_and_scroll_s:f})})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollTopBar.react",["ix","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","CometVideoHomeThreeDotContextMenu.react","CometWatchAndScrollCloseButton.react","CometWatchAndScrollTopBar_video.graphql","TetraProfilePhoto.react","TetraTextPairing.react","XCometGamingVanityControllerRouteBuilder","XCometVideoHomePlaylistControllerRouteBuilder","fbicon","react","requireDeferred","stylex","useCometRouterState","useNavigateToTahoePassthroughProps"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollTopBar.react"),m={actorIcon:{marginStart:"h676nmdw",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"},closeButton:{display:"j83agx80",marginTop:"n1l5q3vz",marginEnd:"tvfksri0",marginBottom:"n851cfcs",marginStart:"ozuftl9m",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"},root:{backgroundColor:"cwj9ozl2",borderTopEndRadius:"pw54ja7n",borderTopStartRadius:"ue3kfks5",boxShadow:"h0eh6jkb",display:"j83agx80",end:"n7fi1qx3",height:"ur1d1wif",opacity:"pedkr2u6",position:"pmk7jnqg",start:"j9ispegn",top:"p6s4hbd1",transform:"of6qqfjd",transformOrigin:"ho8ehabp",transitionDuration:"ebpj63zs",transitionProperty:"flx89l3n"},row:{marginTop:"kvgmc6g5",marginEnd:"cxmmr5t8",marginBottom:"oygrvhab",marginStart:"hcukyx3x",width:"k4urcfbm"},threeDot:{display:"j83agx80",marginTop:"kvgmc6g5",marginEnd:"cxmmr5t8",marginBottom:"oygrvhab",marginStart:"hcukyx3x",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"}};function a(a){var e=a.isGamingVideo,f=a.permalinkUrl,g=a.routeTracePolicy,q=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollTopBar_video.graphql"),a);var r=c("useNavigateToTahoePassthroughProps")(),s=k(!1);s[0];var t=s[1];s=function(a){t(a)};var u=a==null?void 0:a.owner;if(a==null||u==null)return null;r=babelHelpers["extends"]({},r,{playerSubOrigin:q,portalingRouteTracePolicy:g,portalingSubOrigin:q});var v="#",w=u.uri_token;w!=null?v=c("XCometVideoHomePlaylistControllerRouteBuilder").buildURL({idorvanity:w}):u.url!=null&&(v=u.url);if(e){w=(w=(w=u.page_vanity_url)!=null?w:u.vanity)!=null?w:u.uri_token;if(w!=null){var x;v=c("XCometGamingVanityControllerRouteBuilder").buildURL({injected_hero_video_id:(x=a.id)!=null?x:void 0,vanity:w})}}return j.jsx("div",{className:c("stylex")(m.root),children:j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",xstyle:m.row,children:[j.jsx(c("CometRowItem.react"),{xstyle:m.actorIcon,children:j.jsx(n,{actorID:u.id,actorName:u.name,actorURL:v,iconURI:(x=u.profile_picture)==null?void 0:x.uri,passthroughProps:e?r:void 0})}),j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("TetraTextPairing.react"),{headline:j.jsx(p,{isGamingVideo:e,passthroughProps:r,permalinkUrl:f,routeTracePolicy:g,subOrigin:q,title:a.title_with_fallback,videoUrl:a.url}),headlineLineLimit:1,level:4,meta:j.jsx(o,{actorName:u.name,actorURL:v,passthroughProps:e?r:void 0}),metaLineLimit:1,metaLocation:"above"})}),j.jsx(c("CometRowItem.react"),{xstyle:m.threeDot,children:j.jsx(c("CometVideoHomeThreeDotContextMenu.react"),{icon:d("fbicon")._(h("555291"),20),identifierToken:(w=a.creation_story)==null?void 0:w.identifier_token,onMenuVisibilityChange:s,onPress:function(){l.onReady(function(a){a.log({click_point:"three_dot_menu",click_target:"watch_and_scroll",event:"click"})})},position:"above",storyDebugInfo:(x=a.creation_story)==null?void 0:x.debug_info,tracking:(f=a.creation_story)==null?void 0:f.tracking,videoID:a.id,videoMenuLocation:"WATCH_AND_SCROLL"})}),j.jsx(c("CometRowItem.react"),{xstyle:m.closeButton,children:j.jsx(c("CometWatchAndScrollCloseButton.react"),{video:a})})]})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.actorName,d=a.actorURL,e=a.iconURI;a=a.passthroughProps;return j.jsx(c("TetraProfilePhoto.react"),{"aria-label":b!=null&&b!==""?b:d,linkProps:{passthroughProps:(b=a)!=null?b:void 0,url:d},onPress:function(){l.onReady(function(a){a.log({click_point:"actor_profile_picture",click_target:"watch_and_scroll",event:"click"})})},size:32,source:{uri:e||""}})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.actorName,d=a.actorURL;a=a.passthroughProps;return b!=null&&b!==""?j.jsx(c("CometLink.react"),{href:d,onClick:function(){l.onReady(function(a){a.log({click_point:"actor_name",click_target:"watch_and_scroll",event:"click"})})},passthroughProps:(d=a)!=null?d:void 0,children:b}):null}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.isGamingVideo,d=a.passthroughProps,e=a.permalinkUrl,f=a.title;a=a.videoUrl;var g=c("useCometRouterState")(),h=g==null?void 0:g.main.route.tabKey;g=b?"gaming":"watch";b=h!==g;g=b&&d.portableVideoID!=null?e:a;return j.jsx(c("CometLink.react"),{href:g,onClick:function(){l.onReady(function(a){a.log({click_point:"video_title",click_target:"watch_and_scroll",event:"click",event_target_info:h})})},passthroughProps:d,children:f})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScroll.react",["CaptionsTextSizeMapping","CometInteractionSourceContext","CometLoadingAnimation.react","CometObjectFitContainerWithMaxHeight.react","CometPlaceholder.react","CometRelay","CometRouterPushViewStackContext","CometSetWatchAndScrollVideoContext","CometTahoeChainingDepthLogging.react","CometTrackingCodeProvider.react","CometUFIVideoPlayerUtils","CometWarningScreenContext","CometWatchAndScrollCloseButton.react","CometWatchAndScrollContainer_video.graphql","CometWatchAndScrollSoundContext","CometWatchAndScrollStoryViewabilityLoggerContext","CometWatchAndScrollTopBar.react","CometWatchAndScrollVideoContext","CometWatchAndScrollVideoQuery.graphql","HiddenSubtreeContext","HiddenSubtreeContextProvider.react","Locale","MWChatOpenTabCount.re","VideoAutoplayLocalScopeProvider.react","VideoPlayerAutoplayRulesProvider","VideoPlayerCaptionsDisplayConfigContext","VideoPlayerCometWatchInjectionControl.react","VideoPlayerDefaultControls.react","VideoPlayerDefaultControlsProperties","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerNavigateToTahoeOrFullScreenControl.react","VideoPlayerRelay.react","VideoPlayerSkipControlBase.react","VideoPlayerSurface.react","VideoPlayerWithAudioBackground.react","VideoPlayerWithAudioOverlay.react","VideoPlayerWithLiveVideoIndicator.react","VideoPlayerWithWatchAndScrollSoundContext.react","VideoPlayerWithWatchAndScrollWarningScreen.react","WebPixelRatio","XCometGamingVideoControllerRouteBuilder","XCometWatchControllerRouteBuilder","deferredLoadComponent","gkx","isRouteTransparent","qex","react","requireDeferred","requireDeferredForDisplay","useCometRouterState","useStoryViewabilityLogger","useVideoOriginalDimensionsRelay","useVideoPlayerWithWatchAndScrollChaining.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useMemo,n=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScroll.react"),o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerSkipControl.react").__setRef("CometWatchAndScroll.react")),p=d("VideoPlayerAutoplayRulesProvider").provideAutoplayRules("wns");function q(){var a=d("MWChatOpenTabCount.re").useHook();a=a[0];var b=338,c=80;a=a*b+c;return a}function a(){var a=k(c("CometRouterPushViewStackContext")),b=k(c("CometWatchAndScrollVideoContext")),e=k(c("CometSetWatchAndScrollVideoContext")),f=k(c("CometWatchAndScrollSoundContext"));a=(a||[]).some(function(a){a=a.route;return!c("isRouteTransparent")(a)});var g=b==null?void 0:b.portableVideoID,h=b==null?void 0:b.routeTracePolicy,i=b==null?void 0:b.subOrigin,m=b==null?void 0:b.videoID,n=b==null?void 0:b.chainingSeedVideoID,o=b==null?void 0:b.chainingCursor;l(function(){b!=null&&m!=null&&n==null&&e(babelHelpers["extends"]({},b,{chainingSeedVideoID:m}))},[n,e,m,b]);l(function(){m==null&&(f.setMuted(null),f.setVolume(null))},[f,m]);var p=q();return m==null||i==null||h==null||a&&c("gkx")("3017")?null:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:"a9ndjppc poy2od1o k3cnv2bo taijpn5t esma6hys j83agx80 eu4i7hue k01i5q8h tqsryivl",style:d("Locale").isRTL()?{left:p}:{right:p},children:j.jsx("div",{className:"thwo4zme pmk7jnqg dfilqbxc j83agx80",children:j.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:j.jsx(c("HiddenSubtreeContextProvider.react"),{isHidden:a,children:j.jsx(r,{chainingCursor:o,chainingSeedVideoID:n,portableVideoID:g,routeTracePolicy:h,subOrigin:i,videoID:m})})})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var e,f=a.chainingCursor,g=a.chainingSeedVideoID,i=a.portableVideoID,k=a.routeTracePolicy,l=a.subOrigin;a=a.videoID;g=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("CometWatchAndScrollVideoQuery.graphql"),{chainingCursor:f,chainingSeedVideoID:(f=g)!=null?f:a,scale:d("WebPixelRatio").get(),videoID:a});f=(f=c("qex")._("914"))!=null?f:"";var n=d("CaptionsTextSizeMapping").FixedCaptionsTextSizeMap;f==="adjusted"&&(n=d("CaptionsTextSizeMapping").AdjustedCaptionsTextSizeMapWNS);f=m(function(){return{liveCaptionsTextAlignment:"center",textSizeMapping:n}},[n]);var o=g.chainingSeedVideo;g=g.video;if(g==null)return null;var q=(g==null?void 0:g.is_gaming_video)===!0,r=g==null?void 0:g.id,t=c("XCometGamingVideoControllerRouteBuilder").buildURL(r!=null?{ref:"comet_wns",video_id:r}:{});r=c("XCometWatchControllerRouteBuilder").buildURL(r!=null?{v:r}:{});e=(g==null?void 0:(e=g.pay_to_access_paywall)==null?void 0:e.should_show_paywall)===!0;t=q?t:r;return e?null:j.jsx(c("CometInteractionSourceContext").Provider,{value:54,children:j.jsx(c("VideoAutoplayLocalScopeProvider.react"),{autoplayLocalRules:p,children:j.jsx(d("CometUFIVideoPlayerUtils").CometUFIVideoPlayerStateAndControllerContextProvider,{children:j.jsx(d("CometWarningScreenContext").CometWarningScreenContextProvider,{overlayExists:!1,children:j.jsx(c("VideoPlayerCaptionsDisplayConfigContext").Provider,{value:f,children:j.jsx(s,{video:g,videoID:a,children:j.jsx(c("VideoPlayerRelay.react"),{initialTracePolicy:k,playerFormat:"watch_scroll",portalingEnabled:!0,portalingFromVideoID:i,portalingPlaceMetaData:{placeDescription:"watch_and_scroll"},subOrigin:l,video:g,volumeSetting:null,children:j.jsx(u,{chainingSeedVideo:o,isGamingVideo:q,isVideoHomeEligible:!!((r=g.owner)==null?void 0:r.has_professional_features_for_watch),permalinkUrl:t,routeTracePolicy:k,subOrigin:l,video:g})})})})})})})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var e=a.children,f=a.video;a=a.videoID;f=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollContainer_video.graphql"),f);f=c("useVideoOriginalDimensionsRelay")(f);f=f.originalAspectRatio;var g=q(),h=k(c("CometWatchAndScrollStoryViewabilityLoggerContext"));a=(h==null?void 0:h.videoID)===a;var l=c("useStoryViewabilityLogger")({clientViewConfig:h==null?void 0:h.clientViewConfig,encryptedTracking:h==null?void 0:h.encryptedTracking,position:0,viewabilityConfig:h==null?void 0:h.viewabilityConfig}),m=l.debuggingInfoLoggers;l=l.ref;l=j.jsxs("div",{className:"a9ndjppc poy2od1o k3cnv2bo taijpn5t esma6hys j83agx80 eu4i7hue k01i5q8h tqsryivl",ref:a?l:null,style:d("Locale").isRTL()?{left:g}:{right:g},children:[m,j.jsx(c("CometObjectFitContainerWithMaxHeight.react"),{contentAspectRatio:f,maxHeight:300,children:e})]});g=h==null?void 0:h.trackingCode;return g!=null&&a?j.jsx(c("CometTrackingCodeProvider.react"),{trackingCode:g,children:l}):l}function t(){var a=d("VideoPlayerHooks").useController(),b=k(c("HiddenSubtreeContext")).hidden;l(function(){b||a.play("user_initiated")},[a,b])}function u(a){var b=a.chainingSeedVideo,e=a.isGamingVideo,f=a.isVideoHomeEligible,g=a.permalinkUrl,h=a.routeTracePolicy,i=a.subOrigin;a=a.video;t();var l=c("useCometRouterState")();l=l==null?void 0:l.main.route.tabKey;var p=d("CometWarningScreenContext").useHasOverlay(),q=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart(),r=d("VideoPlayerHooks").useIsVideoBroadcast(),s=k(c("CometSetWatchAndScrollVideoContext"));q=f||q;var u=e?"gaming":"watch";r=f&&!p&&l==="watch"&&!((r=r)!=null?r:!1)&&c("gkx")("1163");l=l!==u&&f&&!p;var v=!e&&(l||r);u=c("useVideoPlayerWithWatchAndScrollChaining.react")({isVideoHomeEligible:f,routeTracePolicy:h,subOrigin:i});p=u.isWatchAndScrollChainingComponentRendered;l=u.watchAndScrollChainingComponent;r=!!c("qex")._("270");f=!!c("qex")._("221")||!p;var w=function(a){n.onReady(function(b){b.log({click_point:a,click_target:"watch_and_scroll",event:"click"})})},x=a.url;u=m(function(){return{subOrigin:i,videoTahoeUrl:x}},[i,x]);var y=c("gkx")("3017");p=c("gkx")("2790")?d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SAME_AS_OTHER_CONTROLS:d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SEPARATE_FROM_OTHER_CONTROLS;return j.jsxs(c("VideoPlayerSurface.react"),{children:[j.jsx(c("CometTahoeChainingDepthLogging.react"),{}),q&&j.jsx(c("CometWatchAndScrollTopBar.react"),{isGamingVideo:e,permalinkUrl:g,routeTracePolicy:h,subOrigin:i,video:a}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithAudioBackground.react"),{playerFormat:"inline",video:a})}),f&&j.jsx(c("VideoPlayerDefaultControls.react"),{mutedButtonVisibility:p,renderExpandControl:function(a){a=a.onUserInteraction;return v?j.jsx(c("VideoPlayerCometWatchInjectionControl.react"),{onPress:function(){s(null),w("control_open_in_watch")},routeTracePolicy:h,subOrigin:i,videoWatchUrl:g}):j.jsx(c("VideoPlayerNavigateToTahoeOrFullScreenControl.react"),{onPressFullscreenControl:function(){return w("control_fullscreen")},onPressTahoeControl:function(){w("control_expand_to_tahoe"),y&&s(null)},onUserInteraction:a,subOrigin:"watch_scroll",videoTahoeUrl:x})},skipControl:r?j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0}),children:b?j.jsx(o,{subOrigin:i,video:b}):j.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0})}):null,subOrigin:"watch_scroll"}),!q&&j.jsx(c("CometWatchAndScrollCloseButton.react"),{video:a}),j.jsx(c("VideoPlayerWithLiveVideoIndicator.react"),{hasCometNavOverlay:!1,video:a}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithAudioOverlay.react"),{playerFormat:"inline",video:a})}),l,j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithWatchAndScrollWarningScreen.react"),{video:a})}),j.jsx(d("CometUFIVideoPlayerUtils").CometUFIVideoPlayerStateAndControllerExtractor,{data:u}),j.jsx(c("VideoPlayerWithWatchAndScrollSoundContext.react"),{})]})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),98); __d("ZenonCallLogger",["ZenonInfraActionsLogger","gkx","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set(["setMediaStats","updateE2EEStats"]);a=function(){function a(a,b){var d,e=this;this.$1=[];this.$2={localCallID:c("uuid")(),peerID:a.peerID,sharedCallID:(d=a.serverInfoData)!=null?d:a.callID};b.forEach(function(b){return e.$1.push(new b(a,function(a){Object.assign(e.$2,a)}))})}var b=a.prototype;b.log=function(a){!h.has(a.name)&&c("gkx")("2890")&&c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP] ZenonCallLogger event: "+a.name}),this.$1.forEach(function(b){b.processEvent(a)})};b.getLogIdentifiers=function(){return this.$2};return a}();g["default"]=a}),98); __d("ZenonCollisionContext",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=null;a.groupThreadID!=null?b={id:a.groupThreadID,type:2}:a.peerID!=null&&(b={id:a.peerID,type:1});return b}f.getThreadIDAndTypeFromCollisionContext=a}),66); __d("LazyLoadInstance",["promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h={LOADING:1,NOT_READY:0,READY:2};a=function(){function a(a,b){this.$1={instantiate:b,moduleReference:a,stage:h.NOT_READY}}var b=a.prototype;b.get=function(a){switch(this.$1.stage){case h.NOT_READY:c("promiseDone")(this.$2(this.$1),a);break;case h.LOADING:c("promiseDone")(this.$1.instancePromise,a);break;case h.READY:a(this.$1.instance);break}};b.getNow=function(){return this.$1.stage===h.READY?this.$1.instance:null};b.preload=function(){this.$1.stage===h.NOT_READY&&this.$2(this.$1)};b.$2=function(a){var b=this,c=a.instantiate;a=a.moduleReference;a=a.load().then(function(a){a=c(a);b.$1={instance:a,stage:h.READY};return a});this.$1={instancePromise:a,stage:h.LOADING};return a};return a}();g["default"]=a}),98); __d("ZenonSignalingConstants",[],(function(a,b,c,d,e,f){"use strict";a="/rtc_multi";b="D3F4U1T_F8_TR4CK";f.RTC_MULTI_MQTT_TOPIC=a;f.DEFAULT_TRACK=b}),66); __d("ZenonMqttMWMessageSender",["FBMqttChannel","Promise","ZenonDebugLogger","ZenonMWMessageLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonSignalingConstants","ZenonUserActionLogger","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=15e3;a=function(){function a(){}var e=a.prototype;e.waitForMqttConnected=function(){return new(b("Promise"))(function(a,b){if(c("FBMqttChannel").getConnectionState()==="Connected")a();else{c("ZenonUserActionLogger").logCheckpoint({checkpoint:"MQTT not connected, deferring sending MWS message"});c("ZenonUserActionLogger").startTimer("MQTT not connected");var d={onMQTTStateChanged:function(b){b==="Connected"&&(c("ZenonUserActionLogger").stopTimer({checkpointName:"MQTT connected after deferring sending MWS message",timerName:"MQTT not connected"}),c("FBMqttChannel").unsubscribeChannelEvents(d),window.clearTimeout(e),a())}},e=window.setTimeout(function(){c("FBMqttChannel").unsubscribeChannelEvents(d),c("ZenonUserActionLogger").stopTimer({checkpointName:"MQTT never connected. Current status: "+c("FBMqttChannel").getConnectionState(),timerName:"MQTT not connected"}),b("timeout")},h);c("FBMqttChannel").subscribeChannelEvents(d)}})};e.asyncSendMessage=function(a){var e=this,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:f=!0;h.next=3;return b("regeneratorRuntime").awrap(this.waitForMqttConnected()["catch"](function(a){c("ZenonUserActionLogger").logCheckpoint({checkpoint:"Not sending MWS message through MQTT because MQTT could not connect. Error: "+a}),f=!1}));case 3:if(f){h.next=5;break}return h.abrupt("return");case 5:g=c("ZenonDebugLogger").getInstance();d("ZenonMWMessageReliabilityLogger").logSendingMessage(a);g.logMWMessage("SENDING","MQTT",a);this.$2&&d("ZenonMWMessageLogger").logSentMessage(a,this.$2);h.prev=9;h.next=12;return b("regeneratorRuntime").awrap(c("FBMqttChannel").publish(d("ZenonSignalingConstants").RTC_MULTI_MQTT_TOPIC,JSON.stringify(a)).then(function(b){d("ZenonMWMessageReliabilityLogger").logSentMessage(a)},function(b){e.$3(a,b.toString())}));case 12:h.next=17;break;case 14:h.prev=14,h.t0=h["catch"](9),this.$3(a,h.t0.toString());case 17:case"end":return h.stop()}},null,this,[[9,14]])};e.$3=function(a,b){var e=c("ZenonDebugLogger").getInstance();b=b!=null?b:"MQTT Message Send Error";d("ZenonMWMessageReliabilityLogger").logSendMessageFailed(a);e.logSendMultiwayMessageFailure(b,a.jsonPayload.header.type)};e.sendMessage=function(a){a=d("ZenonMWMessageTranslator").toMWMessage(a);a!=null&&this.asyncSendMessage(a)};e.setMessageReceiver=function(a){this.$1=a};e.setLoggingEventHandler=function(a){this.$2=a};return a}();g["default"]=a}),98); __d("XGroupCallSendRequestController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/groupcall/sendrequest/",{av:{type:"FBID"},webrtc_fbtrace:{type:"Int"}})}),null); __d("ZenonXControllerSendRequest",["AsyncRequest","Promise","XGroupCallSendMessageController","XGroupCallSendRequestController","ZenonActorHooks","ZenonMWMessageReliabilityLogger","err","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=6e3;function i(a,e){return new(b("Promise"))(function(b,f){d("ZenonMWMessageReliabilityLogger").logSendingMessage(e),a.setMethod("POST").setAllowCrossPageTransition(!0).setHandler(function(a){d("ZenonMWMessageReliabilityLogger").logSentMessage(e),b(a)}).setErrorHandler(function(a){d("ZenonMWMessageReliabilityLogger").logSendRequestFailedFromHandler(e);a=a.getErrorDescription();a=new(c("err"))(a!=null?a.toString():"AsyncRequest error");f(a)}).setTimeoutHandler(h,function(){f("Timeout")}),a.send()})}function a(a){var b=c("XGroupCallSendMessageController").getURIBuilder();c("gkx")("2028434")&&b.setFBID("av",d("ZenonActorHooks").ZenonActor.getID());b=b.getURI();b=new(c("AsyncRequest"))(b).setData({message:JSON.stringify(a)});return i(b,a)}function e(a){var b=c("XGroupCallSendRequestController").getURIBuilder();c("gkx")("2028434")&&b.setFBID("av",d("ZenonActorHooks").ZenonActor.getID());b=b.getURI();b=new(c("AsyncRequest"))(b).setData({request:JSON.stringify(a)});return i(b,a)}g.sendMessage=a;g.sendRequest=e}),98); __d("ZenonXControllerMWMessageSender",["ZenonDebugLogger","ZenonMWMessageLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonMWMessageTypes","ZenonMWTranslatorUtils","ZenonXControllerSendRequest","regeneratorRuntime","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var e=a.prototype;e.handleResponse=function(a){a=a.payload;if(a==null)return;var b=a.header||null;a=a.body||null;var e=c("ZenonDebugLogger").getInstance();if(b!=null&&a!=null){b=c("ZenonMWTranslatorUtils").createMWMessage(b,a);d("ZenonMWMessageReliabilityLogger").logStartProcessingResponse(b);e.logMWMessage("RECEIVED","XController",b);d("ZenonMWMessageReliabilityLogger").logReceivedMessage(b);a=d("ZenonMWMessageTranslator").toSignalingMessage(b);if(this.$1!=null)this.$1(a),d("ZenonMWMessageReliabilityLogger").logProcessingMessage(b);else throw c("unrecoverableViolation")("Should never have null message receiver","rtc_www")}};e.asyncSendMessage=function(a){var e,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:e=c("ZenonDebugLogger").getInstance();e.logMWMessage("SENDING","XController",a);this.$2&&d("ZenonMWMessageLogger").logSentMessage(a,this.$2);h.prev=3;if(!this.isResponseExpected(a)){h.next=11;break}h.next=7;return b("regeneratorRuntime").awrap(d("ZenonXControllerSendRequest").sendRequest(a));case 7:f=h.sent;this.handleResponse(f);h.next=13;break;case 11:h.next=13;return b("regeneratorRuntime").awrap(d("ZenonXControllerSendRequest").sendMessage(a));case 13:h.next=20;break;case 15:h.prev=15,h.t0=h["catch"](3),g=h.t0!=null?h.t0.toString():"Message Send Error",d("ZenonMWMessageReliabilityLogger").logSendMessageFailed(a),e.logSendMultiwayMessageFailure(g,a.jsonPayload.header.type);case 20:case"end":return h.stop()}},null,this,[[3,15]])};e.isResponseExpected=function(a){switch(a.jsonPayload.header.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_EVENT:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UNSUBSCRIBE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONNECT:return!0;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.RING:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.NOTIFY:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONFERENCE_STATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.HANGUP:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DISMISS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ADD_PARTICIPANTS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SUBSCRIPTION:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.REMOVE_PARTICIPANTS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.PING:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.P2P_PROTOCOL:return!1;default:return!1}};e.sendMessage=function(a){a=d("ZenonMWMessageTranslator").toMWMessage(a);a!=null&&this.asyncSendMessage(a)};e.setMessageReceiver=function(a){this.$1=a};e.setLoggingEventHandler=function(a){this.$2=a};return a}();g["default"]=a}),98); __d("ZenonHybridMWMessageSender",["FBLogger","ZenonActorHooks","ZenonGraphQLMWMessageSender","ZenonInfraActionsLogger","ZenonMWMessageTranslator","ZenonMWMessageTypes","ZenonMqttMWMessageSender","ZenonXControllerMWMessageSender"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new(c("ZenonXControllerMWMessageSender"))(),this.$2=new(c("ZenonGraphQLMWMessageSender"))(),this.$3=new(c("ZenonMqttMWMessageSender"))(),this.$4=!1,this.$4=d("ZenonActorHooks").ZenonActor.isPage()}var b=a.prototype;b.sendMessage=function(a){try{var b=d("ZenonMWMessageTranslator").toMWMessage(a),e=b==null?void 0:b.jsonPayload.header.type;if(a.getHeader().remoteSignalingID==null&&e!=null&&e!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN){c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP][DROP] No remoteSignalingID in message: "+e});c("FBLogger")("rtc_www").warn("[ZP][DROP] No remoteSignalingID in message: "+e);return}b!=null&&(this.$4?this.$2.asyncSendMessage(b):(this.$3.asyncSendMessage(b),e!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE&&this.$2.asyncSendMessage(b)))}catch(a){c("FBLogger")("rpweb").catching(a).warn("Error sending message from ZenonHybridMWMessageSender");throw a}};b.setMessageReceiver=function(a){this.$1.setMessageReceiver(a),this.$2.setMessageReceiver(a)};b.setLoggingEventHandler=function(a){this.$1.setLoggingEventHandler(a),this.$2.setLoggingEventHandler(a)};return a}();g["default"]=a}),98); __d("ZenonParentSignalingClient",["ZenonDebugLogger","ZenonSignalingTypes","qpl","recoverableViolation","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d,e){var f=this;this.remoteSignalingID=null;this.$4="init";this.$6=null;this.$7=null;this.$8=function(){};this.$9=function(a,b,d){c("ZenonDebugLogger").getInstance().logStateMachine("ParentSignalingClient",f.$4,"received "+a.eventName,f.$1.getSignalingID());switch(a.eventName){case"inviteRequest":f.$11(a,b,d);break;case"remoteSdpRequest":f.$12(a,b);break;case"terminateRequest":f.$13(a,b,d);break}};this.$1=a;this.$3=d;this.$5=e;this.$2=b;b.setReceiver(this.$9);c("ZenonDebugLogger").getInstance().startQPL(c("qpl")._(64234815,"1094"),+a.getSignalingID())}var b=a.prototype;b.setSignalingEventHandlers=function(a){if(this.$6!=null){c("recoverableViolation")("setSignalingEventHandlers should only be called once, to avoid accidentally losing handlers.","rtc_www");return}this.$6=a};b.setLoggingEventHandler=function(a){this.$8=a};b.getSignalingModel=function(){return this.$1};b.sendDismiss=function(a){this.$4="terminated";a={eventName:"terminateRequest",fromJoinResponse:!1,reason:a,shouldInformPeer:!0};this.$10(a)};b.receiveMessage=function(a){this.$2.receiveMessage(a)};b.isTerminated=function(){return this.$4==="terminated"};b.sendAnswerIntent=function(){if(this.$4==="inviteAcknowledged"){this.$4="answered";var a={eventName:"answerIntentRequest"};this.$10(a)}else throw c("unrecoverableViolation")("sendAnswerIntent called in unexpected state "+this.$4,"rtc_www")};b.respondToInvite=function(a){if(this.$4==="inviteReceived"){if(this.$7==null)throw c("unrecoverableViolation")("respondToInvite called without inviteMessageId being populated first","rtc_www");this.$4="inviteAcknowledged";a={ackMessageId:this.$7,eventName:"inviteResponse",status:a};this.$10(a)}else throw c("unrecoverableViolation")("respondToInvite called in unexpected state "+this.$4,"rtc_www")};b.initiateClientRenegotiation=function(a){throw c("unrecoverableViolation")("initiateClientRenegotiation called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendClientEvent=function(a){throw c("unrecoverableViolation")("sendClientEvent called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendInvite=function(a,b){throw c("unrecoverableViolation")("sendInvite called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendSdp=function(a,b){throw c("unrecoverableViolation")("sendSdp called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendIceCandidate=function(a){throw c("unrecoverableViolation")("sendIceCandidate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendMediaUpdate=function(a){throw c("unrecoverableViolation")("sendMediaUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendAddParticipantsMessage=function(a){throw c("unrecoverableViolation")("sendAddParticipantsMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendRemoveParticipantsRequest=function(a){throw c("unrecoverableViolation")("sendRemoveParticipantsRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendUsersApprovalRequest=function(a,b){throw c("unrecoverableViolation")("sendUsersApprovalRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendStateSyncUnsubscribe=function(a){throw c("unrecoverableViolation")("sendStateSyncUnsubscribe called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendStateSyncUpdate=function(a,b){throw c("unrecoverableViolation")("sendStateSyncUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendSubscriptionRequest=function(a){throw c("unrecoverableViolation")("sendSubscriptionRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendClientInfo=function(a){throw c("unrecoverableViolation")("sendClientInfo called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendGenericDataMessage=function(a,b,d){throw c("unrecoverableViolation")("sendGenericDataMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.$10=function(a){c("ZenonDebugLogger").getInstance().logStateMachine("ParentSignalingClient",this.$4,"sending "+a.eventName,this.$1.getSignalingID()),this.$3.sendEvent(a)};b.$11=function(a,b,c){this.$4==="init"&&(this.$4="inviteReceived",this.$7=b,this.$5(a,c,this))};b.$13=function(a,b,c){if(this.$4!=="terminated"){this.$4="terminated";c={ackMessageId:b,eventName:"dismissResponse"};this.$3.sendEvent(c);if(this.$6&&this.$6.onDismissReceived){this.$6.onDismissReceived(this.$1.getSignalingID(),a.reason,(b=a.subreason)!=null?b:null)}}};b.$12=function(a,b){b={ackMessageId:b,acknowledgedVersion:a.sdp.version,eventName:"remoteSdpResponse",negotiateType:a.negotiateType,status:d("ZenonSignalingTypes").ZenonRemoteSdpResponseStatus.OK,type:a.sdp.type};this.$3.sendEvent(b)};return a}();g["default"]=a}),98); __d("TokenBucketRateLimit",["DateConsts"],(function(a,b,c,d,e,f,g){"use strict";var h=1e3;a=function(){function a(a,b){this.$1=a*h,this.$2=a*h,this.$3=Date.now(),this.$4=b*h}var b=a.prototype;b.take=function(a){a===void 0&&(a=1);a=a*h;this.$5();if(this.$2=this.$1)return;var a=Date.now(),b=(a-this.$3)/d("DateConsts").MS_PER_SEC;b=Math.round(b*this.$4);if(b===0)return;this.$2=Math.min(this.$1,this.$2+b);this.$3=a};return a}();g["default"]=a}),98); __d("ZenonSDKRateLimiter",["TokenBucketRateLimit","ZenonPlatformRateLimitSitevarConfig"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new Map()}var b=a.prototype;b.take=function(a,b){b===void 0&&(b=1);a=this.$2(a);return a.take(b)};b.$2=function(a){var b,d=this.$1.get(a);if(d)return d;b=(b=c("ZenonPlatformRateLimitSitevarConfig").buckets.get(a))!=null?b:c("ZenonPlatformRateLimitSitevarConfig")["default"];d=new(c("TokenBucketRateLimit"))(b.bucket_size,b.refill_rate);this.$1.set(a,d);return d};return a}();g["default"]=a}),98); __d("ZenonParentCallsManager",["BaseEventEmitter","FBLogger","JSResource","LazyLoadInstance","ZenonActorHooks","ZenonBrowsers","ZenonCallLogger","ZenonCallsModelTypes","ZenonCollisionContext","ZenonDismissReason","ZenonHybridMWMessageSender","ZenonParentSignalingClient","ZenonSDKRateLimiter","ZenonSignalingProtocol","cr:11758","cr:11759","gkx","recoverableViolation","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var e;e=a.call(this)||this;e.$ZenonParentCallsManager4=new Map();e.$ZenonParentCallsManager5=new Set();e.$ZenonParentCallsManager6=null;e.onInviteReceived=function(a,b,f){var g,h=f.getSignalingModel().getSignalingID();f.setSignalingEventHandlers({onDismissReceived:e.onDismissReceived});var i=a.inviterID,j=a.otherParticipants,k=a.requestingVideo;a=a.roomInfo;var l=k&&d("ZenonBrowsers").supportsVideoCalls(),m=b===c("ZenonSignalingProtocol").P2P?"p2p_incoming":"multiway_incoming",n=e.$ZenonParentCallsManager8({callID:h,callTrigger:m,isCaller:!1,isVideo:l,peerID:i,protocol:b});n.log({name:"inviteReceived"});k=e.$ZenonParentCallsManager3.isSupportedClientForProtocol(b);var o=k?"OK":"NOT_SUPPORTED";f.respondToInvite(o);n.log({name:"inviteResponded"});o={thread:{id:"0",type:2},type:"thread"};if(((g=a.context)==null?void 0:g.groupThreadID)||((g=a.context)==null?void 0:g.peerID)){o={thread:(g=d("ZenonCollisionContext").getThreadIDAndTypeFromCollisionContext(a.context))!=null?g:o.thread,type:"thread"}}else((g=a.room)==null?void 0:g.linkHash)!=null&&((g=a.room)==null?void 0:g.roomName)!=null&&(o={room:a.room,type:"room"});g=d("ZenonActorHooks").ZenonActor.getID();o={context:o,controllerParams:{callContext:a.name,callID:h,configuration:b,serverInfoData:(a=(o=a.context)==null?void 0:o.serverInfoData)!=null?a:null},inviterID:i,isClientPermissableRing:k,onAccept:function(a,d){d=d.isPopupBlocked;n.log({name:"callAccepted",trigger:m});b===c("ZenonSignalingProtocol").P2P&&e.$ZenonParentCallsManager2.get(function(a){a.storeOfferForBackwardsCompat(i,h)});f.sendAnswerIntent();e.$ZenonParentCallsManager9(a,{callID:h,callTrigger:m,isPopupBlocked:d,isVideo:l,peerID:i,protocol:b})},onDecline:function(a,b){b===void 0&&(b=null),e.onDecline(h,n,a,b)},otherParticipants:j.includes(g)?j:[g].concat(j),requestingVideo:l,ringID:h};e.emit("incomingRing",o)};e.onDismissReceived=function(a,b){var c=d("ZenonDismissReason").dismissReasonToCancelReason(b);c={reason:c,ringID:a};e.emit("ringCancel",c);c=e.$ZenonParentCallsManager4.get(a);c!=null&&(c.log({name:"dismissRecv"}),c.log({endCallReason:b,isRemoteEnded:!0,name:"callEnded"}))};e.$ZenonParentCallsManager3=b;e.$ZenonParentCallsManager2=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingParentTransport").__setRef("ZenonParentCallsManager"),function(a){return new a()});var f=new(c("ZenonHybridMWMessageSender"))();e.$ZenonParentCallsManager1=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingClientManager").__setRef("ZenonParentCallsManager"),function(a){return new a(c("ZenonParentSignalingClient"),e.onInviteReceived,f)});c("gkx")("357")&&(e.$ZenonParentCallsManager6=new(c("ZenonSDKRateLimiter"))());return e}var f=e.prototype;f.startOutgoingCallIntent=function(a,b){if(!this.$ZenonParentCallsManager7("startOutgoingCallIntent"))return;var c=b.callID,d=b.callTrigger,e=b.isVideo,f=b.peerID,g=b.protocol;this.$ZenonParentCallsManager8({callID:c,callTrigger:d,isCaller:!0,isVideo:e,peerID:f,protocol:g});this.$ZenonParentCallsManager9(a,b)};f.$ZenonParentCallsManager8=function(a){var b=a.callID,d=a.callTrigger,e=a.isCaller,f=a.isVideo,g=a.peerID;a=a.protocol;var h=this.$ZenonParentCallsManager4.get(b);!h?(h=new(c("ZenonCallLogger"))({callID:b,callTrigger:d,isCaller:e,isVideo:f,peerID:g,protocol:a},this.getLogProcessors()),this.$ZenonParentCallsManager4.set(b,h)):c("recoverableViolation")("Call logger key collision in parentCallsManager for callID: "+b,"rtc_www");return h};f.getLogProcessors=function(){var a=[b("cr:11759")];b("cr:11758")&&a.push(b("cr:11758"));return a};f.$ZenonParentCallsManager9=function(a,c){var e,f,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:e=c.alohaEscalatedMW,f=c.callID,g=c.isPopupBlocked;this.$ZenonParentCallsManager2.get(function(b){b.verificationNonce=a});this.$ZenonParentCallsManager5.add(f);h=this.$ZenonParentCallsManager4.get(f);if(!(h!=null)){j.next=11;break}h.log({isPopupBlocked:g,name:"popupOpened"});if(!(e!=null)){j.next=11;break}j.next=9;return b("regeneratorRuntime").awrap(e);case 9:i=j.sent,i&&h.log({endCallReason:d("ZenonDismissReason").ZenonDismissReason.OtherInstanceHandled,endCallSubreason:"forceP2POverMWForAloha",isRemoteEnded:!1,name:"callEnded"});case 11:case"end":return j.stop()}},null,this)};f.initListeners=function(a){var b=this;for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e.subscribe(function(a){return b.onMessageReceived(a)},function(a){return b.onRawP2PMessageReceived(a)},function(a){return b.onRawMWMessageReceived(a)})}};f.onMessageReceived=function(a){var b=a.getHeader().signalingID;if(b!=null&&this.$ZenonParentCallsManager5.has(b))return;this.$ZenonParentCallsManager1.get(function(b){b.receiveMessage(a)})};f.onRawP2PMessageReceived=function(a){this.$ZenonParentCallsManager2.get(function(b){b.enqueueRawP2PMessage(a)})};f.onRawMWMessageReceived=function(a){this.$ZenonParentCallsManager2.get(function(b){b.enqueueRawMWMessage(a)})};f.onDecline=function(a,b,e,f){f===void 0&&(f=null),this.$ZenonParentCallsManager1.get(function(g){g=g.getSignalingClient(a);if(g){var h=d("ZenonDismissReason").endCallToDismissReason(e);e!=="VersionUnsupported"&&f!==d("ZenonCallsModelTypes").ZenonEndCallSubreason.CallsBlocked&&g.sendDismiss(h);b.log({endCallReason:h,endCallSubreason:f==null?null:f,isRemoteEnded:!1,name:"callEnded"})}else c("recoverableViolation")("signaling client should be defined","rtc_www")})};f.removeListeners=function(a){for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d.unsubscribe()}};f.$ZenonParentCallsManager7=function(a){if(this.$ZenonParentCallsManager6&&!this.$ZenonParentCallsManager6.take(a)){c("FBLogger")("rtc_www").warn("[ZP] Dropping "+a+" invocation. This SDK method is being called too rapidly.");return!1}return!0};return e}(c("BaseEventEmitter"));g["default"]=a}),98); __d("ZenonP2PMessageValidator",["ZenonActorHooks","ZenonP2PMessageTypes","err","orEmptyArray"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=JSON.parse(a);var b=a.call_id,e=a.from,f=a.id,g=a.msg_type,h=a.payload,i=a.source,j=a.to;a=a.type;if(j!=null&&j.toString()!==d("ZenonActorHooks").ZenonActor.getID())throw c("err")("P2P message.to field "+j+" does not match logged in user ID "+d("ZenonActorHooks").ZenonActor.getID()+" for msg_type "+g);if(e&&b&&h){j={call_id:b,from:e,id:f,msg_type:g,payload:h,source:i,type:a};return j}else throw c("err")("P2P message does not have valid from, call_id, and payload fields")}function b(a){if(a){var b=a.msg_type;switch(b){case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OFFER:return i(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.HANG_UP:return j(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.ICE_CANDIDATE:return h(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OTHER_DISMISS:return k(a)}}return null}function h(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability,g=c.label,h=c.msg_id,i=c.sdp,j=c.sdp_line_idx,k=c.sdp_mid;c=c.version;e={call_id:e,capability:f,from:b,label:g,msg_id:h,sdp:i,sdp_line_idx:j,sdp_mid:k,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.ICE_CANDIDATE,version:c};return e}function i(a){var b,e,f=a.from,g=a.payload;a=a.source;g=JSON.parse(g);var h=g.call_id,i=g.calltype,j=g.capability;b=(b=g.escalation_conference_name)!=null?b:null;var k=c("orEmptyArray")(g.experiments),l=c("orEmptyArray")(g.extraParams);e=(e=g.fbexp)!=null?e:"";var m=g.handlescollision!==void 0?g.handlescollision:!1,n=g.offer_escalation_support!==void 0?g.offer_escalation_support:!1,o=g.msg_id,p=g.sdp;g=g.videoon;h={call_id:h,calltype:i,capability:j,escalation_conference_name:b,experiments:k,extraParams:l,fbexp:e,from:f,handlescollision:m,msg_id:o,offer_escalation_support:n,sdp:p,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OFFER,videoon:g};return h}function j(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability,g=c.msg_id,h=c.reason;c=c.subreason;e={call_id:e,capability:f,from:b,msg_id:g,reason:h,source:a,subreason:c,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.HANG_UP};return e}function k(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability;c=c.msg_id;e={call_id:e,capability:f,from:b,msg_id:c,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OTHER_DISMISS};return e}g.getValidP2PMessage=a;g.transformP2PMessage=b}),98); __d("RTWebSignalingListener",["FBLogger","FBMqttChannel","ZenonDebugLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonP2PMessageTranslator","ZenonP2PMessageValidator","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var b=a.prototype;b.subscribe=function(a,b,e){var f=this;c("FBMqttChannel").subscribe("/webrtc",function(e){var g=c("ZenonDebugLogger").getInstance(),h=d("ZenonP2PMessageValidator").getValidP2PMessage(e),i=d("ZenonP2PMessageValidator").transformP2PMessage(h);f.$1(e,b);if(i){e=d("ZenonP2PMessageTranslator").toSignalingMessage(i);e&&(g.logP2PMessageReceived(h),a(e),g.logP2PMessageProcessed(h))}});c("FBMqttChannel").subscribe("/rtc_multi",function(b){try{var g=JSON.parse(b),h=c("ZenonDebugLogger").getInstance();d("ZenonMWMessageReliabilityLogger").logReceivedMessage(g);h.logMWMessage("RECEIVED","MQTT",g);h=d("ZenonMWMessageTranslator").toSignalingMessage(g);a(h);e&&f.$2(b,e);d("ZenonMWMessageReliabilityLogger").logProcessingMessage(g)}catch(a){c("FBLogger")("rpweb").catching(a).warn("Error receiving MQTT message from /rtc_multi topic")}})};b.unsubscribe=function(){c("FBMqttChannel").unsubscribeAll("/webrtc"),c("FBMqttChannel").unsubscribeAll("/rtc_multi")};b.$1=function(a,b){try{a=JSON.parse(a);b(a)}catch(a){c("recoverableViolation")("Signaling messages should be json parsable. error:"+a,"rtweb")}};b.$2=function(a,b){try{a=JSON.parse(a);b(a)}catch(a){c("recoverableViolation")("Signaling messages should be json parsable. error:"+a,"rtweb")}};return a}();g["default"]=a}),98); __d("WebPerfDeviceInfoLogFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1871697");c=b("FalcoLoggerInternal").create("web_perf_device_info_log",a);e.exports=c}),null); __d("XDeviceClassRealtimeController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/web_perf/get_perf_level/",{})}),null); __d("WebDevicePerfInfoLogging",["AsyncTypedRequest","JSScheduler","Promise","WebDevicePerfInfoData","WebPerfDeviceInfoLogFalcoEvent","XDeviceClassRealtimeController","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=document.createElement("canvas");b=b.getContext("webgl")||b.getContext("experimental-webgl");if(!b)return;var c=b.getExtension("WEBGL_debug_renderer_info");if(!c)return;var d=b.getParameter(c.UNMASKED_RENDERER_WEBGL);b=b.getParameter(c.UNMASKED_VENDOR_WEBGL);a.gpu_vendor=b;a.gpu_renderer=d}function i(){var a=window.navigator,b={};a&&a.hardwareConcurrency!==void 0&&(b.cpu_cores=a.hardwareConcurrency);a&&a.deviceMemory!==void 0&&(b.ram=a.deviceMemory);c("WebDevicePerfInfoData").needsFullUpdate&&h(b);return b}function j(){var a=i();c("WebPerfDeviceInfoLogFalcoEvent").log(function(){var b;return{cpu_cores:(b=a.cpu_cores)!=null?b:null,ram:(b=a.ram)!=null?b:null,gpu_renderer:(b=a.gpu_renderer)!=null?b:null,gpu_vendor:(b=a.gpu_vendor)!=null?b:null}})}function k(){var a,d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:a=i();e.next=3;return b("regeneratorRuntime").awrap(new(c("AsyncTypedRequest"))(c("XDeviceClassRealtimeController").getURIBuilder().getURI()).setData(a).promisePayload());case 3:d=e.sent;return e.abrupt("return",d.devicePerfClassLevel);case 5:case"end":return e.stop()}},null,this)}function a(){(c("WebDevicePerfInfoData").needsFullUpdate||c("WebDevicePerfInfoData").needsPartialUpdate)&&d("JSScheduler").scheduleSpeculativeCallback(j)}function e(){return new(b("Promise"))(function(a,b){c("WebDevicePerfInfoData").needsFullUpdate||c("WebDevicePerfInfoData").needsPartialUpdate?d("JSScheduler").scheduleSpeculativeCallback(function(){k().then(a)["catch"](b)}):b()})}g.doLog=a;g.doLogPromise=e}),98); __d("BladeRunnerConfig",["RTISubscriptionManagerConfig","WebDriverConfig","gkx","isEmpty"],(function(a,b,c,d,e,f,g){var h="javascript-sandbox",i="OverrideServer",j="www_sandbox";a=function(){function a(){}var b=a.prototype;b.patchRequestHeaders=function(a){var b={},d=c("RTISubscriptionManagerConfig").bladerunner_www_sandbox;if(!c("isEmpty")(c("WebDriverConfig").auxiliaryServiceInfo)){var e;e=(e=c("WebDriverConfig").auxiliaryServiceInfo.BladeRunner)!=null?e:c("WebDriverConfig").auxiliaryServiceInfo["BladeRunner-sandcastle"];e!=null&&(typeof e.ip_address==="string"?b[i]=e.ip_address+":18295":typeof e.hostname==="string"&&(b[i]=e.hostname+":18295"),typeof c("WebDriverConfig").originHost==="string"&&(b[j]="www."+c("WebDriverConfig").originHost))}else d!=null&&(b[h]=d);c("gkx")("307")&&(b["Accept-Ack"]="RSAck");for(var f in a)b[f]=a[f];return b};return a}();b=new a();d=b;g["default"]=d}),98); __d("BladeRunnerLogger",["FBLogger","ODS"],(function(a,b,c,d,e,f,g){var h="bladerunner_js_client",i={info:"info",warning:"warning",exception:"exception"};a=function(){function a(){this.setFBLoggerLevel(1)}var b=a.prototype;b.info=function(a){this.$2>=2&&c("FBLogger")(h).info("BladeRunner info: %s",a),this.$3(i.info,a)};b.warn=function(a){this.$2>=1&&c("FBLogger")(h).warn("BladeRunner warn: %s",a),this.$3(i.warning,a)};b.exception=function(a,b){b===void 0&&(b="");var d=b+" "+a.toString();this.$2>=0&&c("FBLogger")(h).warn("BladeRunner exception: %s, %s",b,a.toString());this.$3(i.exception,d)};b.trimForLogging=function(a){var b=1024;return typeof a==="string"&&a.length>b?"[trimmed]:"+a.substring(0,b)+"...":a};b.bumpCounter=function(a,b){b===void 0&&(b=1),d("ODS").bumpEntityKey(2966,"BladeRunnerClient",a,b)};b.setClientSessionId=function(a){this.$1=a};b.setFBLoggerLevel=function(a){this.$2=a};b.$3=function(a,b){};return a}();b=new a();e=b;g["default"]=e}),98); __d("BladeRunnerTypes",[],(function(a,b,c,d,e,f,g){a={REQUEST:1,DATA:2,DATA_ACK:3,STATUS_UPDATE:4,REWRITE_REQUEST:5,LOG:6};b={BLADE_RUNNER:1,GATEWAY:2};g.StreamFrameType=a;g.StreamRequestType=b}),98); __d("BladeRunnerTypesInternal",["Base64","BladeRunnerLogger","BladeRunnerTypes"],(function(a,b,c,d,e,f,g){var h=function(){function a(){}var b=a.prototype;b.getHeaders=function(){if(this.headers!=null)return this.headers;throw new Error("Expected headers")};b.getInstrumentationData=function(){if(this.instrumentationData!=null&&this.instrumentationData.length>0)try{return JSON.parse(this.instrumentationData)}catch(a){return null}else return null};b.updateRetryRequestPayload=function(a){a!=null?this.payload=c("Base64").encode(a):this.payload=null};a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.requestType=o(b.requestType);c.payload=r(b.payload);c.headers=u(b.headers);c.extraHeader=r(b.extraHeader);c.requestTarget=r(b.requestTarget);c.instrumentationData=r(b.instrumentationData);return c};return a}(),i=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.dataId=p(b.dataId);c.data=r(b.data);c.shouldAck=w(b.shouldAck);return c};var b=a.prototype;b.rawData=function(){if(this.data==null)throw new Error("Expected data");return this.data};b.rawDataSize=function(){return this.data==null?0:this.data.length};b.decodeData=function(){if(this.data==null)throw new Error("Expected data");return c("Base64").decode(this.data)};b.setData=function(a){this.data=c("Base64").encode(a)};b.getInstrumentationData=function(){if(this.instrumentationData!=null)return JSON.parse(this.instrumentationData);else return null};return a}(),j=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.dataId=o(b.dataId);c.success=v(b.success);c.message=r(b.message);c.code=p(b.code);return c};return a}();j.ACK_CODE_LANDED_AND_ACCEPTED=20;j.ACK_CODE_LANDED_BUT_NOT_ACCEPTED=21;j.ACK_CODE_FAILED_TO_LAND=50;var k=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=p(b.streamId);c.message=r(b.message);return c};return a}(),l=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.status=o(b.status);c.message=r(b.message);c.code=p(b.code);c.shouldRetry=w(b.shouldRetry);c.retryDelayMs=p(b.retryDelayMs);return c};return a}(),m=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.newBody=r(b.newBody);c.newExtraHeader=r(b.newExtraHeader);c.patchExtraHeader=r(b.patchExtraHeader);c.killBody=w(b.killBody);c.temporary=w(b.temporary);return c};return a}(),n=function(){function a(){}var b=a.prototype;b.getRequest=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REQUEST&&this.request!=null)return this.request;throw new Error("Expected request")};b.getData=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA&&this.data!=null)return this.data;throw new Error("Expected data")};b.getDataAck=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.dataAck!=null)return this.dataAck;throw new Error("Expected dataAck")};b.getStatusUpdate=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE&&this.statusUpdate!=null)return this.statusUpdate;throw new Error("Expected status update")};b.getLog=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.LOG&&this.log!=null)return this.log;throw new Error("Expected log")};b.getRewriteRequest=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST&&this.rewriteRequest!=null)return this.rewriteRequest;throw new Error("Expected rewrite request")};b.getStreamId=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REQUEST&&this.request!=null)return this.request.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA&&this.data!=null)return this.data.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE&&this.statusUpdate!=null)return this.statusUpdate.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.LOG&&this.log!=null)return this.log.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST&&this.rewriteRequest!=null)return this.rewriteRequest.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.dataAck!=null)return this.dataAck.streamId;throw new Error("Frame with unexpected type")};b.isInstrumented=function(){if(this.type===d("BladeRunnerTypes").StreamFrameType.REQUEST)return this.getRequest().instrumentationData!=null;else if(this.type===d("BladeRunnerTypes").StreamFrameType.DATA)return this.getData().instrumentationData!=null;else return!1};a.readObject=function(b){var e=new a();e.type=o(b.type);switch(e.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:e.request=h.readObject(s(b.request));break;case d("BladeRunnerTypes").StreamFrameType.DATA:e.data=i.readObject(s(b.data));break;case d("BladeRunnerTypes").StreamFrameType.DATA_ACK:e.dataAck=j.readObject(s(b.dataAck));break;case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:e.statusUpdate=l.readObject(s(b.statusUpdate));break;case d("BladeRunnerTypes").StreamFrameType.LOG:e.log=k.readObject(s(b.log));break;case d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST:e.rewriteRequest=m.readObject(s(b.rewriteRequest));break;default:c("BladeRunnerLogger").warn("Frame with unexpected type: "+e.type);return null}return e};a.newRequestFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.REQUEST;c.request=b;return c};a.newDataFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.DATA;c.data=b;return c};a.newDataAckFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.DATA_ACK;c.dataAck=b;return c};a.newStatusUpdateFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE;c.statusUpdate=b;return c};a.newLogFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.LOG;c.log=b;return c};a.newRewriteRequestFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST;c.rewriteRequest=b;return c};return a}();a=function(){function a(a,b,c){this.batchId=a,this.frames=b,this.instrumentationData=c}var b=a.prototype;b.getFrames=function(){if(this.frames!=null)return this.frames;throw new Error("Expected frames")};b.getInstrumentationData=function(){if(this.instrumentationData!=null)try{return JSON.parse(this.instrumentationData)}catch(a){return null}else return null};b.write=function(){return JSON.stringify(this)};b.isInstrumented=function(){return this.getFrames().some(function(a){return a.isInstrumented()})};a.read=function(b){b=JSON.parse(b);var c=b.batchId||0,d=[];for(var e=b.frames,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;h=n.readObject(h);h!=null&&d.push(h)}h=b.instrumentationData||null;return new a(c,d,h)};return a}();function o(a){if(typeof a==="number")return a;throw new Error("Expected number")}function p(a){return a==null?null:o(a)}function q(a){if(typeof a==="string")return a;throw new Error("Expected string")}function r(a){return a==null?null:q(a)}function s(a){if(typeof a==="object"&&a!=null)return a;throw new Error("Expected object")}function t(a){if(typeof a==="object"&&a!=null){var b=a,c={};Object.keys(b).forEach(function(a){var d=b[a];typeof d==="string"&&d!=null&&(c[a]=d)});return c}throw new Error("Expected string map")}function u(a){return a==null?null:t(a)}function v(a){if(typeof a==="boolean"&&a!=null)return a;throw new Error("Expected boolean")}function w(a){return a==null?null:v(a)}g.GatewayStreamRequest=h;g.GatewayStreamData=i;g.GatewayStreamDataAck=j;g.GatewayStreamLog=k;g.GatewayStreamStatusUpdate=l;g.GatewayStreamRewriteRequest=m;g.GatewayStreamFrame=n;g.GatewayStreamBatch=a}),98); __d("RequestStreamE2EClientLoggerEvent",[],(function(a,b,c,d,e,f){a=Object.freeze({RECEIVED:"received",SENT:"sent",FAILURE:"failure",PUBACK:"puback"});f["default"]=a}),66); __d("RequestStreamE2EClientLoggerMessageType",[],(function(a,b,c,d,e,f){a=Object.freeze({REQUEST_STREAM:"request_stream",AMENDMENT:"amendment",AMENDMENT_ACK:"amendment_ack",CANCEL:"cancel",RESPONSE:"response",RESPONSE_ACK:"response_ack",TIMED_REQUEST:"timed_request",INTERRUPT:"interrupt"});f["default"]=a}),66); __d("BladeRunnerEventHandler",["BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes","BladeRunnerTypesInternal","RequestStreamE2EClientLoggerEvent","RequestStreamE2EClientLoggerMessageType","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){var h=1e3;a=function(){function a(a,b,c){this.$2=a,this.$1=b,this.$3=c}var b=a.prototype;b.onProxyResponse=function(a){this.$4(a);var b=[];for(var e=a.getFrames(),f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;this.$2.witnessFrame(h)&&b.push(h)}h=this.$2.getRequest();(g=h.e2eLogger)==null?void 0:g.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").SENT,{},(f=a.getInstrumentationData())==null?void 0:f.auxId);b.length>0&&this.$5(new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(a.batchId,b,a.instrumentationData))};b.onDisconnect=function(){this.$2.resetErrors();var a=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();a.streamId=this.$2.getRequest().streamId;a.status=d("BladeRunnerStreamStatus").StreamStatus.CLOSED;a.shouldRetry=!0;a.retryDelayMs=0;a=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(null,[d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(a)]);this.onProxyResponse(a)};b.$4=function(a){var b=this;a=a.getFrames().filter(function(a){return a.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;g=g.getStatusUpdate();if(g.status==d("BladeRunnerStreamStatus").StreamStatus.CLOSED||g.status==d("BladeRunnerStreamStatus").StreamStatus.REJECTED){this.$2.onError();var i=g.shouldRetry!=null&&g.shouldRetry,j=g.message!=null?g.message:"null";if(i&&this.$2.getErrorCount()<=this.$2.getRetriesAllowed()){g.status=d("BladeRunnerStreamStatus").StreamStatus.STOPPED;var k=h;g.retryDelayMs!=null&&(k=g.retryDelayMs);c("BladeRunnerLogger").info("Can retry: stream "+g.streamId+" closed with status "+g.status+", message "+j+". Error count: "+this.$2.getErrorCount()+", retryDelay "+k+"ms. Already retrying: "+this.$2.getRetryRequestScheduled().toString());this.$2.getRetryRequestScheduled()?c("BladeRunnerLogger").bumpCounter("stream_closed_already_retrying"):(c("BladeRunnerLogger").bumpCounter("stream_closed_will_retry"),this.$2.setRetryRequestScheduled(!0),k>0?c("setTimeoutAcrossTransitions")(function(){return b.$6()},k):this.$6())}else c("BladeRunnerLogger").info("Will not retry: stream "+g.streamId+" closed with status "+g.status+", message "+j+". Error count: "+this.$2.getErrorCount()+", shouldRetry "+i.toString()+". Already retrying: "+this.$2.getRetryRequestScheduled().toString()),i?c("BladeRunnerLogger").bumpCounter("stream_closed_retry_exceeded"):c("BladeRunnerLogger").bumpCounter("stream_closed_no_retry"),this.$3.removeStream(g.streamId)}}};b.$6=function(){this.$2.setRetryRequestScheduled(!1);if(this.$2.isAlive()){var a=this.$1.getUpdatedRequestBody();a!=null&&this.$2.updateRetryRequestPayload(a);this.$3.sendRetryStreamRequest(this.$2)}};b.$5=function(a){c("BladeRunnerLogger").bumpCounter("send_to_handler");var b=[];this.$1.onBatch(a);for(var a=a.getFrames(),e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;try{switch(g.type){case d("BladeRunnerTypes").StreamFrameType.DATA:this.$1.onData(g.getData());b.push(g.getData());break;case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:this.$1.onStatusUpdate(g.getStatusUpdate().status);break;case d("BladeRunnerTypes").StreamFrameType.LOG:g=g.getLog().message;g!=null&&this.$1.onLog(g);break;case d("BladeRunnerTypes").StreamFrameType.DATA_ACK:break;default:throw new Error("Frame with unexpected type")}}catch(a){c("BladeRunnerLogger").bumpCounter("send_to_handler_error"),c("BladeRunnerLogger").exception(a,"Failed sending frame to stream handler")}}this.$7(b)};b.$7=function(a){var b=[];for(var c=0;c=a?i+=1:i=a;return i.toString()}var k=function(){function a(a,b,c,e,f,g,h,i,j,k){this.$10=[];this.$11=!1;this.$1=a;this.$2=b;this.$3=c;this.$4=e;this.$5=f;this.$6=g;this.$7=h;this.$8=i;this.$9=j;this.$12=(a=k)!=null?a:!1;b=d("ConstUriUtils").getUri(window.location.href);b&&(this.$13=b.getDomain())}var b=a.prototype;b.logE2EEvent=function(a,b,c,d){c===void 0&&(c=null);d===void 0&&(d=null);a={request_id:this.$1,resume_id:"0",transport:this.$2,method:this.$3,use_case:this.$4,request_log_context:this.$5,force_log_context:this.$6,e2e_sample_rate:this.$7,message_type:a,event:b,timestamp_ms:j(),aux_id:d,additional_data:c,dgw_stream_group_logging_id:this.$8,dgw_count_prior_streams_in_group:this.$9,domain:this.$13};this.$14(a)};b.$14=function(a){if(!this.$12){c("RtiRequestStreamE2eClientFalcoEvent").log(function(){return a});return}this.$10.push(a);if(this.$11||a.event==c("RequestStreamE2EClientLoggerEvent").FAILURE||a.message_type==c("RequestStreamE2EClientLoggerMessageType").RESPONSE){var b={events:this.$10};c("RtiRequestStreamE2eClientBatchFalcoEvent").log(function(){return b});this.$10=[];this.$11=!0}};b.getRequestId=function(){return this.$1};return a}();function a(a,b,d){if(a==null||a.method==null)return null;var e=!1;h.includes(a.method)&&!c("gkx")("2810")&&(e=!0);if(b==null||b.length==0)return null;b=JSON.parse(b);return b.requestId==null?null:new k(b.requestId,d,a.method,l(a.method,a),b.requestLogContext,b.forceLogContext,b.sampleRate,b.dgwStreamGroupLoggingId,b.dgwCountPriorStreamsInGroup,e)}function l(a,b){if(a==="FBLQ"&&b.config_id)return b.config_id;if(a==="SKY"){if(b.topic){var c=b.topic.lastIndexOf("/");return c>0?b.topic.substr(0,c):b.topic}return}return a}function b(a,b,d,e,f){f===void 0&&(f=null);if(a==null||a.requestId==null||a.clientLoggingDisabled!=null)return;var g={request_id:a.requestId,resume_id:"0",transport:b,e2e_sample_rate:a.sampleRate,message_type:d,event:e,timestamp_ms:j(),aux_id:a.auxId,additional_data:f};c("RtiRequestStreamE2eClientFalcoEvent").log(function(){return g})}g.RequestStreamE2ELogger=k;g.createStreamLogger=a;g.logRequestStreamE2EEventStatic=b}),98); __d("BladeRunnerSocket",["BladeRunnerEventHandler","BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes","BladeRunnerTypesInternal","CurrentUser","FBMqttChannel","MqttPublishListener","Promise","RequestStreamE2EClientLoggerEvent","RequestStreamE2EClientLoggerMessageType","RequestStreamE2ELogger","RequestStreamTransport","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h="Connected",i="Disconnected",j=511*1024,k="/br_sr",l="/sr_res",m=null;function n(a){var b;switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:return(b=a.request)==null?void 0:b.getInstrumentationData();case d("BladeRunnerTypes").StreamFrameType.DATA:return(b=a.data)==null?void 0:b.getInstrumentationData()}return null}function o(a){switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:return c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM;case d("BladeRunnerTypes").StreamFrameType.DATA:return c("RequestStreamE2EClientLoggerMessageType").AMENDMENT}return null}function p(a){if(a===null)return null;switch(a){case d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:return"Accepted";case d("BladeRunnerStreamStatus").StreamStatus.REJECTED:return"Rejected";case d("BladeRunnerStreamStatus").StreamStatus.STARTED:return"Started";case d("BladeRunnerStreamStatus").StreamStatus.STOPPED:return"Stopped";case d("BladeRunnerStreamStatus").StreamStatus.CLOSED:return"Closed"}return null}function q(a){var b={};a==null?void 0:(a=a.frames)==null?void 0:a.forEach(function(a){if(a.type===d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE){a=(a=a.statusUpdate)==null?void 0:a.status;a=p(a);a!==null&&(b.flow_status=a)}});return b}function r(a,b){var c;switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:b.data_base64_size=(c=a.request)==null?void 0:(c=c.payload)==null?void 0:(c=c.length)==null?void 0:c.toString();break;case d("BladeRunnerTypes").StreamFrameType.DATA:b.data_base64_size=(c=a.data)==null?void 0:(b=c.rawDataSize())==null?void 0:b.toString();break}return null}function s(a,b,e){var f=n(a);if(f==null)return;var g=o(a);if(g==null)return;var h=null;switch(b){case d("MqttPublishListener").MqttPublishEvent.SENT:h=c("RequestStreamE2EClientLoggerEvent").SENT;break;case d("MqttPublishListener").MqttPublishEvent.ACKED:h=c("RequestStreamE2EClientLoggerEvent").PUBACK;break;case d("MqttPublishListener").MqttPublishEvent.NOT_ACKED:case d("MqttPublishListener").MqttPublishEvent.NOT_CONNECTED:case d("MqttPublishListener").MqttPublishEvent.PUBLISH_ERROR:h=c("RequestStreamE2EClientLoggerEvent").FAILURE;e.reason==null&&(e.reason=b);break}if(h==null)return;r(a,e);if(((b=a.request)==null?void 0:b.e2eLogger)!=null&&f.clientLoggingDisabled==null){(b=a.request)==null?void 0:b.e2eLogger.logE2EEvent(g,h,e,f.auxId)}else d("RequestStreamE2ELogger").logRequestStreamE2EEventStatic(f,d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,g,h,e)}a=function(){function a(a){this.$1=[],this.$2=0,this.$3=0,this.$4=null,this.$5=0,this.$6=new Map(),this.$7=a!=null?a:c("FBMqttChannel"),this.$8=new Map(),c("BladeRunnerLogger").setClientSessionId(c("uuid")()),this.$9()}a.get=function(){m==null&&(m=new a(c("FBMqttChannel")));return m};var e=a.prototype;e.sendNewStreamRequest=function(b,d){d=new(c("BladeRunnerEventHandler"))(b,d,this);var e=b.getRequest();this.$6.set(e.streamId,d);if(!this.$10()){this.$11(d,e.streamId);return}this.getStreamCount()<=a.maxStreamCount?this.$12(e):(c("BladeRunnerLogger").bumpCounter("socket_request_throttled_max_streams"),c("BladeRunnerLogger").warn("Maximum stream count reached, will not send request: "+JSON.stringify(b.getRequest().getHeaders())),this.$11(d,e.streamId))};e.sendRetryStreamRequest=function(a){this.$12(a.getRequest())};e.sendCancel=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_cancel");var b=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();b.streamId=a.streamId;b.status=d("BladeRunnerStreamStatus").StreamStatus.CLOSED;this.$13(b,a);this.removeStream(a.streamId)};e.sendAmendment=function(a,b,e){c("BladeRunnerLogger").bumpCounter("socket_send_amendment");var f=new(d("BladeRunnerTypesInternal").GatewayStreamData)();f.streamId=a;f.setData(b);e!=null&&(f.instrumentationData=e);this.$14(f)};e.sendAmendmentWithAck=function(a,e,f){var g=this;c("BladeRunnerLogger").bumpCounter("socket_send_amendment");var h=this.$15(),i=new(d("BladeRunnerTypesInternal").GatewayStreamData)();i.streamId=a;i.setData(e);i.shouldAck=!0;i.dataId=h;f!=null&&(i.instrumentationData=f);a=new(b("Promise"))(function(a,b){g.$8.set(h,{resolve:a,reject:b})});this.$14(i);return a};e.$14=function(a){this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newDataFrame(a)),this.$16()};e.sendDataAcks=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_data_ack",a.length),this.$17(a)};e.removeStream=function(a){this.$6["delete"](a)};e.getStreamCount=function(){return this.$6.size};e.getNextStreamId=function(){this.$5++;return this.$5};e.onMQTTStateChanged=function(a){this.$16();if(a!=i&&a!=h||this.$4==a)return;this.$4=a;c("BladeRunnerLogger").info("MQTTStateChanged: "+a);a==i?(c("BladeRunnerLogger").bumpCounter("mqtt_state_disconnected"),this.$18()):a==h&&c("BladeRunnerLogger").bumpCounter("mqtt_state_connected")};e.$12=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_request");this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newRequestFrame(a));if(!this.$16()){(a=a.e2eLogger)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"MQTT Not Connected"})}};e.$13=function(a,b){this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(a));if(this.$16()){(a=b.e2eLogger)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").CANCEL,c("RequestStreamE2EClientLoggerEvent").SENT)}};e.$17=function(a){for(var b=0;b0)try{this.$20(this.$1),a=!0}catch(a){}finally{this.$1=[]}return a};e.$20=function(a){var b=this,e=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(this.$19(),a),f=e.write();if(f.length>j){var g=Math.floor(a.length/2);if(g===0){a.forEach(function(a){return s(a,d("MqttPublishListener").MqttPublishEvent.PUBLISH_ERROR,{reason:"too long"})});var h=new Error("Publish is too long: "+f.length);h.stack;this.$21(e,h,"Publish is too long");throw h}this.$20(a.slice(0,g));this.$20(a.slice(g,a.length))}else try{c("BladeRunnerLogger").info("send message to "+k+" ("+f.length+" bytes)");h={qos:1,skipBuffer:!1};if(e.isInstrumented()){var i=Date.now();h.listener={onEvent:function(b){var c=(Date.now()-i).toString();a.forEach(function(a){s(a,b,{latency:c})})}}}this.$7.publish(k,f,h)["catch"](function(a){b.$21(e,a,"Failed publishing to MQTT")});c("BladeRunnerLogger").bumpCounter("mqtt_publish_success")}catch(a){this.$21(e,a,"Failed publishing to MQTT");throw a}};e.$9=function(){var a=this;c("BladeRunnerLogger").info("Starting socket with endpoint "+this.$7.getEndpoint()+" useragent "+navigator.userAgent);this.onMQTTStateChanged(this.$7.getConnectionState());this.$7.subscribeChannelEvents({onMQTTStateChanged:function(b){a.onMQTTStateChanged(b)},onJSError:function(a){var b=a!=null&&typeof a.isRecoverable==="boolean"?a.isRecoverable:!1;b?c("BladeRunnerLogger").bumpCounter("mqtt_channel_recoverable_error"):(c("BladeRunnerLogger").warn("JS error in MQTTChannel: "+(typeof a=="object"&&a!=null?a.toString():"unknown error")+", "+JSON.stringify(a)),c("BladeRunnerLogger").bumpCounter("mqtt_channel_error"))}});this.$7.subscribe(k,function(a){throw new Error("Unexpected response: "+k+" "+a.toString())});this.$7.subscribe(l,function(b){a.$22(b)})};e.$22=function(a){a=d("BladeRunnerTypesInternal").GatewayStreamBatch.read(a);this.processBatch(a)};e.$21=function(a,b,e){for(var a=a.getFrames(),f=Array.isArray(a),g=0,a=f?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=a.length)break;h=a[g++]}else{g=a.next();if(g.done)break;h=g.value}h=h;if(h.type===d("BladeRunnerTypes").StreamFrameType.REQUEST){var i=h.getRequest(),j=this.$6.get(i.streamId);j!=null&&this.$23(j,i.streamId,d("BladeRunnerStreamStatus").StreamStatus.CLOSED,!0,null)}else if(h.type===d("BladeRunnerTypes").StreamFrameType.DATA){j=h.getData();i=j.dataId;if(j.shouldAck!=null&&j.shouldAck&&i!=null){h=new(d("BladeRunnerTypesInternal").GatewayStreamDataAck)();h.streamId=j.streamId;h.dataId=i;h.success=!1;h.code=d("BladeRunnerTypesInternal").GatewayStreamDataAck.ACK_CODE_FAILED_TO_LAND;h.message=e;this.$24(h)}}}c("BladeRunnerLogger").info("Failed publishing to MQTT: "+b.message);c("BladeRunnerLogger").bumpCounter("mqtt_publish_error")};e.$24=function(a){var b=this.$8.get(a.dataId);b!=null&&(this.$8["delete"](a.dataId),a.success?b.resolve(!0):a.code===d("BladeRunnerTypesInternal").GatewayStreamDataAck.ACK_CODE_LANDED_BUT_NOT_ACCEPTED?b.resolve(!1):b.reject(a.message))};e.processBatch=function(a){try{d("RequestStreamE2ELogger").logRequestStreamE2EEventStatic(a.getInstrumentationData(),d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").RECEIVED,q(a));c("BladeRunnerLogger").bumpCounter("socket_process_batch");var b=JSON.stringify(a);c("BladeRunnerLogger").info("Received batch ("+b.length+" bytes)");b=null;for(var e=a.getFrames(),f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;var i=h.getStreamId();b==null&&(b=i);if(i!=null&&b!=i)throw new Error("Received batch with frames for multiple streams");h.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.$24(h.getDataAck())}if(b!=null){i=this.$6.get(b);i!=null?i.onProxyResponse(a):c("BladeRunnerLogger").info("Received batch with frames for unknown stream id: "+b)}else c("BladeRunnerLogger").info("Received batch with no frames")}catch(a){c("BladeRunnerLogger").exception(a,"Failed processing batch from MQTT");c("BladeRunnerLogger").bumpCounter("socket_process_batch_error");throw a}};e.$18=function(){this.$6.forEach(function(a,b,c){a.onDisconnect()})};e.$11=function(a,b){this.$23(a,b,d("BladeRunnerStreamStatus").StreamStatus.REJECTED,!1,0)};e.$23=function(a,b,c,e,f){var g=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();g.streamId=b;g.status=c;g.shouldRetry=e;g.retryDelayMs=f;b=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(null,[d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(g)]);a.onProxyResponse(b)};e.$10=function(){if(!c("CurrentUser").isLoggedIn()){c("BladeRunnerLogger").bumpCounter("request_stream_user_logged_out");return!1}return!0};return a}();a.maxStreamCount=2e3;g["default"]=a}),98); __d("IRequestStreamRef",[],(function(a,b,c,d,e,f){"use strict"}),null); __d("BladeRunnerStream",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){a=function(){function a(a){this.$1=a}var c=a.prototype;c.getStreamHandler=function(){return this.$1};c.cancel=function(){};c.amendWithAck=function(a){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:return a.abrupt("return",!1);case 1:case"end":return a.stop()}},null,this)};c.amendFireAndForget=function(a){};c.amendWithoutAck=function(a){};c.start=function(){return b("Promise").resolve()};c.isAlive=function(){return!1};c.canAmend=function(){return!1};c.getStatus=function(){return null};c.getStreamId=function(){return 0};return a}();g["default"]=a}),98); __d("BladeRunnerStreamState",["BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes"],(function(a,b,c,d,e,f,g){a=function(){function a(a){this.$1=a,this.$2=null,this.$3=0,this.$4=!1,this.$5=0,this.$6=!1}var b=a.prototype;b.getRequest=function(){return this.$1};b.updateRetryRequestPayload=function(a){this.$1.updateRetryRequestPayload(a)};b.isAlive=function(){return!(this.$2==d("BladeRunnerStreamStatus").StreamStatus.CLOSED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.REJECTED)};b.canAmend=function(){return this.$2==d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.STARTED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.STOPPED};b.getLastStatus=function(){return this.$2};b.setLastStatus=function(a){this.$2=a};b.onError=function(){this.$3+=1};b.getErrorCount=function(){return this.$3};b.resetErrors=function(){this.$3=0};b.getRetryRequestScheduled=function(){return this.$6};b.setRetryRequestScheduled=function(a){this.$6=a};b.witnessFrame=function(a){switch(a.type){case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:var b=a.getStatusUpdate(),c=!0;switch(b.status){case d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:c=!this.$4;this.$4||(this.$4=!0);break;case d("BladeRunnerStreamStatus").StreamStatus.STARTED:c=this.getLastStatus()!=d("BladeRunnerStreamStatus").StreamStatus.STARTED;break;case d("BladeRunnerStreamStatus").StreamStatus.STOPPED:c=this.getLastStatus()==d("BladeRunnerStreamStatus").StreamStatus.STARTED;break;case d("BladeRunnerStreamStatus").StreamStatus.CLOSED:case d("BladeRunnerStreamStatus").StreamStatus.REJECTED:default:c=!0}this.setLastStatus(b.status);return c;case d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST:this.$7(a.getRewriteRequest());return!1;default:return!0}};b.setRetriesAllowed=function(a){this.$5=a};b.getRetriesAllowed=function(){return this.$5};b.$7=function(a){if(!(a.temporary!=null||a.temporary==!0)){a.newBody!=null&&(this.$1.payload=a.newBody);a.newExtraHeader!=null&&(this.$1.extraHeader=a.newExtraHeader,this.$1.headers=JSON.parse(a.newExtraHeader));if(a.patchExtraHeader!=null)try{var b=JSON.parse(a.patchExtraHeader),d=this.$1.extraHeader!=null?JSON.parse(this.$1.extraHeader):{};this.$1.headers==null&&(this.$1.headers={});var e=Object.keys(b);for(var f=0;f1&&a!=null){a=c("RequestStreamE2EClientSamplingConfig").methodToSamplingMultiplier[a];a==0?d=0:a!=null&&(d/=a)}return d==1?1:d/b}function k(a,b,d,e){var f=c("uuid")();(b.requestId==null||b.requestId===""||typeof b.requestId!="string")&&(a.requestId!=null&&typeof a.requestId=="string"?b.requestId=a.requestId:b.requestId=f);b.requestId+="/_"+f.substring(0,4);b.resumeId="0";d!=null?b.sampleRate=d:b.sampleRate=void 0;f="";e!=null&&e.length>0&&(f=e);f.length>0&&(b.requestLogContext!=null&&b.requestLogContext.length>0?b.requestLogContext+=":":b.requestLogContext="",b.requestLogContext+=f);(a==null?void 0:a.method)==="Falco"&&(b.clientLoggingDisabled="Falco");return JSON.stringify(b,Object.keys(b).sort())}function a(a,b,d,e){b&&(!b.requestId.includes("/")&&!b.requestId.includes("#")||h(0,41721));e=j(a.method,(e=e)!=null?e:1);if(c("Random").coinflip(e))return k(a,b||{requestId:""},e,d);return i(b)?k(a,b||{requestId:""},null,d):""}g.isForceLogged=i;g.getSampleRateForLogging=j;g.normalizeInstrumentationData=k;g.validateInstrumentationData=a}),98); __d("BladeRunnerClient",["Base64","BladeRunnerConfig","BladeRunnerLogger","BladeRunnerSocket","BladeRunnerSocketStream","BladeRunnerTypes","BladeRunnerTypesInternal","RequestStreamE2ELogger","RequestStreamE2ESampling","RequestStreamTransport","cr:2046346"],(function(a,b,c,d,e,f,g){a=function(){function a(a,b){this.$2=d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,this.$1=a!=null?a:c("BladeRunnerSocket").get(),b&&(this.$2=b)}var e=a.prototype;e.createStream=function(a,b,c,d){return this.$3(a,b,c,d)};e.requestStream=function(a,c,d,e){a=this.$3(a,c,d,e);a.send();b("cr:2046346")!=null&&b("cr:2046346").startPulsarTest();return a};e.logInfo=function(a){c("BladeRunnerLogger").info(a)};e.bumpCounter=function(a){c("BladeRunnerLogger").bumpCounter(a)};e.$3=function(a,b,e,f){var g=new(d("BladeRunnerTypesInternal").GatewayStreamRequest)();g.streamId=this.$1.getNextStreamId();g.requestType=d("BladeRunnerTypes").StreamRequestType.BLADE_RUNNER;g.headers=c("BladeRunnerConfig").patchRequestHeaders(a);g.extraHeader=JSON.stringify(g.headers);g.payload=b!=null?c("Base64").encode(b):null;g.instrumentationData=d("RequestStreamE2ESampling").validateInstrumentationData(g.headers||{},f);g.e2eLogger=d("RequestStreamE2ELogger").createStreamLogger(g.headers,g.instrumentationData,this.$2);return new(c("BladeRunnerSocketStream"))(e,g,this.$1)};return a}();g["default"]=a}),98); __d("RequestStreamCloseReason",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["UserIntention","StartStreamFailure","StreamError","RemoteTermination","ServerDataEnd","ServerDrain","ReestablishError","ClientError"]);f.RequestStreamCloseReason=a}),66); __d("TWriteBuffer",[],(function(a,b,c,d,e,f){a=function(){function a(b){b===void 0&&(b=a.DEFAULT_BYTE_BUFFER_SIZE),this.$1=new DataView(new ArrayBuffer(b)),this.$2=0}var b=a.prototype;b.write=function(a){this.$2+a.length>this.$1.byteLength&&this.$3(this.$2+a.length);for(var b=0;bthis.$1.byteLength&&this.$3(this.$2+1);this.$1.setUint8(this.$2,a);this.$2++;return 1};b.writeFloatBE=function(a){this.$2+Float32Array.BYTES_PER_ELEMENT>this.$1.byteLength&&this.$3(this.$2+Float32Array.BYTES_PER_ELEMENT);this.$1.setFloat32(this.$2,a);this.$2+=Float32Array.BYTES_PER_ELEMENT;return Float32Array.BYTES_PER_ELEMENT};b.writeDoubleBE=function(a){this.$2+Float64Array.BYTES_PER_ELEMENT>this.$1.byteLength&&this.$3(this.$2+Float64Array.BYTES_PER_ELEMENT);this.$1.setFloat64(this.$2,a);this.$2+=Float64Array.BYTES_PER_ELEMENT;return Float64Array.BYTES_PER_ELEMENT};b.toByteArray=function(){var a=new Uint8Array(this.$1.buffer,0,this.$2);return a};b.currentSize=function(){return this.$2};b.getUnderlyingDataView=function(){return this.$1};b.$3=function(a){a=a*2;if(!Number.isSafeInteger(a))throw new Error("unable to resize");a=new DataView(new ArrayBuffer(a));for(var b=0;b>6|192),b.writeByte(d&63|128);else if((d&64512)==55296){if(e+1>=a.length)throw new Error("UTF-16 string is truncated: ["+d.toString(16)+"]");if((a.charCodeAt(e+1)&64512)!==56320)throw new Error("Invalid UTF-16 string: ["+d.toString(16)+", "+a.charCodeAt(e+1).toString(16)+"]");d=65536+((d&1023)<<10)+(a.charCodeAt(++e)&1023);b.writeByte(d>>18|240);b.writeByte(d>>12&63|128);b.writeByte(d>>6&63|128);b.writeByte(d&63|128)}else b.writeByte(d>>12|224),b.writeByte(d>>6&63|128),b.writeByte(d&63|128)}return b.toByteArray()};g.StringToUtf8=a}),98); __d("ThriftTypes",[],(function(a,b,c,d,e,f){a=Object.freeze({STOP:0,VOID:1,BOOL:2,BYTE:3,I08:3,DOUBLE:4,I16:6,I32:8,I64:10,STRING:11,STRUCT:12,MAP:13,SET:14,LIST:15,FLOAT:19});b=a;f["default"]=b}),66); __d("Utf8ToString",[],(function(a,b,c,d,e,f){var g=function(a,b){throw new Error(a+": ["+b.map(function(a){return a.toString(16)}).toString()+"]")},h=function(a){g("Invalid UTF-8 sequence",a)},i=function(a,b){g("Not enough bytes for "+a+"-byte sequence",b)};a=function(a){var b=0,c=[];while(b=128&&d<194)h([d]);else if(d>=194&&d<224){b>=a.length&&i(2,[d]);var e=a[b++];(e&192)!==128&&h([d,e]);c.push(String.fromCharCode((d&31)<<6|e&63))}else if(d>=240&&d<245){b+2>=a.length&&i(4,[d]);e=a[b++];var f=a[b++],g=a[b++];(d==240&&(!(e>=144&&e<192)||(f&192)!==128||(g&192)!==128)||d>=241&&d<244&&((e&192)!==128||(f&192)!==128||(g&192)!==128)||d==244&&(!(e>=128&&e<144)||(f&192)!==128||(g&192)!==128))&&h([d,e,f,g]);e=((d&7)<<18|(e&63)<<12|(f&63)<<6|g&63)-65536;c.push(String.fromCharCode(55296+(e>>10)));c.push(String.fromCharCode(56320+(e&1023)))}else if(d>=245)h([d]);else{b+1>=a.length&&i(3,[d]);f=a[b++];g=a[b++];d==224?f>=160&&f<192||h([d,f,g]):d>=225&&d<237?f>=128&&f<192||h([d,f,g]):d==237?f>=128&&f<160||h([d,f,g]):d>=238&&d<240&&(f>=128&&f<192||h([d,f,g]));g>=128&&g<192||h([d,f,g]);c.push(String.fromCharCode((d&15)<<12|(f&63)<<6|g&63))}}return c.join("")};f.Utf8ToString=a}),66); __d("jsbi",[],(function(a,b,c,d,e,f){(function(a,b){"object"==typeof f&&"undefined"!=typeof e?e.exports=b():"function"==typeof define&&define.amd?define(b):a.JSBI=b()})(this,function(){"use strict";function a(b){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function c(a,b){for(var c,d=0;dg.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return a=m(this,f(g).call(this,a)),a.sign=c,a}return e(g,c),d(g,[{key:"toDebugString",value:function(){var a=["BigInt["],b=!0,c=!1,d=void 0;try{for(var e,e,f=this[Symbol.iterator]();!(b=(e=f.next()).done);b=!0)e=e.value,a.push((e?(e>>>0).toString(16):e)+", ")}catch(a){c=!0,d=a}finally{try{b||null==f["return"]||f["return"]()}finally{if(c)throw d}}return a.push("]"),a.join("")}},{key:"toString",value:function(){var a=0a||36this.length&&(c=this.length);for(var d=65535&a,a=a>>>16,e=0,f=65535&b,b=b>>>16,i=0;i>>16;var o=j(m,d);m=j(m,a);var p=j(n,d);n=j(n,a);var q=f+(65535&o);o=b+e+(q>>>16)+(o>>>16)+(65535&m)+(65535&p);f=(m>>>16)+(p>>>16)+(65535&n)+(o>>>16),e=f>>>16,f&=65535,b=n>>>16;this.__setDigit(i,65535&q|o<<16)}if(0!==e||0!==f||0!==b)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(a,b,c){for(var d,e=0,f=0;f>>16,this.__setHalfDigit(b+f,d);return e}},{key:"__inplaceSub",value:function(a,b,c){var d=0;if(1&b){b>>=1;for(var e=this.__digit(b),f=65535&e,k=0;k>>1;k++){var l=a.__digit(k),m=(e>>>16)-(65535&l)-d;d=1&m>>>16,this.__setDigit(b+k,m<<16|65535&f),e=this.__digit(b+k+1),f=(65535&e)-(l>>>16)-d,d=1&f>>>16}m=a.__digit(k);l=(e>>>16)-(65535&m)-d;d=1&l>>>16,this.__setDigit(b+k,l<<16|65535&f);if(b+k+1>=this.length)throw new RangeError("out of bounds");0==(1&c)&&(e=this.__digit(b+k+1),f=(65535&e)-(m>>>16)-d,d=1&f>>>16,this.__setDigit(b+a.length,4294901760&e|65535&f))}else{b>>=1;for(var l=0;l>>16;f=(k>>>16)-(m>>>16)-d;d=1&f>>>16,this.__setDigit(b+l,f<<16|65535&e)}k=this.__digit(b+l);m=a.__digit(l);f=(65535&k)-(65535&m)-d;d=1&f>>>16;e=0;0==(1&c)&&(e=(k>>>16)-(m>>>16)-d,d=1&e>>>16),this.__setDigit(b+l,e<<16|65535&f)}return d}},{key:"__inplaceRightShift",value:function(a){if(0!==a){for(var b,c=this.__digit(0)>>>a,d=this.length-1,e=0;e>>a;this.__setDigit(d,c)}}},{key:"__digit",value:function(a){return this[a]}},{key:"__unsignedDigit",value:function(a){return this[a]>>>0}},{key:"__setDigit",value:function(a,b){this[a]=0|b}},{key:"__setDigitGrow",value:function(a,b){this[a]=0|b}},{key:"__halfDigitLength",value:function(){var a=this.length;return 65535>=this.__unsignedDigit(a-1)?2*a-1:2*a}},{key:"__halfDigit",value:function(a){return 65535&this[a>>>1]>>>((1&a)<<4)}},{key:"__setHalfDigit",value:function(a,b){var c=a>>>1,d=this.__digit(c);a=1&a?65535&d|b<<16:4294901760&d|65535&b;this.__setDigit(c,a)}}],[{key:"BigInt",value:function(b){var c=Math.floor,d=Number.isFinite;if("number"==typeof b){if(0===b)return g.__zero();if((0|b)===b)return 0>b?g.__oneDigit(-b,!0):g.__oneDigit(b,!1);if(!d(b)||c(b)!==b)throw new RangeError("The number "+b+" cannot be converted to BigInt because it is not an integer");return g.__fromDouble(b)}if("string"==typeof b){d=g.__fromString(b);if(null===d)throw new SyntaxError("Cannot convert "+b+" to a BigInt");return d}if("boolean"==typeof b)return!0===b?g.__oneDigit(1,!1):g.__zero();if("object"===a(b)){if(b.constructor===g)return b;c=g.__toPrimitive(b);return g.BigInt(c)}throw new TypeError("Cannot convert "+b+" to a BigInt")}},{key:"toNumber",value:function(a){var b=a.length;if(0===b)return 0;if(1===b){var c=a.__unsignedDigit(0);return a.sign?-c:c}c=a.__digit(b-1);var d=k(c),e=32*b-d;if(1024>>=12;var h=d-12,i=12<=d?0:c<<20+d;d=20+d;0>>32-h,i=c<>>32-d,d-=32);h=g.__decideRounding(a,d,b,c);if((1===h||0===h&&1==(1&i))&&(i=i+1>>>0,0===i&&(f++,0!=f>>>20&&(f=0,e++,1023=g.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===a.length&&2===a.__digit(0)){var c=1+(b>>>5),d=a.sign&&0!=(1&b);d=new g(c,d);d.__initializeDigits();var e=1<<(31&b);return d.__setDigit(c-1,e),d}c=null;e=a;for(0!=(1&b)&&(c=a),b>>=1;0!==b;b>>=1)e=g.multiply(e,e),0!=(1&b)&&(null===c?c=e:c=g.multiply(c,e));return c}},{key:"multiply",value:function(a,b){if(0===a.length)return a;if(0===b.length)return b;var c=a.length+b.length;32<=a.__clzmsd()+b.__clzmsd()&&c--;c=new g(c,a.sign!==b.sign);c.__initializeDigits();for(var d=0;dg.__absoluteCompare(a,b))return g.__zero();var c=a.sign!==b.sign,d=b.__unsignedDigit(0);if(1===b.length&&65535>=d){if(1===d)return c===a.sign?a:g.unaryMinus(a);d=g.__absoluteDivSmall(a,d,null)}else d=g.__absoluteDivLarge(a,b,!0,!1);return d.sign=c,d.__trim()}},{key:"remainder",value:function(a,b){if(0===b.length)throw new RangeError("Division by zero");if(0>g.__absoluteCompare(a,b))return a;var c=b.__unsignedDigit(0);if(1===b.length&&65535>=c){if(1===c)return g.__zero();c=g.__absoluteModSmall(a,c);return 0===c?g.__zero():g.__oneDigit(c,a.sign)}c=g.__absoluteDivLarge(a,b,!1,!0);return c.sign=a.sign,c.__trim()}},{key:"add",value:function(a,b){var c=a.sign;return c===b.sign?g.__absoluteAdd(a,b,c):0<=g.__absoluteCompare(a,b)?g.__absoluteSub(a,b,c):g.__absoluteSub(b,a,!c)}},{key:"subtract",value:function(a,b){var c=a.sign;return c===b.sign?0<=g.__absoluteCompare(a,b)?g.__absoluteSub(a,b,c):g.__absoluteSub(b,a,!c):g.__absoluteAdd(a,b,c)}},{key:"leftShift",value:function(a,b){return 0===b.length||0===a.length?a:b.sign?g.__rightShiftByAbsolute(a,b):g.__leftShiftByAbsolute(a,b)}},{key:"signedRightShift",value:function(a,b){return 0===b.length||0===a.length?a:b.sign?g.__leftShiftByAbsolute(a,b):g.__rightShiftByAbsolute(a,b)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(a,b){return 0>g.__compareToBigInt(a,b)}},{key:"lessThanOrEqual",value:function(a,b){return 0>=g.__compareToBigInt(a,b)}},{key:"greaterThan",value:function(a,b){return 0=g.__kMaxLengthBits)return b;var c=a+31>>>5;if(b.lengthg.__kMaxLengthBits)throw new RangeError("BigInt too big");return g.__truncateAndSubFromPowerOfTwo(a,b,!1)}if(a>=g.__kMaxLengthBits)return b;var c=a+31>>>5;if(b.length>>d)return b}return g.__truncateToNBits(a,b)}},{key:"ADD",value:function(a,b){if(a=g.__toPrimitive(a),b=g.__toPrimitive(b),"string"==typeof a)return"string"!=typeof b&&(b=b.toString()),a+b;if("string"==typeof b)return a.toString()+b;if(a=g.__toNumeric(a),b=g.__toNumeric(b),g.__isBigInt(a)&&g.__isBigInt(b))return g.add(a,b);if("number"==typeof a&&"number"==typeof b)return a+b;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(a,b){return g.__compare(a,b,0)}},{key:"LE",value:function(a,b){return g.__compare(a,b,1)}},{key:"GT",value:function(a,b){return g.__compare(a,b,2)}},{key:"GE",value:function(a,b){return g.__compare(a,b,3)}},{key:"EQ",value:function(b,c){for(;;){if(g.__isBigInt(b))return g.__isBigInt(c)?g.equal(b,c):g.EQ(c,b);if("number"==typeof b){if(g.__isBigInt(c))return g.__equalToNumber(c,b);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("string"==typeof b){if(g.__isBigInt(c))return b=g.__fromString(b),null!==b&&g.equal(b,c);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("boolean"==typeof b){if(g.__isBigInt(c))return g.__equalToNumber(c,+b);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("symbol"===a(b)){if(g.__isBigInt(c))return!1;if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("object"===a(b)){if("object"===a(c)&&c.constructor!==g)return b==c;b=g.__toPrimitive(b)}else return b==c}}},{key:"NE",value:function(a,b){return!g.EQ(a,b)}},{key:"__zero",value:function(){return new g(0,!1)}},{key:"__oneDigit",value:function(a,b){b=new g(1,b);return b.__setDigit(0,a),b}},{key:"__decideRounding",value:function(a,b,c,d){if(0b)b=-b-1;else{if(0===c)return-1;c--,d=a.__digit(c),b=31}b=1<>>20;c=c-1023;var d=(c>>>5)+1;a=new g(d,0>a);var e=1048575&g.__kBitConversionInts[1]|1048576,f=g.__kBitConversionInts[0],k=20;c=31&c;var n=0;if(c>>m,e=e<<32-m|f>>>m,f<<=32-m}else if(c===k)n=32,b=e,e=f;else{m=c-k;n=32-m,b=e<>>32-m,e=f<=a&&9<=a)||(159>=a?32==a:131071>=a?160==a||5760==a:196607>=a?(a&=131071,10>=a||40==a||41==a||47==a||95==a||4096==a):65279==a)}},{key:"__fromString",value:function(a){var b=11073741824/i)return null;var k=i*m+j>>>g.__kBitsPerCharTableShift,l=new g(k+31>>>5,!1),n=10>b?b:10,o=10>=g.__kBitsPerCharTableShift;var p=[],q=[],r=!1;do{for(var s,t=0,u=0;;){if(void 0,f-48>>>0>>0>>0>>0>>g.__kBitsPerCharTableShift+5;l.__inplaceMultiplyAdd(z,y,B)}while(!v)}if(e!==d){if(!g.__isWhitespace(f))return null;for(e++;e>>m-f)}if(0!==e){if(d>=a.length)throw new Error("implementation bug");a.__setDigit(d++,e)}for(;d>>1)+(85&d),d=(51&d>>>2)+(51&d),d=(15&d>>>4)+(15&d);d=d;b=b-1;var e=a.__digit(c-1),f=k(e);f=0|(32*c-f+d-1)/d;if(a.sign&&f++,268435456>>q,n=32-q;n>=d;)h[f--]=g.__kConversionChars[l&b],l>>>=d,n-=d}p=(l|e<>>d-n;0!==l;)h[f--]=g.__kConversionChars[l&b],l>>>=d;if(a.sign&&(h[f--]="-"),-1!==f)throw new Error("implementation bug");return h.join("")}},{key:"__toStringGeneric",value:function(a,b,c){var d=a.length;if(0===d)return"";if(1===d){var e=a.__unsignedDigit(0).toString(b);return!1===c&&a.sign&&(e="-"+e),e}e=32*d-k(a.__digit(d-1));d=g.__kMaxBitsPerChar[b];d=d-1;e=e*g.__kBitsPerCharTableMultiplier;e+=d-1,e=0|e/d;var f;d=e+1>>1;e=g.exponentiate(g.__oneDigit(b,!1),g.__oneDigit(d,!1));var h=e.__unsignedDigit(0);if(1===e.length&&65535>=h){f=new g(a.length,!1),f.__initializeDigits();for(var i,j=0,l=2*a.length-1;0<=l;l--)i=j<<16|a.__halfDigit(l),f.__setHalfDigit(l,0|i/h),j=0|i%h;i=j.toString(b)}else{h=g.__absoluteDivLarge(a,e,!0,!0);f=h.quotient;l=h.remainder.__trim();i=g.__toStringGeneric(l,b,!0)}f.__trim();for(var j=g.__toStringGeneric(f,b,!0);i.lengtha?g.__absoluteLess(c):0}},{key:"__compareToNumber",value:function(a,b){if(!0|b){var c=a.sign,d=0>b;if(c!==d)return g.__unequalSign(c);if(0===a.length){if(d)throw new Error("implementation bug");return 0===b?0:-1}if(1d?g.__absoluteGreater(c):eb)return g.__unequalSign(c);if(0===b)throw new Error("implementation bug: should be handled elsewhere");if(0===a.length)return-1;g.__kBitConversionDouble[0]=b;b=2047&g.__kBitConversionInts[1]>>>20;if(2047==b)throw new Error("implementation bug: handled elsewhere");b=b-1023;if(0>b)return g.__absoluteGreater(c);var d=a.length,e=a.__digit(d-1),f=k(e),l=32*d-f;b=b+1;if(lb)return g.__absoluteGreater(c);b=1048576|1048575&g.__kBitConversionInts[1];var m=g.__kBitConversionInts[0],o=20;f=31-f;if(f!==(l-1)%31)throw new Error("implementation bug");var p;l=0;if(f>>q,b=b<<32-q|m>>>q,m<<=32-q}else if(f===o)l=32,p=b,b=m;else{q=f-o;l=32-q,p=b<>>32-q,b=m<>>=0,p>>>=0,e>p)return g.__absoluteGreater(c);if(e>>0,b=m,m=0):p=0;o=a.__unsignedDigit(f);if(o>p)return g.__absoluteGreater(c);if(ob&&a.__unsignedDigit(0)===h(b):0===g.__compareToDouble(a,b)}},{key:"__comparisonResultToBool",value:function(a,b){switch(b){case 0:return 0>a;case 1:return 0>=a;case 2:return 0b;case 3:return a>=b}if(g.__isBigInt(a)&&"string"==typeof b)return b=g.__fromString(b),null!==b&&g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if("string"==typeof a&&g.__isBigInt(b))return a=g.__fromString(a),null!==a&&g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if(a=g.__toNumeric(a),b=g.__toNumeric(b),g.__isBigInt(a)){if(g.__isBigInt(b))return g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if("number"!=typeof b)throw new Error("implementation bug");return g.__comparisonResultToBool(g.__compareToNumber(a,b),c)}if("number"!=typeof a)throw new Error("implementation bug");if(g.__isBigInt(b))return g.__comparisonResultToBool(g.__compareToNumber(b,a),2^c);if("number"!=typeof b)throw new Error("implementation bug");return 0===c?ab:3===c?a>=b:void 0}},{key:"__absoluteAdd",value:function(a,b,c){if(a.length>>16)+(f>>>16)+(m>>>16);c=h>>>16,d.__setDigit(e,65535&m|h<<16)}for(;e>>16)+(m>>>16);c=h>>>16,d.__setDigit(e,65535&m|h<<16)}return e>>16;f=(f>>>16)-(l>>>16)-d;d=1&f>>>16,c.__setDigit(e,65535&m|f<<16)}for(;e>>16;f=(l>>>16)-d;d=1&f>>>16,c.__setDigit(e,65535&m|f<<16)}return c.__trim()}},{key:"__absoluteAddOne",value:function(a,b){var c=2c?0:a.__unsignedDigit(c)>b.__unsignedDigit(c)?1:-1}},{key:"__multiplyAccumulate",value:function(a,b,c,d){if(0!==b){for(var e=65535&b,b=b>>>16,f=0,g=0,k=0,l=0;l>>16,p=a.__digit(l),q=65535&p;p=p>>>16;var r=j(q,e);q=j(q,b);var s=j(p,e);p=j(p,b);n+=g+(65535&r),o+=k+f+(n>>>16)+(r>>>16)+(65535&q)+(65535&s),f=o>>>16,g=(q>>>16)+(s>>>16)+(65535&p)+f,f=g>>>16,g&=65535,k=p>>>16,m=65535&n|o<<16,c.__setDigit(d,m)}for(;0!==f||0!==g||0!==k;d++){r=c.__digit(d);q=(65535&r)+g;s=(r>>>16)+(q>>>16)+k+f;g=0,k=0,f=s>>>16,r=65535&q|s<<16,c.__setDigit(d,r)}}}},{key:"__internalMultiplyAdd",value:function(a,b,c,d,e){for(var c=c,f=0,h=0;h>>16;l=j(l>>>16,b);m=(65535&l)+(m>>>16)+c;c=m>>>16,f=l>>>16,e.__setDigit(h,m<<16|65535&n)}if(e.length>d)for(e.__setDigit(d++,c+f);d>>0,k=0|f/b;d=0|f%b,f=(d<<16|a.__halfDigit(e-1))>>>0;var l=0|f/b;d=0|f%b,c.__setDigit(e>>>1,k<<16|l)}return c}},{key:"__absoluteModSmall",value:function(a,b){for(var c,d=0,e=2*a.length-1;0<=e;e--)c=(d<<16|a.__halfDigit(e))>>>0,d=0|c%b;return d}},{key:"__absoluteDivLarge",value:function(a,b,c,d){var f=b.__halfDigitLength(),e=b.length,n=a.__halfDigitLength()-f,i=null;c&&(i=new g(n+2>>>1,!1),i.__initializeDigits());var l=new g(f+2>>>1,!1);l.__initializeDigits();var m=g.__clz16(b.__halfDigit(f-1));0>>0;p=0|q/k;for(var q=0|q%k,r=b.__halfDigit(f-2),s=a.__halfDigit(n+f-2);j(p,r)>>>0>(q<<16|s)>>>0&&(p--,q+=k,!(65535>>1,o|p))}return d?(a.__inplaceRightShift(m),c?{quotient:i,remainder:a}:a):c?i:void 0}},{key:"__clz16",value:function(a){return k(a)-16}},{key:"__specialLeftShift",value:function(a,b,c){var e=a.length,d=new g(e+c,!1);if(0===b){for(var f=0;f>>32-b;return 0b)throw new RangeError("BigInt too big");var c=b>>>5;b=31&b;var d=a.length,e=0!==b&&0!=a.__digit(d-1)>>>32-b,f=d+c+(e?1:0),m=new g(f,a.sign);if(0===b){for(var n=0;n>>32-b;if(e)m.__setDigit(d+c,n);else if(0!==n)throw new Error("implementation bug")}return m.__trim()}},{key:"__rightShiftByAbsolute",value:function(a,b){var c=a.length,d=a.sign;b=g.__toShiftAmount(b);if(0>b)return g.__rightShiftByMaximum(d);var e=b>>>5;b=31&b;var f=c-e;if(0>=f)return g.__rightShiftByMaximum(d);var i=!1;if(d)if(0!=(a.__digit(e)&(1<>>b,f=c-e-1,c=0;c>>b;m.__setDigit(f,d)}return i&&(m=g.__absoluteAddOne(m,!0,m)),m.__trim()}},{key:"__rightShiftByMaximum",value:function(a){return a?g.__oneDigit(1,!0):g.__zero()}},{key:"__toShiftAmount",value:function(a){if(1g.__kMaxLengthBits?-1:a}},{key:"__toPrimitive",value:function(b){var c=1>>5,d=new g(c,b.sign),c=c-1,e=0;e>>b}return d.__setDigit(c,e),d.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(a,b,c){for(var d=Math.min,e=a+31>>>5,c=new g(e,c),f=0,e=e-1,h=0,d=d(e,b.length);f>>16;j=0-(j>>>16)-h;h=1&j>>>16,c.__setDigit(f,65535&l|j<<16)}for(;f>>16;f=0-(l>>>16)-h;b=65535&d|f<<16}else{a=32-j;l=l<>>a;d=1<<32-a;f=(65535&d)-(65535&l)-h;h=1&f>>>16;j=(d>>>16)-(l>>>16)-h;b=65535&f|j<<16,b&=d-1}return c.__setDigit(e,b),c.__trim()}},{key:"__digitPow",value:function(a,b){for(var c=1;0>>=1,a*=a;return c}}]),g}(k(Array));return n.__kMaxLength=33554432,n.__kMaxLengthBits=n.__kMaxLength<<5,n.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],n.__kBitsPerCharTableShift=5,n.__kBitsPerCharTableMultiplier=1<this.$3&&a.fid-this.$3<=B-1?c+=this.$1.writeByte(a.fid-this.$3<<4|b):(c+=this.$1.writeByte(b),c+=this.writeI16(a.fid));this.$3=a.fid;return c};b.$8=function(a){var b=0,c=this.$9(a.etype);a.size<=B-2?b+=this.$1.writeByte(a.size<<4|c):(b+=this.$1.writeByte(240|c),b+=this.writeVarint32(a.size));return b};b.readFieldBegin=function(){var a=this.$1.readByte(),b=a&15;if(b===c("ThriftTypes").STOP)return{ftype:c("ThriftTypes").STOP,fid:0};a=(a&240)>>>4;var d;a===0?d=this.readI16():d=this.$3+a;a=this.$10(b);(b===h.CT_BOOLEAN_TRUE||b===h.CT_BOOLEAN_FALSE)&&(this.$5=b===h.CT_BOOLEAN_TRUE);this.$3=d;return{ftype:a,fid:d}};b.readListBegin=function(){return this.$11()};b.readListEnd=function(){return 0};b.readSetBegin=function(){return this.$11()};b.readSetEnd=function(){return 0};b.readMapBegin=function(){var a=this.readVarint32();if(a>0){var b=this.$1.readByte(),c=this.$12(b>>4,"readMapBegin:key");b=this.$12(b&15,"readMapBegin:value");return{ktype:this.$10(c),vtype:this.$10(b),size:a}}return{size:a}};b.readMapEnd=function(){return 0};b.$12=function(a,b){if(a<0||a>13)throw new Error(b+" read invalid compact type: "+a);return a};b.$11=function(){var a=this.$1.readByte(),b=this.$12(a&15,"_readListOrSetBegin");b=this.$10(b);a=a>>4&15;a===15&&(a=this.readVarint32());return{etype:b,size:a}};b.readFieldEnd=function(){return 0};b.readByte=function(){this.$6.setUint8(0,this.$1.readByte());return this.$6.getInt8(0)};b.writeByte=function(a){if(ak)throw new Error("byte to write is out of range: "+a);this.$6.setInt8(0,a);return this.$1.writeByte(this.$6.getUint8(0))};b.readFloat=function(){return this.$1.readFloatBE()};b.writeFloat=function(a){return this.$1.writeFloatBE(a)};b.readDouble=function(){return this.$1.readDoubleBE()};b.writeDouble=function(a){return this.$1.writeDoubleBE(a)};b.writeString=function(a){return this.writeBinary(d("StringToUtf8").StringToUtf8(a))};b.skip=function(a){switch(a){case c("ThriftTypes").STOP:return;case c("ThriftTypes").BOOL:this.readBool();break;case c("ThriftTypes").BYTE:this.readByte();break;case c("ThriftTypes").DOUBLE:this.readDouble();break;case c("ThriftTypes").I16:this.readI16();break;case c("ThriftTypes").I32:this.readI32();break;case c("ThriftTypes").I64:this.readI64();break;case c("ThriftTypes").STRING:this.readString();break;case c("ThriftTypes").STRUCT:this.readStructBegin();var b;while(!0){b=this.readFieldBegin();if(b.ftype===c("ThriftTypes").STOP)break;this.skip(b.ftype)}this.readStructEnd();break;case c("ThriftTypes").MAP:b=this.readMapBegin();if(b.size>0&&b.ktype!=null&&b.vtype!=null){var d=b.ktype,e=b.vtype;for(var f=0;fm)throw new Error("trying to write i16 out of range: "+a);return this.writeVarint32(this.i32ToZigzag(a))};b.readI16=function(){var a=this.zigzagToI32(this.readVarint32());if(am)throw new Error("read invalid i16: "+a);return a};b.writeI32=function(a){if(ao)throw new Error("i32 out of range: "+a);return this.writeVarint32(this.i32ToZigzag(a))};b.readI32=function(){return this.zigzagToI32(this.readVarint32())};b.writeI64=function(a){return this.writeVarint64(this.i64ToZigzag(a))};b.readI64=function(){return this.zigzagToI64(this.readVarint64())};b.readBool=function(){var a;this.$5!=null?(a=this.$5,this.$5=null):a=this.$1.readByte()===h.CT_BOOLEAN_TRUE;return a};b.writeBool=function(a){var b=0;this.$4!=null?(b+=this.$7(this.$4,a?i.CT_BOOLEAN_TRUE:i.CT_BOOLEAN_FALSE),this.$4=null):b+=this.$1.writeByte(a?h.CT_BOOLEAN_TRUE:h.CT_BOOLEAN_FALSE);return b};b.readBinary=function(){var a=this.readVarint32();return a===0?new Uint8Array(0):this.$1.readBytes(a)};b.writeBinary=function(a){var b=0;b+=this.writeVarint32(a.length);b+=this.$1.write(a);return b};b.i32ToZigzag=function(a){if(ao)throw new Error("number: "+a+" is out of range of i32");return(a<<1^(a<0?4294967295:0))>>>0};b.zigzagToI32=function(a){if(a<0||a>q)throw new Error("number: "+a+" is out of range of uint32");return a>>>1^-1*(a&1)};b.i64ToZigzag=function(a){if(c("jsbi").greaterThan(a,r)||c("jsbi").lessThan(a,s))throw new Error("i64 out of range: "+a.toString());return c("jsbi").bitwiseXor(c("jsbi").signedRightShift(a,u),c("jsbi").leftShift(a,v))};b.zigzagToI64=function(a){if(c("jsbi").lessThan(a,0)||c("jsbi").greaterThan(a,t))throw new Error("invalid uint64: "+a.toString());return c("jsbi").equal(c("jsbi").bitwiseAnd(a,v),v)?c("jsbi").bitwiseNot(c("jsbi").signedRightShift(a,v)):c("jsbi").signedRightShift(a,v)};b.writeVarint32=function(a){if(a<0||a>q)throw new Error("writeVarint32 received out of range uint32: "+a);a=a;var b=0;while(!0)if(a>>>7===0){this.$1.writeByte(a);b++;break}else this.$1.writeByte(a&127|128),b++,a>>>=7;return b};b.readVarint32=function(){var a=0,b=0,c;while(!0){c=this.$1.readByte();a=(a|(c&127)<>>0;b+=7;if((c&128)==0){if(b===35&&(c&240)!=0)throw new Error("result exceeded 32 bit limit");break}if(b>28)throw new Error("result exceeded 32 bit limit")}return a};b.writeVarint64=function(a){if(c("jsbi").lessThan(a,w)||c("jsbi").greaterThan(a,t))throw new Error("invalid uint64: "+a.toString());a=a;var b=0;while(!0)if(c("jsbi").equal(c("jsbi").signedRightShift(a,x),w)){this.$1.writeByte(c("jsbi").toNumber(a));b++;break}else{var d=c("jsbi").toNumber(c("jsbi").bitwiseOr(c("jsbi").bitwiseAnd(a,z),A));this.$1.writeByte(d);b++;a=c("jsbi").signedRightShift(a,x)}return b};b.readVarint64=function(){var a=w,b=w,d;while(!0){d=c("jsbi").BigInt(this.$1.readByte());a=c("jsbi").bitwiseOr(a,c("jsbi").leftShift(c("jsbi").bitwiseAnd(d,z),b));b=c("jsbi").add(b,x);if(c("jsbi").equal(c("jsbi").bitwiseAnd(d,A),w)){if(c("jsbi").equal(b,y)&&c("jsbi").notEqual(d,v))throw new Error("result exceeded 64 bit limit");break}if(c("jsbi").greaterThan(b,u))throw new Error("result exceeded 64 bit limit")}return a};b.readString=function(){return d("Utf8ToString").Utf8ToString(this.readBinary())};b.getLastFieldId=function(){return this.$3};b.getLastField=function(){return this.$2};b.getBooleanFieldInfo=function(){return this.$4};b.getBooleanValue=function(){return this.$5};b.$9=function(a){return j[a]};b.$10=function(a){switch(a){case h.CT_STOP:return c("ThriftTypes").STOP;case h.CT_BOOLEAN_FALSE:case h.CT_BOOLEAN_TRUE:return c("ThriftTypes").BOOL;case h.CT_BYTE:return c("ThriftTypes").BYTE;case h.CT_I16:return c("ThriftTypes").I16;case h.CT_I32:return c("ThriftTypes").I32;case h.CT_I64:return c("ThriftTypes").I64;case h.CT_DOUBLE:return c("ThriftTypes").DOUBLE;case h.CT_FLOAT:return c("ThriftTypes").FLOAT;case h.CT_BINARY:return c("ThriftTypes").STRING;case h.CT_LIST:return c("ThriftTypes").LIST;case h.CT_SET:return c("ThriftTypes").SET;case h.CT_MAP:return c("ThriftTypes").MAP;case h.CT_STRUCT:return c("ThriftTypes").STRUCT;default:throw new Error("don't know what type")}};return a}();g["default"]=a}),98); __d("TNoOpWriteBuffer",[],(function(a,b,c,d,e,f){a=function(){function a(){this.$1=0}var b=a.prototype;b.write=function(a){this.$1+=a.length;return a.length};b.writeByte=function(a){this.$1++;return 1};b.writeFloatBE=function(a){this.$1+=Float32Array.BYTES_PER_ELEMENT;return Float32Array.BYTES_PER_ELEMENT};b.writeDoubleBE=function(a){this.$1+=Float64Array.BYTES_PER_ELEMENT;return Float64Array.BYTES_PER_ELEMENT};b.toByteArray=function(){throw new Error("operation not supported")};b.currentSize=function(){return this.$1};b.readByte=function(){throw new Error("operation not supported")};b.readBytes=function(a){throw new Error("operation not supported")};b.readFloatBE=function(){throw new Error("operation not supported")};b.readDoubleBE=function(){throw new Error("operation not supported")};return a}();f["default"]=a}),66); __d("TReadBuffer",[],(function(a,b,c,d,e,f){a=function(){function a(a){this.$1=a,this.$2=0}var b=a.prototype;b.readByte=function(){if(this.$2this.$1.length)throw new Error("not enough bytes to read");var b=new Uint8Array(this.$1.buffer,this.$3(),a);this.$2+=a;return b};b.readFloatBE=function(){if(Float32Array.BYTES_PER_ELEMENT+this.$2>this.$1.length)throw new Error("not enough bytes to read");var a=new DataView(this.$1.buffer).getFloat32(this.$3());this.$2+=Float32Array.BYTES_PER_ELEMENT;return a};b.readDoubleBE=function(){if(Float64Array.BYTES_PER_ELEMENT+this.$2>this.$1.length)throw new Error("not enough bytes to read");var a=new DataView(this.$1.buffer).getFloat64(this.$3());this.$2+=Float64Array.BYTES_PER_ELEMENT;return a};b.$3=function(){return this.$2+this.$1.byteOffset};b.getCurrentCursor=function(){return this.$2};b.writeByte=function(a){throw new Error("operation not supported")};b.write=function(a){throw new Error("operation not supported")};b.toByteArray=function(){throw new Error("operation not supported")};b.writeFloatBE=function(a){throw new Error("operation not supported")};b.writeDoubleBE=function(a){throw new Error("operation not supported")};return a}();f["default"]=a}),66); __d("CompactSerializerPolyfill",["TCompactProtocolPolyfill","TNoOpWriteBuffer","TReadBuffer","TWriteBuffer"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){a=new(c("TReadBuffer"))(a);a=new(c("TCompactProtocolPolyfill"))(a);return b(a)}function a(a,b,c){try{return h(a,b)}catch(a){c!=null&&c(a)}return null}function i(a,b,d){d===void 0&&(d=!1);if(d){d=new(c("TNoOpWriteBuffer"))();var e=new(c("TCompactProtocolPolyfill"))(d);b(a,e);e=new(c("TWriteBuffer"))(d.currentSize())}else e=new(c("TWriteBuffer"))();d=new(c("TCompactProtocolPolyfill"))(e);b(a,d);return d.toByteArray()}function b(a,b,c,d){c===void 0&&(c=!1);try{return i(a,b,c)}catch(a){d!=null&&d(a)}return null}g.deserialize=h;g.deserializeNoThrow=a;g.serialize=i;g.serializeNoThrow=b}),98); __d("DGWRequestStreamUtils",["Base64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e){var f={};a=Object.entries(a);for(var g=0;g0&&(f["xrs-instrumentation"]=c("Base64").encode(d));f["XRS-Accept-Ack"]="RSAck";e!=null&&e.ackTimeoutSec!=null&&(f["XRS-SRAck-Timeout"]=e.ackTimeoutSec.toString());return f}function h(a){return Object.keys(a).reduce(function(b,c){(typeof a[c]==="string"||typeof a[c]==="boolean"||typeof a[c]==="number"||typeof a[c]==="object")&&(b[c]=a[c]);return b},{})}function b(a){if(a.response&&a.response.instrumentation_data!=null&&a.response.instrumentation_data.length>0)try{a=JSON.parse(new TextDecoder("utf-8").decode(a.response.instrumentation_data));return a.auxId}catch(a){}return null}function d(a,b){var c=a.headers;a=a.body;b.kill_body===!0&&(a=null);b.new_body!=null&&(a=b.new_body);if(b.new_headers!=null)try{c=h(JSON.parse(b.new_headers))}catch(a){}if(b.patch_headers!=null)try{c=babelHelpers["extends"]({},c,h(JSON.parse(b.patch_headers)))}catch(a){}return{headers:c,body:a}}g.convertHeaders=a;g.cleanHeaders=h;g.getAuxIdFromPayload=b;g.transformContextWithRewriteDelta=d}),98); __d("DGWStream",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";var g=b("$InternalEnum").Mirrored(["ABNORMAL_CLOSURE","GOING_AWAY","SERVER_INTERNAL_ERROR","PREMATURE_CLOSE","UNKNOWN_ERROR","KEEPALIVE_TIMEOUT","TRANSPORT_CLOSED_BEFORE_STREAM_INIT","ESTABLISHMENT_TIMEOUT","UNAUTHORIZED","REJECTED","BAD_REQUEST","DGW_SERVER_ERROR"]);function a(a){switch(a){case g.UNAUTHORIZED:case g.REJECTED:case g.BAD_REQUEST:case g.UNKNOWN_ERROR:case g.SERVER_INTERNAL_ERROR:return!1;default:return!0}}f.StreamError=g;f.isRetryableError=a}),66); __d("DGWStreamHandler",[],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,d,e){this.$2=a,this.$3=b,this.$4=c,this.$5=d,this.$6=e,this.$1=!0}var b=a.prototype;b.onClose=function(a){if(!this.$1)return;this.$2(a)};b.onDataReceived=function(a){if(!this.$1)return;this.$3(a)};b.onError=function(a){if(!this.$1)return;this.$4(a)};b.onStreamMustDrain=function(a,b){if(!this.$1)return;this.$5(a,b)};b.onServerHasFinishedSendingData=function(a){if(!this.$1)return;this.$6(a)};b.stop=function(){this.$1=!1};b.isStopped=function(){return!this.$1};return a}();g["default"]=a}),98); __d("InflightAmends",["Deferred","err"],(function(a,b,c,d,e,f,g){"use strict";var h="inflight_amends_timeout",i="inflight_amends_duplicate_id";a=function(){function a(a,b,c){this.$1=a,this.$3=b,this.$4=c,this.$2=new Map()}var b=a.prototype;b.add=function(a){var b=this;if(this.$2.has(a))throw c("err")(i);var d=new(c("Deferred"))(),e=Date.now(),f=setTimeout(function(){b.$2.has(a)&&b.reject(a,c("err")(h))},this.$1);this.$2.set(a,{id:a,deferred:d,createdTimestampMs:e,timeoutId:f});return d.getPromise()};b.getPromise=function(a){return(a=this.$5(a))==null?void 0:a.deferred.getPromise()};b.resolve=function(a,b){a=this.$5(a);a&&(a.deferred.resolve==null?void 0:a.deferred.resolve(b),this.$3(a.id,Date.now()-a.createdTimestampMs),this.$6(a))};b.reject=function(a,b){a=this.$5(a);a&&(a.deferred.reject==null?void 0:a.deferred.reject(b),this.$4(a.id,b),this.$6(a))};b.$6=function(a){clearTimeout(a.timeoutId),this.$2["delete"](a.id)};b.$5=function(a){return this.$2.get(a)};return a}();g["default"]=a}),98); __d("RequestStreamCommonRequestStreamCommonSerializers",["RequestStreamCommonRequestStreamCommonTypes","ThriftTypes","jsbi"],(function(a,b,c,d,e,f){"use strict";a=function(){return{}};c=function(){return{bytes:Uint8Array.of()}};d=function(){return{message:""}};f=function(){return{reason:b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0)}};var g=function(){return{}},h=function(){return{stream_id:"0",last_sequencer:0,amendment_count:0,last_status:b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0)}},i=function(){return{caller_timestamp_ms:"0"}},j=function(){return{original_ping_timestamp_ms:"0"}},k=function(){return{}},l=function(a,c){c.writeStructBegin("ResponseRewriteRequest"),a.new_headers!=null&&(c.writeFieldBegin({fname:"new_headers",ftype:b("ThriftTypes").STRING,fid:1}),c.writeString(a.new_headers),c.writeFieldEnd()),a.new_body!=null&&(c.writeFieldBegin({fname:"new_body",ftype:b("ThriftTypes").STRING,fid:2}),c.writeBinary(a.new_body),c.writeFieldEnd()),a.patch_headers!=null&&(c.writeFieldBegin({fname:"patch_headers",ftype:b("ThriftTypes").STRING,fid:3}),c.writeString(a.patch_headers),c.writeFieldEnd()),a.kill_body!=null&&(c.writeFieldBegin({fname:"kill_body",ftype:b("ThriftTypes").BOOL,fid:4}),c.writeBool(a.kill_body),c.writeFieldEnd()),a.temporary!=null&&(c.writeFieldBegin({fname:"temporary",ftype:b("ThriftTypes").BOOL,fid:5}),c.writeBool(a.temporary),c.writeFieldEnd()),c.writeFieldStop(),c.writeStructEnd()},m=function(a,c){c.writeStructBegin("ResponseData");c.writeFieldBegin({fname:"bytes",ftype:b("ThriftTypes").STRING,fid:1});if(a.bytes!=null)c.writeBinary(a.bytes);else{var d=Uint8Array.of();c.writeBinary(d)}c.writeFieldEnd();a.metadata!=null&&(c.writeFieldBegin({fname:"metadata",ftype:b("ThriftTypes").STRING,fid:2}),c.writeString(a.metadata),c.writeFieldEnd());c.writeFieldStop();c.writeStructEnd()},n=function(a,c){c.writeStructBegin("LogMessage");c.writeFieldBegin({fname:"message",ftype:b("ThriftTypes").STRING,fid:1});if(a.message!=null)c.writeString(a.message);else{a="";c.writeString(a)}c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd()},o=function(a,c){c.writeStructBegin("Termination");c.writeFieldBegin({fname:"reason",ftype:b("ThriftTypes").I32,fid:1});if(a.reason!=null){var d;c.writeI32((d=a.reason)!=null?d:0)}else{d=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0);c.writeI32((d=d)!=null?d:0)}c.writeFieldEnd();a.message!=null&&(c.writeFieldBegin({fname:"message",ftype:b("ThriftTypes").STRING,fid:2}),c.writeString(a.message),c.writeFieldEnd());a.retry_delay_ms!=null&&(c.writeFieldBegin({fname:"retry_delay_ms",ftype:b("ThriftTypes").I64,fid:3}),c.writeI64(b("jsbi").BigInt(a.retry_delay_ms)),c.writeFieldEnd());c.writeFieldStop();c.writeStructEnd()},p=function(a,c){c.writeStructBegin("AmendStreamAck"),a.amendment_id!=null&&(c.writeFieldBegin({fname:"amendment_id",ftype:b("ThriftTypes").I64,fid:1}),c.writeI64(b("jsbi").BigInt(a.amendment_id)),c.writeFieldEnd()),a.accepted!=null&&(c.writeFieldBegin({fname:"accepted",ftype:b("ThriftTypes").BOOL,fid:2}),c.writeBool(a.accepted),c.writeFieldEnd()),a.result!=null&&(c.writeFieldBegin({fname:"result",ftype:b("ThriftTypes").STRING,fid:3}),c.writeBinary(a.result),c.writeFieldEnd()),c.writeFieldStop(),c.writeStructEnd()},q=function(a,c){c.writeStructBegin("StreamCheck");c.writeFieldBegin({fname:"stream_id",ftype:b("ThriftTypes").I64,fid:1});if(a.stream_id!=null)c.writeI64(b("jsbi").BigInt(a.stream_id));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();c.writeFieldBegin({fname:"last_sequencer",ftype:b("ThriftTypes").I32,fid:2});if(a.last_sequencer!=null)c.writeI32(a.last_sequencer);else{d=0;c.writeI32(d)}c.writeFieldEnd();c.writeFieldBegin({fname:"amendment_count",ftype:b("ThriftTypes").I32,fid:4});if(a.amendment_count!=null)c.writeI32(a.amendment_count);else{d=0;c.writeI32(d)}c.writeFieldEnd();c.writeFieldBegin({fname:"last_status",ftype:b("ThriftTypes").I32,fid:3});if(a.last_status!=null){c.writeI32((d=a.last_status)!=null?d:0)}else{a=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0);c.writeI32((d=a)!=null?d:0)}c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd()},r=function(a,c){c.writeStructBegin("Ping");c.writeFieldBegin({fname:"caller_timestamp_ms",ftype:b("ThriftTypes").I64,fid:1});if(a.caller_timestamp_ms!=null)c.writeI64(b("jsbi").BigInt(a.caller_timestamp_ms));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();if(a.streams_to_check!=null){c.writeFieldBegin({fname:"streams_to_check",ftype:b("ThriftTypes").LIST,fid:2});c.writeListBegin({etype:b("ThriftTypes").STRUCT,size:a.streams_to_check.length});for(var d=a.streams_to_check,a=Array.isArray(d),e=0,d=a?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(a){if(e>=d.length)break;f=d[e++]}else{e=d.next();if(e.done)break;f=e.value}f=f;q(f,c)}c.writeListEnd();c.writeFieldEnd()}c.writeFieldStop();c.writeStructEnd()},s=function(a,c){c.writeStructBegin("Pong");c.writeFieldBegin({fname:"original_ping_timestamp_ms",ftype:b("ThriftTypes").I64,fid:1});if(a.original_ping_timestamp_ms!=null)c.writeI64(b("jsbi").BigInt(a.original_ping_timestamp_ms));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();if(a.stream_ids_missing!=null){c.writeFieldBegin({fname:"stream_ids_missing",ftype:b("ThriftTypes").LIST,fid:2});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_missing.length});for(var d=a.stream_ids_missing,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;c.writeI64(b("jsbi").BigInt(g))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_behind!=null){c.writeFieldBegin({fname:"stream_ids_behind",ftype:b("ThriftTypes").LIST,fid:3});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_behind.length});for(var g=a.stream_ids_behind,f=Array.isArray(g),e=0,g=f?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(e>=g.length)break;d=g[e++]}else{e=g.next();if(e.done)break;d=e.value}d=d;c.writeI64(b("jsbi").BigInt(d))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_with_lost_amendments!=null){c.writeFieldBegin({fname:"stream_ids_with_lost_amendments",ftype:b("ThriftTypes").LIST,fid:4});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_with_lost_amendments.length});for(var d=a.stream_ids_with_lost_amendments,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;c.writeI64(b("jsbi").BigInt(g))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_with_wrong_status!=null){c.writeFieldBegin({fname:"stream_ids_with_wrong_status",ftype:b("ThriftTypes").LIST,fid:5});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_with_wrong_status.length});for(var g=a.stream_ids_with_wrong_status,f=Array.isArray(g),e=0,g=f?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(e>=g.length)break;d=g[e++]}else{e=g.next();if(e.done)break;d=e.value}a=d;c.writeI64(b("jsbi").BigInt(a))}c.writeListEnd();c.writeFieldEnd()}c.writeFieldStop();c.writeStructEnd()},t=function(a,c){c.writeStructBegin("StreamResponseDelta");if(a.flow_status!=null){var d;c.writeFieldBegin({fname:"flow_status",ftype:b("ThriftTypes").I32,fid:1});c.writeI32((d=a.flow_status)!=null?d:0);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.log!=null){c.writeFieldBegin({fname:"log",ftype:b("ThriftTypes").STRUCT,fid:2});n(a.log,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.rewrite!=null){c.writeFieldBegin({fname:"rewrite",ftype:b("ThriftTypes").STRUCT,fid:3});l(a.rewrite,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.data!=null){c.writeFieldBegin({fname:"data",ftype:b("ThriftTypes").STRUCT,fid:4});m(a.data,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.termination!=null){c.writeFieldBegin({fname:"termination",ftype:b("ThriftTypes").STRUCT,fid:5});o(a.termination,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.amend_ack!=null){c.writeFieldBegin({fname:"amend_ack",ftype:b("ThriftTypes").STRUCT,fid:6});p(a.amend_ack,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}c.writeFieldStop();c.writeStructEnd()},u=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.new_headers=a.readString():a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.new_body=a.readBinary():a.skip(e);break;case 3:e===b("ThriftTypes").STRING?c.patch_headers=a.readString():a.skip(e);break;case 4:e===b("ThriftTypes").BOOL?c.kill_body=a.readBool():a.skip(e);break;case 5:e===b("ThriftTypes").BOOL?c.temporary=a.readBool():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();return c},v=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.bytes=a.readBinary():a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.metadata=a.readString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.bytes===void 0&&(c.bytes=Uint8Array.of());return c},w=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.message=a.readString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.message===void 0&&(c.message="");return c},x=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I32?c.reason=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(a.readI32()):a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.message=a.readString():a.skip(e);break;case 3:e===b("ThriftTypes").I64?c.retry_delay_ms=a.readI64().toString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.reason===void 0&&(c.reason=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0));return c},y=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.amendment_id=a.readI64().toString():a.skip(e);break;case 2:e===b("ThriftTypes").BOOL?c.accepted=a.readBool():a.skip(e);break;case 3:e===b("ThriftTypes").STRING?c.result=a.readBinary():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();return c},z=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.stream_id=a.readI64().toString():a.skip(e);break;case 2:e===b("ThriftTypes").I32?c.last_sequencer=a.readI32():a.skip(e);break;case 4:e===b("ThriftTypes").I32?c.amendment_count=a.readI32():a.skip(e);break;case 3:e===b("ThriftTypes").I32?c.last_status=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(a.readI32()):a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.stream_id===void 0&&(c.stream_id="0");c.last_sequencer===void 0&&(c.last_sequencer=0);c.amendment_count===void 0&&(c.amendment_count=0);c.last_status===void 0&&(c.last_status=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0));return c},A=function(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.caller_timestamp_ms=a.readI64().toString():a.skip(e);break;case 2:if(e===b("ThriftTypes").LIST){c.streams_to_check=[];d=a.readListBegin();for(var f=0;f=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;b("RequestStreamCommonRequestStreamCommonSerializers").serializeStreamResponseDelta(g,c)}c.writeListEnd()}else{g=[];c.writeListBegin({etype:b("ThriftTypes").STRUCT,size:g.length});for(var f=0;f0)return new(b("Promise"))(function(a){return setTimeout(a,k)}).then(function(){return h.$24()});else return this.$24()}};e.$25=function(){return this.$11!=null};e.$21=function(a,b){var e,f=this,g=typeof a=="string"?new TextEncoder().encode(a):a,h=String(this.$16++);(e=this.$6)==null?void 0:e.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").RECEIVED,{data_size:(a=a==null?void 0:(e=a.length)==null?void 0:e.toString())!=null?a:"0"},h);e=p(this.$5,h);a={amend:{amendment:g,instrumentation_data:e}};b&&a.amend&&(a.amend.amendment_id=h);g=d("CompactSerializerPolyfill").serialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload);var i=Date.now();if(this.$26()&&this.$11!=null){b&&this.$17.add(h);this.$11.send(g).then(function(a){var b;o(a);a=(Date.now()-i).toString();(b=f.$6)==null?void 0:b.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").PUBACK,{latency:a},h)})["catch"](function(a){var b;(b=f.$6)==null?void 0:b.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:a.message},h);f.$17.reject(h,a)});(e=this.$6)==null?void 0:e.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").SENT,{},h);return h}else{(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"not_started"},h)}};e.$23=function(a){var e=this,f,g,i,j,k,l,m;return b("regeneratorRuntime").async(function(n){while(1)switch(n.prev=n.next){case 0:if(this.$9){n.next=32;break}g=this.$2||this.$1;n.prev=2;i=this.$27();this.$13=i;j=d("DGWRequestStreamUtils").convertHeaders(babelHelpers["extends"]({},g.headers,this.$28()),g.body!=null,this.$5);n.next=8;return b("regeneratorRuntime").awrap(this.$18.establishStream(j,i,this.$7));case 8:this.$11=n.sent;n.next=19;break;case 11:n.prev=11;n.t0=n["catch"](2);if(!(d("DGWStream").StreamError.isValid(n.t0)&&!d("DGWStream").isRetryableError(n.t0))){n.next=15;break}throw new Error("StreamError: "+n.t0);case 15:if(!(d("DGWStream").StreamError.isValid(n.t0)&&d("DGWStream").isRetryableError(n.t0))){n.next=18;break}this.$29(n.t0);return n.abrupt("return");case 18:throw n.t0;case 19:if(!this.$9){n.next=22;break}this.$22(d("RequestStreamCloseReason").RequestStreamCloseReason.UserIntention,"user cancel the stream",!0);return n.abrupt("return");case 22:k=new Uint8Array([]);g.body!=null&&(l={request_body:{body:g.body}},k=d("CompactSerializerPolyfill").serialize(l,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload));if(this.$11){n.next=26;break}throw new Error("dgwstream_is_null");case 26:m=this.$11.send(k).then(function(a){o(a),e.$9&&e.$22(d("RequestStreamCloseReason").RequestStreamCloseReason.UserIntention,"user cancel the stream",!0)});(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").SENT,{},a);this.$12=h;return n.abrupt("return",m);case 32:throw new Error("stream_already_canceled");case 33:case"end":return n.stop()}},null,this,[[2,11]])};e.$26=function(){return this.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started||this.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Accepted};e.$22=function(a,b,c){var e;this.$11&&a!==d("RequestStreamCloseReason").RequestStreamCloseReason.StreamError&&a!==d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination&&this.$11.close();(e=this.$13)==null?void 0:e.stop();this.$11=null;this.$10=!0;this.$30(d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped)&&this.$3.onFlowStatus(d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped);c&&!this.$9&&this.$3.onTermination("terminate stream because "+a+" with msg : "+b)};e.$30=function(a){var b=this.$8;this.$8=d("RequestStreamState").getNextState(b,a);return b!==this.$8};e.$24=function(){this.$12--;return this.start(!0)};e.$31=function(a){var b=this;a=d("CompactSerializerPolyfill").deserialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").deserializePayload);if(a.response){var e=d("DGWRequestStreamUtils").getAuxIdFromPayload(a);if(!this.$25()){var f;(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"response_received_after_close"},e);return}(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").RECEIVED,q(a.response),e);f=a.response.delta;f.forEach(function(a){if(a.data)b.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started&&b.$3.onData(new TextDecoder("utf-8").decode(a.data.bytes));else if(a.flow_status){var c=a.flow_status;b.$30(c)&&b.$3.onFlowStatus(c)}else if(a.termination){c=(c=a.termination.message)!=null?c:"unknown termination msg";b.$2=null;b.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination,c,a.termination.reason===d("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.TryAgain,a.termination.retry_delay_ms!=null?parseInt(a.termination.retry_delay_ms,10):null)}else if(a.log)b.$3.onLog(a.log.message);else if(a.amend_ack){c=a.amend_ack.amendment_id;if(c!=null){var e=a.amend_ack.accepted||!1;b.$17.resolve(c,e)}}else if(a.rewrite){c=d("DGWRequestStreamUtils").transformContextWithRewriteDelta(b.$1,a.rewrite);a.rewrite.temporary===!0?b.$2=c:b.$1=c}});(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").SENT,{},e);a.response.ack_level===d("RequestStreamCommonRequestStreamCommonTypes").AckLevel.Device&&a.response.response_id!=null&&this.$32(a.response.response_id,e)}else{(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"unexpected_payload_type"})}};e.$32=function(a,b){a={ack:{response_id:a,ack:d("RequestStreamSingleChannelSingleChannelRequestStreamTypes").Ack.Success}};a=d("CompactSerializerPolyfill").serialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload);if(this.$11!=null){this.$11.send(a);(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE_ACK,c("RequestStreamE2EClientLoggerEvent").SENT,{},b)}else{(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE_ACK,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"not_started"},b)}};e.$20=function(){return this.$1.headers.method==="Falco"};e.$27=function(){return new(c("DGWStreamHandler"))(this.$33.bind(this),this.$34.bind(this),this.$29.bind(this),this.$35.bind(this),this.$36.bind(this))};e.$36=function(a){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"OnClose: Server Has FinishedSendingData"});this.$22(d("RequestStreamCloseReason").RequestStreamCloseReason.ServerDataEnd,"Client receive OnServerHasFinishedSendingData and Server will not send more data",!0)};e.$33=function(a){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"OnClose: Server Close Connection"});this.$22(d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination,"Client receive OnClose and Server will not send more data",!0)};e.$34=function(a){try{this.$31(a)}catch(b){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:b.message});this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.ClientError,b.message,!1)}};e.$29=function(a){var b="",c=d("DGWStream").isRetryableError(a);b="StreamError: Received "+a;this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.StreamError,b,c)};e.$35=function(a,b){this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.ServerDrain,b,!0)};e.$28=function(){var a={},b=c("RTISubscriptionManagerConfig").bladerunner_www_sandbox;b!=null&&(a[n]=b);return a};return a}();g["default"]=a}),98); __d("DGWAuth",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";var g=b("$InternalEnum")({TEST:"0:0",FACEBOOK:"1:0",INTERNALFB:"2:0",ENTERPRISEFB:"7:0",RECRUITINGFB:"8:0"});function a(a){if(a==="TEST")return g.TEST;else if(a==="FACEBOOK")return g.FACEBOOK;else if(a==="INTERNALFB")return g.INTERNALFB;else if(a==="ENTERPRISEFB")return g.ENTERPRISEFB;else if(a==="RECRUITINGFB")return g.RECRUITINGFB;else{a=new Error("failed to convert string ("+a+") to DGWAuth Type");a.stack;throw a}}function c(a){if(a===g.FACEBOOK)return"FACEBOOK";else if(a===g.INTERNALFB)return"INTERNALFB";else if(a===g.ENTERPRISEFB)return"ENTERPRISEFB";else if(a===g.RECRUITINGFB)return"RECRUITINGFB";else return"TEST"}f.DGWAuth=g;f.fromStringToDGWAuth=a;f.fromDGWAuthToString=c}),66); __d("DGWConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";e=3e4;var g="prod",h=128,i=(b=b("$InternalEnum"))({NORMAL_CLOSURE:1e3,GOING_AWAY:1001,ABNORMAL_CLOSURE:1006,SERVER_INTERNAL_ERROR:1011,GRACEFUL_CLOSE:4e3,KEEPALIVE_TIMEOUT:4001,DGW_SERVER_ERROR:4002,UNAUTHORIZED:4003,REJECTED:4004,BAD_REQUEST:4005}),j=b({DrainReason_ELB:0,DrainReason_SLB:1,DrainReason_AppServerPush:2,DrainReason_GracePeriodExpired:3,DrainReason_Unknown:4});function a(a){switch(a){case j.DrainReason_ELB:return"DrainReason_ELB";case j.DrainReason_SLB:return"DrainReason_SLB";case j.DrainReason_AppServerPush:return"DrainReason_AppServerPush";case j.DrainReason_GracePeriodExpired:return"DrainReason_GracePeriodExpired";case j.DrainReason_Unknown:return"DrainReason_Unknown"}}var k=b({DgwCodecReturnCode_Success:0,DgwCodecReturnCode_Failure:1,DgwCodecReturnCode_NotEnoughData:2,DgwCodecReturnCode_OutOfMemory:3,DgwCodecReturnCode_AckIdOutOfBounds:4,DgwCodecReturnCode_InvalidParameter:5,DgwCodecReturnCode_InvalidFrameType:6,DgwCodecReturnCode_InvalidAckFrameLength:7,DgwCodecReturnCode_InvalidDrainReason:8,DgwCodecReturnCode_InvalidDataFrameLength:9,DgwCodecReturnCode_InvalidDrainFrameLength:10});function c(a){switch(a){case k.DgwCodecReturnCode_Success:return"DgwCodecReturnCode_Success";case k.DgwCodecReturnCode_Failure:return"DgwCodecReturnCode_Failure";case k.DgwCodecReturnCode_NotEnoughData:return"DgwCodecReturnCode_NotEnoughData";case k.DgwCodecReturnCode_OutOfMemory:return"DgwCodecReturnCode_OutOfMemory";case k.DgwCodecReturnCode_AckIdOutOfBounds:return"DgwCodecReturnCode_AckIdOutOfBounds";case k.DgwCodecReturnCode_InvalidParameter:return"DgwCodecReturnCode_InvalidParameter";case k.DgwCodecReturnCode_InvalidFrameType:return"DgwCodecReturnCode_InvalidFrameType";case k.DgwCodecReturnCode_InvalidAckFrameLength:return"DgwCodecReturnCode_InvalidAckFrameLength";case k.DgwCodecReturnCode_InvalidDrainReason:return"DgwCodecReturnCode_InvalidDrainReason";case k.DgwCodecReturnCode_InvalidDataFrameLength:return"DgwCodecReturnCode_InvalidDataFrameLength";case k.DgwCodecReturnCode_InvalidDrainFrameLength:return"DgwCodecReturnCode_InvalidDrainFrameLength"}}var l=b({DgwFrameType_Data:0,DgwFrameType_SmallAck:1,DgwFrameType_Empty:2,DgwFrameType_Drain:3,DgwFrameType_Deauth:4,DgwFrameType_StreamGroup_DeprecatedEstabStream:5,DgwFrameType_StreamGroup_DeprecatedData:6,DgwFrameType_StreamGroup_SmallAck:7,DgwFrameType_StreamGroup_DeprecatedEndOfData:8,DgwFrameType_Ping:9,DgwFrameType_Pong:10});function d(a){switch(a){case l.DgwFrameType_Data:return"DgwFrameType_Data";case l.DgwFrameType_SmallAck:return"DgwFrameType_SmallAck";case l.DgwFrameType_Empty:return"DgwFrameType_Empty";case l.DgwFrameType_Drain:return"DgwFrameType_Drain";case l.DgwFrameType_Deauth:return"DgwFrameType_Deauth";case l.DgwFrameType_StreamGroup_DeprecatedEstabStream:return"DgwFrameType_StreamGroup_DeprecatedEstabStream";case l.DgwFrameType_StreamGroup_DeprecatedData:return"DgwFrameType_StreamGroup_DeprecatedData";case l.DgwFrameType_StreamGroup_SmallAck:return"DgwFrameType_StreamGroup_SmallAck";case l.DgwFrameType_StreamGroup_DeprecatedEndOfData:return"DgwFrameType_StreamGroup_DeprecatedEndOfData";case l.DgwFrameType_Ping:return"DgwFrameType_Ping";case l.DgwFrameType_Pong:return"DgwFrameType_Pong"}}b={HEADER_APPID:"x-dgw-appid",HEADER_APPVERSION:"x-dgw-appversion",HEADER_AUTHTYPE:"x-dgw-authtype",HEADER_AUTHTOKEN:"Authorization",HEADER_DGW_VERSION:"x-dgw-version",HEADER_LOGGING_ID:"x-dgw-loggingid",HEADER_REGIONHINT:"x-dgw-regionhint",HEADER_TARGET_TIER:"x-dgw-tier",HEADER_UUID:"x-dgw-uuid",HEADER_ESTABLISH_STREAM_FRAME_BASE64:"x-dgw-establish-stream-frame-base64",kShadowHeader:"x-dgw-shadow",APPHEADER_PREFIX:"x-dgw-app-"};f.DEFAULT_ACK_TIMEOUT_MS=e;f.DEFAULT_SERVICE_TIER=g;f.MAX_ACK_ID=h;f.WebsocketCloseCodes=i;f.DrainReason=j;f.drainReasonToDrainReasonString=a;f.DgwCodecReturnCode=k;f.DgwCodecReturnCodeToString=c;f.DgwFrameType=l;f.frameTypeToString=d;f.HEADER_CONSTANTS=b}),66); __d("DgwClientFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1755537");c=b("FalcoLoggerInternal").create("dgw_client",a);e.exports=c}),null); __d("DGWLoggingContext",["$InternalEnum","DgwClientFalcoEvent","ODS","Random"],(function(a,b,c,d,e,f,g){"use strict";a="dgw_client";e=b("$InternalEnum")({STREAM_COMPONENT:"WebStream",STREAM_GROUP_COMPONENT:"WebStreamGroup",GROUPED_STREAM_COMPONENT:"GroupedWebStream",WEBSOCKET_TRANSPORT_COMPONENT:"WebSocketTransport",ACK_MANAGER_COMPONENT:"WebStreamAckManager",CODEC_COMPONENT:"WebCodec"});f=function(){function a(a,b,c,d,e,f,g){f===void 0&&(f=!1),g===void 0&&(g=!1),this.$5=a,this.$1=b,this.$4=c,this.$3=d,this.$6=e,this.$2=f,this.$7=g}var b=a.prototype;b.bumpODSKey=function(a,b,c){c===void 0&&(c=1);if(!d("Random").coinflip(c))return;a=a+"."+b;d("ODS").bumpEntityKey(3589,"dgw_web_client",a,c)};b.logEvent=function(a,b,c,d){d===void 0&&(d=!1),this.$2||this.$8(a,b,null,c,d)};b.$8=function(a,b,d,e,f){var g=this;f===void 0&&(f=!1);if(f&&!this.$7)return;(this.$1!=null||this.$6!=null)&&c("DgwClientFalcoEvent").log(function(){return{event:b,logging_id:g.$1,dgw_version:g.$5,error:d,uuid:g.$3,dgw_component:a,extra_info:e,destination_tier:g.$4,sg_transport_id:g.$6}})};b.logError=function(a,b,c,d,e){e===void 0&&(e=!1),this.$2||this.$8(a,b,c,d,e)};b.logWarn=function(a,b,c,d,e){e===void 0&&(e=!1),this.$2||this.$8(a,b,c,d,e)};return a}();g.DGW_MODULE=a;g.DGWLoggingComponent=e;g.DGWLoggingContext=f}),98); __d("DGWStreamGroupCallbacks",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum")({TRANSPORT_SERVER_INTERNAL_ERROR:0,TRANSPORT_ABNORMAL_CLOSURE:1,TRANSPORT_GOING_AWAY:2,TRANSPORT_UNKNOWN_ERROR:3,TRANSPORT_KEEPALIVE_TIMEOUT:4,TRANSPORT_UNAUTHORIZED:5,TRANSPORT_REJECTED:6,TRANSPORT_BAD_REQUEST:7,TRANSPORT_DGW_SERVER_ERROR:8});c=function(){function a(){}var b=a.prototype;b.onStreamGroupError=function(){};b.onStreamGroupMustDrain=function(){};b.onStreamGroupTransportClose=function(){};return a}();f.DGWStreamGroupError=a;f.NoOpDGWStreamGroupCallbacks=c}),66); __d("DGWUtils",["Base64","DGWConstants","DGWLoggingContext","Random","URI","cr:4206","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=4;function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=d("Random").random()*16|0;a=a=="x"?b:b&3|8;return a.toString(16)})}function i(a){var b=new TextDecoder();b=b.decode(a);a=c("Base64").encode(b);b=a.replace(/\+/gi,"-").replace(/\//gi,"_").replace(/=/gi,"");return b}var j=null;e=function(){function a(){}a.initialize=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(!(j!=null)){a.next=2;break}return a.abrupt("return");case 2:a.next=4;return b("regeneratorRuntime").awrap(b("cr:4206")());case 4:j=a.sent;case 5:case"end":return a.stop()}},null,this)};a.constructConnectUrl=function(a){var b,e=a.appId,f=a.appVersion,g=a.authType,h=a.dgwVersion,j=a.fbId,k=a.tier,l=a.loggingId,m=a.headers,n=a.endpoint,o=a.serviceId,p=a.regionHint;a=a.establishStreamFrame;var q=(b={},b[d("DGWConstants").HEADER_CONSTANTS.HEADER_APPID]=e,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_APPVERSION]=f,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_AUTHTYPE]=g,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_DGW_VERSION]=h,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_UUID]=j,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_TARGET_TIER]=k,b);a!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_ESTABLISH_STREAM_FRAME_BASE64]=i(a));l!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_LOGGING_ID]=l);p!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_REGIONHINT]=p);Object.keys(m).forEach(function(a){var b=d("DGWConstants").HEADER_CONSTANTS.APPHEADER_PREFIX+a;Object.prototype.hasOwnProperty.call(q,b)||(q[b]=m[a])});e=new(c("URI"))(n);e.setQueryData(q);e.setPath(e.getPath()+"/"+o);e.toString().length>2e3&&(delete q[d("DGWConstants").HEADER_CONSTANTS.HEADER_ESTABLISH_STREAM_FRAME_BASE64],e.setQueryData(q));return e.toString()};return a}();f=function(){function a(a,b){this.$1=null,this.$2=a,this.$3=b}a.initialize=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(!(j!=null)){a.next=2;break}return a.abrupt("return");case 2:a.next=4;return b("regeneratorRuntime").awrap(b("cr:4206")());case 4:j=a.sent;case 5:case"end":return a.stop()}},null,this)};var c=a.prototype;c.malloc=function(a){try{a=j.__malloc(a);if(a===0){var b;(b=this.$2)==null?void 0:b.logError(d("DGWLoggingContext").DGWLoggingComponent.CODEC_COMPONENT,"wasm malloc failure","malloc returned 0");return-1}return a}catch(a){(b=this.$2)==null?void 0:b.logError(d("DGWLoggingContext").DGWLoggingComponent.CODEC_COMPONENT,"wasm malloc failure","exception during malloc",a.toString());return-1}};c.free=function(a){j.__free(a)};c.append=function(a){if(this.$1==null){this.$1=a;return}var b=this.$1.length,c=new Uint8Array(b+a.length);c.set(this.$1,0);c.set(a,b);this.$1=c};c.processData=function(){var a=this;if(this.$1==null)return;var b=this.$1.length,c=this.malloc(b);if(c===-1)return;var e=j.HEAPU8.subarray(c,c+b);if(this.$1)for(var f=0;fi){this.$1=new Uint8Array(((b=this.$1)==null?void 0:b.subarray(i))||[])}else this.$1=null;k=j.HEAPU32.subarray(g/h,g/h+1)[0];c=j.HEAPU32.subarray(e/h,e/h+1)[0];var l=[];for(var b=0;b0&&(this.$2=setTimeout(function(){a.$6()},this.$1))};b.cancel=function(){this.$2&&(clearTimeout(this.$2),this.$2=null)};return a}();f.DGWPinger=a}),66); __d("DGWTransportEvents",["DGWLoggingContext"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$3=a}var b=a.prototype;b.transportEstablished=function(){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"open"),this.$2=Date.now()};b.transportEstablishmentPending=function(){this.$1=Date.now(),this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transportPending",null,!0)};b.transportClosed=function(a,b){this.$4=Date.now(),a?(this.$3.bumpODSKey(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transport_close_graceful"),this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Transport closed gracefully",null,!0)):(this.$3.bumpODSKey(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transport_close_with_error"),this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Transport closed abnormally",b))};b.transportEstablishmentFailure=function(a){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"WebSocket transport establishment failure","WebSocket close code: "+a)};b.streamEstablishmentTimeout=function(a,b){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment timeout",a,"streamId:"+b)};b.streamEstablishmentPending=function(a){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment pending","streamId:"+a,!0)};b.streamEstablishmentSuccess=function(a){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment success","streamId:"+a,!0)};b.transportError=function(a,b,c){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,a,b,c)};b.receivedFrameForInactiveStream=function(a,b,c){this.$3.logWarn(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Frame received for inactive stream","frameType: "+a+", streamID: "+b,c)};b.ranOutOfStreamIds=function(a){this.$3.logWarn(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Hit max StreamId limit","Hit max StreamId limit",a)};return a}();g.DGWTransportEvents=a}),98); __d("DGWWebSocketTransport",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=new WebSocket(a);a.binaryType="arraybuffer";a.onopen=function(){};a.onclose=function(){};a.onerror=function(){};return a}f.getWebSocketConnection=a}),66); __d("StreamIdGenerator",["err"],(function(a,b,c,d,e,f,g){"use strict";var h=255;a=function(){function a(){this.$1=new Set();for(var a=1;a<=h;++a)this.$1.add(a)}var b=a.prototype;b.getNextStreamId=function(){var a;if(this.$1.size===0)throw c("err")("Max number of stream IDs reached");a=(a=this.$1.values().next().value)!=null?a:0;this.$1["delete"](a);return a};b.putBackStreamId=function(a){this.$1.add(a)};b.streamIdAvailable=function(){return this.$1.size!==0};return a}();g.StreamIdGenerator=a}),98); __d("StreamGroupWebSocketTransport",["DGWConstants","DGWExponentialBackoff","DGWLoggingContext","DGWPinger","DGWStream","DGWStreamGroupCallbacks","DGWTransportEvents","DGWUtils","DGWWebSocketTransport","GroupedStream","Promise","StreamIdGenerator","err","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b,c,e,f){var g=this;this.groupedStream=a;this.$1=setTimeout(function(){c(d("DGWStream").StreamError.ESTABLISHMENT_TIMEOUT)},e);this.handleEstablishFrameReceived=function(){clearTimeout(g.$1),b(g.groupedStream)};this.abortStream=function(a){f(),c(a)}};a=function(){function a(b,e,f,g,h,i,j,k){var l=this;this.$15=h;this.$10=new(d("StreamIdGenerator").StreamIdGenerator)();this.$5=new Map();this.$6=new Map();this.$7=g.keepAliveMs;this.$8=!1;this.$3=!0;this.$4=!1;this.$13=f;this.$11=new TextEncoder();this.$12=new TextDecoder();this.$14=g;h={onDataReceived:function(){},handleAckReceived:function(){},receivedDrainSignal:function(a){l.$14.streamGroupCallbacks.onStreamGroupMustDrain(a),l.$5.forEach(function(b){b.__drainReceivedHook(a)})},onGroupedStreamDataReceived:function(a,b,c){if(l.$5.has(a)){var d=l.$5.get(a);d==null?void 0:d.__dataReceivedHook(b,c)}else{l.$13.receivedFrameForInactiveStream("Data",a,"sendAckID: "+((d=c)!=null?d:"null"))}},onGroupedStreamAckReceived:function(a,b){if(l.$5.has(a)){var c=l.$5.get(a);c==null?void 0:c.__ackReceivedHook(b)}else{l.$13.receivedFrameForInactiveStream("ACK",a,"ackId: "+((c=b)!=null?c:"null"))}},onGroupedStreamEndOfDataReceived:function(a){if(l.$5.has(a)){var b=l.$5.get(a);b==null?void 0:b.__endOfDataHook()}else l.$13.receivedFrameForInactiveStream("EndOfData",a)},onGroupedStreamEstablishStreamReceived:function(a,b){if(l.$6.has(a)){var c=l.$6.get(a);l.$6["delete"](a);b=JSON.parse(l.$12.decode(b));(b.code===void 0||b.code!==200)&&(c==null?void 0:c.abortStream(d("DGWStream").StreamError.ABNORMAL_CLOSURE));c==null?void 0:c.handleEstablishFrameReceived()}else l.$13.receivedFrameForInactiveStream("EstablishStream",a,"EstablishStream received for non-inflight stream")},onPingReceived:function(){var a=l.$2.encodePing();if(a==null)return;l.send(a)},onPongReceived:function(){}};this.$2=new(d("DGWUtils").DGWCodec)(i,h);if(g.enableFirstStreamOnWsHandshake){if(j===void 0)throw c("err")("Missing grouped stream options");if(k===void 0)throw c("err")("Missing grouped stream callbacks");var m=this.$10.getNextStreamId();f=this.createEstablishStreamFrame(m,j);i=d("DGWUtils").DGWUtils.constructConnectUrl({appId:g.appId,appVersion:g.appVersion,authType:g.authType,dgwVersion:g.dgwVersion,fbId:g.fbId,tier:g.tier,loggingId:(i=g.loggingId)!=null?i:void 0,headers:a.__prefixAppHeaders(g.headers),endpoint:g.connectEndpoint,serviceId:g.serviceId,regionHint:(h=g.regionHint)!=null?h:void 0,establishStreamFrame:f});this.$1=e(i);if(!i.includes(d("DGWConstants").HEADER_CONSTANTS.HEADER_ESTABLISH_STREAM_FRAME_BASE64))return;this.$16=this.waitForEstablishStream(m,k,j,new(d("DGWLoggingContext").DGWLoggingContext)(this.$14.dgwVersion,j.loggingId,this.$14.serviceId,this.$14.fbId,this.$14.loggingId,j.disableFalcoLogging),function(a){l.$5.set(m,a)},function(){l.$10.putBackStreamId(m)})}else this.$1=e(b)}var e=a.prototype;e.send=function(a){try{this.$1.send(a);return!0}catch(a){this.$13.transportError("Failed to send over transport","readyState: "+this.$1.readyState,a.toString());return!1}};e.close=function(){this.$1.close(d("DGWConstants").WebsocketCloseCodes.GRACEFUL_CLOSE)};e.abort=function(a,b,c,d){this.$8=!0,this.$13.transportClosed(!1,d),this.$5.forEach(function(a){a.__transportCloseHook(b)}),this.$6.forEach(function(a){a.abortStream(b)}),this.$14.streamGroupCallbacks.onStreamGroupError(a),this.$5.clear(),this.$6.clear(),this.$1.close(c)};a.getTransportWithInitialStream=function(c,e,f,g,h){var i,j,k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:m.next=2;return b("regeneratorRuntime").awrap(d("DGWUtils").DGWCodec.initialize());case 2:i=new(d("DGWTransportEvents").DGWTransportEvents)(g);i.transportEstablishmentPending();j=function(){return a.$17("",f,i,h,g,c,e)};m.prev=5;m.next=8;return b("regeneratorRuntime").awrap(d("DGWExponentialBackoff").callWithExponentialBackoff(j));case 8:k=m.sent;l=k.$16!=void 0?k.$16:k.establishGroupedStream(e,c,new(d("DGWLoggingContext").DGWLoggingContext)(f.dgwVersion,c.loggingId,f.serviceId,f.fbId,f.loggingId,c.disableFalcoLogging));return m.abrupt("return",{transport:k,streamPromise:l});case 13:m.prev=13;m.t0=m["catch"](5);throw m.t0;case 16:case"end":return m.stop()}},null,this,[[5,13]])};a.getTransport_DEPRECATED=function(c,e,f,g){var h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:j.next=2;return b("regeneratorRuntime").awrap(d("DGWUtils").DGWCodec.initialize());case 2:h=new(d("DGWTransportEvents").DGWTransportEvents)(f);h.transportEstablishmentPending();i=function(){return a.$17(c,e,h,g,f)};j.prev=5;j.next=8;return b("regeneratorRuntime").awrap(d("DGWExponentialBackoff").callWithExponentialBackoff(i));case 8:return j.abrupt("return",j.sent);case 11:j.prev=11;j.t0=j["catch"](5);throw j.t0;case 14:case"end":return j.stop()}},null,this,[[5,11]])};e.establishGroupedStream=function(a,c,d){var e=this,f,g,h,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:f=this.getStreamId();g=this.createEstablishStreamFrame(f,c);h=this.waitForEstablishStream(f,a,c,d,function(a){e.$5.set(f,a)},function(){e.$10.putBackStreamId(f)});if(this.send(g)){k.next=7;break}i=new Error("Websocket connection closed before stream established");i.stack;throw i;case 7:k.next=9;return b("regeneratorRuntime").awrap(h);case 9:j=k.sent;return k.abrupt("return",j);case 11:case"end":return k.stop()}},null,this)};a.__prefixAppHeaders=function(a){return Object.keys(a).reduce(function(b,c){b[""+d("DGWConstants").HEADER_CONSTANTS.APPHEADER_PREFIX+c]=a[c];return b},{})};e.waitForEstablishStream=function(a,c,d,e,f,g){var i=this,j,k;return b("regeneratorRuntime").async(function(l){while(1)switch(l.prev=l.next){case 0:this.$13.streamEstablishmentPending(a);j=this.__createGroupedStream(a,c,d,e);l.prev=2;l.next=5;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,c){i.$6.set(a,new h(j,b,c,3e4,function(){i.streamEndCallback(a)}))}));case 5:k=l.sent;f(j);this.$13.streamEstablishmentSuccess(a);return l.abrupt("return",k);case 11:l.prev=11;l.t0=l["catch"](2);g();this.$13.streamEstablishmentTimeout("Stream establishment timeout",a);throw l.t0;case 16:case"end":return l.stop()}},null,this,[[2,11]])};a.$17=function(c,e,f,g,h,i,j){var k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:k=new a(c,d("DGWWebSocketTransport").getWebSocketConnection,f,e,g,h,i,j);k.$1.onmessage=a.$18(k);k.$1.onopen=function(){f.transportEstablished(),k.$3=!1,k.$7!=null&&(k.$9=new(d("DGWPinger").DGWPinger)(k.$7,function(){k.$19()},function(){k.abort(d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_KEEPALIVE_TIMEOUT,d("DGWStream").StreamError.KEEPALIVE_TIMEOUT,d("DGWConstants").WebsocketCloseCodes.KEEPALIVE_TIMEOUT,"Aborting transport because of keepalive timeout")}))};k.$1.onerror=function(){};k.$1.onclose=a.$20(k);m.next=7;return b("regeneratorRuntime").awrap(a.getTransportPromise(k));case 7:l=m.sent;return m.abrupt("return",l);case 9:case"end":return m.stop()}},null,this)};a.getTransportPromise=function(a){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){var e=a.$1.onerror,f=a.$1.onopen;a.$1.onerror=function(){e(),d(c("err")("Transport could not be initialized"))};a.$1.onopen=function(){f(),b(a)}}));case 2:d=e.sent;return e.abrupt("return",d);case 4:case"end":return e.stop()}},null,this)};a.$18=function(a){return function(b){var c;(c=a.$9)==null?void 0:c.reset();if(!(b.data instanceof ArrayBuffer)){a.$13.transportError("Incorrect Data Protocol","Received "+typeof b.data+" instead of ArrayBuffer");return}a.$2.append(new Uint8Array(b.data));a.$2.processData()}};a.$20=function(a){return function(b){var c;(c=a.$9)==null?void 0:c.cancel();if(a.$8===!0||a.$4)return;if(a.$3===!0){a.$13.transportEstablishmentFailure(b.code);a.$5.clear();return}a.$15();a.$3=!0;if(b.code!==d("DGWConstants").WebsocketCloseCodes.GRACEFUL_CLOSE){a.$13.transportClosed(!1,"Websocket connection failure with code "+b.code);c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_UNKNOWN_ERROR;var e=d("DGWStream").StreamError.UNKNOWN_ERROR;switch(b.code){case d("DGWConstants").WebsocketCloseCodes.NORMAL_CLOSURE:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_ABNORMAL_CLOSURE;e=d("DGWStream").StreamError.ABNORMAL_CLOSURE;break;case d("DGWConstants").WebsocketCloseCodes.ABNORMAL_CLOSURE:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_ABNORMAL_CLOSURE;e=d("DGWStream").StreamError.ABNORMAL_CLOSURE;break;case d("DGWConstants").WebsocketCloseCodes.SERVER_INTERNAL_ERROR:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_SERVER_INTERNAL_ERROR;e=d("DGWStream").StreamError.SERVER_INTERNAL_ERROR;break;case d("DGWConstants").WebsocketCloseCodes.GOING_AWAY:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_GOING_AWAY;e=d("DGWStream").StreamError.GOING_AWAY;break;case d("DGWConstants").WebsocketCloseCodes.UNAUTHORIZED:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_UNAUTHORIZED;e=d("DGWStream").StreamError.UNAUTHORIZED;break;case d("DGWConstants").WebsocketCloseCodes.REJECTED:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_REJECTED;e=d("DGWStream").StreamError.REJECTED;break;case d("DGWConstants").WebsocketCloseCodes.BAD_REQUEST:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_BAD_REQUEST;e=d("DGWStream").StreamError.BAD_REQUEST;break;case d("DGWConstants").WebsocketCloseCodes.DGW_SERVER_ERROR:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_SERVER_INTERNAL_ERROR;e=d("DGWStream").StreamError.DGW_SERVER_ERROR;c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_DGW_SERVER_ERROR;break;default:c=d("DGWStreamGroupCallbacks").DGWStreamGroupError.TRANSPORT_UNKNOWN_ERROR;e=d("DGWStream").StreamError.UNKNOWN_ERROR;break}a.$14.streamGroupCallbacks.onStreamGroupError(c);a.$5.forEach(function(a){a.__transportCloseHook(e)});a.$6.forEach(function(a){a.abortStream(e)})}else a.$13.transportClosed(!0,""),a.$14.streamGroupCallbacks.onStreamGroupTransportClose(),a.$5.forEach(function(a){a.__transportCloseHook()}),a.$6.forEach(function(a){a.abortStream(d("DGWStream").StreamError.TRANSPORT_CLOSED_BEFORE_STREAM_INIT)});a.$5.clear();a.$6.clear()}};e.$19=function(){var a=this.$2.encodePing();if(a==null)throw c("err")("Failed to encode Ping Frame");this.send(a)};e.isClosedLocally=function(){return this.$3||this.$8||this.$4};e.streamEndCallback=function(a){this.$5["delete"](a),this.$6["delete"](a),this.$10.putBackStreamId(a),this.$5.size===0&&this.$6.size===0&&(this.$14.streamGroupCallbacks.onStreamGroupTransportClose(),this.$4=!0,this.close())};e.canCreateGroupedStream=function(){return this.$10.streamIdAvailable()};e.createEstablishStreamFrame=function(b,d){d=this.$2.encodeEstablishStream(b,new Uint8Array(this.$11.encode(JSON.stringify(a.__prefixAppHeaders(d.groupedStreamHeaders)))));if(d==null){this.$10.putBackStreamId(b);throw c("err")("Failed to encode EstablishStreamFrame")}return d};e.getStreamId=function(){try{return this.$10.getNextStreamId()}catch(a){this.$13.ranOutOfStreamIds("inFlightGroupedStreamSize: "+this.$6.size+" groupedStreamSize: "+this.$5.size);throw a}};e.__createGroupedStream=function(a,b,c,e){var f=this;return new(d("GroupedStream").GroupedStream)(a,b,c,this,e,this.$2,function(){f.streamEndCallback(a)})};return a}();g.StreamGroupWebSocketTransport=a}),98); __d("StreamGroup",["DGWConstants","DGWLoggingContext","DGWUtils","StreamGroupWebSocketTransport","qex","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,e,f,g,h,i,j,k){this.$2=k;this.$1=k.getNewStreamGroupId();k=(k=i.overrideUrl)!=null?k:g;this.$3={appId:a,appVersion:b,authType:e,dgwVersion:f,headers:i.streamGroupAppHeaders,tier:(g=i.serviceTier)!=null?g:d("DGWConstants").DEFAULT_SERVICE_TIER,connectEndpoint:k,fbId:h,loggingId:i.loggingId,serviceId:i.serviceId,streamGroupCallbacks:j,keepAliveMs:i.keepAliveMs,regionHint:i.regionHint,enableFirstStreamOnWsHandshake:c("qex")._("420")===!0};this.$4=i;this.$5=new(d("DGWLoggingContext").DGWLoggingContext)(this.$3.dgwVersion,null,this.$3.serviceId,this.$3.fbId,this.$4.loggingId)}var e=a.prototype;e.establishStream=function(a,c){var e=this,f,g,h,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:if(!(this.$2.containsStreamGroup(this.$1)===!1)){k.next=14;break}if(this.$3.enableFirstStreamOnWsHandshake){k.next=9;break}h=d("DGWUtils").DGWUtils.constructConnectUrl({appId:this.$3.appId,appVersion:this.$3.appVersion,authType:this.$3.authType,dgwVersion:this.$3.dgwVersion,fbId:this.$3.fbId,headers:babelHelpers["extends"]({},this.$3.headers),loggingId:(f=this.$3.loggingId)!=null?f:void 0,tier:this.$3.tier,serviceId:this.$3.serviceId,endpoint:this.$3.connectEndpoint,regionHint:(g=this.$3.regionHint)!=null?g:void 0});k.next=5;return b("regeneratorRuntime").awrap(d("StreamGroupWebSocketTransport").StreamGroupWebSocketTransport.getTransport_DEPRECATED(h,this.$3,this.$5,function(){e.$2.removeStreamGroupAndTransport(e.$1)}));case 5:i=k.sent;this.$2.setStreamGroupAndTransport(this.$1,i);k.next=14;break;case 9:k.next=11;return b("regeneratorRuntime").awrap(d("StreamGroupWebSocketTransport").StreamGroupWebSocketTransport.getTransportWithInitialStream(a,c,this.$3,this.$5,function(){e.$2.removeStreamGroupAndTransport(e.$1)}));case 11:j=k.sent;this.$2.setStreamGroupAndTransport(this.$1,j.transport);return k.abrupt("return",j.streamPromise);case 14:return k.abrupt("return",this.establishStreamWithTransport(a,c));case 15:case"end":return k.stop()}},null,this)};e.establishStreamWithTransport=function(a,c){var e,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:f=a.loggingId;this.$5.logEvent(d("DGWLoggingContext").DGWLoggingComponent.STREAM_GROUP_COMPONENT,"establishing Stream loggingId: "+((e=f)!=null?e:""),null,!0);h.next=4;return b("regeneratorRuntime").awrap(this.$2.getStreamGroupTransport(this.$1).establishGroupedStream(c,a,new(d("DGWLoggingContext").DGWLoggingContext)(this.$3.dgwVersion,f,this.$3.serviceId,this.$3.fbId,this.$3.loggingId,a.disableFalcoLogging)));case 4:g=h.sent;return h.abrupt("return",g);case 6:case"end":return h.stop()}},null,this)};e.canCreateGroupedStream=function(){if(this.$2.containsStreamGroup(this.$1)===!1)return!0;else{var a=this.$2.getStreamGroupTransport(this.$1);return a.canCreateGroupedStream()}};return a}();g.StreamGroup=a}),98); __d("StreamGroupRegistry",["Random","err"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new Map(),this.$2=new Set()}var b=a.prototype;b.setStreamGroupAndTransport=function(a,b){this.$1.set(a,b)};b.containsStreamGroup=function(a){return this.$1.has(a)};b.removeStreamGroupAndTransport=function(a){this.$1["delete"](a)};b.getStreamGroupTransport=function(a){a=this.$1.get(a);if(a==void 0)throw c("err")("No stream group transport");return a};b.getNewStreamGroupId=function(){var a=d("Random").uint32();while(this.$2.has(a))a=d("Random").uint32();this.$2.add(a);return a};return a}();g.StreamGroupRegistry=a}),98); __d("RawDGWClient",["CurrentUser","StreamGroup","StreamGroupRegistry","err"],(function(a,b,c,d,e,f,g){"use strict";var h="4";a=function(){function a(a){var b=a.appId,c=a.appVersion,e=a.authType,f=a.dgwVersion,g=a.endpoint;a=a.fbId;this.$1=b;this.$2=c;this.$3=e;this.$4=f;this.$5=g;this.$6=a;this.$7=new(d("StreamGroupRegistry").StreamGroupRegistry)()}var b=a.prototype;b.createStreamGroup=function(a,b){return new(d("StreamGroup").StreamGroup)(this.$1,this.$2,this.$3,h,this.$5,this.$6,b,a,this.$7)};b.handleUserChecks=function(){if(!c("CurrentUser").isLoggedInNow())throw c("err")("DGWClientError: User is not logged in")};return a}();g.RawDGWClient=a}),98); __d("DGWClient",["DGWAuth","DGWEnvUtil","DGWWebConfig","RawDGWClient","err"],(function(a,b,c,d,e,f,g){"use strict";var h=new(d("RawDGWClient").RawDGWClient)({appId:c("DGWWebConfig").appId,appVersion:c("DGWWebConfig").appVersion,authType:d("DGWAuth").fromStringToDGWAuth(c("DGWEnvUtil").getDGWAuthType()),dgwVersion:c("DGWWebConfig").dgwVersion,endpoint:c("DGWEnvUtil").getDGWEndpoint(),fbId:c("DGWWebConfig").fbId});function a(){if(c("DGWEnvUtil").isDGWEnvCompatible())return h;else throw c("err")("unsupported_environment_retry_with_mqtt")}g["default"]=a}),98); __d("DGWStreamGroupHandler",[],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c){this.$1=a,this.$2=b,this.$3=c}var b=a.prototype;b.onStreamGroupError=function(a){this.$1(a)};b.onStreamGroupMustDrain=function(a){this.$2(a)};b.onStreamGroupTransportClose=function(){this.$3()};return a}();g["default"]=a}),98); __d("DGWStreamFactory",["DGWClient","DGWStreamGroupHandler","gkx","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h="realtime",i=1e4,j=null;a=function(){function a(){this.$2=c("uuid")(),this.$3=0,this.$1=null}a.get=function(){j==null&&(j=new a());return j};var b=a.prototype;b.getStreamGroupLoggingId=function(){return this.$2};b.guessStreamGroupPriorStreamCount=function(){return this.$3};b.establishStream=function(a,b,d){var e=this;if(this.$1==null||!this.$1.canCreateGroupedStream()){var f={serviceId:h,disableFalcoLogging:d.disableFalcoLogging,streamGroupAppHeaders:{"stream-group":"group1"}};d.overrideUrl!=null&&(f.overrideUrl=d.overrideUrl);c("gkx")("871")&&(f.keepAliveMs=i);this.$2=c("uuid")();this.$3=0;f.loggingId=this.$2;this.$1=new(c("DGWClient"))().createStreamGroup(new(c("DGWStreamGroupHandler"))(function(){e.$1=null},function(){e.$1=null},function(){e.$1=null}),f)}this.$3++;return this.$1.establishStream({loggingId:d.loggingId,disableFalcoLogging:d.disableFalcoLogging,groupedStreamHeaders:a},b)};return a}();g["default"]=a}),98); __d("DGWRequestStreamClient",["DGWRequestStreamRef","DGWStreamFactory","Promise"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$1=a!=null?a:c("DGWStreamFactory").get()}var d=a.prototype;d.createStream=function(a,d,e,f,g){return b("Promise").resolve(new(c("DGWRequestStreamRef"))(a,d,f,g,e,this.$1))};return a}();g["default"]=a}),98); __d("ContextualConfigConstants",[],(function(a,b,c,d,e,f){"use strict";a=1e3;b=", ";c={SAME:"same",NULL:"null",NNULL:"nnull",CATCH_ALL:"catch_all",EQ:"eq",NEQ:"neq",LT:"lt",LTE:"lte",GT:"gt",GTE:"gte",COR:"cor",CONTAINS:"contains",REGEX:"regex",IN:"in",NIN:"nin"};d={DENSE:"dense",MULTI_OUTPUT_RESOLVED:"multi-output-resolved",TABLE:"table"};e=[];var g=[],h=[],i={BAD_BOOLEAN_FORMAT:"Bad boolean format",BAD_CONFIG:"Bad config",BAD_CONTEXT_IDENTIFIER:"Bad context identifier",BAD_CONTEXT_VALUE:"Bad context value",BAD_MONITORED_CONTEXTS:"Bad monitored contexts",BAD_NUMBER_FORMAT:"Bad number format",BAD_OUTPUT_NAME:"Bad output name",BAD_OUTPUT_TYPE:"Bad output type",BAD_VALUE_ORDER:"Bad values order",DUPLICATE_OUTPUT_NAME:"Duplicate output name",ILLEGAL_BOOLEAN_STRATEGY:"Illegal boolean strategy",ILLEGAL_BUCKET_VALUES:"Illegal bucket values",ILLEGAL_NUMERIC_STRATEGY:"Illegal numeric strategy",ILLEGAL_STRING_STRATEGY:"Illegal string strategy",INVALID_BOOLEAN:"Invalid boolean",INVALID_FLOAT:"Invalid float",INVALID_INTEGER:"Invalid integer",INVALID_STRING:"Invalid string",INVALID_VALUE_TYPE:"Invalid value type",MISMATCH_NUMBER_OF_VALUES:"Mismatching number of values",MISSING_BUCKETS:"Missing buckets",MISSING_BUCKET_MATCH:"Missing bucket match",MISSING_BUCKET_NAME:"Missing bucket name",MISSING_BUCKET_STRATEGY:"Missing bucket strategy",MISSING_CONTEXT_IN_CONFIG:"Missing context in config",MISSING_DEFAULT_VALUE:"Missing default value",MISSING_OUTPUTS_DEFINITION:"Missing outputs field definition",MISSING_RESULTS:"Missing results",MISSING_TABLE:"Missing table",MISSING_TABLE_ITEM_BUCKET:"Missing table item bucket",MISSING_TABLE_ITEM_VALUES:"Missing table item values",MISSING_VECTOR:"Missing vector",REGEX_SYNTAX_ERROR:"Regex syntax error",REQUESTED_PARAM_NOT_FOUND:"Requested param not found",RESULTS_VECTOR_SIZE_MISMATCH:"Results vector size mismatch",UNDECLARED_OUTPUT_PARAM:"Undeclared output param",UNKNOWN_BUCKET_DEFINITION:"Unknown bucket definition",UNKNOWN_CONFIG_TYPE:"Unknown config type",UNSUPPORTED_CONFIG_VERSION:"Unsupported config version"},j=10,k=", ",l={BOOL:"BOOL",FLOAT:"FLOAT",INT:"INT",STRING:"STRING"};f.ANALYTICS_SAMPLE_RATE=a;f.BUCKET_DELIMITER=b;f.CONTEXT_BUCKET_STRATEGY=c;f.CONFIG_TYPE=d;f.EMPTY_RESOLVED_CONTEXTS=e;f.EMPTY_RESOLVED_MONITORS=g;f.EMPTY_RESULT_PARAMS=h;f.ERROR=i;f.JSON_SUB_SAMPLE_RATE=j;f.LIST_DELIMITER=k;f.TYPE=l}),66); __d("ContextualConfigResolvedContextsUtils",[],(function(a,b,c,d,e,f){"use strict";a=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.bucketIndex;if(e==void 0)break;b.push(e)}return b};b=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.bucketName;if(e===void 0)break;b.push(e)}return b};var g=function(a){return a.name};c=function(a){return a.map(g)};d=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.value;if(e===void 0)break;b.push(e)}return b};f.getBucketIndices=a;f.getBucketNames=b;f.getContextNames=c;f.getContextValues=d}),66); __d("ContextualConfigCollateExposureData",["ContextualConfigConstants","ContextualConfigResolvedContextsUtils"],(function(a,b,c,d,e,f,g){"use strict";var h=["cfg_ver_timestamp","policy_id","version","sample_rate"],i=function(a){return a.join(d("ContextualConfigConstants").LIST_DELIMITER)},j=function(a,b){for(var c=0;c0},i=function(a){return typeof a==="number"&&!isNaN(a)&&a!==Infinity&&a!==-Infinity},j=function(a){return typeof a==="string"},k=function(a){switch(a){case d("ContextualConfigConstants").TYPE.BOOL:case d("ContextualConfigConstants").TYPE.FLOAT:case d("ContextualConfigConstants").TYPE.INT:case d("ContextualConfigConstants").TYPE.STRING:return!0;default:return!1}};g.isArray=a;g.isBoolean=b;g.isDefined=c;g.isKey=e;g.isInteger=f;g.isNonEmptyString=h;g.isNumber=i;g.isString=j;g.isType=k}),98); __d("ContextualConfigParseBoolean",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a.toUpperCase()){case"TRUE":return!0;case"FALSE":return!1;default:throw new Error(d("ContextualConfigConstants").ERROR.BAD_BOOLEAN_FORMAT)}}g["default"]=a}),98); __d("ContextualConfigParsePredBoolean",["ContextualConfigConstants","ContextualConfigParseBoolean"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e;switch(b){case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.SAME:var f=c("ContextualConfigParseBoolean")(a);e=function(a){return a===f};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NULL:e=function(a){return a==null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NNULL:e=function(a){return a!=null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CATCH_ALL:e=function(a){return!0};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_BOOLEAN_STRATEGY)}return function(a){return e(a)}}g["default"]=a}),98); __d("ContextualConfigParseFloat",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[-\+]?([1-9]\d*|0)(\.\d+)?$/,i=function(a){return h.test(a)};function a(a){c("ContextualConfigAssert")(i(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);a=parseFloat(a);c("ContextualConfigAssert")(d("ContextualConfigValidators").isNumber(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);return a}g["default"]=a}),98); __d("ContextualConfigParseInteger",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[-\+]?([1-9]\d*|0)$/,i=function(a){return h.test(a)};function a(a){c("ContextualConfigAssert")(i(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);a=parseInt(a,10);c("ContextualConfigAssert")(d("ContextualConfigValidators").isNumber(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);return a}g["default"]=a}),98); __d("ContextualConfigPredAssertions",["ContextualConfigAssert","ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){return c("ContextualConfigAssert")(a>0,d("ContextualConfigConstants").ERROR.MISMATCH_NUMBER_OF_VALUES)};b=function(a,b){return c("ContextualConfigAssert")(a===b,d("ContextualConfigConstants").ERROR.MISMATCH_NUMBER_OF_VALUES)};e=function(a,b){return c("ContextualConfigAssert")(a=g[0]&&ag[0]};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.GTE:d("ContextualConfigPredAssertions").assertNumberOfValues(g.length,1);h=function(a){if(typeof a!=="number")return!1;return f&&!d("ContextualConfigValidators").isInteger(a)?!1:a>=g[0]};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_NUMERIC_STRATEGY)}return function(a){return h(a)}}g["default"]=a}),98); __d("ContextualConfigParseRegExp",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";var h=/^\/(.+)\/(.*)$/;function a(a){try{var b=a.match(h);if(b!=null)return new RegExp(b[1],b[2]);else return new RegExp(a)}catch(a){throw new Error(d("ContextualConfigConstants").ERROR.REGEX_SYNTAX_ERROR)}}g["default"]=a}),98); __d("ContextualConfigParsePredString",["ContextualConfigConstants","ContextualConfigParseRegExp","ContextualConfigPredAssertions"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){if(typeof a!=="string")throw new Error(d("ContextualConfigConstants").ERROR.INVALID_VALUE_TYPE);return a},i=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b.push(h(e))}return b};function a(a,b,e){var f=i(e),g;switch(b){case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.SAME:g=function(b){return typeof b!=="string"?!1:b===a};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NULL:g=function(a){return a==null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NNULL:g=function(a){return a!=null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CATCH_ALL:g=function(a){return!0};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.IN:d("ContextualConfigPredAssertions").assertHasValues(f.length);g=function(a){return typeof a!=="string"?!1:f.indexOf(a)!==-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NIN:d("ContextualConfigPredAssertions").assertHasValues(f.length);g=function(a){return typeof a!=="string"?!1:f.indexOf(a)===-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CONTAINS:d("ContextualConfigPredAssertions").assertNumberOfValues(f.length,1);g=function(a){return typeof a!=="string"?!1:a.indexOf(f[0])!==-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.REGEX:d("ContextualConfigPredAssertions").assertNumberOfValues(f.length,1);var h=c("ContextualConfigParseRegExp")(f[0]);g=function(a){return typeof a!=="string"?!1:h.test(a)};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_STRING_STRATEGY)}return function(a){return g(a)}}g["default"]=a}),98); __d("ContextualConfigParseContextBuckets",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParsePredBoolean","ContextualConfigParsePredNumeric","ContextualConfigParsePredString","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKETS)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKETS)},j=d("ContextualConfigValidators").isKey(d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY),k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isString(a)&&j(a.toUpperCase()),d("ContextualConfigConstants").ERROR.MISSING_BUCKET_STRATEGY)},l=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.ILLEGAL_BUCKET_VALUES)},m=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKET_NAME)},n=function(a,b){var e=b.name;m(e);var f=b.strategy;k(f);b=b.values||[];l(b);switch(a){case d("ContextualConfigConstants").TYPE.BOOL:return c("ContextualConfigParsePredBoolean")(e,f);case d("ContextualConfigConstants").TYPE.FLOAT:return c("ContextualConfigParsePredNumeric")(e,f,b,!1);case d("ContextualConfigConstants").TYPE.INT:return c("ContextualConfigParsePredNumeric")(e,f,b,!0);case d("ContextualConfigConstants").TYPE.STRING:return c("ContextualConfigParsePredString")(e,f,b);default:throw new Error(d("ContextualConfigConstants").ERROR.UNKNOWN_BUCKET_DEFINITION)}},o=function(a,b){h(b);var c=b.name;m(c);return{name:c,pred:n(a,b)}};function a(a,b){i(b);return b.map(function(b){return o(a,b)})}g["default"]=a}),98); __d("ContextualConfigParseContexts",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseContextBuckets","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a)&&a.length>0,d("ContextualConfigConstants").ERROR.MISSING_CONTEXT_IN_CONFIG)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},l=function(a){h(a);var b=a.name,d=a.type;a=a.buckets;j(b);k(d);return{name:b,type:d,buckets:c("ContextualConfigParseContextBuckets")(d,a)}};function a(a){i(a);return a.map(l)}g["default"]=a}),98); __d("ContextualConfigIsEqualParams",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(a.length!=b.length)return!1;for(var c=0;c=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;if(f.name===b)return f.type}throw new Error(d("ContextualConfigConstants").ERROR.UNDECLARED_OUTPUT_PARAM)},m=function(a){return function(b){i(b);var d=b.name;j(d);var e=l(a,d);k(e);b=c("ContextualConfigParseResultParamValue")(e,b.value);return{name:d,type:e,value:b}}};function a(a,b){h(b);return b.map(m(a))}g["default"]=a}),98); __d("ContextualConfigParseDenseResultParams",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigIsEqualParams","ContextualConfigParseResultParams"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b){return c("ContextualConfigAssert")(c("ContextualConfigIsEqualParams")(a,b),d("ContextualConfigConstants").ERROR.RESULTS_VECTOR_SIZE_MISMATCH)};function a(a,b){b=c("ContextualConfigParseResultParams")(a,b.map(function(b,c){return{name:a[c].name,value:b}}));h(a,b);return b}g["default"]=a}),98); __d("ContextualConfigParseDenseDefaults",["ContextualConfigConstants","ContextualConfigParseDenseResultParams"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){try{return c("ContextualConfigParseDenseResultParams")(a,b)}catch(a){throw new Error(d("ContextualConfigConstants").ERROR.MISSING_DEFAULT_VALUE)}}g["default"]=a}),98); __d("ContextualConfigParseMonitors",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.BAD_MONITORED_CONTEXTS)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},l=function(a){h(a);var b=a.name;a=a.type;j(b);k(a);return{name:b,type:a}};function a(a){i(a);return a.map(l)}g["default"]=a}),98); __d("ContextualConfigParseOutputParams",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_OUTPUTS_DEFINITION)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_OUTPUT_TYPE)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_OUTPUT_NAME)},k=function(a){return c("ContextualConfigAssert")(l(a),d("ContextualConfigConstants").ERROR.DUPLICATE_OUTPUT_NAME)},l=function(a){var b={};for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;if(b[e.name])return!1;b[e.name]=!0}return!0},m=function(a){j(a.name);i(a.type);return a};function a(a){h(a);a=a.map(m);k(a);return a}g["default"]=a}),98); __d("ContextualConfigParseVector",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseResultParamValue","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_VECTOR)},i=function(a,b){return c("ContextualConfigAssert")(a===b,d("ContextualConfigConstants").ERROR.RESULTS_VECTOR_SIZE_MISMATCH)},j=function(a,b){i(a.length,b.length);for(var d=0;d=0;d-=1)b.push(c),c*=a[d].buckets.length;return b.reverse()},j=function(a,b,d,e){try{b=b.slice(d,d+a.length);return[null,c("ContextualConfigParseDenseResultParams")(a,b)]}catch(a){return[a,e]}},k=function(a,b,d){try{d=d.reduce(function(b,d,e){c("ContextualConfigAssert")(e=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;c[f.name]=f}f=[];for(var e=a,d=Array.isArray(e),b=0,e=d?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(d){if(b>=e.length)break;a=e[b++]}else{b=e.next();if(b.done)break;a=b.value}a=a;var g=c[a.name];f.push(g!=null&&g.name===a.name&&g.type===a.type?g:a)}return f}f["default"]=a}),66); __d("ContextualConfigParseDefaults",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigIsEqualParams","ContextualConfigParseResultParams"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b){return c("ContextualConfigAssert")(c("ContextualConfigIsEqualParams")(a,b),d("ContextualConfigConstants").ERROR.MISSING_DEFAULT_VALUE)};function a(a,b){b=c("ContextualConfigParseResultParams")(a,b);h(a,b);return b}g["default"]=a}),98); __d("ContextualConfigParseTable",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseResultParams","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE_ITEM_BUCKET)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE_ITEM_VALUES)},l=function(a,b){i(b);var d=b.bucket;b=b.values;j(d);k(b);return{bucket:d,values:c("ContextualConfigParseResultParams")(a,b)}};function a(a,b){h(b);return b.reduce(function(b,c){c=l(a,c);b[c.bucket]=c.values;return b},{})}g["default"]=a}),98); __d("TableContextualConfig",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigMergePartialResultParams","ContextualConfigParseContexts","ContextualConfigParseDefaults","ContextualConfigParseMonitors","ContextualConfigParseOutputParams","ContextualConfigParseTable","ContextualConfigResolveContexts","ContextualConfigResolvedContextsUtils","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=[],i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONFIG)};a=function(){function a(a,b){i(a);this.globalContextProviders=babelHelpers["extends"]({},b);b=c("ContextualConfigParseOutputParams")(a.outputs);this.contexts=c("ContextualConfigParseContexts")(a.contexts);this.defaults=c("ContextualConfigParseDefaults")(b,a.defaults);this.monitors=a.monitors!=null?c("ContextualConfigParseMonitors")(a.monitors):[];this.table=c("ContextualConfigParseTable")(b,a.table)}var b=a.prototype;b.resolve=function(a){try{return this.unsafeResolve(a)}catch(a){return[a,this.defaults,d("ContextualConfigConstants").EMPTY_RESOLVED_CONTEXTS,d("ContextualConfigConstants").EMPTY_RESOLVED_MONITORS]}};b.unsafeResolve=function(a){var b=this.globalContextProviders,e=this.contexts,f=this.defaults,g=this.monitors,i=this.table;e=c("ContextualConfigResolveContexts")(e,b,a);var j=e[0];e=e[1];if(j!=null)return[j,f,e,[]];j=d("ContextualConfigResolvedContextsUtils").getBucketNames(e).join(d("ContextualConfigConstants").BUCKET_DELIMITER);i=i[j]||h;j=c("ContextualConfigMergePartialResultParams")(f,i);f=c("ContextualConfigResolveContexts")(g,b,a);i=f[0];g=f[1];return i!=null?[i,j,e,[]]:[null,j,e,g]};return a}();g["default"]=a}),98); __d("ContextualConfigParseConfig",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators","DenseContextualConfig","MultiOutputResolvedContextualConfig","TableContextualConfig"],(function(a,b,c,d,e,f,g){"use strict";var h=[1],i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a)&&d("ContextualConfigValidators").isDefined(a.version),d("ContextualConfigConstants").ERROR.BAD_CONFIG)},j=function(a){return c("ContextualConfigAssert")(h.indexOf(a)!==-1,d("ContextualConfigConstants").ERROR.UNSUPPORTED_CONFIG_VERSION)};function a(a,b){i(a);j(a.version);switch(a.cctype){case d("ContextualConfigConstants").CONFIG_TYPE.DENSE:return new(c("DenseContextualConfig"))(a,b);case d("ContextualConfigConstants").CONFIG_TYPE.MULTI_OUTPUT_RESOLVED:return new(c("MultiOutputResolvedContextualConfig"))(a,b);case d("ContextualConfigConstants").CONFIG_TYPE.TABLE:return new(c("TableContextualConfig"))(a,b);default:throw new Error(d("ContextualConfigConstants").ERROR.UNKNOWN_CONFIG_TYPE)}}g["default"]=a}),98); __d("ContextualConfigWarn",[],(function(a,b,c,d,e,f){"use strict";function a(a){}f["default"]=a}),66); __d("ContextualConfigResult",["ContextualConfigConstants","ContextualConfigWarn"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$1=a.reduce(function(a,b){var c=b.name;b=b.value;a[c]=b;return a},{}),this.$2=a}var b=a.prototype;b.get=function(a,b){try{a=this.$1[a];if(typeof a!==typeof b){c("ContextualConfigWarn")(d("ContextualConfigConstants").ERROR.REQUESTED_PARAM_NOT_FOUND);return b}return a}catch(a){c("ContextualConfigWarn")(a.message);return b}};b.getParams=function(){return this.$2};return a}();g["default"]=a}),98); __d("ErrorContextualConfig",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.error=a}var b=a.prototype;b.resolve=function(a){return[this.error,d("ContextualConfigConstants").EMPTY_RESULT_PARAMS,d("ContextualConfigConstants").EMPTY_RESOLVED_CONTEXTS,d("ContextualConfigConstants").EMPTY_RESOLVED_MONITORS]};return a}();g["default"]=a}),98); __d("ContextualConfig",["ContextualConfigCollateExposureData","ContextualConfigConstants","ContextualConfigExposureLogger","ContextualConfigParseConfig","ContextualConfigResult","ErrorContextualConfig","Random"],(function(a,b,c,d,e,f,g){"use strict";var h=1/d("ContextualConfigConstants").JSON_SUB_SAMPLE_RATE,i=1;a=function(){function a(a,b){b===void 0&&(b={}),this.isDebugLoggingEnabled=!1,this.$3=!1,this.$4=a,this.$2=b}var b=a.prototype;b.$5=function(){if(this.$1)return this.$1;var a=this.$2,b=this.$4;try{b=c("ContextualConfigParseConfig")(b,a)}catch(a){b=new(c("ErrorContextualConfig"))(a)}this.$1=b;return b};b.$6=function(a){var b=this.isDebugLoggingEnabled,e=this.$4,f=this.$3;f=!f&&d("Random").random()=0;--q)p[48+q]=52+q,p[65+q]=q,p[97+q]=26+q;p[43]=62;p[47]=63;function r(n,o,q){var r,s,m=0,t=o,u=q.length;o=o+(u*3>>2)-(q[u-2]=="=")-(q[u-1]=="=");for(;m>4,t>2),t>2]=p;v[A+68>>2]=q;v[A+64>>2]=m;v[A+60>>2]=s;v[A+56>>2]=n;v[A+52>>2]=o;a:{if(v[A+52>>2]?!v[A+56>>2]|(!v[A+72>>2]|!v[A+68>>2]|(!v[A+64>>2]|!v[A+60>>2])):1){v[A+76>>2]=5;break a}v[v[A+64>>2]>>2]=0;v[v[A+60>>2]>>2]=0;q=v[A+68>>2];m=v[A+56>>2];s=v[A+52>>2];p=C+-64|0;C=p;v[p+56>>2]=v[A+72>>2];v[p+52>>2]=q;v[p+48>>2]=m;v[p+44>>2]=s;v[p+40>>2]=0;v[p+36>>2]=v[p+56>>2];b:{c:{d:{while(1){if(!v[p+52>>2])break c;v[p+32>>2]=v[p+36>>2];t[p+31|0]=w[v[p+36>>2]];v[p+52>>2]=v[p+52>>2]-1;v[p+36>>2]=v[p+36>>2]+1;if(w[p+31|0]!=10?w[p+31|0]==2|w[p+31|0]==4|w[p+31|0]==9:1){v[p+40>>2]=v[p+40>>2]+1;continue}v[p+24>>2]=1;if(Z(w[p+31|0])&1){B=p,D=aa(w[p+31|0])&1,t[B+23|0]=D;v[p+16>>2]=t[p+23|0]&1?1:2;if(y[p+52>>2]>2]){v[v[p+48>>2]>>2]=v[p+32>>2];v[v[p+44>>2]>>2]=v[p+52>>2]+v[p+24>>2];break b}v[p+52>>2]=v[p+52>>2]-v[p+16>>2];v[p+24>>2]=v[p+16>>2]+v[p+24>>2];v[p+36>>2]=v[p+16>>2]+v[p+36>>2];if(!(w[p+31|0]!=14?w[p+31|0]!=8:0)){v[p+40>>2]=v[p+40>>2]+1;continue}}if(y[p+52>>2]<3)break d;v[p+12>>2]=0;q=v[p+36>>2];m=w[q|0]|w[q+1|0]<<8;t[p+12|0]=m;t[p+13|0]=m>>>8;t[p+14|0]=w[q+2|0];v[p+52>>2]=v[p+52>>2]-3;v[p+24>>2]=v[p+24>>2]+3;v[p+36>>2]=v[p+36>>2]+3;if(y[p+12>>2]<=y[p+52>>2]){v[p+40>>2]=v[p+40>>2]+1;v[p+36>>2]=v[p+12>>2]+v[p+36>>2];v[p+52>>2]=v[p+52>>2]-v[p+12>>2];continue}break}v[v[p+48>>2]>>2]=v[p+32>>2];v[v[p+44>>2]>>2]=v[p+52>>2]+v[p+24>>2];break b}v[v[p+48>>2]>>2]=v[p+32>>2];v[v[p+44>>2]>>2]=v[p+52>>2]+v[p+24>>2];break b}v[v[p+44>>2]>>2]=v[p+52>>2]}v[p+60>>2]=v[p+40>>2];C=p- -64|0;v[A+48>>2]=v[p+60>>2];if(!v[A+48>>2]){v[A+76>>2]=0;break a}B=A,D=F(z(v[A+48>>2],20)),v[B+44>>2]=D;if(!v[A+44>>2]){v[A+76>>2]=3;break a}v[A+40>>2]=v[A+44>>2];v[A+36>>2]=v[A+72>>2];v[A+32>>2]=v[A+68>>2]-v[v[A+52>>2]>>2];v[A+28>>2]=0;while(1){if(y[A+28>>2]>2]){if(y[A+32>>2]<1){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=1;break a}t[A+27|0]=w[v[A+36>>2]];v[A+36>>2]=v[A+36>>2]+1;v[A+32>>2]=v[A+32>>2]-1;e:{if(!w[A+27|0]|w[A+27|0]==1|(w[A+27|0]==2|w[A+27|0]==3)|(w[A+27|0]==4|w[A+27|0]==9|w[A+27|0]==10))break e;if(Z(w[A+27|0])&1)break e;R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=6;break a}p=v[A+40>>2];v[p>>2]=w[A+27|0]&15|v[p>>2]&-16;f:{if(w[A+27|0]!=10?w[A+27|0]==2|w[A+27|0]==4|w[A+27|0]==9:1){p=v[A+40>>2];v[p>>2]=v[p>>2]&-268435441;v[A+40>>2]=v[A+40>>2]+20;break f}if(Z(w[A+27|0])&1){p=C-48|0;C=p;v[p+40>>2]=v[A+40>>2];v[p+36>>2]=A+36;v[p+32>>2]=A+32;g:{if(!(Z(v[v[p+40>>2]>>2]&15)&1)){v[p+44>>2]=1;break g}B=p,D=aa(v[v[p+40>>2]>>2]&15)&1,t[B+31|0]=D;v[p+24>>2]=t[p+31|0]&1?1:2;if(y[v[p+32>>2]>>2]>2]){v[p+44>>2]=1;break g}h:{if(t[p+31|0]&1){t[v[p+40>>2]+4|0]=w[v[v[p+36>>2]>>2]];break h}u[v[p+40>>2]+4>>1]=x[v[v[p+36>>2]>>2]>>1]}q=v[p+36>>2];v[q>>2]=v[p+24>>2]+v[q>>2];q=v[p+32>>2];v[q>>2]=v[q>>2]-v[p+24>>2];if((v[v[p+40>>2]>>2]&15)==8){q=v[p+40>>2];v[q>>2]=v[q>>2]&-268435441;v[p+44>>2]=0;break g}if((v[v[p+40>>2]>>2]&15)==14){q=v[p+40>>2];v[q>>2]=v[q>>2]&-268435441;v[p+44>>2]=0;break g}if(y[v[p+32>>2]>>2]<3){v[p+44>>2]=11;break g}v[p+20>>2]=0;q=v[v[p+36>>2]>>2];m=w[q|0]|w[q+1|0]<<8;t[p+20|0]=m;t[p+21|0]=m>>>8;t[p+22|0]=w[q+2|0];q=v[p+36>>2];v[q>>2]=v[q>>2]+3;q=v[p+32>>2];v[q>>2]=v[q>>2]-3;q=v[p+40>>2];v[q>>2]=v[q>>2]&-268435441|(v[p+20>>2]&16777215)<<4;if(y[v[p+32>>2]>>2]>2]){v[p+44>>2]=11;break g}if((v[v[p+40>>2]>>2]&15)==15){v[v[p+40>>2]+12>>2]=v[p+20>>2];q=F(v[p+20>>2]);v[v[p+40>>2]+8>>2]=q;if(!v[v[p+40>>2]+8>>2]){v[p+44>>2]=3;break g}da(v[v[p+40>>2]+8>>2],v[v[p+36>>2]>>2],v[p+20>>2]);q=v[p+36>>2];v[q>>2]=v[p+20>>2]+v[q>>2];q=v[p+32>>2];v[q>>2]=v[q>>2]-v[p+20>>2];v[p+44>>2]=0;break g}if((v[v[p+40>>2]>>2]&15)==5){v[v[p+40>>2]+12>>2]=v[p+20>>2];q=F(v[p+20>>2]);v[v[p+40>>2]+8>>2]=q;if(!v[v[p+40>>2]+8>>2]){v[p+44>>2]=3;break g}da(v[v[p+40>>2]+8>>2],v[v[p+36>>2]>>2],v[p+20>>2]);q=v[p+36>>2];v[q>>2]=v[p+20>>2]+v[q>>2];q=v[p+32>>2];v[q>>2]=v[q>>2]-v[p+20>>2];v[p+44>>2]=0;break g}i:{if(!((v[v[p+40>>2]>>2]&15)!=6?(v[v[p+40>>2]>>2]&15)!=7:0)){B=p,D=T(v[p+36>>2],v[p+32>>2],p+19|0,p+18|0),v[B+12>>2]=D;if(v[p+12>>2]){v[p+44>>2]=v[p+12>>2];break g}break i}if(!((v[v[p+40>>2]>>2]&15)!=13?(v[v[p+40>>2]>>2]&15)!=12:0)){m=v[p+32>>2];q=C-32|0;v[q+24>>2]=v[p+36>>2];v[q+20>>2]=m;v[q+16>>2]=p+19;v[q+12>>2]=p+16;u[q+10>>1]=0;j:{if(y[v[q+20>>2]>>2]<2){v[q+28>>2]=1;break j}m=v[v[q+24>>2]>>2];m=w[m|0]|w[m+1|0]<<8;t[q+10|0]=m;t[q+11|0]=m>>>8;m=v[q+24>>2];v[m>>2]=v[m>>2]+2;m=v[q+20>>2];v[m>>2]=v[m>>2]-2;t[v[q+16>>2]]=(x[q+10>>1]&32768)==32768;u[v[q+12>>2]>>1]=x[q+10>>1]&32767;v[q+28>>2]=0}v[p+12>>2]=v[q+28>>2];if(v[p+12>>2]){v[p+44>>2]=v[p+12>>2];break g}}}if((v[v[p+40>>2]>>2]&15)==12){q=v[p+40>>2];u[q+8>>1]=u[q+8>>1]&1|x[p+16>>1]<<1;v[p+44>>2]=0;break g}if((v[v[p+40>>2]>>2]&15)==7){q=v[p+40>>2];t[q+8|0]=t[q+8|0]&1|w[p+18|0]<<1;v[p+44>>2]=0;break g}if((v[v[p+40>>2]>>2]&15)==13){m=v[p+32>>2];s=v[p+20>>2];n=v[p+40>>2]+12|0;o=v[p+40>>2];q=C-32|0;C=q;v[q+24>>2]=v[p+36>>2];v[q+20>>2]=m;v[q+16>>2]=s;v[q+12>>2]=n;v[q+8>>2]=o+16;k:{if(y[q+16>>2]<2){v[q+28>>2]=9;break k}v[v[q+8>>2]>>2]=v[q+16>>2]-2;if(y[v[q+20>>2]>>2]>2]>>2]){v[q+28>>2]=1;break k}m=F(v[v[q+8>>2]>>2]);v[v[q+12>>2]>>2]=m;if(!v[v[q+12>>2]>>2]){v[q+28>>2]=3;break k}da(v[v[q+12>>2]>>2],v[v[q+24>>2]>>2],v[v[q+8>>2]>>2]);m=v[q+24>>2];v[m>>2]=v[v[q+8>>2]>>2]+v[m>>2];m=v[q+20>>2];v[m>>2]=v[m>>2]-v[v[q+8>>2]>>2];v[q+28>>2]=0}C=q+32|0;v[p+8>>2]=v[q+28>>2];if(v[p+8>>2]){v[p+44>>2]=v[p+8>>2];break g}q=v[p+40>>2];u[q+8>>1]=t[p+19|0]&1|x[q+8>>1]&65534;q=v[p+40>>2];u[q+8>>1]=u[q+8>>1]&1|x[p+16>>1]<<1;v[p+44>>2]=0;break g}if((v[v[p+40>>2]>>2]&15)==6){B=p,D=P(v[p+36>>2],v[p+32>>2],v[p+20>>2],v[p+40>>2]+12|0,v[p+40>>2]+16|0),v[B+4>>2]=D;if(v[p+4>>2]){v[p+44>>2]=v[p+4>>2];break g}q=v[p+40>>2];t[q+8|0]=t[p+19|0]&1|w[q+8|0]&254;q=v[p+40>>2];t[q+8|0]=t[q+8|0]&1|w[p+18|0]<<1;v[p+44>>2]=0;break g}v[p+44>>2]=1}C=p+48|0;v[A+20>>2]=v[p+44>>2];if(!v[A+20>>2]){v[A+40>>2]=v[A+40>>2]+20;break f}R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=v[A+20>>2];break a}v[A+16>>2]=0;if(y[A+32>>2]<3){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=1;break a}p=v[A+36>>2];q=w[p|0]|w[p+1|0]<<8;t[A+16|0]=q;t[A+17|0]=q>>>8;t[A+18|0]=w[p+2|0];v[A+36>>2]=v[A+36>>2]+3;v[A+32>>2]=v[A+32>>2]-3;if(!(v[A+16>>2]==1|w[A+27|0]!=1)){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=7;break a}p=v[A+40>>2];v[p>>2]=v[p>>2]&-268435441|(v[A+16>>2]&16777215)<<4;if(w[A+27|0]==3){if(v[A+16>>2]!=1){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=10;break a}t[A+15|0]=0;if(y[A+32>>2]<1){M(v[A+44>>2]);v[A+76>>2]=1;break a}t[A+15|0]=w[v[A+36>>2]];v[A+36>>2]=v[A+36>>2]+1;v[A+32>>2]=v[A+32>>2]-1;l:{if(w[A+15|0]<=4){t[v[A+40>>2]+4|0]=w[A+15|0];break l}t[v[A+40>>2]+4|0]=4}v[A+40>>2]=v[A+40>>2]+20;break f}B=A,D=T(A+36|0,A+32|0,A+14|0,A+13|0),v[B+8>>2]=D;if(v[A+8>>2]){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=v[A+8>>2];break a}if(w[A+27|0]==1){p=v[A+40>>2];t[p+4|0]=t[p+4|0]&1|w[A+13|0]<<1;v[A+40>>2]=v[A+40>>2]+20;break f}if(!w[A+27|0]){B=A,D=P(A+36|0,A+32|0,v[A+16>>2],v[A+40>>2]+8|0,v[A+40>>2]+12|0),v[B+4>>2]=D;if(v[A+4>>2]){R(v[A+44>>2],v[A+28>>2]);v[A+76>>2]=v[A+4>>2];break a}p=v[A+40>>2];t[p+4|0]=t[A+14|0]&1|w[p+4|0]&254;p=v[A+40>>2];t[p+4|0]=t[p+4|0]&1|w[A+13|0]<<1;v[A+40>>2]=v[A+40>>2]+20}}v[A+28>>2]=v[A+28>>2]+1;continue}break}if(v[A+32>>2]){R(v[A+44>>2],v[A+48>>2]);v[A+76>>2]=1;break a}v[v[A+64>>2]>>2]=v[A+44>>2];v[v[A+60>>2]>>2]=v[A+48>>2];v[A+76>>2]=0}C=A+80|0;return v[A+76>>2]}function F(p){var r=0,m=0,s=0,n=0,o=0,t=0,u=0,w,x=0,y,q;x=8;a:{b:{if(p>>>0>4294967239)break b;while(1){x=x>>>0>8?x:8;m=v[603];o=m;n=v[602];u=n;p=p>>>0>8?p+3&-4:8;c:{if(p>>>0<=127){t=(p>>>3|0)-1|0;break c}s=A(p);t=((p>>>29-s^4)-(s<<2)|0)+110|0;if(p>>>0<=4095)break c;s=((p>>>30-s^2)-(s<<1)|0)+71|0;t=s>>>0<63?s:63}r=t;s=r&31;(r&63)>>>0>=32?(r=0,m=m>>>s|0):(r=m>>>s|0,m=((1<>>s);s=r;if(m|r){while(1){o=m;r=s;d:{if(r|m){n=r-1|0;w=n+1|0;u=n;n=m-1|0;u=(n|0)!=-1?w:u;n=A(m^n)+32|0;m=A(r^u);m=(m|0)==32?n:m;r=63-m|0;0-(m>>>0>63)|0;break d}r=64}n=r;r=n;m=r&31;(r&63)>>>0>=32?(r=0,u=s>>>m|0):(r=s>>>m|0,u=((1<>>m);s=r;t=n+t|0;o=t<<4;r=v[o+1384>>2];n=o+1376|0;e:{if((r|0)!=(n|0)){m=K(r,x,p);if(m)break b;m=v[r+4>>2];v[m+8>>2]=v[r+8>>2];v[v[r+8>>2]+4>>2]=m;v[r+8>>2]=n;m=o+1380|0;v[r+4>>2]=v[m>>2];v[m>>2]=r;v[v[r+4>>2]+8>>2]=r;t=t+1|0;m=(s&1)<<31|u>>>1;s=s>>>1|0;break e}y=v[603];r=t;w=r&63;m=w;o=m&31;m>>>0>=32?(m=0,n=-1>>>o|0):(m=-1>>>o|0,n=(1<>>o);n=n&-2;o=w&31;w>>>0>=32?(m=n<>>32-o|m<>>0>=32?(m=-1<>>32-r|-1<>>0>=32?(n=0,r=m>>>r|0):(n=m>>>r|0,r=((1<>>r);m=r|w;D=o|n;v[602]=v[602]&m;v[603]=D&y;m=u^1}if(m|s)continue;break}n=v[602];o=v[603]}f:{if(o|n){s=A(o);s=63-((s|0)==32?A(n)+32|0:s)<<4;r=s+1376|0;s=v[s+1384>>2];g:{if(!o&n>>>0<1073741824)break g;t=98;if((r|0)==(s|0))break g;while(1){m=K(s,x,p);if(m)break b;s=v[s+8>>2];if(!t)break g;t=t-1|0;if((r|0)!=(s|0))continue;break}}if(H(p+48|0))break f;if(!s|(r|0)==(s|0))break a;while(1){m=K(s,x,p);if(m)break b;s=v[s+8>>2];if((r|0)!=(s|0))continue;break}break a}if(!H(p+48|0))break a}m=0;if(p>>>0>4294967239)break b;s=x;r=0;while(1){t=r;if(s){s=s-1&s;r=r+1|0;continue}break}if(t>>>0<=1)continue;break}}return m}return 0}function G(p,q,m,r,n,o,s){p=p|0;q=q|0;m=m|0;r=r|0;n=n|0;o=o|0;s=s|0;var z=0,A=0;z=C-32|0;C=z;t[z+27|0]=p;v[z+20>>2]=q;v[z+16>>2]=m;t[z+15|0]=r;t[z+14|0]=n;v[z+8>>2]=o;v[z+4>>2]=s;a:{if(!(!(t[z+15|0]&1)|w[z+14|0]<=127)){v[z+28>>2]=4;break a}q=v[z+20>>2];m=v[z+16>>2];r=v[z+8>>2];n=v[z+4>>2];o=t[z+15|0]&1;p=C+-64|0;C=p;v[p+56>>2]=z+27;v[p+52>>2]=q;v[p+48>>2]=m;v[p+44>>2]=r;v[p+40>>2]=n;t[p+39|0]=1;t[p+38|0]=6;v[p+32>>2]=z+14;t[p+31|0]=o;t[p+30|0]=1;b:{c:{if(!(!v[p+52>>2]|(!v[p+44>>2]|!v[p+40>>2]))&&y[p+48>>2]<=16777215)break c;v[p+60>>2]=5;break b}v[p+24>>2]=v[p+48>>2]+(w[p+39|0]+(w[p+30|0]+4|0)|0);A=p,s=F(v[p+24>>2]),v[A+20>>2]=s;if(!v[p+20>>2]){v[p+60>>2]=3;break b}v[p+16>>2]=v[p+20>>2];t[v[p+16>>2]]=w[p+38|0];v[p+16>>2]=v[p+16>>2]+1;da(v[p+16>>2],v[p+56>>2],w[p+30|0]);v[p+16>>2]=w[p+30|0]+v[p+16>>2];v[p+12>>2]=w[p+39|0]+v[p+48>>2];if(y[p+12>>2]>2]){M(v[p+20>>2]);v[p+60>>2]=9;break b}q=v[p+16>>2];m=w[p+12|0]|w[p+13|0]<<8;t[q|0]=m;t[q+1|0]=m>>>8;t[q+2|0]=w[p+14|0];v[p+16>>2]=v[p+16>>2]+3;if(t[p+31|0]&1)d:{if(w[p+38|0]==6){q=v[p+32>>2];t[q|0]=w[q|0]|128;break d}e:{if(w[p+38|0]==13){q=v[p+32>>2];u[q>>1]=x[q>>1]|32768;break e}M(v[p+20>>2]);v[p+60>>2]=1;break b}}da(v[p+16>>2],v[p+32>>2],w[p+39|0]);v[p+16>>2]=w[p+39|0]+v[p+16>>2];da(v[p+16>>2],v[p+52>>2],v[p+48>>2]);v[v[p+44>>2]>>2]=v[p+20>>2];v[v[p+40>>2]>>2]=v[p+24>>2];v[p+60>>2]=0}C=p- -64|0;v[z+28>>2]=v[p+60>>2]}C=z+32|0;return v[z+28>>2]}function H(p){var q=0,m,r=0,n=0,o,s=0;r=v[343];m=p+3&-4;q=r+m|0;a:{b:{if(q>>>0<=r>>>0?m:0)break b;if(q>>>0>Aa()<<16>>>0&&!(B(q|0)|0))break b;v[343]=q;break a}v[604]=48;r=-1}if((r|0)!=-1){m=p+r|0;q=m-16|0;v[q+12>>2]=16;v[q>>2]=16;p=v[600];p?s=v[p+8>>2]:s=0;c:{d:{if((s|0)==(r|0)){n=r-(v[r-4>>2]&-2)|0;o=v[n-4>>2];v[p+8>>2]=m;p=n-(o&-2)|0;m=-16;if(!(t[(p+v[p>>2]|0)-4|0]&1))break d;m=v[p+4>>2];v[m+8>>2]=v[p+8>>2];v[v[p+8>>2]+4>>2]=m;q=q-p|0;v[p>>2]=q;break c}v[r+12>>2]=16;v[r>>2]=16;v[r+8>>2]=m;v[r+4>>2]=p;v[600]=r;m=16}p=r+m|0;q=q-p|0;v[p>>2]=q}v[((q&-4)+p|0)-4>>2]=q|1;s=p;n=v[p>>2]-8|0;e:{if(n>>>0<=127){q=(n>>>3|0)-1|0;break e}o=A(n);q=((n>>>29-o^4)-(o<<2)|0)+110|0;if(n>>>0<=4095)break e;q=((n>>>30-o^2)-(o<<1)|0)+71|0;q=q>>>0<63?q:63}m=q<<4;v[s+4>>2]=m+1376;m=m+1384|0;v[p+8>>2]=v[m>>2];v[m>>2]=p;v[v[p+8>>2]+4>>2]=p;m=v[603];p=q&31;(q&63)>>>0>=32?(q=1<>>32-p,p=1<>2]=m;v[n>>2]=r;a:{if(w[n+10|0]>127){v[n+12>>2]=4;break a}q=v[n+4>>2];m=v[n>>2];p=C-48|0;C=p;v[p+40>>2]=n+11;v[p+36>>2]=q;v[p+32>>2]=m;t[p+31|0]=1;t[p+30|0]=7;v[p+24>>2]=n+10;t[p+23|0]=1;b:{if(!(v[p+32>>2]?v[p+36>>2]:0)){v[p+44>>2]=5;break b}v[p+16>>2]=w[p+31|0]+(w[p+23|0]+4|0);o=p,r=F(v[p+16>>2]),v[o+12>>2]=r;if(!v[p+12>>2]){v[p+44>>2]=3;break b}v[p+8>>2]=v[p+12>>2];t[v[p+8>>2]]=w[p+30|0];v[p+8>>2]=v[p+8>>2]+1;da(v[p+8>>2],v[p+40>>2],w[p+23|0]);v[p+8>>2]=w[p+23|0]+v[p+8>>2];v[p+4>>2]=w[p+31|0];q=v[p+8>>2];m=w[p+4|0]|w[p+5|0]<<8;t[q|0]=m;t[q+1|0]=m>>>8;t[q+2|0]=w[p+6|0];v[p+8>>2]=v[p+8>>2]+3;da(v[p+8>>2],v[p+24>>2],w[p+31|0]);v[v[p+32>>2]>>2]=v[p+16>>2];v[v[p+36>>2]>>2]=v[p+12>>2];v[p+44>>2]=0}C=p+48|0;v[n+12>>2]=v[p+44>>2]}C=n+16|0;return v[n+12>>2]}function J(p,q,m){p=p|0;q=q|0;m=m|0;var r=0,n=0,o=0,s=0,t=0;o=C+-64|0;C=o;n=1;a:{if(U(p,q,0))break a;n=0;if(!q)break a;r=C+-64|0;C=r;n=v[q>>2];s=v[n-4>>2];t=v[n-8>>2];v[r+20>>2]=0;v[r+16>>2]=1084;v[r+12>>2]=q;v[r+8>>2]=1132;n=0;ea(r+24|0,39);q=q+t|0;b:{if(U(s,1132,0)){v[r+56>>2]=1;la[v[v[s>>2]+20>>2]](s,r+8|0,q,q,1,0);n=v[r+32>>2]==1?q:0;break b}la[v[v[s>>2]+24>>2]](s,r+8|0,q,1,0);c:switch(v[r+44>>2]){case 0:n=v[r+48>>2]==1?v[r+36>>2]==1?v[r+40>>2]==1?v[r+28>>2]:0:0:0;break b;case 1:break c;default:break b}if(v[r+48>>2]|v[r+36>>2]!=1|v[r+40>>2]!=1?v[r+32>>2]!=1:0)break b;n=v[r+24>>2]}C=r- -64|0;q=n;n=0;if(!q)break a;ea(o+8|4,52);v[o+56>>2]=1;v[o+20>>2]=-1;v[o+16>>2]=p;v[o+8>>2]=q;la[v[v[q>>2]+28>>2]](q,o+8|0,v[m>>2],1);p=v[o+32>>2];(p|0)==1&&(v[m>>2]=v[o+24>>2]);n=(p|0)==1}p=n;C=o- -64|0;return p|0}function K(p,q,m){var r=0,n,o=0,s=0;r=p+4|0;n=(r+q|0)-1&0-q;q=v[p>>2];if(n+m>>>0<=(q+p|0)-4>>>0){o=v[p+4>>2];v[o+8>>2]=v[p+8>>2];v[v[p+8>>2]+4>>2]=o;(r|0)!=(n|0)&&(n=n-r|0,o=p-(v[p-4>>2]&-2)|0,r=n+v[o>>2]|0,v[o>>2]=r,v[(o+(r&-4)|0)-4>>2]=r,p=p+n|0,q=q-n|0,v[p>>2]=q);a:{if(m+24>>>0<=q>>>0){r=(p+m|0)+8|0;q=(q-m|0)-8|0;v[r>>2]=q;v[(r+(q&-4)|0)-4>>2]=q|1;s=r;o=v[r>>2]-8|0;b:{if(o>>>0<=127){n=(o>>>3|0)-1|0;break b}q=A(o);n=((o>>>29-q^4)-(q<<2)|0)+110|0;if(o>>>0<=4095)break b;q=((o>>>30-q^2)-(q<<1)|0)+71|0;n=q>>>0<63?q:63}q=n;n=q<<4;v[s+4>>2]=n+1376;n=n+1384|0;v[r+8>>2]=v[n>>2];v[n>>2]=r;v[v[r+8>>2]+4>>2]=r;n=v[603];r=q&31;(q&63)>>>0>=32?(q=1<>>32-r,s=1<>2]=q;v[((q&-4)+p|0)-4>>2]=q;break a}v[(p+q|0)-4>>2]=q}p=p+4|0}else p=0;return p}function L(p,q,m,r,n,o,s){var u=0,x=0;u=C-48|0;C=u;v[u+40>>2]=p;v[u+36>>2]=q;v[u+32>>2]=m;v[u+28>>2]=r;v[u+24>>2]=n;t[u+23|0]=o;t[u+22|0]=s;a:{if(!(v[u+24>>2]?v[u+28>>2]:0)){v[u+44>>2]=5;break a}v[v[u+28>>2]>>2]=0;v[v[u+24>>2]>>2]=0;if(!(y[u+32>>2]<=16777215?v[u+36>>2]:0)){v[u+44>>2]=5;break a}v[u+16>>2]=v[u+32>>2]+(w[u+23|0]+4|0);x=u,m=F(v[u+16>>2]),v[x+12>>2]=m;if(!v[u+12>>2]){v[u+44>>2]=3;break a}v[u+8>>2]=v[u+12>>2];t[v[u+8>>2]]=w[u+22|0];v[u+8>>2]=v[u+8>>2]+1;da(v[u+8>>2],v[u+40>>2],w[u+23|0]);v[u+8>>2]=w[u+23|0]+v[u+8>>2];p=v[u+8>>2];q=w[u+32|0]|w[u+33|0]<<8;t[p|0]=q;t[p+1|0]=q>>>8;t[p+2|0]=w[u+34|0];v[u+8>>2]=v[u+8>>2]+3;da(v[u+8>>2],v[u+36>>2],v[u+32>>2]);v[u+8>>2]=v[u+32>>2]+v[u+8>>2];v[v[u+28>>2]>>2]=v[u+12>>2];v[v[u+24>>2]>>2]=v[u+16>>2];v[u+44>>2]=0}C=u+48|0;return v[u+44>>2]}function M(p){var q=0,m,r=0,n,o=0;if(p){m=p-4|0;n=v[m>>2];r=n;q=m;o=v[p-8>>2];p=o&-2;(p|0)!=(o|0)&&(q=m-p|0,r=v[q+4>>2],v[r+8>>2]=v[q+8>>2],v[v[q+8>>2]+4>>2]=r,r=p+n|0);p=m+n|0;m=v[p>>2];(m|0)!=v[(p+m|0)-4>>2]&&(n=v[p+4>>2],v[n+8>>2]=v[p+8>>2],v[v[p+8>>2]+4>>2]=n,r=r+m|0);v[q>>2]=r;v[((r&-4)+q|0)-4>>2]=r|1;o=q;r=v[q>>2]-8|0;a:{if(r>>>0<=127){p=(r>>>3|0)-1|0;break a}n=A(r);p=((r>>>29-n^4)-(n<<2)|0)+110|0;if(r>>>0<=4095)break a;p=((r>>>30-n^2)-(n<<1)|0)+71|0;p=p>>>0<63?p:63}m=p<<4;v[o+4>>2]=m+1376;m=m+1384|0;v[q+8>>2]=v[m>>2];v[m>>2]=q;v[v[q+8>>2]+4>>2]=q;m=v[603];q=p&31;(p&63)>>>0>=32?(p=1<>>32-q,q=1<>2]=o;v[q+36>>2]=p;v[q+32>>2]=m;a:{if(!(v[q+32>>2]?v[q+36>>2]:0)){v[q+44>>2]=5;break a}if(y[q+40>>2]>4){v[q+44>>2]=8;break a}v[q+28>>2]=5;n=q,m=F(v[q+28>>2]),v[n+24>>2]=m;if(!v[q+24>>2]){v[q+44>>2]=3;break a}v[q+20>>2]=v[q+24>>2];t[q+19|0]=3;t[v[q+20>>2]]=w[q+19|0];v[q+20>>2]=v[q+20>>2]+1;v[q+12>>2]=1;o=v[q+20>>2];p=w[q+12|0]|w[q+13|0]<<8;t[o|0]=p;t[o+1|0]=p>>>8;t[o+2|0]=w[q+14|0];v[q+20>>2]=v[q+20>>2]+3;t[q+11|0]=v[q+40>>2];t[v[q+20>>2]]=w[q+11|0];v[v[q+36>>2]>>2]=v[q+24>>2];v[v[q+32>>2]>>2]=v[q+28>>2];v[q+44>>2]=0}C=q+48|0;return v[q+44>>2]}function O(o,p,m,q,n){o=o|0;p=p|0;m=m|0;q=q|0;n=n|0;if(U(o,v[p+8>>2],n)){fa(p,m,q);return}a:{if(U(o,v[p>>2],n)){if(!(v[p+20>>2]!=(m|0)?v[p+16>>2]!=(m|0):0)){if((q|0)!=1)break a;v[p+32>>2]=1;return}v[p+32>>2]=q;b:{if(v[p+44>>2]==4)break b;u[p+52>>1]=0;o=v[o+8>>2];la[v[v[o>>2]+20>>2]](o,p,m,m,1,n);if(w[p+53|0]){v[p+44>>2]=3;if(!w[p+52|0])break b;break a}v[p+44>>2]=4}v[p+20>>2]=m;v[p+40>>2]=v[p+40>>2]+1;if(v[p+36>>2]!=1|v[p+24>>2]!=2)break a;t[p+54|0]=1;return}o=v[o+8>>2];la[v[v[o>>2]+24>>2]](o,p,m,q,n)}}function P(p,q,m,r,n){var o=0;o=C-32|0;C=o;v[o+24>>2]=p;v[o+20>>2]=q;v[o+16>>2]=m;v[o+12>>2]=r;v[o+8>>2]=n;a:{if(y[o+16>>2]<1){v[o+28>>2]=9;break a}v[v[o+8>>2]>>2]=v[o+16>>2]-1;if(y[v[o+20>>2]>>2]>2]>>2]){v[o+28>>2]=1;break a}p=F(v[v[o+8>>2]>>2]);v[v[o+12>>2]>>2]=p;if(!v[v[o+12>>2]>>2]){v[o+28>>2]=3;break a}da(v[v[o+12>>2]>>2],v[v[o+24>>2]>>2],v[v[o+8>>2]>>2]);p=v[o+24>>2];v[p>>2]=v[v[o+8>>2]>>2]+v[p>>2];p=v[o+20>>2];v[p>>2]=v[p>>2]-v[v[o+8>>2]>>2];v[o+28>>2]=0}C=o+32|0;return v[o+28>>2]}function Q(o,p,m){o=o|0;p=p|0;m=m|0;var q=0,n=0;q=C-32|0;C=q;u[q+26>>1]=o;v[q+20>>2]=p;v[q+16>>2]=m;v[v[q+16>>2]>>2]=3;n=q,m=F(v[v[q+16>>2]>>2]),v[n+12>>2]=m;a:{if(!v[q+12>>2]){v[q+28>>2]=3;break a}v[v[q+20>>2]>>2]=v[q+12>>2];t[q+11|0]=14;t[v[q+12>>2]]=w[q+11|0];v[q+12>>2]=v[q+12>>2]+1;o=v[q+12>>2];p=w[q+26|0]|w[q+27|0]<<8;t[o|0]=p;t[o+1|0]=p>>>8;v[q+28>>2]=0}C=q+32|0;return v[q+28>>2]}function R(n,o){var m=0;m=C-16|0;C=m;v[m+12>>2]=n;v[m+8>>2]=o;v[m+4>>2]=0;while(1){if(y[m+4>>2]>2]){v[m>>2]=v[m+12>>2]+z(v[m+4>>2],20);a:{if(!(v[v[m>>2]>>2]&15)){M(v[v[m>>2]+8>>2]);break a}b:{if((v[v[m>>2]>>2]&15)==5){M(v[v[m>>2]+8>>2]);break b}(v[v[m>>2]>>2]&15)==6&&M(v[v[m>>2]+12>>2])}}v[m+4>>2]=v[m+4>>2]+1;continue}break}M(v[m+12>>2]);C=m+16|0}function ma(o,p,m){o=o|0;p=p|0;m=m|0;var q=0,n=0;q=C-32|0;C=q;t[q+27|0]=o;v[q+20>>2]=p;v[q+16>>2]=m;v[v[q+16>>2]>>2]=2;n=q,o=F(v[v[q+16>>2]>>2]),v[n+12>>2]=o;a:{if(!v[q+12>>2]){v[q+28>>2]=3;break a}v[v[q+20>>2]>>2]=v[q+12>>2];t[q+11|0]=8;t[v[q+12>>2]]=w[q+11|0];v[q+12>>2]=v[q+12>>2]+1;t[v[q+12>>2]]=w[q+27|0];v[q+28>>2]=0}C=q+32|0;return v[q+28>>2]}function S(n,o,m,p){t[n+53|0]=1;a:{if(v[n+4>>2]!=(m|0))break a;t[n+52|0]=1;m=v[n+16>>2];if(!m){v[n+36>>2]=1;v[n+24>>2]=p;v[n+16>>2]=o;if((p|0)!=1|v[n+48>>2]!=1)break a;t[n+54|0]=1;return}if((o|0)==(m|0)){m=v[n+24>>2];(m|0)==2&&(v[n+24>>2]=p,m=p);if(v[n+48>>2]!=1|(m|0)!=1)break a;t[n+54|0]=1;return}t[n+54|0]=1;v[n+36>>2]=v[n+36>>2]+1}}function T(o,p,m,q){var n;n=C-32|0;v[n+24>>2]=o;v[n+20>>2]=p;v[n+16>>2]=m;v[n+12>>2]=q;t[n+11|0]=0;a:{if(y[v[n+20>>2]>>2]<1){v[n+28>>2]=1;break a}t[n+11|0]=w[v[v[n+24>>2]>>2]];o=v[n+24>>2];v[o>>2]=v[o>>2]+1;o=v[n+20>>2];v[o>>2]=v[o>>2]-1;t[v[n+16>>2]]=(w[n+11|0]&128)==128;t[v[n+12>>2]]=w[n+11|0]&127;v[n+28>>2]=0}return v[n+28>>2]}function na(o,p,m,q,n){o=o|0;p=p|0;m=m|0;q=q|0;n=n|0;if(U(o,v[p+8>>2],n)){fa(p,m,q);return}a:{if(!U(o,v[p>>2],n))break a;if(!(v[p+20>>2]!=(m|0)?v[p+16>>2]!=(m|0):0)){if((q|0)!=1)break a;v[p+32>>2]=1;return}v[p+20>>2]=m;v[p+32>>2]=q;v[p+40>>2]=v[p+40>>2]+1;v[p+36>>2]!=1|v[p+24>>2]!=2||(t[p+54|0]=1);v[p+44>>2]=4}}function U(n,o,m){var p;if(!m)return v[n+4>>2]==v[o+4>>2];if((n|0)==(o|0))return 1;m=v[n+4>>2];n=w[m|0];o=v[o+4>>2];p=w[o|0];a:{if(!n|(p|0)!=(n|0))break a;while(1){p=w[o+1|0];n=w[m+1|0];if(!n)break a;o=o+1|0;m=m+1|0;if((n|0)==(p|0))continue;break}}return(n|0)==(p|0)}function V(n,o){n=n|0;o=o|0;var m=0,p=0;m=C-32|0;C=m;v[m+24>>2]=n;v[m+20>>2]=o;p=m,n=F(1),v[p+16>>2]=n;a:{if(!v[m+16>>2]){v[m+28>>2]=3;break a}t[m+15|0]=10;t[v[m+16>>2]]=w[m+15|0];v[v[m+24>>2]>>2]=v[m+16>>2];v[v[m+20>>2]>>2]=1;v[m+28>>2]=0}C=m+32|0;return v[m+28>>2]}function W(n,o){n=n|0;o=o|0;var m=0,p=0;m=C-32|0;C=m;v[m+24>>2]=n;v[m+20>>2]=o;p=m,n=F(1),v[p+16>>2]=n;a:{if(!v[m+16>>2]){v[m+28>>2]=3;break a}t[m+15|0]=9;t[v[m+16>>2]]=w[m+15|0];v[v[m+24>>2]>>2]=v[m+16>>2];v[v[m+20>>2]>>2]=1;v[m+28>>2]=0}C=m+32|0;return v[m+28>>2]}function X(n,o){n=n|0;o=o|0;var m=0,p=0;m=C-32|0;C=m;v[m+24>>2]=n;v[m+20>>2]=o;p=m,n=F(1),v[p+16>>2]=n;a:{if(!v[m+16>>2]){v[m+28>>2]=3;break a}t[m+15|0]=2;t[v[m+16>>2]]=w[m+15|0];v[v[m+24>>2]>>2]=v[m+16>>2];v[v[m+20>>2]>>2]=1;v[m+28>>2]=0}C=m+32|0;return v[m+28>>2]}function oa(n,o){n=n|0;o=o|0;var m=0,p=0;m=C-32|0;C=m;v[m+24>>2]=n;v[m+20>>2]=o;p=m,n=F(1),v[p+16>>2]=n;a:{if(!v[m+16>>2]){v[m+28>>2]=3;break a}t[m+15|0]=4;t[v[m+16>>2]]=w[m+15|0];v[v[m+24>>2]>>2]=v[m+16>>2];v[v[m+20>>2]>>2]=1;v[m+28>>2]=0}C=m+32|0;return v[m+28>>2]}function pa(p,q,m,r,n){p=p|0;q=q|0;m=m|0;r=r|0;n=n|0;var o=0;o=C-32|0;C=o;u[o+30>>1]=p;v[o+24>>2]=q;v[o+20>>2]=m;v[o+16>>2]=r;v[o+12>>2]=n;p=L(o+30|0,v[o+24>>2],v[o+20>>2],v[o+16>>2],v[o+12>>2],2,15);C=o+32|0;return p|0}function Y(p,q,m,r,n){p=p|0;q=q|0;m=m|0;r=r|0;n=n|0;var o=0;o=C-32|0;C=o;t[o+31|0]=p;v[o+24>>2]=q;v[o+20>>2]=m;v[o+16>>2]=r;v[o+12>>2]=n;p=L(o+31|0,v[o+24>>2],v[o+20>>2],v[o+16>>2],v[o+12>>2],1,5);C=o+32|0;return p|0}function Z(m){var n=0;n=C-16|0;C=n;v[n+12>>2]=m;m=1;a:{if(aa(v[n+12>>2])&1)break a;m=1;if(v[n+12>>2]==15)break a;m=1;if(v[n+12>>2]==13)break a;m=1;if(v[n+12>>2]==12)break a;m=v[n+12>>2]==14}C=n+16|0;return m}function $(n,o,m){var p;p=v[n+16>>2];if(!p){v[n+36>>2]=1;v[n+24>>2]=m;v[n+16>>2]=o;return}a:{if((o|0)==(p|0)){if(v[n+24>>2]!=2)break a;v[n+24>>2]=m;return}t[n+54|0]=1;v[n+24>>2]=2;v[n+36>>2]=v[n+36>>2]+1}}function aa(m){var n;n=C-16|0;v[n+12>>2]=m;m=1;a:{if(v[n+12>>2]==5)break a;m=1;if(v[n+12>>2]==6)break a;m=1;if(v[n+12>>2]==7)break a;m=v[n+12>>2]==8}return m}function ba(p,q,m,r,n,o){p=p|0;q=q|0;m=m|0;r=r|0;n=n|0;o=o|0;if(U(p,v[q+8>>2],o)){S(q,m,r,n);return}p=v[p+8>>2];la[v[v[p>>2]+20>>2]](p,q,m,r,n,o)}function qa(){var n=0,o,m;while(1){o=n<<4;m=o+1376|0;v[o+1380>>2]=m;v[o+1384>>2]=m;n=n+1|0;if((n|0)!=64)continue;break}H(48)}function ra(n,o,m,p){n=n|0;o=o|0;m=m|0;p=p|0;if(U(n,v[o+8>>2],0)){$(o,m,p);return}n=v[n+8>>2];la[v[v[n>>2]+28>>2]](n,o,m,p)}function ca(p,q,m,r,n,o){p=p|0,q=q|0,m=m|0,r=r|0,n=n|0,o=o|0,U(p,v[q+8>>2],o)&&S(q,m,r,n)}function da(n,o,m){if(m)while(1){t[n|0]=w[o|0];n=n+1|0;o=o+1|0;m=m-1|0;if(m)continue;break}}function ea(m,n){if(n)while(1){t[m|0]=0;m=m+1|0;n=n-1|0;if(n)continue;break}}function sa(n,o,m,p){n=n|0,o=o|0,m=m|0,p=p|0,U(n,v[o+8>>2],0)&&$(o,m,p)}function fa(n,o,m){v[n+28>>2]==1|v[n+4>>2]!=(o|0)||(v[n+28>>2]=m)}function ta(m,n){m=m|0;n=n|0;return z(n,20)+m|0}function ga(m){m=m|0;return w[m+8|0]>>>1|0}function ha(m){m=m|0;return v[m+12>>2]}function ia(m){m=m|0;return v[m>>2]&15}function ja(m){m=m|0;return v[m+16>>2]}function ka(m){m=m|0;return t[m+8|0]&1}function ua(m){m=m|0;return v[m+8>>2]}function va(m){m=m|0;return w[m+4|0]}function wa(m){m=m|0;return m|0}function xa(m){return F(m)}function ya(m){m=m|0,M(m)}function za(m){m|0}o=w;s(m);var la=n([null,wa,ya,za,za,J,ca,na,sa,ya,ba,O,ra]);function Aa(){return q.byteLength/65536|0}function Ba(m){m=m|0;var n=Aa()|0;m=n+m|0;if(n0&&(m+=n-m%n);return m}var J,K;function L(m){J=m,n.HEAP8=new Int8Array(m),n.HEAP16=new Int16Array(m),n.HEAP32=new Int32Array(m),n.HEAPU8=K=new Uint8Array(m),n.HEAPU16=new Uint16Array(m),n.HEAPU32=new Uint32Array(m),n.HEAPF32=new Float32Array(m),n.HEAPF64=new Float64Array(m)}v=n.INITIAL_MEMORY||8388608;n.wasmMemory?F=n.wasmMemory:F=new E.Memory({initial:v/65536,maximum:2147483648/65536});F&&(J=F.buffer);J.byteLength;L(J);var M,N=[],O=[],P=[];function Q(){if(n.preRun){typeof n.preRun=="function"&&(n.preRun=[n.preRun]);while(n.preRun.length)S(n.preRun.shift())}ca(N)}function R(){ca(O)}function ma(){if(n.postRun){typeof n.postRun=="function"&&(n.postRun=[n.postRun]);while(n.postRun.length)na(n.postRun.shift())}ca(P)}function S(m){N.unshift(m)}function T(m){O.unshift(m)}function na(m){P.unshift(m)}(!Math.imul||Math.imul(4294967295,5)!==-5)&&(Math.imul=function(m,n){var o=m>>>16;m=m&65535;var p=n>>>16;n=n&65535;return m*n+(o*n+m*p<<16)|0});if(!Math.fround){var U=new Float32Array(1);Math.fround=function(m){U[0]=m;return U[0]}}Math.clz32||(Math.clz32=function(m){var n=32,o=m>>16;o&&(n-=16,m=o);o=m>>8;o&&(n-=8,m=o);o=m>>4;o&&(n-=4,m=o);o=m>>2;o&&(n-=2,m=o);o=m>>1;return o?n-2:n-m});Math.trunc||(Math.trunc=function(m){return m<0?Math.ceil(m):Math.floor(m)});var V=0,W=null,X=null;function oa(m){V++,n.monitorRunDependencies&&n.monitorRunDependencies(V)}function pa(m){V--;n.monitorRunDependencies&&n.monitorRunDependencies(V);if(V==0){W!==null&&(clearInterval(W),W=null);if(X){m=X;X=null;m()}}}n.preloadedImages={};n.preloadedAudios={};function Y(m){n.onAbort&&n.onAbort(m);m+="";C(m);G=!0;m="abort("+m+"). Build with -s ASSERTIONS=1 for more info.";m=new E.RuntimeError(m);t(m);throw m}var Z="data:application/octet-stream;base64,";function $(m){return m.startsWith(Z)}var aa="dgwcppbridge.wasm";$(aa)||(aa=A(aa));function ba(m){try{if(m==aa&&D)return new Uint8Array(D);var n=ha(m);if(n)return n;if(B)return B(m);else throw"both async and sync fetching of the wasm failed"}catch(m){Y(m)}}function qa(){return!D&&(x||y)&&typeof fetch==="function"?fetch(aa,{credentials:"same-origin"}).then(function(m){if(!m.ok)throw"failed to load wasm binary file at '"+aa+"'";return m.arrayBuffer()})["catch"](function(){return ba(aa)}):o.resolve().then(function(){return ba(aa)})}function ra(){var o={a:ia};function p(o,m){m=o.exports;n.asm=m;M=n.asm.C;T(n.asm.c);pa("wasm-instantiate")}oa("wasm-instantiate");function s(m){p(m.instance)}function u(m){return qa().then(function(m){m=E.instantiate(m,o);return m}).then(m,function(m){C("failed to asynchronously prepare wasm: "+m),Y(m)})}function v(){if(!D&&typeof E.instantiateStreaming==="function"&&!$(aa)&&typeof fetch==="function")return fetch(aa,{credentials:"same-origin"}).then(function(m){m=E.instantiateStreaming(m,o);return m.then(s,function(m){C("wasm streaming compile failed: "+m);C("falling back to ArrayBuffer instantiation");return u(s)})});else return u(s)}if(n.instantiateWasm)try{var m=n.instantiateWasm(o,p);return m}catch(m){C("Module.instantiateWasm callback failed with error: "+m);return!1}v()["catch"](t);return{}}function ca(m){while(m.length>0){var o=m.shift();if(typeof o=="function"){o(n);continue}var p=o.func;typeof p==="number"?o.arg===void 0?M.get(p)():M.get(p)(o.arg):p(o.arg===void 0?null:o.arg)}}function da(m){try{F.grow(m-J.byteLength+65535>>>16);L(F.buffer);return 1}catch(m){}}function ea(m){var n=K.length;m=m>>>0;var o=2147483648;if(m>o)return!1;for(var p=1;p<=4;p*=2){var q=n*(1+.2/p);q=Math.min(q,m+100663296);q=Math.min(o,I(Math.max(m,q),65536));q=da(q);if(q)return!0}return!1}var sa=!1;function fa(m){var n=[];for(var o=0;o255&&(sa&&H(!1,"Character code "+p+" ("+String.fromCharCode(p)+") at offset "+o+" not in 0x00-0xFF."),p&=255);n.push(String.fromCharCode(p))}return n.join("")}var ta=typeof atob==="function"?atob:function(m){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="",p,q,r,s,t,u=0;m=m.replace(/[^A-Za-z0-9\+\/\=]/g,"");do q=n.indexOf(m.charAt(u++)),r=n.indexOf(m.charAt(u++)),s=n.indexOf(m.charAt(u++)),t=n.indexOf(m.charAt(u++)),q=q<<2|r>>4,r=(r&15)<<4|s>>2,p=(s&3)<<6|t,o=o+String.fromCharCode(q),s!==64&&(o=o+String.fromCharCode(r)),t!==64&&(o=o+String.fromCharCode(p));while(u0)return;Q();if(V>0)return;function o(){if(ja)return;ja=!0;n.calledRun=!0;if(G)return;R();p(n);n.onRuntimeInitialized&&n.onRuntimeInitialized();ma()}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),o()},1)):o()}n.run=ka;if(n.preInit){typeof n.preInit=="function"&&(n.preInit=[n.preInit]);while(n.preInit.length>0)n.preInit.pop()()}ka();return n.ready}}();typeof r==="object"&&typeof q==="object"?q.exports=s:typeof define==="function"&&define.amd?define([],function(){return s}):typeof r==="object"&&(r.Module=s)}),null); __d("AcfToastImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1873550");c=b("FalcoLoggerInternal").create("acf_toast_impression",a);e.exports=c}),null); __d("ClientConsistencyFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1764786");c=b("FalcoLoggerInternal").create("client_consistency",a);e.exports=c}),null); __d("CometTopnavItemClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1743396");c=b("FalcoLoggerInternal").create("comet_topnav_item_click",a);e.exports=c}),null); __d("CometTopnavItemImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1743397");c=b("FalcoLoggerInternal").create("comet_topnav_item_impression",a);e.exports=c}),null); __d("ProfilePlusContinuityFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("820");c=b("FalcoLoggerInternal").create("profile_plus_continuity",a);e.exports=c}),null); __d("QpActionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1744247");c=b("FalcoLoggerInternal").create("qp_action",a);e.exports=c}),null); __d("QpImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1744249");c=b("FalcoLoggerInternal").create("qp_impression",a);e.exports=c}),null); __d("ProfileEngagementTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:ProfileEngagementLoggerConfig")}),null); __d("FalcoLoggerTransports",["AnalyticsCoreData","Banzai","JSResource","ODS","PersistedQueue","Queue","WebSession","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=5*1024,i=60*1e3,j=1e3,k="falco:",l=new(c("Queue"))(),m=[],n=0,o,p=!1,q=!1,r=!1,s=!0;function t(a,b){var c=b.item.extra.length;n+c>h&&(clearTimeout(o),u());m.push([a,b]);n+=c}function u(){o=null;p=!1;var a=m;l.enqueue(function(b){return b.log(a.map(function(a){return a[1].item}),function(b){for(var c=0;c=this.$1.publishWaitIntervalsMS().length};b.waitForNextPublish=function(){var a=this,b=this.$1.publishWaitIntervalsMS()[this.$3];this.$3+=1;b===0?this.$8():c("setTimeout")(function(){a.$8()},b)};b.startSubscribeTimer=function(){var a=this,b=this.$1.subscribeTimeoutIntervalMS();this.$4=c("setTimeout")(function(){a.$9()},b)};b.startPayloadTimer=function(){var a=this,b=this.$1.payloadTimeoutIntervalMS();this.$5=c("setTimeout")(function(){a.$10()},b)};b.cleanUpFleetBeacon=function(){this.$1.cleanUpFleetBeacon()};b.onCleanUpFinish=function(){var a=this;this.$6(function(){return a.$2.cleanUpFinish()})};b.$8=function(){var a=this;this.$6(function(){return a.$2.waitForPublishTimeout()})};b.$9=function(){var a=this;this.$6(function(){return a.$2.subscribeTimeout()})};b.$10=function(){var a=this;this.$6(function(){return a.$2.payloadTimeout()})};b.onPrepareFleetBeaconSuccess=function(){var a=this;this.$6(function(){return a.$2.prepareFleetBeaconSucceed()})};b.onPrepareFleetBeaconFailed=function(){var a=this;this.$6(function(){return a.$2.prepareFleetBeaconFailed()})};b.onSubscribe=function(){var a=this;c("clearTimeout")(this.$4);this.$6(function(){return a.$2.subscribeSuccessSignalReceived()})};b.onPayloadReceived=function(){var a=this;c("clearTimeout")(this.$5);this.$6(function(){return a.$2.payloadReceived()})};b.onPublishFailed=function(){var a=this;c("clearTimeout")(this.$5);this.$6(function(){return a.$2.publishFailed()})};b.$6=function(a){a=a();var b=this.$2;this.$2=a.newState;var c=this.$2;this.$11(b,c);a.action()};b.$11=function(a,b){this.$1.onFleetBeaconStateTransition(a,b)};return a}();g["default"]=a}),98); __d("FleetBeaconStateTransitionListener",[],(function(a,b,c,d,e,f){a=function(){function a(){}var b=a.prototype;b.onFleetBeaconStateTransition=function(a,b,c,d){throw new Error("Require implementation")};b.cleanState=function(){throw new Error("Require implementation")};return a}();f["default"]=a}),66); __d("FleetBeaconTestBase",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1=null,this.$2=[]}var b=a.prototype;b.addStateTransitionListener=function(a){this.$2.push(a)};b.cleanPreviousFleetBeaconResult=function(){this.$2.forEach(function(a){a.cleanState()})};b.getNumberOfPublishers=function(){var a;return(a=(a=this.$1)==null?void 0:a.getPublishTimes())!=null?a:-1};b.getTestID=function(){throw new Error("Require implementation")};b.setFleetBeaconRunner=function(a){this.$1=a};b.prepareFleetBeaconTest=function(){throw new Error("Require implementation")};b.onPrepareFleetBeaconSuccess=function(){var a;(a=this.$1)==null?void 0:a.onPrepareFleetBeaconSuccess()};b.onPrepareFleetBeaconFailed=function(){var a;(a=this.$1)==null?void 0:a.onPrepareFleetBeaconFailed()};b.subscribe=function(){throw new Error("Require implementation")};b.onSubscribe=function(){var a;(a=this.$1)==null?void 0:a.onSubscribe()};b.publish=function(){throw new Error("Require implementation")};b.cleanUpFleetBeacon=function(){throw new Error("Require implementation")};b.onCleanUpFinish=function(){var a;(a=this.$1)==null?void 0:a.onCleanUpFinish()};b.onPublishFailed=function(){var a;(a=this.$1)==null?void 0:a.onPublishFailed()};b.onPayloadReceived=function(){var a;(a=this.$1)==null?void 0:a.onPayloadReceived()};b.subscribeTimeoutIntervalMS=function(){return 1e4};b.payloadTimeoutIntervalMS=function(){return 2e4};b.publishWaitIntervalsMS=function(){return[1e4,5e3]};b.shouldStartTime=function(){return!0};b.onFleetBeaconStateTransition=function(a,b){var c=this,d=Date.now();this.$2.forEach(function(e){e.onFleetBeaconStateTransition(a,b,d,c)})};return a}();f["default"]=a}),66); __d("FleetBeaconTestUIAnnouncer",["FleetBeaconStateTransitionListener"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this)||this;b.$FleetBeaconTestUIAnnouncer1=[];b.$FleetBeaconTestUIAnnouncer3=!1;b.$FleetBeaconTestUIAnnouncer4=!1;b.$FleetBeaconTestUIAnnouncer5=!1;b.$FleetBeaconTestUIAnnouncer6=!1;b.$FleetBeaconTestUIAnnouncer7=-1;b.$FleetBeaconTestUIAnnouncer8=-1;b.$FleetBeaconTestUIAnnouncer9=0;b.$FleetBeaconTestUIAnnouncer10=0;b.$FleetBeaconTestUIAnnouncer11=[];b.$FleetBeaconTestUIAnnouncer12=-1;b.$FleetBeaconTestUIAnnouncer13=-1;b.$FleetBeaconTestUIAnnouncer14=-1;return b}var c=b.prototype;c.cleanState=function(){this.$FleetBeaconTestUIAnnouncer3=!1,this.$FleetBeaconTestUIAnnouncer4=!1,this.$FleetBeaconTestUIAnnouncer5=!1,this.$FleetBeaconTestUIAnnouncer6=!1,this.$FleetBeaconTestUIAnnouncer7=-1,this.$FleetBeaconTestUIAnnouncer8=-1,this.$FleetBeaconTestUIAnnouncer9=0,this.$FleetBeaconTestUIAnnouncer10=0,this.$FleetBeaconTestUIAnnouncer11=[],this.$FleetBeaconTestUIAnnouncer12=-1,this.$FleetBeaconTestUIAnnouncer13=-1,this.$FleetBeaconTestUIAnnouncer14=-1};c.addSubscriber=function(a){this.$FleetBeaconTestUIAnnouncer1.push(a)};c.onFleetBeaconStateTransition=function(a,b,c,d){var e=d.getTestID(),f={oldState:a,newState:b,testID:e,timestamp:c,extra:{}};this.$FleetBeaconTestUIAnnouncer2==null&&(this.$FleetBeaconTestUIAnnouncer2=d);e="NONE";switch(b.getName()){case"initial":break;case"preparing":this.$FleetBeaconTestUIAnnouncer12=Date.now();this.$FleetBeaconTestUIAnnouncer3=!0;f.extra=babelHelpers["extends"]({},f.extra,{createIssued:!0});break;case"before_subscribe":this.$FleetBeaconTestUIAnnouncer13=Date.now();this.$FleetBeaconTestUIAnnouncer4=!0;f.extra=babelHelpers["extends"]({},f.extra,{createSuccess:!0});break;case"subscribe_issued":this.$FleetBeaconTestUIAnnouncer5=!0;f.extra=babelHelpers["extends"]({},f.extra,{subscribeIssued:!0,subscribeTimestamp:this.$FleetBeaconTestUIAnnouncer13,subscribeTimeoutIntervalMS:(d=(c=this.$FleetBeaconTestUIAnnouncer2)==null?void 0:c.subscribeTimeoutIntervalMS())!=null?d:-1});break;case"waiting_to_publish":a.getName()==="subscribe_issued"&&(this.$FleetBeaconTestUIAnnouncer6=!0,this.$FleetBeaconTestUIAnnouncer7=Date.now()-this.$FleetBeaconTestUIAnnouncer13,f.extra=babelHelpers["extends"]({},f.extra,{subscribeSuccess:!0,subscribeLatencyMS:this.$FleetBeaconTestUIAnnouncer7}));a.getName()==="publish_issued"&&this.$FleetBeaconTestUIAnnouncer15(f);break;case"publish_issued":this.$FleetBeaconTestUIAnnouncer9+=1;this.$FleetBeaconTestUIAnnouncer14=Date.now();f.extra=babelHelpers["extends"]({},f.extra,{publishIssued:!0,payloadTimeoutInterval:(c=(b=this.$FleetBeaconTestUIAnnouncer2)==null?void 0:b.payloadTimeoutIntervalMS())!=null?c:-1});break;case"failed":a.getName()==="subscribe_issued"&&(e="SUBSCRIBE_FAILED");a.getName()==="publish_issued"&&(e="RECEIVE_PUBLISH_FAILED");this.$FleetBeaconTestUIAnnouncer16(f,"FAILURE",e);break;case"succeed":a.getName()==="publish_issued"&&this.$FleetBeaconTestUIAnnouncer15(f);this.$FleetBeaconTestUIAnnouncer16(f,"SUCCESS","NONE");break;case"aborted":a.getName()==="preparing"&&(e="CREATE_TEST_FAILED");a.getName()==="publish_issued"&&(e="MUTATE_FIELD_FAILED");this.$FleetBeaconTestUIAnnouncer16(f,"ABORT",e);break;case"finish":f.extra=babelHelpers["extends"]({},f.extra,{cleanUpFinish:!0});break;default:}this.$FleetBeaconTestUIAnnouncer1.forEach(function(a){a(f)})};c.$FleetBeaconTestUIAnnouncer15=function(a){this.$FleetBeaconTestUIAnnouncer10+=1;var b=Date.now()-this.$FleetBeaconTestUIAnnouncer14;this.$FleetBeaconTestUIAnnouncer11.push(b);a.extra=babelHelpers["extends"]({},a.extra,{payloadSuccess:!0,payloadSuccessCnt:this.$FleetBeaconTestUIAnnouncer10,payloadLatency:b})};c.$FleetBeaconTestUIAnnouncer16=function(a,b,c){a.extra=babelHelpers["extends"]({},a.extra,{testResult:b,failureReason:c})};return b}(c("FleetBeaconStateTransitionListener"));g["default"]=a}),98); __d("FleetBeaconSubscriptionNetwork",["CurrentUser","FleetBeaconSubscriptionNetwork_LogMutation.graphql","FleetBeaconSubscriptionNetwork_PublishMutation.graphql","FleetBeaconSubscriptionNetwork_Subscription.graphql","Promise","RelayModern","regeneratorRuntime","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;a=function(){function a(a){this.environment=a}var e=a.prototype;e.subscribe=function(a,c){return d("RelayModern").requestSubscription(this.environment,{subscription:h!==void 0?h:h=b("FleetBeaconSubscriptionNetwork_Subscription.graphql"),variables:{input:{test_id:a}},onError:c.onError,onNext:c.onNext})};e.publish=function(a){var e=this;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:return f.abrupt("return",new(b("Promise"))(function(f,g){d("RelayModern").commitMutation(e.environment,{mutation:i!==void 0?i:i=b("FleetBeaconSubscriptionNetwork_PublishMutation.graphql"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getAccountID(),test_id:a}},onCompleted:function(a){return f()},onError:g})}));case 1:case"end":return f.stop()}},null,this)};e.log=function(a){var c=this;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new(b("Promise"))(function(e,f){d("RelayModern").commitMutation(c.environment,{mutation:j!==void 0?j:j=b("FleetBeaconSubscriptionNetwork_LogMutation.graphql"),variables:{input:a},onCompleted:function(a){return e()},onError:f})}));case 1:case"end":return e.stop()}},null,this)};return a}();g["default"]=a}),98); __d("FleetBeaconTestSubscriptionLogger",["CurrentUser","FleetBeaconStateTransitionListener","RelayRTIUtils","uuid"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.$FleetBeaconTestSubscriptionLogger1=null;e.$FleetBeaconTestSubscriptionLogger2=b;e.$FleetBeaconTestSubscriptionLogger3=!1;e.$FleetBeaconTestSubscriptionLogger4=!1;e.$FleetBeaconTestSubscriptionLogger5=!1;e.$FleetBeaconTestSubscriptionLogger6=!1;e.$FleetBeaconTestSubscriptionLogger7=-1;e.$FleetBeaconTestSubscriptionLogger8=-1;e.$FleetBeaconTestSubscriptionLogger9=0;e.$FleetBeaconTestSubscriptionLogger10=0;e.$FleetBeaconTestSubscriptionLogger11=[];e.$FleetBeaconTestSubscriptionLogger12=-1;e.$FleetBeaconTestSubscriptionLogger13=-1;e.$FleetBeaconTestSubscriptionLogger14=-1;e.$FleetBeaconTestSubscriptionLogger15=c;e.$FleetBeaconTestSubscriptionLogger16=d;return e}var e=b.prototype;e.cleanState=function(){this.$FleetBeaconTestSubscriptionLogger3=!1,this.$FleetBeaconTestSubscriptionLogger4=!1,this.$FleetBeaconTestSubscriptionLogger5=!1,this.$FleetBeaconTestSubscriptionLogger6=!1,this.$FleetBeaconTestSubscriptionLogger7=-1,this.$FleetBeaconTestSubscriptionLogger8=-1,this.$FleetBeaconTestSubscriptionLogger9=0,this.$FleetBeaconTestSubscriptionLogger10=0,this.$FleetBeaconTestSubscriptionLogger11=[],this.$FleetBeaconTestSubscriptionLogger12=-1,this.$FleetBeaconTestSubscriptionLogger13=-1,this.$FleetBeaconTestSubscriptionLogger14=-1};e.onFleetBeaconStateTransition=function(a,b,c,d){this.$FleetBeaconTestSubscriptionLogger1==null&&(this.$FleetBeaconTestSubscriptionLogger1=d);c="NONE";switch(b.getName()){case"initial":break;case"preparing":this.$FleetBeaconTestSubscriptionLogger12=Date.now();this.$FleetBeaconTestSubscriptionLogger3=!0;break;case"before_subscribe":this.$FleetBeaconTestSubscriptionLogger13=Date.now();this.$FleetBeaconTestSubscriptionLogger4=!0;break;case"subscribe_issued":this.$FleetBeaconTestSubscriptionLogger5=!0;break;case"waiting_to_publish":a.getName()==="subscribe_issued"&&(this.$FleetBeaconTestSubscriptionLogger6=!0,this.$FleetBeaconTestSubscriptionLogger7=Date.now()-this.$FleetBeaconTestSubscriptionLogger13);a.getName()==="publish_issued"&&this.$FleetBeaconTestSubscriptionLogger17();break;case"publish_issued":this.$FleetBeaconTestSubscriptionLogger9+=1;this.$FleetBeaconTestSubscriptionLogger14=Date.now();break;case"failed":a.getName()==="subscribe_issued"&&(c="SUBSCRIBE_FAILED");a.getName()==="publish_issued"&&(c="RECEIVE_PUBLISH_FAILED");this.$FleetBeaconTestSubscriptionLogger18("FAILURE",c);break;case"succeed":a.getName()==="publish_issued"&&this.$FleetBeaconTestSubscriptionLogger17();this.$FleetBeaconTestSubscriptionLogger18("SUCCESS","NONE");break;case"aborted":a.getName()==="preparing"&&(c="CREATE_TEST_FAILED");a.getName()==="publish_issued"&&(c="MUTATE_FIELD_FAILED");this.$FleetBeaconTestSubscriptionLogger18("ABORT",c);break;default:}};e.$FleetBeaconTestSubscriptionLogger17=function(){this.$FleetBeaconTestSubscriptionLogger10+=1;var a=Date.now()-this.$FleetBeaconTestSubscriptionLogger14;this.$FleetBeaconTestSubscriptionLogger11.push(a)};e.$FleetBeaconTestSubscriptionLogger18=function(a,b){var e,f=this,g=this.$FleetBeaconTestSubscriptionLogger12=Date.now()-this.$FleetBeaconTestSubscriptionLogger12,h=parseInt(this.$FleetBeaconTestSubscriptionLogger11.reduce(function(a,b){return a+b},0)/this.$FleetBeaconTestSubscriptionLogger10,10);e=(e=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:e.getTestID();if(e==null)return;this.$FleetBeaconTestSubscriptionLogger2.log({client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getAccountID(),test_id:e,test_name:"Web_Manual",test_result:a,failure_reason:b,subscribe_issued:this.$FleetBeaconTestSubscriptionLogger5,subscribe_success:this.$FleetBeaconTestSubscriptionLogger6,subscribe_latency_ms:this.$FleetBeaconTestSubscriptionLogger7,subscribe_timeout_interval_ms:(e=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:e.subscribeTimeoutIntervalMS(),publish_success:this.$FleetBeaconTestSubscriptionLogger10>0,publish_latency_ms:h,publish_timeout_interval_ms:(a=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:a.payloadTimeoutIntervalMS(),test_duration_ms:g,triggering_subscription:(b=this.$FleetBeaconTestSubscriptionLogger15)!=null?b:"manual",app_id:d("RelayRTIUtils").GRAPH_SERVICES_SDK_APP_ID}).then(function(a){f.$FleetBeaconTestSubscriptionLogger16(!0)})["catch"](function(a){f.$FleetBeaconTestSubscriptionLogger16(!1)})};return b}(c("FleetBeaconStateTransitionListener"));g["default"]=a}),98); __d("FleetBeaconTestSubscription",["FleetBeaconTestBase","FleetBeaconTestSubscriptionLogger","FleetBeaconTestUIAnnouncer","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.onCleanUpFleetBeaconFinish=function(a){f.onCleanUpFinish()};f.$FleetBeaconTestSubscription1=b;f.$FleetBeaconTestSubscription3=null;f.$FleetBeaconTestSubscription4=e;f.$FleetBeaconTestSubscription6=new(c("FleetBeaconTestSubscriptionLogger"))(b,d,f.onCleanUpFleetBeaconFinish);f.$FleetBeaconTestSubscription5=new(c("FleetBeaconTestUIAnnouncer"))();a.prototype.addStateTransitionListener.call(babelHelpers.assertThisInitialized(f),f.$FleetBeaconTestSubscription6);a.prototype.addStateTransitionListener.call(babelHelpers.assertThisInitialized(f),f.$FleetBeaconTestSubscription5);f.cleanPreviousFleetBeaconResult();return f}var d=b.prototype;d.cleanPreviousFleetBeaconResult=function(){a.prototype.cleanPreviousFleetBeaconResult.call(this),this.$FleetBeaconTestSubscription2=c("uuid")()};d.getTestID=function(){return this.$FleetBeaconTestSubscription2};d.getFleetBeaconUIAnnouncer=function(){return this.$FleetBeaconTestSubscription5};d.prepareFleetBeaconTest=function(){this.onPrepareFleetBeaconSuccess()};d.subscribe=function(){var a=this,b=this.$FleetBeaconTestSubscription2;if(b==null)return;this.$FleetBeaconTestSubscription3=this.$FleetBeaconTestSubscription1.subscribe(b,{onNext:function(){a.onPayloadReceived()},onError:function(){}});this.onSubscribe()};d.publish=function(){var b=this,c=this.$FleetBeaconTestSubscription2;if(c==null)return;this.$FleetBeaconTestSubscription1.publish(c)["catch"](function(c){a.prototype.onPublishFailed.call(b)})};d.cleanUpFleetBeacon=function(){};d.$FleetBeaconTestSubscription7=function(){var a;(a=this.$FleetBeaconTestSubscription3)==null?void 0:a.dispose()};d.onFleetBeaconStateTransition=function(b,c){a.prototype.onFleetBeaconStateTransition.call(this,b,c);b=c.getName();b==="finish"&&(this.$FleetBeaconTestSubscription4(),this.$FleetBeaconTestSubscription7())};return b}(c("FleetBeaconTestBase"));g["default"]=a}),98); __d("FleetBeaconSubscriptionLauncher",["FleetBeaconRunner","FleetBeaconSubscriptionNetwork","FleetBeaconTestSubscription"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){a=new(c("FleetBeaconTestSubscription"))(new(c("FleetBeaconSubscriptionNetwork"))(a),b,d);return a}function b(a){var b=new(c("FleetBeaconRunner"))(a);a.setFleetBeaconRunner(b);b.prepareFleetBeaconTest()}g.CreateFleetBeaconTestSubscription=a;g.LaunchFleetBeaconTestSubscription=b}),98); __d("MqttLongPollingHookCollection",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1=new Set()}var b=a.prototype;b.addHook=function(a){this.$1.add(a)};b.removeHook=function(a){this.$1["delete"](a)};b.onPollRequestSent=function(){this.$1.forEach(function(a){a.onPollRequestSent()})};b.onPollRequestSuccess=function(){this.$1.forEach(function(a){a.onPollRequestSuccess()})};b.onPollResponse=function(a){this.$1.forEach(function(b){b.onPollResponse(a)})};b.onPollFinish=function(){this.$1.forEach(function(a){a.onPollFinish()})};b.onPollRequestFailed=function(a){this.$1.forEach(function(b){b.onPollRequestFailed(a)})};return a}();f["default"]=a}),66); __d("PromiseResult",["Promise"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){var a=this;this.promise=new(b("Promise"))(function(b,c){a.$1=b,a.$2=c})}var c=a.prototype;c.resolve=function(a){this.$1(a)};c.reject=function(a){this.$2(a)};return a}();f["default"]=a}),66); __d("MqttFetchClient",["MqttEnv","MqttProtocolCodec","MqttUtils","Promise","PromiseResult"],(function(a,b,c,d,e,f){"use strict";var g=b("MqttProtocolCodec").WireMessage,h=b("MqttProtocolCodec").decodeByteMessages,i=b("MqttEnv").Env,j=b("MqttProtocolCodec").MESSAGE_TYPE,k="fetch_pull",l="fetch_pull_finish",m="fetch_",n=6e4,o="action",p="chunked",q="send",r="true",s=5,t=20,u=10,v=5e3;a=function(){function a(){this.$1="",this.$2=i.getLoggerInstance(),this.$3=0,this.$4="",this.$6=function(){},this.$7=function(a){},this.$8=function(){},this.$9=function(a){},this.$10=0,this.$11=0,this.$12=0,this.$13=0,this.$14="Ready",this.$15=[],this.$16=[],this.$17=null,this.$18=!1,this.$19=0}a.isSupported=function(){return typeof fetch==="function"};var c=a.prototype;c.run=function(a,c,d,e,f,g,h,i){this.$1=b("MqttUtils").endpointWithSessionId(a,c),this.$3=c,this.$4=d,this.$5=e,this.$6=f,this.$7=g,this.$8=h,this.$9=i,this.$20()};c.isTopicSupported=function(a){return!0};c.publish=function(a,c){if(this.$14!=="ReceivingData"){this.$2.bumpCounter(m+"publish."+a+".invalidstate");return b("Promise").reject("not connected")}else{this.$2.bumpCounter(m+"publish."+a+".publish");var d=new(b("PromiseResult"))();a={topic:a,payload:c,promiseResult:d};this.$15.push(a);this.$21();return d.promise}};c.abort=function(){this.$6=function(){},this.$7=function(a){},this.$8=function(){},this.$9=function(a){}};c.$22=function(a){var b=this;a.forEach(function(a){b.$2.bumpCounter(m+"publish."+a.topic+".resolved"),a.promiseResult.resolve()});this.$12+=a.length};c.$23=function(a,b){var c=this;a.forEach(function(a){c.$2.bumpCounter(m+"publish."+a.topic+".rejected"),a.promiseResult.reject(b)})};c.$24=function(a,b,c,d){var e=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request failed. Publishes:"+e+", retry:"+c);this.$2.bumpCounter(m+"publish_request_failed");this.$14!="ReceivingData"||c===s?(this.$23(a,d),this.$18=!1,this.$2.bumpCounter(m+"publish_request_failed_final"),this.$21()):this.$25(a,b,c+1)};c.$26=function(a,b,c,d){if(!d.ok){this.$2.bumpCounter(m+"publish_request_failed.http."+d.status);if(d.status===409){this.$19++;if(this.$19>=u){this.$2.bumpCounter(m+"409_reset");this.$27(new Error("Too many 409 errors"));return}}this.$24(a,b,c,this.$28(d));return}this.$2.bumpCounter(m+"publish_request_success");b=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request success. Publishes:"+b+", retry:"+c);this.$22(a);this.$18=!1;this.$21()};c.$21=function(){if(this.$14!="ReceivingData")return;if(this.$18)return;if(this.$15.length==0&&this.$16.length==0)return;this.$18=!0;var a=this.$15.slice(0,t);this.$15=this.$15.slice(t,this.$15.length);clearTimeout(this.$17);this.$17=null;var b=this.$16.slice(0,t);this.$16=this.$16.slice(t,this.$16.length);this.$25(a,b,0)};c.$25=function(a,c,d){var e=this,f=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request sent. Publishes:"+f+", retry:"+d);f=b("MqttUtils").endpointWithExtraParameter(this.$1,o,q);var g=a.map(function(a){return{topic:a.topic,payload:a.payload,qos:0,messageId:i.random()}});g=this.$5.gen(this.$3,[],g,c);this.$2.bumpCounter(m+"publish_request");b("MqttUtils").promiseDoneWithTimeout(fetch(f,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",referrer:"no-referrer",body:g,keepalive:!1}),function(b){return e.$26(a,c,d,b)},function(b){return e.$24(a,c,d,b)},n)};c.$29=function(a){a=a.message;this.$2.debugTrace("FetchClient","Fetch request failed with error:"+a);this.$9(a);this.$30(!1,a);this.$2.bumpCounter(m+"error");this.$14="Error"};c.$31=function(a){var b=this;this.$2.debugTrace("FetchClient","Fetch response data received");a=h(new Uint8Array(a));a=a.messages;var c=a.filter(function(a){return a.messageType===j.PINGREQ});a=a.filter(function(a){return a.messageType===j.PUBLISH}).map(function(a){if(!(a instanceof g.Publish))return{};a=a;a.qos===1&&a.messageIdentifier!=null&&(b.$16.push(a.messageIdentifier),b.$17==null&&(b.$17=i.setTimeout(function(){b.$21()},v)));return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}});for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(e){if(f>=d.length)break;k=d[f++]}else{f=d.next();if(f.done)break;k=f.value}k=k;this.$2.bumpCounter(m+"response_"+k.topic)}a&&a.length>0&&(this.$13+=a.length,this.$7(a));c&&c.length>0&&this.$32()};c.$32=function(){this.$2.debugTrace("FetchClient","Got server ping request"),this.$2.bumpCounter(m+"ping")};c.$27=function(a){this.$2.debugTrace("FetchClient","Fetch request ended: "+a.toString()),this.$2.bumpCounter(m+"done"),this.$33(a.message),this.$8(),this.$14="Done"};c.$34=function(a,c,d){var e=this;if(d!==null&&d!==void 0)try{this.$31(d)}catch(a){this.$27(a);this.$2.bumpCounter(m+"dataDecodeException");return}if(c){this.$27(new Error("EOF"));return}b("MqttUtils").promiseDone(a.read(),function(c){var b=c.done;c=c.value;return e.$34(a,b,c)},function(a){return e.$27(a)})};c.$35=function(a){if(!a.ok){this.$2.bumpCounter(m+"error.http."+a.status);this.$29(this.$28(a));return}a=a.body;if(!a){this.$29(new Error("Empty body"));return}a=a.getReader();this.$6();this.$2.bumpCounter(m+"success");this.$30(!0,null);this.$11=Date.now();this.$14="ReceivingData";this.$2.debugTrace("FetchClient","Fetch request success");this.$34(a,!1,null)};c.$33=function(a){this.$2.eventLogPullFinish({pullEventName:l,sessionID:this.$3,duration:Date.now()-this.$11,errorMessage:a,publishReceived:this.$13,publishSent:this.$12})};c.$30=function(a,b){this.$2.eventLogPull({pullEventName:k,sessionID:this.$3,status:a,duration:Date.now()-this.$10,hostname:this.$1,errorMessage:b})};c.$20=function(){var a=this;if(this.$14!="Ready")return;this.$2.debugTrace("FetchClient","Sending fetch request");this.$2.bumpCounter(m+"request");this.$10=Date.now();var c=b("MqttUtils").endpointWithExtraParameter(this.$1,p,r);b("MqttUtils").promiseDoneWithTimeout(fetch(c,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",referrer:"no-referrer",body:this.$4,keepalive:!1}),function(b){return a.$35(b)},function(b){return a.$29(b)},n)};c.$28=function(a){return new Error("Http error, status="+a.status)};return a}();e.exports=a}),null); __d("MqttLongPollingClient",["MqttEnv","MqttProtocolCodec","Promise","XHRRequest","getCrossOriginTransport"],(function(a,b,c,d,e,f){"use strict";var g=b("MqttProtocolCodec").WireMessage,h=b("MqttProtocolCodec").decodeByteMessages,i=b("MqttEnv").Env,j=120*1e3,k="simple_pull";a=function(){function a(){this.$3="",this.$4=0,this.$2=i.getLoggerInstance(),this.$1="Ready",this.$5="",this.$7=function(){},this.$8=function(a){},this.$9=function(){},this.$10=function(a){},this.$11=0,this.$12=null,this.$13=new Set(["/t_ms","/messenger_sync_get_diffs","/messenger_sync_create_queue","/webrtc","/rtc_multi"])}var c=a.prototype;c.run=function(a,b,c,d,e,f,g,h){this.$3=a,this.$4=b,this.$5=c,this.$6=d,this.$7=e,this.$8=f,this.$9=g,this.$10=h,this.$14(this.$5)};c.isTopicSupported=function(a){return this.$13.has(a)};c.publish=function(a,c){return b("Promise").reject("not supported")};c.abort=function(){this.$12!=null&&this.$12.abort("Disconnected")};c.$15=function(a,b){if(this.$1===a)return;this.$1=a;a=="Error"&&b!=null&&this.$10(b)};c.$16=function(a){if(this.$1!="RequestSend")return;if(!a){this.$17("EmptyResponse",null);return}this.$7();this.$18(!0,null);this.$15("ResponseReceived");a=h(new Uint8Array(a));a=a.messages.filter(function(a){return a instanceof g.Publish}).map(function(a){if(a instanceof g.Publish){a=a;return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}}else return{}});this.$8(a);this.$9()};c.$17=function(a,b){b=b!=null?b.message:"null";this.$2.debugTrace("LongPollingClient Error","Poll failed with error:"+a+", errorMsg:"+b);this.$18(!1,a+":"+b);this.$15("Error",a)};c.$18=function(a,b){this.$2.eventLogPull({pullEventName:k,sessionID:this.$4,status:a,duration:Date.now()-this.$11,hostname:this.$3,errorMessage:b})};c.$14=function(a){var c=this;if(this.$1!="Ready"||this.$12)return;try{this.$11=Date.now(),this.$12=new(b("XHRRequest"))(this.$3).setResponseType("arraybuffer").setRawData(a).setTransportBuilder(b("getCrossOriginTransport").withCredentials).setResponseHandler(function(a){return c.$16(a)}).setNetworkFailureHandler(function(a){c.$17("Network",a)}).setErrorHandler(function(a){c.$17("Error",a)}).setAbortHandler(function(a){c.$17("Abort",null)}).setTimeoutHandler(function(){c.$17("Timeout",null)}).setTimeout(j).send(),this.$15("RequestSend")}catch(a){this.$17("Error",a)}};return a}();e.exports=a}),null); __d("exponentialBackoff",["MqttEnv"],(function(a,b,c,d,e,f){var g=b("MqttEnv").Env;function a(a,b){b===void 0&&(b=null);var c=null,d=0;function e(){for(var e=arguments.length,f=new Array(e),h=0;h=j&&this.$24("LPError")};c.$28=function(){var a=h.genGk(i.mqtt_lp_no_delay),b=h.genGk(i.mqtt_ws_polling_enabled),c=h.genGk(i.mqtt_fast_lp);this.$5.debugTrace("LongPollingRunner","_shouldPoll? pollNow:"+String(a)+" enabled:"+String(b)+" fastPoll:"+String(c)+" hasWSSupport:"+String(this.$4)+" hasSuccess:"+String(this.$1)+" failureCount:"+this.$2+" wsFatal:"+String(this.$3));if(!b)return!1;if(a){this.$5.bumpCounter(m+".nd");return!0}if(!this.$4){this.$5.bumpCounter(m+".na");return!0}if(this.$3){this.$5.bumpCounter(m+".fatal");return!0}if(this.$1)return!1;if(c){b=Date.now()-this.$20;if(this.$21===o){if(this.$2>=1)return!0;if(b>k){this.$5.bumpCounter(m+".fastdelay");return!0}}else if(b>l){this.$5.bumpCounter(m+".regulardelay");return!0}}if(this.$2>=3){this.$5.bumpCounter(m+".failure");return!0}return!1};c.$29=function(){if(this.$14!=null)return!1;var a=this.$28();!this.$13&&a&&(this.$5.bumpCounter("polling_kickin"),this.$13=!0,this.$24("LPActive"),this.$26());this.$13&&!a&&(this.$5.bumpCounter("polling_stopped"),this.$13=!1,this.$24("LPInactive"),this.$26());return a};c.$30=function(){if(this.$22){this.$5.debugTrace("LongPollingRunner","Creating polling client using Fetch API");return new(b("MqttFetchClient"))()}else{this.$5.debugTrace("LongPollingRunner","Creating regular Polling client");return new(b("MqttLongPollingClient"))()}};c.$31=function(){this.$5.debugTrace("LongPollingRunner","Poll success"),this.$19.onPollRequestSuccess(),this.$18.reset(),this.$24("LPActive"),this.$26(),h.configWrite(n,o),this.$25("ReceivingData")};c.$32=function(a){var b=a.map(function(a){return a.topic}).join(",");this.$5.debugTrace("LongPollingRunner","Poll response received, message received:"+b);for(var b=0;b