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

526 lines
19 KiB
React

/* Metro module 191; source: unknown; dependencies: [] */
function _fun2657(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:6, offset: 0x00c862af, size: 115 bytes, params: 8, frame: 15
var error;
var globalThis;
var Function;
const value = _fun2658(typeof module === 'object' ? module.exports : {});
try {
global.regeneratorRuntime = value;
} catch (error) {
globalThis = global.globalThis;
if (typeof globalThis === 'object') {
globalThis = global.globalThis;
globalThis.regeneratorRuntime = value;
} else {
Function = global.Function;
Function('r', 'regeneratorRuntime = r')(value);
}
}
}
function _fun2658(a0) { // fn#2658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:37, offset: 0x00c86322, size: 880 bytes, params: 2, frame: 35
var r6;
var error;
let env0_0 = a0;
let closure = function(a0, a1, a2) {
var Object = global.Object;
Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true, 'writable': true,
value: a2});
return a0[a1];
};
var env0_11;
const closure2 = wrap_2660;
const tryCatch = function(a0, a1, a2) {
var object;
var value;
var error;
try {
object = {type: 'normal'};
value = a0.call(a1, a2);
object.arg = value;
} catch (error) {
return {type: 'throw', arg: error};
}
return object;
};
const closure3 = function() {
};
const closure4 = function() {
};
const closure5 = function() {
};
const closure6 = function(a0) {
var env0_0 = a0;
['next', 'throw', 'return'].forEach(_fun2666);
};
const closure7 = AsyncIterator;
const pushTryEntry = function(a0) {
var object = {tryLoc: a0[0]};
if (1 in a0) {
object.catchLoc = a0[1];
}
if (2 in a0) {
object.finallyLoc = a0[2];
object.afterLoc = a0[3];
}
this.tryEntries.push(object);
};
const resetTryEntry = function(a0) {
var r0;
r0 = a0.completion || ({});
r0.type = 'normal';
delete r0.arg;
a0.completion = r0;
};
const closure8 = function(a0) {
this.tryEntries = [{tryLoc: 'root'}];
a0.forEach(pushTryEntry, this);
this.reset(true);
};
const closure9 = values_2683;
const doneResult = function() {
return {value: undefined, done: true};
};
let Object = global.Object;
const prototype = Object.prototype;
const hasOwnProperty = prototype.hasOwnProperty;
Object = global.Object;
const r22 = Object.defineProperty || (function(a0, a1, a2) {
a0[a1] = a2.value;
});
const Symbol = global.Symbol;
const r23 = typeof Symbol === 'function' ? global.Symbol : {};
let iterator = r23.iterator;
iterator = !iterator ? '@@iterator' : iterator;
let asyncIterator = r23.asyncIterator;
asyncIterator = !asyncIterator ? '@@asyncIterator' : asyncIterator;
const r222 = r23.toStringTag || '@@toStringTag';
try {
closure({}, '');
r6 = closure;
} catch (error) {
closure = function(a0, a1, a2) {
a0[a1] = a2;
return a2;
};
env0_11 = closure;
r6 = closure;
}
a0.wrap = closure2;
const env0_9 = {};
const object2 = {};
r6(object2, iterator, function() {
return this;
});
Object = global.Object;
const getPrototypeOf = Object.getPrototypeOf;
const r18 = getPrototypeOf && getPrototypeOf(getPrototypeOf(closure9([])));
const r7 = r18 && r18 !== prototype && hasOwnProperty.call(r18, iterator) ? r18 : object2;
Object = global.Object;
let value = Object.create(r7);
closure3.prototype = value;
closure5.prototype = value;
closure4.prototype = closure5;
r22(value, 'constructor', {value: closure5, configurable: true});
r22(closure5, 'constructor', {value: closure4, configurable: true});
closure4.displayName = r6(closure5, r222, 'GeneratorFunction');
a0.isGeneratorFunction = isGeneratorFunction;
a0.mark = mark_2690;
a0.awrap = function(a0) {
return {__await: a0};
};
closure6(closure7.prototype);
r6(closure7.prototype, asyncIterator, function() {
return this;
});
a0.AsyncIterator = closure7;
a0.async = async;
closure6(value);
r6(value, r222, 'Generator');
r6(value, iterator, function() {
return this;
});
r6(value, 'toString', function() {
return '[object Generator]';
});
a0.keys = function(a0) {
var propertyName;
var value = (0, global.Object)(a0);
var env0_0 = value;
var items = [];
var env0_1 = items;
for (propertyName in value) {
items.push(propertyName);
}
items.reverse();
var closure = _fun2698;
var env0_2 = closure;
return closure;
};
a0.values = closure9;
closure8.prototype = {constructor: closure8, reset: reset_2699, stop: function() {
this.done = true;
var completion = this.tryEntries[0].completion;
if (completion.type === 'throw') {
throw completion.arg;
}
return this.rval;
}, dispatchException: dispatchException, abrupt: abrupt, complete: complete, finish: finish, catch: _catch,
delegateYield: delegateYield};
return a0;
}
function defineIteratorMethods(a0) { // fn#2665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1153, offset: 0x00c86789, size: 38 bytes, params: 2, frame: 11
const env0_0 = a0;
['next', 'throw', 'return'].forEach(_fun2666);
}
function AsyncIterator(a0, a1) { // fn#2668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1289, offset: 0x00c867f1, size: 61 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
env0_2(this, '_invoke', {value: value_2674});
}
function makeInvokeMethod(a0, a1, a2) { // fn#2677, offset: 0x00c86a06, size: 41 bytes, params: 4, frame: 2
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return makeInvokeMethodInvoke;
}
function values_2683(a0) { // fn#2683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:3516, offset: 0x00c86e8f, size: 121 bytes, params: 2, frame: 14
var property;
var closure;
const env0_0 = a0;
if (a0) {
property = a0[iterator];
if (property) {
return property.call(a0);
}
if (typeof a0.next === 'function') {
return a0;
}
if (global.isNaN(a0.length)) {
return {next: doneResult};
}
closure = next_2684;
closure.next = closure;
return closure;
}
return {next: doneResult};
}
function async(a0, a1, a2, a3, a4) { // fn#2693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:4714, offset: 0x00c87089, size: 125 bytes, params: 6, frame: 21
var r0;
let value = a4;
const asyncIterator = new AsyncIterator(wrap_2660(a0, a1, a2, a3), value !== undefined ? value : global.Promise);
const binding = asyncIterator;
if (binding.isGeneratorFunction(a1)) {
r0 = asyncIterator;
} else {
value = asyncIterator.next();
value = value.then(_fun2694);
r0 = value;
}
return r0;
}
function keys_2697(a0) { // fn#2697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:5046, offset: 0x00c87132, size: 88 bytes, params: 2, frame: 17
var propertyName;
const Object = global.Object;
const value = Object(a0);
const items2 = [];
for (propertyName in value) {
items2.push(propertyName);
}
items2.reverse();
return keys_2697Next;
}
function dispatchException(a0) { // fn#2701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:5702, offset: 0x00c872e0, size: 375 bytes, params: 2, frame: 28
var r11;
var property;
var completion;
var tryLoc;
var prev;
var hasOwnPropertyBinding;
var call;
var value3;
var finallyLoc;
var catchLoc;
const env0_0 = a0;
const closure = dispatchExceptionHandle;
if (this.done) {
throw a0;
}
let tryEntries = this.tryEntries;
let value = tryEntries.length - 1;
if (value >= 0) {
r11 = value;
reducibleLoop2: while (true) {
tryEntries = this.tryEntries;
property = tryEntries[r11];
completion = property.completion;
var env0_2 = completion;
tryLoc = property.tryLoc;
if (tryLoc === 'root') {
return closure('end');
}
tryLoc = property.tryLoc;
prev = this.prev;
if (tryLoc <= prev) {
hasOwnPropertyBinding = hasOwnProperty;
call = hasOwnPropertyBinding.call;
value = Reflect.apply(call, hasOwnPropertyBinding, [property, 'catchLoc']);
hasOwnPropertyBinding = hasOwnProperty;
call = hasOwnPropertyBinding.call;
value3 = Reflect.apply(call, hasOwnPropertyBinding, [property, 'finallyLoc']);
reducibleJoin15: while (true) {
reducibleJoin6: while (true) {
if (value) {
if (value3) {
prev = this.prev;
catchLoc = property.catchLoc;
if (prev < catchLoc) {
return closure(property.catchLoc, true);
}
prev = this.prev;
finallyLoc = property.finallyLoc;
if (prev < finallyLoc) {
return closure(property.finallyLoc);
}
break reducibleJoin15;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
if (value) {
prev = this.prev;
catchLoc = property.catchLoc;
if (prev < catchLoc) {
return closure(property.catchLoc, true);
}
break reducibleJoin15;
}
if (!value3) {
throw new global.Error('try statement without catch or finally');
}
prev = this.prev;
finallyLoc = property.finallyLoc;
if (prev < finallyLoc) {
return closure(property.finallyLoc);
}
break reducibleJoin15;
}
}
value = typeof r11 === 'bigint' ? r11 - 1n : +r11 - 1;
if (!(value >= 0)) {
return undefined;
}
r11 = value;
continue reducibleLoop2;
}
}
}
function _catch(a0) { // fn#2706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:7173, offset: 0x00c876a5, size: 136 bytes, params: 2, frame: 14
var r1;
var arg;
var property;
var tryLoc;
var completion;
var type;
var value2;
let tryEntries = this.tryEntries;
let value = tryEntries.length - 1;
if (value >= 0) {
r1 = value;
loopExit1: while (true) {
tryEntries = this.tryEntries;
property = tryEntries[r1];
tryLoc = property.tryLoc;
if (tryLoc === a0) {
completion = property.completion;
type = completion.type;
if (type !== 'throw') {
arg = undefined;
continue;
}
arg = completion.arg;
value2 = environment;
resetTryEntry(property);
return arg;
}
value = typeof r1 === 'bigint' ? r1 - 1n : +r1 - 1;
if (value >= 0) {
r1 = value;
continue;
}
break loopExit1;
}
}
const Error = global.Error;
throw new Error('illegal catch attempt');
}
function _fun2666(a0) { // fn#2666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1222, offset: 0x00c867af, size: 39 bytes, params: 2, frame: 15
env1_11(a0, a0, _fun2667);
}
function AsyncIteratorInvoke(a0, a1, a2, a3) { // fn#2669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1317, owner: AsyncIterator.invoke, offset: 0x00c8682e, size: 206 bytes, params: 5, frame: 19
var environment;
var r0;
var value4;
var hasOwnPropertyBinding;
const env0_0 = a2;
const env0_1 = a3;
let value = environment.__proto__;
const tryCatchBinding = tryCatch;
const binding = env0_0;
const value3 = tryCatchBinding(binding[a0], binding, a1);
if (value3.type !== 'throw') {
value4 = value3.arg.value;
if (value4) {
if (typeof value4 !== 'object') {
value = require.resolve(value4);
value = value.then(function(a0) {
arg.value = a0;
importDefault(arg);
}, _fun2673);
r0 = value;
} else {
hasOwnPropertyBinding = hasOwnProperty;
if (hasOwnPropertyBinding.call(value4, '__await')) {
value = require.resolve(value4.__await);
value = value.then(_fun2670, _fun2671);
r0 = value;
} else {
value = require.resolve(value4);
value = value.then(_fun2672, _fun2673);
r0 = value;
}
}
} else {
value = require.resolve(value4);
value = value.then(_fun2672, _fun2673);
r0 = value;
}
return r0;
}
a3(value3.arg);
}
function AsyncIteratorValue(a0, a1) { // fn#2674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1692, owner: AsyncIterator.value, offset: 0x00c86984, size: 60 bytes, params: 3, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const closure = valueCallInvokeWithMethodAndArg;
return env0_2 ? env0_2.then(closure, closure) : closure();
}
function makeInvokeMethodInvoke(a0, a1) { // fn#2678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1952, owner: makeInvokeMethod.invoke, offset: 0x00c86a2f, size: 511 bytes, params: 3, frame: 27
var r4;
var delegate;
var value3;
var method;
var abrupt;
var arg;
var dispatchException;
var tryCatchBinding;
var value4;
var type;
var done;
let binding = env0_3;
if (binding === env1_7) {
throw new global.Error('Generator is already running');
}
if (env0_3 === env1_8) {
if (a0 === 'throw') {
throw a1;
}
return doneResult();
}
importDefault.method = a0;
importDefault.arg = a1;
reducibleLoop3: while (true) {
delegate = importDefault.delegate;
if (delegate) {
value3 = maybeInvokeDelegate(delegate, importDefault);
reducibleJoin5: while (true) {
if (value3) {
if (value3 !== env1_9) {
return value3;
}
continue reducibleLoop3;
}
break reducibleJoin5;
}
}
method = importDefault.method;
if (method === 'next') {
arg = importDefault.arg;
importDefault._sent = arg;
importDefault.sent = arg;
} else {
method = importDefault.method;
if (method === 'throw') {
if (env0_3 === env1_5) {
env0_3 = env1_8;
throw importDefault.arg;
}
dispatchException = importDefault.dispatchException;
Reflect.apply(dispatchException, importDefault, [importDefault.arg]);
} else {
method = importDefault.method;
reducibleJoin13: while (true) {
if (method !== 'return') {
break reducibleJoin13;
}
abrupt = importDefault.abrupt;
arg = importDefault.arg;
Reflect.apply(abrupt, importDefault, ['return', arg]);
break reducibleJoin13;
}
}
}
env0_3 = env1_7;
tryCatchBinding = tryCatch;
binding = env0_0;
value4 = tryCatchBinding(binding, require, importDefault);
type = value4.type;
if (type === 'normal') {
done = importDefault.done;
if (done) {
binding = env1_8;
r4 = binding;
} else {
binding = env1_6;
r4 = binding;
}
env0_3 = r4;
if (value4.arg !== env1_9) {
return {value: value4.arg, done: importDefault.done};
}
continue reducibleLoop3;
}
type = value4.type;
if (type !== 'throw') {
continue reducibleLoop3;
}
env0_3 = env1_8;
importDefault.method = 'throw';
arg = value4.arg;
importDefault.arg = arg;
continue reducibleLoop3;
}
}
function valueCallInvokeWithMethodAndArg() { // fn#2675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:216:1714, owner: AsyncIterator.value.callInvokeWithMethodAndArg, offset: 0x00c869c0, size: 36 bytes, params: 1, frame: 11
var environment;
let value = environment.__proto__;
value = Object.create(require.prototype, {constructor: {value: require}});
const require2 = new require(_fun2676);
return require2 instanceof Object ? require2 : value;
}