/* Metro module 935; source: unknown; dependencies: [895, 872, 922, 842] */ function _fun9962(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:6, offset: 0x00d77f2a, size: 130 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'}]); let value = require(895) /* metro dependency 895 */; value = value.defineIntegration(function(a0) { var env0_0 = a0; return {name: 'ThirdPartyErrorsFilter', setup: _fun9964, processEvent: _fun9968}; }); exports.thirdPartyErrorFilterIntegration = value; } function _fun9963(a0) { // fn#9963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:125, offset: 0x00d77fac, size: 43 bytes, params: 2, frame: 3 let env0_0 = a0; return {name: 'ThirdPartyErrorsFilter', setup: function(a0) { var env0_0 = a0; a0.on('beforeEnvelope', _fun9965); a0.on('applyFrameMetadata', _fun9967); }, processEvent: processEvent_9968}; } function setup_9964(a0) { // fn#9964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:180, offset: 0x00d77fd7, size: 59 bytes, params: 2, frame: 14 const env0_0 = a0; a0.on('beforeEnvelope', _fun9965); a0.on('applyFrameMetadata', _fun9967); } function processEvent_9968(a0) { // fn#9968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:528, offset: 0x00d78043, size: 187 bytes, params: 2, frame: 18 var behaviour; var Object; const value2 = processEvent_9968GetBundleKeysForAllFramesWithFilenames(a0, env0_0.ignoreSentryInternalFrames); if (value2) { behaviour = env0_0.behaviour; if (value2[behaviour === 'drop-error-if-contains-third-party-frames' ? 'some' : env0_0.behaviour !== 'apply-tag-if-contains-third-party-frames' ? 'every' : 'some'](function(a0) { return !a0.some(_fun9975); })) { behaviour = env0_0.behaviour; if (behaviour === 'drop-error-if-contains-third-party-frames') { return null; } behaviour = env0_0.behaviour; if (behaviour === 'drop-error-if-exclusively-contains-third-party-frames') { return null; } Object = global.Object; a0.tags = Object.assign({}, a0.tags, {third_party_code: true}); return a0; } } return a0; } function _fun9965(a0) { // fn#9965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:221, offset: 0x00d78012, size: 49 bytes, params: 2, frame: 14 var environment; const value = environment.__proto__.__proto__; (require(872) /* metro dependency 872 */).forEachEnvelopeItem(a0, _fun9966); } function processEvent_9968GetBundleKeysForAllFramesWithFilenames(a0, a1) { // fn#9969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:559, owner: processEvent_9968.getBundleKeysForAllFramesWithFilenames, offset: 0x00d780fe, size: 85 bytes, params: 3, frame: 13 var environment; const env0_0 = a1; let value = environment.__proto__.__proto__; value = require(842) /* metro dependency 842 */; value = value.getFramesFromEvent(a0); if (value) { value = value.filter(_fun9970); return value.map(function(a0) { var r0; var value; if (a0.module_metadata) { value = global.Object.keys(a0.module_metadata); value = value.filter(_fun9972); value = value.map(_fun9973); r0 = value; } else { r0 = []; } return r0; }); } } function _fun9974(a0) { // fn#9974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:1452, offset: 0x00d782f8, size: 26 bytes, params: 2, frame: 11 return !a0.some(_fun9975); } function _fun9970(a0, a1) { // fn#9970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:678, offset: 0x00d78153, size: 295 bytes, params: 3, frame: 22 var r1; var r8; var r3; var r2; var r0; var lineno; var colno; var instruction_addr; var value2; var context_line; var includes; var value3; var pre_context; var length; var property; var value4; let filename = a0.filename; let value = !!filename; reducibleJoin21: while (true) { if (filename) { lineno = a0.lineno; value = lineno != null; reducibleJoin3: while (true) { if (value) { r1 = value; break reducibleJoin3; } colno = a0.colno; value = colno != null; r1 = value; break reducibleJoin3; } reducibleJoin5: while (true) { if (r1) { break reducibleJoin5; } instruction_addr = a0.instruction_addr; value = instruction_addr != null; r1 = value; break reducibleJoin5; } reducibleJoin20: while (true) { if (r1) { value = environment; value = !require; reducibleJoin19: while (true) { if (require) { value = 0; value2 = false; reducibleJoin18: while (true) { if (value !== a1) { r3 = value2; break reducibleJoin18; } context_line = a0.context_line; if (!context_line) { r3 = value2; break reducibleJoin18; } filename = a0.filename; if (!filename) { r3 = value2; break reducibleJoin18; } filename = a0.filename; includes = filename.includes; if (!Reflect.apply(includes, filename, ['sentry'])) { r3 = value2; break reducibleJoin18; } filename = a0.filename; includes = filename.includes; if (!Reflect.apply(includes, filename, ['helpers'])) { r3 = value2; break reducibleJoin18; } context_line = a0.context_line; includes = context_line.includes; value3 = environment.__proto__.__proto__.__proto__; if (!Reflect.apply(includes, context_line, [env3_4])) { r3 = value2; break reducibleJoin18; } pre_context = a0.pre_context; if (!pre_context) { r3 = value2; break reducibleJoin18; } pre_context = a0.pre_context; length = pre_context.length; if (!(value < length)) { r3 = value2; break reducibleJoin18; } r8 = value; reducibleLoop15: while (true) { pre_context = a0.pre_context; property = pre_context[r8]; if (property != null) { includes = property.includes; value = Reflect.apply(includes, property, [env3_3]); value4 = true; reducibleJoin17: while (true) { if (value) { r3 = value4; break reducibleJoin18; } break reducibleJoin17; } } value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value < length) { r8 = value; continue reducibleLoop15; } r3 = value2; break reducibleJoin18; } } value = !r3; r2 = value; break reducibleJoin19; } r2 = value; break reducibleJoin19; } r1 = r2; break reducibleJoin20; } break reducibleJoin20; } r0 = r1; break reducibleJoin21; } r0 = value; break reducibleJoin21; } return r0; } function _fun9971(a0) { // fn#9971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1062:1113, offset: 0x00d7827a, size: 76 bytes, params: 2, frame: 13 var r0; var Object; var value; if (a0.module_metadata) { Object = global.Object; value = Object.keys(a0.module_metadata); value = value.filter(_fun9972); value = value.map(_fun9973); r0 = value; } else { r0 = []; } return r0; }