2841 lines
116 KiB
React
2841 lines
116 KiB
React
/* Metro module 1066; source: unknown; dependencies: [57, 77, 1067, 826, 1047, 1069, 1070, 1042, 1048, 1050, 1051, 1071] */
|
|
function _fun11160(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:6, offset: 0x00da2860, size: 240 bytes, params: 8, frame: 23
|
|
let env0_0 = require;
|
|
const closure = _addMeasureSpans;
|
|
const closure2 = _addNavigationSpans;
|
|
const closure3 = _addResourceSpans;
|
|
const closure4 = function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
a2.forEach(_fun11167);
|
|
};
|
|
const env0_2 = require(57) /* metro dependency 57 */;
|
|
const env0_3 = require(77) /* metro dependency 77 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const env0_7 = {};
|
|
exports._addMeasureSpans = closure;
|
|
exports._addNavigationSpans = closure2;
|
|
exports._addResourceSpans = closure3;
|
|
exports._setResourceRequestAttributes = closure4;
|
|
exports.addPerformanceEntries = addPerformanceEntries;
|
|
exports.startTrackingInteractions = startTrackingInteractions;
|
|
exports.startTrackingLongAnimationFrames = function() {
|
|
var PerformanceObserver = global.PerformanceObserver;
|
|
new PerformanceObserver(_fun11176).observe({'type': 'long-animation-frame', 'buffered': true});
|
|
};
|
|
exports.startTrackingLongTasks = startTrackingLongTasks;
|
|
exports.startTrackingWebVitals = startTrackingWebVitals;
|
|
}
|
|
|
|
function _addMeasureSpans(a0, a1, a2, a3, a4, a5) { // fn#11161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:132, offset: 0x00da2950, size: 751 bytes, params: 7, frame: 33
|
|
var entryType;
|
|
var r2;
|
|
var requestStart;
|
|
var r8;
|
|
var value;
|
|
var detail;
|
|
var devtools;
|
|
var track;
|
|
var value2;
|
|
var error;
|
|
var items;
|
|
var includes;
|
|
var value3;
|
|
var moduleValue;
|
|
var stringMatchesSomePattern;
|
|
var name;
|
|
var value4;
|
|
var moduleValue2;
|
|
var getNavigationEntry;
|
|
var value5;
|
|
var moduleValue3;
|
|
var msToSec;
|
|
var value6;
|
|
var value7;
|
|
var Math;
|
|
var max;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var binding;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = require(dependencyMap[3]).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var value11;
|
|
var value12;
|
|
var property;
|
|
var moduleValue4;
|
|
var isPrimitive;
|
|
var isPrimitive2;
|
|
var JSON;
|
|
var stringify;
|
|
var value13;
|
|
var Object;
|
|
var entries;
|
|
var value14;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value15;
|
|
var value16;
|
|
var property2;
|
|
var property3;
|
|
var moduleValue5;
|
|
var isPrimitive3;
|
|
var value17;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var moduleValue6;
|
|
var startAndEndSpan;
|
|
exceptionLanding80: while (true) {
|
|
value = undefined;
|
|
reducibleJoin2: while (true) {
|
|
if (a1 == null) {
|
|
entryType = value;
|
|
break reducibleJoin2;
|
|
}
|
|
entryType = a1.entryType;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin9: while (true) {
|
|
reduciblePort8: while (true) {
|
|
exceptionLanding7: while (true) {
|
|
if (entryType !== 'measure') {
|
|
r2 = value;
|
|
break reduciblePort8;
|
|
}
|
|
try {
|
|
detail = a1.detail;
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
try {
|
|
devtools = detail.devtools;
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
try {
|
|
track = devtools.track;
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
value2 = track === 'Components ⚛';
|
|
r2 = value2;
|
|
break reduciblePort8;
|
|
}
|
|
r2 = value;
|
|
break reduciblePort8;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (r2) {
|
|
break reducibleJoin86;
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
return value;
|
|
}
|
|
items = ['mark', 'measure'];
|
|
includes = items.includes;
|
|
entryType = a1.entryType;
|
|
reducibleJoin86: while (true) {
|
|
reducibleJoin84: while (true) {
|
|
if (Reflect.apply(includes, items, [entryType])) {
|
|
value3 = environment;
|
|
moduleValue = require(dependencyMap[3]);
|
|
stringMatchesSomePattern = moduleValue.stringMatchesSomePattern;
|
|
name = a1.name;
|
|
if (Reflect.apply(stringMatchesSomePattern, moduleValue, [name, a5])) {
|
|
break reducibleJoin86;
|
|
}
|
|
value4 = environment;
|
|
moduleValue2 = require(dependencyMap[10]);
|
|
value5 = moduleValue2.getNavigationEntry(false);
|
|
moduleValue3 = require(dependencyMap[2]);
|
|
msToSec = moduleValue3.msToSec;
|
|
value6 = 0;
|
|
reducibleJoin13: while (true) {
|
|
if (value5) {
|
|
requestStart = value5.requestStart;
|
|
break reducibleJoin13;
|
|
}
|
|
requestStart = value6;
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = Reflect.apply(msToSec, moduleValue3, [requestStart]);
|
|
Math = global.Math;
|
|
value8 = a4 + Math.max(a2, value7);
|
|
value9 = a4 + a2;
|
|
value10 = value9 + a3;
|
|
binding = env0_3;
|
|
value11 = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.resource.browser.metrics');
|
|
reducibleJoin15: while (true) {
|
|
if (value8 === value9) {
|
|
break reducibleJoin15;
|
|
}
|
|
value11['sentry.browser.measure_happened_before_request'] = true;
|
|
value11['sentry.browser.measure_start_time'] = value8;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin16: while (true) {
|
|
reduciblePort84: while (true) {
|
|
exceptionLanding34: while (true) {
|
|
exceptionLanding83: while (true) {
|
|
try {
|
|
detail = a1.detail;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
break reduciblePort84;
|
|
}
|
|
break reduciblePort84;
|
|
}
|
|
if (value8 <= value10) {
|
|
moduleValue6 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue6.startAndEndSpan;
|
|
name = a1.name;
|
|
entryType = a1.entryType;
|
|
Reflect.apply(startAndEndSpan, moduleValue6, [a0, value8, value10, {name: name,
|
|
op: entryType,
|
|
attributes: value11}]);
|
|
break reducibleJoin86;
|
|
}
|
|
break reducibleJoin86;
|
|
}
|
|
if (detail) {
|
|
try {
|
|
value12 = typeof detail === 'object';
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (!value12) {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
isPrimitive = moduleValue4.isPrimitive;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
isPrimitive2 = Reflect.apply(isPrimitive, moduleValue4, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (isPrimitive2) {
|
|
try {
|
|
value11['sentry.browser.measure.detail'] = detail;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value13 = Reflect.apply(stringify, JSON, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value11['sentry.browser.measure.detail'] = value13;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
Object = global.Object;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
entries = Object.entries;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(entries, Object, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
iterator = value14[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
r8 = iterator;
|
|
reducibleLoop43: while (true) {
|
|
try {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
value15 = item2 === value;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (value15) {
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value16 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property = value16[value6];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property2 = value16[1];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
reducibleJoin59: while (true) {
|
|
reduciblePort79: while (true) {
|
|
exceptionLanding71: while (true) {
|
|
if (property2) {
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property3 = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
moduleValue5 = require(property3);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
isPrimitive = moduleValue5.isPrimitive;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
isPrimitive3 = Reflect.apply(isPrimitive, moduleValue5,
|
|
[property2]);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (isPrimitive3) {
|
|
try {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value20 = 'sentry.browser.measure.detail.' + property;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value11[value20] = property2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reduciblePort79;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
break reduciblePort79;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop43;
|
|
}
|
|
try {
|
|
try {
|
|
value17 = value === property2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
reducibleJoin79: while (true) {
|
|
if (value17) {
|
|
break reducibleJoin79;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value18 = 'sentry.browser.measure.detail.' + property;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value19 = Reflect.apply(stringify, JSON, [property2]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value11[value18] = value19;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop43;
|
|
}
|
|
if (!(value8 <= value10)) {
|
|
break reducibleJoin86;
|
|
}
|
|
moduleValue6 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue6.startAndEndSpan;
|
|
name = a1.name;
|
|
entryType = a1.entryType;
|
|
Reflect.apply(startAndEndSpan, moduleValue6, [a0, value8, value10, {name: name, op: entryType,
|
|
attributes: value11}]);
|
|
break reducibleJoin86;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
value4 = environment;
|
|
moduleValue2 = require(dependencyMap[10]);
|
|
getNavigationEntry = moduleValue2.getNavigationEntry;
|
|
value5 = Reflect.apply(getNavigationEntry, moduleValue2, [false]);
|
|
moduleValue3 = require(dependencyMap[2]);
|
|
msToSec = moduleValue3.msToSec;
|
|
value6 = 0;
|
|
reducibleJoin13: while (true) {
|
|
if (value5) {
|
|
requestStart = value5.requestStart;
|
|
break reducibleJoin13;
|
|
}
|
|
requestStart = value6;
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = Reflect.apply(msToSec, moduleValue3, [requestStart]);
|
|
Math = global.Math;
|
|
max = Math.max;
|
|
value8 = a4 + Reflect.apply(max, Math, [a2, value7]);
|
|
value9 = a4 + a2;
|
|
value10 = value9 + a3;
|
|
binding = env0_3;
|
|
value11 = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.resource.browser.metrics');
|
|
reducibleJoin15: while (true) {
|
|
if (value8 === value9) {
|
|
break reducibleJoin15;
|
|
}
|
|
value11['sentry.browser.measure_happened_before_request'] = true;
|
|
value11['sentry.browser.measure_start_time'] = value8;
|
|
break reducibleJoin15;
|
|
}
|
|
try {
|
|
detail = a1.detail;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (detail) {
|
|
try {
|
|
value12 = typeof detail === 'object';
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (!value12) {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
isPrimitive = moduleValue4.isPrimitive;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
isPrimitive2 = Reflect.apply(isPrimitive, moduleValue4, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (isPrimitive2) {
|
|
try {
|
|
value11['sentry.browser.measure.detail'] = detail;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value13 = Reflect.apply(stringify, JSON, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value11['sentry.browser.measure.detail'] = value13;
|
|
} catch (error) {
|
|
break exceptionLanding34;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
Object = global.Object;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
entries = Object.entries;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(entries, Object, [detail]);
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
iterator = value14[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
r8 = iterator;
|
|
reducibleLoop43: while (true) {
|
|
try {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
value15 = item2 === value;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (value15) {
|
|
break reducibleJoin84;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value16 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property = value16[value6];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property2 = value16[1];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
reducibleJoin79: while (true) {
|
|
reducibleJoin60: while (true) {
|
|
if (property2) {
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
property3 = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
moduleValue5 = require(property3);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
isPrimitive = moduleValue5.isPrimitive;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
isPrimitive3 = Reflect.apply(isPrimitive, moduleValue5, [property2]);
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (isPrimitive3) {
|
|
try {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value20 = 'sentry.browser.measure.detail.' + property;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
value11[value20] = property2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
try {
|
|
try {
|
|
value17 = value === property2;
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
if (value17) {
|
|
break reducibleJoin79;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value18 = 'sentry.browser.measure.detail.' + property;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value19 = Reflect.apply(stringify, JSON, [property2]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
value11[value18] = value19;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding80;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop43;
|
|
}
|
|
if (!(value8 <= value10)) {
|
|
break reducibleJoin86;
|
|
}
|
|
moduleValue6 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue6.startAndEndSpan;
|
|
name = a1.name;
|
|
entryType = a1.entryType;
|
|
Reflect.apply(startAndEndSpan, moduleValue6, [a0, value8, value10, {name: name, op: entryType,
|
|
attributes: value11}]);
|
|
break reducibleJoin86;
|
|
}
|
|
break reducibleJoin84;
|
|
}
|
|
if (value8 <= value10) {
|
|
moduleValue6 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue6.startAndEndSpan;
|
|
name = a1.name;
|
|
entryType = a1.entryType;
|
|
Reflect.apply(startAndEndSpan, moduleValue6, [a0, value8, value10, {name: name, op: entryType,
|
|
attributes: value11}]);
|
|
break reducibleJoin86;
|
|
}
|
|
break reducibleJoin86;
|
|
}
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding83;
|
|
}
|
|
}
|
|
|
|
function _addNavigationSpans(a0, a1, a2) { // fn#11162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:1274, offset: 0x00da2c3f, size: 436 bytes, params: 4, frame: 30
|
|
var moduleValue4;
|
|
var startAndEndSpan;
|
|
var name;
|
|
var binding;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var moduleValue5;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
let object = ['unloadEvent', 'redirect', 'domContentLoadedEvent', 'loadEvent', 'connect'];
|
|
object.forEach(_fun11163);
|
|
const _addPerformanceNavigationTimingBinding = _addPerformanceNavigationTiming;
|
|
_addPerformanceNavigationTimingBinding(a0, a1, 'secureConnection', a2, 'TLS/SSL');
|
|
_addPerformanceNavigationTimingBinding(a0, a1, 'fetch', a2, 'cache');
|
|
_addPerformanceNavigationTimingBinding(a0, a1, 'domainLookup', a2, 'DNS');
|
|
const moduleValue = require(1067) /* metro dependency 1067 */;
|
|
const value2 = a2 + moduleValue.msToSec(a1.requestStart);
|
|
const moduleValue2 = moduleValue;
|
|
const value3 = a2 + moduleValue2.msToSec(a1.responseEnd);
|
|
const moduleValue3 = moduleValue;
|
|
if (a1.responseEnd) {
|
|
moduleValue4 = moduleValue;
|
|
startAndEndSpan = moduleValue4.startAndEndSpan;
|
|
object = {op: 'browser.request'};
|
|
name = a1.name;
|
|
object.name = name;
|
|
binding = env0_3;
|
|
object.attributes = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics');
|
|
Reflect.apply(startAndEndSpan, moduleValue4, [a0, value2, value3, object]);
|
|
moduleValue5 = require(1067) /* metro dependency 1067 */;
|
|
startAndEndSpan = moduleValue5.startAndEndSpan;
|
|
object = {op: 'browser.response'};
|
|
name = a1.name;
|
|
object.name = name;
|
|
binding = env0_3;
|
|
object.attributes = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics');
|
|
Reflect.apply(startAndEndSpan, moduleValue5, [a0, a2 + moduleValue3.msToSec(a1.responseStart), value3, object]);
|
|
}
|
|
}
|
|
|
|
function _addPerformanceNavigationTiming(a0, a1, a2, a3) { // fn#11164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:2097, offset: 0x00da2e16, size: 384 bytes, params: 5, frame: 27
|
|
var moduleValue;
|
|
var startAndEndSpan;
|
|
var moduleValue2;
|
|
var msToSec;
|
|
var value7;
|
|
var moduleValue3;
|
|
var value8;
|
|
var object2;
|
|
var Object;
|
|
const value = a2;
|
|
const r14 = arguments.length > 4 ? arguments[4] === undefined ? value : arguments[4] : value;
|
|
const property = a1[value === 'secureConnection' ? 'connectEnd' : value === 'fetch' ? 'domainLookupStart' : '' + value + 'End'];
|
|
const property2 = a1['' + value + 'Start'];
|
|
if (property2 && property) {
|
|
moduleValue = require(1067) /* metro dependency 1067 */;
|
|
startAndEndSpan = moduleValue.startAndEndSpan;
|
|
moduleValue2 = require(1067) /* metro dependency 1067 */;
|
|
msToSec = moduleValue2.msToSec;
|
|
value7 = a3 + Reflect.apply(msToSec, moduleValue2, [property2]);
|
|
moduleValue3 = require(1067) /* metro dependency 1067 */;
|
|
msToSec = moduleValue3.msToSec;
|
|
value8 = a3 + Reflect.apply(msToSec, moduleValue3, [property]);
|
|
object2 = {};
|
|
object2.op = 'browser.' + r14;
|
|
object2.name = a1.name;
|
|
Object = global.Object;
|
|
object2.attributes = Object.assign(env0_3({},
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics'),
|
|
value !== 'redirect' ? {} : a1.redirectCount != null ? {['http.redirect_count']: a1.redirectCount} : {});
|
|
Reflect.apply(startAndEndSpan, moduleValue, [a0, value7, value8, object2]);
|
|
}
|
|
}
|
|
|
|
function _addResourceSpans(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:2680, offset: 0x00da2f96, size: 558 bytes, params: 8, frame: 24
|
|
var r6;
|
|
var value;
|
|
var includes;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = require(dependencyMap[3]).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var value2;
|
|
var url;
|
|
var value3;
|
|
const WINDOW = require(dependencyMap[4]).WINDOW;
|
|
var location;
|
|
var origin;
|
|
var Object;
|
|
var assign;
|
|
var value4;
|
|
var value5;
|
|
var moduleValue2;
|
|
var startAndEndSpan;
|
|
var replace;
|
|
let initiatorType = require.initiatorType;
|
|
if (initiatorType !== 'xmlhttprequest') {
|
|
initiatorType = require.initiatorType;
|
|
if (initiatorType !== 'fetch') {
|
|
initiatorType = require.initiatorType;
|
|
value = 'resource.other';
|
|
r6 = initiatorType ? 'resource.' + require.initiatorType : value;
|
|
if (dependencyMap == null) {
|
|
value2 = env0_3({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.resource.browser.metrics');
|
|
url = require(dependencyMap[3]).parseUrl(importDefault);
|
|
if (url.protocol) {
|
|
value3 = url.protocol.split(':');
|
|
value2['url.scheme'] = value3.pop();
|
|
}
|
|
if (url.host) {
|
|
value2['server.address'] = url.host;
|
|
}
|
|
includes = importDefault.includes;
|
|
location = WINDOW.location;
|
|
origin = location.origin;
|
|
value2['url.same_origin'] = Reflect.apply(includes, importDefault, [origin]);
|
|
_setResourceRequestAttributes(require, value2, [['responseStatus', 'http.response.status_code'],
|
|
['transferSize',
|
|
'http.response_transfer_size'], ['encodedBodySize', 'http.response_content_length'],
|
|
['decodedBodySize',
|
|
'http.decoded_response_content_length'], ['renderBlockingStatus',
|
|
'resource.render_blocking_status'],
|
|
['deliveryType', 'http.response_delivery_type']]);
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value = require(dependencyMap[11]);
|
|
value = value.resourceTimingToSpanAttributes(require);
|
|
value = Reflect.apply(assign, Object, [{}, value2, value]);
|
|
value4 = exports + importAll;
|
|
value5 = value4 + module;
|
|
moduleValue2 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue2.startAndEndSpan;
|
|
replace = importDefault.replace;
|
|
location = WINDOW.location;
|
|
origin = location.origin;
|
|
Reflect.apply(startAndEndSpan, moduleValue2, [global, value4, value5, {name: Reflect.apply(replace,
|
|
importDefault,
|
|
[origin, '']), op: r6, attributes: value}]);
|
|
} else {
|
|
includes = dependencyMap.includes;
|
|
if (!Reflect.apply(includes, dependencyMap, [r6])) {
|
|
value2 = env0_3({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.resource.browser.metrics');
|
|
url = require(dependencyMap[3]).parseUrl(importDefault);
|
|
if (url.protocol) {
|
|
value3 = url.protocol.split(':');
|
|
value2['url.scheme'] = value3.pop();
|
|
}
|
|
if (url.host) {
|
|
value2['server.address'] = url.host;
|
|
}
|
|
includes = importDefault.includes;
|
|
location = WINDOW.location;
|
|
origin = location.origin;
|
|
value2['url.same_origin'] = Reflect.apply(includes, importDefault, [origin]);
|
|
_setResourceRequestAttributes(require, value2, [['responseStatus', 'http.response.status_code'],
|
|
['transferSize',
|
|
'http.response_transfer_size'], ['encodedBodySize', 'http.response_content_length'],
|
|
['decodedBodySize',
|
|
'http.decoded_response_content_length'], ['renderBlockingStatus',
|
|
'resource.render_blocking_status'],
|
|
['deliveryType', 'http.response_delivery_type']]);
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value = require(dependencyMap[11]);
|
|
value = value.resourceTimingToSpanAttributes(require);
|
|
value = Reflect.apply(assign, Object, [{}, value2, value]);
|
|
value4 = exports + importAll;
|
|
value5 = value4 + module;
|
|
moduleValue2 = require(dependencyMap[2]);
|
|
startAndEndSpan = moduleValue2.startAndEndSpan;
|
|
replace = importDefault.replace;
|
|
location = WINDOW.location;
|
|
origin = location.origin;
|
|
Reflect.apply(startAndEndSpan, moduleValue2, [global, value4, value5, {name: Reflect.apply(replace,
|
|
importDefault,
|
|
[origin, '']), op: r6, attributes: value}]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _setResourceRequestAttributes(a0, a1, a2) { // fn#11166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:3682, offset: 0x00da31c4, size: 38 bytes, params: 4, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
a2.forEach(_fun11167);
|
|
}
|
|
|
|
function addPerformanceEntries(a0, a1) { // fn#11168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:4064, offset: 0x00da3253, size: 838 bytes, params: 3, frame: 24
|
|
var value4;
|
|
var entries;
|
|
var value6;
|
|
var op;
|
|
var start_timestamp;
|
|
var Math;
|
|
var navigator;
|
|
var connection;
|
|
var moduleValue5;
|
|
var isMeasurementValue;
|
|
var binding;
|
|
var moduleValue6;
|
|
var moduleValue7;
|
|
var navigationEntry;
|
|
var responseStart;
|
|
var requestStart;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const browserPerformanceAPI = (require(1067) /* metro dependency 1067 */).getBrowserPerformanceAPI();
|
|
const value3 = (require(826) /* metro dependency 826 */).browserPerformanceTimeOrigin();
|
|
if (browserPerformanceAPI != null) {
|
|
if (browserPerformanceAPI.getEntries) {
|
|
if (value3) {
|
|
value4 = (require(1067) /* metro dependency 1067 */).msToSec(value3);
|
|
entries = browserPerformanceAPI.getEntries();
|
|
value6 = (require(826) /* metro dependency 826 */).spanToJSON(a0);
|
|
op = value6.op;
|
|
start_timestamp = value6.start_timestamp;
|
|
entries.slice(env0_6).forEach(_fun11169);
|
|
Math = global.Math;
|
|
env0_6 = Math.max(entries.length - 1, 0);
|
|
navigator = (require(1047) /* metro dependency 1047 */).WINDOW.navigator;
|
|
if (navigator) {
|
|
connection = navigator.connection;
|
|
if (connection) {
|
|
if (connection.effectiveType) {
|
|
a0.setAttribute('effectiveConnectionType', connection.effectiveType);
|
|
}
|
|
if (connection.type) {
|
|
a0.setAttribute('connectionType', connection.type);
|
|
}
|
|
moduleValue5 = require(1067) /* metro dependency 1067 */;
|
|
if (moduleValue5.isMeasurementValue(connection.rtt)) {
|
|
env0_7['connection.rtt'] = {value: connection.rtt, unit: 'millisecond'};
|
|
}
|
|
}
|
|
moduleValue6 = require(1067) /* metro dependency 1067 */;
|
|
isMeasurementValue = moduleValue6.isMeasurementValue;
|
|
if (Reflect.apply(isMeasurementValue, moduleValue6, [navigator.deviceMemory])) {
|
|
a0.setAttribute('deviceMemory', '' + navigator.deviceMemory + ' GB');
|
|
}
|
|
moduleValue7 = require(1067) /* metro dependency 1067 */;
|
|
isMeasurementValue = moduleValue7.isMeasurementValue;
|
|
if (Reflect.apply(isMeasurementValue, moduleValue7, [navigator.hardwareConcurrency])) {
|
|
a0.setAttribute('hardwareConcurrency', global.String(navigator.hardwareConcurrency));
|
|
}
|
|
}
|
|
if (op === 'pageload') {
|
|
binding = env0_7;
|
|
navigationEntry = (require(1051) /* metro dependency 1051 */).getNavigationEntry(false);
|
|
if (navigationEntry) {
|
|
responseStart = navigationEntry.responseStart;
|
|
requestStart = navigationEntry.requestStart;
|
|
if (requestStart <= responseStart) {
|
|
binding['ttfb.requestTime'] = {value: responseStart - requestStart, unit: 'millisecond'};
|
|
}
|
|
}
|
|
if (!a1.recordClsOnPageloadSpan) {
|
|
delete env0_7.cls;
|
|
}
|
|
if (!a1.recordLcpOnPageloadSpan) {
|
|
delete env0_7.lcp;
|
|
}
|
|
global.Object.entries(env0_7).forEach(_fun11170);
|
|
a0.setAttribute('performance.timeOrigin', value4);
|
|
a0.setAttribute('performance.activationStart',
|
|
(require(1050) /* metro dependency 1050 */).getActivationStart());
|
|
_setWebVitalAttributes(a0, a1);
|
|
}
|
|
env0_7 = {};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function startTrackingInteractions() { // fn#11173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:6631, offset: 0x00da398d, size: 50 bytes, params: 1, frame: 14
|
|
(require(1042) /* metro dependency 1042 */).addPerformanceInstrumentationHandler('event', _fun11174);
|
|
}
|
|
|
|
function startTrackingLongAnimationFrames() { // fn#11175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:7244, offset: 0x00da3b63, size: 64 bytes, params: 1, frame: 11
|
|
const PerformanceObserver = global.PerformanceObserver;
|
|
new PerformanceObserver(_fun11176).observe({'type': 'long-animation-frame', 'buffered': true});
|
|
}
|
|
|
|
function startTrackingLongTasks() { // fn#11177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:8129, offset: 0x00da3db4, size: 52 bytes, params: 1, frame: 14
|
|
(require(1042) /* metro dependency 1042 */).addPerformanceInstrumentationHandler('longtask', _fun11178);
|
|
}
|
|
|
|
function startTrackingWebVitals({recordClsStandaloneSpans, recordLcpStandaloneSpans, client}) { // fn#11179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:8679, offset: 0x00da3f5b, size: 277 bytes, params: 2, frame: 18
|
|
var moduleValue2;
|
|
var value3;
|
|
var value4;
|
|
var value;
|
|
const browserPerformanceAPI = (require(1067) /* metro dependency 1067 */).getBrowserPerformanceAPI();
|
|
if (browserPerformanceAPI) {
|
|
moduleValue2 = require(826) /* metro dependency 826 */;
|
|
if (moduleValue2.browserPerformanceTimeOrigin()) {
|
|
if (browserPerformanceAPI.mark) {
|
|
(require(1047) /* metro dependency 1047 */).WINDOW.performance.mark('sentry-tracing-init');
|
|
}
|
|
if (recordLcpStandaloneSpans) {
|
|
value4 = (require(1069) /* metro dependency 1069 */).trackLcpAsStandaloneSpan(client);
|
|
} else {
|
|
value3 = _trackLCP();
|
|
}
|
|
var env0_1 = _trackTtfb();
|
|
if (recordClsStandaloneSpans) {
|
|
value = require(1070) /* metro dependency 1070 */;
|
|
value = value.trackClsAsStandaloneSpan(client);
|
|
} else {
|
|
value = _trackCLS();
|
|
}
|
|
return _fun11186;
|
|
}
|
|
}
|
|
return function() {
|
|
};
|
|
}
|
|
|
|
function _fun11163(a0) { // fn#11163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:1392, offset: 0x00da2df3, size: 35 bytes, params: 2, frame: 17
|
|
_addPerformanceNavigationTiming(env0_0, require, a0, importDefault);
|
|
}
|
|
|
|
function _fun11167(a0) { // fn#11167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:3739, offset: 0x00da31ea, size: 105 bytes, params: 2, frame: 17
|
|
var r5;
|
|
var r4;
|
|
var value3;
|
|
let value = environment.__proto__;
|
|
value = env1_2(a0, 2);
|
|
let property = value[0];
|
|
const property2 = value[1];
|
|
property = env0_0[property];
|
|
const value2 = property != null;
|
|
if (value2) {
|
|
value3 = typeof property;
|
|
r5 = value3 === 'number' && property < 2147483647;
|
|
r5 = !r5 ? value3 === 'string' : r5;
|
|
r4 = r5;
|
|
} else {
|
|
r4 = value2;
|
|
}
|
|
if (r4) {
|
|
require[property2] = property;
|
|
}
|
|
}
|
|
|
|
function _fun11169(a0) { // fn#11169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:4324, offset: 0x00da3599, size: 447 bytes, params: 2, frame: 25
|
|
var r3;
|
|
var entryType;
|
|
var name;
|
|
var value7;
|
|
const moduleValue = require(1067) /* metro dependency 1067 */;
|
|
let msToSec = moduleValue.msToSec;
|
|
const value2 = Reflect.apply(msToSec, moduleValue, [a0.startTime]);
|
|
const moduleValue2 = moduleValue;
|
|
msToSec = moduleValue2.msToSec;
|
|
const Math = global.Math;
|
|
const value3 = Reflect.apply(msToSec, moduleValue2, [Math.max(0, a0.duration)]);
|
|
if (op !== 'navigation') {
|
|
entryType = a0.entryType;
|
|
if (entryType === 'navigation') {
|
|
_addNavigationSpans(env0_0, a0, env0_2);
|
|
} else if (entryType === 'mark') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'paint') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'measure') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'resource') {
|
|
_addResourceSpans(env0_0, a0, a0.name, value2, value3, env0_2, require.ignoreResourceSpans);
|
|
}
|
|
} else if (start_timestamp) {
|
|
if (!(env0_2 + value2 < start_timestamp)) {
|
|
entryType = a0.entryType;
|
|
if (entryType === 'navigation') {
|
|
_addNavigationSpans(env0_0, a0, env0_2);
|
|
} else if (entryType === 'mark') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'paint') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'measure') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'resource') {
|
|
_addResourceSpans(env0_0, a0, a0.name, value2, value3, env0_2, require.ignoreResourceSpans);
|
|
}
|
|
}
|
|
} else {
|
|
entryType = a0.entryType;
|
|
if (entryType === 'navigation') {
|
|
_addNavigationSpans(env0_0, a0, env0_2);
|
|
} else if (entryType === 'mark') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'paint') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'measure') {
|
|
_addMeasureSpans(env0_0, a0, value2, value3, env0_2, require.ignorePerformanceApiSpans);
|
|
value7 = a0.startTime < (require(1048) /* metro dependency 1048 */).getVisibilityWatcher().firstHiddenTime;
|
|
name = a0.name;
|
|
r3 = name === 'first-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
name = a0.name;
|
|
r3 = name === 'first-contentful-paint' && value7;
|
|
if (r3) {
|
|
env1_7.fcp = {value: a0.startTime, unit: 'millisecond'};
|
|
}
|
|
} else if (entryType === 'resource') {
|
|
_addResourceSpans(env0_0, a0, a0.name, value2, value3, env0_2, require.ignoreResourceSpans);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun11170(a0) { // fn#11170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:5800, offset: 0x00da3758, size: 80 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__;
|
|
const value2 = env1_2(a0, 2);
|
|
const property = value2[0];
|
|
const property2 = value2[1];
|
|
value = require(826) /* metro dependency 826 */;
|
|
value.setMeasurement(property, property2.value, property2.unit);
|
|
}
|
|
|
|
function _setWebVitalAttributes(a0, a1) { // fn#11171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:6001, owner: addPerformanceEntries._setWebVitalAttributes, offset: 0x00da37a8, size: 385 bytes, params: 3, frame: 18
|
|
var setAttribute;
|
|
var moduleValue;
|
|
const env0_0 = a0;
|
|
let binding = env1_4;
|
|
if (binding && a1.recordLcpOnPageloadSpan) {
|
|
if (env1_4.element) {
|
|
setAttribute = a0.setAttribute;
|
|
moduleValue = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(setAttribute, a0, ['lcp.element', moduleValue.htmlTreeAsString(env1_4.element)]);
|
|
}
|
|
if (env1_4.id) {
|
|
a0.setAttribute('lcp.id', env1_4.id);
|
|
}
|
|
if (env1_4.url) {
|
|
a0.setAttribute('lcp.url', env1_4.url.trim().slice(0, 200));
|
|
}
|
|
if (env1_4.loadTime != null) {
|
|
a0.setAttribute('lcp.loadTime', env1_4.loadTime);
|
|
}
|
|
if (env1_4.renderTime != null) {
|
|
a0.setAttribute('lcp.renderTime', env1_4.renderTime);
|
|
}
|
|
a0.setAttribute('lcp.size', env1_4.size);
|
|
}
|
|
binding = env1_5;
|
|
if (binding != null && binding.sources && a1.recordClsOnPageloadSpan) {
|
|
env1_5.sources.forEach(_fun11172);
|
|
}
|
|
}
|
|
|
|
function _fun11174(a0) { // fn#11174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:6722, offset: 0x00da39bf, size: 420 bytes, params: 2, frame: 35
|
|
var r2;
|
|
var entries;
|
|
var value;
|
|
var moduleValue;
|
|
var getActiveSpan;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var name;
|
|
var value3;
|
|
var property;
|
|
var moduleValue2;
|
|
var msToSec;
|
|
var moduleValue3;
|
|
var browserPerformanceTimeOrigin;
|
|
var value4;
|
|
var startTime;
|
|
var value5;
|
|
var value6;
|
|
var moduleValue4;
|
|
var duration;
|
|
var value7;
|
|
var object3;
|
|
var moduleValue5;
|
|
var htmlTreeAsString;
|
|
var target;
|
|
var value8;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value9;
|
|
var binding;
|
|
var moduleValue6;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var object4;
|
|
var value10;
|
|
var moduleValue7;
|
|
var getComponentName;
|
|
var value11;
|
|
var attributes;
|
|
var moduleValue8;
|
|
var startAndEndSpan;
|
|
var value12;
|
|
var error;
|
|
exceptionSkip65: while (true) {
|
|
exceptionLanding65: while (true) {
|
|
entries = a0.entries;
|
|
value = environment.__proto__;
|
|
moduleValue = require(dependencyMap[3]);
|
|
getActiveSpan = moduleValue.getActiveSpan;
|
|
value2 = Reflect.apply(getActiveSpan, moduleValue, []);
|
|
if (value2) {
|
|
iterator = entries[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
name = item.name;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value3 = name !== 'click';
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
if (value3) {
|
|
r2 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
msToSec = moduleValue2.msToSec;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
browserPerformanceTimeOrigin = moduleValue3.browserPerformanceTimeOrigin;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(browserPerformanceTimeOrigin, moduleValue3, []);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
startTime = item.startTime;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value5 = value4 + startTime;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(msToSec, moduleValue2, [value5]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
msToSec = moduleValue4.msToSec;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
duration = item.duration;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(msToSec, moduleValue4, [duration]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue5 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
htmlTreeAsString = moduleValue5.htmlTreeAsString;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
target = item.target;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(htmlTreeAsString, moduleValue5, [target]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.name = value8;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
name = item.name;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value9 = 'ui.interaction.' + name;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.op = value9;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.startTime = value6;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue6 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = moduleValue6.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value10 = binding(object4, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics');
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.attributes = value10;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue7 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
getComponentName = moduleValue7.getComponentName;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
target = item.target;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(getComponentName, moduleValue7, [target]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
if (!value11) {
|
|
continue;
|
|
}
|
|
try {
|
|
attributes = object3.attributes;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
attributes['ui.component_name'] = value11;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
moduleValue8 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
startAndEndSpan = moduleValue8.startAndEndSpan;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value12 = value6 + value7;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
Reflect.apply(startAndEndSpan, moduleValue8, [value2, value6, value12, object3]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
}
|
|
return undefined;
|
|
break exceptionSkip65;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip65;
|
|
}
|
|
}
|
|
|
|
function _fun11176(a0) { // fn#11176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:7313, offset: 0x00da3ba3, size: 529 bytes, params: 2, frame: 37
|
|
var r2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var scripts;
|
|
var property;
|
|
var moduleValue2;
|
|
var msToSec;
|
|
var moduleValue3;
|
|
var browserPerformanceTimeOrigin;
|
|
var value3;
|
|
var startTime;
|
|
var value4;
|
|
var value5;
|
|
var moduleValue4;
|
|
var spanToJSON;
|
|
var value6;
|
|
var start_timestamp;
|
|
var op;
|
|
var value7;
|
|
var value8;
|
|
var moduleValue5;
|
|
var duration;
|
|
var value9;
|
|
var binding;
|
|
var moduleValue6;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var object2;
|
|
var value10;
|
|
var invoker;
|
|
var invokerType;
|
|
var sourceURL;
|
|
var sourceFunctionName;
|
|
var sourceCharPosition;
|
|
var value11;
|
|
var moduleValue7;
|
|
var startAndEndSpan;
|
|
var value12;
|
|
var error;
|
|
const activeSpan = require(dependencyMap[3]).getActiveSpan();
|
|
if (activeSpan) {
|
|
iterator = a0.getEntries()[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r2 = iterator;
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
}
|
|
}
|
|
return undefined;
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
scripts = item.scripts;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = scripts[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin2: while (true) {
|
|
if (property) {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
msToSec = moduleValue2.msToSec;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
browserPerformanceTimeOrigin = moduleValue3.browserPerformanceTimeOrigin;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(browserPerformanceTimeOrigin, moduleValue3, []);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
startTime = item.startTime;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = value3 + startTime;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(msToSec, moduleValue2, [value4]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
spanToJSON = moduleValue4.spanToJSON;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(spanToJSON, moduleValue4, [activeSpan]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
start_timestamp = value6.start_timestamp;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
op = value6.op;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = op !== 'navigation';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value7) {
|
|
if (start_timestamp) {
|
|
try {
|
|
value8 = value5 < start_timestamp;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
r2 = item2;
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue5 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
msToSec = moduleValue5.msToSec;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
duration = item.duration;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(msToSec, moduleValue5, [duration]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue6 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = moduleValue6.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = binding(object2, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics');
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
scripts = item.scripts;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = scripts[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
invoker = property.invoker;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
invokerType = property.invokerType;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
sourceURL = property.sourceURL;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
sourceFunctionName = property.sourceFunctionName;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
sourceCharPosition = property.sourceCharPosition;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10['browser.script.invoker'] = invoker;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10['browser.script.invoker_type'] = invokerType;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin59: while (true) {
|
|
if (sourceURL) {
|
|
try {
|
|
value10['code.filepath'] = sourceURL;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (sourceFunctionName) {
|
|
try {
|
|
value10['code.function'] = sourceFunctionName;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
try {
|
|
value11 = sourceCharPosition === -1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin66: while (true) {
|
|
if (value11) {
|
|
break reducibleJoin66;
|
|
}
|
|
try {
|
|
value10['browser.script.source_char_position'] = sourceCharPosition;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
break reducibleJoin66;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue7 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
startAndEndSpan = moduleValue7.startAndEndSpan;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = value5 + value9;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {'name': 'Main UI thread blocked', 'op': 'ui.long-animation-frame'};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.attributes = value10;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(startAndEndSpan, moduleValue7, [activeSpan, value5, value12, object2]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin2;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin2;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
|
|
function _fun11178(a0) { // fn#11178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:8220, offset: 0x00da3de8, size: 371 bytes, params: 2, frame: 33
|
|
var r2;
|
|
var r14;
|
|
var r13;
|
|
var entries;
|
|
var value;
|
|
var moduleValue;
|
|
var getActiveSpan;
|
|
var value2;
|
|
var moduleValue2;
|
|
var spanToJSON;
|
|
var value3;
|
|
var op;
|
|
var start_timestamp;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var moduleValue3;
|
|
var msToSec;
|
|
var moduleValue4;
|
|
var browserPerformanceTimeOrigin;
|
|
var value4;
|
|
var startTime;
|
|
var value5;
|
|
var value6;
|
|
var moduleValue5;
|
|
var duration;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var moduleValue6;
|
|
var startAndEndSpan;
|
|
var value10;
|
|
var object3;
|
|
var binding;
|
|
var moduleValue7;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var object4;
|
|
var value11;
|
|
var error;
|
|
exceptionSkip43: while (true) {
|
|
exceptionLanding43: while (true) {
|
|
entries = a0.entries;
|
|
value = environment.__proto__;
|
|
moduleValue = require(dependencyMap[3]);
|
|
getActiveSpan = moduleValue.getActiveSpan;
|
|
value2 = Reflect.apply(getActiveSpan, moduleValue, []);
|
|
if (value2) {
|
|
moduleValue2 = require(dependencyMap[3]);
|
|
spanToJSON = moduleValue2.spanToJSON;
|
|
value3 = Reflect.apply(spanToJSON, moduleValue2, [value2]);
|
|
op = value3.op;
|
|
start_timestamp = value3.start_timestamp;
|
|
iterator = entries[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
msToSec = moduleValue3.msToSec;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
browserPerformanceTimeOrigin = moduleValue4.browserPerformanceTimeOrigin;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(browserPerformanceTimeOrigin, moduleValue4, []);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
startTime = item.startTime;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value5 = value4 + startTime;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(msToSec, moduleValue3, [value5]);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
moduleValue5 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
msToSec = moduleValue5.msToSec;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
duration = item.duration;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(msToSec, moduleValue5, [duration]);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
value8 = op === 'navigation';
|
|
if (!value8) {
|
|
r14 = value8;
|
|
continue;
|
|
}
|
|
r14 = start_timestamp;
|
|
if (!r14) {
|
|
r13 = r14;
|
|
continue;
|
|
}
|
|
try {
|
|
value9 = value6 < start_timestamp;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
r13 = value9;
|
|
if (r13) {
|
|
r2 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
moduleValue6 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
startAndEndSpan = moduleValue6.startAndEndSpan;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value10 = value6 + value7;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
object3 = {'name': 'Main UI thread blocked', 'op': 'ui.long-task'};
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
moduleValue7 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = moduleValue7.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
value11 = binding(object4, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ui.browser.metrics');
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
object3.attributes = value11;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
try {
|
|
Reflect.apply(startAndEndSpan, moduleValue6, [value2, value6, value10, object3]);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
}
|
|
return undefined;
|
|
break exceptionSkip43;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip43;
|
|
}
|
|
}
|
|
|
|
function _trackLCP() { // fn#11180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:8977, owner: startTrackingWebVitals._trackLCP, offset: 0x00da4070, size: 48 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return (require(1042) /* metro dependency 1042 */).addLcpInstrumentationHandler(_fun11181, true);
|
|
}
|
|
|
|
function _trackTtfb() { // fn#11182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9163, owner: startTrackingWebVitals._trackTtfb, offset: 0x00da40f1, size: 45 bytes, params: 1, frame: 11
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return (require(1042) /* metro dependency 1042 */).addTtfbInstrumentationHandler(_fun11183);
|
|
}
|
|
|
|
function _trackCLS() { // fn#11184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9379, owner: startTrackingWebVitals._trackCLS, offset: 0x00da416d, size: 48 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return (require(1042) /* metro dependency 1042 */).addClsInstrumentationHandler(_fun11185, true);
|
|
}
|
|
|
|
function _fun11186() { // fn#11186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9559, offset: 0x00da41ee, size: 51 bytes, params: 1, frame: 11
|
|
if (env0_0 != null) {
|
|
env0_0();
|
|
}
|
|
env0_1();
|
|
if (env0_2 != null) {
|
|
env0_2();
|
|
}
|
|
}
|
|
|
|
function _fun11172({node}, a1) { // fn#11172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:6478, offset: 0x00da3929, size: 100 bytes, params: 3, frame: 15
|
|
const binding = env0_0;
|
|
const setAttribute = binding.setAttribute;
|
|
let value = a1 + 1;
|
|
value = 'cls.source.' + value;
|
|
const moduleValue = require(826) /* metro dependency 826 */;
|
|
return Reflect.apply(setAttribute, binding, [value, moduleValue.htmlTreeAsString(node)]);
|
|
}
|
|
|
|
function _fun11181({metric}) { // fn#11181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9043, offset: 0x00da40a0, size: 81 bytes, params: 2, frame: 5
|
|
var value;
|
|
if (metric.entries[metric.entries.length - 1]) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_7.lcp = {value: metric.value, unit: 'millisecond'};
|
|
}
|
|
}
|
|
|
|
function _fun11183({metric}) { // fn#11183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9231, offset: 0x00da411e, size: 79 bytes, params: 2, frame: 4
|
|
var value;
|
|
var binding;
|
|
if (metric.entries[metric.entries.length - 1]) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_7;
|
|
value = metric.value;
|
|
binding.ttfb = {value: value, unit: 'millisecond'};
|
|
}
|
|
}
|
|
|
|
function _fun11185({metric}) { // fn#11185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1193:9445, offset: 0x00da419d, size: 81 bytes, params: 2, frame: 5
|
|
var value;
|
|
if (metric.entries[metric.entries.length - 1]) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_7.cls = {value: metric.value, unit: ''};
|
|
}
|
|
}
|
|
|