/* Metro module 64; source: unknown; dependencies: [65, 6, 7, 69, 70, 71, 44] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import Module00065 from './module-00065.js'; /* Metro dependency 65 */ import * as Module00069Module from './module-00069.js'; /* Metro dependency 69 */ function _fun1411(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:6, offset: 0x00c5badd, size: 127 bytes, params: 8, frame: 18 const env0_1 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.default = _fun1412(); function _fun1412() { // fn#1412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:128, offset: 0x00c5bb5c, size: 453 bytes, params: 1, frame: 16 return CreateClass(MessageQueue, [{key: 'callFunctionReturnFlushedQueue', value: function(a0, a1, a2) { var env0_0 = a0; var env0_1 = a1; var env0_2 = a2; var env0_3 = this; this.__guard(_fun1415); return this.flushedQueue(); }}, {key: 'invokeCallbackAndReturnFlushedQueue', value: function(a0, a1) { var env0_0 = a0; var env0_1 = a1; var env0_2 = this; this.__guard(_fun1417); return this.flushedQueue(); }}, {key: 'flushedQueue', value: function() { var env0_0 = this; this.__guard(_fun1419); var _queue = this._queue; this._queue = [[], [], [], this._callID]; return _queue[0].length ? _queue : null; }}, {key: 'getEventLoopRunningTime', value: function() { var Date = global.Date; return Date.now() - this._eventLoopStartTime; }}, {key: 'registerCallableModule', value: function(a0, a1) { var env0_0 = a1; this._lazyCallableModules[a0] = _fun1422; }}, {key: 'registerLazyCallableModule', value: function(a0, a1) { var env0_1 = a1; this._lazyCallableModules[a0] = _fun1424; }}, {key: 'getCallableModule', value: function(a0) { var property = this._lazyCallableModules[a0]; return property ? property() : null; }}, {key: 'callNativeSyncHook', value: value_1426}, {key: 'processCallbacks', value: value_1427}, {key: 'enqueueNativeCall', value: value_1428}, {key: 'createDebugLookup', value: function(a0, a1, a2) { }}, {key: 'setReactNativeMicrotasksCallback', value: function(a0) { this._reactNativeMicrotasksCallback = a0; }}, {key: '__guard', value: value_1431}, {key: '__shouldPauseOnThrow', value: function() { return typeof global.DebuggerInternal !== 'undefined' && global.DebuggerInternal.shouldPauseOnThrow === true; }}, {key: '__callReactNativeMicrotasks', value: value_1433}, {key: '__callFunction', value: value_1434}, {key: '__invokeCallback', value: value_1435}], [{key: 'spy', value: function(a0) { var value = a0; MessageQueue.prototype.__spy = value === true ? _fun1437 : value === false ? null : value; }}]); function MessageQueue() { // fn#1413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:139, offset: 0x00c5bd21, size: 248 bytes, params: 1, frame: 15 const value = environment.__proto__; env1_4(this, MessageQueue); this._lazyCallableModules = {}; this._queue = [[], [], [], 0]; let Map = global.Map; this._successCallbacks = new Map(); Map = global.Map; this._failureCallbacks = new Map(); this._callID = 0; this._lastFlush = 0; const Date = global.Date; this._eventLoopStartTime = Date.now(); this._reactNativeMicrotasksCallback = null; const callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue; this.callFunctionReturnFlushedQueue = callFunctionReturnFlushedQueue.bind(this); const flushedQueue = this.flushedQueue; this.flushedQueue = flushedQueue.bind(this); const invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue; this.invokeCallbackAndReturnFlushedQueue = invokeCallbackAndReturnFlushedQueue.bind(this); } function value_1414(a0, a1, a2) { // fn#1414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:700, offset: 0x00c5be19, size: 58 bytes, params: 4, frame: 11 const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; this.__guard(_fun1415); return this.flushedQueue(); function _fun1415() { // fn#1415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:779, offset: 0x00c5be53, size: 36 bytes, params: 1, frame: 15 Module00065.__callFunction(env0_0, require, importDefault); } } function value_1416(a0, a1) { // fn#1416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:888, offset: 0x00c5be77, size: 51 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; this.__guard(_fun1417); return this.flushedQueue(); function _fun1417() { // fn#1417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:970, offset: 0x00c5beaa, size: 31 bytes, params: 1, frame: 13 const binding = env0_2; binding.__invokeCallback(env0_0, require); } } function value_1418() { // fn#1418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1056, offset: 0x00c5bec9, size: 96 bytes, params: 1, frame: 12 this.__guard(_fun1419); const _queue = this._queue; this._queue = [[], [], [], this._callID]; return _queue[0].length ? _queue : null; function _fun1419() { // fn#1419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1105, offset: 0x00c5bf29, size: 21 bytes, params: 1, frame: 9 env0_0.__callReactNativeMicrotasks(); } } function value_1421(a0, a1) { // fn#1421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1386, offset: 0x00c5bf5e, size: 34 bytes, params: 3, frame: 3 const env0_0 = a1; this._lazyCallableModules[a0] = function() { return require; }; function _fun1422() { // fn#1422, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1 return require; } } function value_1423(a0, a1) { // fn#1423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1515, offset: 0x00c5bf80, size: 34 bytes, params: 3, frame: 3 const env0_1 = a1; this._lazyCallableModules[a0] = _fun1424; function _fun1424() { // fn#1424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1595, offset: 0x00c5bfa2, size: 36 bytes, params: 1, frame: 10 env0_0 = require ? require() : env0_0; return env0_0; } } function value_1426(a0, a1, a2, a3, a4) { // fn#1426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1784, offset: 0x00c5bfe3, size: 62 bytes, params: 6, frame: 19 this.processCallbacks(a0, a1, a2, a3, a4); return env1_0.nativeCallSyncHook(a0, a1, a2); } function value_1428(a0, a1, a2, a3, a4) { // fn#1428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:2160, offset: 0x00c5c0b2, size: 330 bytes, params: 6, frame: 23 this.processCallbacks(a0, a1, a2, a3, a4); let _queue = this._queue; _queue[0].push(a0); this._queue[1].push(a1); this._queue[2].push(a2); const Date = global.Date; let value = Date.now(); if (env1_0.nativeFlushQueueImmediate) { if (value - this._lastFlush >= 5) { _queue = this._queue; this._queue = [[], [], [], this._callID]; this._lastFlush = value; env1_0.nativeFlushQueueImmediate(_queue); } } value = require(69) /* metro dependency 69 */; value.counterEvent('pending_js_to_native_queue', this._queue[0].length); if (this.__spy) { this.__spy({type: 1, module: String(a0), method: a1, args: a2}); } } function value_1431(a0) { // fn#1431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:2830, offset: 0x00c5c20c, size: 88 bytes, params: 2, frame: 13 var error; var value; var property; if (this.__shouldPauseOnThrow()) { a0(); } else { try { a0(); } catch (error) { value = environment.__proto__; property = (require(70) /* metro dependency 70 */).default; property.reportFatalError(error); } } } function value_1433() { // fn#1433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:3140, offset: 0x00c5c28e, size: 127 bytes, params: 1, frame: 15 var _reactNativeMicrotasksCallback; var value2; var error; let value = environment.__proto__; (require(69) /* metro dependency 69 */).beginEvent('JSTimers.callReactNativeMicrotasks()'); try { _reactNativeMicrotasksCallback = this._reactNativeMicrotasksCallback; value2 = _reactNativeMicrotasksCallback == null; if (!value2) { this._reactNativeMicrotasksCallback(); } } catch (error) { value = require(69) /* metro dependency 69 */; value.endEvent(); throw error; } (require(69) /* metro dependency 69 */).endEvent(); } function value_1434(a0, a1, a2) { // fn#1434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:3381, offset: 0x00c5c30d, size: 600 bytes, params: 4, frame: 38 var r20; var callableModule; var Object; var keys; var _lazyCallableModules; var value4; var length; var value5; var binding; var RN$Bridgeless; var value6; var value7; var value8; var property; var moduleValue3; var value9; var moduleValue4; var value10; var error; const Date = global.Date; this._lastFlush = Date.now(); this._eventLoopStartTime = this._lastFlush; let __spy = this.__spy; let value = environment.__proto__; const beginEvent = Module00069Module.beginEvent; if (__spy) { Reflect.apply(beginEvent, Module00069Module, ['' + a0 + '.' + a1 + '(' + (require(71) /* metro dependency 71 */).default(a2) + ')']); } else { Reflect.apply(beginEvent, Module00069Module, ['' + a0 + '.' + a1 + '(...)']); } try { __spy = this.__spy; if (__spy) { this.__spy({type: 0, module: a0, method: a1, args: a2}); } callableModule = this.getCallableModule(a0); if (!callableModule) { Object = global.Object; keys = Object.keys; _lazyCallableModules = this._lazyCallableModules; value4 = Reflect.apply(keys, Object, [_lazyCallableModules]); length = value4.length; value5 = value4.join(', '); binding = env1_0; RN$Bridgeless = binding.RN$Bridgeless; value6 = 'false'; value7 = RN$Bridgeless !== true; if (value7) { r20 = value6; } else { value8 = 'true'; r20 = value8; } moduleValue3 = require(44) /* metro dependency 44 */; value9 = 'Failed to call into JavaScript module method ' + a0 + '.' + a1 + '(). Module has not been registered as callable. Bridgeless Mode: ' + r20 + '. Registered callable JavaScript modules (n = ' + length + '): ' + value5 + '.\n A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.'; moduleValue3(false, value9); } property = callableModule[a1]; if (!property) { moduleValue4 = require(44) /* metro dependency 44 */; value10 = 'Failed to call into JavaScript module method ' + a0 + '.' + a1 + '(). Module exists, but the method is undefined.'; moduleValue4(false, value10); } property = callableModule[a1]; property.apply(callableModule, a2); } catch (error) { value = Module00069Module; value.endEvent(); throw error; } Module00069Module.endEvent(); } function value_1435(a0, a1) { // fn#1435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:4402, offset: 0x00c5c565, size: 179 bytes, params: 3, frame: 18 var r4; var _failureCallbacks; var _successCallbacks; var apply; var binding; var error; const Date = global.Date; this._lastFlush = Date.now(); this._eventLoopStartTime = this._lastFlush; let value = a0 >>> 1; if (1 & a0) { _successCallbacks = this._successCallbacks; r4 = _successCallbacks.get(value); } else { _failureCallbacks = this._failureCallbacks; r4 = _failureCallbacks.get(value); } if (r4) { try { _successCallbacks = this._successCallbacks; _successCallbacks.delete(value); _failureCallbacks = this._failureCallbacks; _failureCallbacks.delete(value); apply = r4.apply; value = environment.__proto__; binding = env1_3; value = binding(a1); Reflect.apply(apply, r4, [undefined, value]); } catch (error) { throw error; } } } function value_1436(a0) { // fn#1436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:4714, offset: 0x00c5c618, size: 51 bytes, params: 2, frame: 4 const value = a0; MessageQueue.prototype.__spy = value === true ? _fun1437 : value === false ? null : value; } } } function value_1427(a0, a1, a2, a3, a4) { // fn#1427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:1923, offset: 0x00c5c021, size: 145 bytes, params: 6, frame: 16 var _callID; var _successCallbacks; var set; var _failureCallbacks; const value = a3; const value2 = a4; if (value || value2) { if (value) { a2.push(this._callID << 1); } if (value2) { a2.push(this._callID << 1 | 1); } _successCallbacks = this._successCallbacks; set = _successCallbacks.set; _callID = this._callID; Reflect.apply(set, _successCallbacks, [_callID, value2]); _failureCallbacks = this._failureCallbacks; set = _failureCallbacks.set; _callID = this._callID; Reflect.apply(set, _failureCallbacks, [_callID, value]); } _callID = this._callID; this._callID = typeof _callID === 'bigint' ? _callID + 1n : +_callID + 1; } function _fun1437(a0) { // fn#1437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:89:4766, offset: 0x00c5c64b, size: 176 bytes, params: 2, frame: 18 const console = global.console; const log = console.log; const r6 = a0.type !== 0 ? 'JS->N' : 'N->JS'; value = value + (a0.module != null ? a0.module + '.' : '') + a0.method; value = r6 + ' : ' + value; const JSON = global.JSON; Reflect.apply(log, console, [value + ('(' + JSON.stringify(a0.args) + ')')]); } global.__d(_fun1411, 64, [65, 6, 7, 69, 70, 71, 44]) /* metro module 64, dependencies: [65, 6, 7, 69, 70, 71, 44] */;