Files
discord-decomp/sources/by-id/module-00274-unstable.js
T
2026-07-28 01:06:53 +03:00

1264 lines
67 KiB
JavaScript

/* Metro module 274; source: unknown; dependencies: [] */
function _fun3405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:305:6, offset: 0x00c96949, size: 853 bytes, params: 8, frame: 24
var r5;
var messageChannel;
var port2;
const push_3406 = function(a0, a1) {
var r4;
var value2;
var property = a0.length;
a0.push(a1);
if (0 < property) {
r4 = property;
while (true) {
value2 = r4 - 1 >>> 1;
property = a0[value2];
if (!(0 < compare_3409(property, a1))) {
break;
}
a0[value2] = a1;
a0[r4] = property;
if (0 < value2) {
r4 = value2;
continue;
}
break;
}
}
};
const peek = function(a0) {
return a0.length === 0 ? null : a0[0];
};
const compare_3409 = function(a0, a1) {
var value = a0.sortIndex - a1.sortIndex;
return value !== 0 ? value : a0.id - a1.id;
};
const shouldYieldToHost2 = shouldYieldToHost;
const onmessage_34132 = onmessage_3413;
const requestHostTimeout = function(a0, a1) {
var env0_0 = a0;
env0_18 = setTimeout(_fun3415, a1);
};
const closure3 = function() {
throw (0, global.Error)('Not implemented.');
};
let performance = global.performance;
if (typeof performance !== 'object') {
var env0_3 = global.Date.now();
r5 = getCurrentTime_3418;
} else {
performance = global.performance;
if (typeof performance.now === 'function') {
performance = global.performance;
r5 = function() {
return performance.now();
};
} else {
var env0_3 = global.Date.now();
r5 = getCurrentTime_3418;
}
}
const env0_4 = [];
const env0_5 = [];
let value = 1;
let value2 = null;
const value3 = 3;
let setTimeout = global.setTimeout;
setTimeout = typeof setTimeout !== 'function' ? value2 : global.setTimeout;
let clearTimeout = global.clearTimeout;
clearTimeout = typeof clearTimeout !== 'function' ? value2 : global.clearTimeout;
let setImmediate = global.setImmediate;
setImmediate = typeof setImmediate === 'undefined' ? value2 : global.setImmediate;
if (typeof setImmediate === 'function') {
var env0_16 = function() {
setImmediate(onmessage_3413);
};
} else if (typeof global.MessageChannel !== 'undefined') {
messageChannel = new global.MessageChannel();
port2 = messageChannel.port2;
messageChannel.port1.onmessage = onmessage_34132;
}
const unstable_UserBlockingPriority = typeof global.nativeRuntimeScheduler === 'undefined' ? 2 : global.nativeRuntimeScheduler.unstable_UserBlockingPriority;
const unstable_NormalPriority = typeof global.nativeRuntimeScheduler === 'undefined' ? value3 : global.nativeRuntimeScheduler.unstable_NormalPriority;
const unstable_LowPriority = typeof global.nativeRuntimeScheduler === 'undefined' ? 4 : global.nativeRuntimeScheduler.unstable_LowPriority;
const unstable_ImmediatePriority = typeof global.nativeRuntimeScheduler === 'undefined' ? value : global.nativeRuntimeScheduler.unstable_ImmediatePriority;
const r3 = typeof global.nativeRuntimeScheduler !== 'undefined' ? global.nativeRuntimeScheduler.unstable_scheduleCallback : unstable_scheduleCallback$1;
const r7 = typeof global.nativeRuntimeScheduler !== 'undefined' ? global.nativeRuntimeScheduler.unstable_cancelCallback : function(a0) {
a0.callback = null;
};
const r6 = typeof global.nativeRuntimeScheduler !== 'undefined' ? global.nativeRuntimeScheduler.unstable_getCurrentPriorityLevel : unstable_getCurrentPriorityLevel$1;
const r2 = typeof global.nativeRuntimeScheduler === 'undefined' ? shouldYieldToHost2 : global.nativeRuntimeScheduler.unstable_shouldYield;
let r4 = typeof global.nativeRuntimeScheduler !== 'undefined' ? global.nativeRuntimeScheduler.unstable_requestPaint : function() {
env0_12 = true;
};
r5 = typeof global.nativeRuntimeScheduler !== 'undefined' ? global.nativeRuntimeScheduler.unstable_now : r5;
exports.unstable_IdlePriority = typeof global.nativeRuntimeScheduler === 'undefined' ? 5 : global.nativeRuntimeScheduler.unstable_IdlePriority;
exports.unstable_ImmediatePriority = unstable_ImmediatePriority;
exports.unstable_LowPriority = unstable_LowPriority;
exports.unstable_NormalPriority = unstable_NormalPriority;
exports.unstable_Profiling = value2;
exports.unstable_UserBlockingPriority = unstable_UserBlockingPriority;
exports.unstable_cancelCallback = r7;
exports.unstable_forceFrameRate = closure3;
exports.unstable_getCurrentPriorityLevel = r6;
exports.unstable_next = closure3;
exports.unstable_now = r5;
exports.unstable_requestPaint = r4;
exports.unstable_runWithPriority = closure3;
exports.unstable_scheduleCallback = r3;
exports.unstable_shouldYield = r2;
exports.unstable_wrapCallback = closure3;
function pop_3408(a0) { // fn#3408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:187, offset: 0x00c96d02, size: 192 bytes, params: 2, frame: 26
var r1;
var r11;
var value3;
var value4;
var value5;
var property2;
var value6;
var property3;
let length = a0.length;
const value = 0;
if (value === length) {
return null;
}
const property = a0[value];
const value2 = a0.pop();
reducibleJoin12: while (true) {
if (value2 === property) {
break reducibleJoin12;
}
a0[value] = value2;
length = a0.length;
value3 = length >>> 1;
value4 = environment;
if (!(value < value3)) {
break reducibleJoin12;
}
r1 = value;
reducibleLoop3: while (true) {
value5 = 2 * (r1 + 1) - 1;
property2 = a0[value5];
value6 = value5 + 1;
property3 = a0[value6];
if (value > compare_3409(property2, value2)) {
reducibleJoin11: while (true) {
reducibleJoin9: while (true) {
if (value6 < length) {
if (value > compare_3409(property3, property2)) {
a0[r1] = property3;
a0[value6] = value2;
r11 = value6;
break reducibleJoin11;
}
break reducibleJoin9;
}
break reducibleJoin9;
}
a0[r1] = property2;
a0[value5] = value2;
r11 = value5;
break reducibleJoin11;
}
} else {
reducibleJoin11: while (true) {
reducibleJoin12: while (true) {
if (value6 < length) {
if (value > compare_3409(property3, value2)) {
a0[r1] = property3;
a0[value6] = value2;
r11 = value6;
break reducibleJoin11;
}
break reducibleJoin12;
}
break reducibleJoin12;
}
return property;
}
}
if (r11 < value3) {
r1 = r11;
continue reducibleLoop3;
}
break reducibleJoin12;
}
}
return property;
}
function advanceTimers(a0) { // fn#3410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:978, offset: 0x00c96dee, size: 120 bytes, params: 2, frame: 16
var r1;
var callback;
var startTime;
var expirationTime;
var value3;
const value2 = peek(env0_5);
if (value2 !== null) {
r1 = value2;
reducibleLoop1: while (true) {
callback = r1.callback;
if (callback === null) {
pop_3408(env0_5);
} else {
startTime = r1.startTime;
reducibleJoin5: while (true) {
reducibleJoin6: while (true) {
if (startTime <= a0) {
pop_3408(env0_5);
expirationTime = r1.expirationTime;
r1.sortIndex = expirationTime;
push_3406(env0_4, r1);
break reducibleJoin5;
}
break reducibleJoin6;
}
return undefined;
}
}
value3 = peek(env0_5);
if (value3 !== null) {
r1 = value3;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
}
function handleTimeout(a0) { // fn#3411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:1150, offset: 0x00c96e66, size: 119 bytes, params: 2, frame: 15
var value3;
advanceTimers(a0);
if (!env0_10) {
if (peek(env0_4) !== null) {
if (!env0_17) {
env0_16();
}
} else {
value3 = peek(env0_5);
if (value3 !== null) {
requestHostTimeout(handleTimeout, value3.startTime - a0);
}
}
}
}
function shouldYieldToHost() { // fn#3412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:1340, offset: 0x00c96edd, size: 46 bytes, params: 1, frame: 11
const binding = env0_12;
return binding ? !!binding : !(5 > env0_0() - env0_19);
}
function onmessage_3413() { // fn#3413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:1391, offset: 0x00c96f0b, size: 536 bytes, params: 1, frame: 24
var r7;
var r4;
var value;
var value2;
var value3;
var value4;
var binding;
var clearTimeoutBinding;
var advanceTimersBinding;
var peekBinding;
var binding2;
var value5;
var value6;
var binding3;
var expirationTime;
var value7;
var shouldYieldToHostBinding;
var shouldYieldToHost2;
var binding4;
var callback;
var value8;
var pop_3408Binding;
var binding5;
var binding6;
var binding7;
var priorityLevel;
var binding8;
var value9;
var value10;
var binding9;
var value11;
var value12;
var binding10;
var binding11;
var value13;
var value14;
var binding12;
var binding13;
var value15;
var value16;
var binding14;
var value17;
var shouldYieldToHost3;
var binding15;
var binding16;
var value18;
var binding17;
var value19;
var value20;
var requestHostTimeoutBinding;
var handleTimeoutBinding;
var startTime;
var value21;
var error;
exceptionSkip111: while (true) {
exceptionLanding111: while (true) {
exceptionSkip105: while (true) {
exceptionLanding105: while (true) {
value = environment;
value2 = false;
env0_12 = value2;
reducibleJoin104: while (true) {
if (env0_17) {
value3 = env0_0();
env0_19 = value3;
value4 = true;
try {
env0_10 = value2;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
binding = env0_11;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
reducibleJoin11: while (true) {
if (binding) {
try {
env0_11 = value2;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
clearTimeoutBinding = clearTimeout;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
binding = env0_18;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
clearTimeoutBinding(binding);
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
env0_18 = -1;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin11;
}
break reducibleJoin11;
}
try {
env0_9 = value4;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
binding = env0_8;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
advanceTimersBinding = advanceTimers;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
advanceTimersBinding(value3);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
peekBinding = peek;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding2 = env0_4;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value5 = peekBinding(binding2);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
env0_7 = value5;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value6 = value5 === null;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
reducibleJoin97: while (true) {
reducibleJoin84: while (true) {
if (value6) {
r7 = value3;
try {
try {
binding16 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin84;
}
try {
try {
binding3 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
expirationTime = binding3.expirationTime;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value7 = expirationTime > value3;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value7) {
try {
try {
shouldYieldToHostBinding = shouldYieldToHost;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
shouldYieldToHost2 = shouldYieldToHostBinding();
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (shouldYieldToHost2) {
r7 = value3;
try {
try {
binding16 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin84;
}
r7 = value3;
} else {
r7 = value3;
}
reducibleLoop29: while (true) {
try {
try {
binding4 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
callback = binding4.callback;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value8 = typeof callback === 'function';
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value8) {
try {
try {
binding6 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding6.callback = null;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding7 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
priorityLevel = binding7.priorityLevel;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
env0_8 = priorityLevel;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding8 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
expirationTime = binding8.expirationTime;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value9 = expirationTime <= r7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value10 = callback(value9);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding9 = env0_0;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value11 = binding9();
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value12 = typeof value10 === 'function';
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value12) {
try {
try {
binding15 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding15.callback = value10;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
advanceTimersBinding = advanceTimers;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
advanceTimersBinding(value11);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
r4 = value4;
break reducibleJoin97;
}
try {
try {
binding10 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
peekBinding = peek;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding11 = env0_4;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value13 = peekBinding(binding11);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value14 = binding10 !== value13;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
reducibleJoin61: while (true) {
if (value14) {
break reducibleJoin61;
}
try {
try {
pop_3408Binding = pop_3408;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding12 = env0_4;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
pop_3408Binding(binding12);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin61;
}
try {
try {
advanceTimersBinding = advanceTimers;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
advanceTimersBinding(value11);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
r7 = value11;
} else {
try {
try {
pop_3408Binding = pop_3408;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding5 = env0_4;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
pop_3408Binding(binding5);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
}
try {
try {
peekBinding = peek;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding13 = env0_4;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value15 = peekBinding(binding13);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
env0_7 = value15;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value16 = value15 === null;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value16) {
try {
try {
binding16 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin84;
}
try {
try {
binding14 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
expirationTime = binding14.expirationTime;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value17 = expirationTime > r7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value17) {
try {
try {
shouldYieldToHostBinding = shouldYieldToHost;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
shouldYieldToHost3 = shouldYieldToHostBinding();
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (shouldYieldToHost3) {
try {
try {
binding16 = env0_7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin84;
}
continue reducibleLoop29;
}
continue reducibleLoop29;
}
try {
env0_7 = null;
} catch (error) {
break exceptionLanding111;
}
try {
env0_8 = binding;
} catch (error) {
break exceptionLanding111;
}
try {
env0_9 = value2;
} catch (error) {
break exceptionLanding111;
}
if (r4) {
env0_16();
break reducibleJoin104;
}
env0_17 = value2;
break reducibleJoin104;
}
try {
try {
value18 = binding16 !== null;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
if (value18) {
r4 = value4;
break reducibleJoin97;
}
try {
try {
peekBinding = peek;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
binding17 = env0_5;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value19 = peekBinding(binding17);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value20 = value19 === null;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
reducibleJoin95: while (true) {
if (value20) {
break reducibleJoin95;
}
try {
try {
requestHostTimeoutBinding = requestHostTimeout;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
handleTimeoutBinding = handleTimeout;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
startTime = value19.startTime;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
value21 = startTime - r7;
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
try {
requestHostTimeoutBinding(handleTimeoutBinding, value21);
} catch (error) {
break exceptionLanding105;
}
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break reducibleJoin95;
}
r4 = value2;
break reducibleJoin97;
}
try {
env0_7 = null;
} catch (error) {
break exceptionLanding111;
}
try {
env0_8 = binding;
} catch (error) {
break exceptionLanding111;
}
try {
env0_9 = value2;
} catch (error) {
break exceptionLanding111;
}
if (r4) {
env0_16();
break reducibleJoin104;
}
env0_17 = value2;
break reducibleJoin104;
}
break reducibleJoin104;
}
return undefined;
break exceptionSkip105;
}
try {
env0_7 = null;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
env0_8 = binding;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
env0_9 = value2;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
try {
throw error;
} catch (error) {
r4 = value4;
break exceptionLanding111;
}
break exceptionSkip105;
}
break exceptionSkip111;
}
if (r4) {
env0_16();
throw error;
}
env0_17 = value2;
throw error;
break exceptionSkip111;
}
}
function requestHostTimeout(a0, a1) { // fn#3414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:2370, offset: 0x00c97123, size: 38 bytes, params: 3, frame: 14
const env0_0 = a0;
env0_18 = setTimeout(_fun3415, a1);
function _fun3415() { // fn#3415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:2408, offset: 0x00c97149, size: 27 bytes, params: 1, frame: 11
env0_0(env1_0());
}
}
function getCurrentTime_3418() { // fn#3418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:732, offset: 0x00c9718d, size: 26 bytes, params: 1, frame: 10
return Date.now() - env0_3;
}
function schedulePerformWorkUntilDeadline_3420() { // fn#3420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:2223, offset: 0x00c971bb, size: 24 bytes, params: 1, frame: 11
port2.postMessage(null);
}
function schedulePerformWorkUntilDeadline_3421() { // fn#3421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:2295, offset: 0x00c971d3, size: 23 bytes, params: 1, frame: 13
setTimeout(onmessage_3413, 0);
}
function unstable_scheduleCallback$1(a0, a1, a2) { // fn#3422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:315:2911, offset: 0x00c971ea, size: 379 bytes, params: 4, frame: 19
const value2 = env0_0();
const r1 = typeof a2 !== 'object' || a2 === null || typeof a2.delay !== 'number' ? value2 : 0 < a2.delay ? value2 + a2.delay : value2;
const value4 = -1;
const r6 = a0 === 1 ? value4 : a0 === 2 ? 250 : a0 === 5 ? 1073741823 : a0 === 4 ? 10000 : 5000;
const object = {};
const binding = env0_6;
const value9 = typeof binding === 'bigint' ? binding : +binding;
env0_6 = typeof value9 === 'bigint' ? value9 + 1n : +value9 + 1;
object.id = value9;
object.callback = a1;
object.priorityLevel = a0;
object.startTime = r1;
const value10 = r1 + r6;
object.expirationTime = value10;
object.sortIndex = value4;
if (r1 > value2) {
object.sortIndex = r1;
push_3406(env0_5, object);
if (peek(env0_4) === null && object === peek(env0_5)) {
if (env0_11) {
clearTimeout(env0_18);
}
requestHostTimeout(handleTimeout, r1 - value2);
}
} else {
object.sortIndex = value10;
push_3406(env0_4, object);
if (!(env0_10 || env0_9)) {
if (!env0_17) {
env0_16();
}
}
}
return object;
}
function unstable_getCurrentPriorityLevel$1() { // fn#3424, offset: 0x00c539ad, size: 9 bytes, params: 1, frame: 1
return env0_8;
}
}
global.__d(_fun3405, 274, []) /* metro module 274 */;