Files
2026-07-28 01:06:53 +03:00

377 lines
15 KiB
JavaScript

/* Metro module 842; source: unknown; dependencies: [65] */
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
function _fun9112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:6, offset: 0x00d5d6f0, size: 216 bytes, params: 8, frame: 20
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(_fun9114).map(_fun9115);
return _fun9116;
};
const stripSentryFramesAndReverse2 = stripSentryFramesAndReverse;
const getLastStackFrame = function(a0) {
return a0[a0.length - 1] || ({});
};
let env0_0 = Module00065Module;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
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 = _fun9121;
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 = '<anonymous>';
r0 = value;
}
} catch (error) {
return '<anonymous>';
}
return r0;
};
exports.getVueInternalName = function(a0) {
return '__v_isVNode' in a0 && a0.__v_isVNode ? '[VueVNode]' : '[VueViewModel]';
};
exports.normalizeStackTracePath = function(a0) {
var r3;
var value = a0;
if (value == null) {
r3 = value;
} else if (value.startsWith('file://')) {
value = value.slice(7);
r3 = value;
} else {
r3 = value;
}
return r3 != null && r3.match(RegExp('\\/[A-Z]:', '')) ? r3.slice(1) : r3;
};
exports.stackParserFromStackParserOptions = stackParserFromStackParserOptions;
exports.stripSentryFramesAndReverse = stripSentryFramesAndReverse2;
function createStackParser() { // fn#9113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:167, offset: 0x00d5d7c8, 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 _fun9116;
function _fun9116(a0) { // fn#9116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:355, offset: 0x00d5d852, size: 340 bytes, params: 2, frame: 26
var r10;
var r4;
var r14;
var r15;
var value;
var value2;
var value3;
var items2;
var split;
var value4;
var length;
var value5;
var value6;
var property;
var slice;
var value7;
var binding;
var test;
var replace;
var value8;
var match;
var iterator;
var iterator2;
var item;
var item2;
var value9;
var push;
var error;
var value10;
var stripSentryFramesAndReverseBinding;
exceptionSkip22: while (true) {
exceptionLanding22: 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;
}
value3 = arguments[2];
r4 = value3;
break reducibleJoin6;
}
r4 = value;
break reducibleJoin6;
}
items2 = [];
split = a0.split;
value4 = Reflect.apply(split, a0, ['\n']);
length = value4.length;
value5 = environment;
value6 = environment.__proto__;
if (r10 < length) {
reducibleLoop7: while (true) {
property = value4[r10];
length = property.length;
reducibleJoin9: while (true) {
if (length > 1024) {
slice = property.slice;
value7 = Reflect.apply(slice, property, [value, 1024]);
r14 = value7;
break reducibleJoin9;
}
r14 = property;
break reducibleJoin9;
}
binding = env1_1;
test = binding.test;
reducibleJoin11: while (true) {
if (Reflect.apply(test, binding, [r14])) {
replace = r14.replace;
value8 = Reflect.apply(replace, r14, [env1_1, '$1']);
r15 = value8;
break reducibleJoin11;
}
r15 = r14;
break reducibleJoin11;
}
match = r15.match;
if (!Reflect.apply(match, r15, [RegExp('\\S*Error: ', '')])) {
iterator = env0_0[Symbol.iterator]();
iterator2 = iterator.next;
r14 = iterator;
reducibleLoop13: while (true) {
item2 = Reflect.apply(iterator2, r14, []);
item = item2.value;
item2 = item2.done ? undefined : r14;
if (item2 === undefined) {
break reducibleLoop13;
}
try {
value9 = item(r15);
} catch (error) {
break exceptionLanding22;
}
if (value9) {
try {
push = items2.push;
} catch (error) {
break exceptionLanding22;
}
try {
Reflect.apply(push, items2, [value9]);
} catch (error) {
break exceptionLanding22;
}
item2.return();
break reducibleLoop13;
}
r14 = item2;
continue reducibleLoop13;
}
reducibleJoin24: while (true) {
if (items2.length >= 50 + r4) {
break reducibleLoop7;
}
break reducibleJoin24;
}
}
value10 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
length = value4.length;
if (value10 < length) {
r10 = value10;
continue reducibleLoop7;
}
break reducibleLoop7;
}
}
stripSentryFramesAndReverseBinding = stripSentryFramesAndReverse;
slice = items2.slice;
return stripSentryFramesAndReverseBinding(Reflect.apply(slice, items2, [r4]));
break exceptionSkip22;
}
try {
item2.return();
} catch {
}
throw error;
break exceptionSkip22;
}
}
}
function stripSentryFramesAndReverse(a0) { // fn#9117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:766, offset: 0x00d5d9a6, 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(value).function;
r2 = property || '';
if (Reflect.apply(test, regexp, [r2])) {
value.pop();
}
value.reverse();
binding = env0_2;
test = binding.test;
property = getLastStackFrame(value).function;
r2 = property || '';
if (Reflect.apply(test, binding, [r2])) {
value.pop();
binding = env0_2;
if (binding.test(getLastStackFrame(value).function || '')) {
value.pop();
}
}
value = value.slice(0, 50);
return value.map(_fun9118);
}
return [];
function _fun9118(a0) { // fn#9118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:1054, offset: 0x00d5da9c, size: 90 bytes, params: 2, frame: 18
const Object = global.Object;
const assign = Object.assign;
let filename = a0.filename;
filename = !filename ? getLastStackFrame(env0_0).filename : filename;
return Reflect.apply(assign, Object, [{}, a0, {filename: filename, function: a0.function || '?'}]);
}
}
function getFramesFromEvent({exception}) { // fn#9120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:1331, offset: 0x00d5db10, size: 62 bytes, params: 2, frame: 14
var values;
var closure;
var error;
if (exception) {
try {
values = exception.values;
closure = _fun9121;
values.forEach(closure);
} catch (error) {
return undefined;
}
return [];
}
function _fun9121(a0) { // fn#9121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:1424, 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(a0) { // fn#9125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:1965, offset: 0x00d5dc66, size: 58 bytes, params: 2, frame: 15
var r0;
let value = a0;
const Array = global.Array;
if (Array.isArray(value)) {
value = createStackParser.apply(undefined, env0_0(value));
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
function _fun9114([property], a1) { // fn#9114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:282, offset: 0x00d5d830, size: 22 bytes, params: 3, frame: 3
return property - a1[0];
}
function _fun9115(a0) { // fn#9115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:969:321, offset: 0x00d5d846, size: 12 bytes, params: 2, frame: 2
return a0[1];
}
global.__d(_fun9112, 842, [65]) /* metro module 842, dependencies: [65] */;