2026-07-25 08:10:48 +00:00
// Module ID: 15961
// Function ID: 123366
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 5, 15962, 16012, 27, 16032, 1923, 1907, 6271, 5692, 16033, 653, 14, 3, 16642, 5720, 16643, 10919, 566, 682, 1186, 16645, 13181, 477, 20, 16646, 10547, 686, 16647, 3995, 5703, 1184, 16648, 16649, 10631, 587, 675, 479, 1899, 5672, 1934, 1250, 16650, 1935, 8105, 16652, 13387, 5905, 16670, 16671, 16672, 16673, 9837, 5716, 5704, 3984, 1278, 4123, 1324, 13435, 15697, 15698, 684, 13176, 5691, 13440, 13453, 5868, 16675, 5217, 5693, 5704, 2]
2026-07-20 16:05:17 +00:00
// Exports: init, initHeadlessTask
2026-07-25 08:10:48 +00:00
// Module 15961 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_5 from "timestamp" ;
2026-07-25 08:10:48 +00:00
import module_15962 from "module_15962" ;
2026-07-23 10:11:24 +00:00
import isAnalyticsEndpoint from "isAnalyticsEndpoint" ;
import get_ActivityIndicator from "dispatcher" ;
import timestamp from "timestamp" ;
import { subscribeToIntlLoadingSuccess as closure_11 } from "_setAppLocale" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import result from "result" ;
import inlineRequire from "inlineRequire" ;
import ME from "ME" ;
import { loadImports } from "DeeplinkSource" ;
import importDefaultResult from "isAnalyticsEndpoint" ;
import { loadIndex } from "DeeplinkSource" ;
let closure_10 ;
let closure_14 ;
let closure_15 ;
let closure_16 ;
let closure_17 ;
let closure_18 ;
let closure_19 ;
let closure_6 ;
let closure_7 ;
let closure_8 ;
let closure_9 ;
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 linkFromAppsFlyer ( arg0 ) {
const uRL = new URL ( arg0 ) ;
const searchParams = uRL . searchParams ;
return "true" === searchParams . get ( "fromAppsFlyer" ) ;
}
function getInitialURLs() {
return _getInitialURLs ( . . . arguments ) ;
}
function _getInitialURLs() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function handleURL ( defaultResult1 , defaultResult2 ) {
2026-07-25 08:10:48 +00:00
importDefault ( 5720 ) ( "handleURL" , ( ) = > outer1_0 ( outer1_3 [ 16 ] ) ) . default ( defaultResult1 , defaultResult2 ) ;
2026-07-20 16:05:17 +00:00
}
function sharedInit() {
function handleNotification ( defaultResult1 ) {
2026-07-23 10:11:24 +00:00
if ( c0 ) {
arr ( handleNotification [ 15 ] ) ( "receiveNotification" , ( ) = > callback ( handleNotification [ 32 ] ) ) . default ( defaultResult1 , false ) ;
2026-07-20 16:05:17 +00:00
arr ( handleNotification [ 12 ] ) . extraProperties . tapped_notification = true ;
} else {
2026-07-23 10:11:24 +00:00
arr = arr . push ( defaultResult1 ) ;
2026-07-20 16:05:17 +00:00
}
}
function handleLocalNotification ( getData ) {
2026-07-23 10:11:24 +00:00
if ( c0 ) {
const result = arr ( handleNotification [ 15 ] ) ( "LocalPushNotificationActionCreators" , ( ) = > callback ( handleNotification [ 33 ] ) ) . receiveLocalNotification ( getData ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
arr = arr2 . push ( getData ) ;
2026-07-20 16:05:17 +00:00
}
}
let obj = importDefault ( handleNotification [ 17 ] ) ;
2026-07-23 10:11:24 +00:00
let result = obj . setupOTAAssetFallback ( ) ;
2026-07-20 16:05:17 +00:00
const Emitter = importDefault ( handleNotification [ 18 ] ) . Emitter ;
2026-07-23 10:11:24 +00:00
const result1 = Emitter . injectBatchEmitChanges ( _require ( handleNotification [ 19 ] ) . batchUpdates ) ;
const TelemetryRingLifecycle = _require ( handleNotification [ 20 ] ) . TelemetryRingLifecycle ;
2026-07-20 16:05:17 +00:00
TelemetryRingLifecycle . initialize ( ) ;
2026-07-23 10:11:24 +00:00
const result2 = _require ( handleNotification [ 21 ] ) . installWebsocketTelemetryHook ( ( arg0 ) = > {
arr ( handleNotification [ 22 ] ) . append ( outer1_15 . WEBSOCKET_MESSAGE_RECEIVED , arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
const listener = closure_8 . addEventListener ( "url" , ( url ) = > {
url = url . url ;
let isAndroidResult = callback ( handleNotification [ 23 ] ) . isAndroid ( ) ;
if ( isAndroidResult ) {
2026-07-23 10:11:24 +00:00
isAndroidResult = outer1_22 === url ;
2026-07-20 16:05:17 +00:00
}
if ( ! isAndroidResult ) {
2026-07-23 10:11:24 +00:00
outer1_22 = url ;
outer1_27 . then ( ( ) = > {
outer2_20 . log ( "Handling URL: " + url ) ;
let obj = callback ( handleNotification [ 24 ] ) ;
2026-07-20 16:05:17 +00:00
obj . mark ( "\u2757" , "Handle URL " + url ) ;
obj = { url } ;
2026-07-23 10:11:24 +00:00
const DeeplinkSource = url ( handleNotification [ 14 ] ) . DeeplinkSource ;
obj . source = outer2_30 ( url ) ? DeeplinkSource.AppsFlyer : DeeplinkSource.OS ;
outer2_33 ( obj , false ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ) ;
2026-07-23 10:11:24 +00:00
closure_9 . ignoreLogs ( [ "Non-serializable values were found in the navigation state" , "Overriding previous layout animation with new one before the first began" , "Check the render method of `SceneView`" , "Open debugger to view warnings." ] ) ;
const obj2 = _require ( handleNotification [ 21 ] ) ;
2026-07-20 16:05:17 +00:00
const initialBundleDownloaded = importDefault ( handleNotification [ 17 ] ) . getInitialBundleDownloaded ( ) ;
initialBundleDownloaded . then ( ( versionRequired ) = > {
if ( tmp ) {
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
outer1_20 . verbose ( "Get initial downloaded bundle " + versionRequired . versionRequired ) ;
2026-07-20 16:05:17 +00:00
arr ( handleNotification [ 25 ] ) . prepareUpdate ( versionRequired . versionRequired ) ;
const obj = arr ( handleNotification [ 25 ] ) ;
}
} ) ;
const obj3 = importDefault ( handleNotification [ 17 ] ) ;
const listener1 = importDefault ( handleNotification [ 17 ] ) . addEventListener ( "downloaded" , ( versionRequired ) = > {
versionRequired = versionRequired . versionRequired ;
2026-07-23 10:11:24 +00:00
outer1_20 . verbose ( "Bundle Event: bundle downloaded for " + versionRequired ) ;
2026-07-20 16:05:17 +00:00
arr ( handleNotification [ 25 ] ) . prepareUpdate ( versionRequired ) ;
} ) ;
const obj4 = importDefault ( handleNotification [ 17 ] ) ;
const initialOtaUpdateChecked = importDefault ( handleNotification [ 17 ] ) . getInitialOtaUpdateChecked ( ) ;
initialOtaUpdateChecked . then ( ( metrics ) = > {
let done ;
metrics = metrics . metrics ;
2026-07-23 10:11:24 +00:00
outer1_20 . verbose ( "Initial OTA update check metrics" , metrics ) ;
const tmp2 = outer1_28 ( metrics ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp3 = arr ;
let tmp4 = handleNotification ;
let obj = arr ( handleNotification [ 17 ] ) ;
2026-07-20 16:05:17 +00:00
let emitOtaMetricResult = obj . emitOtaMetric ( iter . value ) ;
let iter2 = tmp2 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
} ) ;
const obj5 = importDefault ( handleNotification [ 17 ] ) ;
const listener2 = importDefault ( handleNotification [ 17 ] ) . addEventListener ( "otaUpdateChecked" , ( metrics ) = > {
let done ;
metrics = metrics . metrics ;
2026-07-23 10:11:24 +00:00
outer1_20 . verbose ( "OTA update check metrics" , metrics ) ;
const tmp2 = outer1_28 ( metrics ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp3 = arr ;
let tmp4 = handleNotification ;
let obj = arr ( handleNotification [ 17 ] ) ;
2026-07-20 16:05:17 +00:00
let emitOtaMetricResult = obj . emitOtaMetric ( iter . value ) ;
let iter2 = tmp2 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
} ) ;
const obj6 = importDefault ( handleNotification [ 17 ] ) ;
new closure_7 ( importDefault ( handleNotification [ 26 ] ) ) . addListener ( "appWillEnterForeground" , ( ) = > {
arr ( handleNotification [ 27 ] ) . dispatch ( { type : "APP_STATE_UPDATE_WILL_BECOME_ACTIVE" } ) ;
} ) ;
if ( state . getState ( ) !== closure_6 . currentState ) {
importDefault ( handleNotification [ 15 ] ) ( "handleAppStateChange" , ( ) = > callback ( handleNotification [ 28 ] ) ) . default ( closure_6 . currentState ) ;
2026-07-23 10:11:24 +00:00
} else if ( _require ( handleNotification [ 29 ] ) . isBridgeless ) {
2026-07-20 16:05:17 +00:00
if ( ! obj8 . isAndroid ( ) ) {
2026-07-23 10:11:24 +00:00
if ( ! c21 ) {
2026-07-20 16:05:17 +00:00
if ( closure_6 . currentState === constants . ACTIVE ) {
2026-07-23 10:11:24 +00:00
c21 = true ;
2026-07-20 16:05:17 +00:00
importDefault ( handleNotification [ 15 ] ) ( "trackAppOpened" , ( ) = > callback ( handleNotification [ 30 ] ) ) . trackAppOpened ( "launcher" ) ;
}
}
}
2026-07-23 10:11:24 +00:00
obj8 = _require ( handleNotification [ 23 ] ) ;
2026-07-20 16:05:17 +00:00
}
const listener3 = closure_6 . addEventListener ( "change" , ( defaultResult1 ) = > {
const appStateChangeStart = arr ( handleNotification [ 12 ] ) . imports . appStateChangeStart ;
appStateChangeStart . record ( ) ;
let obj = arr ( handleNotification [ 24 ] ) ;
obj . resumeTracing ( ) ;
obj = { message : "App state changed to " + defaultResult1 , category : "appState" } ;
arr ( handleNotification [ 31 ] ) . addBreadcrumb ( obj ) ;
2026-07-23 10:11:24 +00:00
arr ( handleNotification [ 15 ] ) ( "handleAppStateChange" , ( ) = > callback ( handleNotification [ 28 ] ) ) . default ( defaultResult1 ) ;
2026-07-20 16:05:17 +00:00
const appStateChangeEnd = arr ( handleNotification [ 12 ] ) . imports . appStateChangeEnd ;
appStateChangeEnd . record ( ) ;
} ) ;
if ( null != closure_10 . Hosts ) {
const Hosts = closure_10 . Hosts ;
const _location = location ;
const _window = window ;
2026-07-23 10:11:24 +00:00
let _HermesInternal = HermesInternal ;
2026-07-20 16:05:17 +00:00
const _location2 = location ;
const _window2 = window ;
const _HermesInternal2 = HermesInternal ;
const combined = "" + location . protocol + window . GLOBAL_ENV . API_ENDPOINT ;
Hosts . setHosts ( combined , "" + location . protocol + "//" + window . GLOBAL_ENV . CDN_HOST ) ;
}
2026-07-23 10:11:24 +00:00
_require = false ;
importDefault = [ ] ;
2026-07-20 16:05:17 +00:00
let closure_2 = [ ] ;
const obj7 = new closure_7 ( importDefault ( handleNotification [ 26 ] ) ) ;
const result3 = importDefault ( handleNotification [ 34 ] ) . addNotificationEventListener ( "notification" , ( defaultResult1 ) = > {
2026-07-23 10:11:24 +00:00
const state = outer1_13 . getState ( ) ;
outer1_20 . log ( "Push notification received, the app state is " + state ) ;
if ( state !== outer1_14 . ACTIVE ) {
2026-07-20 16:05:17 +00:00
handleNotification ( defaultResult1 ) ;
}
} ) ;
const obj9 = importDefault ( handleNotification [ 34 ] ) ;
const result4 = importDefault ( handleNotification [ 34 ] ) . addNotificationEventListener ( "localNotification" , handleLocalNotification ) ;
obj = {
onStorageInitialize() {
2026-07-23 10:11:24 +00:00
let c0 = true ;
2026-07-20 16:05:17 +00:00
const item = arr . forEach ( handleNotification ) ;
const item1 = arr2 . forEach ( handleLocalNotification ) ;
arr . length = 0 ;
arr2 . length = 0 ;
}
} ;
return obj ;
}
function _trackFirstLaunched() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function loadStorage() {
return _loadStorage ( . . . arguments ) ;
}
function _loadStorage() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function loadKvStorage() {
2026-07-25 08:10:48 +00:00
importDefault ( 1899 ) . initialize ( ) ;
2026-07-20 16:05:17 +00:00
const resolved = Promise . resolve ( ) ;
}
function initializeIntl() {
return _initializeIntl ( . . . arguments ) ;
}
function _initializeIntl() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function _init ( _payload ) {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function _initHeadlessTask() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback ( tmp ) ;
2026-07-20 16:05:17 +00:00
return obj ( . . . arguments ) ;
}
function initializeTokenStorage() {
2026-07-23 10:11:24 +00:00
const Storage = require ( 587 ) /* Storage */ . Storage ;
2026-07-20 16:05:17 +00:00
if ( null == Storage . get ( closure_17 ) ) {
2026-07-23 10:11:24 +00:00
let obj = require ( 477 ) /* set */ ;
2026-07-20 16:05:17 +00:00
if ( obj . isAndroid ( ) ) {
2026-07-23 10:11:24 +00:00
let token = importDefault ( 479 ) . getConstants ( ) . token ;
const obj2 = importDefault ( 479 ) ;
2026-07-20 16:05:17 +00:00
} else {
token = closure_10 . DCDFastConnectManager . token ;
}
if ( null != token ) {
importDefaultResult . log ( "Applying token storage fix." ) ;
2026-07-23 10:11:24 +00:00
const Storage2 = require ( 587 ) /* Storage */ . Storage ;
2026-07-20 16:05:17 +00:00
const result = Storage2 . set ( closure_17 , token ) ;
} else {
importDefaultResult . log ( "Cannot apply token storage fix as token not in NSUserDefaults." ) ;
}
} else {
importDefaultResult . verbose ( "No need to apply token storage fix as token already exists." ) ;
}
2026-07-23 10:11:24 +00:00
importAll ( 684 ) . init ( ) ;
const obj3 = importAll ( 684 ) ;
const obj4 = importAll ( 684 ) ;
const Storage3 = require ( 587 ) /* Storage */ . Storage ;
obj = { storageHasToken : null != Storage3 . get ( closure_17 ) , tokenManagerHasToken : null != importAll ( 684 ) . getToken ( ) } ;
2026-07-20 16:05:17 +00:00
importDefaultResult . verbose ( "Token manager has initialized" , obj ) ;
2026-07-23 10:11:24 +00:00
callback2 ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
( { AppState : closure_6 , NativeEventEmitter : closure_7 , Linking : closure_8 , LogBox : closure_9 , NativeModules : closure_10 } = get_ActivityIndicator ) ;
( { AppStates : closure_14 , AnalyticEvents : closure_15 , FIRST_RUN_DATE_KEY : closure_16 , TOKEN_KEY : closure_17 , STORAGE_SECURE_KEYS : closure_18 , Platforms : closure_19 } = ME ) ;
2026-07-20 16:05:17 +00:00
loadImports . recordEnd ( ) ;
importDefaultResult = new importDefaultResult ( "index.native.tsx" ) ;
2026-07-23 10:11:24 +00:00
let c21 = false ;
let c22 = null ;
const future = new require ( "Future" ) . Future ( ) ;
let obj = { None : 0 , [ 0 ] : "None" , HeadlessRan : 1 , [ 1 ] : "HeadlessRan" , Full : 2 , [ 2 ] : "Full" } ;
2026-07-20 16:05:17 +00:00
const None = obj . None ;
const promise = new Promise ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_23 = arg0 ;
2026-07-20 16:05:17 +00:00
} ) ;
loadIndex . recordEnd ( ) ;
2026-07-25 08:10:48 +00:00
result = require ( "module_15962" ) . fileFinishedImporting ( "modules/app_startup/native/NativeAppStartup.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const applicationReady = future ;
export const init = function init() {
return _init ( . . . arguments ) ;
} ;
export const initHeadlessTask = function initHeadlessTask() {
return _initHeadlessTask ( . . . arguments ) ;
} ;