2026-09-07 16:44:02 +00:00
// Module ID: 17231
// Function ID: 17232
2026-07-29 08:29:29 +00:00
// Name: linkFromAppsFlyer
2026-09-07 16:44:02 +00:00
// Dependencies: [32, 5, 17232, 17282, 17, 17302, 2026, 2011, 1895, 7460, 17303, 1074, 9, 3, 17898, 7492, 17899, 11796, 504, 1249, 1234, 17901, 1899, 1115, 10, 17902, 9521, 573, 17903, 7475, 1232, 17904, 17905, 9692, 510, 1242, 13641, 2003, 9298, 2037, 1155, 17906, 1896, 8332, 17908, 14393, 7674, 17926, 17927, 17928, 9946, 7488, 7476, 4419, 1183, 4552, 14441, 16961, 16962, 1099, 14194, 7459, 14446, 14460, 7636, 17929, 6655, 7461, 7476, 2]
2026-07-20 16:05:17 +00:00
// Exports: init, initHeadlessTask
2026-09-07 16:44:02 +00:00
// Module 17231 (linkFromAppsFlyer)
2026-08-24 06:08:38 +00:00
import timestampDefault from "timestamp" /* 3 */ ;
import serializeDefault from "serialize" /* 9 */ ;
2026-09-05 10:56:28 +00:00
import Storage4 from "Storage" /* 510 */ ;
import setSecondaryTokenAll from "setSecondaryToken" /* 1099 */ ;
import _modDef1232 from "module_1232" /* 1232 */ ;
import databaseNameDefault from "databaseName" /* 2003 */ ;
2026-09-07 16:44:02 +00:00
import enforcingDefault from "enforcing" /* 13641 */ ;
2026-08-24 06:08:38 +00:00
import closure_4 from "_slicedToArray" /* 32 */ ;
import closure_5 from "asyncGeneratorStep" /* 5 */ ;
2026-09-07 16:44:02 +00:00
import module_17232 from "module_17232" /* 17232 */ ;
import isAnalyticsEndpoint from "isAnalyticsEndpoint" /* 17282 */ ;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */ ;
2026-09-07 16:44:02 +00:00
import timestamp from "timestamp" /* 17302 */ ;
2026-09-05 10:56:28 +00:00
import { subscribeToIntlLoadingSuccess as closure_11 } from "_setAppLocale" /* 2026 */ ;
import closure_12 from "handleConnectionOpen" /* 2011 */ ;
import closure_13 from "getState" /* 1895 */ ;
import result from "result" /* 7460 */ ;
2026-09-07 16:44:02 +00:00
import module_17303 from "module_17303" /* 17303 */ ;
2026-09-05 10:56:28 +00:00
import ME from "ME" /* 1074 */ ;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1 ;
2026-07-29 08:29:29 +00:00
function linkFromAppsFlyer ( arg0 ) {
try {
const _URL = URL ;
const uRL = new URL ( arg0 ) ;
const searchParams = uRL . searchParams ;
return "true" === searchParams . get ( "fromAppsFlyer" ) ;
} catch ( tmp8 ) {
2026-08-24 06:08:38 +00:00
obj = { url : null , error : null } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = tmp ;
obj [ 1 ] = tmp8 ;
2026-08-24 06:08:38 +00:00
closure_20 . error ( "Failed to parse URL in linkFromAppsFlyer" , obj ) ;
2026-07-29 08:29:29 +00:00
return false ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
function getInitialURLs() {
const self = this ;
const apply = _getInitialURLs . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
}
function _getInitialURLs() {
const self = this ;
const tmp = callback ( function * ( ) {
2026-08-04 21:03:28 +00:00
let arr = tmp2 ;
arr = [ ] ;
2026-08-24 06:08:38 +00:00
const DeepLinkManager = closure_1_10 . DeepLinkManager ;
2026-08-04 21:03:28 +00:00
yield DeepLinkManager . getInitialURL ( ) ;
if ( 1 === tmp5 ) {
2026-07-29 08:29:29 +00:00
if ( arg0 === 1 ) {
2026-08-24 06:08:38 +00:00
dependencyMap = 3 ;
2026-07-29 08:29:29 +00:00
throw arg1 ;
} else if ( arg0 === 2 ) {
2026-08-04 21:03:28 +00:00
dependencyMap = 3 ;
const obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
closure_1 = arg1 ;
2026-08-04 21:03:28 +00:00
if ( null != closure_1 ) {
if ( null != closure_1 . url ) {
if ( callback ( closure_1 . url ) ) {
2026-09-07 16:44:02 +00:00
let push = arr ( 17898 ) . DeeplinkSource ;
2026-08-04 21:03:28 +00:00
if ( closure_1 . isDeferred ) {
let AppsFlyer = push . AppsFlyerDeferred ;
} else {
AppsFlyer = push . AppsFlyer ;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
c2 = AppsFlyer ;
2026-08-04 21:03:28 +00:00
push = arr . push ;
const obj3 = { url : null , source : null } ;
obj3 [ 0 ] = closure_1 . url ;
obj3 [ 1 ] = c2 ;
arr = push ( obj3 ) ;
} else {
const obj4 = { url : null , source : null } ;
obj4 [ 0 ] = closure_1 . url ;
2026-09-07 16:44:02 +00:00
obj4 [ 1 ] = arr ( 17898 ) . DeeplinkSource . OS ;
2026-08-04 21:03:28 +00:00
arr = arr . push ( obj4 ) ;
dependencyMap = 3 ;
2026-07-20 16:05:17 +00:00
}
}
}
2026-08-04 21:03:28 +00:00
c2 = 2 ;
dependencyMap = 1 ;
const obj5 = { value : null , done : false } ;
obj5 [ 0 ] = initialURL . getInitialURL ( ) ;
return obj5 ;
}
} else if ( arg0 === 1 ) {
dependencyMap = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
dependencyMap = arg1 ;
if ( null != dependencyMap ) {
const obj6 = { url : null , source : null } ;
obj6 [ 0 ] = dependencyMap ;
2026-09-07 16:44:02 +00:00
obj6 [ 1 ] = arr ( 17898 ) . DeeplinkSource . ReactNativeLinking ;
2026-08-04 21:03:28 +00:00
arr . push ( obj6 ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-08-04 21:03:28 +00:00
return arg1 ;
2026-07-29 08:29:29 +00:00
} ) ;
2026-08-24 06:08:38 +00:00
closure_24 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function sharedInit() {
2026-07-29 08:29:29 +00:00
function handleNotification ( arg0 ) {
2026-07-23 10:11:24 +00:00
if ( c0 ) {
2026-08-12 06:57:52 +00:00
arr ( handleNotification [ 15 ] ) ( "receiveNotification" , ( ) = > callback ( table [ 31 ] ) ) . default ( arg0 , false ) ;
2026-07-20 16:05:17 +00:00
arr ( handleNotification [ 12 ] ) . extraProperties . tapped_notification = true ;
} else {
2026-07-29 08:29:29 +00:00
arr = arr . push ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
}
function handleLocalNotification ( getData ) {
2026-07-23 10:11:24 +00:00
if ( c0 ) {
2026-08-12 06:57:52 +00:00
const result = arr ( handleNotification [ 15 ] ) ( "LocalPushNotificationActionCreators" , ( ) = > callback ( table [ 32 ] ) ) . 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
}
}
2026-08-24 06:08:38 +00:00
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 ) = > {
2026-07-29 08:29:29 +00:00
arr ( handleNotification [ 22 ] ) . append ( constants . WEBSOCKET_MESSAGE_RECEIVED , arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
const listener = closure_8 . addEventListener ( "url" , ( url ) = > {
url = url . url ;
2026-07-29 08:29:29 +00:00
let isAndroidResult = url ( handleNotification [ 23 ] ) . isAndroid ( ) ;
2026-07-20 16:05:17 +00:00
if ( isAndroidResult ) {
2026-07-29 08:29:29 +00:00
isAndroidResult = url === url ;
2026-07-20 16:05:17 +00:00
}
if ( ! isAndroidResult ) {
2026-07-29 08:29:29 +00:00
promise . then ( ( ) = > {
2026-08-24 06:08:38 +00:00
closure_1_20 . log ( "Handling URL: " + url ) ;
obj = closure_1_1 ( closure_1_3 [ 24 ] ) ;
2026-07-20 16:05:17 +00:00
obj . mark ( "\u2757" , "Handle URL " + url ) ;
2026-07-29 08:29:29 +00:00
obj = { url , source : null } ;
2026-08-24 06:08:38 +00:00
const DeeplinkSource = url ( closure_1_3 [ 14 ] ) . DeeplinkSource ;
obj [ 1 ] = closure_1_22 ( url ) ? DeeplinkSource.AppsFlyer : DeeplinkSource.OS ;
closure_1_1 ( closure_1_3 [ 15 ] ) ( "handleURL" , ( ) = > callback ( table [ 16 ] ) ) . default ( 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-08-12 06:57:52 +00:00
const tmp4 = _require ;
2026-07-20 16:05:17 +00:00
const initialBundleDownloaded = importDefault ( handleNotification [ 17 ] ) . getInitialBundleDownloaded ( ) ;
initialBundleDownloaded . then ( ( versionRequired ) = > {
if ( tmp ) {
const _HermesInternal = HermesInternal ;
2026-07-29 08:29:29 +00:00
closure_20 . verbose ( "Get initial downloaded bundle " + versionRequired . versionRequired ) ;
2026-07-20 16:05:17 +00:00
arr ( handleNotification [ 25 ] ) . prepareUpdate ( versionRequired . versionRequired ) ;
2026-08-24 06:08:38 +00:00
obj = arr ( handleNotification [ 25 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
const obj3 = importDefault ( handleNotification [ 17 ] ) ;
const listener1 = importDefault ( handleNotification [ 17 ] ) . addEventListener ( "downloaded" , ( versionRequired ) = > {
versionRequired = versionRequired . versionRequired ;
2026-07-29 08:29:29 +00:00
closure_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 ) = > {
metrics = metrics . metrics ;
2026-07-29 08:29:29 +00:00
closure_20 . verbose ( "Initial OTA update check metrics" , metrics ) ;
for ( const item10010 of metrics ) {
let tmp2 = arr ;
let tmp3 = handleNotification ;
2026-08-24 06:08:38 +00:00
obj = arr ( handleNotification [ 17 ] ) ;
2026-07-29 08:29:29 +00:00
let emitOtaMetricResult = obj . emitOtaMetric ( item10010 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
} ) ;
const obj5 = importDefault ( handleNotification [ 17 ] ) ;
const listener2 = importDefault ( handleNotification [ 17 ] ) . addEventListener ( "otaUpdateChecked" , ( metrics ) = > {
metrics = metrics . metrics ;
2026-07-29 08:29:29 +00:00
closure_20 . verbose ( "OTA update check metrics" , metrics ) ;
for ( const item10010 of metrics ) {
let tmp2 = arr ;
let tmp3 = handleNotification ;
2026-08-24 06:08:38 +00:00
obj = arr ( handleNotification [ 17 ] ) ;
2026-07-29 08:29:29 +00:00
let emitOtaMetricResult = obj . emitOtaMetric ( item10010 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
} ) ;
const obj6 = importDefault ( handleNotification [ 17 ] ) ;
new closure_7 ( importDefault ( handleNotification [ 26 ] ) ) . addListener ( "appWillEnterForeground" , ( ) = > {
arr ( handleNotification [ 27 ] ) . dispatch ( { type : "APP_STATE_UPDATE_WILL_BECOME_ACTIVE" } ) ;
} ) ;
2026-07-29 08:29:29 +00:00
if ( state . getState ( ) !== currentState . currentState ) {
tmp ( tmp2 [ 15 ] ) ( "handleAppStateChange" , ( ) = > callback ( handleNotification [ 28 ] ) ) . default ( obj8 . currentState ) ;
2026-08-12 06:57:52 +00:00
} else {
2026-07-29 08:29:29 +00:00
if ( ! tmp4Result . isAndroid ( ) ) {
2026-07-23 10:11:24 +00:00
if ( ! c21 ) {
2026-07-29 08:29:29 +00:00
if ( obj8 . currentState === constants . ACTIVE ) {
2026-07-23 10:11:24 +00:00
c21 = true ;
2026-08-12 06:57:52 +00:00
tmp ( tmp2 [ 15 ] ) ( "trackAppOpened" , ( ) = > callback ( handleNotification [ 29 ] ) ) . trackAppOpened ( "launcher" ) ;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
tmp4Result = tmp4 ( tmp2 [ 23 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const listener3 = obj8 . addEventListener ( "change" , ( arg0 ) = > {
2026-07-20 16:05:17 +00:00
const appStateChangeStart = arr ( handleNotification [ 12 ] ) . imports . appStateChangeStart ;
appStateChangeStart . record ( ) ;
2026-08-24 06:08:38 +00:00
obj = arr ( handleNotification [ 24 ] ) ;
2026-07-20 16:05:17 +00:00
obj . resumeTracing ( ) ;
2026-07-29 08:29:29 +00:00
obj = { message : "App state changed to " + arg0 , category : "appState" } ;
2026-08-12 06:57:52 +00:00
arr ( handleNotification [ 30 ] ) . addBreadcrumb ( obj ) ;
2026-07-29 08:29:29 +00:00
arr ( handleNotification [ 15 ] ) ( "handleAppStateChange" , ( ) = > callback ( table [ 28 ] ) ) . default ( arg0 ) ;
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-08-24 06:08:38 +00:00
closure_2 = [ ] ;
2026-08-12 06:57:52 +00:00
let tmpResult = tmp ( tmp2 [ 33 ] ) ;
2026-07-29 08:29:29 +00:00
const result3 = tmpResult . addNotificationEventListener ( "notification" , ( arg0 ) = > {
2026-08-24 06:08:38 +00:00
const state = closure_1_13 . getState ( ) ;
closure_1_20 . log ( "Push notification received, the app state is " + state ) ;
if ( state !== closure_1_14 . ACTIVE ) {
2026-07-29 08:29:29 +00:00
if ( c0 ) {
2026-08-12 06:57:52 +00:00
arr ( handleNotification [ 15 ] ) ( "receiveNotification" , ( ) = > callback ( table [ 31 ] ) ) . default ( arg0 , false ) ;
2026-07-29 08:29:29 +00:00
arr ( handleNotification [ 12 ] ) . extraProperties . tapped_notification = true ;
} else {
arr = arr . push ( arg0 ) ;
}
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-08-12 06:57:52 +00:00
tmpResult = tmp ( tmp2 [ 33 ] ) ;
2026-07-29 08:29:29 +00:00
const result4 = tmpResult . addNotificationEventListener ( "localNotification" , handleLocalNotification ) ;
2026-07-20 16:05:17 +00:00
obj = {
2026-07-29 08:29:29 +00:00
onStorageInitialize ( arg0 ) {
2026-08-24 06:08:38 +00:00
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() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = callback ( function * ( ) {
if ( c6 === 2 ) {
c6 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp4 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
2026-08-24 06:08:38 +00:00
obj = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-09-01 10:26:29 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2 ;
if ( 0 === c5 ) {
if ( arg0 === 1 ) {
c6 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c6 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp2 ;
const Storage2 = closure_1_0 ( closure_1_3 [ 34 ] ) . Storage ;
if ( Storage2 . get ( closure_1_15 . APP_FIRST_LAUNCHED , true ) ) {
const tmp18 = closure_1_1 ( closure_1_3 [ 35 ] ) ;
2026-07-29 08:29:29 +00:00
const table = tmp18 ;
const track = tmp18 . track ;
2026-08-24 06:08:38 +00:00
const APP_FIRST_LAUNCHED = closure_1_15 . APP_FIRST_LAUNCHED ;
obj1 = { } ;
let obj2 = closure_1_0 ( closure_1_3 [ 23 ] ) ;
2026-07-29 08:29:29 +00:00
if ( obj2 . isAndroid ( ) ) {
let IOS = tmp22 . ANDROID ;
} else {
IOS = tmp22 . IOS ;
}
obj1 . platform = IOS ;
2026-08-24 06:08:38 +00:00
const InstallReferrer = closure_1_10 . InstallReferrer ;
2026-07-29 08:29:29 +00:00
let value ;
if ( InstallReferrer != null ) {
value = InstallReferrer . get ( ) ;
}
c5 = 1 ;
c6 = 1 ;
obj2 = { value : null , done : false } ;
obj2 [ 0 ] = value ;
return obj2 ;
} else {
c6 = 3 ;
}
}
} else if ( arg0 === 1 ) {
c6 = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
obj1 . referrer = arg1 ;
track ( APP_FIRST_LAUNCHED , obj1 ) ;
2026-08-12 06:57:52 +00:00
const Storage = obj1 ( table [ 34 ] ) . Storage ;
2026-07-29 08:29:29 +00:00
const result = Storage . set ( constants . APP_FIRST_LAUNCHED , false ) ;
}
c6 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} catch ( tmp26 ) {
c6 = tmp ;
throw tmp26 ;
}
}
} ) ;
2026-08-24 06:08:38 +00:00
closure_27 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function loadStorage() {
2026-07-29 08:29:29 +00:00
const self = this ;
const apply = _loadStorage . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function _loadStorage() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = callback ( function * ( ) {
2026-08-04 21:03:28 +00:00
let callback = tmp3 ;
2026-08-24 06:08:38 +00:00
dependencyMap = 1 ;
const loadStorage2 = closure_1_1 ( 9 ) . loadStorage ;
2026-08-04 21:03:28 +00:00
loadStorage2 . recordStart ( ) ;
2026-09-05 10:56:28 +00:00
let Storage = closure_1_0 ( 510 ) . Storage ;
2026-08-24 06:08:38 +00:00
yield Storage . refresh ( [ ] , closure_1_18 ) ;
2026-08-04 21:03:28 +00:00
if ( 1 === tmp7 ) {
dependencyMap = 0 ;
callback = closure_2 ;
logger . error ( "Unable to load Storage" , callback ) ;
2026-08-24 06:08:38 +00:00
c5 = 3 ;
2026-08-04 21:03:28 +00:00
} else if ( arg0 === 1 ) {
2026-07-29 08:29:29 +00:00
c5 = 3 ;
2026-08-04 21:03:28 +00:00
throw arg1 ;
} else if ( arg0 !== 2 ) {
2026-08-24 06:08:38 +00:00
closure_0 = arg1 ;
loadStorage = callback ( 9 ) . loadStorage ;
2026-08-04 21:03:28 +00:00
loadStorage . recordEnd ( ) ;
const parseStorage = callback ( 9 ) . parseStorage ;
parseStorage . measureAsync ( ( ) = > {
2026-08-12 06:57:52 +00:00
const Storage = callback ( table [ 34 ] ) . Storage ;
2026-08-04 21:03:28 +00:00
return Storage . parse ( callback ) ;
} ) ;
dependencyMap = 0 ;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
dependencyMap = 0 ;
return arg1 ;
2026-07-29 08:29:29 +00:00
} ) ;
2026-08-24 06:08:38 +00:00
closure_29 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function loadKvStorage() {
2026-07-29 08:29:29 +00:00
try {
2026-08-24 06:08:38 +00:00
databaseNameDefault . initialize ( ) ;
2026-07-29 08:29:29 +00:00
return Promise . resolve ( ) ;
} catch ( tmp4 ) {
2026-08-24 06:08:38 +00:00
closure_20 . warn ( "DatabaseManager.initialize errored." , tmp4 ) ;
2026-09-05 10:56:28 +00:00
_modDef1232 . captureException ( tmp4 ) ;
const obj2 = _modDef1232 ;
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
}
function initializeIntl() {
2026-07-29 08:29:29 +00:00
const self = this ;
const apply = _initializeIntl . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function _initializeIntl() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = callback ( ( arg0 ) = > {
2026-08-24 06:08:38 +00:00
closure_0 = arg0 ;
c3 = 0 ;
c4 = 0 ;
2026-07-29 08:29:29 +00:00
const iter = ( function * ( arg0 ) {
if ( c4 === 2 ) {
c4 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp4 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
2026-08-24 06:08:38 +00:00
obj = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-09-01 10:26:29 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c4 = 2 ;
if ( 0 === paths ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp2 ;
2026-07-29 08:29:29 +00:00
let callback = tmp5 ;
let log ;
log = log . log ;
callback = undefined ;
paths = 1 ;
c4 = 1 ;
2026-09-02 09:53:35 +00:00
return { value : "PX_16" , done : true } ;
2026-07-29 08:29:29 +00:00
}
} else if ( 1 === tmp5 ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = arg1 ;
return obj1 ;
} else {
paths = 2 ;
c4 = 1 ;
const obj2 = { value : null , done : false } ;
2026-08-12 06:57:52 +00:00
obj2 [ 0 ] = log ( paths [ 39 ] ) . preloadAllIntlMessageFiles ( ) ;
2026-07-29 08:29:29 +00:00
return obj2 ;
}
} else if ( 2 === tmp5 ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
let obj3 = { value : null , done : true } ;
obj3 [ 0 ] = arg1 ;
return obj3 ;
} else {
2026-08-12 06:57:52 +00:00
let obj6 = log ( paths [ 40 ] ) ;
2026-07-29 08:29:29 +00:00
paths = 3 ;
c4 = 1 ;
const obj4 = { value : null , done : false } ;
obj4 [ 0 ] = obj6 . waitForAllDefaultIntlMessagesLoaded ( ) ;
return obj4 ;
}
} else if ( 3 === tmp5 ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
const obj5 = { value : null , done : true } ;
obj5 [ 0 ] = arg1 ;
return obj5 ;
} else {
if ( log ) {
obj3 = callback ( paths [ 24 ] ) ;
obj3 . markAndLog ( closure_20 , "\u{1F30E}" , "i18n loaded" ) ;
}
paths = 4 ;
c4 = 1 ;
obj6 = { value : null , done : false } ;
2026-08-12 06:57:52 +00:00
obj6 [ 0 ] = log ( paths [ 42 ] ) ( paths [ 41 ] , paths . paths ) ;
2026-07-29 08:29:29 +00:00
return obj6 ;
}
} else if ( 4 === tmp5 ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
const obj7 = { value : null , done : true } ;
obj7 [ 0 ] = arg1 ;
return obj7 ;
} else {
callback = arg1 . default ;
paths = 5 ;
c4 = 1 ;
const obj8 = { value : null , done : false } ;
obj8 [ 0 ] = callback ( ) ;
return obj8 ;
}
} else if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
callback2 ( ( ) = > callback ( ) ) ;
c4 = 3 ;
2026-09-01 10:26:29 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} catch ( tmp29 ) {
c4 = tmp ;
throw tmp29 ;
}
}
} ) ( ) ;
iter . next ( ) ;
return iter ;
} ) ;
2026-08-24 06:08:38 +00:00
closure_36 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function _init ( _payload ) {
2026-07-29 08:29:29 +00:00
let self = this ;
const tmp = callback ( function * ( ) {
if ( c3 === 2 ) {
c3 = 3 ;
let throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
} else {
throwTypeErrorResult = arg1 ;
throwTypeErrorResult = arg0 ;
throwTypeErrorResult = tmp4 ;
if ( tmp5 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
2026-08-24 06:08:38 +00:00
obj = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-09-01 10:26:29 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c3 = 2 ;
let num2 = 0 ;
if ( 0 === v0 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let onStorageInitialize = tmp3 ;
let callback = tmp2 ;
callback = undefined ;
onStorageInitialize = undefined ;
v0 = undefined ;
c3 = undefined ;
let lib ;
2026-08-24 06:08:38 +00:00
closure_5 = undefined ;
c6 = undefined ;
2026-07-29 08:29:29 +00:00
let resolved ;
2026-08-24 06:08:38 +00:00
c8 = undefined ;
c9 = undefined ;
c10 = undefined ;
c11 = undefined ;
closure_13 = undefined ;
closure_14 = undefined ;
dependencyMap = undefined ;
closure_16 = undefined ;
closure_17 = undefined ;
closure_18 = undefined ;
closure_19 = undefined ;
throwTypeErrorResult = Full ;
throwTypeErrorResult = closure_1_33 ;
if ( Full !== closure_1_33 . Full ) {
throwTypeErrorResult = Full ;
throwTypeErrorResult = Full === throwTypeErrorResult . HeadlessRan ;
2026-07-29 08:29:29 +00:00
callback = throwTypeErrorResult ;
2026-08-24 06:08:38 +00:00
Full = throwTypeErrorResult . Full ;
2026-07-29 08:29:29 +00:00
onStorageInitialize = throwTypeErrorResult ;
if ( ! throwTypeErrorResult ) {
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_26 ;
onStorageInitialize = closure_1_26 ( ) . onStorageInitialize ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
throwTypeErrorResult = closure_1_0 ( 1115 ) . isAndroid ( ) ;
let _Promise6 = closure_1_0 ( 8332 ) ;
2026-07-29 08:29:29 +00:00
if ( throwTypeErrorResult ) {
throwTypeErrorResult = _Promise6 . unlockOrientation ( { unlockAfterRotatingToPreviousLock : false } ) ;
} else {
throwTypeErrorResult = _Promise6 . lockOrientationForiOS ( ) ;
}
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_1 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_6 ;
throwTypeErrorResult = closure_1_14 ;
closure_1_1 ( 9 ) . didBackgroundApp = closure_6 . currentState === closure_1_14 . BACKGROUND ;
throwTypeErrorResult = closure_1_1 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-08-24 06:08:38 +00:00
const loadStorageStart = closure_1_1 ( 9 ) . imports . loadStorageStart ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = loadStorageStart . record ( ) ;
throwTypeErrorResult = globalThis ;
_Promise6 = Promise ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_23 ;
const items = [ closure_1_23 ( ) , , , , ] ;
throwTypeErrorResult = closure_1_1 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
const obj14 = closure_1_0 ( 1115 ) ;
2026-09-07 16:44:02 +00:00
const initialNotification = closure_1_1 ( 9692 ) . getInitialNotification ( ) ;
2026-07-29 08:29:29 +00:00
items [ 1 ] = initialNotification . catch ( ( ) = > null ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_28 ;
items [ 2 ] = closure_1_28 ( ) ;
throwTypeErrorResult = closure_1_30 ;
items [ 3 ] = closure_1_30 ( ) ;
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
num2 = closure_1_0 ( 1896 ) ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
const obj15 = closure_1_1 ( 9692 ) ;
throwTypeErrorResult = num2 ( 17908 , c3 . paths ) . then ( ( arg0 ) = > arg0 . default ( ) ) ;
2026-07-29 08:29:29 +00:00
items [ 4 ] = throwTypeErrorResult ;
throwTypeErrorResult = Promise . all ( items ) ;
v0 = 1 ;
c3 = 1 ;
2026-09-07 16:44:02 +00:00
const num2Result = num2 ( 17908 , c3 . paths ) ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_1 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
throwTypeErrorResult = closure_1_1 ( 1232 ) . addBreadcrumb ( { message : "Init called when already initialized" } ) ;
2026-07-29 08:29:29 +00:00
c3 = 3 ;
2026-09-05 10:56:28 +00:00
const obj13 = closure_1_1 ( 1232 ) ;
2026-07-29 08:29:29 +00:00
}
}
} else {
if ( 1 === tmp6 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = arg1 ;
return obj1 ;
} else {
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
v0 = arg1 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = v0 ;
c3 = lib ( v0 , 2 ) ;
throwTypeErrorResult = c3 ;
lib = 32 ;
throwTypeErrorResult = c3 ;
closure_5 = 5 ;
throwTypeErrorResult = onStorageInitialize ;
throwTypeErrorResult = c3 ;
const loadStorageEnd = onStorageInitialize ( 9 ) . imports . loadStorageEnd ;
throwTypeErrorResult = loadStorageEnd . record ( ) ;
throwTypeErrorResult = callback ;
throwTypeErrorResult = c3 ;
2026-08-08 06:10:11 +00:00
if ( obj18 . isAndroid ( ) ) {
2026-09-07 16:44:02 +00:00
if ( callback ( 14393 ) . isTTITest ) {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
closure_6 = closure_1_0 ( 7674 ) . default ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_6 ;
2026-07-29 08:29:29 +00:00
v0 = 2 ;
c3 = 1 ;
let obj2 = { value : null , done : false } ;
2026-08-24 06:08:38 +00:00
obj2 [ 0 ] = closure_6 . yieldConfig ( ) ;
2026-07-29 08:29:29 +00:00
return obj2 ;
}
}
2026-09-05 10:56:28 +00:00
obj18 = callback ( 1115 ) ;
2026-07-29 08:29:29 +00:00
}
} else if ( 2 === tmp6 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
let obj3 = { value : null , done : true } ;
obj3 [ 0 ] = arg1 ;
return obj3 ;
}
} else if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
closure_14 = arg1 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure_14 ;
dependencyMap = lib ( closure_14 , 5 ) ;
throwTypeErrorResult = dependencyMap ;
throwTypeErrorResult = 32 ;
throwTypeErrorResult = dependencyMap ;
closure_16 = 5 . default ;
throwTypeErrorResult = dependencyMap ;
2026-09-07 16:44:02 +00:00
closure_17 = 17232 . default ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = dependencyMap ;
2026-09-07 16:44:02 +00:00
closure_18 = 17282 . default ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = dependencyMap ;
closure_19 = 17 ;
throwTypeErrorResult = closure_16 ;
throwTypeErrorResult = closure_16 . registerNotificationCategories ( ) ;
throwTypeErrorResult = closure_16 ;
throwTypeErrorResult = closure_16 . registerListener ( ) ;
throwTypeErrorResult = closure_17 ;
throwTypeErrorResult = closure_17 . loadServer ( ) ;
throwTypeErrorResult = closure_18 ;
throwTypeErrorResult = closure_18 . addChangeListener ( ( ) = > {
2026-08-12 06:57:52 +00:00
const result = onStorageInitialize ( paths [ 33 ] ) . setApplicationIconBadgeNumber ( totalMentionCount . getTotalMentionCount ( ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
throwTypeErrorResult = callback ;
if ( ! callback ) {
closure_19 . init ( ) ;
}
2026-09-05 10:56:28 +00:00
callback ( 6655 ) ;
obj = callback ( 7461 ) ;
2026-07-29 08:29:29 +00:00
const sessionHeartbeatScheduler = obj . initSessionHeartbeatScheduler ( ) ;
}
if ( callback ) {
resolved = Promise . resolve ( ) ;
} else {
2026-08-24 06:08:38 +00:00
resolved = callback3 ( { log : true } ) ;
2026-07-29 08:29:29 +00:00
}
obj3 = onStorageInitialize ( 10 ) ;
obj3 . markAndLog ( logger , "\u{1F3C3}" , "The initial promise has resolved" ) ;
let tmp34 = null != lib ;
if ( tmp34 ) {
tmp34 = lib . length > num2 ;
}
if ( tmp34 ) {
logger . log ( "initialURLs" , lib ) ;
}
if ( null != closure_5 ) {
logger . log ( "initialNotification" , closure_5 ) ;
}
2026-09-05 10:56:28 +00:00
const Storage = callback ( 510 ) . Storage ;
2026-07-29 08:29:29 +00:00
if ( null == Storage . get ( closure_16 ) ) {
2026-09-05 10:56:28 +00:00
const Storage2 = callback ( 510 ) . Storage ;
2026-07-29 08:29:29 +00:00
const _Date = Date ;
let result = Storage2 . set ( closure_16 , Date . now ( ) ) ;
}
( function trackFirstLaunched() {
const self = this ;
const apply = closure_27 . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
} ) ( ) ;
if ( ! callback ) {
2026-08-24 06:08:38 +00:00
closure_1_40 ( ) ;
2026-07-29 08:29:29 +00:00
if ( onStorageInitialize != null ) {
onStorageInitialize ( ) ;
}
}
2026-09-05 10:56:28 +00:00
closure_1_1 ( 7492 ) ( "DispatcherBridge" , ( ) = > {
2026-08-12 06:57:52 +00:00
_undefined ( paths [ 47 ] ) ;
2026-07-29 08:29:29 +00:00
} ) ;
if ( callback ) {
2026-08-24 06:08:38 +00:00
let obj5 = closure_1_1 ( 10 ) ;
obj5 . markAndLog ( closure_1_20 , "\u{1F3C3}" , "Flux already initialized." ) ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
let obj4 = closure_1_1 ( 10 ) ;
2026-07-29 08:29:29 +00:00
obj4 . time ( "\u{1F3C3}" , "Flux.initialize()" , ( ) = > {
onStorageInitialize ( paths [ 18 ] ) . initialize ( ) ;
closure_20 . verbose ( "Flux has initialized" ) ;
} ) ;
}
2026-09-07 16:44:02 +00:00
closure_1_1 ( 17927 ) ( ) ;
const result1 = closure_1_0 ( 17928 ) . setupLibdiscoreTimersMonitor ( ) ;
2026-08-24 06:08:38 +00:00
const item = closure_1_4 . forEach ( ( url ) = > {
2026-07-29 08:29:29 +00:00
url = url . url ;
onStorageInitialize ( paths [ 15 ] ) ( "handleURL" , ( ) = > callback ( table [ 16 ] ) ) . default ( url , true ) ;
} ) ;
2026-08-24 06:08:38 +00:00
closure_8 = false ;
if ( null != closure_1_5 ) {
2026-09-05 10:56:28 +00:00
const callback2 = closure_1_1 ( 7492 ) ( "receiveNotification" , ( ) = > _undefined ( paths [ 31 ] ) ) . default ;
2026-08-24 06:08:38 +00:00
closure_1_1 ( 9 ) . extraProperties . tapped_notification = true ;
throwTypeErrorResult = callback2 ;
throwTypeErrorResult = closure_1_5 ;
closure_8 = callback2 ( closure_1_5 , true ) ;
2026-07-29 08:29:29 +00:00
}
throwTypeErrorResult = callback ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_8 ;
if ( ! closure_8 ) {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = onStorageInitialize ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = _null ;
const channelId = _null . getChannelId ( ) ;
throwTypeErrorResult = channelId ;
if ( null != channelId ) {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
throwTypeErrorResult = onStorageInitialize ;
throwTypeErrorResult = c3 ;
obj4 = { channelId : null , isPreload : true , skipLocalFetch : true , fetchKey : null } ;
throwTypeErrorResult = c10 ;
obj4 [ 0 ] = c10 ;
throwTypeErrorResult = callback ;
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
obj4 [ 3 ] = callback ( 7488 ) . INITIAL_MESSAGE_FETCH_KEY ;
2026-09-07 16:44:02 +00:00
throwTypeErrorResult = onStorageInitialize ( 9946 ) . fetchMessages ( obj4 ) ;
const obj8 = onStorageInitialize ( 9946 ) ;
2026-07-29 08:29:29 +00:00
}
}
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_1 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-08-24 06:08:38 +00:00
const loadMiniCacheStart = closure_1_1 ( 9 ) . imports . loadMiniCacheStart ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = loadMiniCacheStart . record ( ) ;
let items2 = globalThis ;
throwTypeErrorResult = new . target ;
throwTypeErrorResult = new . target ;
throwTypeErrorResult = new Promise ( ( arg0 ) = > {
const _undefined = arg0 ;
2026-08-24 06:08:38 +00:00
_undefined ( paths [ 42 ] ) ( paths [ 52 ] , paths . paths ) . then ( ( arg0 ) = > arg0 . default . loadCacheAsync ( closure_1_4 ( callback ( closure_1_3 [ 53 ] ) . computeInitialNavigationState ( ) , 1 ) [ 0 ] , ( ) = > {
2026-08-31 15:47:37 +00:00
closure_1_0 ( closure_1_3 [ 56 ] ) . updateSaturation ( closure_1_0 ( closure_1_3 [ 55 ] ) . default . saturation ) ;
obj = closure_1_0 ( closure_1_3 [ 56 ] ) ;
closure_1_0 ( closure_1_3 [ 57 ] ) . updateVisualRefresh ( true ) ;
const obj2 = closure_1_0 ( closure_1_3 [ 57 ] ) ;
closure_1_0 ( closure_1_3 [ 58 ] ) . updateTheme ( closure_1_0 ( closure_1_3 [ 54 ] ) . default . theme ) ;
2026-07-29 08:29:29 +00:00
callback ( ) ;
} ) ) ;
} ) ;
2026-08-24 06:08:38 +00:00
_null = null ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = v0 ;
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
const obj7 = closure_1_0 ( 17928 ) ;
2026-08-08 06:10:11 +00:00
if ( null != obj10 . getToken ( ) ) {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = callback ;
items2 . Promise . resolve ( ) ;
const _Promise3 = items2 . Promise ;
} else {
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
closure_13 = closure_1_0 ( 14194 ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_13 ;
throwTypeErrorResult = closure_13 . beginLoadedExperimentsTimeout ( ) ;
throwTypeErrorResult = closure_13 ;
closure_13 . getPromise ( ) ;
2026-07-29 08:29:29 +00:00
}
throwTypeErrorResult = callback ;
throwTypeErrorResult = onStorageInitialize ;
2026-08-24 06:08:38 +00:00
const items1 = [ throwTypeErrorResult , ] ;
throwTypeErrorResult = _null ;
items1 [ 1 ] = _null ;
2026-07-29 08:29:29 +00:00
const _Promise4 = items2 . Promise ;
2026-09-05 10:56:28 +00:00
obj10 = v0 ( 1099 ) ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = items2 . Promise . all ( items1 ) . then ( ( ) = > {
closure_32 . resolve ( ) ;
} ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
items2 = [ closure_1_0 ( 1896 ) ( 7459 , c3 . paths ) , , , , , ] ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
items2 [ 1 ] = closure_1_0 ( 1896 ) ( 14446 , c3 . paths ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
items2 [ 2 ] = closure_1_0 ( 1896 ) ( 14460 , c3 . paths ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-05 10:56:28 +00:00
items2 [ 3 ] = closure_1_0 ( 1896 ) ( 7636 , c3 . paths ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_0 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
throwTypeErrorResult = c3 ;
2026-09-07 16:44:02 +00:00
items2 [ 4 ] = closure_1_0 ( 1896 ) ( 17929 , c3 . paths ) ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure_1_7 ;
items2 [ 5 ] = closure_1_7 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = items2 . Promise . all ( items2 ) ;
v0 = 3 ;
c3 = 1 ;
const _Promise5 = items2 . Promise ;
const allResult = items2 . Promise . all ( items1 ) ;
}
c3 = 3 ;
obj5 = { value : null , done : true } ;
obj5 [ 0 ] = arg1 ;
return obj5 ;
} catch ( throwTypeErrorResult ) {
c3 = throwTypeErrorResult ;
throw throwTypeErrorResult ;
}
}
}
} ) ;
2026-08-24 06:08:38 +00:00
closure_38 = tmp ;
2026-07-29 08:29:29 +00:00
let apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function _initHeadlessTask() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = callback ( function * ( ) {
if ( c3 === 2 ) {
c3 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp5 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
2026-08-24 06:08:38 +00:00
obj = { value : null , done : true } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-09-01 10:26:29 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c3 = 2 ;
if ( 0 === c2 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let callback = tmp3 ;
let onStorageInitialize = tmp2 ;
onStorageInitialize = undefined ;
callback = undefined ;
2026-08-24 06:08:38 +00:00
if ( HeadlessRan === closure_1_33 . None ) {
HeadlessRan = closure_1_33 . HeadlessRan ;
onStorageInitialize = closure_1_26 ( ) . onStorageInitialize ;
const items = [ closure_1_28 ( ) , closure_1_30 ( ) , closure_1_35 ( { log : false } ) ] ;
2026-07-29 08:29:29 +00:00
c2 = 1 ;
c3 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = Promise . all ( items ) ;
return obj1 ;
} else {
c3 = 3 ;
}
}
} else if ( 1 === tmp6 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
const obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
} else {
callback3 ( ) ;
onStorageInitialize ( ) ;
2026-08-31 15:47:37 +00:00
onStorageInitialize ( c3 [ 68 ] ) ;
2026-08-12 06:57:52 +00:00
onStorageInitialize ( c3 [ 47 ] ) ;
2026-07-29 08:29:29 +00:00
callback ( c3 [ 18 ] ) . initialize ( ) ;
const obj8 = callback ( c3 [ 18 ] ) ;
2026-08-12 06:57:52 +00:00
onStorageInitialize ( c3 [ 42 ] ) ( c3 [ 52 ] , c3 . paths ) . then ( ( arg0 ) = > {
2026-07-29 08:29:29 +00:00
const cacheAsync = arg0 . default . loadCacheAsync ( { page : "other" } , ( ) = > {
closure_32 . resolve ( ) ;
} ) ;
} ) ;
2026-08-31 15:47:37 +00:00
const items1 = [ onStorageInitialize ( c3 [ 42 ] ) ( c3 [ 65 ] , c3 . paths ) ] ;
2026-07-29 08:29:29 +00:00
c2 = 2 ;
c3 = 1 ;
const obj3 = { value : null , done : false } ;
obj3 [ 0 ] = Promise . all ( items1 ) ;
return obj3 ;
}
} else if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
callback = arg1 ;
const first = callback2 ( callback , 1 ) [ 0 ] ;
first . init ( ) ;
2026-08-12 06:57:52 +00:00
callback ( c3 [ 48 ] ) ( ) ;
2026-07-29 08:29:29 +00:00
}
c3 = 3 ;
const obj4 = { value : null , done : true } ;
obj4 [ 0 ] = arg1 ;
return obj4 ;
} catch ( tmp20 ) {
c3 = tmp ;
throw tmp20 ;
}
}
} ) ;
2026-08-24 06:08:38 +00:00
closure_39 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
function initializeTokenStorage() {
2026-08-24 06:08:38 +00:00
const Storage = Storage4 . Storage ;
2026-07-20 16:05:17 +00:00
if ( null == Storage . get ( closure_17 ) ) {
2026-09-02 09:53:35 +00:00
const token = enforcingDefault . getConstants ( ) . token ;
2026-07-20 16:05:17 +00:00
if ( null != token ) {
2026-08-24 06:08:38 +00:00
closure_20 . log ( "Applying token storage fix." ) ;
2026-09-05 10:56:28 +00:00
const Storage2 = tmp ( 510 ) . Storage ;
2026-07-29 08:29:29 +00:00
const result = Storage2 . set ( tmp3 , token ) ;
2026-08-24 06:08:38 +00:00
obj = closure_20 ;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
closure_20 . log ( "Cannot apply token storage fix as token not in NSUserDefaults." ) ;
obj = closure_20 ;
2026-07-20 16:05:17 +00:00
}
2026-09-02 09:53:35 +00:00
const obj2 = enforcingDefault ;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
obj = closure_20 ;
closure_20 . verbose ( "No need to apply token storage fix as token already exists." ) ;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
setSecondaryTokenAll . init ( ) ;
2026-09-02 09:53:35 +00:00
const obj3 = setSecondaryTokenAll ;
2026-08-24 06:08:38 +00:00
const obj4 = setSecondaryTokenAll ;
2026-09-05 10:56:28 +00:00
const Storage3 = tmp ( 510 ) . Storage ;
2026-08-24 06:08:38 +00:00
obj = { storageHasToken : null != Storage3 . get ( tmp3 ) , tokenManagerHasToken : null != setSecondaryTokenAll . getToken ( ) } ;
2026-07-29 08:29:29 +00:00
obj . verbose ( "Token manager has initialized" , obj ) ;
2026-07-23 10:11:24 +00:00
callback2 ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
( { AppState : closure_6 , NativeEventEmitter : error , Linking : closure_8 , LogBox : c9 , NativeModules : c10 } = get_ActivityIndicator ) ;
2026-07-23 10:11:24 +00:00
( { 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-08-24 06:08:38 +00:00
const loadImports = serializeDefault . loadImports ;
2026-07-20 16:05:17 +00:00
loadImports . recordEnd ( ) ;
2026-08-24 06:08:38 +00:00
let closure_20 = new timestampDefault ( "index.native.tsx" ) ;
2026-07-23 10:11:24 +00:00
let c21 = false ;
2026-07-29 08:29:29 +00:00
let c25 = null ;
2026-07-23 10:11:24 +00:00
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-08-24 06:08:38 +00:00
closure_31 = arg0 ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-08-24 06:08:38 +00:00
const loadIndex = serializeDefault . loadIndex ;
2026-07-20 16:05:17 +00:00
loadIndex . recordEnd ( ) ;
2026-08-24 06:08:38 +00:00
const tmp10 = new timestampDefault ( "index.native.tsx" ) ;
result = require ( "set" ) . fileFinishedImporting ( "modules/app_startup/native/NativeAppStartup.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const applicationReady = future ;
export const init = function init() {
2026-07-29 08:29:29 +00:00
const self = this ;
const apply = _init . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
} ;
export const initHeadlessTask = function initHeadlessTask() {
2026-07-29 08:29:29 +00:00
const self = this ;
const apply = _initHeadlessTask . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
} ;