/* Metro module 154; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 99, 100, 155, 151, 156] */ function _fun2397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:6, offset: 0x00c7ff79, size: 298 bytes, params: 8, frame: 19 const env0_1 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_4 = importDefault(6) /* metro dependency 6 */; const env0_5 = importDefault(7) /* metro dependency 7 */; const env0_6 = importDefault(15) /* metro dependency 15 */; const env0_7 = importDefault(17) /* metro dependency 17 */; const env0_8 = importDefault(102) /* metro dependency 102 */; const env0_9 = importDefault(18) /* metro dependency 18 */; const env0_10 = importDefault(99) /* metro dependency 99 */; let value = importDefault(100) /* metro dependency 100 */; const env0_12 = value('processingStart'); const env0_13 = value('processingEnd'); const env0_14 = value('interactionId'); const PerformanceEntry = (require(155) /* metro dependency 155 */).PerformanceEntry; value = _fun2403(PerformanceEntry); const value2 = _fun2411(); exports.PerformanceEventTiming = value; exports.EventCounts = value2; } function _isNativeReflectConstruct_2398() { // fn#2398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:179, offset: 0x00c800a3, size: 94 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_2398_isNativeReflectConstruct = function() { return !!result; })(); } function getCachedEventCounts() { // fn#2401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1733, offset: 0x00c80101, size: 292 bytes, params: 1, frame: 16 var r1; var Map; var map; var value6; if (env0_11) { return env0_11; } if (importDefault(151) /* metro dependency 151 */) { if ((importDefault(151) /* metro dependency 151 */) == null) { (require(156) /* metro dependency 156 */).warnNoNativePerformance(); Map = global.Map; value6 = Object.create(Map.prototype, {constructor: {value: Map}}); map = new Map(); return map instanceof Object ? map : value6; } if ((importDefault(151) /* metro dependency 151 */).getEventCounts) { Map = global.Map; r1 = (importDefault(151) /* metro dependency 151 */).getEventCounts?.(); r1 = r1 ?? []; map = new Map(); env0_0.queueMicrotask(function() { env1_11 = null; }); return map; } } (require(156) /* metro dependency 156 */).warnNoNativePerformance(); Map = global.Map; value6 = Object.create(Map.prototype, {constructor: {value: Map}}); map = new Map(); return map instanceof Object ? map : value6; } function _fun2403(a0) { // fn#2403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:471, offset: 0x00c80232, size: 137 bytes, params: 2, frame: 16 const closure = PerformanceEventTiming; env0_9(closure, a0); return env0_5(closure, [{key: 'processingStart', get: get_2405}, {key: 'processingEnd', get: get_2406}, {key: 'interactionId', get: get_2407}, {key: 'toJSON', value: value_2408}]); } function _fun2411() { // fn#2411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2039, offset: 0x00c8057d, size: 193 bytes, params: 1, frame: 15 return env0_5(EventCounts, [{key: 'size', get: function() { return getCachedEventCounts().size; }}, {key: 'entries', value: value_2414}, {key: 'forEach', value: value_2415}, {key: 'get', value: value_2416}, {key: 'has', value: value_2417}, {key: 'keys', value: value_2418}, {key: 'values', value: value_2419}]); } function PerformanceEventTiming({name, startTime, duration, processingStart, processingEnd, interactionId}) { // fn#2404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:483, offset: 0x00c802bb, size: 388 bytes, params: 2, frame: 24 const value = environment.__proto__; let binding = env1_4; binding(this, PerformanceEventTiming); const items2 = [{name: name, entryType: 'event', startTime: startTime ?? 0, duration: duration ?? 0}]; const value4 = env1_7(PerformanceEventTiming); const value7 = env1_6(this, _isNativeReflectConstruct_2398() ? global.Reflect.construct(value4, items2, env1_7(this).constructor) : value4.apply(this, items2)); let Object = global.Object; const defineProperty = Object.defineProperty; binding = env1_12; Reflect.apply(defineProperty, Object, [value7, binding, {writable: true, value: undefined}]); Object = global.Object; Object.defineProperty(value7, env1_13, {writable: true, value: undefined}); Object = global.Object; Object.defineProperty(value7, env1_14, {writable: true, value: undefined}); env1_10(value7, binding)[binding] = processingStart ?? 0; binding = env1_10; const binding4 = env1_13; binding(value7, binding4)[binding4] = processingEnd ?? 0; binding = env1_10; const binding5 = env1_14; binding(value7, binding5)[binding5] = interactionId ?? 0; return value7; } function get_2405() { // fn#2405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1213, offset: 0x00c8043f, size: 28 bytes, params: 1, frame: 13 const binding = env1_10; const binding2 = env1_12; return binding(this, binding2)[binding2]; } function get_2406() { // fn#2406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1275, offset: 0x00c8045b, size: 28 bytes, params: 1, frame: 13 const binding = env1_10; const binding2 = env1_13; return binding(this, binding2)[binding2]; } function get_2407() { // fn#2407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1337, offset: 0x00c80477, size: 28 bytes, params: 1, frame: 13 const binding = env1_10; const binding2 = env1_14; return binding(this, binding2)[binding2]; } function value_2408() { // fn#2408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1394, offset: 0x00c80493, size: 134 bytes, params: 1, frame: 21 const Object = global.Object; const assign = Object.assign; let value = value_2408_superPropGet(PerformanceEventTiming, 'toJSON', this, 3); value = value([]); const object2 = {}; const binding = env1_10; const binding2 = env1_12; object2.processingStart = binding(this, binding2)[binding2]; const binding3 = env1_13; object2.processingEnd = binding(this, binding3)[binding3]; const binding4 = env1_14; object2.interactionId = binding(this, binding4)[binding4]; return Reflect.apply(assign, Object, [{}, value, object2]); } function value_2414() { // fn#2414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2195, offset: 0x00c8066d, size: 25 bytes, params: 1, frame: 9 const value = environment.__proto__; return getCachedEventCounts().entries(); } function value_2415(a0) { // fn#2415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2277, offset: 0x00c80686, size: 28 bytes, params: 2, frame: 11 const value = environment.__proto__; return getCachedEventCounts().forEach(a0); } function value_2416(a0) { // fn#2416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2357, offset: 0x00c806a2, size: 28 bytes, params: 2, frame: 11 const value = environment.__proto__; return getCachedEventCounts().get(a0); } function value_2417(a0) { // fn#2417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2429, offset: 0x00c806be, size: 28 bytes, params: 2, frame: 11 const value = environment.__proto__; return getCachedEventCounts().has(a0); } function value_2418() { // fn#2418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2502, offset: 0x00c806da, size: 24 bytes, params: 1, frame: 9 const value = environment.__proto__; return getCachedEventCounts().keys(); } function value_2419() { // fn#2419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2577, offset: 0x00c806f2, size: 24 bytes, params: 1, frame: 9 const value = environment.__proto__; return getCachedEventCounts().values(); } function value_2408_superPropGet(a0, a1, a2, a3) { // fn#2409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1436, owner: value_2408._superPropGet, offset: 0x00c80519, size: 100 bytes, params: 5, frame: 18 let value = a0; const env0_0 = a2; const binding = env2_8; value = env2_7(1 & 3 ? value.prototype : value); value = binding(value, 'toJSON', a2); return 2 & 3 ? typeof value !== 'function' ? value : _fun2410 : value; }