Files
discord-decomp/sources/by-id/module-06445.jsx
T
2026-07-27 16:20:00 +03:00

111 lines
4.1 KiB
React

/* Metro module 6445; source: unknown; dependencies: [] */
function _fun50576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6623:6, offset: 0x0121d45a, size: 99 bytes, params: 8, frame: 17
const value = this;
if (value && value.__extends) {
}
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Error = global.Error;
exports.default = _fun50582(Error);
}
function extendStatics_50577(a0, a1) { // fn#50577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6623:77, offset: 0x0121d4bd, size: 78 bytes, params: 3, frame: 13
var r3;
var Array;
var value;
const Object = global.Object;
const setPrototypeOf = Object.setPrototypeOf;
if (setPrototypeOf) {
r3 = setPrototypeOf;
} else {
Array = global.Array;
value = Object.create([]);
value = value instanceof Array;
r3 = value && (function(a0, a1) {
a0.__proto__ = a1;
});
}
r3 = !r3 ? function(a0, a1) {
var r3;
var propertyName;
var propertyName2;
var hasOwnProperty;
for (propertyName in a1) {
hasOwnProperty = global.Object.prototype.hasOwnProperty;
if (!hasOwnProperty.call(a1, propertyName)) {
r3 = propertyName2;
continue;
}
a0[propertyName] = a1[propertyName];
r3 = propertyName2;
}
} : r3;
return r3(a0, a1);
}
function _fun50580(a0, a1) { // fn#50580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6623:292, offset: 0x0121d50b, size: 177 bytes, params: 3, frame: 15
var r1;
var value;
var prototype;
var closure2;
var TypeError;
var value3;
var typeError;
const env0_0 = a0;
const closure = ___50581;
if (typeof a1 === 'function') {
extendStatics_50577(a0, a1);
if (a1 === null) {
r1 = global.Object.create(a1);
} else {
prototype = a1.prototype;
closure.prototype = prototype;
prototype = closure.prototype;
value = Object.create(prototype, {constructor: {value: closure}});
closure2 = new closure();
value = closure2 instanceof Object ? closure2 : value;
r1 = value;
}
a0.prototype = r1;
} else {
if (a1 !== null) {
TypeError = global.TypeError;
value = global.String(a1);
value = 'Class extends value ' + value;
value3 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
value += ' is not a constructor or null';
typeError = new TypeError();
value = typeError instanceof Object ? typeError : value3;
throw value;
}
extendStatics_50577(a0, a1);
if (a1 === null) {
r1 = global.Object.create(a1);
} else {
prototype = a1.prototype;
closure.prototype = prototype;
prototype = closure.prototype;
value = Object.create(prototype, {constructor: {value: closure}});
closure2 = new closure();
value = closure2 instanceof Object ? closure2 : value;
r1 = value;
}
a0.prototype = r1;
}
}
function _fun50582(a0) { // fn#50582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6623:595, offset: 0x0121d5bc, size: 31 bytes, params: 2, frame: 13
const env0_0 = a0;
const closure = CustomError_50583;
env0_1(closure, a0);
return closure;
}
function CustomError_50583({message, type}) { // fn#50583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6623:607, offset: 0x0121d5db, size: 48 bytes, params: 2, frame: 14
const value = this;
const r0 = env0_0.call(value, message) || value;
r0.name = type;
return r0;
}