Files
2026-07-28 01:06:53 +03:00

1017 lines
42 KiB
JavaScript

/* Metro module 559; source: unknown; dependencies: [509, 553] */
import * as Module00509Module from './module-00509.js'; /* Metro dependency 509 */
function _fun6728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6, offset: 0x00d07165, size: 601 bytes, params: 8, frame: 14
let env0_0 = require;
const closure = function() {
};
module.exports = closure;
let prototype = closure.prototype;
prototype.clearTimeout = function() {
global.clearTimeout(this._timer);
global.clearTimeout(this._responseTimeoutTimer);
global.clearTimeout(this._uploadTimeoutTimer);
delete this._timer;
delete this._responseTimeoutTimer;
delete this._uploadTimeoutTimer;
return this;
};
closure.prototype.parse = function(a0) {
this._parser = a0;
return this;
};
closure.prototype.responseType = function(a0) {
this._responseType = a0;
return this;
};
closure.prototype.serialize = function(a0) {
this._serializer = a0;
return this;
};
closure.prototype.timeout = timeout;
closure.prototype.retry = function(a0, a1) {
var r2;
var value = a0;
var value2 = 0;
r2 = value2 !== arguments.length && value !== true ? value : 1;
r2 = r2 <= value2 ? value2 : r2;
this._maxRetries = r2;
this._retries = value2;
this._retryCallback = a1;
return this;
};
let Set = global.Set;
let set = new Set(['ETIMEDOUT', 'ECONNRESET', 'EADDRINUSE', 'ECONNREFUSED', 'EPIPE', 'ENOTFOUND', 'ENETUNREACH',
'EAI_AGAIN']);
Set = global.Set;
set = new Set([408, 413, 429, 500, 502, 503, 504, 521, 522, 524]);
closure.prototype._shouldRetry = _shouldRetry;
closure.prototype._retry = function() {
this.clearTimeout();
if (this.req) {
this.req = null;
this.req = this.request();
}
this._aborted = false;
this.timedout = false;
this.timedoutError = null;
return this._end();
};
closure.prototype.then = function(a0, a1) {
var env0_0 = this;
if (!this._fullfilledPromise) {
var env0_1 = this;
if (this._endCalled) {
global.console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');
}
this._fullfilledPromise = new global.Promise(_fun6739);
}
return this._fullfilledPromise.then(a0, a1);
};
closure.prototype.catch = function(a0) {
return this.then(undefined, a0);
};
closure.prototype.use = function(a0) {
a0(this);
return this;
};
closure.prototype.ok = function(a0) {
if (typeof a0 !== 'function') {
throw new global.Error('Callback required');
}
this._okCallback = a0;
return this;
};
closure.prototype._isResponseOK = function(a0) {
return a0 ? this._okCallback ? this._okCallback(a0) : a0.status >= 200 && a0.status < 300 : !!a0;
};
closure.prototype.get = function(a0) {
return this._header[a0.toLowerCase()];
};
prototype = closure.prototype;
const get = closure.prototype.get;
prototype.getHeader = get;
closure.prototype.set = set_6747;
closure.prototype.unset = function(a0) {
delete this._header[a0.toLowerCase()];
delete this.header[a0];
return this;
};
closure.prototype.field = field;
closure.prototype.abort = abort_6750;
closure.prototype._auth = _auth;
closure.prototype.withCredentials = function(a0) {
var value = a0;
this._withCredentials = !(value !== undefined) || value;
return this;
};
closure.prototype.redirects = function(a0) {
this._maxRedirects = a0;
return this;
};
closure.prototype.maxResponseSize = function(a0) {
if (typeof a0 !== 'number') {
throw new global.TypeError('Invalid argument');
}
this._maxResponseSize = a0;
return this;
};
closure.prototype.toJSON = function() {
return {method: this.method, url: this.url, data: this._data, headers: this._header};
};
closure.prototype.send = send;
closure.prototype.sortQuery = function(a0) {
var value = a0;
this._sort = value === undefined || value;
return this;
};
closure.prototype._finalizeQueryString = _finalizeQueryString;
closure.prototype._appendQueryString = function() {
global.console.warn('Unsupported');
};
closure.prototype._timeoutError = _timeoutError;
closure.prototype._setTimeouts = function() {
var env0_0 = this;
if (this._timeout && !this._timer) {
this._timer = global.setTimeout(_fun6762, this._timeout);
}
if (this._responseTimeout && !this._responseTimeoutTimer) {
this._responseTimeoutTimer = global.setTimeout(_fun6763, this._responseTimeout);
}
};
function timeout(a0) { // fn#6734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:595, offset: 0x00d07433, size: 205 bytes, params: 2, frame: 27
var r12;
var propertyName;
var propertyName2;
var moduleValue;
var hasOwn;
var console;
var upload;
var response;
var deadline;
if (a0) {
if (typeof a0 !== 'object') {
this._timeout = a0;
this._responseTimeout = 0;
this._uploadTimeout = 0;
return this;
}
for (propertyName in a0) {
moduleValue = require(509) /* metro dependency 509 */;
hasOwn = moduleValue.hasOwn;
if (!Reflect.apply(hasOwn, moduleValue, [a0, propertyName])) {
r12 = propertyName2;
continue;
}
if (propertyName === 'deadline') {
deadline = a0.deadline;
this._timeout = deadline;
r12 = propertyName2;
} else if (propertyName === 'response') {
response = a0.response;
this._responseTimeout = response;
r12 = propertyName2;
} else if (propertyName === 'upload') {
upload = a0.upload;
this._uploadTimeout = upload;
r12 = propertyName2;
} else {
console = global.console;
console.warn('Unknown timeout option', propertyName);
r12 = propertyName2;
}
}
} else {
this._timeout = a0;
this._responseTimeout = 0;
this._uploadTimeout = 0;
}
return this;
}
function _shouldRetry(a0, a1) { // fn#6736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:1329, offset: 0x00d0753d, size: 275 bytes, params: 3, frame: 16
var _retries;
var value;
var _retryCallback;
var value2;
var error;
var console;
var error2;
var status;
var binding;
var has;
var code;
var timeout;
var crossDomain;
if (this._maxRetries) {
_retries = this._retries;
value = typeof _retries === 'bigint' ? _retries : +_retries;
this._retries = typeof value === 'bigint' ? value + 1n : +value + 1;
reducibleJoin27: while (true) {
if (!(value >= this._maxRetries)) {
reducibleJoin14: while (true) {
reduciblePort13: while (true) {
exceptionLanding12: while (true) {
_retryCallback = this._retryCallback;
if (_retryCallback) {
try {
_retryCallback = this._retryCallback;
} catch (error) {
break exceptionLanding12;
}
try {
value = Reflect.apply(_retryCallback, this, [a0, a1]);
} catch (error) {
break exceptionLanding12;
}
try {
value2 = value === true;
} catch (error) {
break exceptionLanding12;
}
if (value2) {
return true;
}
try {
value = value === false;
} catch (error) {
break exceptionLanding12;
}
if (value) {
return false;
}
break reduciblePort13;
}
break reduciblePort13;
}
console = global.console;
error2 = console.error;
Reflect.apply(error2, console, [error]);
break reduciblePort13;
}
if (a1) {
break reducibleJoin14;
}
if (a0) {
code = a0.code;
reducibleJoin22: while (true) {
reducibleJoin21: while (true) {
if (code) {
value = environment;
binding = env0_2;
has = binding.has;
code = a0.code;
if (Reflect.apply(has, binding, [code])) {
return true;
}
if (a0.timeout) {
code = a0.code;
if (code === 'ECONNABORTED') {
return true;
}
break reducibleJoin21;
}
break reducibleJoin21;
}
timeout = a0.timeout;
if (timeout) {
code = a0.code;
if (code === 'ECONNABORTED') {
return true;
}
break reducibleJoin21;
}
break reducibleJoin21;
}
crossDomain = a0.crossDomain;
if (crossDomain) {
return true;
}
break reducibleJoin22;
}
}
return false;
}
status = a1.status;
if (status) {
value = environment;
binding = env0_3;
has = binding.has;
status = a1.status;
reducibleJoin16: while (true) {
if (Reflect.apply(has, binding, [status])) {
return true;
}
break reducibleJoin16;
}
}
if (a0) {
code = a0.code;
reducibleJoin22: while (true) {
reducibleJoin21: while (true) {
if (code) {
value = environment;
binding = env0_2;
has = binding.has;
code = a0.code;
if (Reflect.apply(has, binding, [code])) {
return true;
}
if (a0.timeout) {
code = a0.code;
if (code === 'ECONNABORTED') {
return true;
}
break reducibleJoin21;
}
break reducibleJoin21;
}
timeout = a0.timeout;
if (timeout) {
code = a0.code;
if (code === 'ECONNABORTED') {
return true;
}
break reducibleJoin21;
}
break reducibleJoin21;
}
crossDomain = a0.crossDomain;
if (crossDomain) {
return true;
}
break reducibleJoin22;
}
}
return false;
}
break reducibleJoin27;
}
}
return false;
}
function then_6738(a0, a1) { // fn#6738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:1909, offset: 0x00d076a0, size: 119 bytes, params: 3, frame: 14
if (!this._fullfilledPromise) {
if (this._endCalled) {
global.console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');
}
this._fullfilledPromise = new global.Promise(_fun6739);
}
return this._fullfilledPromise.then(a0, a1);
function _fun6739(a0, a1) { // fn#6739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:2171, offset: 0x00d07717, size: 67 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
env0_1.on('abort', _fun6740);
env0_1.end(_fun6741);
function _fun6740() { // fn#6740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:2199, offset: 0x00d0775a, size: 193 bytes, params: 1, frame: 12
var binding;
var error;
if (env1_0._maxRetries) {
binding = env1_0;
if (!(binding._maxRetries > binding._retries)) {
if (env1_0.timedout) {
if (env1_0.timedoutError) {
require(env1_0.timedoutError);
} else {
error = new global.Error('Aborted');
error.code = 'ABORTED';
binding = env1_0;
error.status = binding.status;
error.method = binding.method;
error.url = binding.url;
require(error);
}
} else {
error = new global.Error('Aborted');
error.code = 'ABORTED';
binding = env1_0;
error.status = binding.status;
error.method = binding.method;
error.url = binding.url;
require(error);
}
}
} else if (env1_0.timedout) {
if (env1_0.timedoutError) {
require(env1_0.timedoutError);
} else {
error = new global.Error('Aborted');
error.code = 'ABORTED';
binding = env1_0;
error.status = binding.status;
error.method = binding.method;
error.url = binding.url;
require(error);
}
} else {
error = new global.Error('Aborted');
error.code = 'ABORTED';
binding = env1_0;
error.status = binding.status;
error.method = binding.method;
error.url = binding.url;
require(error);
}
}
function _fun6741(a0, a1) { // fn#6741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:2419, offset: 0x00d0781b, size: 40 bytes, params: 3, frame: 13
if (a0) {
require(a0);
} else {
env0_0(a1);
}
}
}
}
function set_6747(a0, a1) { // fn#6747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:3037, offset: 0x00d07908, size: 152 bytes, params: 3, frame: 22
var r3;
var propertyName;
var propertyName2;
var moduleValue2;
var hasOwn;
if (Module00509Module.isObject(a0)) {
for (propertyName in a0) {
moduleValue2 = Module00509Module;
hasOwn = moduleValue2.hasOwn;
if (!Reflect.apply(hasOwn, moduleValue2, [a0, propertyName])) {
r3 = propertyName2;
continue;
}
this.set(propertyName, a0[propertyName]);
r3 = propertyName2;
}
} else {
this._header[a0.toLowerCase()] = a1;
this.header[a0] = a1;
}
return this;
}
function field(a0, a1, a2) { // fn#6749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:3342, offset: 0x00d079c5, size: 416 bytes, params: 4, frame: 24
var r4;
var r3;
var propertyName;
var propertyName2;
var moduleValue2;
var hasOwn;
var propertyName3;
let value = a1;
if (a0 == null) {
throw new global.Error('.field(name, val) name can not be empty');
}
if (this._data) {
throw new global.Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
}
const moduleValue = require(509) /* metro dependency 509 */;
if (moduleValue.isObject(a0)) {
for (propertyName in a0) {
value = moduleValue;
hasOwn = value.hasOwn;
if (!Reflect.apply(hasOwn, value, [a0, propertyName])) {
r3 = propertyName3;
continue;
}
this.field(propertyName, a0[propertyName]);
r3 = propertyName3;
}
} else {
var Array = global.Array;
if (Array.isArray(value)) {
for (propertyName in value) {
moduleValue2 = require(509) /* metro dependency 509 */;
hasOwn = moduleValue2.hasOwn;
if (!Reflect.apply(hasOwn, moduleValue2, [value, propertyName])) {
r3 = propertyName2;
continue;
}
this.field(a0, value[propertyName]);
r3 = propertyName2;
}
return this;
}
if (value == null) {
throw new global.Error('.field(name, val) val can not be empty');
}
if (typeof value !== 'boolean') {
r4 = value;
} else {
value = global.String(value);
r4 = value;
}
value = this._getFormData();
var append = value.append;
if (a2) {
Reflect.apply(append, value, [a0, r4, a2]);
} else {
Reflect.apply(append, value, [a0, r4]);
}
}
return this;
}
function abort_6750() { // fn#6750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:3948, offset: 0x00d07b65, size: 249 bytes, params: 1, frame: 18
var value;
var moduleValue;
if (!this._aborted) {
this._aborted = true;
if (this.xhr) {
this.xhr.abort();
}
if (this.req) {
moduleValue = require(553) /* metro dependency 553 */;
if (moduleValue.gte(global.process.version, 'v13.0.0')) {
value = require(553) /* metro dependency 553 */;
if (value.lt(global.process.version, 'v14.0.0')) {
throw new global.Error('Superagent does not work in v13 properly with abort() due to Node.js core changes');
}
this.req.abort();
this.clearTimeout();
this.emit('abort');
return this;
}
this.req.abort();
this.clearTimeout();
this.emit('abort');
return this;
}
this.clearTimeout();
this.emit('abort');
}
return this;
}
function send(a0) { // fn#6756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:5020, offset: 0x00d07da1, size: 687 bytes, params: 2, frame: 28
var r3;
var _data;
var r6;
var r5;
var r7;
var r2;
var r1;
var Array;
var isArray;
var _isHost;
var moduleValue2;
var value3;
var type;
var toLowerCase;
var value4;
var trim;
var value5;
var value6;
var value7;
var HermesInternal;
var concat;
var value8;
var properties;
var properties2;
var properties3;
var propertyName;
var propertyName2;
var toJSON;
var moduleValue3;
var hasOwn;
var value9;
let value = a0;
const isObject2 = (require(509) /* metro dependency 509 */).isObject(value);
let _header = this._header;
let property = _header['content-type'];
if (this._formData) {
throw new global.Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
}
if (isObject2) {
_data = this._data;
reducibleJoin7: while (true) {
if (!_data) {
Array = global.Array;
isArray = Array.isArray;
if (Reflect.apply(isArray, Array, [value])) {
this._data = [];
} else {
_isHost = this._isHost;
reducibleJoin10: while (true) {
if (Reflect.apply(_isHost, this, [value])) {
break reducibleJoin10;
}
this._data = {};
break reducibleJoin10;
}
}
if (isObject2) {
moduleValue2 = require(509) /* metro dependency 509 */;
isObject = moduleValue2.isObject;
_data = this._data;
reducibleJoin12: while (true) {
if (Reflect.apply(isObject, moduleValue2, [_data])) {
properties = Object.keys(value);
properties2 = 0;
properties3 = properties.length;
if (properties === undefined) {
r2 = property;
} else {
r7 = properties2;
reducibleLoop29: while (true) {
propertyName = properties[r7];
propertyName2 = r7 + 1;
if (propertyName === undefined) {
r2 = property;
break reducibleLoop29;
}
if (typeof value[propertyName] === 'bigint') {
toJSON = value[propertyName].toJSON;
reducibleJoin33: while (true) {
if (!toJSON) {
throw new global.Error('Cannot serialize BigInt value to json');
}
break reducibleJoin33;
}
}
moduleValue3 = require(509) /* metro dependency 509 */;
hasOwn = moduleValue3.hasOwn;
if (Reflect.apply(hasOwn, moduleValue3, [value, propertyName])) {
_data = this._data;
_data[propertyName] = value[propertyName];
r7 = propertyName2;
continue reducibleLoop29;
}
r7 = propertyName2;
continue reducibleLoop29;
}
}
value9 = !isObject2;
reducibleJoin37: while (true) {
if (isObject2) {
_isHost = this._isHost;
value = Reflect.apply(_isHost, this, [value]);
r1 = value;
break reducibleJoin37;
}
r1 = value9;
break reducibleJoin37;
}
if (!r1) {
r1 = r2;
}
reducibleJoin40: while (true) {
if (r1) {
break reducibleJoin40;
}
type = this.type;
Reflect.apply(type, this, ['json']);
break reducibleJoin40;
}
return this;
}
break reducibleJoin12;
}
}
value3 = typeof value;
if (value3 === 'bigint') {
throw new global.Error('Cannot send value of type BigInt');
}
if (value3 === 'string') {
reducibleJoin17: while (true) {
if (property) {
break reducibleJoin17;
}
type = this.type;
Reflect.apply(type, this, ['form']);
break reducibleJoin17;
}
_header = this._header;
property = _header['content-type'];
reducibleJoin19: while (true) {
if (property) {
toLowerCase = property.toLowerCase;
value4 = Reflect.apply(toLowerCase, property, []);
trim = value4.trim;
value5 = Reflect.apply(trim, value4, []);
r3 = value5;
break reducibleJoin19;
}
r3 = property;
break reducibleJoin19;
}
if (r3 === 'application/x-www-form-urlencoded') {
_data = this._data;
reducibleJoin25: while (true) {
if (_data) {
_data = this._data;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
value8 = '' + _data + '&' + value;
r6 = value8;
break reducibleJoin25;
}
r6 = value;
break reducibleJoin25;
}
r5 = r6;
} else {
_data = this._data;
reducibleJoin22: while (true) {
if (_data) {
break reducibleJoin22;
}
value6 = '';
_data = value6;
break reducibleJoin22;
}
value7 = _data + value;
r5 = value7;
}
this._data = r5;
r2 = r3;
} else {
this._data = value;
r2 = property;
}
value9 = !isObject2;
reducibleJoin37: while (true) {
if (isObject2) {
_isHost = this._isHost;
value = Reflect.apply(_isHost, this, [value]);
r1 = value;
break reducibleJoin37;
}
r1 = value9;
break reducibleJoin37;
}
if (!r1) {
r1 = r2;
}
reducibleJoin40: while (true) {
if (r1) {
break reducibleJoin40;
}
type = this.type;
Reflect.apply(type, this, ['json']);
break reducibleJoin40;
}
return this;
}
break reducibleJoin7;
}
}
if (value) {
_data = this._data;
reducibleJoin10: while (true) {
if (_data) {
_isHost = this._isHost;
_data = this._data;
if (Reflect.apply(_isHost, this, [_data])) {
throw new global.Error("Can't merge these send calls");
}
break reducibleJoin10;
}
break reducibleJoin10;
}
}
if (isObject2) {
moduleValue2 = require(509) /* metro dependency 509 */;
isObject = moduleValue2.isObject;
_data = this._data;
reducibleJoin12: while (true) {
if (Reflect.apply(isObject, moduleValue2, [_data])) {
properties = Object.keys(value);
properties2 = 0;
properties3 = properties.length;
if (properties === undefined) {
r2 = property;
} else {
r7 = properties2;
reducibleLoop29: while (true) {
propertyName = properties[r7];
propertyName2 = r7 + 1;
if (propertyName === undefined) {
r2 = property;
break reducibleLoop29;
}
if (typeof value[propertyName] === 'bigint') {
toJSON = value[propertyName].toJSON;
reducibleJoin33: while (true) {
if (!toJSON) {
throw new global.Error('Cannot serialize BigInt value to json');
}
break reducibleJoin33;
}
}
moduleValue3 = require(509) /* metro dependency 509 */;
hasOwn = moduleValue3.hasOwn;
if (Reflect.apply(hasOwn, moduleValue3, [value, propertyName])) {
_data = this._data;
_data[propertyName] = value[propertyName];
r7 = propertyName2;
continue reducibleLoop29;
}
r7 = propertyName2;
continue reducibleLoop29;
}
}
value9 = !isObject2;
reducibleJoin37: while (true) {
if (isObject2) {
_isHost = this._isHost;
value = Reflect.apply(_isHost, this, [value]);
r1 = value;
break reducibleJoin37;
}
r1 = value9;
break reducibleJoin37;
}
if (!r1) {
r1 = r2;
}
reducibleJoin40: while (true) {
if (r1) {
break reducibleJoin40;
}
type = this.type;
Reflect.apply(type, this, ['json']);
break reducibleJoin40;
}
return this;
}
break reducibleJoin12;
}
}
value3 = typeof value;
if (value3 === 'bigint') {
throw new global.Error('Cannot send value of type BigInt');
}
if (value3 === 'string') {
reducibleJoin17: while (true) {
if (property) {
break reducibleJoin17;
}
type = this.type;
Reflect.apply(type, this, ['form']);
break reducibleJoin17;
}
property = this._header['content-type'];
reducibleJoin19: while (true) {
if (property) {
toLowerCase = property.toLowerCase;
value4 = Reflect.apply(toLowerCase, property, []);
trim = value4.trim;
value5 = Reflect.apply(trim, value4, []);
r3 = value5;
break reducibleJoin19;
}
r3 = property;
break reducibleJoin19;
}
if (r3 === 'application/x-www-form-urlencoded') {
_data = this._data;
reducibleJoin25: while (true) {
if (_data) {
_data = this._data;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
value8 = '' + _data + '&' + value;
r6 = value8;
break reducibleJoin25;
}
r6 = value;
break reducibleJoin25;
}
r5 = r6;
} else {
_data = this._data;
reducibleJoin22: while (true) {
if (_data) {
break reducibleJoin22;
}
value6 = '';
_data = value6;
break reducibleJoin22;
}
r5 = _data + value;
}
this._data = r5;
r2 = r3;
} else {
this._data = value;
r2 = property;
}
reducibleJoin37: while (true) {
if (isObject2) {
_isHost = this._isHost;
value = Reflect.apply(_isHost, this, [value]);
r1 = value;
break reducibleJoin37;
}
r1 = !isObject2;
break reducibleJoin37;
}
r1 = !r1 ? r2 : r1;
reducibleJoin40: while (true) {
if (r1) {
break reducibleJoin40;
}
type = this.type;
Reflect.apply(type, this, ['json']);
break reducibleJoin40;
}
return this;
}
function _setTimeouts() { // fn#6761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6723, offset: 0x00d0820c, size: 121 bytes, params: 1, frame: 15
if (this._timeout && !this._timer) {
this._timer = global.setTimeout(_fun6762, this._timeout);
}
if (this._responseTimeout && !this._responseTimeoutTimer) {
this._responseTimeoutTimer = global.setTimeout(_fun6763, this._responseTimeout);
}
function _fun6762() { // fn#6762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6799, offset: 0x00d08285, size: 42 bytes, params: 1, frame: 15
const binding = env0_0;
binding._timeoutError('Timeout of ', binding._timeout, 'ETIME');
}
function _fun6763() { // fn#6763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6970, offset: 0x00d082af, size: 42 bytes, params: 1, frame: 15
const binding = env0_0;
binding._timeoutError('Response timeout of ', binding._responseTimeout, 'ETIMEDOUT');
}
}
}
function _auth(a0, a1, {type}, a3) { // fn#6751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:4324, offset: 0x00d07c5e, size: 178 bytes, params: 5, frame: 18
var set;
var value;
if (type === 'basic') {
set = this.set;
value = '' + a0 + ':' + a1;
value = a3(value);
value = 'Basic ' + value;
Reflect.apply(set, this, ['Authorization', value]);
} else if (type === 'auto') {
this.username = a0;
this.password = a1;
} else if (type === 'bearer') {
this.set('Authorization', 'Bearer ' + a0);
}
return this;
}
function _finalizeQueryString() { // fn#6758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6080, offset: 0x00d0806a, size: 246 bytes, params: 1, frame: 17
var url;
var url2;
var includes;
var value3;
var value4;
var value6;
const _query = this._query;
const value = '&';
const value2 = _query.join(value);
if (value2) {
url = this.url;
url2 = this.url;
includes = url2.includes;
value3 = '?';
this.url = url + ((Reflect.apply(includes, url2, [value3]) ? value : value3) + value2);
}
this._query.length = 0;
if (this._sort) {
url = this.url;
value4 = url.indexOf('?');
if (value4 >= 0) {
url = this.url;
value6 = url.slice(value4 + 1).split(value);
if (typeof this._sort === 'function') {
value6.sort(this._sort);
} else {
value6.sort();
}
url = this.url;
this.url = url.slice(0, value4) + '?' + value6.join(value);
}
}
}
function _timeoutError(a0, a1, a2) { // fn#6760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:609:6502, offset: 0x00d0817a, size: 146 bytes, params: 4, frame: 16
var Error;
var value;
var error;
if (!this._aborted) {
Error = global.Error;
value = a0 + a1;
value = '' + value + 'ms exceeded';
error = new Error();
error.timeout = a1;
error.code = 'ECONNABORTED';
error.errno = a2;
this.timedout = true;
this.timedoutError = error;
this.abort();
this.callback(error);
}
}
global.__d(_fun6728, 559, [509, 553]) /* metro module 559, dependencies: [509, 553] */;