897 lines
34 KiB
JavaScript
897 lines
34 KiB
JavaScript
/* Metro module 1474; source: unknown; dependencies: [] */
|
|
function _fun16839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:6, offset: 0x00e5c6e6, size: 39 bytes, params: 8, frame: 11
|
|
_fun16840(this);
|
|
function _fun16840(a0) { // fn#16840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:33, offset: 0x00e5c70d, size: 585 bytes, params: 2, frame: 22
|
|
var r9;
|
|
var r3;
|
|
var r1;
|
|
var r2;
|
|
var r6;
|
|
var binding;
|
|
var nodeType;
|
|
var value4;
|
|
var value6;
|
|
var window;
|
|
var value9;
|
|
var self;
|
|
var value10;
|
|
var amd;
|
|
var exports;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
let value = a0;
|
|
const map_16842 = function(a0, a1) {
|
|
var r3;
|
|
var value3;
|
|
var length = a0.length;
|
|
var items = [];
|
|
var value = typeof length === 'bigint' ? length : +length;
|
|
if (value) {
|
|
for (r3 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r3 = value3) {
|
|
items[r3] = a1(a0[r3]);
|
|
value = typeof r3 === 'bigint' ? r3 : +r3;
|
|
value3 = typeof value === 'bigint' ? value - 1n : +value - 1;
|
|
if (!value) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const decode_168442 = decode_16844;
|
|
const encode_168452 = encode_16845;
|
|
const digitToBasic = function(a0, a1) {
|
|
var value = a0 + 22;
|
|
value += 75 * (a0 < 26);
|
|
return value - ((0 != 0) << 5);
|
|
};
|
|
const decode_168492 = decode_16849;
|
|
const encode_168502 = encode_16850;
|
|
let value3 = typeof env0_2 === 'object';
|
|
reducibleJoin2: while (true) {
|
|
if (value3) {
|
|
binding = env0_2;
|
|
r9 = binding;
|
|
break reducibleJoin2;
|
|
}
|
|
r9 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r9) {
|
|
nodeType = env0_2.nodeType;
|
|
value4 = !nodeType;
|
|
r9 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r9) {
|
|
binding = env0_2;
|
|
r9 = binding;
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
const value5 = typeof env0_1 === 'object';
|
|
reducibleJoin8: while (true) {
|
|
if (value5) {
|
|
binding = env0_1;
|
|
r3 = binding;
|
|
break reducibleJoin8;
|
|
}
|
|
r3 = value5;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
nodeType = env0_1.nodeType;
|
|
value6 = !nodeType;
|
|
r3 = value6;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (r3) {
|
|
binding = env0_1;
|
|
r3 = binding;
|
|
break reducibleJoin12;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
const value7 = typeof env0_0 === 'object';
|
|
reducibleJoin14: while (true) {
|
|
if (value7) {
|
|
binding = env0_0;
|
|
r1 = binding;
|
|
break reducibleJoin14;
|
|
}
|
|
r1 = value7;
|
|
break reducibleJoin14;
|
|
}
|
|
const value8 = r1.global !== r1;
|
|
reducibleJoin16: while (true) {
|
|
if (value8) {
|
|
window = r1.window;
|
|
value9 = window !== r1;
|
|
r2 = value9;
|
|
break reducibleJoin16;
|
|
}
|
|
r2 = value8;
|
|
break reducibleJoin16;
|
|
}
|
|
reducibleJoin18: while (true) {
|
|
if (r2) {
|
|
self = r1.self;
|
|
value10 = self !== r1;
|
|
r2 = value10;
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
const r5 = r2 ? value : r1;
|
|
var env0_1 = 2147483647;
|
|
const env0_3 = RegExp('^xn--', '');
|
|
const env0_4 = RegExp('[^\\x20-\\x7E]', '');
|
|
const env0_5 = RegExp('[\\x2E\\u3002\\uFF0E\\uFF61]', 'g');
|
|
const env0_6 = {'overflow': 'Overflow: input needs wider integers to process',
|
|
'not-basic': 'Illegal input >= 0x80 (not a basic code point)', 'invalid-input': 'Invalid input'};
|
|
const Math = global.Math;
|
|
const env0_7 = Math.floor;
|
|
const String = global.String;
|
|
const env0_8 = String.fromCharCode;
|
|
const object = {version: '1.4.1'};
|
|
object.ucs2 = {decode: decode_168442, encode: encode_168452};
|
|
object.decode = decode_168492;
|
|
object.encode = encode_168502;
|
|
object.toASCII = function(a0) {
|
|
return mapDomain(a0, _fun16852);
|
|
};
|
|
object.toUnicode = function(a0) {
|
|
return mapDomain(a0, _fun16854);
|
|
};
|
|
let define = global.define;
|
|
reducibleJoin32: while (true) {
|
|
reducibleJoin24: while (true) {
|
|
if (typeof define !== 'function') {
|
|
if (r9) {
|
|
if (r3) {
|
|
exports = env0_1.exports;
|
|
if (exports == r9) {
|
|
r3.exports = object;
|
|
break reducibleJoin32;
|
|
}
|
|
properties = Object.keys(object);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r6 = properties2;
|
|
reducibleLoop27: while (true) {
|
|
propertyName = properties[r6];
|
|
propertyName2 = r6 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleJoin32;
|
|
}
|
|
hasOwnProperty = object.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, object, [propertyName])) {
|
|
r9[propertyName] = object[propertyName];
|
|
r6 = propertyName2;
|
|
continue reducibleLoop27;
|
|
}
|
|
r6 = propertyName2;
|
|
continue reducibleLoop27;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
define = global.define;
|
|
amd = define.amd;
|
|
if (typeof amd === 'object') {
|
|
define = global.define;
|
|
amd = define.amd;
|
|
if (amd) {
|
|
define = global.define;
|
|
define('punycode', _fun16855);
|
|
break reducibleJoin32;
|
|
}
|
|
}
|
|
if (r9) {
|
|
if (r3) {
|
|
exports = env0_1.exports;
|
|
if (exports == r9) {
|
|
r3.exports = object;
|
|
break reducibleJoin32;
|
|
}
|
|
properties = Object.keys(object);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r6 = properties2;
|
|
reducibleLoop27: while (true) {
|
|
propertyName = properties[r6];
|
|
propertyName2 = r6 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleJoin32;
|
|
}
|
|
hasOwnProperty = object.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, object, [propertyName])) {
|
|
r9[propertyName] = object[propertyName];
|
|
r6 = propertyName2;
|
|
continue reducibleLoop27;
|
|
}
|
|
r6 = propertyName2;
|
|
continue reducibleLoop27;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
r5.punycode = object;
|
|
break reducibleJoin32;
|
|
}
|
|
function error_16841(a0) { // fn#16841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:477, offset: 0x00e5c956, size: 44 bytes, params: 2, frame: 11
|
|
const RangeError = global.RangeError;
|
|
throw new RangeError(env0_6[a0]);
|
|
}
|
|
|
|
function mapDomain(a0, a1) { // fn#16843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:591, offset: 0x00e5c9b4, size: 113 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var r4;
|
|
var property;
|
|
let value = a0;
|
|
const value2 = value.split('@');
|
|
if (value2.length > 1) {
|
|
value = value2[0] + '@';
|
|
property = value2[1];
|
|
r1 = value;
|
|
r4 = property;
|
|
} else {
|
|
r1 = '';
|
|
r4 = value;
|
|
}
|
|
const map_16842Binding = map_16842;
|
|
value = r4.replace(env0_5, '.');
|
|
value = value.split('.');
|
|
value = map_16842Binding(value, a1);
|
|
return r1 + value.join('.');
|
|
}
|
|
|
|
function encode_16845(a0) { // fn#16845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:943, offset: 0x00e5cae7, size: 41 bytes, params: 2, frame: 13
|
|
return map_16842(a0, _fun16846).join('');
|
|
function _fun16846(a0) { // fn#16846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:980, offset: 0x00e5cb10, size: 111 bytes, params: 2, frame: 16
|
|
var r1;
|
|
var r3;
|
|
var value3;
|
|
var fromCharCodeBinding;
|
|
var value4;
|
|
let value = a0;
|
|
if (value > 65535) {
|
|
value3 = environment.__proto__;
|
|
fromCharCodeBinding = fromCharCode;
|
|
value -= 65536;
|
|
value4 = String(fromCharCodeBinding(value >>> 10 & 1023 | 55296));
|
|
value = 56320 | 1023 & value;
|
|
r1 = value4;
|
|
r3 = value;
|
|
} else {
|
|
r1 = '';
|
|
r3 = value;
|
|
}
|
|
value = environment.__proto__;
|
|
return r1 + fromCharCode(r3);
|
|
}
|
|
|
|
}
|
|
|
|
function adapt(a0, a1, a2) { // fn#16848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:1148, offset: 0x00e5cbae, size: 151 bytes, params: 4, frame: 18
|
|
var r1;
|
|
var r4;
|
|
var r5;
|
|
var value4;
|
|
var value5;
|
|
let r3 = a2 ? floor(a0 / 700) : a0 >> 1;
|
|
const value2 = r3 + floor(r3 / a1);
|
|
const value3 = 0;
|
|
if (value2 > 455) {
|
|
r1 = value3;
|
|
for (r4 = value2; true; r4 = value4) {
|
|
value4 = floor(r4 / 35);
|
|
value5 = r1 + env0_2;
|
|
if (!(value4 > 455)) {
|
|
r3 = value5;
|
|
r5 = value4;
|
|
break;
|
|
}
|
|
r1 = value5;
|
|
}
|
|
} else {
|
|
r3 = value3;
|
|
r5 = value2;
|
|
}
|
|
return floor(r3 + 36 * r5 / (r5 + 38));
|
|
}
|
|
|
|
function decode_16849(a0) { // fn#16849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:1255, offset: 0x00e5cc45, size: 713 bytes, params: 2, frame: 42
|
|
var r3;
|
|
var r14;
|
|
var r16;
|
|
var r20;
|
|
var r21;
|
|
var r25;
|
|
var r22;
|
|
var r24;
|
|
var r26;
|
|
var r27;
|
|
var r30;
|
|
var r23;
|
|
var charCodeAt;
|
|
var push;
|
|
var value4;
|
|
var binding;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var binding2;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var floorBinding;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var adaptBinding;
|
|
var length2;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var value37;
|
|
var splice;
|
|
var value38;
|
|
const items2 = [];
|
|
const length = a0.length;
|
|
const value = a0.lastIndexOf('-');
|
|
const value2 = 0;
|
|
const r4 = value < value2 ? value2 : value;
|
|
const value3 = 128;
|
|
if (value2 < r4) {
|
|
r3 = value2;
|
|
while (true) {
|
|
charCodeAt = a0.charCodeAt;
|
|
if (Reflect.apply(charCodeAt, a0, [r3]) >= value3) {
|
|
error_16841('not-basic');
|
|
}
|
|
push = items2.push;
|
|
charCodeAt = a0.charCodeAt;
|
|
Reflect.apply(push, items2, [Reflect.apply(charCodeAt, a0, [r3])]);
|
|
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value4 < r4) {
|
|
r3 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
let r15 = r4 > value2 ? r4 + 1 : value2;
|
|
const value6 = 72;
|
|
const value7 = 1;
|
|
const value8 = 26;
|
|
if (r15 < length) {
|
|
r3 = value2;
|
|
r14 = value6;
|
|
r16 = value3;
|
|
while (true) {
|
|
binding = env0_2;
|
|
if (r15 >= length) {
|
|
error_16841('invalid-input');
|
|
}
|
|
charCodeAt = a0.charCodeAt;
|
|
value9 = typeof r15 === 'bigint' ? r15 : +r15;
|
|
value10 = typeof value9 === 'bigint' ? value9 + 1n : +value9 + 1;
|
|
value11 = Reflect.apply(charCodeAt, a0, [value9]);
|
|
if (value11 - 48 < 10) {
|
|
value14 = value11 - 22;
|
|
r20 = value14;
|
|
} else if (value11 - 65 < value8) {
|
|
value13 = value11 - 65;
|
|
r20 = value13;
|
|
} else if (value11 - 97 < value8) {
|
|
value12 = value11 - 97;
|
|
r20 = value12;
|
|
} else {
|
|
binding2 = env0_2;
|
|
r20 = binding2;
|
|
}
|
|
value15 = r20 >= env0_2;
|
|
if (value15) {
|
|
r21 = value15;
|
|
continue;
|
|
}
|
|
value16 = r20 > floor((env0_1 - r3) / value7);
|
|
r21 = value16;
|
|
if (!r21) {
|
|
continue;
|
|
}
|
|
error_16841('overflow');
|
|
value17 = r3 + r20 * value7;
|
|
if (binding <= r14) {
|
|
r25 = value7;
|
|
continue;
|
|
}
|
|
if (binding >= r14 + value8) {
|
|
r21 = value8;
|
|
continue;
|
|
}
|
|
value18 = binding - r14;
|
|
r21 = value18;
|
|
r25 = r21;
|
|
if (r20 < r25) {
|
|
r15 = value10;
|
|
r23 = value17;
|
|
continue;
|
|
}
|
|
r21 = value17;
|
|
r22 = value7;
|
|
r24 = value10;
|
|
r26 = binding;
|
|
while (true) {
|
|
floorBinding = floor;
|
|
binding = env0_1;
|
|
value19 = env0_2 - r25;
|
|
if (r22 > floorBinding(binding / value19)) {
|
|
error_16841('overflow');
|
|
}
|
|
value20 = r22 * value19;
|
|
value21 = r26 + env0_2;
|
|
if (!(r24 >= length)) {
|
|
continue;
|
|
}
|
|
error_16841('invalid-input');
|
|
charCodeAt = a0.charCodeAt;
|
|
value22 = typeof r24 === 'bigint' ? r24 : +r24;
|
|
value23 = typeof value22 === 'bigint' ? value22 + 1n : +value22 + 1;
|
|
value24 = Reflect.apply(charCodeAt, a0, [value22]);
|
|
if (value24 - 48 < 10) {
|
|
value27 = value24 - 22;
|
|
r20 = value27;
|
|
} else if (value24 - 65 < value8) {
|
|
value26 = value24 - 65;
|
|
r20 = value26;
|
|
} else if (value24 - 97 < value8) {
|
|
value25 = value24 - 97;
|
|
r20 = value25;
|
|
} else {
|
|
binding = env0_2;
|
|
r20 = binding;
|
|
}
|
|
value28 = r20 >= env0_2;
|
|
if (value28) {
|
|
r27 = value28;
|
|
continue;
|
|
}
|
|
value29 = r20 > floor((env0_1 - r21) / value20);
|
|
r27 = value29;
|
|
if (!r27) {
|
|
continue;
|
|
}
|
|
error_16841('overflow');
|
|
value30 = r21 + r20 * value20;
|
|
if (value21 <= r14) {
|
|
r25 = value7;
|
|
continue;
|
|
}
|
|
if (value21 >= r14 + value8) {
|
|
r30 = value8;
|
|
continue;
|
|
}
|
|
value31 = value21 - r14;
|
|
r30 = value31;
|
|
r25 = r30;
|
|
if (r20 < r25) {
|
|
r15 = value23;
|
|
r23 = value30;
|
|
break;
|
|
}
|
|
r21 = value30;
|
|
r22 = value20;
|
|
r24 = value23;
|
|
r26 = value21;
|
|
continue;
|
|
}
|
|
adaptBinding = adapt;
|
|
length2 = items2.length;
|
|
value32 = length2 + value7;
|
|
value33 = adaptBinding(r23 - r3, value32, value2 === r3);
|
|
floorBinding = floor;
|
|
value34 = r23 / value32;
|
|
value35 = floorBinding(value34);
|
|
if (!(value35 > env0_1 - r16)) {
|
|
continue;
|
|
}
|
|
error_16841('overflow');
|
|
value36 = r16 + floor(value34);
|
|
value37 = r23 % value32;
|
|
splice = items2.splice;
|
|
value38 = typeof value37 === 'bigint' ? value37 + 1n : +value37 + 1;
|
|
Reflect.apply(splice, items2, [value37, value2, value36]);
|
|
if (r15 < length) {
|
|
r3 = value38;
|
|
r14 = value33;
|
|
r16 = value36;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return encode_16845(items2);
|
|
}
|
|
|
|
function encode_16850(a0) { // fn#16850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:1811, offset: 0x00e5cf0e, size: 644 bytes, params: 2, frame: 55
|
|
var r0;
|
|
var r4;
|
|
var r5;
|
|
var r9;
|
|
var r12;
|
|
var r19;
|
|
var r20;
|
|
var r22;
|
|
var r18;
|
|
var r23;
|
|
var r24;
|
|
var r25;
|
|
var r26;
|
|
var r29;
|
|
var r37;
|
|
var r31;
|
|
var r35;
|
|
var r36;
|
|
var r38;
|
|
var r42;
|
|
var r39;
|
|
var r32;
|
|
var r33;
|
|
var r34;
|
|
var property;
|
|
var value5;
|
|
var binding;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var floorBinding;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
const items2 = [];
|
|
const value2 = decode_16844(a0);
|
|
const length = value2.length;
|
|
const value3 = 0;
|
|
const value4 = 128;
|
|
if (value3 < length) {
|
|
r0 = value3;
|
|
while (true) {
|
|
property = value2[r0];
|
|
if (property < value4) {
|
|
items2.push(fromCharCode(property));
|
|
}
|
|
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value5 < length) {
|
|
r0 = value5;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
const length2 = items2.length;
|
|
if (length2) {
|
|
items2.push('-');
|
|
}
|
|
const value6 = 72;
|
|
const value7 = 26;
|
|
const value8 = 1;
|
|
if (length2 < length) {
|
|
r4 = length2;
|
|
r5 = value3;
|
|
r9 = value6;
|
|
r12 = value4;
|
|
while (true) {
|
|
binding = env0_1;
|
|
if (value3 < length) {
|
|
r19 = binding;
|
|
r20 = value3;
|
|
while (true) {
|
|
property = value2[r20];
|
|
value9 = property >= r12;
|
|
if (value9) {
|
|
value10 = property < r19;
|
|
r22 = value10;
|
|
} else {
|
|
r22 = value9;
|
|
}
|
|
if (r22) {
|
|
r19 = property;
|
|
continue;
|
|
}
|
|
continue;
|
|
value11 = typeof r20 === 'bigint' ? r20 + 1n : +r20 + 1;
|
|
if (value11 < length) {
|
|
r20 = value11;
|
|
continue;
|
|
}
|
|
r18 = r19;
|
|
break;
|
|
}
|
|
} else {
|
|
r18 = binding;
|
|
}
|
|
value12 = r18 - r12;
|
|
floorBinding = floor;
|
|
value13 = env0_1 - r5;
|
|
value14 = r4 + value8;
|
|
if (!(value12 > floorBinding(value13 / value14))) {
|
|
continue;
|
|
}
|
|
error_16841('overflow');
|
|
value15 = r5 + (r18 - r12) * value14;
|
|
if (!(value3 < length)) {
|
|
r19 = value15;
|
|
continue;
|
|
}
|
|
r23 = value3;
|
|
r24 = r9;
|
|
r25 = r4;
|
|
r26 = value15;
|
|
while (true) {
|
|
property = value2[r23];
|
|
value16 = property < r18;
|
|
if (value16) {
|
|
value17 = typeof r26 === 'bigint' ? r26 + 1n : +r26 + 1;
|
|
value18 = value17 > env0_1;
|
|
r29 = value18;
|
|
r37 = value17;
|
|
} else {
|
|
r29 = value16;
|
|
r37 = r26;
|
|
}
|
|
if (!r29) {
|
|
continue;
|
|
}
|
|
error_16841('overflow');
|
|
if (property != r18) {
|
|
r32 = r24;
|
|
r33 = r25;
|
|
r34 = r37;
|
|
continue;
|
|
}
|
|
binding = env0_2;
|
|
if (binding <= r24) {
|
|
r29 = value8;
|
|
continue;
|
|
}
|
|
if (binding >= r24 + value7) {
|
|
r31 = value7;
|
|
continue;
|
|
}
|
|
value19 = binding - r24;
|
|
r31 = value19;
|
|
r29 = r31;
|
|
if (r37 < r29) {
|
|
r31 = r37;
|
|
continue;
|
|
}
|
|
r35 = r29;
|
|
r36 = binding;
|
|
r38 = r37;
|
|
while (true) {
|
|
value20 = r38 - r35;
|
|
value21 = env0_2 - r35;
|
|
items2.push(fromCharCode(digitToBasic(r35 + value20 % value21, value3)));
|
|
value22 = floor(value20 / value21);
|
|
value23 = r36 + env0_2;
|
|
if (value23 <= r24) {
|
|
r39 = value8;
|
|
} else {
|
|
if (value23 >= r24 + value7) {
|
|
r42 = value7;
|
|
continue;
|
|
}
|
|
value24 = value23 - r24;
|
|
r42 = value24;
|
|
r39 = r42;
|
|
}
|
|
if (value22 < r39) {
|
|
r31 = value22;
|
|
break;
|
|
}
|
|
r35 = r39;
|
|
r36 = value23;
|
|
r38 = value22;
|
|
continue;
|
|
}
|
|
items2.push(fromCharCode(digitToBasic(r31, value3)));
|
|
value25 = adapt(r37, value14, r25 == length2);
|
|
value26 = typeof r25 === 'bigint' ? r25 + 1n : +r25 + 1;
|
|
r32 = value25;
|
|
r33 = value26;
|
|
r34 = value3;
|
|
value27 = typeof r23 === 'bigint' ? r23 + 1n : +r23 + 1;
|
|
if (value27 < length) {
|
|
r23 = value27;
|
|
r24 = r32;
|
|
r25 = r33;
|
|
r26 = r34;
|
|
continue;
|
|
}
|
|
r4 = r33;
|
|
r9 = r32;
|
|
r19 = r34;
|
|
break;
|
|
}
|
|
value28 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
|
|
value29 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
if (r4 < length) {
|
|
r5 = value28;
|
|
r12 = value29;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2.join('');
|
|
}
|
|
|
|
function toASCII(a0) { // fn#16851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:2437, offset: 0x00e5d192, size: 27 bytes, params: 2, frame: 13
|
|
return mapDomain(a0, _fun16852);
|
|
function _fun16852(a0) { // fn#16852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:2477, offset: 0x00e5d1ad, size: 49 bytes, params: 2, frame: 12
|
|
var r0;
|
|
let value = a0;
|
|
const binding = env1_4;
|
|
if (binding.test(value)) {
|
|
value = encode_16850(value);
|
|
value = 'xn--' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function toUnicode(a0) { // fn#16853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:2539, offset: 0x00e5d1de, size: 27 bytes, params: 2, frame: 13
|
|
return mapDomain(a0, _fun16854);
|
|
function _fun16854(a0) { // fn#16854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:2581, offset: 0x00e5d1f9, size: 62 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var decode_16849Binding;
|
|
let value = a0;
|
|
const binding = env1_3;
|
|
if (binding.test(value)) {
|
|
decode_16849Binding = decode_16849;
|
|
value = value.slice(4);
|
|
value = value.toLowerCase();
|
|
value = decode_16849Binding(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun16855() { // fn#16855, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1
|
|
return env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function decode_16844(a0) { // fn#16844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1601:729, offset: 0x00e5ca25, size: 194 bytes, params: 2, frame: 25
|
|
var r9;
|
|
var charCodeAt;
|
|
var value2;
|
|
var push;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
const items2 = [];
|
|
const length = a0.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop1: while (true) {
|
|
charCodeAt = a0.charCodeAt;
|
|
value = typeof r9 === 'bigint' ? r9 : +r9;
|
|
value2 = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
value = Reflect.apply(charCodeAt, a0, [value]);
|
|
reducibleJoin8: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
if (value >= 55296) {
|
|
if (value <= 56319) {
|
|
if (value2 < length) {
|
|
charCodeAt = a0.charCodeAt;
|
|
value3 = typeof value2 === 'bigint' ? value2 : +value2;
|
|
value4 = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
|
|
value5 = Reflect.apply(charCodeAt, a0, [value3]);
|
|
if ((64512 & value5) === 56320) {
|
|
push = items2.push;
|
|
value = 1023 & value;
|
|
value6 = 1023 & value5;
|
|
Reflect.apply(push, items2, [(value << 10) + value6 + 65536]);
|
|
r9 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
value = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
|
|
r9 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
r9 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
if (r9 < length) {
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
global.__d(_fun16839, 1474, []) /* metro module 1474 */;
|