2026-07-22 07:54:56 +00:00
// Module ID: 9471
// Function ID: 73797
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
// Dependencies: []
2026-07-22 07:54:56 +00:00
// Module 9471 (_isNativeReflectConstruct)
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 _createForOfIteratorHelperLoose ( @ @iterator ) {
let arg1 = Symbol_iterator ;
@ @iterator = "undefined" !== typeof Symbol ;
if ( Symbol_iterator ) {
const _Symbol = Symbol ;
@ @iterator = Symbol_iterator [ Symbol . iterator ] ;
}
if ( ! Symbol_iterator ) {
@ @iterator = Symbol_iterator [ Symbol . iterator ] ;
}
if ( Symbol_iterator ) {
const iter = Symbol_iterator . call ( Symbol_iterator ) ;
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
let tmp = Symbol_iterator ;
if ( ! Array . isArray ( Symbol_iterator ) ) {
let tmp2 ;
if ( Symbol_iterator ) {
if ( "string" === typeof Symbol_iterator ) {
tmp2 = _arrayLikeToArray ( Symbol_iterator , undefined ) ;
} else {
const toString = { } . toString ;
const substr = toString . call ( Symbol_iterator ) . slice ( 8 , - 1 ) ;
let name = substr ;
if ( tmp3 ) {
name = Symbol_iterator . constructor . name ;
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
let arr = _arrayLikeToArray ( Symbol_iterator , undefined ) ;
} else {
const obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
arr = Array . from ( Symbol_iterator ) ;
const callResult = toString . call ( Symbol_iterator ) ;
const tmp3 = "Object" === substr && Symbol_iterator . constructor ;
}
}
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 ) {
arg1 = tmp ;
}
let closure_1 = 0 ;
return ( ) = > {
if ( closure_1 >= tmp . length ) {
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
obj . value = tmp [ + closure_1 ] ;
}
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 _toTimestampMs ( voiceStartTime ) {
return new Date ( voiceStartTime * importDefault ( dependencyMap [ 6 ] ) . Millis . SECOND ) . getTime ( ) ;
}
function handleConnectionReset() {
set . clear ( ) ;
}
function handleGuildReset ( guild ) {
set . delete ( guild . guild . id ) ;
}
let closure_3 = importDefault ( dependencyMap [ 0 ] ) ;
let closure_4 = importDefault ( dependencyMap [ 1 ] ) ;
let closure_5 = importDefault ( dependencyMap [ 2 ] ) ;
let closure_6 = importDefault ( dependencyMap [ 3 ] ) ;
let closure_7 = importDefault ( dependencyMap [ 4 ] ) ;
let closure_8 = importDefault ( dependencyMap [ 5 ] ) ;
const set = new Set ( ) ;
let closure_10 = { } ;
let tmp3 = ( Store ) = > {
class VoiceChannelStartTimeStore {
constructor ( ) {
self = this ;
tmp = closure_3 ( this , VoiceChannelStartTimeStore ) ;
obj = closure_6 ( VoiceChannelStartTimeStore ) ;
tmp2 = closure_5 ;
if ( closure_11 ( ) ) {
tmp6 = globalThis ;
_Reflect = Reflect ;
tmp7 = closure_6 ;
tmp8 = arguments ;
constructResult = Reflect . construct ( obj , arguments , closure_6 ( self ) . constructor ) ;
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
const arg1 = VoiceChannelStartTimeStore ;
callback2 ( VoiceChannelStartTimeStore , Store ) ;
let obj = {
key : "initialize" ,
value() {
this . waitFor ( closure_8 ) ;
}
} ;
const items = [ obj , , ] ;
obj = {
key : "getStartTime" ,
value ( guild_id ) {
if ( null != guild_id ) {
if ( null != guild_id . guild_id ) {
if ( guild_id . type === VoiceChannelStartTimeStore ( closure_2 [ 7 ] ) . ChannelTypes . GUILD_VOICE ) {
let tmp5 ;
if ( null != closure_10 [ guild_id . guild_id ] ) {
tmp5 = tmp4 [ guild_id . id ] ;
}
return tmp5 ;
}
}
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "hasRequestedStartTimes" ,
value ( arg0 ) {
return set . has ( arg0 ) ;
}
} ;
items [ 2 ] = obj ;
return callback ( VoiceChannelStartTimeStore , items ) ;
} ( importDefault ( dependencyMap [ 8 ] ) . Store ) ;
tmp3 . displayName = "VoiceChannelStartTimeStore" ;
tmp3 = new tmp3 ( importDefault ( dependencyMap [ 9 ] ) , {
GUILD_CREATE : handleGuildReset ,
GUILD_DELETE : handleGuildReset ,
CONNECTION_RESUMED : handleConnectionReset ,
CONNECTION_OPEN : handleConnectionReset ,
VOICE_CHANNEL_START_TIME_UPDATE : function handleVoiceChannelStartTimeUpdate ( id ) {
let guildId ;
let voiceStartTime ;
( { guildId , voiceStartTime } = id ) ;
if ( null == closure_10 [ guildId ] ) {
closure_10 [ guildId ] = { } ;
}
let tmp2 ;
if ( null != voiceStartTime ) {
tmp2 = _toTimestampMs ( voiceStartTime ) ;
}
closure_10 [ guildId ] [ id . id ] = tmp2 ;
} ,
CHANNEL_INFO : function handleStartTimes ( guildId ) {
let iter2 ;
guildId = guildId . guildId ;
closure_10 [ guildId ] = { } ;
const tmp = _createForOfIteratorHelperLoose ( guildId . channels ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
let voiceStartTime = value . voiceStartTime ;
let tmp2 = closure_10 ;
let tmp3 ;
if ( null != voiceStartTime ) {
let tmp4 = closure_14 ;
tmp3 = closure_14 ( voiceStartTime ) ;
}
closure_10 [ guildId ] [ value . id ] = tmp3 ;
iter2 = tmp ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
} ,
FETCH_CHANNEL_INFO : function handleFetchChannelInfo ( guildId ) {
set . add ( guildId . guildId ) ;
}
} ) ;
const result = arg1 ( dependencyMap [ 10 ] ) . fileFinishedImporting ( "modules/channel/VoiceChannelStartTimeStore.tsx" ) ;
export default tmp3 ;