/* Metro module 367; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 347, 44, 357] */ function _fun5433(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:6, offset: 0x00cdba5b, size: 200 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(6) /* metro dependency 6 */; const env0_3 = importDefault(7) /* metro dependency 7 */; const env0_4 = importDefault(15) /* metro dependency 15 */; const env0_5 = importDefault(17) /* metro dependency 17 */; const env0_6 = importDefault(102) /* metro dependency 102 */; const env0_7 = importDefault(18) /* metro dependency 18 */; exports.default = _fun5439(importDefault(357) /* metro dependency 357 */); } function _isNativeReflectConstruct_5434() { // fn#5434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:159, offset: 0x00cdbb23, 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_5434_isNativeReflectConstruct = function() { return !!result; })(); } function _superPropGet_5437(a0, a1, a2, a3) { // fn#5437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:378, offset: 0x00cdbb81, size: 99 bytes, params: 5, frame: 18 let value = a0; const env0_0 = a2; const binding = env0_6; value = env0_5(1 & 3 ? value.prototype : value); value = binding(value, a1, a2); return 2 & 3 ? typeof value !== 'function' ? value : _fun5438 : value; } function _fun5439(a0) { // fn#5439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:522, offset: 0x00cdbbe4, size: 392 bytes, params: 2, frame: 16 const closure = AnimatedValueXY; env0_7(closure, a0); return env0_3(closure, [{key: 'setValue', value: function(a0) { this.x.setValue(a0.x); this.y.setValue(a0.y); }}, {key: 'setOffset', value: function(a0) { this.x.setOffset(a0.x); this.y.setOffset(a0.y); }}, {key: 'flattenOffset', value: function() { this.x.flattenOffset(); this.y.flattenOffset(); }}, {key: 'extractOffset', value: function() { this.x.extractOffset(); this.y.extractOffset(); }}, {key: '__getValue', value: function() { var object = {}; object.x = this.x.__getValue(); object.y = this.y.__getValue(); return object; }}, {key: 'resetAnimation', value: function(a0) { this.x.resetAnimation(); this.y.resetAnimation(); if (a0) { a0(this.__getValue()); } }}, {key: 'stopAnimation', value: function(a0) { this.x.stopAnimation(); this.y.stopAnimation(); if (a0) { a0(this.__getValue()); } }}, {key: 'addListener', value: value_5448}, {key: 'removeListener', value: function(a0) { this.x.removeListener(this._listeners[a0].x); this.y.removeListener(this._listeners[a0].y); delete this._listeners[a0]; }}, {key: 'removeAllListeners', value: function() { this.x.removeAllListeners(); this.y.removeAllListeners(); this._listeners = {}; }}, {key: 'getLayout', value: function() { return {left: this.x, top: this.y}; }}, {key: 'getTranslateTransform', value: function() { return [{translateX: this.x}, {translateY: this.y}]; }}, {key: '__attach', value: value_5454}, {key: '__detach', value: value_5455}, {key: '__makeNative', value: value_5456}]); } function AnimatedValueXY(a0, a1) { // fn#5440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:534, offset: 0x00cdbd6c, size: 389 bytes, params: 3, frame: 22 var y; var prototype; var value11; var value12; let value = a0; const value2 = a1; env1_2(this, AnimatedValueXY); const items = [value2]; const value5 = env1_5(AnimatedValueXY); const value8 = env1_4(this, _isNativeReflectConstruct_5434() ? global.Reflect.construct(value5, items, env1_5(this).constructor) : value5.apply(this, items)); const r1 = value || ({'x': 0, 'y': 0}); let x = r1.x; if (typeof x !== 'number') { value = importDefault(44) /* metro dependency 44 */; x = r1.x; value(x instanceof (importDefault(347) /* metro dependency 347 */) && r1.y instanceof (importDefault(347) /* metro dependency 347 */), 'AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.'); x = r1.x; value8.x = x; value8.y = r1.y; } else { y = r1.y; if (typeof y === 'number') { value = importDefault(347) /* metro dependency 347 */; x = r1.x; prototype = value.prototype; value11 = Object.create(prototype, {constructor: {value: value}}); value = new value(x); value = value instanceof Object ? value : value11; value8.x = value; value = importDefault(347) /* metro dependency 347 */; y = r1.y; prototype = value.prototype; value12 = Object.create(prototype, {constructor: {value: value}}); value = new value(); value = value instanceof Object ? value : value12; value8.y = value; } else { value = importDefault(44) /* metro dependency 44 */; x = r1.x; value(x instanceof (importDefault(347) /* metro dependency 347 */) && r1.y instanceof (importDefault(347) /* metro dependency 347 */), 'AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.'); x = r1.x; value8.x = x; value8.y = r1.y; } } value8._listeners = {}; if (value2 && value2.useNativeDriver) { value8.__makeNative(); } return value8; } function value_5448(a0) { // fn#5448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:1886, offset: 0x00cdc048, size: 107 bytes, params: 2, frame: 15 var environment; const env0_0 = a0; const String = global.String; let value = environment.__proto__; const binding = env1_8; const value2 = typeof binding === 'bigint' ? binding : +binding; env1_8 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1; value = String(value2); const closure = jointCallback; const _listeners = this._listeners; const object2 = {}; object2.x = this.x.addListener(closure); object2.y = this.y.addListener(closure); _listeners[value] = object2; return value; } function value_5454() { // fn#5454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:2597, offset: 0x00cdc19a, size: 78 bytes, params: 1, frame: 17 this.x.__addChild(this); this.y.__addChild(this); const value = environment.__proto__; _superPropGet_5437(AnimatedValueXY, '__attach', this, 3)([]); } function value_5455() { // fn#5455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:2742, offset: 0x00cdc1e8, size: 78 bytes, params: 1, frame: 17 this.x.__removeChild(this); this.y.__removeChild(this); const value = environment.__proto__; _superPropGet_5437(AnimatedValueXY, '__detach', this, 3)([]); } function value_5456(a0) { // fn#5456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:2897, offset: 0x00cdc236, size: 85 bytes, params: 2, frame: 18 this.x.__makeNative(a0); this.y.__makeNative(a0); const value = environment.__proto__; _superPropGet_5437(AnimatedValueXY, '__makeNative', this, 3)([a0]); } function jointCallback(a0) { // fn#5449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:408:1937, owner: value_5448.jointCallback, offset: 0x00cdc0b3, size: 38 bytes, params: 2, frame: 11 a0.value; env0_0(env0_1.__getValue()); }