/* Metro module 926; source: unknown; dependencies: [833, 830, 927, 857, 895, 928, 839, 841, 877] */ import * as GLOBAL_OBJModule from './module-00830-GLOBAL_OBJ.js'; /* Metro dependency 830 */ import * as Module00839Module from './module-00839.js'; /* Metro dependency 839 */ import * as Module00857Module from './module-00857.js'; /* Metro dependency 857 */ function _fun9879(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:6, offset: 0x00d74e31, size: 101 bytes, params: 8, frame: 19 let 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.captureConsoleIntegration = (require(895) /* metro dependency 895 */).defineIntegration(function() { var r0; r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var property = r0.levels; var env0_0 = property || require(dependencyMap[0]).CONSOLE_LEVELS; property = r0.handled; var env0_1 = property == null || property; return {name: 'CaptureConsole', setup: _fun9881}; }); function _captureConsoleIntegration() { // fn#9880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:124, offset: 0x00d74e96, size: 116 bytes, params: 1, frame: 15 var CONSOLE_LEVELS; let r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; if (!r0.levels) { CONSOLE_LEVELS = (require(833) /* metro dependency 833 */).CONSOLE_LEVELS; } const handled = r0.handled; r0 = handled == null || handled; return {name: 'CaptureConsole', setup: setup_9881}; function _captureConsoleIntegrationSetup(a0) { // fn#9881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:323, owner: _captureConsoleIntegration.setup, offset: 0x00d74f0a, size: 89 bytes, params: 2, frame: 13 var environment; const env0_0 = a0; const value = environment.__proto__; const GLOBAL_OBJ = (GLOBAL_OBJModule).GLOBAL_OBJ; if ('console' in GLOBAL_OBJ) { (require(927) /* metro dependency 927 */).addConsoleInstrumentationHandler(_fun9882); } function _fun9882({args, level}) { // fn#9882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:415, offset: 0x00d74f63, size: 107 bytes, params: 2, frame: 16 var environment; var r1; let value = environment.__proto__.__proto__; value = require(857) /* metro dependency 857 */; value = value.getClient(); value = value === env0_0; if (value) { value = environment.__proto__; value = env1_0.includes(level); r1 = value; } else { r1 = value; } if (r1) { value = environment.__proto__; consoleHandler(args, level, env1_1); } function consoleHandler(a0, a1, a2) { // fn#9883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:490, offset: 0x00d74fce, size: 168 bytes, params: 4, frame: 17 var environment; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const value = environment.__proto__.__proto__.__proto__; const env0_3 = (require(928) /* metro dependency 928 */).severityLevelFromString(a1); const Error = global.Error; const error = new Error(); const object = {}; object.level = (require(928) /* metro dependency 928 */).severityLevelFromString(a1); object.extra = {arguments: a0}; (Module00857Module).withScope(_fun9884); function _fun9884(a0) { // fn#9884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:658, offset: 0x00d75076, size: 363 bytes, params: 2, frame: 20 var environment; var value2; var moduleValue; var safeJoin; var binding; var value6; var setExtra; var captureMessage; var value8; var value9; a0.addEventProcessor(_fun9885); if (require !== 'assert') { value8 = env0_0.find(function(a0) { return a0 instanceof global.Error; }); value9 = environment.__proto__.__proto__.__proto__.__proto__; if (value8) { (require(877) /* metro dependency 877 */).captureException(value8, env0_5); } else { a0.captureMessage((require(841) /* metro dependency 841 */).safeJoin(env0_0, ' '), env0_3, {captureContext: env0_5, syntheticException: env0_4}); } } else if (!env0_0[0]) { value2 = environment.__proto__.__proto__.__proto__.__proto__; moduleValue = require(841) /* metro dependency 841 */; safeJoin = moduleValue.safeJoin; binding = env0_0; value6 = 'Assertion failed: ' + (Reflect.apply(safeJoin, moduleValue, [binding.slice(1), ' ']) || 'console.assert'); setExtra = a0.setExtra; binding = env0_0; Reflect.apply(setExtra, a0, ['arguments', binding.slice(1)]); captureMessage = a0.captureMessage; binding = env0_3; Reflect.apply(captureMessage, a0, [value6, binding, {captureContext: env0_5, syntheticException: env0_4}]); } function _fun9885(a0) { // fn#9885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1053:694, offset: 0x00d751e1, size: 76 bytes, params: 2, frame: 14 a0.logger = 'console'; const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; (Module00839Module).addExceptionMechanism(a0, {handled: importDefault, type: 'auto.core.capture_console'}); return a0; } } } } } } } global.__d(_fun9879, 926, [833, 830, 927, 857, 895, 928, 839, 841, 877]) /* metro module 926, dependencies: [833, 830, 927, 857, 895, 928, 839, 841, 877] */;