2026-07-27 11:26:19 +00:00
// Module ID: 16620
// Function ID: 129592
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-27 11:26:19 +00:00
// Dependencies: [7, 6, 15, 17, 18, 4150, 1194, 1348, 4052, 4224, 1907, 4217, 1850, 4196, 653, 22, 4310, 664, 4195, 4016, 686, 8784, 16598, 5078, 2]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 16620 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_4 from "_isNativeReflectConstruct" ;
import closure_5 from "apply" ;
import closure_6 from "set" ;
import isStreamKey from "isStreamKey" ;
import closure_8 from "_isNativeReflectConstruct" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_isNativeReflectConstruct" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import closure_14 from "_isNativeReflectConstruct" ;
import "_isNativeReflectConstruct" ;
import StreamIssueReportReasons from "StreamIssueReportReasons" ;
import ME from "ME" ;
import apply from "getCommonErrorContext" ;
import set from "_possibleConstructorReturn" ;
2026-07-20 16:05:17 +00:00
let GO_LIVE_NOTIFY_FRIENDS_MIN_MEMBER_COUNT ;
let STREAM_NOTIFY_GUILD_MAX_SIZE ;
2026-07-23 10:11:24 +00:00
let closure_15 ;
let closure_16 ;
const require = arg1 ;
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-21 06:55:02 +00:00
function pruneShownFullStreamModals() {
const item = set . forEach ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
if ( ! outer1_8 . isStreamMarkedFull ( arg0 ) ) {
outer1_23 . delete ( arg0 ) ;
2026-07-21 06:55:02 +00:00
}
} ) ;
}
2026-07-20 16:05:17 +00:00
function clearSpectatorReconnectionTimer ( arg0 ) {
2026-07-23 10:11:24 +00:00
if ( null != table [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
obj . stop ( ) ;
}
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
function clearConnectTimeout ( arg0 ) {
2026-07-23 10:11:24 +00:00
if ( null != dependencyMap [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
obj . stop ( ) ;
}
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
function maybeAutowatchStream ( channelId ) {
if ( voiceChannelId . getVoiceChannelId ( ) !== channelId ) {
return false ;
} else {
2026-07-23 10:11:24 +00:00
channel = channel . getChannel ( channelId ) ;
2026-07-20 16:05:17 +00:00
if ( null == channel ) {
return false ;
} else {
if ( ! channel . isDM ( ) ) {
if ( ! channel . isGuildStageVoice ( ) ) {
return false ;
}
}
if ( null != authStore . getActiveStreamForUser ( arg1 , channel . getGuildId ( ) ) ) {
return false ;
} else {
const streamForUser = authStore . getStreamForUser ( arg1 , channel . getGuildId ( ) ) ;
if ( null == streamForUser ) {
return false ;
} else {
2026-07-25 08:10:48 +00:00
let obj = require ( 4195 ) /* isStreamKey */ ;
2026-07-20 16:05:17 +00:00
const encodeStreamKeyResult = obj . encodeStreamKey ( streamForUser ) ;
2026-07-23 10:11:24 +00:00
let tmp6 = encodeStreamKeyResult !== c22 ;
2026-07-21 06:55:02 +00:00
if ( tmp6 ) {
let flag2 = ! authStore . isStreamMarkedFull ( encodeStreamKeyResult ) ;
if ( flag2 ) {
2026-07-23 10:11:24 +00:00
c22 = encodeStreamKeyResult ;
2026-07-21 06:55:02 +00:00
obj = { noFocus : true } ;
2026-07-25 08:10:48 +00:00
require ( 4310 ) /* isVoiceChannelFull */ . watchStream ( streamForUser , obj ) ;
2026-07-21 06:55:02 +00:00
flag2 = true ;
2026-07-25 08:10:48 +00:00
const obj2 = require ( 4310 ) /* isVoiceChannelFull */ ;
2026-07-21 06:55:02 +00:00
}
tmp6 = flag2 ;
2026-07-20 16:05:17 +00:00
}
2026-07-21 06:55:02 +00:00
return tmp6 ;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
2026-07-23 10:11:24 +00:00
function updateRegion ( closure_0 , preferredRegion ) {
2026-07-20 16:05:17 +00:00
if ( null == preferredRegion ) {
preferredRegion = store . getPreferredRegion ( ) ;
}
let tmp3 = null != preferredRegion ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
tmp3 = preferredRegion !== store . getRegion ( store2 . getHostname ( closure_0 ) ) ;
2026-07-20 16:05:17 +00:00
}
if ( tmp3 ) {
2026-07-25 08:10:48 +00:00
require ( 4310 ) /* isVoiceChannelFull */ . changeStreamRegion ( closure_0 , preferredRegion ) ;
const obj = require ( 4310 ) /* isVoiceChannelFull */ ;
2026-07-20 16:05:17 +00:00
}
}
function maybeStartConnectTimeout ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
const allActiveStreamKeys = store2 . getAllActiveStreamKeys ( ) ;
if ( ! allActiveStreamKeys . includes ( arg0 ) ) {
2026-07-23 10:11:24 +00:00
let timeout = dependencyMap [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == timeout ) {
2026-07-25 08:10:48 +00:00
const Timeout = _require ( 4016 ) . Timeout ;
2026-07-20 16:05:17 +00:00
const prototype = Timeout . prototype ;
timeout = new Timeout ( ) ;
}
2026-07-23 10:11:24 +00:00
dependencyMap [ arg0 ] = timeout ;
2026-07-20 16:05:17 +00:00
timeout . start ( arg1 ? closure_21 : closure_20 , ( ) = > {
2026-07-23 10:11:24 +00:00
let obj = outer1_1 ( outer1_2 [ 20 ] ) ;
obj = { type : "STREAM_TIMED_OUT" , streamKey : closure_0 } ;
2026-07-20 16:05:17 +00:00
obj . dispatch ( obj ) ;
} ) ;
}
}
2026-07-23 10:11:24 +00:00
( { GO_LIVE_NOTIFY_FRIENDS_MIN_MEMBER_COUNT , STREAM_NOTIFY_GUILD_MAX_SIZE } = StreamIssueReportReasons ) ;
( { ApplicationStreamDeleteReasons : closure_15 , ApplicationStreamStates : closure_16 } = ME ) ;
apply . debounce ( require ( "isVoiceChannelFull" ) . notifyStreamStart , 1000 ) ;
2026-07-20 16:05:17 +00:00
let closure_17 = { } ;
let closure_18 = { } ;
2026-07-23 10:11:24 +00:00
let closure_19 = 3 * require ( "set" ) . Millis . MINUTE ;
let closure_20 = 5 * require ( "set" ) . Millis . SECOND ;
let closure_21 = 12 * require ( "set" ) . Millis . SECOND ;
let c22 = null ;
let set = new Set ( ) ;
let result = set . fileFinishedImporting ( "modules/go_live/ApplicationStreamingManager.tsx" ) ;
export default ( ( arg0 ) = > {
2026-07-20 16:05:17 +00:00
class BaseApplicationStreamingManager {
constructor ( arg0 ) {
self = this ;
items = [ . . . arguments ] ;
2026-07-23 10:11:24 +00:00
tmp = outer1_4 ( this , apply ) ;
2026-07-20 16:05:17 +00:00
items1 = [ . . . items ] ;
2026-07-23 10:11:24 +00:00
obj = outer1_6 ( apply ) ;
tmp2 = outer1_5 ;
if ( outer1_26 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp4 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp5 = outer1_6 ;
constructResult = Reflect . construct ( obj , items1 , outer1_6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj . apply ( self , items1 ) ;
}
tmp2Result = tmp2 ( self , constructResult ) ;
2026-07-23 10:11:24 +00:00
apply = tmp2Result ;
2026-07-20 16:05:17 +00:00
tmp2Result . handleStreamWatch = ( streamKey ) = > {
streamKey = streamKey . streamKey ;
2026-07-23 10:11:24 +00:00
const channel = outer2_10 . getChannel ( BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) . decodeStreamKey ( streamKey ) . channelId ) ;
2026-07-20 16:05:17 +00:00
let isGuildStageVoiceResult ;
if ( null != channel ) {
isGuildStageVoiceResult = channel . isGuildStageVoice ( ) ;
}
2026-07-23 10:11:24 +00:00
outer2_32 ( streamKey , isGuildStageVoiceResult ) ;
outer2_28 ( streamKey ) ;
2026-07-20 16:05:17 +00:00
if ( ! streamKey . allowMultiple ) {
2026-07-23 10:11:24 +00:00
const allActiveStreams = outer2_8 . getAllActiveStreams ( ) ;
2026-07-20 16:05:17 +00:00
const item = allActiveStreams . forEach ( ( ownerId ) = > {
2026-07-23 10:11:24 +00:00
const encodeStreamKeyResult = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) . encodeStreamKey ( ownerId ) ;
let tmp2 = ownerId . ownerId !== outer3_9 . getId ( ) ;
2026-07-20 16:05:17 +00:00
if ( tmp2 ) {
tmp2 = encodeStreamKeyResult !== streamKey ;
}
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
BaseApplicationStreamingManager ( outer3_2 [ 16 ] ) . stopStream ( encodeStreamKeyResult , false ) ;
const obj2 = BaseApplicationStreamingManager ( outer3_2 [ 16 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
}
} ;
tmp2Result . handleStreamStart = ( channelId ) = > {
let guildId ;
let streamType ;
channelId = channelId . channelId ;
( { streamType , guildId } = channelId ) ;
2026-07-23 10:11:24 +00:00
const channel = outer2_10 . getChannel ( channelId ) ;
const obj2 = BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) ;
const tmp = outer2_32 ;
2026-07-20 16:05:17 +00:00
let isGuildStageVoiceResult ;
2026-07-23 10:11:24 +00:00
const obj = { streamType , guildId , channelId , ownerId : outer2_9.getId ( ) } ;
2026-07-20 16:05:17 +00:00
if ( null != channel ) {
isGuildStageVoiceResult = channel . isGuildStageVoice ( ) ;
}
2026-07-23 10:11:24 +00:00
tmp ( obj2 . encodeStreamKey ( { streamType , guildId , channelId , ownerId : outer2_9.getId ( ) } ) , isGuildStageVoiceResult ) ;
2026-07-20 16:05:17 +00:00
const result = tmp2Result . platformHandleStreamStart ( channelId ) ;
} ;
tmp2Result . handleStreamCreate = ( streamKey ) = > {
streamKey = streamKey . streamKey ;
2026-07-23 10:11:24 +00:00
outer2_29 ( streamKey ) ;
outer2_27 ( ) ;
const obj = BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) ;
const memberCount = outer2_11 . getMemberCount ( BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) . decodeStreamKey ( streamKey ) . guildId ) ;
2026-07-20 16:05:17 +00:00
} ;
tmp2Result . handleStreamUpdate = ( streamKey ) = > {
2026-07-23 10:11:24 +00:00
outer2_29 ( streamKey . streamKey ) ;
outer2_27 ( ) ;
2026-07-20 16:05:17 +00:00
} ;
tmp2Result . handleStreamDelete = ( streamKey ) = > {
streamKey = streamKey . streamKey ;
2026-07-23 10:11:24 +00:00
outer2_29 ( streamKey ) ;
if ( streamKey . reason === outer2_15 . STREAM_FULL ) {
let obj = BaseApplicationStreamingManager ( outer2_2 [ 21 ] ) ;
obj = { type : BaseApplicationStreamingManager ( outer2_2 [ 21 ] ) . AVError . STREAM_FULL } ;
const merged = Object . assign ( BaseApplicationStreamingManager ( outer2_2 [ 22 ] ) . getStreamErrorContext ( streamKey ) ) ;
2026-07-20 16:05:17 +00:00
obj . reportAVError ( obj ) ;
2026-07-23 10:11:24 +00:00
if ( ! outer2_23 . has ( streamKey ) ) {
outer2_23 . add ( streamKey ) ;
2026-07-21 06:55:02 +00:00
const result = tmp2Result . platformShowStreamFull ( ) ;
}
2026-07-23 10:11:24 +00:00
const obj3 = BaseApplicationStreamingManager ( outer2_2 [ 22 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
tmp2Result . handleStreamClose = ( streamKey ) = > {
streamKey = streamKey . streamKey ;
2026-07-23 10:11:24 +00:00
outer2_28 ( streamKey ) ;
outer2_29 ( streamKey ) ;
2026-07-20 16:05:17 +00:00
} ;
tmp2Result . handleVoiceChannelSelect = ( channelId ) = > {
channelId = channelId . channelId ;
if ( null != channelId ) {
2026-07-23 10:11:24 +00:00
const outer2_22 = null ;
outer2_27 ( ) ;
const allApplicationStreamsForChannel = outer2_8 . getAllApplicationStreamsForChannel ( channelId ) ;
2026-07-21 06:55:02 +00:00
const found = allApplicationStreamsForChannel . find ( ( ownerId ) = > {
2026-07-23 10:11:24 +00:00
let tmp = ownerId . ownerId !== outer3_9 . getId ( ) ;
2026-07-21 06:55:02 +00:00
if ( tmp ) {
2026-07-23 10:11:24 +00:00
tmp = ! outer3_8 . isStreamMarkedFull ( BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) . encodeStreamKey ( ownerId ) ) ;
const obj = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) ;
2026-07-21 06:55:02 +00:00
}
return tmp ;
} ) ;
if ( null != found ) {
2026-07-23 10:11:24 +00:00
outer2_30 ( channelId , found . ownerId ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;
tmp2Result . handleVoiceStateUpdates = ( voiceStates ) = > {
voiceStates = voiceStates . voiceStates ;
const item = voiceStates . forEach ( ( arg0 ) = > {
let channelId ;
let guildId ;
let selfStream ;
let userId ;
( { userId , channelId , guildId , selfStream } = arg0 ) ;
2026-07-23 10:11:24 +00:00
const result = outer1_0 . platformHandleVoiceStateUpdate ( arg0 ) ;
if ( userId !== outer3_9 . getId ( ) ) {
2026-07-21 06:55:02 +00:00
let tmp3 = ! selfStream ;
if ( ! tmp3 ) {
tmp3 = null == channelId ;
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
tmp3 = outer3_23 . size > 0 ;
2026-07-21 06:55:02 +00:00
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
outer3_27 ( ) ;
2026-07-21 06:55:02 +00:00
}
2026-07-20 16:05:17 +00:00
if ( null != channelId ) {
2026-07-23 10:11:24 +00:00
const activeStreamForUser = outer3_8 . getActiveStreamForUser ( userId , guildId ) ;
2026-07-20 16:05:17 +00:00
if ( null != activeStreamForUser ) {
if ( activeStreamForUser . channelId === channelId ) {
if ( ! selfStream ) {
2026-07-23 10:11:24 +00:00
if ( activeStreamForUser . state !== outer3_16 . ENDED ) {
const encodeStreamKeyResult = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) . encodeStreamKey ( activeStreamForUser ) ;
let closure_0 = encodeStreamKeyResult ;
let timeout = outer3_17 [ encodeStreamKeyResult ] ;
2026-07-20 16:05:17 +00:00
if ( null == timeout ) {
2026-07-23 10:11:24 +00:00
const Timeout = BaseApplicationStreamingManager ( outer3_2 [ 19 ] ) . Timeout ;
2026-07-20 16:05:17 +00:00
const prototype = Timeout . prototype ;
timeout = new Timeout ( ) ;
}
2026-07-23 10:11:24 +00:00
timeout . start ( outer3_19 , ( ) = > BaseApplicationStreamingManager ( outer4_2 [ 16 ] ) . closeStream ( closure_0 , false ) ) ;
outer3_17 [ encodeStreamKeyResult ] = timeout ;
const obj4 = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( selfStream ) {
2026-07-23 10:11:24 +00:00
if ( activeStreamForUser . state === outer3_16 . ENDED ) {
outer3_28 ( BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) . encodeStreamKey ( activeStreamForUser ) ) ;
const streamForUser = outer3_8 . getStreamForUser ( userId , guildId ) ;
2026-07-20 16:05:17 +00:00
if ( null != streamForUser ) {
2026-07-23 10:11:24 +00:00
if ( ! outer3_8 . isStreamMarkedFull ( obj2 . encodeStreamKey ( streamForUser ) ) ) {
BaseApplicationStreamingManager ( outer3_2 [ 16 ] ) . watchStream ( streamForUser ) ;
const obj3 = BaseApplicationStreamingManager ( outer3_2 [ 16 ] ) ;
2026-07-21 06:55:02 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj5 = BaseApplicationStreamingManager ( outer3_2 [ 18 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
}
} ) ;
} ;
tmp2Result . handleCallUpdate = ( arg0 ) = > {
let channelId ;
let region ;
( { channelId , region } = arg0 ) ;
2026-07-23 10:11:24 +00:00
const currentUserActiveStream = outer2_8 . getCurrentUserActiveStream ( ) ;
2026-07-20 16:05:17 +00:00
channelId = undefined ;
if ( null != currentUserActiveStream ) {
channelId = currentUserActiveStream . channelId ;
}
if ( channelId === channelId ) {
2026-07-23 10:11:24 +00:00
outer2_31 ( BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) . encodeStreamKey ( currentUserActiveStream ) , region ) ;
const obj = BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
tmp2Result . handleChannelUpdates = ( channels ) = > {
let iter2 ;
2026-07-23 10:11:24 +00:00
const currentUserActiveStream = outer2_8 . getCurrentUserActiveStream ( ) ;
2026-07-20 16:05:17 +00:00
if ( null != currentUserActiveStream ) {
2026-07-23 10:11:24 +00:00
const tmp3 = outer2_24 ( channels . channels ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp3 ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
if ( currentUserActiveStream . channelId === value . id ) {
2026-07-23 10:11:24 +00:00
let tmp4 = outer2_31 ;
let tmp5 = BaseApplicationStreamingManager ;
let tmp6 = outer2_2 ;
let obj = BaseApplicationStreamingManager ( outer2_2 [ 18 ] ) ;
let tmp7 = outer2_31 ( obj . encodeStreamKey ( currentUserActiveStream ) , value . rtcRegion ) ;
2026-07-20 16:05:17 +00:00
}
iter2 = tmp3 ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
}
} ;
2026-07-21 06:55:02 +00:00
tmp2Result . handleSessionReset = ( ) = > {
2026-07-23 10:11:24 +00:00
outer2_23 . clear ( ) ;
2026-07-21 06:55:02 +00:00
} ;
tmp2Result . actions = { STREAM_WATCH : tmp2Result.handleStreamWatch , STREAM_START : tmp2Result.handleStreamStart , STREAM_CREATE : tmp2Result.handleStreamCreate , STREAM_UPDATE : tmp2Result.handleStreamUpdate , STREAM_DELETE : tmp2Result.handleStreamDelete , STREAM_CLOSE : tmp2Result.handleStreamClose , CALL_UPDATE : tmp2Result.handleCallUpdate , CHANNEL_UPDATES : tmp2Result.handleChannelUpdates , VOICE_CHANNEL_SELECT : tmp2Result.handleVoiceChannelSelect , VOICE_STATE_UPDATES : tmp2Result.handleVoiceStateUpdates , CONNECTION_CLOSED : tmp2Result.handleSessionReset , LOGOUT : tmp2Result.handleSessionReset } ;
2026-07-20 16:05:17 +00:00
return tmp2Result ;
}
}
callback2 ( BaseApplicationStreamingManager , arg0 ) ;
return callback ( BaseApplicationStreamingManager ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "AutomaticLifecycleManager" ) ) ;