/* Metro module 228; source: unknown; dependencies: [6, 7, 15, 17, 18, 229] */ function _fun3164(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:6, offset: 0x00c9223c, size: 602 bytes, params: 8, frame: 24 var exports; const env0_0 = require; const env0_2 = require(6) /* metro dependency 6 */; const env0_3 = require(7) /* metro dependency 7 */; const env0_4 = require(15) /* metro dependency 15 */; const env0_5 = require(17) /* metro dependency 17 */; const env0_6 = require(18) /* metro dependency 18 */; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const EventTarget = (require(229) /* metro dependency 229 */).EventTarget; const value = _fun3169(EventTarget); const value2 = require(229) /* metro dependency 229 */; value2.defineEventAttribute(value.prototype, 'abort'); let WeakMap = global.WeakMap; let weakMap = new WeakMap(); Object = global.Object; Object.defineProperties(value.prototype, {aborted: {enumerable: true}}); let Symbol = global.Symbol; if (typeof Symbol === 'function' && typeof global.Symbol.toStringTag === 'symbol') { Object = global.Object; Object.defineProperty(value.prototype, global.Symbol.toStringTag, {'configurable': true, 'value': 'AbortSignal'}); } const value7 = _fun3172(); WeakMap = global.WeakMap; weakMap = new WeakMap(); Object = global.Object; Object.defineProperties(value7.prototype, {signal: {enumerable: true}, abort: {enumerable: true}}); Symbol = global.Symbol; if (typeof Symbol === 'function' && typeof global.Symbol.toStringTag === 'symbol') { Object = global.Object; Object.defineProperty(value7.prototype, global.Symbol.toStringTag, {'configurable': true, 'value': 'AbortController'}); } exports.AbortController = value7; exports.AbortSignal = value; exports.default = value7; module.exports = value7; exports = module.exports; module.exports.default = value7; exports.AbortController = value7; module.exports.AbortSignal = value; } function _isNativeReflectConstruct_3165() { // fn#3165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:98, offset: 0x00c92496, 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_3165_isNativeReflectConstruct = function() { return !!result; })(); } function getSignal(a0) { // fn#3168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1618, offset: 0x00c924f4, size: 79 bytes, params: 2, frame: 12 const value = env0_9.get(a0); if (value == null) { throw new global.TypeError("Expected 'this' to be an 'AbortController' object, but got " + (a0 === null ? 'null' : typeof a0)); } return value; } function _fun3169(a0) { // fn#3169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:373, offset: 0x00c92543, size: 68 bytes, params: 2, frame: 15 const closure = AbortSignal; env0_6(closure, a0); return env0_3(closure, [{key: 'aborted', get: get_3171}]); } function _fun3172() { // fn#3172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1198, offset: 0x00c9266b, size: 78 bytes, params: 1, frame: 15 return env0_3(AbortController, [{key: 'signal', get: function() { return getSignal(this); }}, {key: 'abort', value: value_3175}]); } function AbortSignal() { // fn#3170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:385, offset: 0x00c92587, size: 142 bytes, params: 1, frame: 19 const value = environment.__proto__; env1_2(this, AbortSignal); const value3 = env1_5(AbortSignal); env1_4(this, _isNativeReflectConstruct_3165() ? global.Reflect.construct(value3, [], env1_5(this).constructor) : value3.apply(this, undefined)); const TypeError = global.TypeError; throw new TypeError('AbortSignal cannot be constructed directly'); } function get_3171() { // fn#3171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:702, offset: 0x00c92615, size: 86 bytes, params: 1, frame: 12 let value = environment.__proto__; value = env1_8.get(this); if (typeof value !== 'boolean') { throw new global.TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + (this === null ? 'null' : typeof this)); } return value; } function AbortController() { // fn#3173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1219, offset: 0x00c926b9, size: 122 bytes, params: 1, frame: 18 let binding = env1_2; binding(this, AbortController); binding = env1_9; const set = binding.set; const Object = global.Object; const value3 = Object.create(env1_7.prototype); const EventTarget = (require(229) /* metro dependency 229 */).EventTarget; EventTarget.call(value3); env1_8.set(value3, false); Reflect.apply(set, binding, [this, value3]); } function value_3175() { // fn#3175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1476, offset: 0x00c92746, size: 77 bytes, params: 1, frame: 14 const signal = getSignal(this); if (env1_8.get(signal) === false) { env1_8.set(signal, true); signal.dispatchEvent({type: 'abort'}); } }