Loading
function(e,t,n){var l,i=n(499979),r=n(626584),s=n(46653),a=n(734057),o=n(544180),u=n(495867),c=n(977997),d=n(129230),m=n(652215),p=((l={}).SELF_VIDEO="self_video",l.SELF_STREAM="self_stream",l.REMOTE_VIDEO="remote_video",l.REMOTE_STREAM="remote_stream",l.CHANGE_VIDEO_BACKGROUND="change_video_background",l.REPLAY_VIDEO_STREAM="replay_video_stream",l);let g=new Map;n.d(t,{},{M:class{logger;spinnerVisibleStart=null;constructor(e){this.logger=new r.A(e)}onSpinnerStarted(){null==this.spinnerVisibleStart&&(this.spinnerVisibleStart=(0,i.tB)())}trackSpinnerDuration(e,t,n){let l;if(null==this.spinnerVisibleStart)return;let r=(l=(g.get(n)??0)+1,g.set(n,l),l),p=(0,i.tB)()-this.spinnerVisibleStart;if(this.spinnerVisibleStart=null,p<0)return void this.logger.warn(`spinner duration is negative: ${p} ms
[${e}, count for stream: ${r}]`);this.logger.info(`spinner visible for ${p} ms
[${e}, count for stream: ${r}]`);let f=u.A.getGuildId(),h=c.A.getUserVoiceChannelId(f,s.default.getId()),A=function(e){if(null!=e){if(e.isGuildVoice())return"guild_voice";if(e.isGuildStageVoice())return"is_stage_channel";if(e.isDM())return"dm";if(e.isGroupDM())return"group_dm"}return null}(a.A.getChannel(h));d.default.track(m.HAw.VIDEO_SPINNER_SHOWN_V2,{video_spinner_context:e,duration_video_spinner_visible_ms:p,rtc_connection_id:u.A.getRTCConnectionId(),media_session_id:u.A.getMediaSessionId(),event_count_for_stream:r,guild_id:f,channel_id:h,channel_type:A,spinning_user_id:t,connection_type:o.A.getType(),effective_connection_speed:o.A.getEffectiveConnectionSpeed(),service_provider:o.A.getServiceProvider()})}},u:p})}