1521 lines
57 KiB
React
1521 lines
57 KiB
React
/* Metro module 5438; source: unknown; dependencies: [57, 5439] */
|
|
function _fun47887(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6, offset: 0x011d13d3, size: 1599 bytes, params: 8, frame: 27
|
|
var r7;
|
|
var r4;
|
|
var object2;
|
|
var Object;
|
|
var keys;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var value;
|
|
var error;
|
|
var iterator3;
|
|
var item3;
|
|
var Error;
|
|
var prototype;
|
|
var labels;
|
|
var length;
|
|
var channels;
|
|
var defineProperty;
|
|
var object3;
|
|
var object4;
|
|
var rgb;
|
|
var hsl;
|
|
var hsv;
|
|
var hwb;
|
|
var cmyk;
|
|
var xyz;
|
|
var lab;
|
|
var lch;
|
|
var ansi16;
|
|
var ansi256;
|
|
var hcg;
|
|
var apple;
|
|
var gray;
|
|
exceptionSkip72: while (true) {
|
|
exceptionLanding72: while (true) {
|
|
exceptionSkip7: while (true) {
|
|
exceptionLanding7: while (true) {
|
|
var env0_0 = require;
|
|
var env0_1 = dependencyMap;
|
|
var env0_2 = require(dependencyMap[0]);
|
|
object2 = {};
|
|
var env0_3 = object2;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
iterator = Reflect.apply(keys, Object, [require(dependencyMap[1])])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
for (r7 = iterator; true; r7 = item2) {
|
|
item2 = Reflect.apply(iterator2, r7, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r7;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
property = dependencyMap[1];
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
try {
|
|
value = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
try {
|
|
property = value[item];
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
try {
|
|
object2[property] = item;
|
|
} catch (error) {
|
|
break exceptionLanding7;
|
|
}
|
|
}
|
|
object2 = {rgb: {'channels': 3, 'labels': 'rgb'}, hsl: {'channels': 3, 'labels': 'hsl'},
|
|
hsv: {'channels': 3,
|
|
'labels': 'hsv'}, hwb: {'channels': 3, 'labels': 'hwb'}, cmyk: {'channels': 4,
|
|
'labels': 'cmyk'},
|
|
xyz: {'channels': 3, 'labels': 'xyz'}, lab: {'channels': 3, 'labels': 'lab'},
|
|
lch: {'channels': 3,
|
|
'labels': 'lch'}};
|
|
object2.hex = {channels: 1, labels: ['hex']};
|
|
object2.keyword = {channels: 1, labels: ['keyword']};
|
|
object2.ansi16 = {channels: 1, labels: ['ansi16']};
|
|
object2.ansi256 = {channels: 1, labels: ['ansi256']};
|
|
object2.hcg = {channels: 3, labels: ['h', 'c', 'g']};
|
|
object2.apple = {channels: 3, labels: ['r16', 'g16', 'b16']};
|
|
object2.gray = {channels: 1, labels: ['gray']};
|
|
var env0_4 = object2;
|
|
module.exports = object2;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
iterator = Reflect.apply(keys, Object, [object2])[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r4 = iterator;
|
|
loopExit9: while (true) {
|
|
item3 = Reflect.apply(iterator3, r4, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r4;
|
|
if (item3 === undefined) {
|
|
rgb = object2.rgb;
|
|
rgb.hsl = hsl;
|
|
rgb = object2.rgb;
|
|
rgb.hsv = hsv;
|
|
rgb = object2.rgb;
|
|
rgb.hwb = hwb;
|
|
rgb = object2.rgb;
|
|
rgb.cmyk = cmyk;
|
|
rgb = object2.rgb;
|
|
rgb.keyword = keyword_47893;
|
|
object2.keyword.rgb = rgb;
|
|
rgb = object2.rgb;
|
|
rgb.xyz = xyz;
|
|
rgb = object2.rgb;
|
|
rgb.lab = lab;
|
|
hsl = object2.hsl;
|
|
hsl.rgb = rgb_47897;
|
|
hsl = object2.hsl;
|
|
hsl.hsv = hsv_47898;
|
|
hsv = object2.hsv;
|
|
hsv.rgb = rgb_47899;
|
|
hsv = object2.hsv;
|
|
hsv.hsl = hsl_47900;
|
|
hwb = object2.hwb;
|
|
hwb.rgb = rgb_47901;
|
|
cmyk = object2.cmyk;
|
|
cmyk.rgb = rgb_47902;
|
|
xyz = object2.xyz;
|
|
xyz.rgb = rgb_47903;
|
|
xyz = object2.xyz;
|
|
xyz.lab = lab_47904;
|
|
lab = object2.lab;
|
|
lab.xyz = xyz_47905;
|
|
lab = object2.lab;
|
|
lab.lch = lch;
|
|
lch = object2.lch;
|
|
lch.lab = function(a0) {
|
|
var property = a0[0];
|
|
var property2 = a0[1];
|
|
var value = a0[2] / 360;
|
|
var PI = global.Math.PI;
|
|
value = value * 2 * PI;
|
|
var items = [property];
|
|
items[1] = property2 * global.Math.cos(value);
|
|
items[2] = property2 * global.Math.sin(value);
|
|
return items;
|
|
};
|
|
rgb = object2.rgb;
|
|
rgb.ansi16 = ansi16;
|
|
hsv = object2.hsv;
|
|
hsv.ansi16 = ansi16_47909;
|
|
rgb = object2.rgb;
|
|
rgb.ansi256 = ansi256;
|
|
ansi16 = object2.ansi16;
|
|
ansi16.rgb = rgb_47911;
|
|
ansi256 = object2.ansi256;
|
|
ansi256.rgb = rgb_47912;
|
|
rgb = object2.rgb;
|
|
rgb.hex = hex_47913;
|
|
object2.hex.rgb = rgb_47914;
|
|
rgb = object2.rgb;
|
|
rgb.hcg = hcg;
|
|
hsl = object2.hsl;
|
|
hsl.hcg = hcg_47917;
|
|
hsv = object2.hsv;
|
|
hsv.hcg = hcg_47918;
|
|
hcg = object2.hcg;
|
|
hcg.rgb = rgb_47919;
|
|
hcg = object2.hcg;
|
|
hcg.hsv = hsv_47920;
|
|
hcg = object2.hcg;
|
|
hcg.hsl = hsl_47921;
|
|
hcg = object2.hcg;
|
|
hcg.hwb = hwb_47922;
|
|
hwb = object2.hwb;
|
|
hwb.hcg = hcg_47923;
|
|
apple = object2.apple;
|
|
apple.rgb = rgb_47924;
|
|
rgb = object2.rgb;
|
|
rgb.apple = apple;
|
|
gray = object2.gray;
|
|
gray.rgb = rgb_47926;
|
|
gray = object2.gray;
|
|
gray.hsl = hsl_47927;
|
|
gray = object2.gray;
|
|
hsl = object2.gray.hsl;
|
|
gray.hsv = hsl;
|
|
gray = object2.gray;
|
|
gray.hwb = hwb_47928;
|
|
gray = object2.gray;
|
|
gray.cmyk = cmyk_47929;
|
|
gray = object2.gray;
|
|
gray.lab = lab_47930;
|
|
gray = object2.gray;
|
|
gray.hex = hex_47931;
|
|
rgb = object2.rgb;
|
|
rgb.gray = gray;
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = 'channels' in property;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
if (!value) {
|
|
break loopExit9;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = 'labels' in property;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
if (value) {
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
labels = property.labels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
length = labels.length;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
channels = property.channels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = length !== channels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
if (value) {
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = 'channel and label counts mismatch: ' + item;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
} else {
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
channels = property.channels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
labels = property.labels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
delete property.channels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
delete property.labels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Object = global.Object;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
defineProperty = Object.defineProperty;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.value = channels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Reflect.apply(defineProperty, Object, [property, 'channels', object3]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Object = global.Object;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
defineProperty = Object.defineProperty;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = object2[item];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.value = labels;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Reflect.apply(defineProperty, Object, [property, 'labels', object4]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
r4 = item3;
|
|
}
|
|
} else {
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = 'missing channel labels property: ' + item;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = 'missing channels property: ' + item;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
break exceptionSkip7;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip7;
|
|
}
|
|
break exceptionSkip72;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip72;
|
|
}
|
|
}
|
|
|
|
function hsl(a0) { // fn#47888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:1094, offset: 0x011d1a12, size: 264 bytes, params: 2, frame: 23
|
|
const value = 0;
|
|
const value2 = a0[value] / 255;
|
|
const value3 = a0[1] / 255;
|
|
const value4 = a0[2] / 255;
|
|
let Math = global.Math;
|
|
const value5 = Math.min(value2, value3, value4);
|
|
Math = global.Math;
|
|
const value6 = Math.max(value2, value3, value4);
|
|
const value7 = value6 - value5;
|
|
const value8 = value6 === value5;
|
|
const r2 = value8 ? value : value2 === value6 ? (value3 - value4) / value7 : value3 === value6 ? 2 + (value4 - value2) / value7 : value4 !== value6 ? undefined : 4 + (value2 - value3) / value7;
|
|
Math = global.Math;
|
|
const value13 = Math.min(60 * r2, 360);
|
|
const r8 = value13 < value ? value13 + 360 : value13;
|
|
const value15 = (value5 + value6) / 2;
|
|
return [r8, 100 * (value8 ? value : value15 <= 0.5 ? value7 / (value6 + value5) : value7 / (2 - value6 - value5)),
|
|
100 * value15];
|
|
}
|
|
|
|
function hsv(a0) { // fn#47889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:1366, offset: 0x011d1b1a, size: 251 bytes, params: 2, frame: 23
|
|
var r1;
|
|
var r3;
|
|
var r4;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
let value = 0;
|
|
const value2 = a0[value] / 255;
|
|
const value3 = a0[1] / 255;
|
|
const value4 = a0[2] / 255;
|
|
let Math = global.Math;
|
|
const value5 = Math.max(value2, value3, value4);
|
|
Math = global.Math;
|
|
const value6 = value5 - Math.min(value2, value3, value4);
|
|
const closure = hsvDiffc;
|
|
if (value === value6) {
|
|
r3 = value;
|
|
r4 = value;
|
|
} else {
|
|
value7 = value6 / value5;
|
|
value8 = undefined;
|
|
value9 = closure(value2);
|
|
value10 = closure(value3);
|
|
value11 = closure(value4);
|
|
r1 = value2 === value5 ? value11 - value10 : value3 === value5 ? 0.3333333333333333 + value9 - value11 : value4 !== value5 ? value8 : 0.6666666666666666 + value10 - value9;
|
|
if (r1 < value) {
|
|
value = r1 + 1;
|
|
r3 = value7;
|
|
r4 = value;
|
|
} else if (r1 > 1) {
|
|
value = r1 - 1;
|
|
r3 = value7;
|
|
r4 = value;
|
|
} else {
|
|
r3 = value7;
|
|
r4 = r1;
|
|
}
|
|
}
|
|
return [360 * r4, 100 * r3, 100 * value5];
|
|
}
|
|
|
|
function hwb(a0) { // fn#47891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:1682, offset: 0x011d1c42, size: 172 bytes, params: 2, frame: 20
|
|
const property = a0[0];
|
|
const property2 = a0[1];
|
|
const property3 = a0[2];
|
|
const rgb = env0_4.rgb;
|
|
const items2 = [rgb.hsl(a0)[0]];
|
|
let Math = global.Math;
|
|
const min = Math.min;
|
|
const Math2 = global.Math;
|
|
items2[1] = 100 * (0.00392156862745098 * Reflect.apply(min, Math, [property, Math2.min(property2, property3)]));
|
|
Math = global.Math;
|
|
const max = Math.max;
|
|
const Math3 = global.Math;
|
|
items2[2] = 100 * (1 - 0.00392156862745098 * Reflect.apply(max, Math, [property, Math3.max(property2, property3)]));
|
|
return items2;
|
|
}
|
|
|
|
function cmyk(a0) { // fn#47892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:1861, offset: 0x011d1cee, size: 162 bytes, params: 2, frame: 18
|
|
const value = 0;
|
|
const value2 = a0[value] / 255;
|
|
const value3 = a0[1] / 255;
|
|
const value4 = a0[2] / 255;
|
|
const Math = global.Math;
|
|
const min = Math.min;
|
|
const value5 = 1 - value2;
|
|
const value6 = 1 - value3;
|
|
const value7 = 1 - value4;
|
|
const value8 = Reflect.apply(min, Math, [value5, value6, value7]);
|
|
return [100 * ((value5 - value8) / (1 - value8) || value), 100 * ((value6 - value8) / (1 - value8) || value),
|
|
100 * ((value7 - value8) / (1 - value8) || value), 100 * value8];
|
|
}
|
|
|
|
function keyword_47893(a0) { // fn#47893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:2032, offset: 0x011d1d90, size: 218 bytes, params: 2, frame: 27
|
|
var r17;
|
|
var moduleValue;
|
|
var property2;
|
|
var property3;
|
|
var value4;
|
|
var value5;
|
|
var property4;
|
|
var property5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var property6;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var error;
|
|
const value = undefined;
|
|
let property = env0_3[a0];
|
|
if (property) {
|
|
return property;
|
|
}
|
|
const value3 = Infinity;
|
|
const Object = global.Object;
|
|
const iterator = Object.keys(require(dependencyMap[1]))[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r1 = value;
|
|
let r3 = iterator;
|
|
let r10 = value3;
|
|
let item2 = Reflect.apply(iterator2, r3, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
reducibleJoin3: while (true) {
|
|
if (item2 === value) {
|
|
return r1;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = moduleValue[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = a0[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = property[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = property2 - property3;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = exponentiationOperator(value4, 2, r17);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property4 = a0[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property5 = property[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = property4 - property5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = exponentiationOperator(value6, 2, property4);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = value5 + value7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property6 = a0[2];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = property[2];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = property6 - property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = exponentiationOperator(value9, 2, property4);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = value8 + value10;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = value11 < r10;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (value12) {
|
|
r1 = item;
|
|
r10 = value11;
|
|
break reducibleJoin28;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
r3 = item2;
|
|
r17 = property4;
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === value) {
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function rgb(a0) { // fn#47894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:2235, offset: 0x011d1e6a, size: 34 bytes, params: 2, frame: 11
|
|
return (require(5439) /* metro dependency 5439 */)[a0];
|
|
}
|
|
|
|
function xyz(a0) { // fn#47895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:2277, offset: 0x011d1e8c, size: 417 bytes, params: 2, frame: 17
|
|
var r4;
|
|
let value = a0[0] / 255;
|
|
const value2 = a0[1] / 255;
|
|
const value3 = a0[2] / 255;
|
|
if (value > 0.04045) {
|
|
value = exponentiationOperator((value + 0.055) / 1.055, 2.4, undefined);
|
|
r4 = value;
|
|
} else {
|
|
value /= 12.92;
|
|
r4 = value;
|
|
}
|
|
value = 0.4124 * r4;
|
|
const r3 = value2 > 0.04045 ? exponentiationOperator((value2 + 0.055) / 1.055, 2.4, value) : value2 / 12.92;
|
|
const value6 = 0.3576 * r3;
|
|
const r5 = value3 > 0.04045 ? exponentiationOperator((value3 + 0.055) / 1.055, 2.4, value) : value3 / 12.92;
|
|
return [100 * (value + value6 + 0.1805 * r5), 100 * (0.2126 * r4 + 0.7152 * r3 + 0.0722 * r5),
|
|
100 * (0.0193 * r4 + 0.1192 * r3 + 0.9505 * r5)];
|
|
}
|
|
|
|
function lab(a0) { // fn#47896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:2558, offset: 0x011d202d, size: 302 bytes, params: 2, frame: 16
|
|
var r2;
|
|
var r1;
|
|
let value = env0_4.rgb.xyz(a0);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
const property3 = value[2];
|
|
value = property2 / 100;
|
|
if (value > 0.008856) {
|
|
value = exponentiationOperator(value, 0.3333333333333333, undefined);
|
|
r2 = value;
|
|
} else {
|
|
value = 7.787 * value + 0.13793103448275862;
|
|
r2 = value;
|
|
}
|
|
const items2 = [116 * r2 - 16];
|
|
value = property / 95.047;
|
|
items2[1] = 500 * ((value > 0.008856 ? exponentiationOperator(value, 0.3333333333333333,
|
|
value) : 7.787 * value + 0.13793103448275862) - r2);
|
|
const value4 = property3 / 108.883;
|
|
if (value4 > 0.008856) {
|
|
value = exponentiationOperator(value4, 0.3333333333333333, value);
|
|
r1 = value;
|
|
} else {
|
|
r1 = 7.787 * value4 + 0.13793103448275862;
|
|
}
|
|
items2[2] = 200 * (r2 - r1);
|
|
return items2;
|
|
}
|
|
|
|
function rgb_47897(a0) { // fn#47897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:2866, offset: 0x011d215b, size: 280 bytes, params: 2, frame: 20
|
|
var r16;
|
|
var r17;
|
|
var r18;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
let value = 0;
|
|
const value2 = a0[value] / 360;
|
|
const value3 = a0[1] / 100;
|
|
const value4 = a0[2] / 100;
|
|
if (value === value3) {
|
|
value = 255 * value4;
|
|
return [value, value, value];
|
|
}
|
|
const r11 = value4 < 0.5 ? value4 * (1 + value3) : value4 + value3 - value4 * value3;
|
|
const value8 = 2 * value4 - r11;
|
|
const items2 = [0, 0, 0];
|
|
const value9 = r11 - value8;
|
|
const value10 = 6 * value9;
|
|
let r2 = value;
|
|
while (true) {
|
|
value11 = value2 + 0.3333333333333333 * -(r2 - 1);
|
|
if (value11 < value) {
|
|
value12 = typeof value11 === 'bigint' ? value11 + 1n : +value11 + 1;
|
|
r16 = value12;
|
|
} else {
|
|
r16 = value11;
|
|
}
|
|
if (!(r16 > 1)) {
|
|
r17 = r16;
|
|
continue;
|
|
}
|
|
value13 = typeof r16 === 'bigint' ? r16 - 1n : +r16 - 1;
|
|
r17 = value13;
|
|
if (6 * r17 < 1) {
|
|
value15 = value8 + value10 * r17;
|
|
r16 = value15;
|
|
} else {
|
|
if (2 * r17 < 1) {
|
|
r16 = r11;
|
|
continue;
|
|
}
|
|
if (!(3 * r17 < 2)) {
|
|
r18 = value8;
|
|
continue;
|
|
}
|
|
value14 = value8 + value9 * (0.6666666666666666 - r17) * 6;
|
|
r18 = value14;
|
|
r16 = r18;
|
|
}
|
|
items2[r2] = 255 * r16;
|
|
value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value16 < 3) {
|
|
r2 = value16;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function hsv_47898(a0) { // fn#47898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:3157, offset: 0x011d2273, size: 161 bytes, params: 2, frame: 19
|
|
var r5;
|
|
const property = a0[0];
|
|
let value = a0[1] / 100;
|
|
const value2 = a0[2] / 100;
|
|
const Math = global.Math;
|
|
const value3 = Math.max(value2, 0.01);
|
|
const value4 = value2 * 2;
|
|
const value6 = value * (value4 <= 1 ? value4 : 2 - value4);
|
|
value *= value3 <= 1 ? value3 : 2 - value3;
|
|
const items2 = [property];
|
|
if (value4 === 0) {
|
|
value = 2 * value / (value3 + value);
|
|
r5 = value;
|
|
} else {
|
|
value = 2 * value6;
|
|
value /= value4 + value6;
|
|
r5 = value;
|
|
}
|
|
items2[1] = 100 * r5;
|
|
items2[2] = 100 * ((value4 + value6) / 2);
|
|
return items2;
|
|
}
|
|
|
|
function rgb_47899(a0) { // fn#47899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:3325, offset: 0x011d2314, size: 283 bytes, params: 2, frame: 19
|
|
let value = a0[0] / 60;
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
let Math = global.Math;
|
|
const value5 = Math.floor(value) % 6;
|
|
Math = global.Math;
|
|
value -= Math.floor(value);
|
|
const value6 = 255 * value3;
|
|
const value7 = value6 * (1 - value2);
|
|
const value8 = value6 * (1 - value2 * value);
|
|
value = value6 * (1 - value2 * (1 - value));
|
|
const value9 = value3 * 255;
|
|
if (value5 === 0) {
|
|
return [value9, value, value7];
|
|
}
|
|
if (value5 === 1) {
|
|
return [value8, value9, value7];
|
|
}
|
|
if (value5 === 2) {
|
|
return [value7, value9, value];
|
|
}
|
|
if (value5 === 3) {
|
|
return [value7, value8, value9];
|
|
}
|
|
if (value5 === 4) {
|
|
return [value, value7, value9];
|
|
}
|
|
if (value5 === 5) {
|
|
return [value9, value7, value8];
|
|
}
|
|
}
|
|
|
|
function hsl_47900(a0) { // fn#47900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:3614, offset: 0x011d242f, size: 129 bytes, params: 2, frame: 19
|
|
const value = 0;
|
|
const property = a0[value];
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
const Math = global.Math;
|
|
const value4 = Math.max(value3, 0.01);
|
|
const value5 = 2 - value2;
|
|
const value6 = value5 * value4;
|
|
return [property,
|
|
100 * (value2 * value4 / (value6 <= 1 ? value6 : 2 - value6) || value), 100 * (value5 * value3 / 2)];
|
|
}
|
|
|
|
function rgb_47901(a0) { // fn#47901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:3771, offset: 0x011d24b0, size: 276 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var r4;
|
|
var value5;
|
|
var value6;
|
|
let value = a0[0] / 360;
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
const value4 = value2 + value3;
|
|
if (value4 > 1) {
|
|
value5 = value2 / value4;
|
|
value6 = value3 / value4;
|
|
r0 = value5;
|
|
r1 = value6;
|
|
} else {
|
|
r0 = value2;
|
|
r1 = value3;
|
|
}
|
|
const Math = global.Math;
|
|
const floor = Math.floor;
|
|
value = 6 * value;
|
|
const value7 = Reflect.apply(floor, Math, [value]);
|
|
const value8 = 1 - r1;
|
|
value -= value7;
|
|
let r3 = 1 & value7 ? 1 - value : value;
|
|
value = r0 + r3 * (value8 - r0);
|
|
if (value7 === 6) {
|
|
r2 = r0;
|
|
r3 = value;
|
|
r4 = value8;
|
|
} else if (value7 === 0) {
|
|
r2 = r0;
|
|
r3 = value;
|
|
r4 = value8;
|
|
} else if (value7 === 1) {
|
|
r2 = r0;
|
|
r3 = value8;
|
|
r4 = value;
|
|
} else if (value7 === 2) {
|
|
r2 = value;
|
|
r3 = value8;
|
|
r4 = r0;
|
|
} else if (value7 === 3) {
|
|
r2 = value8;
|
|
r3 = value;
|
|
r4 = r0;
|
|
} else if (value7 === 4) {
|
|
r2 = value8;
|
|
r3 = r0;
|
|
r4 = value;
|
|
} else if (value7 !== 5) {
|
|
r2 = r0;
|
|
r3 = value;
|
|
r4 = value8;
|
|
} else {
|
|
r2 = value;
|
|
r3 = r0;
|
|
r4 = value8;
|
|
}
|
|
return [255 * r4, 255 * r3, 255 * r2];
|
|
}
|
|
|
|
function rgb_47902(a0) { // fn#47902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:4123, offset: 0x011d25c4, size: 175 bytes, params: 2, frame: 19
|
|
let value = a0[0] / 100;
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
const value4 = a0[3] / 100;
|
|
let Math = global.Math;
|
|
const min = Math.min;
|
|
const value5 = 1 - value4;
|
|
value = 1 - Reflect.apply(min, Math, [1, value * value5 + value4]);
|
|
const items2 = [255 * value];
|
|
Math = global.Math;
|
|
items2[1] = 255 * (1 - Math.min(1, value2 * value5 + value4));
|
|
Math = global.Math;
|
|
items2[2] = 255 * (1 - Math.min(1, value3 * value5 + value4));
|
|
return items2;
|
|
}
|
|
|
|
function rgb_47903(a0) { // fn#47903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:4292, offset: 0x011d2673, size: 530 bytes, params: 2, frame: 20
|
|
var r10;
|
|
var r7;
|
|
let value = a0[0] / 100;
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
const value6 = 3.2406 * value + -1.5372 * value2 + -0.4986 * value3;
|
|
const r6 = value6 > 0.0031308 ? 1.055 * exponentiationOperator(value6, 0.4166666666666667,
|
|
r10) - 0.055 : 12.92 * value6;
|
|
const value12 = -0.9689 * value + 1.8758 * value2 + 0.0415 * value3;
|
|
r10 = value12 > 0.0031308 ? 1.055 * exponentiationOperator(value12, 0.4166666666666667,
|
|
r10) - 0.055 : 12.92 * value12;
|
|
value = 0.0557 * value;
|
|
value += -0.204 * value2;
|
|
value += 1.057 * value3;
|
|
if (value > 0.0031308) {
|
|
value = exponentiationOperator(value, 0.4166666666666667, r10);
|
|
value = 1.055 * value - 0.055;
|
|
r7 = value;
|
|
} else {
|
|
value = 12.92 * value;
|
|
r7 = value;
|
|
}
|
|
let Math = global.Math;
|
|
let min = Math.min;
|
|
const Math2 = global.Math;
|
|
value = Reflect.apply(min, Math, [Math2.max(0, r6), 1]);
|
|
value = 255 * value;
|
|
const items2 = [value];
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
const Math3 = global.Math;
|
|
items2[1] = 255 * Reflect.apply(min, Math, [Math3.max(0, r10), 1]);
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
const Math4 = global.Math;
|
|
items2[2] = 255 * Reflect.apply(min, Math, [Math4.max(0, r7), 1]);
|
|
return items2;
|
|
}
|
|
|
|
function lab_47904([property, property2, property3]) { // fn#47904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:4712, offset: 0x011d2885, size: 278 bytes, params: 2, frame: 16
|
|
var r2;
|
|
var r1;
|
|
let value = property2 / 100;
|
|
if (value > 0.008856) {
|
|
value = exponentiationOperator(value, 0.3333333333333333, undefined);
|
|
r2 = value;
|
|
} else {
|
|
value = 7.787 * value + 0.13793103448275862;
|
|
r2 = value;
|
|
}
|
|
const items2 = [116 * r2 - 16];
|
|
value = property / 95.047;
|
|
items2[1] = 500 * ((value > 0.008856 ? exponentiationOperator(value, 0.3333333333333333,
|
|
value) : 7.787 * value + 0.13793103448275862) - r2);
|
|
const value4 = property3 / 108.883;
|
|
if (value4 > 0.008856) {
|
|
value = exponentiationOperator(value4, 0.3333333333333333, value);
|
|
r1 = value;
|
|
} else {
|
|
r1 = 7.787 * value4 + 0.13793103448275862;
|
|
}
|
|
items2[2] = 200 * (r2 - r1);
|
|
return items2;
|
|
}
|
|
|
|
function xyz_47905(a0) { // fn#47905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:5005, offset: 0x011d299b, size: 248 bytes, params: 2, frame: 17
|
|
const value = (a0[0] + 16) / 116;
|
|
const value2 = exponentiationOperator(value, 3, value);
|
|
const value3 = a0[1] / 500 + value;
|
|
const value4 = exponentiationOperator(value3, 3, value);
|
|
const value5 = value - a0[2] / 200;
|
|
const value6 = exponentiationOperator(value5, 3, value);
|
|
return [(value4 > 0.008856 ? value4 : (value3 - 0.13793103448275862) / 7.787) * 95.047, (value2 > 0.008856 ? value2 : (value - 0.13793103448275862) / 7.787) * 100,
|
|
(value6 > 0.008856 ? value6 : (value5 - 0.13793103448275862) / 7.787) * 108.883];
|
|
}
|
|
|
|
function lch([property, property2, property3]) { // fn#47906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:5267, offset: 0x011d2a93, size: 131 bytes, params: 2, frame: 18
|
|
var r1;
|
|
let Math = global.Math;
|
|
let value = Math.atan2(property3, property2);
|
|
value = 360 * value;
|
|
Math = global.Math;
|
|
const PI = Math.PI;
|
|
value = value / 2 / PI;
|
|
if (value < 0) {
|
|
value += 360;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
Math = global.Math;
|
|
return [property, Math.sqrt(property2 * property2 + property3 * property3), r1];
|
|
}
|
|
|
|
function ansi16(a0) { // fn#47908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:5497, offset: 0x011d2b89, size: 236 bytes, params: 2, frame: 20
|
|
let value = null;
|
|
let r10 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value;
|
|
const value4 = env0_2(a0, 3);
|
|
const property = value4[0];
|
|
const property2 = value4[1];
|
|
const property3 = value4[2];
|
|
r10 = value === r10 ? env0_4.rgb.hsv(a0)[2] : r10;
|
|
let Math = global.Math;
|
|
value = Math.round(r10 / 50);
|
|
if (value === 0) {
|
|
return 30;
|
|
}
|
|
Math = global.Math;
|
|
const value5 = Math.round(property3 / 255) << 2;
|
|
Math = global.Math;
|
|
const value6 = Math.round(property2 / 255) << 1;
|
|
Math = global.Math;
|
|
const value8 = 30 + (value5 | value6 | Math.round(property / 255));
|
|
return value !== 2 ? value8 : value8 + 60;
|
|
}
|
|
|
|
function ansi16_47909(a0) { // fn#47909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:5781, offset: 0x011d2c75, size: 58 bytes, params: 2, frame: 14
|
|
const rgb = env0_4.rgb;
|
|
return rgb.ansi16(env0_4.hsv.rgb(a0), a0[2]);
|
|
}
|
|
|
|
function ansi256([property, property2, property3]) { // fn#47910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:5847, offset: 0x011d2caf, size: 219 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var r1;
|
|
var r0;
|
|
var Math;
|
|
var value;
|
|
var value3;
|
|
if (property !== property2) {
|
|
Math = global.Math;
|
|
value = Math.round(property / 255 * 5);
|
|
value = 36 * value;
|
|
Math = global.Math;
|
|
value3 = 6 * Math.round(property2 / 255 * 5);
|
|
Math = global.Math;
|
|
value = 16 + value + value3 + Math.round(property3 / 255 * 5);
|
|
r0 = value;
|
|
} else if (property2 === property3) {
|
|
value = 16;
|
|
if (property < 8) {
|
|
r1 = value;
|
|
} else {
|
|
value = 231;
|
|
if (property > 248) {
|
|
r2 = value;
|
|
} else {
|
|
value = global.Math.round((property - 8) / 247 * 24);
|
|
value += 232;
|
|
r2 = value;
|
|
}
|
|
r1 = r2;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
Math = global.Math;
|
|
value = Math.round(property / 255 * 5);
|
|
value = 36 * value;
|
|
Math = global.Math;
|
|
value3 = 6 * Math.round(property2 / 255 * 5);
|
|
Math = global.Math;
|
|
value = 16 + value + value3 + Math.round(property3 / 255 * 5);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function rgb_47911(a0) { // fn#47911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6032, offset: 0x011d2d8a, size: 188 bytes, params: 2, frame: 7
|
|
var r1;
|
|
let value = a0 % 10;
|
|
if (value === 0) {
|
|
if (a0 > 50) {
|
|
value += 3.5;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
value = r1 / 10.5 * 255;
|
|
return [value, value, value];
|
|
}
|
|
if (value === 7) {
|
|
if (a0 > 50) {
|
|
value += 3.5;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
value = r1 / 10.5 * 255;
|
|
return [value, value, value];
|
|
}
|
|
const value2 = 0.5 * (1 + ~~(a0 > 50));
|
|
return [(1 & value) * value2 * 255, (value >> 1 & 1) * value2 * 255, (value >> 2 & 1) * value2 * 255];
|
|
}
|
|
|
|
function rgb_47912(a0) { // fn#47912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6199, offset: 0x011d2e46, size: 159 bytes, params: 2, frame: 18
|
|
var value;
|
|
if (a0 >= 232) {
|
|
value = 10 * (a0 - 232) + 8;
|
|
return [value, value, value];
|
|
}
|
|
value = a0 - 16;
|
|
let Math = global.Math;
|
|
let floor = Math.floor;
|
|
const items2 = [Reflect.apply(floor, Math, [value / 36]) / 5 * 255];
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value %= 36;
|
|
items2[1] = Reflect.apply(floor, Math, [value / 6]) / 5 * 255;
|
|
items2[2] = value % 6 / 5 * 255;
|
|
return items2;
|
|
}
|
|
|
|
function hex_47913(a0) { // fn#47913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6349, offset: 0x011d2ee5, size: 158 bytes, params: 2, frame: 15
|
|
let Math = global.Math;
|
|
let value = Math.round(a0[0]);
|
|
value = 255 & value;
|
|
Math = global.Math;
|
|
const value2 = 255 & Math.round(a0[1]);
|
|
Math = global.Math;
|
|
const value3 = 255 & Math.round(a0[2]);
|
|
value <<= 16;
|
|
value = value + (value2 << 8) + value3;
|
|
value = value.toString(16);
|
|
value = value.toUpperCase();
|
|
return '000000'.substring(value.length) + value;
|
|
}
|
|
|
|
function rgb_47914(a0) { // fn#47914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6524, offset: 0x011d2f83, size: 182 bytes, params: 2, frame: 15
|
|
var r3;
|
|
var property;
|
|
let value = a0.toString(16);
|
|
value = value.match(RegExp('[a-f0-9]{6}|[a-f0-9]{3}', 'i'));
|
|
if (value) {
|
|
property = value[0];
|
|
if (value[0].length !== 3) {
|
|
r3 = property;
|
|
} else {
|
|
value = property.split('');
|
|
value = value.map(function(a0) {
|
|
return a0 + a0;
|
|
});
|
|
value = value.join('');
|
|
r3 = value;
|
|
}
|
|
value = global.parseInt(r3, 16);
|
|
return [value >> 16 & 255, value >> 8 & 255, 255 & value];
|
|
}
|
|
return [0, 0, 0];
|
|
}
|
|
|
|
function hcg(a0) { // fn#47916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6760, offset: 0x011d3042, size: 239 bytes, params: 2, frame: 20
|
|
const value = 0;
|
|
const value2 = a0[value] / 255;
|
|
const value3 = a0[1] / 255;
|
|
const value4 = a0[2] / 255;
|
|
let Math = global.Math;
|
|
const max = Math.max;
|
|
const Math2 = global.Math;
|
|
const value5 = Reflect.apply(max, Math, [Math2.max(value2, value3), value4]);
|
|
Math = global.Math;
|
|
const min = Math.min;
|
|
const Math3 = global.Math;
|
|
const value6 = Reflect.apply(min, Math, [Math3.min(value2, value3), value4]);
|
|
const value7 = value5 - value6;
|
|
return [360 * ((value7 <= value ? value : value5 === value2 ? (value3 - value4) / value7 % 6 : value5 === value3 ? 2 + (value4 - value2) / value7 : 4 + (value2 - value3) / value7) / 6 % 1),
|
|
100 * value7, 100 * (value7 < 1 ? value6 / (1 - value7) : value)];
|
|
}
|
|
|
|
function hcg_47917(a0) { // fn#47917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:6986, offset: 0x011d3131, size: 118 bytes, params: 2, frame: 9
|
|
var r3;
|
|
let value = a0[1] / 100;
|
|
const value2 = a0[2] / 100;
|
|
if (value2 < 0.5) {
|
|
value = 2 * value * value2;
|
|
r3 = value;
|
|
} else {
|
|
value = 2 * value;
|
|
value *= 1 - value2;
|
|
r3 = value;
|
|
}
|
|
value = 0;
|
|
return [a0[value], 100 * r3, 100 * (r3 < 1 ? (value2 - 0.5 * r3) / (1 - r3) : value)];
|
|
}
|
|
|
|
function hcg_47918(a0) { // fn#47918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7112, offset: 0x011d31a7, size: 82 bytes, params: 2, frame: 8
|
|
let value = a0[1] / 100;
|
|
const value2 = a0[2] / 100;
|
|
value *= value2;
|
|
const value3 = 0;
|
|
return [a0[value3], 100 * value, 100 * (value < 1 ? (value2 - value) / (1 - value) : value3)];
|
|
}
|
|
|
|
function rgb_47919(a0) { // fn#47919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7218, offset: 0x011d31f9, size: 309 bytes, params: 2, frame: 19
|
|
let value = a0[0] / 360;
|
|
const value2 = a0[1] / 100;
|
|
const value3 = a0[2] / 100;
|
|
if (value2 === 0) {
|
|
value = 255 * value3;
|
|
return [value, value, value];
|
|
}
|
|
const items2 = [0, 0, 0];
|
|
value = value % 1 * 6;
|
|
const value4 = value % 1;
|
|
const value5 = 1 - value4;
|
|
const Math = global.Math;
|
|
value = Math.floor(value);
|
|
if (value === 0) {
|
|
items2[0] = 1;
|
|
items2[1] = value4;
|
|
items2[2] = 0;
|
|
} else if (value === 1) {
|
|
items2[0] = value5;
|
|
items2[1] = 1;
|
|
items2[2] = 0;
|
|
} else if (value === 2) {
|
|
items2[0] = 0;
|
|
items2[1] = 1;
|
|
items2[2] = value4;
|
|
} else if (value === 3) {
|
|
items2[0] = 0;
|
|
items2[1] = value5;
|
|
items2[2] = 1;
|
|
} else if (value === 4) {
|
|
items2[0] = value4;
|
|
items2[1] = 0;
|
|
items2[2] = 1;
|
|
} else {
|
|
items2[0] = 1;
|
|
items2[1] = 0;
|
|
items2[2] = value5;
|
|
}
|
|
value = (1 - value2) * value3;
|
|
return [255 * (value2 * items2[0] + value), 255 * (value2 * items2[1] + value), 255 * (value2 * items2[2] + value)];
|
|
}
|
|
|
|
function hsv_47920(a0) { // fn#47920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7634, offset: 0x011d332e, size: 82 bytes, params: 2, frame: 7
|
|
var r3;
|
|
let value = a0[1] / 100;
|
|
const value3 = value + a0[2] / 100 * (1 - value);
|
|
const value4 = 0;
|
|
if (value3 > value4) {
|
|
value /= value3;
|
|
r3 = value;
|
|
} else {
|
|
r3 = value4;
|
|
}
|
|
return [a0[value4], 100 * r3, 100 * value3];
|
|
}
|
|
|
|
function hsl_47921(a0) { // fn#47921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7734, offset: 0x011d3380, size: 132 bytes, params: 2, frame: 9
|
|
var r3;
|
|
let value = a0[1] / 100;
|
|
const value4 = a0[2] / 100 * (1 - value) + 0.5 * value;
|
|
const value5 = 0;
|
|
if (value4 > value5) {
|
|
if (value4 < 0.5) {
|
|
value /= 2 * value4;
|
|
r3 = value;
|
|
} else if (value4 >= 0.5 && value4 < 1) {
|
|
value /= 2 * (1 - value4);
|
|
r3 = value;
|
|
} else {
|
|
r3 = value5;
|
|
}
|
|
} else if (value4 >= 0.5 && value4 < 1) {
|
|
value /= 2 * (1 - value4);
|
|
r3 = value;
|
|
} else {
|
|
r3 = value5;
|
|
}
|
|
return [a0[value5], 100 * r3, 100 * value4];
|
|
}
|
|
|
|
function hwb_47922(a0) { // fn#47922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7872, offset: 0x011d3404, size: 80 bytes, params: 2, frame: 6
|
|
const value = a0[1] / 100;
|
|
const value3 = value + a0[2] / 100 * (1 - value);
|
|
return [a0[0], 100 * (value3 - value), 100 * (1 - value3)];
|
|
}
|
|
|
|
function hcg_47923(a0) { // fn#47923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:7962, offset: 0x011d3454, size: 86 bytes, params: 2, frame: 8
|
|
let value = a0[1] / 100;
|
|
const value2 = 1 - a0[2] / 100;
|
|
value = value2 - value;
|
|
const value3 = 0;
|
|
return [a0[value3], 100 * value, 100 * (value < 1 ? (value2 - value) / (1 - value) : value3)];
|
|
}
|
|
|
|
function rgb_47924(a0) { // fn#47924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8072, offset: 0x011d34aa, size: 74 bytes, params: 2, frame: 5
|
|
return [a0[0] / 65535 * 255, a0[1] / 65535 * 255, a0[2] / 65535 * 255];
|
|
}
|
|
|
|
function apple(a0) { // fn#47925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8150, offset: 0x011d34f4, size: 74 bytes, params: 2, frame: 5
|
|
return [a0[0] / 255 * 65535, a0[1] / 255 * 65535, a0[2] / 255 * 65535];
|
|
}
|
|
|
|
function rgb_47926(a0) { // fn#47926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8227, offset: 0x011d353e, size: 65 bytes, params: 2, frame: 6
|
|
return [a0[0] / 100 * 255, a0[0] / 100 * 255, a0[0] / 100 * 255];
|
|
}
|
|
|
|
function hsl_47927([property]) { // fn#47927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8298, offset: 0x011d357f, size: 25 bytes, params: 2, frame: 2
|
|
return [0, 0, property];
|
|
}
|
|
|
|
function hwb_47928([property]) { // fn#47928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8361, offset: 0x011d3598, size: 25 bytes, params: 2, frame: 2
|
|
return [0, 100, property];
|
|
}
|
|
|
|
function cmyk_47929([property]) { // fn#47929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8405, offset: 0x011d35b1, size: 25 bytes, params: 2, frame: 2
|
|
return [0, 0, 0, property];
|
|
}
|
|
|
|
function lab_47930([property]) { // fn#47930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8448, offset: 0x011d35ca, size: 27 bytes, params: 2, frame: 3
|
|
return [property, 0, 0];
|
|
}
|
|
|
|
function hex_47931(a0) { // fn#47931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8489, offset: 0x011d35e5, size: 115 bytes, params: 2, frame: 12
|
|
const Math = global.Math;
|
|
let value = 255 & Math.round(a0[0] / 100 * 255);
|
|
value = (value << 16) + (value << 8) + value;
|
|
value = value.toString(16);
|
|
value = value.toUpperCase();
|
|
return '000000'.substring(value.length) + value;
|
|
}
|
|
|
|
function gray(a0) { // fn#47932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:8633, offset: 0x011d3658, size: 62 bytes, params: 2, frame: 3
|
|
let value = a0[0] + a0[1];
|
|
value = (value + a0[2]) / 3;
|
|
return [value / 255 * 100];
|
|
}
|
|
|
|
function hsvDiffc(a0) { // fn#47890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5616:1465, owner: hsv.diffc, offset: 0x011d1c15, size: 45 bytes, params: 2, frame: 3
|
|
return (env0_0 - a0) / 6 / env0_1 + 0.5;
|
|
}
|
|
|