/* Metro module 7372; source: unknown; dependencies: [65] */ import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */ function _fun59356(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:6, offset: 0x016e8d42, size: 182 bytes, params: 8, frame: 19 let closure = function() { var r1; var value6; var value = arguments.length; var Array = global.Array; var value3 = new Array(value); var value5 = 0; if (value5 < value) { for (r1 = value5; true; r1 = value6) { value3[r1] = arguments[r1]; value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (!(value6 < value)) { break; } } } var env0_0 = value3.sort(_fun59358).map(_fun59359); return _fun59360; }; const stripSentryFramesAndReverse_593612 = stripSentryFramesAndReverse_59361; const getLastStackFrame_59363 = function(a0) { return a0[a0.length - 1] || ({}); }; let env0_0 = Module00065Module; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_1 = RegExp('\\(error: (.*)\\)', ''); const env0_2 = RegExp('captureMessage|captureException', ''); exports.UNKNOWN_FUNCTION = '?'; exports.createStackParser = closure; exports.getFramesFromEvent = function({exception}) { var closure; var error; if (exception) { try { exception = exception.values; closure = _fun59365; exception.forEach(closure); } catch (error) { return undefined; } return []; } }; exports.getFunctionName = function(a0) { var r3; var r1; var r0; var value2; var name; var error; var value = a0; try { if (value) { value2 = typeof value === 'function'; r3 = value2; } else { r3 = value; } if (r3) { name = value.name; r1 = name; } else { r1 = r3; } if (r1) { r0 = r1; } else { value = ''; r0 = value; } } catch (error) { return ''; } return r0; }; exports.stackParserFromStackParserOptions = stackParserFromStackParserOptions_59367; exports.stripSentryFramesAndReverse = stripSentryFramesAndReverse_593612; function createStackParser_59357() { // fn#59357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:157, offset: 0x016e8df8, size: 104 bytes, params: 1, frame: 14 var r1; var value5; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value4 = 0; if (value4 < length) { for (r1 = value4; true; r1 = value5) { array[r1] = arguments[r1]; value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (!(value5 < length)) { break; } } } const env0_0 = array.sort(function([property], a1) { return property - a1[0]; }).map(function(a0) { return a0[1]; }); return _fun59360; function _fun59360(a0) { // fn#59360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:345, offset: 0x016e8e60, size: 324 bytes, params: 2, frame: 25 var r10; var r4; var r14; var r13; var value; var value2; var items2; var split; var length; var value3; var value4; var property; var binding; var test; var replace; var value5; var match; var iterator; var iterator2; var item; var item2; var value6; var push; var error; var value7; var stripSentryFramesAndReverse_59361Binding; var slice; exceptionSkip21: while (true) { exceptionLanding21: while (true) { value = 0; reducibleJoin3: while (true) { if (arguments.length > 1) { if (arguments[1] === undefined) { r10 = value; break reducibleJoin3; } value2 = arguments[1]; r10 = value2; break reducibleJoin3; } r10 = value; break reducibleJoin3; } reducibleJoin6: while (true) { if (arguments.length > 2) { if (arguments[2] === undefined) { r4 = value; break reducibleJoin6; } value = arguments[2]; r4 = value; break reducibleJoin6; } r4 = value; break reducibleJoin6; } items2 = []; split = a0.split; value = Reflect.apply(split, a0, ['\n']); length = value.length; value3 = environment; value4 = environment.__proto__; if (r10 < length) { reducibleLoop7: while (true) { property = value[r10]; length = property.length; if (!(length > 1024)) { binding = env1_1; test = binding.test; reducibleJoin10: while (true) { if (Reflect.apply(test, binding, [property])) { replace = property.replace; value5 = Reflect.apply(replace, property, [env1_1, '$1']); r14 = value5; break reducibleJoin10; } r14 = property; break reducibleJoin10; } match = r14.match; reducibleJoin23: while (true) { if (Reflect.apply(match, r14, [RegExp('\\S*Error: ', '')])) { break reducibleJoin23; } iterator = env0_0[Symbol.iterator](); iterator2 = iterator.next; r13 = iterator; reducibleLoop12: while (true) { item2 = Reflect.apply(iterator2, r13, []); item = item2.value; item2 = item2.done ? undefined : r13; if (item2 === undefined) { break reducibleLoop12; } try { value6 = item(r14); } catch (error) { break exceptionLanding21; } if (value6) { try { push = items2.push; } catch (error) { break exceptionLanding21; } try { Reflect.apply(push, items2, [value6]); } catch (error) { break exceptionLanding21; } item2.return(); break reducibleLoop12; } r13 = item2; continue reducibleLoop12; } length = items2.length; if (length >= 50 + r4) { break reducibleLoop7; } break reducibleJoin23; } } value7 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length = value.length; if (value7 < length) { r10 = value7; continue reducibleLoop7; } break reducibleLoop7; } } stripSentryFramesAndReverse_59361Binding = stripSentryFramesAndReverse_59361; slice = items2.slice; return stripSentryFramesAndReverse_59361Binding(Reflect.apply(slice, items2, [r4])); break exceptionSkip21; } try { item2.return(); } catch { } throw error; break exceptionSkip21; } } } function stripSentryFramesAndReverse_59361(a0) { // fn#59361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:743, offset: 0x016e8fa4, size: 246 bytes, params: 2, frame: 17 var r2; var value; var regexp; var test; var property; var binding; if (a0.length) { value = global.Array.from(a0); regexp = RegExp('sentryWrapped', ''); test = regexp.test; property = getLastStackFrame_59363(value).function; r2 = property || ''; if (Reflect.apply(test, regexp, [r2])) { value.pop(); } value.reverse(); binding = env0_2; test = binding.test; property = getLastStackFrame_59363(value).function; r2 = property || ''; if (Reflect.apply(test, binding, [r2])) { value.pop(); binding = env0_2; if (binding.test(getLastStackFrame_59363(value).function || '')) { value.pop(); } } value = value.slice(0, 50); return value.map(_fun59362); } return []; function _fun59362(a0) { // fn#59362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:1031, offset: 0x00d5da9c, size: 90 bytes, params: 2, frame: 18 const Object = global.Object; const assign = Object.assign; let filename = a0.filename; filename = !filename ? getLastStackFrame_59363(env0_0).filename : filename; return Reflect.apply(assign, Object, [{}, a0, {filename: filename, function: a0.function || '?'}]); } } function getFramesFromEvent_59364({exception}) { // fn#59364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:1311, offset: 0x016e909a, size: 62 bytes, params: 2, frame: 14 var values; var closure; var error; if (exception) { try { values = exception.values; closure = _fun59365; values.forEach(closure); } catch (error) { return undefined; } return []; } function _fun59365(a0) { // fn#59365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:1404, offset: 0x00d5db4e, size: 75 bytes, params: 2, frame: 15 var value; var push; var apply; var binding; if (a0.stacktrace.frames) { push = env0_0.push; apply = push.apply; binding = env0_0; value = environment.__proto__; Reflect.apply(apply, push, [binding, env1_0(a0.stacktrace.frames)]); } } } function stackParserFromStackParserOptions_59367(a0) { // fn#59367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:1650, offset: 0x00d5dc66, size: 58 bytes, params: 2, frame: 15 var r0; let value = a0; const Array = global.Array; if (Array.isArray(value)) { value = createStackParser_59357.apply(undefined, env0_0(value)); r0 = value; } else { r0 = value; } return r0; } } function _fun59358([property], a1) { // fn#59358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:272, offset: 0x00d5d830, size: 22 bytes, params: 3, frame: 3 return property - a1[0]; } function _fun59359(a0) { // fn#59359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7550:311, offset: 0x00d5d846, size: 12 bytes, params: 2, frame: 2 return a0[1]; } global.__d(_fun59356, 7372, [65]) /* metro module 7372, dependencies: [65] */;