/* Metro module 1108; source: unknown; dependencies: [5, 6, 7, 1109, 1080, 826] */ import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */ import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */ import * as DEBUG_BUILDModule from './module-01080-DEBUG_BUILD.js'; /* Metro dependency 1080 */ import * as Module01109Module from './module-01109.js'; /* Metro dependency 1109 */ function _fun12393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:6, offset: 0x00dc9366, size: 129 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.UIProfiler = _fun12394(); function _fun12394() { // fn#12394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:133, offset: 0x00dc93e7, size: 403 bytes, params: 1, frame: 17 const UIProfiler2 = UIProfiler; const items2 = [{key: 'initialize', value: value_12396}]; items2[1] = {key: 'start', value: value_12397}; items2[2] = {key: 'stop', value: value_12398}; items2[3] = {key: 'notifyRootSpanActive', value: value_12399}; items2[4] = {key: '_beginProfiling', value: value_12400}; items2[5] = {key: '_endProfiling', value: value_12401}; items2[6] = {key: '_setupTraceLifecycleListeners', value: function(a0) { var env0_0 = this; a0.on('spanStart', _fun12404); a0.on('spanEnd', _fun12405); }}; items2[7] = {key: '_resetProfilerInfo', value: value_12407}; items2[8] = {key: '_clearAllRootSpanTimeouts', value: function() { this._rootSpanTimeouts.forEach(_fun12409); this._rootSpanTimeouts.clear(); }}; items2[9] = {key: '_registerTraceRootSpan', value: function(a0) { var env0_0 = a0; var env0_1 = this; this._activeRootSpanIds.add(a0); this._rootSpanTimeouts.set(a0, global.setTimeout(_fun12411, 300000)); }}; items2[10] = {key: '_startProfilerInstance', value: value_12412}; items2[11] = {key: '_startPeriodicChunking', value: function() { var env0_0 = this; if (this._isRunning) { this._chunkTimer = global.setTimeout(_fun12414, 60000); } }}; items2[12] = {key: '_onRootSpanTimeout', value: value_12416}; let env0_0 = Module00005Module(_fun12418); items2[13] = {key: '_collectCurrentChunk', value: value_12419}; items2[14] = {key: '_sendProfileChunk', value: value_12420}; return CreateClassModule(UIProfiler2, items2); function UIProfiler() { // fn#12395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:167, offset: 0x00dc957a, size: 137 bytes, params: 1, frame: 14 const value = environment.__proto__; env1_3(this, UIProfiler); this._client = undefined; this._profiler = undefined; this._chunkTimer = undefined; this._profilerId = undefined; this._isRunning = false; this._sessionSampled = false; this._lifecycleMode = undefined; const Set = global.Set; this._activeRootSpanIds = new Set(); const Map = global.Map; this._rootSpanTimeouts = new Map(); } function value_12396(a0) { // fn#12396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:458, offset: 0x00dc9603, size: 306 bytes, params: 2, frame: 21 const debug = (require(826) /* metro dependency 826 */).debug; let getOptions = a0.getOptions; const profileLifecycle = Reflect.apply(getOptions, a0, []).profileLifecycle; let value = environment.__proto__; const shouldProfileSession = Module01109Module.shouldProfileSession; getOptions = a0.getOptions; const shouldProfileSession2 = Reflect.apply(shouldProfileSession, Module01109Module, [Reflect.apply(getOptions, a0, [])]); const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD; if (DEBUG_BUILD) { debug.log("[Profiling] Initializing profiler (lifecycle='" + profileLifecycle + "')."); } if (!shouldProfileSession2) { if (DEBUG_BUILD) { debug.log('[Profiling] Session not sampled. Skipping lifecycle profiler initialization.'); } } value = require(826) /* metro dependency 826 */; this._profilerId = value.uuid4(); this._client = a0; this._sessionSampled = shouldProfileSession2; this._lifecycleMode = profileLifecycle; if (profileLifecycle === 'trace') { this._setupTraceLifecycleListeners(a0); } } function value_12397() { // fn#12397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:949, offset: 0x00dc9735, size: 292 bytes, params: 1, frame: 13 var value; const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD; const debug = (Module00826Module).debug; if (this._lifecycleMode !== 'trace') { if (this._isRunning) { value = environment.__proto__; if (DEBUG_BUILD) { debug.warn('[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.'); } } else if (this._sessionSampled) { this._beginProfiling(); } else { value = environment.__proto__; if (DEBUG_BUILD) { debug.warn('[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.'); } } } else { value = environment.__proto__; if (DEBUG_BUILD) { debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.'); } } } function value_12398() { // fn#12398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:1462, offset: 0x00dc9859, size: 199 bytes, params: 1, frame: 13 var value; const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD; const debug = (Module00826Module).debug; if (this._lifecycleMode !== 'trace') { if (this._isRunning) { this._endProfiling(); } else { value = environment.__proto__; if (DEBUG_BUILD) { debug.warn('[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.'); } } } else { value = environment.__proto__; if (DEBUG_BUILD) { debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.'); } } } function value_12399(a0) { // fn#12399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:1842, offset: 0x00dc9920, size: 197 bytes, params: 2, frame: 15 var spanId; var _activeRootSpanIds; var size; var value; if (this._lifecycleMode === 'trace') { if (this._sessionSampled) { spanId = a0.spanContext().spanId; if (spanId) { _activeRootSpanIds = this._activeRootSpanIds; if (!_activeRootSpanIds.has(spanId)) { this._registerTraceRootSpan(spanId); size = this._activeRootSpanIds.size; if (size === 1) { value = environment.__proto__; if ((require(1080) /* metro dependency 1080 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('[Profiling] Detected already active root span during setup. Active root spans now:', size); } this._beginProfiling(); } } } } } } function value_12400() { // fn#12400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:2257, offset: 0x00dc99e5, size: 279 bytes, params: 1, frame: 18 const debug = (require(826) /* metro dependency 826 */).debug; if (!this._isRunning) { this._isRunning = true; var DEBUG_BUILD = (require(1080) /* metro dependency 1080 */).DEBUG_BUILD; if (DEBUG_BUILD) { debug.log('[Profiling] Started profiling with profiler ID:', this._profilerId); } (require(826) /* metro dependency 826 */).getGlobalScope().setContext('profile', {profiler_id: this._profilerId}); this._startProfilerInstance(); if (this._profiler) { this._startPeriodicChunking(); return undefined; } DEBUG_BUILD = (require(1080) /* metro dependency 1080 */).DEBUG_BUILD; if (DEBUG_BUILD) { debug.log('[Profiling] Failed to start JS Profiler; stopping.'); } this._resetProfilerInfo(); } } function value_12401() { // fn#12401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:2749, offset: 0x00dc9afc, size: 170 bytes, params: 1, frame: 13 var environment; var value; if (this._isRunning) { this._isRunning = false; if (this._chunkTimer) { global.clearTimeout(this._chunkTimer); this._chunkTimer = undefined; } this._clearAllRootSpanTimeouts(); value = this._collectCurrentChunk(); value.catch(function(a0) { if (require(dependencyMap[4]).DEBUG_BUILD) { require(dependencyMap[5]).debug.error('[Profiling] Failed to collect current profile chunk on `stop()`:', a0); } }); if (this._lifecycleMode === 'manual') { value = environment.__proto__; value = require(826) /* metro dependency 826 */; value = value.getGlobalScope(); value.setContext('profile', {}); } } } function value_12403(a0) { // fn#12403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:3208, offset: 0x00dc9bf8, size: 62 bytes, params: 2, frame: 14 a0.on('spanStart', _fun12404); a0.on('spanEnd', _fun12405); function _fun12404(a0) { // fn#12404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:3279, offset: 0x00dc9c36, size: 429 bytes, params: 2, frame: 20 const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD; const debug = (require(826) /* metro dependency 826 */).debug; var moduleValue; var spanId; var _activeRootSpanIds; var binding; var size; if (env0_0._sessionSampled) { moduleValue = require(826) /* metro dependency 826 */; if (a0 === moduleValue.getRootSpan(a0)) { if (a0.isRecording()) { spanId = a0.spanContext().spanId; if (spanId) { _activeRootSpanIds = env0_0._activeRootSpanIds; if (!_activeRootSpanIds.has(spanId)) { binding = env0_0; binding._registerTraceRootSpan(spanId); size = binding._activeRootSpanIds.size; if (size === 1) { if (DEBUG_BUILD) { debug.log('[Profiling] Root span ' + spanId + ' started. Profiling active while there are active root spans (count=' + size + ').'); } env0_0._beginProfiling(); } } } } else if (DEBUG_BUILD) { debug.log('[Profiling] Discarding profile because root span was not sampled.'); } } } else if (DEBUG_BUILD) { debug.log('[Profiling] Span not profiled because of negative sampling decision for user session.'); } } function _fun12405(a0) { // fn#12405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:3926, offset: 0x00dc9de3, size: 265 bytes, params: 2, frame: 20 var environment; var spanId; var _activeRootSpanIds; var binding; var size; var value2; if (env0_0._sessionSampled) { spanId = a0.spanContext().spanId; if (spanId) { _activeRootSpanIds = env0_0._activeRootSpanIds; if (_activeRootSpanIds.has(spanId)) { binding = env0_0; _activeRootSpanIds = binding._activeRootSpanIds; _activeRootSpanIds.delete(spanId); _activeRootSpanIds = binding._activeRootSpanIds; size = _activeRootSpanIds.size; value2 = environment.__proto__.__proto__; if ((require(1080) /* metro dependency 1080 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('[Profiling] Root span with ID ' + spanId + ' ended. Will continue profiling for as long as there are active root spans (currently: ' + size + ').'); } if (size === 0) { binding = env0_0; binding._collectCurrentChunk().catch(function(a0) { if (require(dependencyMap[4]).DEBUG_BUILD) { require(dependencyMap[5]).debug.error('[Profiling] Failed to collect current profile chunk on last `spanEnd`:', a0); } }); binding._endProfiling(); } } } } } } function value_12407() { // fn#12407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:4487, offset: 0x00dc9f3e, size: 66 bytes, params: 1, frame: 14 this._isRunning = false; let value = environment.__proto__; value = require(826) /* metro dependency 826 */; value = value.getGlobalScope(); value.setContext('profile', {}); } function value_12408() { // fn#12408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:4627, offset: 0x00dc9f80, size: 46 bytes, params: 1, frame: 12 this._rootSpanTimeouts.forEach(function(a0) { return (0, global.clearTimeout)(a0); }); this._rootSpanTimeouts.clear(); } function value_12410(a0) { // fn#12410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:4803, offset: 0x00dc9fc2, size: 78 bytes, params: 2, frame: 15 const env0_0 = a0; this._activeRootSpanIds.add(a0); this._rootSpanTimeouts.set(a0, global.setTimeout(_fun12411, 300000)); function _fun12411() { // fn#12411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:4898, offset: 0x00dca010, size: 26 bytes, params: 1, frame: 11 return env0_1._onRootSpanTimeout(env0_0); } } function value_12412() { // fn#12412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:5017, offset: 0x00dca02a, size: 152 bytes, params: 1, frame: 15 var value2; var value3; const _profiler = this._profiler; const value = undefined; if ((_profiler == null ? value : _profiler.stopped) !== false) { value2 = environment.__proto__; value3 = (require(1109) /* metro dependency 1109 */).startJSSelfProfile(); if (value3) { this._profiler = value3; } else if ((require(1080) /* metro dependency 1080 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('[Profiling] Failed to start JS Profiler.'); } } return value; } function value_12413() { // fn#12413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:5286, offset: 0x00dca0c2, size: 55 bytes, params: 1, frame: 14 if (this._isRunning) { this._chunkTimer = global.setTimeout(_fun12414, 60000); } function _fun12414() { // fn#12414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:5378, offset: 0x00dca0f9, size: 99 bytes, params: 1, frame: 13 var _profiler; let binding = env0_0; binding._collectCurrentChunk().catch(function(a0) { if (require(dependencyMap[4]).DEBUG_BUILD) { require(dependencyMap[5]).debug.error('[Profiling] Failed to collect current profile chunk during periodic chunking:', a0); } }); if (binding._isRunning) { binding = env0_0; binding._startProfilerInstance(); _profiler = binding._profiler; binding = env0_0; if (_profiler) { binding._startPeriodicChunking(); return undefined; } binding._resetProfilerInfo(); } } } function value_12416(a0) { // fn#12416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:5725, offset: 0x00dca1ae, size: 215 bytes, params: 2, frame: 16 var _activeRootSpanIds; var value; const _rootSpanTimeouts = this._rootSpanTimeouts; if (_rootSpanTimeouts.has(a0)) { this._rootSpanTimeouts.delete(a0); _activeRootSpanIds = this._activeRootSpanIds; if (_activeRootSpanIds.has(a0)) { value = environment.__proto__; if ((require(1080) /* metro dependency 1080 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('[Profiling] Reached 5-minute timeout for root span ' + a0 + '. You likely started a manual root span that never called `.end()`.'); } _activeRootSpanIds = this._activeRootSpanIds; _activeRootSpanIds.delete(a0); _activeRootSpanIds = this._activeRootSpanIds; if (_activeRootSpanIds.size === 0) { this._endProfiling(); } } } } function* _fun12418() { // fn#12418, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:6154, offset: 0x00dca28e, size: 420 bytes, params: 1, frame: 25 var stop; var value3; var value4; var binding; var binding2; var property; var value5; var createProfileChunkPayload; var _client; var _profilerId; var value6; var validateProfileChunk; var value7; var value8; var _sendProfileChunk; var binding3; var DEBUG_BUILD; var binding4; var debug; var log; var binding5; var binding6; var reason; var error; let value = undefined; if (false) { return value; } const _profiler = this._profiler; this._profiler = undefined; if (_profiler) { try { stop = _profiler.stop; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value = Reflect.apply(stop, _profiler, []); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } yield value; try { value = undefined; value3 = false; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } if (value3) { return value; } value4 = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { binding2 = env2_1; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { property = binding2[3]; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value5 = binding(property); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { createProfileChunkPayload = value5.createProfileChunkPayload; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { _client = this._client; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { _profilerId = this._profilerId; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value = Reflect.apply(createProfileChunkPayload, value5, [value, _client, _profilerId]); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { property = binding2[3]; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value6 = binding(property); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { validateProfileChunk = value6.validateProfileChunk; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value7 = Reflect.apply(validateProfileChunk, value6, [value]); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value8 = 'reason' in value7; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } if (value8) { try { binding = env2_0; binding5 = env2_1; property = binding5[4]; value = binding(property); DEBUG_BUILD = value.DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; binding6 = env2_1; property = binding6[5]; value = binding(property); debug = value.debug; log = debug.log; reason = value7.reason; Reflect.apply(log, debug, ['[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):', reason]); } } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } return undefined; } try { _sendProfileChunk = this._sendProfileChunk; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { Reflect.apply(_sendProfileChunk, this, [value]); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { binding = env2_0; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { binding3 = env2_1; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { property = binding3[4]; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value = binding(property); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { DEBUG_BUILD = value.DEBUG_BUILD; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } if (DEBUG_BUILD) { try { binding = env2_0; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { binding4 = env2_1; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { property = binding4[5]; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { value = binding(property); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { debug = value.debug; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { log = debug.log; } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } return undefined; } try { Reflect.apply(log, debug, ['[Profiling] Collected browser profile chunk.']); } catch (error) { value = environment.__proto__.__proto__; binding = env2_0; DEBUG_BUILD = binding(env2_1[4]).DEBUG_BUILD; if (DEBUG_BUILD) { binding = env2_0; debug = binding(env2_1[5]).debug; debug.log('[Profiling] Error while stopping JS Profiler for chunk:', error); } } } } } function value_12419() { // fn#12419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:6730, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } function value_12420(a0) { // fn#12420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:6827, offset: 0x00dca432, size: 347 bytes, params: 2, frame: 26 var environment; var object; const _client = this._client; let value = environment.__proto__; const value2 = undefined; const getSdkMetadataForEnvelopeHeader = Module00826Module.getSdkMetadataForEnvelopeHeader; const getSdkMetadata = _client.getSdkMetadata; const value4 = Reflect.apply(getSdkMetadataForEnvelopeHeader, Module00826Module, [getSdkMetadata == null ? value2 : _client.getSdkMetadata()]); const dsn = _client.getDsn(); const getOptions = _client.getOptions; const tunnel = Reflect.apply(getOptions, _client, []).tunnel; const createEnvelope = Module00826Module.createEnvelope; const Object = global.Object; const assign = Object.assign; const object3 = {}; object3.event_id = Module00826Module.uuid4(); const Date = global.Date; const value6 = Object.create(Date.prototype, {constructor: {value: Date}}); const date = new Date(); object3.sent_at = (date instanceof Object ? date : value6).toISOString(); const r2 = value4 && ({sdk: value4}); let r1 = tunnel ? dsn : !!tunnel; if (r1) { object = {}; object.dsn = Module00826Module.dsnToString(dsn); r1 = object; } value = Reflect.apply(assign, Object, [object3, r2, r1]); value = Reflect.apply(createEnvelope, Module00826Module, [value, [[{type: 'profile_chunk'}, a0]]]); value = _client.sendEnvelope(value); value.then(null, function(a0) { if (require(dependencyMap[4]).DEBUG_BUILD) { require(dependencyMap[5]).debug.error('Error while sending profile chunk envelope:', a0); } }); return value2; } } } function _fun12409(a0) { // fn#12409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1235:4696, offset: 0x00dc9fae, size: 20 bytes, params: 2, frame: 11 return global.clearTimeout(a0); } global.__d(_fun12393, 1108, [5, 6, 7, 1109, 1080, 826]) /* metro module 1108, dependencies: [5, 6, 7, 1109, 1080, 826] */;