2026-07-20 16:05:17 +00:00
// Module ID: 977
2026-07-25 08:10:48 +00:00
// Function ID: 10512
2026-07-20 16:05:17 +00:00
// Name: getRNSentryModule
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 27, 978, 973, 980, 794, 989, 983, 990]
2026-07-20 16:05:17 +00:00
// Exports: getDataFromUri, getRNSentryModule
// Module 977 (getRNSentryModule)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray" ;
import get _ActivityIndicator from "get ActivityIndicator" ;
import encodeUTF8 from "encodeUTF8" ;
2026-07-20 16:05:17 +00:00
let Platform ;
2026-07-23 10:11:24 +00:00
let closure _3 ;
let self = this ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function getRNSentryModule ( ) {
if ( obj . isTurboModuleEnabled ( ) ) {
2026-07-23 10:11:24 +00:00
const TurboModuleRegistry = require ( 973 ) /* reactNativeVersion */ . ReactNativeLibraries . TurboModuleRegistry ;
2026-07-20 16:05:17 +00:00
let value ;
if ( null !== TurboModuleRegistry ) {
if ( undefined !== TurboModuleRegistry ) {
value = TurboModuleRegistry . get ( "RNSentry" ) ;
}
}
let RNSentry = value ;
} else {
RNSentry = RNSentry . RNSentry ;
}
return RNSentry ;
}
2026-07-23 10:11:24 +00:00
( { NativeModules : closure _3 , Platform } = get _ActivityIndicator ) ;
2026-07-20 16:05:17 +00:00
let fn = this ;
if ( this ) {
fn = self . _ _awaiter ;
}
if ( ! fn ) {
fn = ( arg0 , arg1 , arg2 , arg3 ) => {
let _Promise = arg2 ;
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
let closure _3 = arg3 ;
2026-07-20 16:05:17 +00:00
if ( ! arg2 ) {
_Promise = Promise ;
}
_Promise = new _Promise ( ( arg0 , arg1 ) => {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
2026-07-20 16:05:17 +00:00
function fulfilled ( arg0 ) {
step ( iter . next ( arg0 ) ) ;
}
2026-07-23 10:11:24 +00:00
let iter = function rejected ( arg0 ) {
2026-07-20 16:05:17 +00:00
step ( iter . throw ( arg0 ) ) ;
} ;
function step ( iter ) {
if ( iter . done ) {
2026-07-23 10:11:24 +00:00
callback ( iter . value ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
( function adopt ( value ) {
2026-07-20 16:05:17 +00:00
let tmp = value ;
2026-07-23 10:11:24 +00:00
let closure _0 = value ;
if ( ! ( value instanceof fulfilled ) ) {
const prototype = fulfilled . prototype ;
tmp = new fulfilled ( ( arg0 ) => {
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( iter . value ) . then ( fulfilled , iter ) ;
const promise = ( function adopt ( value ) {
2026-07-20 16:05:17 +00:00
let tmp = value ;
2026-07-23 10:11:24 +00:00
let closure _0 = value ;
if ( ! ( value instanceof fulfilled ) ) {
const prototype = fulfilled . prototype ;
tmp = new fulfilled ( ( arg0 ) => {
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( iter . value ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let items = closure _1 ;
if ( ! closure _1 ) {
2026-07-20 16:05:17 +00:00
items = [ ] ;
}
2026-07-23 10:11:24 +00:00
iter = iter . apply ( closure _0 , items ) ;
2026-07-20 16:05:17 +00:00
step ( iter . next ( ) ) ;
} ) ;
return _Promise ;
} ;
}
let fn2 = self ;
if ( self ) {
fn2 = self . _ _rest ;
}
if ( ! fn2 ) {
fn2 = ( obj , arr ) => {
obj = { } ;
for ( const key10007 in arg0 ) {
let tmp3 = key10007 ;
let _Object3 = Object ;
let callResult = hasOwnProperty . call ( arg0 , key10007 ) ;
if ( callResult ) {
callResult = arg1 . indexOf ( key10007 ) < 0 ;
}
if ( ! callResult ) {
continue ;
} else {
obj [ key10007 ] = arg0 [ key10007 ] ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
if ( null != obj ) {
const _Object4 = Object ;
if ( "function" === typeof Object . getOwnPropertySymbols ) {
const _Object = Object ;
const ownPropertySymbols = Object . getOwnPropertySymbols ( obj ) ;
for ( let num = 0 ; num < ownPropertySymbols . length ; num = num + 1 ) {
let callResult1 = arr . indexOf ( ownPropertySymbols [ num ] ) < 0 ;
if ( callResult1 ) {
let _Object2 = Object ;
callResult1 = propertyIsEnumerable . call ( obj , ownPropertySymbols [ num ] ) ;
}
if ( callResult1 ) {
obj [ ownPropertySymbols [ num ] ] = obj [ ownPropertySymbols [ num ] ] ;
}
}
}
}
return obj ;
} ;
}
let closure _6 = getRNSentryModule ( ) ;
2026-07-23 10:11:24 +00:00
let closure _7 = encodeUTF8 . encodeUTF8 ( "\n" ) ;
encodeUTF8 = {
2026-07-20 16:05:17 +00:00
fetchModules ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp3 = yield outer2 _6 . fetchModules ( ) ;
2026-07-20 16:05:17 +00:00
let parsed = null ;
if ( tmp3 ) {
const _JSON = JSON ;
parsed = JSON . parse ( tmp3 ) ;
}
return parsed ;
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
sendEnvelope ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
let tmp63 ;
let tmp64 ;
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp7 = outer2 _2 ( outer1 _0 , 2 ) ;
2026-07-20 16:05:17 +00:00
const _JSON = JSON ;
const json = JSON . stringify ( tmp7 [ 0 ] ) ;
2026-07-23 10:11:24 +00:00
let obj = callback ( outer2 _1 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
const encodeUTF8Result = obj . encodeUTF8 ( json ) ;
const _Uint8Array = Uint8Array ;
2026-07-23 10:11:24 +00:00
const uint8Array = new Uint8Array ( encodeUTF8Result . length + outer2 _7 . length ) ;
2026-07-20 16:05:17 +00:00
let arr2 = uint8Array ;
const result = uint8Array . set ( encodeUTF8Result ) ;
2026-07-23 10:11:24 +00:00
const result1 = uint8Array . set ( outer2 _7 , encodeUTF8Result . length ) ;
2026-07-20 16:05:17 +00:00
let flag = false ;
const tmp21 = tmp7 [ 1 ] [ Symbol . iterator ] ( ) ;
while ( tmp21 !== undefined ) {
2026-07-23 10:11:24 +00:00
let tmp61 = outer2 _2 ;
let tmp62 = outer2 _2 ( self . _processItem ( tmp22 ) , 2 ) ;
2026-07-20 16:05:17 +00:00
[ tmp63 , tmp64 ] = tmp62 ;
let tmp65 = tmp64 ;
if ( "string" === typeof tmp64 ) {
let str7 = "text/plain" ;
let tmp33 = callback ;
2026-07-23 10:11:24 +00:00
let tmp34 = outer2 _1 ;
let obj5 = callback ( outer2 _1 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp35 = tmp64 ;
let encodeUTF8Result1 = obj5 . encodeUTF8 ( tmp65 ) ;
} else {
let tmp66 = tmp64 ;
let _Uint8Array3 = Uint8Array ;
let tmp67 = tmp63 ;
let tmp68 = typeof tmp63 . content _type ;
if ( tmp65 instanceof Uint8Array ) {
let str8 = "application/octet-stream" ;
if ( "string" === tmp68 ) {
let tmp32 = tmp63 ;
str8 = tmp63 . content _type ;
}
str7 = str8 ;
encodeUTF8Result1 = tmp64 ;
} else {
let str6 = "application/json" ;
if ( "string" === tmp68 ) {
let tmp24 = tmp63 ;
str6 = tmp63 . content _type ;
}
str7 = str6 ;
let tmp25 = callback ;
2026-07-23 10:11:24 +00:00
let tmp26 = outer2 _1 ;
let obj3 = callback ( outer2 _1 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
let _JSON2 = JSON ;
let tmp27 = tmp64 ;
encodeUTF8Result1 = obj3 . encodeUTF8 ( JSON . stringify ( tmp65 ) ) ;
let tmp28 = flag ;
if ( ! flag ) {
let tmp29 = callback ;
2026-07-23 10:11:24 +00:00
let tmp30 = outer2 _1 ;
let obj4 = callback ( outer2 _1 [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp31 = tmp64 ;
flag = obj4 . isHardCrash ( tmp65 ) ;
}
}
}
let tmp36 = tmp63 ;
let tmp37 = str7 ;
tmp63 . content _type = str7 ;
let tmp38 = encodeUTF8Result1 ;
tmp63 . length = encodeUTF8Result1 . length ;
let _JSON3 = JSON ;
let tmp40 = callback ;
2026-07-23 10:11:24 +00:00
let tmp41 = outer2 _1 ;
2026-07-20 16:05:17 +00:00
let json1 = JSON . stringify ( tmp63 ) ;
2026-07-23 10:11:24 +00:00
let obj6 = callback ( outer2 _1 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
let encodeUTF8Result2 = obj6 . encodeUTF8 ( json1 ) ;
let _Uint8Array2 = Uint8Array ;
let tmp42 = arr2 ;
2026-07-23 10:11:24 +00:00
let tmp43 = outer2 _7 ;
let tmp44 = outer2 _7 ;
2026-07-20 16:05:17 +00:00
let tmp45 = new . target ;
let tmp46 = new . target ;
2026-07-23 10:11:24 +00:00
let uint8Array1 = new Uint8Array ( arr2 . length + encodeUTF8Result2 . length + outer2 _7 . length + encodeUTF8Result1 . length + outer2 _7 . length ) ;
2026-07-20 16:05:17 +00:00
let tmp47 = uint8Array1 ;
let result2 = uint8Array1 . set ( arr2 ) ;
let result3 = uint8Array1 . set ( encodeUTF8Result2 , arr2 . length ) ;
2026-07-23 10:11:24 +00:00
let tmp50 = outer2 _7 ;
let result4 = uint8Array1 . set ( outer2 _7 , arr2 . length + encodeUTF8Result2 . length ) ;
let tmp52 = outer2 _7 ;
let result5 = uint8Array1 . set ( encodeUTF8Result1 , arr2 . length + encodeUTF8Result2 . length + outer2 _7 . length ) ;
let tmp54 = outer2 _7 ;
let tmp55 = outer2 _7 ;
let result6 = uint8Array1 . set ( outer2 _7 , arr2 . length + encodeUTF8Result2 . length + outer2 _7 . length + encodeUTF8Result1 . length ) ;
2026-07-20 16:05:17 +00:00
arr2 = uint8Array1 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
obj = { hardCrashed : flag } ;
2026-07-23 10:11:24 +00:00
yield outer2 _6 . captureEnvelope ( callback ( outer2 _1 [ 7 ] ) . base64StringFromByteArray ( arr2 ) , obj ) ;
const obj8 = callback ( outer2 _1 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "Event was skipped as native SDK is not enabled." ) ;
}
} ) ;
} ,
initNativeSdk ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
let androidProfilingOptions ;
let beforeBreadcrumb ;
let beforeSend ;
let beforeSendMetric ;
let beforeSendTransaction ;
let ignoreErrors3 ;
let integrations ;
let logsOrigin ;
const self = this ;
2026-07-23 10:11:24 +00:00
const merged = Object . assign ( { enableNative : true , autoInitializeNativeSdk : true } , outer1 _0 ) ;
if ( undefined !== outer1 _0 . enableLogs ) {
2026-07-20 16:05:17 +00:00
let obj = { } ;
2026-07-23 10:11:24 +00:00
let enableLogs = outer1 _0 . enableLogs ;
2026-07-20 16:05:17 +00:00
if ( enableLogs ) {
2026-07-23 10:11:24 +00:00
enableLogs = "js" !== outer1 _0 . logsOrigin ;
2026-07-20 16:05:17 +00:00
}
obj . enableLogs = enableLogs ;
} else {
obj = { } ;
}
const merged1 = Object . assign ( merged , obj ) ;
if ( merged1 . enableNative ) {
if ( merged1 . autoInitializeNativeSdk ) {
if ( merged1 . dsn ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
2026-07-20 16:05:17 +00:00
const ignoreErrors = merged1 . ignoreErrors ;
2026-07-23 10:11:24 +00:00
const outer1 _1 = ignoreErrors ;
2026-07-20 16:05:17 +00:00
let found ;
if ( null !== ignoreErrors ) {
2026-07-23 10:11:24 +00:00
if ( undefined !== outer1 _1 ) {
found = outer1 _1 . filter ( ( arg0 ) => "string" === typeof arg0 ) ;
2026-07-20 16:05:17 +00:00
}
}
const ignoreErrors2 = merged1 . ignoreErrors ;
2026-07-23 10:11:24 +00:00
const outer1 _2 = ignoreErrors2 ;
2026-07-20 16:05:17 +00:00
let mapped ;
if ( null !== ignoreErrors2 ) {
2026-07-23 10:11:24 +00:00
if ( undefined !== outer1 _2 ) {
const found1 = outer1 _2 . filter ( ( arg0 ) => arg0 instanceof RegExp ) ;
2026-07-20 16:05:17 +00:00
mapped = found1 . map ( ( source ) => source . source ) ;
}
}
let tmp22 = found ;
if ( found ) {
tmp22 = found . length > 0 ;
}
if ( tmp22 ) {
merged1 . ignoreErrorsStr = found ;
}
let tmp23 = mapped ;
if ( mapped ) {
tmp23 = mapped . length > 0 ;
}
if ( tmp23 ) {
merged1 . ignoreErrorsRegex = mapped ;
}
( { beforeSend , beforeBreadcrumb , beforeSendTransaction , beforeSendMetric , integrations , ignoreErrors : ignoreErrors3 , logsOrigin , androidProfilingOptions } = merged1 ) ;
2026-07-23 10:11:24 +00:00
const tmp25 = outer2 _5 ( merged1 , [ "beforeSend" , "beforeBreadcrumb" , "beforeSendTransaction" , "beforeSendMetric" , "integrations" , "ignoreErrors" , "logsOrigin" , "androidProfilingOptions" ] ) ;
2026-07-20 16:05:17 +00:00
if ( androidProfilingOptions ) {
const _Object = Object ;
const _Object2 = Object ;
obj = { androidProfilingOptions } ;
tmp25 . _experiments = Object . assign ( Object . assign ( { } , tmp25 . _experiments ) , obj ) ;
}
2026-07-23 10:11:24 +00:00
const tmp27 = yield outer2 _6 . initNativeSdk ( tmp25 ) ;
2026-07-20 16:05:17 +00:00
self . nativeIsReady = tmp27 ;
self . enableNative = true ;
return tmp27 ;
} else {
throw self . _NativeClientError ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug3 = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug3 . warn ( "Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized." ) ;
self . enableNative = false ;
return false ;
}
} else {
if ( merged1 . enableNativeNagger ) {
2026-07-23 10:11:24 +00:00
const debug2 = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug2 . warn ( "Note: Native Sentry SDK was not initialized automatically, you will need to initialize it manually. If you wish to disable the native SDK and get rid of this warning, pass enableNative: false" ) ;
}
self . enableNative = true ;
return false ;
}
} else {
if ( merged1 . enableNativeNagger ) {
2026-07-23 10:11:24 +00:00
const debug = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "Note: Native Sentry SDK is disabled." ) ;
}
self . enableNative = false ;
return false ;
}
} ) ;
} ,
fetchNativeLogAttributes ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . fetchNativeLogAttributes ( ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
fetchNativeRelease ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . fetchNativeRelease ( ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
fetchNativeSdkInfo ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . fetchNativeSdkInfo ( ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
fetchNativeDeviceContexts ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . fetchNativeDeviceContexts ( ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
fetchNativeAppStart ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
let nativeAppStart = outer2 _6 . fetchNativeAppStart ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const debug2 = outer2 _0 ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug2 . error ( self . _NativeClientError ) ;
nativeAppStart = null ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = outer2 _0 ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( self . _DisabledNativeError ) ;
return null ;
}
} ) ;
} ,
fetchNativeFrames ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . fetchNativeFrames ( ) ;
2026-07-20 16:05:17 +00:00
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
nativeCrash ( ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
authStore . crash ( ) ;
} else {
throw self . _NativeClientError ;
}
}
} ,
setUser ( arg0 ) {
let email ;
let geo ;
let id ;
let ip _address ;
let username ;
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
let _serializeObjectResult = null ;
let _serializeObjectResult1 = null ;
if ( arg0 ) {
( { id , ip _address , email , username , geo } = arg0 ) ;
const obj = { id , ip _address , email , username , geo } ;
_serializeObjectResult = self . _serializeObject ( obj ) ;
2026-07-23 10:11:24 +00:00
_serializeObjectResult1 = self . _serializeObject ( fn2 ( arg0 , [ "id" , "ip_address" , "email" , "username" , "geo" ] ) ) ;
const tmp5 = fn2 ( arg0 , [ "id" , "ip_address" , "email" , "username" , "geo" ] ) ;
2026-07-20 16:05:17 +00:00
}
authStore . setUser ( _serializeObjectResult , _serializeObjectResult1 ) ;
} else {
throw self . _NativeClientError ;
}
}
} ,
setTag ( arg0 , arg1 ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
let json = arg1 ;
if ( "string" !== typeof arg1 ) {
const _JSON = JSON ;
json = JSON . stringify ( arg1 ) ;
}
authStore . setTag ( arg0 , json ) ;
} else {
throw self . _NativeClientError ;
}
}
} ,
setExtra ( arg0 , arg1 ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
if ( "string" === typeof arg1 ) {
return authStore . setExtra ( arg0 , arg1 ) ;
} else if ( undefined === arg1 ) {
return authStore . setExtra ( arg0 , "undefined" ) ;
} else {
const _JSON = JSON ;
2026-07-23 10:11:24 +00:00
const json = JSON . stringify ( require ( 794 ) /* registerSpanErrorInstrumentation */ . normalize ( arg1 ) ) ;
2026-07-20 16:05:17 +00:00
while ( true ) {
let tmp3 = json ;
if ( "string" === typeof json ) {
let tmp7 = authStore ;
let tmp8 = arg0 ;
let setExtraResult = authStore . setExtra ( arg0 , json ) ;
} else {
let tmp4 = authStore ;
let tmp5 = arg0 ;
let str2 = "**non-stringifiable**" ;
setExtraResult = authStore . setExtra ( arg0 , "**non-stringifiable**" ) ;
}
return setExtraResult ;
}
2026-07-23 10:11:24 +00:00
const obj = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
} else {
throw self . _NativeClientError ;
}
}
} ,
addBreadcrumb ( level ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
const _Object = Object ;
const obj = { } ;
let _processLevelResult ;
const merged = Object . assign ( { } , level ) ;
if ( level . level ) {
_processLevelResult = self . _processLevel ( level . level ) ;
}
obj . level = _processLevelResult ;
authStore . addBreadcrumb ( Object . assign ( merged , obj ) ) ;
} else {
throw self . _NativeClientError ;
}
}
} ,
clearBreadcrumbs ( ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
authStore . clearBreadcrumbs ( ) ;
} else {
throw self . _NativeClientError ;
}
}
} ,
setContext ( arg0 , data ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
if ( null === data ) {
return authStore . setContext ( arg0 , null ) ;
} else {
2026-07-23 10:11:24 +00:00
const result = require ( 990 ) /* convertToNormalizedObject */ . convertToNormalizedObject ( data ) ;
2026-07-20 16:05:17 +00:00
while ( true ) {
let tmp4 = result ;
let tmp5 = authStore ;
let setContext = authStore . setContext ;
let tmp6 = arg0 ;
if ( result ) {
let setContextResult = setContext ( arg0 , result ) ;
} else {
let obj = { } ;
let str = "**non-serializable**" ;
obj . error = "**non-serializable**" ;
let setContextResult1 = setContext ( arg0 , obj ) ;
}
}
2026-07-23 10:11:24 +00:00
const obj2 = require ( 990 ) /* convertToNormalizedObject */ ;
2026-07-20 16:05:17 +00:00
}
} else {
throw self . _NativeClientError ;
}
}
} ,
closeNativeSdk ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . closeNativeSdk ( ) . then ( ( ) => {
2026-07-20 16:05:17 +00:00
self . enableNative = false ;
} ) ;
}
}
} ) ;
} ,
disableNativeFramesTracking ( ) {
const self = this ;
let enableNative = this . enableNative ;
if ( enableNative ) {
enableNative = self . _isModuleLoaded ( authStore ) ;
}
if ( enableNative ) {
const result = authStore . disableNativeFramesTracking ( ) ;
}
} ,
enableNativeFramesTracking ( ) {
const self = this ;
let enableNative = this . enableNative ;
if ( enableNative ) {
enableNative = self . _isModuleLoaded ( authStore ) ;
}
if ( enableNative ) {
const result = authStore . enableNativeFramesTracking ( ) ;
}
} ,
isNativeAvailable ( ) {
return this . _isModuleLoaded ( closure _6 ) ;
} ,
captureScreenshot ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp11 = yield outer2 _6 . captureScreenshot ( ) ;
2026-07-20 16:05:17 +00:00
while ( true ) {
let tmp12 = tmp11 ;
let mapped = null ;
if ( ! arr ) {
break ;
} else {
let tmp14 = tmp11 ;
mapped = arr . map ( ( data ) => {
const obj = { } ;
const merged = Object . assign ( { } , data ) ;
const uint8Array = new Uint8Array ( data . data ) ;
obj . data = uint8Array ;
return Object . assign ( merged , obj ) ;
} ) ;
2026-07-23 10:11:24 +00:00
break ;
2026-07-20 16:05:17 +00:00
}
return mapped ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug2 = outer2 _0 ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug2 . error ( self . _NativeClientError ) ;
return null ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = outer2 _0 ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( self . _DisabledNativeError ) ;
return null ;
}
} ) ;
} ,
fetchViewHierarchy ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp3 = yield outer2 _6 . fetchViewHierarchy ( ) ;
2026-07-20 16:05:17 +00:00
let uint8Array = null ;
if ( tmp3 ) {
const _Uint8Array = Uint8Array ;
uint8Array = new Uint8Array ( tmp3 ) ;
}
return uint8Array ;
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ) ;
} ,
startProfiling ( arg0 ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
const startProfilingResult = authStore . startProfiling ( arg0 ) ;
const started = startProfilingResult . started ;
2026-07-23 10:11:24 +00:00
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
if ( started ) {
debug . log ( "[NATIVE] Start Profiling" ) ;
} else {
debug . error ( "[NATIVE] Start Profiling Failed" , startProfilingResult . error ) ;
}
return started ;
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ,
stopProfiling ( ) {
let androidProfile ;
let error ;
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
const stopProfilingResult = authStore . stopProfiling ( ) ;
const profile = stopProfilingResult . profile ;
( { androidProfile , error } = stopProfilingResult ) ;
if ( profile ) {
if ( ! error ) {
if ( ! androidProfile ) {
2026-07-23 10:11:24 +00:00
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "[NATIVE] Stop Profiling Failed: No Android Profile" ) ;
}
const obj = { } ;
const _JSON = JSON ;
obj . hermesProfile = JSON . parse ( profile ) ;
obj . nativeProfile = tmp5 ;
obj . androidProfile = androidProfile ;
return obj ;
}
}
2026-07-23 10:11:24 +00:00
const debug2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug2 . error ( "[NATIVE] Stop Profiling Failed" , error ) ;
return null ;
} else {
throw self . _NativeClientError ;
}
} else {
throw self . _DisabledNativeError ;
}
} ,
fetchNativePackageName ( ) {
const self = this ;
let enableNative = this . enableNative ;
if ( enableNative ) {
enableNative = self . _isModuleLoaded ( authStore ) ;
}
if ( enableNative ) {
enableNative = authStore . fetchNativePackageName ( ) ;
}
if ( ! enableNative ) {
enableNative = null ;
}
return enableNative ;
} ,
fetchNativeStackFramesBy ( stackReturnAddresses ) {
const self = this ;
let enableNative = this . enableNative ;
if ( enableNative ) {
enableNative = self . _isModuleLoaded ( authStore ) ;
}
if ( enableNative ) {
enableNative = authStore . fetchNativeStackFramesBy ( stackReturnAddresses ) ;
}
if ( ! enableNative ) {
enableNative = null ;
}
return enableNative ;
} ,
initNativeReactNavigationNewFrameTracking ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( obj ) {
return obj . resume ( ) ;
} else if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
return outer2 _6 . initNativeReactNavigationNewFrameTracking ( ) ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
} ,
2026-07-23 10:11:24 +00:00
captureReplay ( outer1 _0 ) {
let closure _0 = outer1 _0 ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp15 = yield outer2 _6 . captureReplay ( outer1 _0 ) ;
2026-07-20 16:05:17 +00:00
let tmp16 = tmp15 ;
if ( ! tmp15 ) {
tmp16 = null ;
}
let resolved = tmp16 ;
} else {
2026-07-23 10:11:24 +00:00
const debug2 = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
debug2 . warn ( "[NATIVE] `" + self . captureReplay . name + "` is not available when native is not available." ) ;
resolved = Promise . resolve ( null ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = callback ( outer2 _1 [ 5 ] ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . warn ( "[NATIVE] `" + self . captureReplay . name + "` is not available when native is disabled." ) ;
return Promise . resolve ( null ) ;
}
} ) ;
} ,
getCurrentReplayId ( ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
let tmp11 = authStore . getCurrentReplayId ( ) || null ;
const tmp13 = authStore . getCurrentReplayId ( ) || null ;
} else {
2026-07-23 10:11:24 +00:00
const debug2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
debug2 . warn ( "[NATIVE] `" + self . getCurrentReplayId . name + "` is not available when native is not available." ) ;
tmp11 = null ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . warn ( "[NATIVE] `" + self . getCurrentReplayId . name + "` is not available when native is disabled." ) ;
return null ;
}
} ,
crashedLastRun ( ) {
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp5 = yield outer2 _6 . crashedLastRun ( ) ;
2026-07-20 16:05:17 +00:00
let tmp6 = null ;
if ( "boolean" === typeof tmp5 ) {
tmp6 = tmp5 ;
}
return tmp6 ;
} else {
return null ;
}
} else {
return null ;
}
} ) ;
} ,
getNewScreenTimeToDisplay ( ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
let newScreenTimeToDisplay = authStore . getNewScreenTimeToDisplay ( ) ;
}
return newScreenTimeToDisplay ;
}
newScreenTimeToDisplay = Promise . resolve ( null ) ;
} ,
getDataFromUri ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
const tmp4 = yield outer2 _6 . getDataFromUri ( outer1 _0 ) ;
2026-07-20 16:05:17 +00:00
const _Uint8Array = Uint8Array ;
const uint8Array = new Uint8Array ( tmp4 ) ;
return uint8Array ;
}
}
return null ;
} ) ;
} ,
popTimeToDisplayFor ( arg0 ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
return authStore . popTimeToDisplayFor ( arg0 ) ;
}
}
return Promise . resolve ( null ) ;
} ,
setActiveSpanId ( spanId ) {
const self = this ;
if ( this . enableNative ) {
if ( self . _isModuleLoaded ( authStore ) ) {
authStore . setActiveSpanId ( spanId ) ;
}
}
} ,
encodeToBase64 ( data ) {
2026-07-23 10:11:24 +00:00
let closure _0 = data ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
const self = this ;
if ( self . enableNative ) {
2026-07-23 10:11:24 +00:00
if ( self . _isModuleLoaded ( outer2 _6 ) ) {
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
const tmp5 = yield outer2 _6 . encodeToBase64 ( Array . from ( outer1 _0 ) ) ;
2026-07-20 16:05:17 +00:00
let tmp6 = tmp5 ;
if ( ! tmp5 ) {
tmp6 = null ;
}
return tmp6 ;
}
}
return Promise . resolve ( null ) ;
} ) ;
} ,
primitiveProcessor ( arg0 ) {
return arg0 ;
} ,
_processItem ( arg0 ) {
const self = this ;
const tmp = callback ( arg0 , 2 ) ;
const first = tmp [ 0 ] ;
if ( "event" != first . type ) {
if ( "transaction" != first . type ) {
return arg0 ;
}
}
const _processLevelsResult = self . _processLevels ( tmp [ 1 ] ) ;
2026-07-23 10:11:24 +00:00
let tmp4 = "android" === encodeUTF8 . platform ;
2026-07-20 16:05:17 +00:00
if ( tmp4 ) {
tmp4 = "message" in _processLevelsResult ;
}
if ( tmp4 ) {
const obj = { message : _processLevelsResult . message } ;
_processLevelsResult . message = obj ;
}
const items = [ first , _processLevelsResult ] ;
return items ;
} ,
_serializeObject ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
const obj = { } ;
const keys = Object . keys ( arg0 ) ;
const item = keys . forEach ( ( arg0 ) => {
let json = tmp ;
2026-07-23 10:11:24 +00:00
if ( "string" !== typeof table [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
const _JSON = JSON ;
json = JSON . stringify ( tmp ) ;
}
obj [ arg0 ] = json ;
} ) ;
return obj ;
} ,
_processLevels ( level ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
let obj = { } ;
2026-07-20 16:05:17 +00:00
let _processLevelResult ;
2026-07-23 10:11:24 +00:00
let merged = Object . assign ( { } , level ) ;
2026-07-20 16:05:17 +00:00
if ( level . level ) {
_processLevelResult = self . _processLevel ( level . level ) ;
}
obj . level = _processLevelResult ;
const breadcrumbs = level . breadcrumbs ;
let mapped ;
if ( null !== breadcrumbs ) {
if ( undefined !== breadcrumbs ) {
mapped = breadcrumbs . map ( ( level ) => {
const obj = { } ;
let _processLevelResult ;
const merged = Object . assign ( { } , level ) ;
if ( level . level ) {
_processLevelResult = self . _processLevel ( level . level ) ;
}
obj . level = _processLevelResult ;
return Object . assign ( merged , obj ) ;
} ) ;
}
}
obj . breadcrumbs = mapped ;
return Object . assign ( merged , obj ) ;
} ,
_processLevel ( level ) {
let str = "debug" ;
if ( "log" != level ) {
str = level ;
}
return str ;
} ,
_isModuleLoaded ( closure _6 ) {
return closure _6 ;
} ,
_setPrimitiveProcessor ( primitiveProcessor ) {
this . primitiveProcessor = primitiveProcessor ;
}
} ;
2026-07-23 10:11:24 +00:00
const sentryError = new require ( "registerSpanErrorInstrumentation" ) . SentryError ( "Native is disabled" ) ;
encodeUTF8 . _DisabledNativeError = sentryError ;
const sentryError1 = new require ( "registerSpanErrorInstrumentation" ) . SentryError ( "Native Client is not available, can't start on native." ) ;
encodeUTF8 . _NativeClientError = sentryError1 ;
encodeUTF8 . enableNative = true ;
encodeUTF8 . nativeIsReady = false ;
encodeUTF8 . platform = "android" ;
2026-07-20 16:05:17 +00:00
export { getRNSentryModule } ;
2026-07-23 10:11:24 +00:00
export const NATIVE = encodeUTF8 ;
2026-07-20 16:05:17 +00:00
export const getDataFromUri = function getDataFromUri ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
return fn ( this , undefined , undefined , function * ( ) {
if ( obj ) {
return obj . resume ( ) ;
} else {
2026-07-23 10:11:24 +00:00
return outer2 _8 . getDataFromUri ( outer1 _0 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ;