2026-07-25 08:10:48 +00:00
// Module ID: 4203
2026-07-27 11:26:19 +00:00
// Function ID: 36137
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-27 11:26:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4145, 1194, 4204, 653, 4192, 3, 4205, 4227, 686, 12817, 4016, 4207, 4945, 12818, 12820, 566, 675, 1935, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4203 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_4 from "_isNativeReflectConstruct" ;
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
2026-07-25 08:10:48 +00:00
import module_4945 from "module_4945" ;
2026-07-23 10:11:24 +00:00
import useIsSpatialAudioAvailable from "useIsSpatialAudioAvailable" ;
import closure_8 from "_isNativeReflectConstruct" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import ME from "ME" ;
import { MediaEngineContextTypes } from "DesktopSources" ;
import importDefaultResult from "_getPrototypeOf" ;
import promise from "expandLocation" ;
let closure_11 ;
let closure_12 ;
let closure_13 ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
function createRTCConnection ( guildId , channelId ) {
if ( null == closure_16 ) {
const _Error = Error ;
const error = new Error ( "Creating RTCConnection without session." ) ;
throw error ;
} else {
const id = store . getId ( ) ;
2026-07-25 08:10:48 +00:00
_default = _default ( 4205 ) . default ;
2026-07-23 10:11:24 +00:00
let obj = { userId : id , sessionId : closure_16 , guildId , channelId , joinVoiceId : c28 } ;
2026-07-20 16:05:17 +00:00
const prototype2 = _default . prototype ;
_default = new _default ( obj ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . State , ( arg0 , arg1 , arg2 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let closure_1 = arg1 ;
let closure_2 = arg2 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_STATE" , state : closure_0 } ;
const merged = Object . assign ( closure_1 ) ;
const merged1 = Object . assign ( closure_2 ) ;
2026-07-20 16:05:17 +00:00
return obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . Video , ( arg0 , arg1 , arg2 , arg3 , arg4 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let closure_1 = arg1 ;
let closure_2 = arg2 ;
let _isNativeReflectConstruct = arg3 ;
let closure_4 = arg4 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_VIDEO" , guildId : mediaEngineConnectionId , channelId : closure_1 , userId : closure_2 , streamId : _isNativeReflectConstruct , rtcServerId : closure_4 , context : outer2_14.DEFAULT , mediaEngineConnectionId : mediaEngineConnectionId.getMediaEngineConnectionId ( ) } ;
2026-07-20 16:05:17 +00:00
return obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . Ping , ( arg0 , arg1 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let closure_1 = arg1 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_PING" , pings : closure_0 , quality : closure_1 } ;
2026-07-20 16:05:17 +00:00
return obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . OutboundLossRate , ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_LOSS_RATE" , lossRate : closure_0 } ;
2026-07-20 16:05:17 +00:00
return obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . Speaking , ( id ) = > {
2026-07-23 10:11:24 +00:00
if ( null != closure_22 ) {
closure_22 . setSpeaking ( id , arg1 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . Flags , ( arg0 , arg1 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let closure_1 = arg1 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_FLAGS" , flags : closure_1 , userId : closure_0 , guildId : closure_0.guildId , channelId : closure_0.channelId , context : closure_0.context } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . UsersMerged , ( userIds , context ) = > {
2026-07-23 10:11:24 +00:00
let obj = outer1_1 ( outer1_2 [ 13 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { type : "RTC_CONNECTION_USERS_MERGED" , userIds , context } ;
obj . dispatch ( obj ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . ClientConnect , ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_CLIENT_CONNECT" , userIds : closure_0 , guildId : closure_0.guildId , channelId : closure_0.channelId , context : closure_0.context } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . ClientDisconnect , ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_CLIENT_DISCONNECT" , userId : closure_0 , guildId : closure_0.guildId , channelId : closure_0.channelId , context : closure_0.context } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . Platform , ( arg0 , arg1 , arg2 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let closure_1 = arg1 ;
let closure_2 = arg2 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_PLATFORM" , platform : closure_1 , userId : closure_0 , channelId : closure_2 } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . SecureFramesUpdate , ( ) = > {
2026-07-23 10:11:24 +00:00
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
outer2_1 ( outer2_2 [ 13 ] ) . dispatch ( { type : "RTC_CONNECTION_SECURE_FRAMES_UPDATE" } ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
2026-07-25 08:10:48 +00:00
_default . on ( _default ( 4227 ) . RTCConnectionEvent . RosterMapUpdate , ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > {
let obj = outer2_1 ( outer2_2 [ 13 ] ) ;
obj = { type : "RTC_CONNECTION_ROSTER_MAP_UPDATE" , userIds : closure_0 } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
} ) ;
2026-07-27 11:26:19 +00:00
let tmp30 = importDefault ( 12817 ) ;
2026-07-20 16:05:17 +00:00
const prototype3 = tmp30 . prototype ;
tmp30 = new tmp30 ( store . getId ( ) , channelId ) ;
2026-07-23 10:11:24 +00:00
let c22 = tmp30 ;
let c20 = null ;
let c23 = false ;
let c24 = false ;
2026-07-20 16:05:17 +00:00
return _default ;
}
}
function destroyRTCConnection ( arg0 ) {
let flag = arg0 ;
if ( arg0 === undefined ) {
flag = true ;
}
if ( null == redux ) {
return false ;
} else {
let obj = { duration : redux.getDuration ( ) } ;
const mediaSessionId = redux . getMediaSessionId ( ) ;
let tmp = null ;
if ( null != mediaSessionId ) {
tmp = mediaSessionId ;
}
obj . mediaSessionId = tmp ;
obj . rtcConnectionId = redux . getRTCConnectionId ( ) ;
2026-07-23 10:11:24 +00:00
obj . wasEverMultiParticipant = c23 ;
obj . wasEverRtcConnected = c24 ;
obj . voiceStateAnalytics = c22 ;
2026-07-20 16:05:17 +00:00
obj . channelId = redux . channelId ;
2026-07-23 10:11:24 +00:00
obj = importDefault ( 686 ) ;
2026-07-20 16:05:17 +00:00
obj = { type : "MEDIA_ENGINE_CONNECTION_STATS_HISTORY_RESET" , mediaEngineConnectionId : redux.getMediaEngineConnectionId ( ) } ;
obj . dispatch ( obj ) ;
redux . destroy ( ) ;
2026-07-23 10:11:24 +00:00
redux = null ;
c22 = null ;
let c27 = false ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
2026-07-23 10:11:24 +00:00
let c25 = null ;
2026-07-20 16:05:17 +00:00
}
}
}
function clearPendingVoiceChannelSelect() {
2026-07-23 10:11:24 +00:00
if ( null != _null ) {
const timeout = _null . timeout ;
2026-07-20 16:05:17 +00:00
timeout . stop ( ) ;
2026-07-23 10:11:24 +00:00
_null = null ;
2026-07-20 16:05:17 +00:00
}
}
function handleClearRemoteDisconnectVoiceChannelId() {
2026-07-23 10:11:24 +00:00
let c19 = null ;
2026-07-20 16:05:17 +00:00
}
function handleChannelDelete ( arg0 ) {
if ( null != redux ) {
if ( redux . channelId === tmp . id ) {
destroyRTCConnection ( ) ;
}
}
return false ;
}
function handleRtcAction() {
return true ;
}
2026-07-23 10:11:24 +00:00
( { RTCConnectionStates : closure_11 , AppStates : closure_12 , RTCConnectionQuality : closure_13 } = ME ) ;
2026-07-20 16:05:17 +00:00
importDefaultResult = new importDefaultResult ( "RTCConnectionStore" ) ;
let closure_18 = [ ] ;
2026-07-23 10:11:24 +00:00
let c19 = null ;
let c20 = null ;
let c21 = null ;
let c22 = null ;
let c23 = false ;
let c24 = false ;
let c25 = null ;
let c26 = null ;
let c27 = false ;
let c28 = null ;
let c29 = null ;
let tmp5 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class RTCConnectionStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_3 ( this , RTCConnectionStore ) ;
obj = outer1_6 ( RTCConnectionStore ) ;
tmp2 = outer1_5 ;
if ( outer1_31 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( RTCConnectionStore , Store ) ;
let obj = {
key : "initialize" ,
value() {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_9 , outer1_8 , outer1_10 ) ;
const result = RTCConnectionStore ( outer1_2 [ 19 ] ) . setVideoToggleAnalyticsParams ( this . getRTCConnectionId , this . getMediaSessionId ) ;
2026-07-20 16:05:17 +00:00
}
} ;
const items = [ obj , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] ;
obj = {
key : "getRTCConnection" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_15 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getState" ,
value() {
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
let DISCONNECTED = outer1_15 . state ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
DISCONNECTED = outer1_11 . DISCONNECTED ;
2026-07-20 16:05:17 +00:00
}
return DISCONNECTED ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "isConnected" ,
value() {
2026-07-23 10:11:24 +00:00
return this . getState ( ) === outer1_11 . RTC_CONNECTED ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "isDisconnected" ,
value() {
2026-07-23 10:11:24 +00:00
return this . getState ( ) === outer1_11 . DISCONNECTED ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 5 ] = {
key : "getRemoteDisconnectVoiceChannelId" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_19 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 6 ] = {
key : "getLastSessionVoiceChannelId" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_21 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 7 ] = {
key : "setLastSessionVoiceChannelId" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
const outer1_21 = arg0 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "getGuildId" ,
value() {
let guildId ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
guildId = outer1_15 . guildId ;
2026-07-20 16:05:17 +00:00
}
return guildId ;
}
} ;
items [ 9 ] = {
key : "getChannelId" ,
value() {
let channelId ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
channelId = outer1_15 . channelId ;
2026-07-20 16:05:17 +00:00
}
return channelId ;
}
} ;
items [ 10 ] = {
key : "getHostname" ,
value() {
let str = "" ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
str = outer1_15 . hostname ;
2026-07-20 16:05:17 +00:00
}
return str ;
}
} ;
items [ 11 ] = {
key : "getQuality" ,
value() {
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
let UNKNOWN = outer1_15 . quality ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
UNKNOWN = outer1_13 . UNKNOWN ;
2026-07-20 16:05:17 +00:00
}
return UNKNOWN ;
}
} ;
items [ 12 ] = {
key : "getPings" ,
value() {
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
let pings = outer1_15 . getPings ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
pings = outer1_18 ;
2026-07-20 16:05:17 +00:00
}
return pings ;
}
} ;
items [ 13 ] = {
key : "getAveragePing" ,
value() {
let num = 0 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
2026-07-20 16:05:17 +00:00
let averagePing ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
2026-07-20 16:05:17 +00:00
averagePing = obj . getAveragePing ( ) ;
}
num = averagePing ;
2026-07-23 10:11:24 +00:00
obj = outer1_15 ;
2026-07-20 16:05:17 +00:00
}
return num ;
}
} ;
items [ 14 ] = {
key : "getLastPing" ,
value() {
let lastPing ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
lastPing = outer1_15 . getLastPing ( ) ;
2026-07-20 16:05:17 +00:00
}
return lastPing ;
}
} ;
items [ 15 ] = {
key : "getOutboundLossRate" ,
value() {
let outboundLossRate ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
outboundLossRate = outer1_15 . getOutboundLossRate ( ) ;
2026-07-20 16:05:17 +00:00
}
return outboundLossRate ;
}
} ;
items [ 16 ] = {
key : "getMediaSessionId" ,
value() {
let mediaSessionId ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
mediaSessionId = outer1_15 . getMediaSessionId ( ) ;
2026-07-20 16:05:17 +00:00
}
return mediaSessionId ;
}
} ;
items [ 17 ] = {
key : "getRTCConnectionId" ,
value() {
let rTCConnectionId ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
rTCConnectionId = outer1_15 . getRTCConnectionId ( ) ;
2026-07-20 16:05:17 +00:00
}
return rTCConnectionId ;
}
} ;
items [ 18 ] = {
key : "getDuration" ,
value() {
let duration ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
duration = outer1_15 . getDuration ( ) ;
2026-07-20 16:05:17 +00:00
}
if ( null == duration ) {
let duration1 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_20 ) {
duration1 = outer1_20 . duration ;
2026-07-20 16:05:17 +00:00
}
duration = duration1 ;
}
return duration ;
}
} ;
items [ 19 ] = {
key : "getLastRTCConnectionState" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_20 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 20 ] = {
key : "getPacketStats" ,
value() {
let packetStats ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
packetStats = outer1_15 . getPacketStats ( ) ;
2026-07-20 16:05:17 +00:00
}
return packetStats ;
}
} ;
items [ 21 ] = {
key : "getVoiceStateStats" ,
value() {
let stats ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
stats = outer1_22 . getStats ( ) ;
2026-07-20 16:05:17 +00:00
}
return stats ;
}
} ;
items [ 22 ] = {
key : "getUserVoiceSettingsStats" ,
value ( arg0 ) {
let userVoiceSettingsStats ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
userVoiceSettingsStats = outer1_22 . getUserVoiceSettingsStats ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return userVoiceSettingsStats ;
}
} ;
items [ 23 ] = {
key : "getWasEverMultiParticipant" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_23 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 24 ] = {
key : "getWasEverRtcConnected" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_24 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 25 ] = {
key : "getUserIds" ,
value() {
let userIds ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
userIds = outer1_15 . getUserIds ( ) ;
2026-07-20 16:05:17 +00:00
}
return userIds ;
}
} ;
items [ 26 ] = {
key : "getJoinVoiceId" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_28 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 27 ] = {
key : "isUserConnected" ,
value ( arg0 ) {
let isUserConnected ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
isUserConnected = outer1_15 . getIsUserConnected ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return isUserConnected ;
}
} ;
items [ 28 ] = {
key : "getSecureFramesState" ,
value() {
let secureFramesState ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
secureFramesState = outer1_15 . getSecureFramesState ( ) ;
2026-07-20 16:05:17 +00:00
}
return secureFramesState ;
}
} ;
items [ 29 ] = {
key : "getSecureFramesRosterMapEntry" ,
value ( arg0 ) {
let secureFramesRosterMap ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
secureFramesRosterMap = outer1_15 . getSecureFramesRosterMap ( ) ;
2026-07-20 16:05:17 +00:00
}
let value ;
if ( null != secureFramesRosterMap ) {
value = secureFramesRosterMap . get ( arg0 ) ;
}
return value ;
}
} ;
items [ 30 ] = {
key : "getLastNonZeroRemoteVideoSinkWantsTime" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_26 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 31 ] = {
key : "getWasMoved" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_27 ;
2026-07-20 16:05:17 +00:00
}
} ;
return callback ( RTCConnectionStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp5 . displayName = "RTCConnectionStore" ;
2026-07-23 10:11:24 +00:00
tmp5 = new tmp5 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN : function handleConnectionOpen ( sessionId ) {
sessionId = sessionId . sessionId ;
2026-07-23 10:11:24 +00:00
let c19 = null ;
let c21 = null ;
2026-07-20 16:05:17 +00:00
destroyRTCConnection ( false ) ;
clearPendingVoiceChannelSelect ( ) ;
return false ;
} ,
CONNECTION_CLOSED : function handleConnectionClosed() {
2026-07-23 10:11:24 +00:00
let c16 = null ;
let c19 = null ;
let c21 = null ;
2026-07-20 16:05:17 +00:00
destroyRTCConnection ( false ) ;
clearPendingVoiceChannelSelect ( ) ;
} ,
LOGOUT : function handleLogout() {
2026-07-23 10:11:24 +00:00
let c25 = null ;
2026-07-20 16:05:17 +00:00
return false ;
} ,
RTC_CONNECTION_STATE : function handleRTCConnectionState ( state ) {
if ( state . state === constants . RTC_CONNECTED ) {
2026-07-23 10:11:24 +00:00
let c24 = true ;
2026-07-20 16:05:17 +00:00
if ( null != closure_15 ) {
2026-07-25 08:10:48 +00:00
let closure_25 = require ( 4207 ) /* sleep */ . now ( ) ;
const obj = require ( 4207 ) /* sleep */ ;
2026-07-20 16:05:17 +00:00
}
}
return true ;
} ,
RTC_CONNECTION_PING : function handleRtcConnectionPing() {
if ( null != closure_15 ) {
2026-07-25 08:10:48 +00:00
let closure_25 = require ( 4207 ) /* sleep */ . now ( ) ;
const obj = require ( 4207 ) /* sleep */ ;
2026-07-20 16:05:17 +00:00
}
return true ;
} ,
RTC_CONNECTION_LOSS_RATE : handleRtcAction ,
RTC_CONNECTION_UPDATE_ID : function handleRtcConnectionUpdateId ( connection ) {
return connection . connection === closure_15 ;
} ,
RTC_CONNECTION_SECURE_FRAMES_UPDATE : handleRtcAction ,
RTC_CONNECTION_CLIENT_CONNECT : handleRtcAction ,
RTC_CONNECTION_CLIENT_DISCONNECT : handleRtcAction ,
RTC_CONNECTION_REMOTE_VIDEO_SINK_WANTS : function handleRtcConnectionRemoteVideoSinkWants ( context ) {
let tmp2 = context . context === MediaEngineContextTypes . DEFAULT ;
if ( tmp2 ) {
const _Object = Object ;
const entries = Object . entries ( tmp ) ;
const tmp4 = ! entries . some ( ( arg0 ) = > {
let tmp ;
let tmp2 ;
[ tmp , tmp2 ] = arg0 ;
let tmp3 = "any" !== tmp ;
if ( tmp3 ) {
tmp3 = 0 !== tmp2 ;
}
return tmp3 ;
} ) ;
if ( ! tmp4 ) {
const _performance = performance ;
let closure_26 = performance . now ( ) ;
}
tmp2 = ! tmp4 ;
const tmp5 = ! tmp4 ;
}
return tmp2 ;
} ,
VIDEO_SIZE_UPDATE : function handleVideoSizeUpdate ( arg0 ) {
if ( null != closure_15 ) {
closure_15 . setVideoSize ( tmp , tmp2 , tmp3 ) ;
}
} ,
VOICE_STATE_UPDATES : function handleVoiceStateUpdates ( voiceStates ) {
voiceStates = voiceStates . voiceStates ;
return voiceStates . reduce ( ( arg0 , userId ) = > {
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
obj . updateVoiceStates ( userId . userId , userId . channelId ) ;
}
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_23 ;
if ( ! outer1_23 ) {
2026-07-20 16:05:17 +00:00
let prop ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop = obj2 . getStats ( ) . max_voice_state_count ;
}
let num = 0 ;
if ( null != prop ) {
num = prop ;
}
tmp2 = num > 1 ;
2026-07-23 10:11:24 +00:00
obj2 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_23 = tmp2 ;
if ( outer1_9 . getId ( ) !== userId . userId ) {
2026-07-20 16:05:17 +00:00
return arg0 ;
} else {
2026-07-23 10:11:24 +00:00
let tmp5 = null != outer1_29 ;
2026-07-20 16:05:17 +00:00
if ( tmp5 ) {
2026-07-23 10:11:24 +00:00
tmp5 = userId . channelId === outer1_29 . channelId ;
2026-07-20 16:05:17 +00:00
}
if ( tmp5 ) {
2026-07-23 10:11:24 +00:00
outer1_34 ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
if ( userId . sessionId === outer1_16 ) {
2026-07-20 16:05:17 +00:00
if ( null == userId . guildId ) {
if ( ! tmp28 ) {
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
}
if ( null != userId . channelId ) {
2026-07-23 10:11:24 +00:00
let outer1_19 = null ;
let outer1_21 = null ;
2026-07-20 16:05:17 +00:00
let prop1 ;
2026-07-23 10:11:24 +00:00
outer1_15 = outer1_32 ( userId . guildId , userId . channelId ) ;
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop1 = obj6 . getStats ( ) . max_voice_state_count ;
}
let num8 = 0 ;
if ( null != prop1 ) {
num8 = prop1 ;
}
2026-07-23 10:11:24 +00:00
outer1_23 = num8 > 1 ;
obj6 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp28 = userId . guildId !== outer1_15 . guildId && null == userId . channelId ;
2026-07-20 16:05:17 +00:00
}
if ( null == userId . channelId ) {
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
outer1_15 . setNextChannelId ( userId . channelId ) ;
const outer1_27 = true ;
const outer1_28 = null ;
outer1_15 . clearJoinVoiceId ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} else if ( userId . guildId === outer1_15 . guildId ) {
let tmp21 = null != outer1_8 . getAwaitingRemoteSessionInfo ( ) ;
2026-07-20 16:05:17 +00:00
if ( tmp21 ) {
2026-07-23 10:11:24 +00:00
tmp21 = null != outer1_8 . getRemoteSessionId ( ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp21 ) {
2026-07-23 10:11:24 +00:00
outer1_19 = outer1_15 . channelId ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-23 10:11:24 +00:00
if ( userId . sessionId === outer1_16 ) {
2026-07-20 16:05:17 +00:00
if ( null != userId . channelId ) {
if ( ! tmp5 ) {
2026-07-23 10:11:24 +00:00
if ( null != outer1_25 ) {
if ( obj3 . now ( ) - outer1_25 >= 300000 ) {
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > outer2_0 ( outer2_2 [ 17 ] ) . default . disconnect ( ) ) ;
2026-07-20 16:05:17 +00:00
return arg0 ;
}
2026-07-23 10:11:24 +00:00
obj3 = outer1_0 ( outer1_2 [ 16 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
outer1_19 = null ;
outer1_21 = null ;
2026-07-20 16:05:17 +00:00
let prop2 ;
2026-07-23 10:11:24 +00:00
outer1_15 = outer1_32 ( userId . guildId , userId . channelId ) ;
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop2 = obj5 . getStats ( ) . max_voice_state_count ;
}
let num6 = 0 ;
if ( null != prop2 ) {
num6 = prop2 ;
}
2026-07-23 10:11:24 +00:00
outer1_23 = num6 > 1 ;
obj5 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
}
return arg0 ;
}
return true ;
}
2026-07-23 10:11:24 +00:00
obj = outer1_22 ;
2026-07-20 16:05:17 +00:00
} , false ) ;
} ,
VOICE_CHANNEL_SELECT : function handleVoiceChannelSelect ( channelId ) {
let tmp = null == redux ;
if ( ! tmp ) {
let tmp2 = null != channelId . channelId ;
if ( tmp2 ) {
tmp2 = redux . channelId === channelId . channelId ;
}
tmp = tmp2 ;
}
if ( ! tmp ) {
destroyRTCConnection ( ) ;
}
const joinVoiceId = channelId . joinVoiceId ;
2026-07-23 10:11:24 +00:00
( function setPendingVoiceChannelSelect ( channelId ) {
let closure_0 = channelId ;
outer1_34 ( ) ;
2026-07-20 16:05:17 +00:00
if ( null != channelId . channelId ) {
2026-07-23 10:11:24 +00:00
const Timeout = outer1_0 ( outer1_2 [ 15 ] ) . Timeout ;
2026-07-20 16:05:17 +00:00
const prototype = Timeout . prototype ;
const timeout = new Timeout ( ) ;
2026-07-23 10:11:24 +00:00
timeout . start ( 30000 , ( ) = > {
outer2_17 . warn ( "No VOICE_STATE_UPDATE received within 30000ms of VOICE_CHANNEL_SELECT" , { joinVoiceId : channelId.joinVoiceId , channelId : channelId.channelId , guildId : channelId.guildId } ) ;
const outer2_29 = null ;
2026-07-20 16:05:17 +00:00
} ) ;
const obj = { } ;
( { joinVoiceId : obj2.joinVoiceId , channelId : obj2.channelId , guildId : obj2.guildId } = channelId ) ;
obj . timeout = timeout ;
2026-07-23 10:11:24 +00:00
const outer1_29 = obj ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ) ( channelId ) ;
2026-07-20 16:05:17 +00:00
} ,
AUDIO_SET_NOISE_CANCELLATION : function handleAudioSetNoiseCancellation ( enabled ) {
if ( null != closure_15 ) {
const result = closure_15 . setNoiseCancellationEnabled ( enabled . enabled ) ;
}
} ,
AUDIO_SET_AUDIO_MIXER_SETTINGS : function handleAudioSetAudioMixerSettings ( context ) {
if ( context . context !== MediaEngineContextTypes . DEFAULT ) {
return false ;
2026-07-22 07:54:56 +00:00
} else {
const enabled = context . settings . enabled ;
let result = null != enabled && enabled ;
if ( result ) {
2026-07-27 11:26:19 +00:00
result = require ( 12818 ) /* useIsSpatialAudioAvailable */ . isSpatialAudioAvailable ( "RTCConnectionStore" ) ;
const obj = require ( 12818 ) /* useIsSpatialAudioAvailable */ ;
2026-07-22 07:54:56 +00:00
}
if ( null != closure_15 ) {
const result1 = closure_15 . setSpatialAudioEnabled ( result ) ;
}
2026-07-20 16:05:17 +00:00
}
} ,
VOICE_SERVER_UPDATE : function handleVoiceServerUpdate ( guildId ) {
let tmp = null != redux ;
if ( tmp ) {
let tmp2 = null == guildId . guildId ;
if ( ! tmp2 ) {
tmp2 = guildId . guildId === redux . guildId ;
}
if ( tmp2 ) {
let tmp4 = null == guildId . channelId ;
if ( ! tmp4 ) {
tmp4 = guildId . channelId === redux . getNextChannelId ( ) ;
}
if ( tmp4 ) {
redux . connect ( guildId . endpoint , guildId . token ) ;
}
tmp2 = tmp4 ;
}
tmp = tmp2 ;
}
return tmp ;
} ,
CLEAR_REMOTE_DISCONNECT_VOICE_CHANNEL_ID : handleClearRemoteDisconnectVoiceChannelId ,
REMOTE_SESSION_CONNECT : handleClearRemoteDisconnectVoiceChannelId ,
CLEAR_LAST_SESSION_VOICE_CHANNEL_ID : function handleClearLastSessionVoiceChannelId() {
2026-07-23 10:11:24 +00:00
let c21 = null ;
2026-07-20 16:05:17 +00:00
} ,
GUILD_DELETE : function handleGuildDelete ( arg0 ) {
if ( null != redux ) {
if ( redux . guildId === tmp . id ) {
destroyRTCConnection ( ) ;
}
}
return false ;
} ,
CHANNEL_DELETE : handleChannelDelete ,
THREAD_DELETE : handleChannelDelete ,
CALL_DELETE : function handleCallDelete ( arg0 ) {
if ( null != redux ) {
if ( redux . channelId === tmp ) {
destroyRTCConnection ( ) ;
}
}
return false ;
} ,
APP_STATE_UPDATE : function handleFocus ( state ) {
let tmp = state . state === constants2 . ACTIVE ;
if ( tmp ) {
tmp = null != redux ;
}
if ( tmp ) {
redux . resetBackoff ( "App state is active" ) ;
}
return false ;
} ,
RTC_DEBUG_SET_SIMULCAST_OVERRIDE : function handleSimulcastDebugOverrideChanged ( arg0 ) {
if ( null != closure_15 ) {
const result = closure_15 . setSimulcastDebugOverride ( tmp , tmp2 , tmp3 ) ;
}
}
} ) ;
2026-07-23 10:11:24 +00:00
let closure_30 = tmp5 ;
require ( "expandLocation" ) . then ( ( addExtraAnalyticsDecorator ) = > {
const result = addExtraAnalyticsDecorator . addExtraAnalyticsDecorator ( ( arg0 ) = > {
arg0 . client_rtc_state = outer1_30 . getState ( ) ;
} ) ;
} ) ;
let obj = {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN : function handleConnectionOpen ( sessionId ) {
sessionId = sessionId . sessionId ;
2026-07-23 10:11:24 +00:00
let c19 = null ;
let c21 = null ;
2026-07-20 16:05:17 +00:00
destroyRTCConnection ( false ) ;
clearPendingVoiceChannelSelect ( ) ;
return false ;
} ,
CONNECTION_CLOSED : function handleConnectionClosed() {
2026-07-23 10:11:24 +00:00
let c16 = null ;
let c19 = null ;
let c21 = null ;
2026-07-20 16:05:17 +00:00
destroyRTCConnection ( false ) ;
clearPendingVoiceChannelSelect ( ) ;
} ,
LOGOUT : function handleLogout() {
2026-07-23 10:11:24 +00:00
let c25 = null ;
2026-07-20 16:05:17 +00:00
return false ;
} ,
RTC_CONNECTION_STATE : function handleRTCConnectionState ( state ) {
if ( state . state === constants . RTC_CONNECTED ) {
2026-07-23 10:11:24 +00:00
let c24 = true ;
2026-07-20 16:05:17 +00:00
if ( null != closure_15 ) {
2026-07-25 08:10:48 +00:00
let closure_25 = require ( 4207 ) /* sleep */ . now ( ) ;
const obj = require ( 4207 ) /* sleep */ ;
2026-07-20 16:05:17 +00:00
}
}
return true ;
} ,
RTC_CONNECTION_PING : function handleRtcConnectionPing() {
if ( null != closure_15 ) {
2026-07-25 08:10:48 +00:00
let closure_25 = require ( 4207 ) /* sleep */ . now ( ) ;
const obj = require ( 4207 ) /* sleep */ ;
2026-07-20 16:05:17 +00:00
}
return true ;
} ,
RTC_CONNECTION_LOSS_RATE : handleRtcAction ,
RTC_CONNECTION_UPDATE_ID : function handleRtcConnectionUpdateId ( connection ) {
return connection . connection === closure_15 ;
} ,
RTC_CONNECTION_SECURE_FRAMES_UPDATE : handleRtcAction ,
RTC_CONNECTION_CLIENT_CONNECT : handleRtcAction ,
RTC_CONNECTION_CLIENT_DISCONNECT : handleRtcAction ,
RTC_CONNECTION_REMOTE_VIDEO_SINK_WANTS : function handleRtcConnectionRemoteVideoSinkWants ( context ) {
let tmp2 = context . context === MediaEngineContextTypes . DEFAULT ;
if ( tmp2 ) {
const _Object = Object ;
const entries = Object . entries ( tmp ) ;
const tmp4 = ! entries . some ( ( arg0 ) = > {
let tmp ;
let tmp2 ;
[ tmp , tmp2 ] = arg0 ;
let tmp3 = "any" !== tmp ;
if ( tmp3 ) {
tmp3 = 0 !== tmp2 ;
}
return tmp3 ;
} ) ;
if ( ! tmp4 ) {
const _performance = performance ;
let closure_26 = performance . now ( ) ;
}
tmp2 = ! tmp4 ;
const tmp5 = ! tmp4 ;
}
return tmp2 ;
} ,
VIDEO_SIZE_UPDATE : function handleVideoSizeUpdate ( arg0 ) {
if ( null != closure_15 ) {
closure_15 . setVideoSize ( tmp , tmp2 , tmp3 ) ;
}
} ,
VOICE_STATE_UPDATES : function handleVoiceStateUpdates ( voiceStates ) {
voiceStates = voiceStates . voiceStates ;
return voiceStates . reduce ( ( arg0 , userId ) = > {
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
obj . updateVoiceStates ( userId . userId , userId . channelId ) ;
}
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_23 ;
if ( ! outer1_23 ) {
2026-07-20 16:05:17 +00:00
let prop ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop = obj2 . getStats ( ) . max_voice_state_count ;
}
let num = 0 ;
if ( null != prop ) {
num = prop ;
}
tmp2 = num > 1 ;
2026-07-23 10:11:24 +00:00
obj2 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_23 = tmp2 ;
if ( outer1_9 . getId ( ) !== userId . userId ) {
2026-07-20 16:05:17 +00:00
return arg0 ;
} else {
2026-07-23 10:11:24 +00:00
let tmp5 = null != outer1_29 ;
2026-07-20 16:05:17 +00:00
if ( tmp5 ) {
2026-07-23 10:11:24 +00:00
tmp5 = userId . channelId === outer1_29 . channelId ;
2026-07-20 16:05:17 +00:00
}
if ( tmp5 ) {
2026-07-23 10:11:24 +00:00
outer1_34 ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( null != outer1_15 ) {
if ( userId . sessionId === outer1_16 ) {
2026-07-20 16:05:17 +00:00
if ( null == userId . guildId ) {
if ( ! tmp28 ) {
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
}
if ( null != userId . channelId ) {
2026-07-23 10:11:24 +00:00
let outer1_19 = null ;
let outer1_21 = null ;
2026-07-20 16:05:17 +00:00
let prop1 ;
2026-07-23 10:11:24 +00:00
outer1_15 = outer1_32 ( userId . guildId , userId . channelId ) ;
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop1 = obj6 . getStats ( ) . max_voice_state_count ;
}
let num8 = 0 ;
if ( null != prop1 ) {
num8 = prop1 ;
}
2026-07-23 10:11:24 +00:00
outer1_23 = num8 > 1 ;
obj6 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp28 = userId . guildId !== outer1_15 . guildId && null == userId . channelId ;
2026-07-20 16:05:17 +00:00
}
if ( null == userId . channelId ) {
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
outer1_15 . setNextChannelId ( userId . channelId ) ;
const outer1_27 = true ;
const outer1_28 = null ;
outer1_15 . clearJoinVoiceId ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} else if ( userId . guildId === outer1_15 . guildId ) {
let tmp21 = null != outer1_8 . getAwaitingRemoteSessionInfo ( ) ;
2026-07-20 16:05:17 +00:00
if ( tmp21 ) {
2026-07-23 10:11:24 +00:00
tmp21 = null != outer1_8 . getRemoteSessionId ( ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp21 ) {
2026-07-23 10:11:24 +00:00
outer1_19 = outer1_15 . channelId ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_33 ( ) ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-23 10:11:24 +00:00
if ( userId . sessionId === outer1_16 ) {
2026-07-20 16:05:17 +00:00
if ( null != userId . channelId ) {
if ( ! tmp5 ) {
2026-07-23 10:11:24 +00:00
if ( null != outer1_25 ) {
if ( obj3 . now ( ) - outer1_25 >= 300000 ) {
outer1_1 ( outer1_2 [ 13 ] ) . wait ( ( ) = > outer2_0 ( outer2_2 [ 17 ] ) . default . disconnect ( ) ) ;
2026-07-20 16:05:17 +00:00
return arg0 ;
}
2026-07-23 10:11:24 +00:00
obj3 = outer1_0 ( outer1_2 [ 16 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
outer1_19 = null ;
outer1_21 = null ;
2026-07-20 16:05:17 +00:00
let prop2 ;
2026-07-23 10:11:24 +00:00
outer1_15 = outer1_32 ( userId . guildId , userId . channelId ) ;
if ( null != outer1_22 ) {
2026-07-20 16:05:17 +00:00
prop2 = obj5 . getStats ( ) . max_voice_state_count ;
}
let num6 = 0 ;
if ( null != prop2 ) {
num6 = prop2 ;
}
2026-07-23 10:11:24 +00:00
outer1_23 = num6 > 1 ;
obj5 = outer1_22 ;
2026-07-20 16:05:17 +00:00
}
}
return arg0 ;
}
return true ;
}
2026-07-23 10:11:24 +00:00
obj = outer1_22 ;
2026-07-20 16:05:17 +00:00
} , false ) ;
} ,
VOICE_CHANNEL_SELECT : function handleVoiceChannelSelect ( channelId ) {
let tmp = null == redux ;
if ( ! tmp ) {
let tmp2 = null != channelId . channelId ;
if ( tmp2 ) {
tmp2 = redux . channelId === channelId . channelId ;
}
tmp = tmp2 ;
}
if ( ! tmp ) {
destroyRTCConnection ( ) ;
}
const joinVoiceId = channelId . joinVoiceId ;
2026-07-23 10:11:24 +00:00
( function setPendingVoiceChannelSelect ( channelId ) {
let closure_0 = channelId ;
outer1_34 ( ) ;
2026-07-20 16:05:17 +00:00
if ( null != channelId . channelId ) {
2026-07-23 10:11:24 +00:00
const Timeout = outer1_0 ( outer1_2 [ 15 ] ) . Timeout ;
2026-07-20 16:05:17 +00:00
const prototype = Timeout . prototype ;
const timeout = new Timeout ( ) ;
2026-07-23 10:11:24 +00:00
timeout . start ( 30000 , ( ) = > {
outer2_17 . warn ( "No VOICE_STATE_UPDATE received within 30000ms of VOICE_CHANNEL_SELECT" , { joinVoiceId : channelId.joinVoiceId , channelId : channelId.channelId , guildId : channelId.guildId } ) ;
const outer2_29 = null ;
2026-07-20 16:05:17 +00:00
} ) ;
const obj = { } ;
( { joinVoiceId : obj2.joinVoiceId , channelId : obj2.channelId , guildId : obj2.guildId } = channelId ) ;
obj . timeout = timeout ;
2026-07-23 10:11:24 +00:00
const outer1_29 = obj ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ) ( channelId ) ;
2026-07-20 16:05:17 +00:00
} ,
AUDIO_SET_NOISE_CANCELLATION : function handleAudioSetNoiseCancellation ( enabled ) {
if ( null != closure_15 ) {
const result = closure_15 . setNoiseCancellationEnabled ( enabled . enabled ) ;
}
} ,
AUDIO_SET_AUDIO_MIXER_SETTINGS : function handleAudioSetAudioMixerSettings ( context ) {
if ( context . context !== MediaEngineContextTypes . DEFAULT ) {
return false ;
2026-07-22 07:54:56 +00:00
} else {
const enabled = context . settings . enabled ;
let result = null != enabled && enabled ;
if ( result ) {
2026-07-27 11:26:19 +00:00
result = require ( 12818 ) /* useIsSpatialAudioAvailable */ . isSpatialAudioAvailable ( "RTCConnectionStore" ) ;
const obj = require ( 12818 ) /* useIsSpatialAudioAvailable */ ;
2026-07-22 07:54:56 +00:00
}
if ( null != closure_15 ) {
const result1 = closure_15 . setSpatialAudioEnabled ( result ) ;
}
2026-07-20 16:05:17 +00:00
}
} ,
VOICE_SERVER_UPDATE : function handleVoiceServerUpdate ( guildId ) {
let tmp = null != redux ;
if ( tmp ) {
let tmp2 = null == guildId . guildId ;
if ( ! tmp2 ) {
tmp2 = guildId . guildId === redux . guildId ;
}
if ( tmp2 ) {
let tmp4 = null == guildId . channelId ;
if ( ! tmp4 ) {
tmp4 = guildId . channelId === redux . getNextChannelId ( ) ;
}
if ( tmp4 ) {
redux . connect ( guildId . endpoint , guildId . token ) ;
}
tmp2 = tmp4 ;
}
tmp = tmp2 ;
}
return tmp ;
} ,
CLEAR_REMOTE_DISCONNECT_VOICE_CHANNEL_ID : handleClearRemoteDisconnectVoiceChannelId ,
REMOTE_SESSION_CONNECT : handleClearRemoteDisconnectVoiceChannelId ,
CLEAR_LAST_SESSION_VOICE_CHANNEL_ID : function handleClearLastSessionVoiceChannelId() {
2026-07-23 10:11:24 +00:00
let c21 = null ;
2026-07-20 16:05:17 +00:00
} ,
GUILD_DELETE : function handleGuildDelete ( arg0 ) {
if ( null != redux ) {
if ( redux . guildId === tmp . id ) {
destroyRTCConnection ( ) ;
}
}
return false ;
} ,
CHANNEL_DELETE : handleChannelDelete ,
THREAD_DELETE : handleChannelDelete ,
CALL_DELETE : function handleCallDelete ( arg0 ) {
if ( null != redux ) {
if ( redux . channelId === tmp ) {
destroyRTCConnection ( ) ;
}
}
return false ;
} ,
APP_STATE_UPDATE : function handleFocus ( state ) {
let tmp = state . state === constants2 . ACTIVE ;
if ( tmp ) {
tmp = null != redux ;
}
if ( tmp ) {
redux . resetBackoff ( "App state is active" ) ;
}
return false ;
} ,
RTC_DEBUG_SET_SIMULCAST_OVERRIDE : function handleSimulcastDebugOverrideChanged ( arg0 ) {
if ( null != closure_15 ) {
const result = closure_15 . setSimulcastDebugOverride ( tmp , tmp2 , tmp3 ) ;
}
}
} ;
2026-07-23 10:11:24 +00:00
let result = require ( "_possibleConstructorReturn" ) . fileFinishedImporting ( "stores/RTCConnectionStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp5 ;