/* Metro module 674; source: unknown; dependencies: [] */ function _fun8046(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:724:6, offset: 0x00d33a8c, size: 143 bytes, params: 8, frame: 15 const value = this; const closure = t_8047; if (typeof exports !== 'object') { if (typeof global.define !== 'function') { (typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self).chroma = closure(); } else if (global.define.amd) { global.define(closure); } else { (typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self).chroma = closure(); } } else if (module !== undefined) { module.exports = closure(); } else if (typeof global.define !== 'function') { (typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self).chroma = closure(); } else if (global.define.amd) { global.define(closure); } else { (typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self).chroma = closure(); } } function t_8047() { // fn#8047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:18, offset: 0x00d33b1b, size: 5190 bytes, params: 1, frame: 28 var r2; var r12; var property; var value2; var value3; var value4; let closure = function(a0, a1, a2) { var r0; var r2; var value = a0; var value2 = a1; var value3 = a2; r0 = value2 !== undefined ? value2 : 0; r2 = value3 !== undefined ? value3 : 1; r0 = !(value < r0) ? value > r2 ? r2 : value : r0; return r0; }; let object3 = {}; const items2 = ['Boolean', 'Number', 'String', 'Function', 'Array', 'Date', 'RegExp', 'Undefined', 'Null']; let length = items2.length; let value = 0; if (value < length) { for (r2 = value; true; r2 = value4) { property = items2[r2]; value2 = '[object ' + property; value3 = property.toLowerCase(); object3[value2 + ']'] = value3; value4 = r2 + 1; length = items2.length; if (!(value4 < length)) { break; } } } const closure2 = type_8051; let Math = global.Math; let PI = Math.PI; object3 = {clip_rgb: clip_rgb, limit: closure, type: closure2, unpack: unpack, last: function(a0) { var r0; if (a0.length < 2) { return null; } var value = a0.length - 1; if (type_8051_2(a0[value]) == 'string') { value = a0[value].toLowerCase(); r0 = value; } else { r0 = null; } return r0; }, PI: PI, TWOPI: 2 * PI, PITHIRD: PI / 3, DEG2RAD: PI / 180, RAD2DEG: 180 / PI}; const object4 = {format: {}, autodetect: []}; let last = object3.last; var clip_rgb = object3.clip_rgb; let type = object3.type; closure = Color_8057; let prototype = closure.prototype; prototype.toString = toString_8059; const closure3 = chroma$k; closure3.Color = closure; closure3.version = '2.4.2'; var unpack = object3.unpack; Math = global.Math; let max = Math.max; unpack = object3.unpack; unpack = object3.unpack; type = object3.type; closure.prototype.cmyk = function() { return rgb2cmyk$1(this._rgb); }; closure3.cmyk = cmyk_8064; let format = object4.format; format.cmyk = cmyk_8062; let autodetect = object4.autodetect; autodetect.push({p: 2, test: test_8065}); unpack = object3.unpack; last = object3.last; const rnd = function(a0) { var Math = global.Math; return Math.round(100 * a0) / 100; }; unpack = object3.unpack; unpack = object3.unpack; last = object3.last; Math = global.Math; let round = Math.round; unpack = object3.unpack; Math = global.Math; round = Math.round; const closure5 = hsl_8070; const env0_29 = RegExp('^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$', ''); const env0_30 = RegExp('^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$', ''); const env0_31 = RegExp('^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$', ''); const env0_32 = RegExp('^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$', ''); const env0_33 = RegExp('^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$', ''); const env0_34 = RegExp('^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$', ''); Math = global.Math; round = Math.round; const closure6 = css_8071; closure6.test = test_8072; type = object3.type; closure.prototype.css = function(a0) { return rgb2css$1(this._rgb, a0); }; closure3.css = css_8074; object4.format.css = closure6; autodetect = object4.autodetect; autodetect.push({p: 5, test: test_8075}); unpack = object3.unpack; object4.format.gl = gl; closure3.gl = gl_8077; closure.prototype.gl = function() { var _rgb = this._rgb; return [_rgb[0] / 255, _rgb[1] / 255, _rgb[2] / 255, _rgb[3]]; }; unpack = object3.unpack; unpack = object3.unpack; Math = global.Math; let floor = Math.floor; unpack = object3.unpack; type = object3.type; closure.prototype.hcg = function() { return rgb2hcg$1(this._rgb); }; closure3.hcg = hcg_8082; object4.format.hcg = hcg_8080; autodetect = object4.autodetect; autodetect.push({p: 1, test: test_8083}); unpack = object3.unpack; last = object3.last; Math = global.Math; round = Math.round; const env0_52 = RegExp('^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$', ''); const env0_53 = RegExp('^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$', ''); const closure8 = hex_8085; type = object3.type; closure.prototype.hex = function(a0) { return rgb2hex$2(this._rgb, a0); }; closure3.hex = hex_8087; object4.format.hex = closure8; autodetect = object4.autodetect; autodetect.push({p: 4, test: test_8088}); unpack = object3.unpack; let TWOPI = object3.TWOPI; Math = global.Math; let min = Math.min; Math = global.Math; let sqrt = Math.sqrt; Math = global.Math; const env0_61 = Math.acos; unpack = object3.unpack; const env0_63 = object3.limit; TWOPI = object3.TWOPI; const env0_65 = object3.PITHIRD; Math = global.Math; let cos = Math.cos; unpack = object3.unpack; type = object3.type; closure.prototype.hsi = function() { return rgb2hsi$1(this._rgb); }; closure3.hsi = hsi_8092; object4.format.hsi = hsi_8090; autodetect = object4.autodetect; autodetect.push({p: 2, test: test_8093}); unpack = object3.unpack; type = object3.type; closure.prototype.hsl = function() { return rgb2hsl$3_2(this._rgb); }; closure3.hsl = hsl_8095; object4.format.hsl = closure5; autodetect = object4.autodetect; autodetect.push({p: 2, test: test_8096}); unpack = object3.unpack; Math = global.Math; min = Math.min; Math = global.Math; max = Math.max; unpack = object3.unpack; Math = global.Math; floor = Math.floor; unpack = object3.unpack; type = object3.type; closure.prototype.hsv = function() { return rgb2hsl(this._rgb); }; closure3.hsv = hsv_8100; object4.format.hsv = hsv_8098; autodetect = object4.autodetect; autodetect.push({p: 2, test: test_8101}); const object10 = {'Kn': 18, 'Xn': 0.95047, 'Yn': 1, 'Zn': 1.08883, 't0': 0.137931034, 't1': 0.206896552, 't2': 0.12841855, 't3': 0.008856452}; unpack = object3.unpack; Math = global.Math; let pow = Math.pow; unpack = object3.unpack; Math = global.Math; pow = Math.pow; const closure10 = lab_8108; unpack = object3.unpack; type = object3.type; closure.prototype.lab = function() { return rgb2lab$2(this._rgb); }; closure3.lab = lab_8110; object4.format.lab = closure10; autodetect = object4.autodetect; autodetect.push({p: 2, test: test_8111}); unpack = object3.unpack; const env0_100 = object3.RAD2DEG; Math = global.Math; sqrt = Math.sqrt; Math = global.Math; let atan2 = Math.atan2; Math = global.Math; round = Math.round; unpack = object3.unpack; unpack = object3.unpack; const env0_108 = object3.DEG2RAD; Math = global.Math; let sin = Math.sin; Math = global.Math; cos = Math.cos; unpack = object3.unpack; const closure13 = lch_8115; unpack = object3.unpack; unpack = object3.unpack; type = object3.type; closure.prototype.lch = function() { return rgb2lch$1(this._rgb); }; closure.prototype.hcl = hcl; closure3.lch = lch_8119; closure3.hcl = hcl_8120; object4.format.lch = closure13; object4.format.hcl = hcl_8116; ['lch', 'hcl'].forEach(_fun8121); type = object3.type; closure.prototype.name = name_8123; object4.format.named = named; autodetect = object4.autodetect; autodetect.push({p: 5, test: test_8125}); unpack = object3.unpack; type = object3.type; type = object3.type; closure.prototype.num = function() { return rgb2num$1(this._rgb); }; closure3.num = num_8129; object4.format.num = num_8127; autodetect = object4.autodetect; autodetect.push({p: 5, test: test_8130}); unpack = object3.unpack; type = object3.type; Math = global.Math; round = Math.round; closure.prototype.rgb = rgb_8131; closure.prototype.rgba = function(a0) { var env0_0 = a0; if (a0 === undefined) { env0_0 = true; } return this._rgb.slice(0, 4).map(_fun8133); }; closure3.rgb = rgb_8134; object4.format.rgb = rgb_8135; autodetect = object4.autodetect; autodetect.push({p: 3, test: test_8136}); Math = global.Math; let log = Math.log; const closure14 = temperature_8137; unpack = object3.unpack; Math = global.Math; round = Math.round; prototype = closure.prototype; const prototype2 = closure.prototype; const prototype3 = closure.prototype; const closure15 = function() { return rgb2temperature$1(this._rgb); }; prototype3.temperature = closure15; prototype2.kelvin = closure15; prototype.temp = closure15; const closure16 = temperature_8140; closure3.temperature = closure16; closure3.kelvin = closure16; closure3.temp = closure16; format = object4.format; const format2 = object4.format; object4.format.temperature = closure14; format2.kelvin = closure14; format.temp = closure14; unpack = object3.unpack; Math = global.Math; const env0_141 = Math.cbrt; Math = global.Math; pow = Math.pow; Math = global.Math; let sign = Math.sign; unpack = object3.unpack; Math = global.Math; pow = Math.pow; Math = global.Math; sign = Math.sign; const closure18 = oklab_8142; unpack = object3.unpack; type = object3.type; closure.prototype.oklab = function() { return rgb2oklab$2(this._rgb); }; closure3.oklab = oklab_8144; object4.format.oklab = closure18; autodetect = object4.autodetect; autodetect.push({p: 3, test: test_8145}); unpack = object3.unpack; unpack = object3.unpack; unpack = object3.unpack; type = object3.type; closure.prototype.oklch = function() { return rgb2oklch$1(this._rgb); }; closure3.oklch = oklch_8149; object4.format.oklch = oklch_8147; autodetect = object4.autodetect; autodetect.push({p: 3, test: test_8150}); type = object3.type; closure.prototype.alpha = alpha_8151; closure.prototype.clipped = function() { return this._rgb._clipped || false; }; closure.prototype.darken = darken_8153; closure.prototype.brighten = function(a0) { var value = a0; return this.darken(-(value !== undefined ? value : 1)); }; closure.prototype.darker = closure.prototype.darken; closure.prototype.brighter = closure.prototype.brighten; closure.prototype.get = get_8155; type = object3.type; Math = global.Math; pow = Math.pow; closure.prototype.luminance = luminance; const object5 = {}; type = object3.type; const closure19 = interpolate_8160; prototype = closure.prototype; const prototype6 = closure.prototype; const closure20 = interpolate_8161; prototype6.interpolate = closure20; prototype.mix = closure20; closure.prototype.premultiply = premultiply; closure.prototype.saturate = saturate_8163; closure.prototype.desaturate = function(a0) { var value = a0; return this.saturate(-(value !== undefined ? value : 1)); }; type = object3.type; closure.prototype.set = set_8165; object5.rgb = rgb_8166; Math = global.Math; sqrt = Math.sqrt; Math = global.Math; pow = Math.pow; object5.lrgb = lrgb; object5.lab = lab_8168; const closure22 = function(a0, a1, a2) { return _hsx(a0, a1, a2, 'lch'); }; object5.lch = closure22; object5.hcl = closure22; object5.num = function(a0, a1, a2) { var value = a0.num(); value += a2 * (a1.num() - value); var value4 = Object.create(Color_8057_27.prototype, {constructor: {value: Color_8057_27}}); value = new Color_8057_27(value, 'num'); return value instanceof Object ? value : value4; }; object5.hcg = function(a0, a1, a2) { return _hsx_2(a0, a1, a2, 'hcg'); }; object5.hsi = function(a0, a1, a2) { return _hsx_3(a0, a1, a2, 'hsi'); }; object5.hsl = function(a0, a1, a2) { return _hsx_4(a0, a1, a2, 'hsl'); }; object5.hsv = function(a0, a1, a2) { return _hsx_5(a0, a1, a2, 'hsv'); }; object5.oklab = oklab_8176; object5.oklch = function(a0, a1, a2) { return _hsx_6(a0, a1, a2, 'oklch'); }; clip_rgb = object3.clip_rgb; Math = global.Math; pow = Math.pow; Math = global.Math; sqrt = Math.sqrt; Math = global.Math; PI = Math.PI; Math = global.Math; cos = Math.cos; Math = global.Math; sin = Math.sin; Math = global.Math; atan2 = Math.atan2; type = object3.type; Math = global.Math; pow = Math.pow; const closure23 = scale; const closure24 = blend; const closure25 = function(a0) { var env0_0 = a0; return _fun8209; }; const closure26 = function(a0) { var env0_0 = a0; return _fun8211; }; closure24.normal = closure25(closure26(function(a0) { return a0; })); closure24.multiply = closure25(closure26(function(a0, a1) { return a0 * a1 / 255; })); closure24.screen = closure25(closure26(function(a0, a1) { var value = a0 / 255; var value2 = a1 / 255; value = 1 - value; return 255 * (1 - value * (1 - value2)); })); closure24.overlay = closure25(closure26(function(a0, a1) { var r0; var value; var value2; if (a1 < 128) { r0 = 2 * a0 * a1 / 255; } else { value = a0 / 255; value2 = a1 / 255; value = 2 * (1 - value); value = 255 * (1 - value * (1 - value2)); r0 = value; } return r0; })); closure24.darken = closure25(closure26(function(a0, a1) { var value = a0; var value2 = a1; return value > value2 ? value2 : value; })); closure24.lighten = closure25(closure26(function(a0, a1) { var value = a0; var value2 = a1; return value > value2 ? value : value2; })); closure24.dodge = closure25(closure26(function(a0, a1) { var value = 255; return value === a0 || a1 / value * value / (1 - a0 / value) > value ? value : a1 / value * value / (1 - a0 / value); })); closure24.burn = closure25(closure26(function(a0, a1) { return 255 * (1 - (1 - a1 / 255) / (a0 / 255)); })); type = object3.type; clip_rgb = object3.clip_rgb; TWOPI = object3.TWOPI; Math = global.Math; pow = Math.pow; Math = global.Math; sin = Math.sin; Math = global.Math; cos = Math.cos; Math = global.Math; floor = Math.floor; Math = global.Math; const env0_218 = Math.random; Math = global.Math; log = Math.log; Math = global.Math; pow = Math.pow; Math = global.Math; floor = Math.floor; Math = global.Math; let abs = Math.abs; object3 = {analyze: analyze_8220, limits: limits}; Math = global.Math; sqrt = Math.sqrt; Math = global.Math; pow = Math.pow; Math = global.Math; min = Math.min; Math = global.Math; max = Math.max; Math = global.Math; atan2 = Math.atan2; Math = global.Math; abs = Math.abs; Math = global.Math; cos = Math.cos; Math = global.Math; sin = Math.sin; Math = global.Math; const env0_236 = Math.exp; Math = global.Math; PI = Math.PI; const object6 = {cool: function() { var scale_2Binding = scale_2; var items = [chroma$k_5.hsl(180, 1, 0.9)]; items[1] = chroma$k_5.hsl(250, 0.7, 0.4); return scale_2Binding(items); }, hot: hot}; const object7 = {OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'], PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'], BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'], Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'], BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'], YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'], YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'], Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'], RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'], Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'], YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'], Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'], GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'], Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'], YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'], PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'], Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'], PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'], Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'], Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'], RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'], RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'], PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'], PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'], RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'], BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'], RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'], PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'], Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'], Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'], Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'], Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'], Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'], Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'], Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'], Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']}; const Object = global.Object; let value5 = Object.keys(object7); length = value5.length; if (value < length) { for (r12 = value; true; r12 = value) { property = value5[r12]; value = property.toLowerCase(); object7[value] = object7[property]; value = r12 + 1; length = value5.length; if (!(value < length)) { break; } } } closure3.average = average; closure3.bezier = function(a0) { var value = _fun8235(a0); var env0_0 = value; value.scale = _fun8250; return value; }; closure3.blend = closure24; closure3.cubehelix = cubehelix; closure3.interpolate = closure19; closure3.mix = closure19; closure3.random = function() { var value4; var value = '#'; var r6 = 0; var r7 = value; reducibleLoop1: while (true) { value = r7 + '0123456789abcdef'.charAt(floor(16 * random())); value4 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; if (value4 < 6) { r6 = value4; r7 = value; continue reducibleLoop1; } break reducibleLoop1; } var value5 = Object.create(Color_8057_31.prototype, {constructor: {value: Color_8057_31}}); value = new Color_8057_31(value, 'hex'); return value instanceof Object ? value : value5; }; closure3.scale = closure23; closure3.analyze = object3.analyze; closure3.contrast = contrast_8260; closure3.deltaE = deltaE; closure3.distance = distance; var limits = object3.limits; closure3.limits = limits; closure3.valid = valid; closure3.scales = object6; closure3.colors = {'aliceblue': '#f0f8ff', 'antiquewhite': '#faebd7', 'aqua': '#00ffff', 'aquamarine': '#7fffd4', 'azure': '#f0ffff', 'beige': '#f5f5dc', 'bisque': '#ffe4c4', 'black': '#000000', 'blanchedalmond': '#ffebcd', 'blue': '#0000ff', 'blueviolet': '#8a2be2', 'brown': '#a52a2a', 'burlywood': '#deb887', 'cadetblue': '#5f9ea0', 'chartreuse': '#7fff00', 'chocolate': '#d2691e', 'coral': '#ff7f50', 'cornflower': '#6495ed', 'cornflowerblue': '#6495ed', 'cornsilk': '#fff8dc', 'crimson': '#dc143c', 'cyan': '#00ffff', 'darkblue': '#00008b', 'darkcyan': '#008b8b', 'darkgoldenrod': '#b8860b', 'darkgray': '#a9a9a9', 'darkgreen': '#006400', 'darkgrey': '#a9a9a9', 'darkkhaki': '#bdb76b', 'darkmagenta': '#8b008b', 'darkolivegreen': '#556b2f', 'darkorange': '#ff8c00', 'darkorchid': '#9932cc', 'darkred': '#8b0000', 'darksalmon': '#e9967a', 'darkseagreen': '#8fbc8f', 'darkslateblue': '#483d8b', 'darkslategray': '#2f4f4f', 'darkslategrey': '#2f4f4f', 'darkturquoise': '#00ced1', 'darkviolet': '#9400d3', 'deeppink': '#ff1493', 'deepskyblue': '#00bfff', 'dimgray': '#696969', 'dimgrey': '#696969', 'dodgerblue': '#1e90ff', 'firebrick': '#b22222', 'floralwhite': '#fffaf0', 'forestgreen': '#228b22', 'fuchsia': '#ff00ff', 'gainsboro': '#dcdcdc', 'ghostwhite': '#f8f8ff', 'gold': '#ffd700', 'goldenrod': '#daa520', 'gray': '#808080', 'green': '#008000', 'greenyellow': '#adff2f', 'grey': '#808080', 'honeydew': '#f0fff0', 'hotpink': '#ff69b4', 'indianred': '#cd5c5c', 'indigo': '#4b0082', 'ivory': '#fffff0', 'khaki': '#f0e68c', 'laserlemon': '#ffff54', 'lavender': '#e6e6fa', 'lavenderblush': '#fff0f5', 'lawngreen': '#7cfc00', 'lemonchiffon': '#fffacd', 'lightblue': '#add8e6', 'lightcoral': '#f08080', 'lightcyan': '#e0ffff', 'lightgoldenrod': '#fafad2', 'lightgoldenrodyellow': '#fafad2', 'lightgray': '#d3d3d3', 'lightgreen': '#90ee90', 'lightgrey': '#d3d3d3', 'lightpink': '#ffb6c1', 'lightsalmon': '#ffa07a', 'lightseagreen': '#20b2aa', 'lightskyblue': '#87cefa', 'lightslategray': '#778899', 'lightslategrey': '#778899', 'lightsteelblue': '#b0c4de', 'lightyellow': '#ffffe0', 'lime': '#00ff00', 'limegreen': '#32cd32', 'linen': '#faf0e6', 'magenta': '#ff00ff', 'maroon': '#800000', 'maroon2': '#7f0000', 'maroon3': '#b03060', 'mediumaquamarine': '#66cdaa', 'mediumblue': '#0000cd', 'mediumorchid': '#ba55d3', 'mediumpurple': '#9370db', 'mediumseagreen': '#3cb371', 'mediumslateblue': '#7b68ee', 'mediumspringgreen': '#00fa9a', 'mediumturquoise': '#48d1cc', 'mediumvioletred': '#c71585', 'midnightblue': '#191970', 'mintcream': '#f5fffa', 'mistyrose': '#ffe4e1', 'moccasin': '#ffe4b5', 'navajowhite': '#ffdead', 'navy': '#000080', 'oldlace': '#fdf5e6', 'olive': '#808000', 'olivedrab': '#6b8e23', 'orange': '#ffa500', 'orangered': '#ff4500', 'orchid': '#da70d6', 'palegoldenrod': '#eee8aa', 'palegreen': '#98fb98', 'paleturquoise': '#afeeee', 'palevioletred': '#db7093', 'papayawhip': '#ffefd5', 'peachpuff': '#ffdab9', 'peru': '#cd853f', 'pink': '#ffc0cb', 'plum': '#dda0dd', 'powderblue': '#b0e0e6', 'purple': '#800080', 'purple2': '#7f007f', 'purple3': '#a020f0', 'rebeccapurple': '#663399', 'red': '#ff0000', 'rosybrown': '#bc8f8f', 'royalblue': '#4169e1', 'saddlebrown': '#8b4513', 'salmon': '#fa8072', 'sandybrown': '#f4a460', 'seagreen': '#2e8b57', 'seashell': '#fff5ee', 'sienna': '#a0522d', 'silver': '#c0c0c0', 'skyblue': '#87ceeb', 'slateblue': '#6a5acd', 'slategray': '#708090', 'slategrey': '#708090', 'snow': '#fffafa', 'springgreen': '#00ff7f', 'steelblue': '#4682b4', 'tan': '#d2b48c', 'teal': '#008080', 'thistle': '#d8bfd8', 'tomato': '#ff6347', 'turquoise': '#40e0d0', 'violet': '#ee82ee', 'wheat': '#f5deb3', 'white': '#ffffff', 'whitesmoke': '#f5f5f5', 'yellow': '#ffff00', 'yellowgreen': '#9acd32'}; closure3.brewer = object7; return closure3; } function rgb2lrgb(a0) { // fn#8048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:22321, owner: t_8047.rgb2lrgb, offset: 0x00d34f61, size: 126 bytes, params: 2, frame: 15 var r0; const Math = global.Math; let value = Math.abs(a0); if (value < 0.04045) { r0 = a0 / 12.92; } else { value = (sign(a0) || 1) * pow((value + 0.055) / 1.055, 2.4); r0 = value; } return r0; } function lrgb2rgb(a0) { // fn#8049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:22894, owner: t_8047.lrgb2rgb, offset: 0x00d34fdf, size: 126 bytes, params: 2, frame: 15 var r2; var r0; const Math = global.Math; let value = Math.abs(a0); if (value > 0.0031308) { r2 = sign(a0) || 1; value = pow(value, 0.4166666666666667); value = r2 * (1.055 * value - 0.055); r0 = value; } else { r0 = 12.92 * a0; } return r0; } function t_8047Type(a0) { // fn#8051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:303, owner: t_8047.type, offset: 0x00d35085, size: 51 bytes, params: 2, frame: 12 const binding = env0_1; const Object = global.Object; const toString = Object.prototype.toString; return binding[toString.call(a0)] || 'object'; } function clip_rgb(a0) { // fn#8052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:407, owner: t_8047.clip_rgb, offset: 0x00d350b8, size: 132 bytes, params: 2, frame: 21 var r9; var value3; var value4; var value5; a0._clipped = false; const slice = a0.slice; const value = 0; a0._unclipped = Reflect.apply(slice, a0, [value]); let r1 = value; while (true) { if (!(r1 < 3)) { if (r1 !== 3) { break; } a0[r1] = limit_2(a0[r1], value, 1); break; } value3 = a0[r1] < value; if (value3) { r9 = value3; continue; } value4 = a0[r1] > 255; r9 = value4; if (!r9) { continue; } a0._clipped = true; a0[r1] = limit_2(a0[r1], value, 255); value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (value5 <= 3) { r1 = value5; continue; } break; } return a0; } function t_8047Unpack(a0, a1) { // fn#8053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:608, owner: t_8047.unpack, offset: 0x00d3513c, size: 143 bytes, params: 3, frame: 15 var r0; let value = a1; const env0_0 = a0; const r5 = value !== undefined ? value : null; if (a0.length >= 3) { r0 = global.Array.prototype.slice.call(a0); } else { value = type_8051(a0[0]); if (value != 'object') { r0 = a0[0]; } else if (r5) { value = r5.split(''); value = value.filter(_fun8054); value = value.map(_fun8055); r0 = value; } else { r0 = a0[0]; } } return r0; } function t_8047Color() { // fn#8057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:1059, owner: t_8047.Color, offset: 0x00d3524b, size: 424 bytes, params: 1, frame: 23 var r4; var r8; var r5; var r7; var r6; var value3; var constructor; var constructor2; var sorted; var binding; var autodetect; var sort; var length; var value8; var property; var test; var apply; var value9; var value10; var slice; var value12; var _rgb; var push; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r4 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r4] = arguments[r4]; value = typeof r4 === 'bigint' ? r4 : +r4; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r4 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const typeBinding = type; const value4 = 0; if (typeBinding(items2[value4]) === 'object') { constructor = items2[value4].constructor; reducibleJoin5: while (true) { if (constructor) { constructor = items2[value4].constructor; constructor2 = this.constructor; if (constructor === constructor2) { return items2[value4]; } break reducibleJoin5; } break reducibleJoin5; } } const value6 = last(items2); reducibleJoin11: while (true) { if (value6) { r5 = false; r7 = value6; break reducibleJoin11; } sorted = env0_7.sorted; reducibleJoin8: while (true) { if (sorted) { break reducibleJoin8; } binding = env0_7; autodetect = binding.autodetect; sort = autodetect.sort; binding.autodetect = Reflect.apply(sort, autodetect, [function(a0, {p}) { return p - a0.p; }]); env0_7.sorted = true; break reducibleJoin8; } autodetect = env0_7.autodetect; length = autodetect.length; value8 = true; if (!(value4 < length)) { r5 = value8; r7 = value6; break reducibleJoin11; } r8 = value4; reducibleLoop9: while (true) { property = autodetect[r8]; test = property.test; apply = test.apply; value9 = Reflect.apply(apply, test, [property, items2]); if (value9) { r5 = value8; r7 = value9; break reducibleJoin11; } value10 = r8 + 1; length = autodetect.length; if (value10 < length) { r8 = value10; continue reducibleLoop9; } r5 = value8; r7 = value9; break reducibleJoin11; } } if (env0_7.format[r7]) { property = env0_7.format[r7]; apply = property.apply; reducibleJoin15: while (true) { if (r5) { r6 = items2; break reducibleJoin15; } slice = items2.slice; value12 = Reflect.apply(slice, items2, [value4, -1]); r6 = value12; break reducibleJoin15; } this._rgb = clip_rgb(Reflect.apply(apply, property, [null, r6])); _rgb = this._rgb; reducibleJoin17: while (true) { if (_rgb.length !== 3) { break reducibleJoin17; } _rgb = this._rgb; push = _rgb.push; Reflect.apply(push, _rgb, [1]); break reducibleJoin17; } return undefined; } const Error = global.Error; value = 'unknown format: ' + items2; const value11 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(value); throw error instanceof Object ? error : value11; } function t_8047ToString() { // fn#8059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:1602, owner: t_8047.toString, offset: 0x00d35409, size: 81 bytes, params: 1, frame: 12 var r0; let value = type(this.hex); if (value == 'function') { r0 = this.hex(); } else { value = this._rgb.join(','); value = '[' + value + ']'; r0 = value; } return r0; } function chroma$k() { // fn#8060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:1702, owner: t_8047.chroma$k, offset: 0x00d3545a, size: 117 bytes, params: 1, frame: 15 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const apply = bind.apply; const Color = chroma$k.Color; const items2 = [null]; value = Reflect.apply(apply, bind, [Color, items2.concat(items3)]); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function rgb2cmyk$1() { // fn#8061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:1906, owner: t_8047.rgb2cmyk$1, offset: 0x00d354cf, size: 183 bytes, params: 1, frame: 18 var r1; var r3; var value3; var value9; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'rgb'); const value5 = 0; const property = value4[value5]; const property2 = value4[1]; const property3 = value4[2]; const maxBinding = max; const value6 = property / 255; const maxBinding2 = max; value = property2 / 255; const value7 = property3 / 255; const value8 = 1 - maxBinding(value6, maxBinding2(value, value7)); reducibleJoin4: while (true) { if (value8 < 1) { value9 = 1 / (1 - value8); r3 = value9; break reducibleJoin4; } r3 = value5; break reducibleJoin4; } return [(1 - value6 - value8) * r3, (1 - value - value8) * r3, (1 - value7 - value8) * r3, value8]; } function t_8047Cmyk() { // fn#8062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:2122, owner: t_8047.cmyk, offset: 0x00d35586, size: 232 bytes, params: 1, frame: 19 var r1; var r2; var r6; var r0; var value3; var property5; var value6; var value7; var value8; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } value = unpack(items2, 'cmyk'); const value4 = 0; const property = value[value4]; const value5 = 1; const property2 = value[value5]; const property3 = value[2]; const property4 = value[3]; reducibleJoin4: while (true) { if (value.length > 4) { property5 = value[4]; r2 = property5; break reducibleJoin4; } r2 = value5; break reducibleJoin4; } if (value5 === property4) { r0 = [0, 0, 0, r2]; } else { reducibleJoin7: while (true) { if (property >= value5) { r6 = value4; break reducibleJoin7; } value = value5 - property; value6 = value5 - property4; value = 255 * value * value6; r6 = value; break reducibleJoin7; } items2 = [r6]; reducibleJoin9: while (true) { if (property2 >= value5) { r6 = value4; break reducibleJoin9; } value = value5 - property2; value7 = value5 - property4; value = 255 * value * value7; r6 = value; break reducibleJoin9; } items2[1] = r6; reducibleJoin11: while (true) { if (property3 >= value5) { r1 = value4; break reducibleJoin11; } value = value5 - property3; value8 = value5 - property4; value = 255 * value * value8; r1 = value; break reducibleJoin11; } items2[2] = r1; items2[3] = r2; r0 = items2; } return r0; } function t_8047Cmyk_8064() { // fn#8064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:2452, owner: t_8047.cmyk, offset: 0x00d35687, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057, items2.concat(items3, ['cmyk'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test() { // fn#8065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:2634, owner: t_8047.test, offset: 0x00d35701, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'cmyk'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 4) { return 'cmyk'; } break reducibleJoin4; } } } function hsl2css$1() { // fn#8067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:2841, owner: t_8047.hsl2css$1, offset: 0x00d3577a, size: 255 bytes, params: 1, frame: 19 var r1; var value3; var value7; var length; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const unpackBinding = unpack; const value4 = 'hsla'; const value5 = unpackBinding(items2, value4); const value6 = last(items2); reducibleJoin4: while (true) { if (value6) { r1 = value6; break reducibleJoin4; } value7 = 'lsa'; r1 = value7; break reducibleJoin4; } let rndBinding = rnd; const value8 = 0; let property = value5[value8]; let r4 = property || value8; value5[value8] = rndBinding(r4); rndBinding = rnd; const value9 = 1; value5[value9] = rndBinding(100 * value5[value9]) + '%'; value5[2] = rnd(100 * value5[2]) + '%'; reducibleJoin12: while (true) { reducibleJoin11: while (true) { if (value4 === r1) { if (value5.length > 3) { property = value5[3]; r4 = property; break reducibleJoin11; } r4 = value9; break reducibleJoin11; } length = value5.length; if (length > 3) { if (value5[3] < value9) { length = value5.length; if (length > 3) { property = value5[3]; r4 = property; break reducibleJoin11; } r4 = value9; break reducibleJoin11; } } value5.length = 3; break reducibleJoin12; } value5[3] = r4; r1 = value4; break reducibleJoin12; } value = r1 + '('; value += value5.join(','); return value + ')'; } function rgb2hsl$3() { // fn#8068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:3126, owner: t_8047.rgb2hsl$3, offset: 0x00d35879, size: 355 bytes, params: 1, frame: 24 var r2; var r5; var NaN; var r6; var items2; var value5; var value6; var value20; var value21; var value27; const value = undefined; const items3 = []; const length = arguments.length; const value3 = typeof length === 'bigint' ? length : +length; if (value3) { r2 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1; reducibleLoop1: while (true) { items3[r2] = arguments[r2]; value5 = typeof r2 === 'bigint' ? r2 : +r2; value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { r2 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = unpack(items3, 'rgba'); const value9 = 0; const property = value8[value9]; const property2 = value8[1]; const property3 = value8[2]; const value10 = property / 255; const value11 = property2 / 255; const value12 = property3 / 255; let Math = global.Math; const value13 = Math.min(value10, value11, value12); Math = global.Math; const value14 = Math.max(value10, value11, value12); const value15 = (value14 + value13) / 2; if (value14 === value13) { NaN = global.Number.NaN; r5 = value9; } else { r5 = value15 < 0.5 ? (value14 - value13) / (value14 + value13) : (value14 - value13) / (2 - value14 - value13); NaN = value; } if (value10 == value14) { r6 = (value11 - value12) / (value14 - value13); } else if (value11 == value14) { r6 = 2 + (value12 - value10) / (value14 - value13); } else { reducibleJoin14: while (true) { if (value12 != value14) { r6 = NaN; break reducibleJoin14; } value20 = value14 - value13; value21 = 4 + (value10 - value11) / value20; r6 = value21; break reducibleJoin14; } } const value26 = r6 * 60; reducibleJoin16: while (true) { if (value26 < value9) { value27 = value26 + 360; r6 = value27; break reducibleJoin16; } r6 = value26; break reducibleJoin16; } reducibleJoin20: while (true) { reducibleJoin18: while (true) { if (value8.length > 3) { if (value !== value8[3]) { items2 = [r6, r5, value15, value8[3]]; break reducibleJoin20; } break reducibleJoin18; } break reducibleJoin18; } items2 = [r6, r5, value15]; break reducibleJoin20; } return items2; } function rgb2css$1() { // fn#8069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:3556, owner: t_8047.rgb2css$1, offset: 0x00d359dc, size: 298 bytes, params: 1, frame: 20 var r1; var r3; var r9; var r6; var r2; var r10; var r0; var value3; var value7; var roundBinding; var value10; var length; var property; var slice; var value12; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const unpackBinding = unpack; const value4 = 'rgba'; const value5 = unpackBinding(items2, value4); const value6 = last(items2); reducibleJoin4: while (true) { if (value6) { r3 = value6; break reducibleJoin4; } value7 = 'rgb'; r3 = value7; break reducibleJoin4; } const value8 = 3; if (r3.substr(0, value8) == 'hsl') { r0 = hsl2css$1(rgb2hsl$3(value5), r3); } else { value5[0] = round(value5[0]); roundBinding = round; value10 = 1; value5[value10] = roundBinding(value5[value10]); value5[2] = round(value5[2]); value = value4 === r3; reducibleJoin9: while (true) { if (value) { r6 = value; break reducibleJoin9; } length = value5.length; value = length > value8; reducibleJoin8: while (true) { if (value) { value = value5[value8] < value10; r9 = value; break reducibleJoin8; } r9 = value; break reducibleJoin8; } r6 = r9; break reducibleJoin9; } reducibleJoin13: while (true) { if (r6) { length = value5.length; reducibleJoin12: while (true) { if (length > value8) { property = value5[value8]; r2 = property; break reducibleJoin12; } r2 = value10; break reducibleJoin12; } value5[value8] = r2; r10 = value4; break reducibleJoin13; } r10 = r3; break reducibleJoin13; } value = r10 + '('; slice = value5.slice; r0 = r10 !== 'rgb' ? 4 : value8; value12 = Reflect.apply(slice, value5, [0, r0]); value += value12.join(','); value += ')'; r0 = value; } return r0; } function t_8047Hsl() { // fn#8070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:3882, owner: t_8047.hsl, offset: 0x00d35b06, size: 515 bytes, params: 1, frame: 26 var r1; var r13; var r0; var r4; var r5; var r6; var value3; var items2; var value9; var value10; var value11; var value12; var value13; var property4; let items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items3, 'hsl'); const value5 = 0; let property = value4[value5]; const property2 = value4[1]; const property3 = value4[2]; if (value5 === property2) { value = 255 * property3; r4 = value; r5 = value; r6 = value; } else { items3 = [0, 0, 0]; items2 = [0, 0, 0]; r13 = property3 < 0.5 ? property3 * (1 + property2) : property3 + property2 - property3 * property2; value9 = 2 * property3 - r13; value10 = property / 360; items3[value5] = value10 + 0.3333333333333333; items3[1] = value10; items3[2] = value10 - 0.3333333333333333; r0 = value5; reducibleLoop7: while (true) { reducibleJoin9: while (true) { if (items3[r0] < value5) { items3[r0] += 1; break reducibleJoin9; } break reducibleJoin9; } reducibleJoin11: while (true) { if (items3[r0] > 1) { items3[r0] -= 1; break reducibleJoin11; } break reducibleJoin11; } if (6 * items3[r0] < 1) { value12 = r13 - value9; property = items3[r0]; items2[r0] = value9 + 6 * value12 * property; } else if (2 * items3[r0] < 1) { items2[r0] = r13; } else if (3 * items3[r0] < 2) { value11 = r13 - value9; items2[r0] = value9 + value11 * (0.6666666666666666 - items3[r0]) * 6; } else { items2[r0] = value9; } value13 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value13 < 3) { r0 = value13; continue reducibleLoop7; } break reducibleLoop7; } items3 = [round(255 * items2[value5])]; items3[1] = round(255 * items2[1]); items3[2] = round(255 * items2[2]); property = items3[value5]; property4 = items3[1]; r4 = items3[2]; r5 = property4; r6 = property; } return value4.length > 3 ? [r6, r5, r4, value4[3]] : [r6, r5, r4, 1]; } function t_8047Css(a0) { // fn#8071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:4945, owner: t_8047.css, offset: 0x00d35d09, size: 602 bytes, params: 2, frame: 21 var r7; var r2; var r3; var binding; var value3; var error; var match; var value4; var value5; var value6; var value7; var value8; var slice; var value9; var value10; var value11; var value12; var value13; var value14; var value15; var value16; var value17; var value18; let value = a0.toLowerCase(); value = value.trim(); let format = env0_28.format; let named = format.named; reducibleJoin1: while (true) { if (!named) { match = value.match; value4 = Reflect.apply(match, value, [env0_29]); if (value4) { slice = value4.slice; value = Reflect.apply(slice, value4, [1, 4]); value17 = 0; r3 = value17; reducibleLoop27: while (true) { value[r3] = Number(value[r3]); value18 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value18 < 3) { r3 = value18; continue reducibleLoop27; } break reducibleLoop27; } value[3] = 1; return value; } match = value.match; value5 = Reflect.apply(match, value, [env0_30]); if (value5) { slice = value5.slice; value = Reflect.apply(slice, value5, [1, 5]); value15 = 0; r2 = value15; reducibleLoop24: while (true) { value[r2] = Number(value[r2]); value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value16 < 4) { r2 = value16; continue reducibleLoop24; } break reducibleLoop24; } return value; } match = value.match; value6 = Reflect.apply(match, value, [env0_31]); if (value6) { slice = value6.slice; value = Reflect.apply(slice, value6, [1, 4]); value13 = 0; r7 = value13; reducibleLoop21: while (true) { value[r7] = round(2.55 * value[r7]); value14 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value14 < 3) { r7 = value14; continue reducibleLoop21; } break reducibleLoop21; } value[3] = 1; return value; } match = value.match; value7 = Reflect.apply(match, value, [env0_32]); if (value7) { slice = value7.slice; value = Reflect.apply(slice, value7, [1, 5]); value11 = 0; r7 = value11; reducibleLoop18: while (true) { value[r7] = round(2.55 * value[r7]); value12 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value12 < 3) { r7 = value12; continue reducibleLoop18; } break reducibleLoop18; } value[3] = Number(value[3]); return value; } match = value.match; value8 = Reflect.apply(match, value, [env0_33]); if (value8) { value = value8.slice(1, 4); value[1] *= 0.01; value[2] *= 0.01; value = hsl_8070(value); value[3] = 1; return value; } match = value.match; value = Reflect.apply(match, value, [env0_34]); if (value) { value9 = value.slice(1, 4); value9[1] *= 0.01; value9[2] *= 0.01; value10 = hsl_8070(value9); value10[3] = Number(value[4]); return value10; } return undefined; } break reducibleJoin1; } try { binding = env0_28; } catch (error) { value4 = value.match(env0_29); if (value4) { value = value4.slice(1, 4); value17 = 0; r3 = value17; reducibleLoop27: while (true) { value[r3] = Number(value[r3]); value18 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value18 < 3) { r3 = value18; continue reducibleLoop27; } break reducibleLoop27; } value[3] = 1; return value; } value5 = value.match(env0_30); if (value5) { value = value5.slice(1, 5); value15 = 0; r2 = value15; reducibleLoop24: while (true) { value[r2] = Number(value[r2]); value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value16 < 4) { r2 = value16; continue reducibleLoop24; } break reducibleLoop24; } return value; } value6 = value.match(env0_31); if (value6) { value = value6.slice(1, 4); value13 = 0; r7 = value13; reducibleLoop21: while (true) { value[r7] = round(2.55 * value[r7]); value14 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value14 < 3) { r7 = value14; continue reducibleLoop21; } break reducibleLoop21; } value[3] = 1; return value; } value7 = value.match(env0_32); if (value7) { value = value7.slice(1, 5); value11 = 0; r7 = value11; reducibleLoop18: while (true) { value[r7] = round(2.55 * value[r7]); value12 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value12 < 3) { r7 = value12; continue reducibleLoop18; } break reducibleLoop18; } value[3] = Number(value[3]); return value; } value8 = value.match(env0_33); if (value8) { value = value8.slice(1, 4); value[1] *= 0.01; value[2] *= 0.01; value = hsl_8070(value); value[3] = 1; return value; } value = value.match(env0_34); if (value) { value9 = value.slice(1, 4); value9[1] *= 0.01; value9[2] *= 0.01; value10 = hsl_8070(value9); value10[3] = Number(value[4]); return value10; } return undefined; } try { format = binding.format; } catch (error) { value4 = value.match(env0_29); if (value4) { value = value4.slice(1, 4); value17 = 0; r3 = value17; reducibleLoop27: while (true) { value[r3] = Number(value[r3]); value18 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value18 < 3) { r3 = value18; continue reducibleLoop27; } break reducibleLoop27; } value[3] = 1; return value; } value5 = value.match(env0_30); if (value5) { value = value5.slice(1, 5); value15 = 0; r2 = value15; reducibleLoop24: while (true) { value[r2] = Number(value[r2]); value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value16 < 4) { r2 = value16; continue reducibleLoop24; } break reducibleLoop24; } return value; } value6 = value.match(env0_31); if (value6) { value = value6.slice(1, 4); value13 = 0; r7 = value13; reducibleLoop21: while (true) { value[r7] = round(2.55 * value[r7]); value14 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value14 < 3) { r7 = value14; continue reducibleLoop21; } break reducibleLoop21; } value[3] = 1; return value; } value7 = value.match(env0_32); if (value7) { value = value7.slice(1, 5); value11 = 0; r7 = value11; reducibleLoop18: while (true) { value[r7] = round(2.55 * value[r7]); value12 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value12 < 3) { r7 = value12; continue reducibleLoop18; } break reducibleLoop18; } value[3] = Number(value[3]); return value; } value8 = value.match(env0_33); if (value8) { value = value8.slice(1, 4); value[1] *= 0.01; value[2] *= 0.01; value = hsl_8070(value); value[3] = 1; return value; } value = value.match(env0_34); if (value) { value9 = value.slice(1, 4); value9[1] *= 0.01; value9[2] *= 0.01; value10 = hsl_8070(value9); value10[3] = Number(value[4]); return value10; } return undefined; } try { named = format.named; } catch (error) { value4 = value.match(env0_29); if (value4) { value = value4.slice(1, 4); value17 = 0; r3 = value17; reducibleLoop27: while (true) { value[r3] = Number(value[r3]); value18 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value18 < 3) { r3 = value18; continue reducibleLoop27; } break reducibleLoop27; } value[3] = 1; return value; } value5 = value.match(env0_30); if (value5) { value = value5.slice(1, 5); value15 = 0; r2 = value15; reducibleLoop24: while (true) { value[r2] = Number(value[r2]); value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value16 < 4) { r2 = value16; continue reducibleLoop24; } break reducibleLoop24; } return value; } value6 = value.match(env0_31); if (value6) { value = value6.slice(1, 4); value13 = 0; r7 = value13; reducibleLoop21: while (true) { value[r7] = round(2.55 * value[r7]); value14 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value14 < 3) { r7 = value14; continue reducibleLoop21; } break reducibleLoop21; } value[3] = 1; return value; } value7 = value.match(env0_32); if (value7) { value = value7.slice(1, 5); value11 = 0; r7 = value11; reducibleLoop18: while (true) { value[r7] = round(2.55 * value[r7]); value12 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value12 < 3) { r7 = value12; continue reducibleLoop18; } break reducibleLoop18; } value[3] = Number(value[3]); return value; } value8 = value.match(env0_33); if (value8) { value = value8.slice(1, 4); value[1] *= 0.01; value[2] *= 0.01; value = hsl_8070(value); value[3] = 1; return value; } value = value.match(env0_34); if (value) { value9 = value.slice(1, 4); value9[1] *= 0.01; value9[2] *= 0.01; value10 = hsl_8070(value9); value10[3] = Number(value[4]); return value10; } return undefined; } try { value3 = Reflect.apply(named, format, [value]); } catch (error) { value4 = value.match(env0_29); if (value4) { value = value4.slice(1, 4); value17 = 0; r3 = value17; reducibleLoop27: while (true) { value[r3] = Number(value[r3]); value18 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value18 < 3) { r3 = value18; continue reducibleLoop27; } break reducibleLoop27; } value[3] = 1; return value; } value5 = value.match(env0_30); if (value5) { value = value5.slice(1, 5); value15 = 0; r2 = value15; reducibleLoop24: while (true) { value[r2] = Number(value[r2]); value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value16 < 4) { r2 = value16; continue reducibleLoop24; } break reducibleLoop24; } return value; } value6 = value.match(env0_31); if (value6) { value = value6.slice(1, 4); value13 = 0; r7 = value13; reducibleLoop21: while (true) { value[r7] = round(2.55 * value[r7]); value14 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value14 < 3) { r7 = value14; continue reducibleLoop21; } break reducibleLoop21; } value[3] = 1; return value; } value7 = value.match(env0_32); if (value7) { value = value7.slice(1, 5); value11 = 0; r7 = value11; reducibleLoop18: while (true) { value[r7] = round(2.55 * value[r7]); value12 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value12 < 3) { r7 = value12; continue reducibleLoop18; } break reducibleLoop18; } value[3] = Number(value[3]); return value; } value8 = value.match(env0_33); if (value8) { value = value8.slice(1, 4); value[1] *= 0.01; value[2] *= 0.01; value = hsl_8070(value); value[3] = 1; return value; } value = value.match(env0_34); if (value) { value9 = value.slice(1, 4); value9[1] *= 0.01; value9[2] *= 0.01; value10 = hsl_8070(value9); value10[3] = Number(value[4]); return value10; } return undefined; } return value3; } function t_8047Test_8072(a0) { // fn#8072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:5566, owner: t_8047.test, offset: 0x00d35f63, size: 107 bytes, params: 2, frame: 13 let r0 = env0_29.test(a0) || env0_30.test(a0); r0 = !r0 ? env0_31.test(a0) : r0; r0 = !r0 ? env0_32.test(a0) : r0; r0 = !r0 ? env0_33.test(a0) : r0; r0 = !r0 ? env0_34.test(a0) : r0; return r0; } function t_8047Css_8074() { // fn#8074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:5753, owner: t_8047.css, offset: 0x00d35feb, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_2, items2.concat(items3, ['css'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8075(a0) { // fn#8075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:5937, owner: t_8047.test, offset: 0x00d36065, size: 105 bytes, params: 2, frame: 16 var r5; var value3; var css_8071Binding; var test; const items2 = []; let value = arguments.length - 1; if (value > 0) { r5 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r5] = arguments[r5 + 1]; value = typeof r5 === 'bigint' ? r5 : +r5; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value > 0) { r5 = value3; continue reducibleLoop1; } break reducibleLoop1; } } if (!items2.length) { reducibleJoin6: while (true) { if (type(a0) !== 'string') { break reducibleJoin6; } css_8071Binding = css_8071; test = css_8071Binding.test; if (Reflect.apply(test, css_8071Binding, [a0])) { return 'css'; } break reducibleJoin6; } } } function t_8047Gl() { // fn#8076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:6112, owner: t_8047.gl, offset: 0x00d360ce, size: 103 bytes, params: 1, frame: 14 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } value = unpack(items2, 'rgba'); value[0] *= 255; value[1] *= 255; value[2] *= 255; return value; } function t_8047Gl_8077() { // fn#8077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:6243, owner: t_8047.gl, offset: 0x00d36135, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_3, items2.concat(items3, ['gl'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function rgb2hcg$1() { // fn#8079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:6483, owner: t_8047.rgb2hcg$1, offset: 0x00d361f8, size: 251 bytes, params: 1, frame: 24 var r1; var r7; var r5; var value5; var value6; let value = undefined; const items2 = []; const length = arguments.length; const value3 = typeof length === 'bigint' ? length : +length; if (value3) { r1 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value5 = typeof r1 === 'bigint' ? r1 : +r1; value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { r1 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = unpack(items2, 'rgb'); const property = value8[0]; const property2 = value8[1]; const property3 = value8[2]; let Math = global.Math; const value9 = Math.min(property, property2, property3); Math = global.Math; const value10 = Math.max(property, property2, property3); const value11 = value10 - value9; const value12 = 100 * value11; const value13 = value9 / (255 - value11); if (value11 === 0) { r5 = global.Number.NaN; } else { reducibleJoin5: while (true) { if (property !== value10) { r7 = value; break reducibleJoin5; } value = (property2 - property3) / value11; r7 = value; break reducibleJoin5; } reducibleJoin7: while (true) { if (property2 !== value10) { break reducibleJoin7; } value = 2 + (property3 - property) / value11; r7 = value; break reducibleJoin7; } reducibleJoin9: while (true) { if (property3 !== value10) { break reducibleJoin9; } value = 4 + (property - property2) / value11; r7 = value; break reducibleJoin9; } value = r7 * 60; reducibleJoin12: while (true) { if (value < 0) { value += 360; r5 = value; break reducibleJoin12; } r5 = value; break reducibleJoin12; } } return [r5, value12 / 255, value13 * 100]; } function t_8047Hcg() { // fn#8080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:6817, owner: t_8047.hcg, offset: 0x00d362f3, size: 460 bytes, params: 1, frame: 25 var r1; var r12; var r11; var r2; var r4; var r5; var value5; var value6; var value13; var value14; var floorBinding; var value15; var value16; var value17; var value18; var value19; var value20; var value21; var property3; var property4; var property5; var property6; var property7; var property8; var property9; var property10; var property11; var property12; var property13; var property14; const value = undefined; let items2 = []; const length = arguments.length; const value3 = typeof length === 'bigint' ? length : +length; if (value3) { r1 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value5 = typeof r1 === 'bigint' ? r1 : +r1; value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { r1 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = unpack(items2, 'hcg'); const value9 = 0; let property = value8[value9]; const value10 = 1; const property2 = value8[value10]; const value11 = value8[2] * 255; const value12 = 255 * property2; reducibleJoin20: while (true) { if (value9 === property2) { r2 = value11; r4 = value11; r5 = value11; break reducibleJoin20; } r12 = property !== 360 ? property : value9; reducibleJoin6: while (true) { if (r12 > 360) { value13 = r12 - 360; r11 = value13; break reducibleJoin6; } r11 = r12; break reducibleJoin6; } reducibleJoin8: while (true) { if (r11 < value9) { value14 = r11 + 360; r12 = value14; break reducibleJoin8; } r12 = r11; break reducibleJoin8; } floorBinding = floor; value15 = r12 / 60; value16 = floorBinding(value15); value17 = value15 - value16; value18 = value11 * (value10 - property2); value19 = value18 + value12 * (value10 - value17); value20 = value18 + value12 * value17; value21 = value18 + value12; if (value9 === value16) { items2 = [value21, value20, value18]; property = items2[value9]; property13 = items2[value10]; property14 = items2[2]; r2 = property14; r4 = property13; r5 = property; break reducibleJoin20; } if (value10 === value16) { items2 = [value19, value21, value18]; property = items2[value9]; property11 = items2[value10]; property12 = items2[2]; r2 = property12; r4 = property11; r5 = property; break reducibleJoin20; } if (value16 === 2) { items2 = [value18, value21, value20]; property = items2[value9]; property9 = items2[value10]; property10 = items2[2]; r2 = property10; r4 = property9; r5 = property; break reducibleJoin20; } if (value16 === 3) { items2 = [value18, value19, value21]; property = items2[value9]; property7 = items2[value10]; property8 = items2[2]; r2 = property8; r4 = property7; r5 = property; break reducibleJoin20; } if (value16 === 4) { items2 = [value20, value18, value21]; property = items2[value9]; property5 = items2[value10]; property6 = items2[2]; r2 = property6; r4 = property5; r5 = property; break reducibleJoin20; } if (value16 !== 5) { r2 = value; r4 = value; r5 = value; break reducibleJoin20; } items2 = [value21, value18, value19]; property = items2[value9]; property3 = items2[value10]; property4 = items2[2]; r2 = property4; r4 = property3; r5 = property; break reducibleJoin20; } reducibleJoin22: while (true) { if (value8.length > 3) { property = value8[3]; r1 = property; break reducibleJoin22; } r1 = value10; break reducibleJoin22; } return [r5, r4, r2, r1]; } function t_8047Hcg_8082() { // fn#8082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:7494, owner: t_8047.hcg, offset: 0x00d364d8, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_4, items2.concat(items3, ['hcg'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8083() { // fn#8083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:7678, owner: t_8047.test, offset: 0x00d36552, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'hcg'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'hcg'; } break reducibleJoin4; } } } function rgb2hex$2() { // fn#8084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:7854, owner: t_8047.rgb2hex$2, offset: 0x00d365a9, size: 339 bytes, params: 1, frame: 20 var r1; var r4; var r2; var value3; var value8; var value9; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const unpackBinding = unpack; const value4 = 'rgba'; const value5 = unpackBinding(items2, value4); const property = value5[0]; const value6 = 1; const property2 = value5[value6]; const property3 = value5[2]; const property4 = value5[3]; const value7 = last(items2); reducibleJoin4: while (true) { if (value7) { r4 = value7; break reducibleJoin4; } value8 = 'auto'; r4 = value8; break reducibleJoin4; } const r8 = property4 !== undefined ? property4 : value6; reducibleJoin8: while (true) { if (r4 !== 'auto') { break reducibleJoin8; } value9 = 'rgb'; r2 = r8 < value6 ? value4 : value9; r4 = r2; break reducibleJoin8; } const value17 = '000000' + (round(property) << 16 | round(property2) << 8 | round(property3)).toString(16); const value18 = value17.substr(value17.length - 6); value = round(255 * r8); value = value.toString(16); value = '0' + value; value = value.substr(value.length - 2); const value19 = r4.toLowerCase(); if (value4 === value19) { return '#' + value18 + value; } if (value19 === 'argb') { return '#' + value + value18; } return '#' + value18; } function t_8047Hex(a0) { // fn#8085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:8371, owner: t_8047.hex, offset: 0x00d366fc, size: 535 bytes, params: 2, frame: 16 var r4; var r2; var r3; var length; var Math; let value = a0; if (value.match(env0_52)) { length = value.length; if (length !== 4 && value.length !== 7) { r2 = value; } else { value = value.substr(1); r2 = value; } length = r2.length; if (length !== 3) { r3 = r2; } else { value = r2.split(''); value = value[0] + value[0] + value[1] + value[1] + value[2] + value[2]; r3 = value; } value = global.parseInt(r3, 16); return [value >> 16, value >> 8 & 255, 255 & value, 1]; } if (value.match(env0_53)) { length = value.length; if (length !== 5 && value.length !== 9) { r4 = value; } else { value = value.substr(1); r4 = value; } length = r4.length; if (length !== 4) { r2 = r4; } else { value = r4.split(''); value = value[0] + value[0] + value[1] + value[1] + value[2] + value[2] + value[3] + value[3]; r2 = value; } value = global.parseInt(r2, 16); Math = global.Math; return [value >> 24 & 255, value >> 16 & 255, value >> 8 & 255, Math.round((255 & value) / 255 * 100) / 100]; } const Error = global.Error; value = 'unknown hex color: ' + value; const value3 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(value); throw error instanceof Object ? error : value3; } function t_8047Hex_8087() { // fn#8087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:8922, owner: t_8047.hex, offset: 0x00d36930, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_5, items2.concat(items3, ['hex'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8088(a0) { // fn#8088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:9106, owner: t_8047.test, offset: 0x00d369aa, size: 116 bytes, params: 2, frame: 16 var r5; var value3; var indexOf; let items2 = []; let value = arguments.length - 1; if (value > 0) { r5 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r5] = arguments[r5 + 1]; value = typeof r5 === 'bigint' ? r5 : +r5; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value > 0) { r5 = value3; continue reducibleLoop1; } break reducibleLoop1; } } let length = items2.length; if (!length) { reducibleJoin6: while (true) { if (type(a0) !== 'string') { break reducibleJoin6; } items2 = [3, 4, 5, 6, 7, 8, 9]; indexOf = items2.indexOf; length = a0.length; if (Reflect.apply(indexOf, items2, [length]) >= 0) { return 'hex'; } break reducibleJoin6; } } } function rgb2hsi$1() { // fn#8089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:9337, owner: t_8047.rgb2hsi$1, offset: 0x00d36a1e, size: 248 bytes, params: 1, frame: 22 var r1; var r2; var r3; var value3; var value11; var value12; var value13; var value17; var value18; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'rgb'); const value5 = 0; const property = value4[value5]; const property2 = value4[1]; const property3 = value4[2]; const minBinding = min; const value6 = property / 255; const value7 = property2 / 255; const value8 = property3 / 255; const value9 = minBinding(value6, value7, value8); const value10 = (value6 + value7 + value8) / 3; reducibleJoin4: while (true) { if (value10 > value5) { value11 = 1 - value9 / value10; r2 = value11; break reducibleJoin4; } r2 = value5; break reducibleJoin4; } if (value5 === r2) { r3 = global.NaN; } else { value12 = value6 - value7; value13 = value6 - value8; value17 = acos((value12 + value13) / 2 / sqrt(value12 * value12 + value13 * (value7 - value8))); reducibleJoin7: while (true) { if (value8 > value7) { value18 = TWOPI - value17; r3 = value18; break reducibleJoin7; } r3 = value17; break reducibleJoin7; } r3 = r3 / TWOPI; } return [360 * r3, r2, value10]; } function t_8047Hsi() { // fn#8090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:9678, owner: t_8047.hsi, offset: 0x00d36b16, size: 539 bytes, params: 1, frame: 26 var r1; var r4; var r9; var value3; var value7; var value8; var value10; var cosBinding; var value11; var value13; var value15; var value16; var value18; var value19; var value20; var value22; var value23; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'hsi'); const value5 = 0; let property = value4[value5]; const value6 = 1; const property2 = value4[value6]; const property3 = value4[2]; let r0 = global.isNaN(property) ? value5 : property; const r11 = global.isNaN(property2) ? value5 : property2; reducibleJoin6: while (true) { if (r0 > 360) { value7 = r0 - 360; r4 = value7; break reducibleJoin6; } r4 = r0; break reducibleJoin6; } reducibleJoin8: while (true) { if (r4 < value5) { value8 = r4 + 360; r0 = value8; break reducibleJoin8; } r0 = r4; break reducibleJoin8; } const value9 = r0 / 360; if (value9 < 0.3333333333333333) { value20 = (value6 - r11) / 3; value22 = (value6 + r11 * cos(TWOPI * value9) / cos(PITHIRD - TWOPI * value9)) / 3; value23 = value6 - (value20 + value22); r0 = value22; r4 = value20; r9 = value23; } else if (value9 < 0.6666666666666666) { value15 = (value6 - r11) / 3; cosBinding = cos; value16 = value9 - 0.3333333333333333; value18 = (value6 + r11 * cosBinding(TWOPI * value16) / cos(PITHIRD - TWOPI * value16)) / 3; value19 = value6 - (value15 + value18); r0 = value15; r4 = value19; r9 = value18; } else { value10 = (value6 - r11) / 3; cosBinding = cos; value11 = value9 - 0.6666666666666666; value13 = (value6 + r11 * cosBinding(TWOPI * value11) / cos(PITHIRD - TWOPI * value11)) / 3; r0 = value6 - (value10 + value13); r4 = value13; r9 = value10; } items2 = [255 * limit(property3 * r0 * 3)]; items2[1] = 255 * limit(property3 * r9 * 3); items2[2] = 255 * limit(property3 * r4 * 3); reducibleJoin15: while (true) { if (value4.length > 3) { property = value4[3]; r1 = property; break reducibleJoin15; } r1 = value6; break reducibleJoin15; } items2[3] = r1; return items2; } function t_8047Hsi_8092() { // fn#8092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:10283, owner: t_8047.hsi, offset: 0x00d36d4a, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_6, items2.concat(items3, ['hsi'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8093() { // fn#8093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:10467, owner: t_8047.test, offset: 0x00d36dc4, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'hsi'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'hsi'; } break reducibleJoin4; } } } function t_8047Hsl_8095() { // fn#8095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:10703, owner: t_8047.hsl, offset: 0x00d36e34, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_7, items2.concat(items3, ['hsl'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8096() { // fn#8096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:10886, owner: t_8047.test, offset: 0x00d36eae, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'hsl'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'hsl'; } break reducibleJoin4; } } } function rgb2hsl() { // fn#8097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:11062, owner: t_8047.rgb2hsl, offset: 0x00d36f05, size: 230 bytes, params: 1, frame: 21 var r1; var r3; var r2; var value5; var value6; var value14; var NaN; let value = undefined; const items2 = []; const length = arguments.length; const value3 = typeof length === 'bigint' ? length : +length; if (value3) { r1 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value5 = typeof r1 === 'bigint' ? r1 : +r1; value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { r1 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = unpack(items2, 'rgb'); const value9 = 0; const property = value8[value9]; const property2 = value8[1]; const property3 = value8[2]; const value10 = min(property, property2, property3); const value11 = max(property, property2, property3); const value12 = value11 - value10; const value13 = value11 / 255; if (value9 === value11) { NaN = global.Number.NaN; r2 = value9; r3 = NaN; } else { value14 = value12 / value11; reducibleJoin5: while (true) { if (property !== value11) { r3 = value; break reducibleJoin5; } value = (property2 - property3) / value12; r3 = value; break reducibleJoin5; } reducibleJoin7: while (true) { if (property2 !== value11) { break reducibleJoin7; } value = 2 + (property3 - property) / value12; r3 = value; break reducibleJoin7; } reducibleJoin9: while (true) { if (property3 !== value11) { break reducibleJoin9; } value = 4 + (property - property2) / value12; r3 = value; break reducibleJoin9; } value = r3 * 60; reducibleJoin12: while (true) { if (value < value9) { value += 360; r2 = value14; r3 = value; break reducibleJoin12; } r2 = value14; r3 = value; break reducibleJoin12; } } return [r3, r2, value13]; } function t_8047Hsv() { // fn#8098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:11378, owner: t_8047.hsv, offset: 0x00d36feb, size: 460 bytes, params: 1, frame: 24 var r1; var r11; var r7; var r2; var r4; var r5; var value5; var value6; var value12; var value13; var floorBinding; var value14; var value15; var value16; var value17; var value18; var value19; var property3; var property4; var property5; var property6; var property7; var property8; var property9; var property10; var property11; var property12; var property13; var property14; const value = undefined; let items2 = []; const length = arguments.length; const value3 = typeof length === 'bigint' ? length : +length; if (value3) { r1 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value5 = typeof r1 === 'bigint' ? r1 : +r1; value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { r1 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = unpack(items2, 'hsv'); const value9 = 0; let property = value8[value9]; const value10 = 1; const property2 = value8[value10]; const value11 = value8[2] * 255; reducibleJoin20: while (true) { if (value9 === property2) { r2 = value11; r4 = value11; r5 = value11; break reducibleJoin20; } r11 = property !== 360 ? property : value9; reducibleJoin6: while (true) { if (r11 > 360) { value12 = r11 - 360; r7 = value12; break reducibleJoin6; } r7 = r11; break reducibleJoin6; } reducibleJoin8: while (true) { if (r7 < value9) { value13 = r7 + 360; r11 = value13; break reducibleJoin8; } r11 = r7; break reducibleJoin8; } floorBinding = floor; value14 = r11 / 60; value15 = floorBinding(value14); value16 = value14 - value15; value17 = value11 * (value10 - property2); value18 = value11 * (value10 - property2 * value16); value19 = value11 * (value10 - property2 * (value10 - value16)); if (value9 === value15) { items2 = [value11, value19, value17]; property = items2[value9]; property13 = items2[value10]; property14 = items2[2]; r2 = property14; r4 = property13; r5 = property; break reducibleJoin20; } if (value10 === value15) { items2 = [value18, value11, value17]; property = items2[value9]; property11 = items2[value10]; property12 = items2[2]; r2 = property12; r4 = property11; r5 = property; break reducibleJoin20; } if (value15 === 2) { items2 = [value17, value11, value19]; property = items2[value9]; property9 = items2[value10]; property10 = items2[2]; r2 = property10; r4 = property9; r5 = property; break reducibleJoin20; } if (value15 === 3) { items2 = [value17, value18, value11]; property = items2[value9]; property7 = items2[value10]; property8 = items2[2]; r2 = property8; r4 = property7; r5 = property; break reducibleJoin20; } if (value15 === 4) { items2 = [value19, value17, value11]; property = items2[value9]; property5 = items2[value10]; property6 = items2[2]; r2 = property6; r4 = property5; r5 = property; break reducibleJoin20; } if (value15 !== 5) { r2 = value; r4 = value; r5 = value; break reducibleJoin20; } items2 = [value11, value17, value18]; property = items2[value9]; property3 = items2[value10]; property4 = items2[2]; r2 = property4; r4 = property3; r5 = property; break reducibleJoin20; } reducibleJoin22: while (true) { if (value8.length > 3) { property = value8[3]; r1 = property; break reducibleJoin22; } r1 = value10; break reducibleJoin22; } return [r5, r4, r2, r1]; } function t_8047Hsv_8100() { // fn#8100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12045, owner: t_8047.hsv, offset: 0x00d371d0, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_8, items2.concat(items3, ['hsv'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8101() { // fn#8101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12229, owner: t_8047.test, offset: 0x00d3724a, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'hsv'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'hsv'; } break reducibleJoin4; } } } function rgb_xyz(a0) { // fn#8102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12491, owner: t_8047.rgb_xyz, offset: 0x00d372a1, size: 95 bytes, params: 2, frame: 14 var r0; let value = a0 / 255; if (value <= 0.04045) { value /= 12.92; r0 = value; } else { value = pow((value + 0.055) / 1.055, 2.4); r0 = value; } return r0; } function xyz_lab(a0) { // fn#8103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12569, owner: t_8047.xyz_lab, offset: 0x00d37300, size: 74 bytes, params: 2, frame: 14 return a0 > env0_84.t3 ? pow(a0, 0.3333333333333333) : a0 / env0_84.t2 + env0_84.t0; } function rgb2xyz(a0, a1, a2) { // fn#8104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12646, owner: t_8047.rgb2xyz, offset: 0x00d3734a, size: 278 bytes, params: 4, frame: 19 const value2 = rgb_xyz(a0); const value3 = rgb_xyz(a1); const value4 = rgb_xyz(a2); let xyz_labBinding = xyz_lab; const value5 = 0.4124564 * value2; const value6 = 0.3575761 * value3; const value7 = 0.1804375 * value4; const Xn = env0_84.Xn; const items2 = [xyz_labBinding((value5 + value6 + value7) / Xn)]; xyz_labBinding = xyz_lab; const value9 = 0.2126729 * value2; const value10 = 0.7151522 * value3; const value11 = 0.072175 * value4; const Yn = env0_84.Yn; items2[1] = xyz_labBinding((value9 + value10 + value11) / Yn); xyz_labBinding = xyz_lab; const value12 = 0.0193339 * value2; const value13 = 0.119192 * value3; const value14 = 0.9503041 * value4; const Zn = env0_84.Zn; items2[2] = xyz_labBinding((value12 + value13 + value14) / Zn); return items2; } function rgb2lab$2() { // fn#8105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:12840, owner: t_8047.rgb2lab$2, offset: 0x00d37460, size: 161 bytes, params: 1, frame: 18 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'rgb'); const value5 = 0; let property = value4[value5]; value = rgb2xyz(property, value4[1], value4[2]); property = value[value5]; const property4 = value[1]; const value6 = 116 * property4 - 16; return [value6 < value5 ? value5 : value6, 500 * (property - property4), 200 * (property4 - value[2])]; } function xyz_rgb(a0) { // fn#8106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:13065, owner: t_8047.xyz_rgb, offset: 0x00d37501, size: 95 bytes, params: 2, frame: 13 var r1; var value; if (a0 <= 0.00304) { r1 = 12.92 * a0; } else { value = pow(a0, 0.4166666666666667); value = 1.055 * value - 0.055; r1 = value; } return 255 * r1; } function lab_xyz(a0) { // fn#8107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:13155, owner: t_8047.lab_xyz, offset: 0x00d37560, size: 60 bytes, params: 2, frame: 3 return a0 > env0_90.t1 ? a0 * a0 * a0 : env0_90.t2 * (a0 - env0_90.t0); } function t_8047Lab() { // fn#8108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:13216, owner: t_8047.lab, offset: 0x00d3759c, size: 436 bytes, params: 1, frame: 21 var r1; var r7; var r8; var value3; var value7; var value8; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lab'); let property = value4[0]; const value5 = 1; const property2 = value4[value5]; const property3 = value4[2]; const value6 = (property + 16) / 116; reducibleJoin4: while (true) { if (global.isNaN(property2)) { r7 = value6; break reducibleJoin4; } value7 = value6 + property2 / 500; r7 = value7; break reducibleJoin4; } reducibleJoin6: while (true) { if (global.isNaN(property3)) { r8 = value6; break reducibleJoin6; } value8 = value6 - property3 / 200; r8 = value8; break reducibleJoin6; } const Yn = env0_90.Yn; const value9 = Yn * lab_xyz(value6); const Xn = env0_90.Xn; const value10 = Xn * lab_xyz(r7); const Zn = env0_90.Zn; const value11 = Zn * lab_xyz(r8); items2 = [xyz_rgb(3.2404542 * value10 - 1.5371385 * value9 - 0.4985314 * value11)]; items2[1] = xyz_rgb(-0.969266 * value10 + 1.8760108 * value9 + 0.041556 * value11); items2[2] = xyz_rgb(0.0556434 * value10 - 0.2040259 * value9 + 1.0572252 * value11); reducibleJoin8: while (true) { if (value4.length > 3) { property = value4[3]; r1 = property; break reducibleJoin8; } r1 = value5; break reducibleJoin8; } items2[3] = r1; return items2; } function t_8047Lab_8110() { // fn#8110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:13676, owner: t_8047.lab, offset: 0x00d37769, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_9, items2.concat(items3, ['lab'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8111() { // fn#8111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:13860, owner: t_8047.test, offset: 0x00d377e3, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lab'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'lab'; } break reducibleJoin4; } } } function lab2lch$2() { // fn#8112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:14066, owner: t_8047.lab2lch$2, offset: 0x00d3783a, size: 182 bytes, params: 1, frame: 18 var r1; var value3; var Number; var NaN; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lab'); const property = value4[0]; const property2 = value4[1]; const property3 = value4[2]; const value6 = sqrt(property2 * property2 + property3 * property3); reducibleJoin4: while (true) { if (round(10000 * value6) !== 0) { r1 = (atan2(property3, property2) * RAD2DEG + 360) % 360; break reducibleJoin4; } Number = global.Number; NaN = Number.NaN; r1 = NaN; break reducibleJoin4; } return [property, value6, r1]; } function rgb2lch$1() { // fn#8113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:14291, owner: t_8047.rgb2lch$1, offset: 0x00d378f0, size: 110 bytes, params: 1, frame: 19 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const value4 = unpack(items2, 'rgb'); const value5 = rgb2lab$2_2(value4[0], value4[1], value4[2]); return lab2lch$2(value5[0], value5[1], value5[2]); } function lch2lab$2() { // fn#8114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:14509, owner: t_8047.lch2lab$2, offset: 0x00d3795e, size: 144 bytes, params: 1, frame: 16 var r1; var value3; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lch'); const value5 = 0; const property = value4[value5]; const property2 = value4[1]; const property3 = value4[2]; const r6 = global.isNaN(property3) ? value5 : property3; items2 = [property]; const cosBinding = cos; const value6 = r6 * DEG2RAD; items2[1] = cosBinding(value6) * property2; items2[2] = sin(value6) * property2; return items2; } function t_8047Lch() { // fn#8115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:14699, owner: t_8047.lch, offset: 0x00d379ee, size: 161 bytes, params: 1, frame: 20 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lch'); let property = value4[0]; const value5 = 1; const value6 = lch2lab$2(property, value4[value5], value4[2]); value = lab_8108(value6[0], value6[value5], value6[2]); reducibleJoin4: while (true) { if (value4.length > 3) { property = value4[3]; r1 = property; break reducibleJoin4; } r1 = value5; break reducibleJoin4; } return [value[0], value[value5], value[2], r1]; } function t_8047Hcl() { // fn#8116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:14922, owner: t_8047.hcl, offset: 0x00d37a8f, size: 81 bytes, params: 1, frame: 14 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } return lch_8115.apply(undefined, unpack(items2, 'hcl').reverse()); } function t_8047Hcl_8118() { // fn#8118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:15161, owner: t_8047.hcl, offset: 0x00d37af9, size: 35 bytes, params: 1, frame: 11 return rgb2lch$1(this._rgb).reverse(); } function t_8047Lch_8119() { // fn#8119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:15211, owner: t_8047.lch, offset: 0x00d37b1c, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_10, items2.concat(items3, ['lch'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Hcl_8120() { // fn#8120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:15356, owner: t_8047.hcl, offset: 0x00d37b96, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_10, items2.concat(items3, ['hcl'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function _fun8121(a0) { // fn#8121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:15551, offset: 0x00d37c10, size: 52 bytes, params: 2, frame: 13 const env0_0 = a0; const autodetect = env0_119.autodetect; return autodetect.push({p: 2, test: test_8122}); } function t_8047Name() { // fn#8123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:18876, owner: t_8047.name, offset: 0x00d37ca2, size: 110 bytes, params: 1, frame: 16 var r4; var property; var value5; const value2 = rgb2hex$2_2(this._rgb, 'rgb'); const Object = global.Object; const value3 = Object.keys(env0_122); let length = value3.length; const value4 = 0; if (value4 < length) { r4 = value4; loopExit1: while (true) { property = value3[r4]; if (env0_122[property] === value2) { return property.toLowerCase(); } value5 = r4 + 1; length = value3.length; if (value5 < length) { r4 = value5; continue; } break loopExit1; } } return value2; } function named(a0) { // fn#8124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19029, owner: t_8047.named, offset: 0x00d37d10, size: 88 bytes, params: 2, frame: 13 let value = a0.toLowerCase(); if (env0_122[value]) { return hex_8085(env0_122[value]); } const Error = global.Error; value = 'unknown color name: ' + value; const value3 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(value); throw error instanceof Object ? error : value3; } function t_8047Test_8125(a0) { // fn#8125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19157, owner: t_8047.test, offset: 0x00d37d68, size: 109 bytes, params: 2, frame: 16 var r5; var value3; var binding; var toLowerCase; const items2 = []; let value = arguments.length - 1; if (value > 0) { r5 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r5] = arguments[r5 + 1]; value = typeof r5 === 'bigint' ? r5 : +r5; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value > 0) { r5 = value3; continue reducibleLoop1; } break reducibleLoop1; } } if (!items2.length) { reducibleJoin6: while (true) { if (type(a0) !== 'string') { break reducibleJoin6; } binding = env0_122; toLowerCase = a0.toLowerCase; if (binding[Reflect.apply(toLowerCase, a0, [])]) { return 'named'; } break reducibleJoin6; } } } function rgb2num$1() { // fn#8126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19324, owner: t_8047.rgb2num$1, offset: 0x00d37dd5, size: 98 bytes, params: 1, frame: 14 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } value = unpack(items2, 'rgb'); return (value[0] << 16) + (value[1] << 8) + value[2]; } function t_8047Num(a0) { // fn#8127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19464, owner: t_8047.num, offset: 0x00d37e37, size: 131 bytes, params: 2, frame: 12 var Error; let value = type(a0); if (value != 'number') { Error = global.Error; value = 'unknown num color: ' + a0; throw new Error(); } if (a0 >= 0) { if (a0 <= 16777215) { return [a0 >> 16, a0 >> 8 & 255, 255 & a0, 1]; } Error = global.Error; value = 'unknown num color: ' + a0; throw new Error(); } Error = global.Error; value = 'unknown num color: ' + a0; const value2 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(); throw error instanceof Object ? error : value2; } function t_8047Num_8129() { // fn#8129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19683, owner: t_8047.num, offset: 0x00d37ed3, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_11, items2.concat(items3, ['num'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8130() { // fn#8130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:19867, owner: t_8047.test, offset: 0x00d37f4d, size: 105 bytes, params: 1, frame: 13 var r3; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r3 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r3] = arguments[r3]; value = typeof r3 === 'bigint' ? r3 : +r3; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r3 = value3; continue reducibleLoop1; } break reducibleLoop1; } } if (items2.length === 1) { reducibleJoin6: while (true) { if (type(items2[0]) !== 'number') { break reducibleJoin6; } if (items2[0] >= 0) { if (items2[0] <= 16777215) { return 'num'; } break reducibleJoin6; } break reducibleJoin6; } } } function t_8047Rgb(a0) { // fn#8131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20087, owner: t_8047.rgb, offset: 0x00d37fb6, size: 85 bytes, params: 2, frame: 14 var r0; let value = a0; if ((!(value !== undefined) || value) === false) { r0 = this._rgb.slice(0, 3); } else { value = this._rgb.slice(0, 3); value = value.map(round); r0 = value; } return r0; } function rgba(a0) { // fn#8132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20201, owner: t_8047.rgba, offset: 0x00d3800b, size: 63 bytes, params: 2, frame: 14 const env0_0 = a0; if (a0 !== undefined) { } return this._rgb.slice(0, 4).map(_fun8133); } function t_8047Rgb_8134() { // fn#8134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20318, owner: t_8047.rgb, offset: 0x00d3807d, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_12, items2.concat(items3, ['rgb'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Rgb_8135() { // fn#8135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20470, owner: t_8047.rgb, offset: 0x00d380f7, size: 74 bytes, params: 1, frame: 14 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } value = unpack(items2, 'rgba'); reducibleJoin4: while (true) { if (value[3] !== undefined) { break reducibleJoin4; } value[3] = 1; break reducibleJoin4; } return value; } function t_8047Test_8136() { // fn#8136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20618, owner: t_8047.test, offset: 0x00d38141, size: 145 bytes, params: 1, frame: 15 var r2; var value3; var length; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } value = environment; const value4 = unpack(items2, 'rgba'); if (type(value4) === 'array') { length = value4.length; reducibleJoin8: while (true) { reducibleJoin9: while (true) { if (length === 3) { break reducibleJoin9; } length = value4.length; if (length !== 4) { break reducibleJoin8; } value = type(value4[3]); if (value != 'number') { break reducibleJoin8; } if (value4[3] >= 0) { if (value4[3] <= 1) { break reducibleJoin9; } break reducibleJoin8; } break reducibleJoin8; } return 'rgb'; } } } function t_8047Kelvin(a0) { // fn#8137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20825, owner: t_8047.kelvin, offset: 0x00d381d2, size: 343 bytes, params: 2, frame: 18 var r4; var r0; var r1; var r2; var r3; var value2; var value6; var value10; let value = a0 / 100; if (value < 66) { value10 = 0; r4 = value < 6 ? value10 : -155.25485562709179 - 0.44596950469579133 * (value - 2) + 104.49216199393888 * log(value - 2); if (value < 20) { r0 = value10; } else { value -= 10; value = 0.8274096064007395 * value - 254.76935184120902 + 115.67994401066147 * log(value); r0 = value; } value = 255; r1 = r0; r2 = r4; r3 = value; } else { value2 = value - 55; value6 = 351.97690566805693 + 0.114206453784165 * value2 - 40.25366309332127 * log(value2); value -= 50; value = 325.4494125711974 + 0.07943456536662342 * value - 28.0852963507957 * log(value); r1 = 255; r2 = value; r3 = value6; } return [r3, r2, r1, 1]; } function rgb2temperature$1() { // fn#8138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:21249, owner: t_8047.rgb2temperature$1, offset: 0x00d38329, size: 167 bytes, params: 1, frame: 23 var r1; var r12; var value3; var temperature_8137Binding; var value7; var value8; var property3; var value9; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const value4 = unpack(items2, 'rgb'); const property = value4[0]; const property2 = value4[2]; const value5 = 1000; let r6 = 40000; let r7 = value5; while (true) { temperature_8137Binding = temperature_8137; value7 = 0.5 * (r6 + r7); value8 = temperature_8137Binding(value7); property3 = value8[2]; value9 = property3 / value8[0]; if (value9 >= property2 / property) { r6 = value7; r12 = r7; } else { r12 = value7; } if (r6 - r12 > 0.4) { r7 = r12; continue; } break; } return round(value7); } function t_8047Kelvin_8140() { // fn#8140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:21600, owner: t_8047.kelvin, offset: 0x00d383e9, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_13, items2.concat(items3, ['temp'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function rgb2oklab$2() { // fn#8141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:21853, owner: t_8047.rgb2oklab$2, offset: 0x00d38463, size: 481 bytes, params: 1, frame: 20 var r1; var value3; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const value4 = unpack(items2, 'rgb'); let property = value4[0]; const property2 = value4[1]; const property3 = value4[2]; const rgb2lrgbBinding = rgb2lrgb; items2 = [rgb2lrgbBinding(property / 255), rgb2lrgbBinding(property2 / 255), rgb2lrgbBinding(property3 / 255)]; property = items2[0]; const property4 = items2[1]; const property5 = items2[2]; const value9 = cbrt(0.4122214708 * property + 0.5363325363 * property4 + 0.0514459929 * property5); const value13 = cbrt(0.2119034982 * property + 0.6806995451 * property4 + 0.1073969566 * property5); cbrtBinding = cbrt; value = 0.0883024619 * property; value = cbrtBinding(value + 0.2817188376 * property4 + 0.6299787005 * property5); items2 = [0.2104542553 * value9 + 0.793617785 * value13 - 0.0040720468 * value]; items2[1] = 1.9779984951 * value9 - 2.428592205 * value13 + 0.4505937099 * value; const value22 = 0.0259040371 * value9; const value23 = 0.7827717662 * value13; value = 0.808675766 * value; items2[2] = value22 + value23 - value; return items2; } function t_8047Oklab() { // fn#8142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:22462, owner: t_8047.oklab, offset: 0x00d38644, size: 437 bytes, params: 1, frame: 22 var r1; var value3; let items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lab'); let property = value4[0]; const value5 = 1; const property2 = value4[value5]; const property3 = value4[2]; const value7 = pow(property + 0.3963377774 * property2 + 0.2158037573 * property3, 3); const value9 = pow(property - 0.1055613458 * property2 - 0.0638541728 * property3, 3); const value11 = pow(property - 0.0894841775 * property2 - 1.291485548 * property3, 3); const lrgb2rgbBinding = lrgb2rgb; value = 4.0767416621 * value7; value = lrgb2rgbBinding(value - 3.3077115913 * value9 + 0.2309699292 * value11); value = 255 * value; items2 = [value]; items2[1] = 255 * lrgb2rgbBinding(-1.2684380046 * value7 + 2.6097574011 * value9 - 0.3413193965 * value11); items2[2] = 255 * lrgb2rgbBinding(-0.0041960863 * value7 - 0.7034186147 * value9 + 1.707614701 * value11); reducibleJoin4: while (true) { if (value4.length > 3) { property = value4[3]; r1 = property; break reducibleJoin4; } r1 = value5; break reducibleJoin4; } items2[3] = r1; return items2; } function t_8047Oklab_8144() { // fn#8144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:23115, owner: t_8047.oklab, offset: 0x00d38812, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_14, items2.concat(items3, ['oklab'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8145() { // fn#8145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:23303, owner: t_8047.test, offset: 0x00d3888c, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'oklab'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'oklab'; } break reducibleJoin4; } } } function rgb2oklch$1() { // fn#8146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:23471, owner: t_8047.rgb2oklch$1, offset: 0x00d388e3, size: 110 bytes, params: 1, frame: 19 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const value4 = unpack(items2, 'rgb'); const value5 = rgb2oklab$2_2(value4[0], value4[1], value4[2]); return lab2lch$2_2(value5[0], value5[1], value5[2]); } function t_8047Oklch() { // fn#8147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:23666, owner: t_8047.oklch, offset: 0x00d38951, size: 161 bytes, params: 1, frame: 20 var r1; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r1 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r1 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'lch'); let property = value4[0]; const value5 = 1; const value6 = lch2lab$2_2(property, value4[value5], value4[2]); value = oklab_8142(value6[0], value6[value5], value6[2]); reducibleJoin4: while (true) { if (value4.length > 3) { property = value4[3]; r1 = property; break reducibleJoin4; } r1 = value5; break reducibleJoin4; } return [value[0], value[value5], value[2], r1]; } function t_8047Oklch_8149() { // fn#8149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:23972, owner: t_8047.oklch, offset: 0x00d38a0b, size: 122 bytes, params: 1, frame: 16 var r1; var value3; const items3 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r1 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r1 = value3) { items3[r1] = arguments[r1]; value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } const Function = global.Function; const bind = Function.prototype.bind; const items2 = [null]; value = bind.apply(Color_8057_15, items2.concat(items3, ['oklch'])); const value4 = Object.create(value.prototype, {constructor: {value: value}}); value = new value(); return value instanceof Object ? value : value4; } function t_8047Test_8150() { // fn#8150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:24160, owner: t_8047.test, offset: 0x00d38a85, size: 87 bytes, params: 1, frame: 14 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } const value4 = unpack(items2, 'oklch'); if (type(value4) === 'array') { reducibleJoin4: while (true) { if (value4.length === 3) { return 'oklch'; } break reducibleJoin4; } } } function t_8047Alpha(a0, a1) { // fn#8151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:24335, owner: t_8047.alpha, offset: 0x00d38adc, size: 171 bytes, params: 3, frame: 16 var r1; var r0; var _rgb; var items2; const value = a1; const value2 = this; if (a0 === undefined) { r0 = value2._rgb[3]; } else if (type(a0) === 'number') { if (value !== undefined ? value : false) { value2._rgb[3] = a0; r1 = value2; } else { _rgb = value2._rgb; items2 = [_rgb[0]]; _rgb = value2._rgb; items2[1] = _rgb[1]; _rgb = value2._rgb; items2[2] = _rgb[2]; items2[3] = a0; r1 = new Color_8057_16(items2, 'rgb'); } r0 = r1; } else { r0 = value2._rgb[3]; } return r0; } function t_8047Darken(a0) { // fn#8153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:24596, owner: t_8047.darken, offset: 0x00d38b9d, size: 113 bytes, params: 2, frame: 16 let value = a0; const r6 = value !== undefined ? value : 1; value = this.lab(); const property = value[0]; const Kn = env0_164.Kn; value[0] = property - Kn * r6; const color_8057_17 = new Color_8057_17(value, 'lab'); return color_8057_17.alpha(this.alpha(), true); } function t_8047Get(a0) { // fn#8155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:24880, owner: t_8047.get, offset: 0x00d38c2d, size: 159 bytes, params: 2, frame: 17 var value3; var value4; var value6; var Error; let value = a0.split('.'); const value2 = 0; const property = value[value2]; const property2 = value[1]; value = this[property](); if (property2) { value3 = property.indexOf(property2); value4 = 2; value6 = value3 - (property.substr(value2, value4) !== 'ok' ? value2 : value4); if (value6 > -1) { return value[value6]; } Error = global.Error; value = 'unknown channel ' + property2 + ' in mode ' + property; throw new Error(value); } return value; } function luminance(a0) { // fn#8156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:25125, owner: t_8047.luminance, offset: 0x00d38ccc, size: 398 bytes, params: 2, frame: 20 var r3; var value; var value3; var closure; var value4; var items2; var color_8057_18; var value7; var value10; var concat; var property; var value11; const env0_0 = a0; if (a0 !== undefined) { if (type(a0) === 'number') { if (a0 === 0) { property = this._rgb[3]; items2 = [0, 0, 0]; items2[3] = property; value = Object.create(Color_8057_18.prototype, {constructor: {value: Color_8057_18}}); color_8057_18 = new Color_8057_18(items2, 'rgb'); return color_8057_18 instanceof Object ? color_8057_18 : value; } if (a0 === 1) { property = this._rgb[3]; items2 = [255, 255, 255]; items2[3] = property; value = Object.create(Color_8057_18.prototype, {constructor: {value: Color_8057_18}}); color_8057_18 = new Color_8057_18(items2, 'rgb'); return color_8057_18 instanceof Object ? color_8057_18 : value; } value3 = this.luminance(); closure = luminanceTest; if (value3 > a0) { value7 = Object.create(Color_8057_18.prototype, {constructor: {value: Color_8057_18}}); color_8057_18 = new Color_8057_18([0, 0, 0]); r3 = closure(color_8057_18 instanceof Object ? color_8057_18 : value7, this); } else { value4 = Object.create(Color_8057_18.prototype, {constructor: {value: Color_8057_18}}); color_8057_18 = new Color_8057_18([255, 255, 255]); r3 = closure(this, color_8057_18 instanceof Object ? color_8057_18 : value4); } value10 = r3.rgb(); concat = value10.concat; property = this._rgb[3]; value = Reflect.apply(concat, value10, [[property]]); value11 = Object.create(Color_8057_18.prototype, {constructor: {value: Color_8057_18}}); color_8057_18 = new Color_8057_18(); return color_8057_18 instanceof Object ? color_8057_18 : value11; } } const rgb2luminanceBinding = rgb2luminance; const apply = rgb2luminanceBinding.apply; const _rgb = this._rgb; return Reflect.apply(apply, rgb2luminanceBinding, [undefined, _rgb.slice(0, 3)]); } function rgb2luminance(a0, a1, a2) { // fn#8158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:25589, owner: t_8047.rgb2luminance, offset: 0x00d38eef, size: 93 bytes, params: 4, frame: 13 const value3 = 0.2126 * luminance_x(a0); const value5 = 0.7152 * luminance_x(a1); let value = luminance_x(a2); value = 0.0722 * value; return value3 + value5 + value; } function luminance_x(a0) { // fn#8159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:25677, owner: t_8047.luminance_x, offset: 0x00d38f4c, size: 95 bytes, params: 2, frame: 14 var r0; let value = a0 / 255; if (value <= 0.03928) { value /= 12.92; r0 = value; } else { value = pow((value + 0.055) / 1.055, 2.4); r0 = value; } return r0; } function t_8047Interpolate(a0, a1, a2) { // fn#8160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:25786, owner: t_8047.interpolate, offset: 0x00d38fab, size: 352 bytes, params: 4, frame: 20 var r4; var r1; var r0; var r2; var r6; var r5; var value4; var value7; var value8; var value9; var length; var Object; var keys; var prototype; var value13; var color_8057_19; let value = a0; const value2 = a1; const value3 = a2; reducibleJoin2: while (true) { if (value3 !== undefined) { r4 = value3; break reducibleJoin2; } value4 = 0.5; r4 = value4; break reducibleJoin2; } const items2 = []; const value5 = arguments.length - 3; if (value5 > 0) { r1 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; reducibleLoop3: while (true) { items2[r1] = arguments[r1 + 3]; value7 = typeof r1 === 'bigint' ? r1 : +r1; value8 = typeof value7 === 'bigint' ? value7 - 1n : +value7 - 1; if (value7 > 0) { r1 = value8; continue reducibleLoop3; } break reducibleLoop3; } } let property = items2[0]; reducibleJoin6: while (true) { if (property) { r0 = property; break reducibleJoin6; } value9 = 'lrgb'; r0 = value9; break reducibleJoin6; } property = env0_172[r0]; reducibleJoin8: while (true) { if (property) { r2 = property; break reducibleJoin8; } length = items2.length; r2 = length; break reducibleJoin8; } reducibleJoin10: while (true) { if (r2) { break reducibleJoin10; } Object = global.Object; keys = Object.keys; property = Reflect.apply(keys, Object, [env0_172])[0]; r0 = property; break reducibleJoin10; } if (env0_172[r0]) { reducibleJoin14: while (true) { if (type(value) === 'object') { r6 = value; break reducibleJoin14; } prototype = Color_8057_19.prototype; value13 = Object.create(prototype, {constructor: {value: Color_8057_19}}); color_8057_19 = new Color_8057_19(value); value = color_8057_19 instanceof Object ? color_8057_19 : value13; r6 = value; break reducibleJoin14; } reducibleJoin16: while (true) { if (type(value2) === 'object') { r5 = value2; break reducibleJoin16; } prototype = Color_8057_19.prototype; value = Object.create(prototype, {constructor: {value: Color_8057_19}}); color_8057_19 = new Color_8057_19(value2); value = color_8057_19 instanceof Object ? color_8057_19 : value; r5 = value; break reducibleJoin16; } value = env0_172[r0](r6, r5, r4); return value.alpha(r6.alpha() + r4 * (r5.alpha() - r6.alpha())); } const Error = global.Error; value = 'interpolation mode ' + r0; const value11 = Object.create(Error.prototype, {constructor: {value: Error}}); value += ' is not defined'; const error = new Error(value); throw error instanceof Object ? error : value11; } function t_8047Interpolate_8161(a0, a1) { // fn#8161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:26195, owner: t_8047.interpolate, offset: 0x00d3910b, size: 118 bytes, params: 3, frame: 17 var r0; var r4; var value3; let value = a1; reducibleJoin2: while (true) { if (value !== undefined) { r0 = value; break reducibleJoin2; } value = 0.5; r0 = value; break reducibleJoin2; } const items3 = []; value = arguments.length - 2; if (value > 0) { r4 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop3: while (true) { items3[r4] = arguments[r4 + 2]; value = typeof r4 === 'bigint' ? r4 : +r4; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value > 0) { r4 = value3; continue reducibleLoop3; } break reducibleLoop3; } } const interpolate_8160Binding = interpolate_8160; const apply = interpolate_8160Binding.apply; const items2 = [this, a0, r0]; return Reflect.apply(apply, interpolate_8160Binding, [undefined, items2.concat(items3)]); } function premultiply(a0) { // fn#8162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:26370, owner: t_8047.premultiply, offset: 0x00d39181, size: 179 bytes, params: 2, frame: 17 const value = a0; const value2 = this; let r0 = value !== undefined ? value : false; const _rgb = value2._rgb; const property = _rgb[3]; if (r0) { value2._rgb = [_rgb[0] * property, _rgb[1] * property, _rgb[2] * property, property]; r0 = value2; } else { r0 = new Color_8057_20([_rgb[0] * property, _rgb[1] * property, _rgb[2] * property, property], 'rgb'); } return r0; } function t_8047Saturate(a0) { // fn#8163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:26552, owner: t_8047.saturate, offset: 0x00d39234, size: 128 bytes, params: 2, frame: 16 let value = a0; const r6 = value !== undefined ? value : 1; value = this.lch(); const property = value[1]; const Kn = env0_176.Kn; value[1] = property + Kn * r6; if (value[1] < 0) { value[1] = 0; } const color_8057_21 = new Color_8057_21(value, 'lch'); return color_8057_21.alpha(this.alpha(), true); } function t_8047Set(a0, a1, a2) { // fn#8165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:26793, owner: t_8047.set, offset: 0x00d392d3, size: 427 bytes, params: 4, frame: 23 var r0; var value4; var value5; var value7; var Error; var value12; var color_8057_22; let value = a2; const value2 = this; const r3 = value !== undefined ? value : false; value = a0.split('.'); const value3 = 0; const property = value[value3]; const property2 = value[1]; value = value2[property](); if (property2) { value4 = property.indexOf(property2); value5 = 2; r0 = property.substr(value3, value5) !== 'ok' ? value3 : value5; value7 = value4 - r0; if (value7 > -1) { if (type(a1) == 'string') { value12 = a1.charAt(value3); if (value12 === '+') { value[value7] = value[value7] + Number(a1); } else if (value12 === '-') { value[value7] = value[value7] + Number(a1); } else if (value12 === '*') { value[value7] = value[value7] * Number(a1.substr(1)); } else if (value12 === '/') { value[value7] = value[value7] / Number(a1.substr(1)); } else { value[value7] = Number(a1); } color_8057_22 = new Color_8057_22(value, property); if (r3) { value2._rgb = color_8057_22._rgb; r0 = value2; } else { r0 = color_8057_22; } return r0; } if (type(a1) !== 'number') { throw new global.Error('unsupported value for Color.set'); } value[value7] = a1; color_8057_22 = new Color_8057_22(value, property); if (r3) { value2._rgb = color_8057_22._rgb; r0 = value2; } else { r0 = color_8057_22; } return r0; } Error = global.Error; value = 'unknown channel ' + property2 + ' in mode ' + property; throw new Error(value); } return value; } function t_8047Rgb_8166({_rgb}, {_rgb}, a2) { // fn#8166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:27300, owner: t_8047.rgb, offset: 0x00d3947e, size: 134 bytes, params: 4, frame: 19 const value = _rgb[0] + a2 * (_rgb[0] - _rgb[0]); const value2 = _rgb[1] + a2 * (_rgb[1] - _rgb[1]); const value3 = _rgb[2] + a2 * (_rgb[2] - _rgb[2]); const value4 = Object.create(Color_8057_23.prototype, {constructor: {value: Color_8057_23}}); const color_8057_23 = new Color_8057_23(value, value2, value3, 'rgb'); return color_8057_23 instanceof Object ? color_8057_23 : value4; } function lrgb({_rgb}, {_rgb}, a2) { // fn#8167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:27463, owner: t_8047.lrgb, offset: 0x00d39504, size: 229 bytes, params: 4, frame: 25 const property = _rgb[0]; const property2 = _rgb[1]; const property3 = _rgb[2]; const property4 = _rgb[0]; const property5 = _rgb[1]; const property6 = _rgb[2]; const value4 = sqrt(pow(property, 2) * (1 - a2) + pow(property4, 2) * a2); const value7 = sqrt(pow(property2, 2) * (1 - a2) + pow(property5, 2) * a2); const value = sqrt(pow(property3, 2) * (1 - a2) + pow(property6, 2) * a2); const value10 = Object.create(Color_8057_24.prototype, {constructor: {value: Color_8057_24}}); const color_8057_24 = new Color_8057_24(value4, value7, value, 'rgb'); return color_8057_24 instanceof Object ? color_8057_24 : value10; } function t_8047Lab_8168(a0, a1, a2) { // fn#8168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:27670, owner: t_8047.lab, offset: 0x00d395e9, size: 142 bytes, params: 4, frame: 19 let value = a0.lab(); const value2 = a1.lab(); const value4 = value[0] + a2 * (value2[0] - value[0]); const value5 = value[1] + a2 * (value2[1] - value[1]); value = value[2] + a2 * (value2[2] - value[2]); const value6 = Object.create(Color_8057_25.prototype, {constructor: {value: Color_8057_25}}); const color_8057_25 = new Color_8057_25(value4, value5, value, 'lab'); return color_8057_25 instanceof Object ? color_8057_25 : value6; } function _hsx(a0, a1, a2, a3) { // fn#8169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:27805, owner: t_8047._hsx, offset: 0x00d39677, size: 679 bytes, params: 5, frame: 27 var r0; var r9; var r17; var r02; var r1; var r5; var r6; var r7; var r10; var r14; var r11; var value2; var value4; var value6; var value7; var value9; var value10; var value11; var value12; var value13; var value14; var value15; var value16; var property; var property2; var property3; var property4; var property5; let value = a3; if (value === 'hsl') { value15 = a0.hsl(); value16 = a1.hsl(); r0 = value; r9 = value15; r17 = value16; } else if (value === 'hsv') { value13 = a0.hsv(); value14 = a1.hsv(); r0 = value; r9 = value13; r17 = value14; } else if (value === 'hcg') { value11 = a0.hcg(); value12 = a1.hcg(); r0 = value; r9 = value11; r17 = value12; } else if (value === 'hsi') { value9 = a0.hsi(); value10 = a1.hsi(); r0 = value; r9 = value9; r17 = value10; } else if (value === 'lch') { value = a0.hcl(); value7 = a1.hcl(); r0 = 'hcl'; r9 = value; r17 = value7; } else if (value === 'hcl') { value = a0.hcl(); value7 = a1.hcl(); r0 = 'hcl'; r9 = value; r17 = value7; } else { value2 = undefined; if (value !== 'oklch') { r0 = value; r9 = value2; r17 = value2; } else { value4 = a0.oklch().reverse(); value6 = a1.oklch().reverse(); r0 = value; r9 = value4; r17 = value6; } } value = r0.substr(0, 1); value = value !== 'h'; let r4 = value && r0 !== 'oklch'; value = undefined; if (r4) { r02 = value; r1 = value; r5 = value; r6 = value; r7 = value; r10 = value; } else { property = r9[0]; property2 = r9[1]; property3 = r9[2]; property4 = r17[0]; property5 = r17[1]; r02 = r17[2]; r1 = property3; r5 = property; r6 = property5; r7 = property2; r10 = property4; } if (global.isNaN(r5)) { if (global.isNaN(r5)) { if (global.isNaN(r10)) { r4 = global.Number.NaN; r5 = value; } else { r11 = r1 != 1 && r1 != 0; r11 = !r11 ? r0 == 'hsv' : r11; if (r11) { r4 = r10; r5 = value; } else { r4 = r10; r5 = r6; } } } else { r14 = r02 != 1 && r02 != 0; r14 = !r14 ? r0 == 'hsv' : r14; if (r14) { r4 = r5; r5 = value; } else { r4 = r5; r5 = r7; } } } else if (global.isNaN(r10)) { if (global.isNaN(r5)) { if (global.isNaN(r10)) { r4 = global.Number.NaN; r5 = value; } else { r11 = r1 != 1 && r1 != 0; r11 = !r11 ? r0 == 'hsv' : r11; if (r11) { r4 = r10; r5 = value; } else { r4 = r10; r5 = r6; } } } else { r14 = r02 != 1 && r02 != 0; r14 = !r14 ? r0 == 'hsv' : r14; if (r14) { r4 = r5; r5 = value; } else { r4 = r5; r5 = r7; } } } else { r4 = r10 > r5 && r10 - r5 > 180 ? r10 - (r5 + 360) : r10 < r5 && r5 - r10 > 180 ? r10 + 360 - r5 : r10 - r5; r4 = r5 + a2 * r4; r5 = value; } r5 = value === r5 ? r7 + a2 * (r6 - r7) : r5; value = r1 + a2 * (r02 - r1); const r03 = r0 === 'oklch' ? [value, r5, r4] : [r4, r5, value]; value = Object.create(Color_8057_26.prototype, {constructor: {value: Color_8057_26}}); const color_8057_26 = new Color_8057_26(r03); return color_8057_26 instanceof Object ? color_8057_26 : value; } function t_8047Oklab_8176(a0, a1, a2) { // fn#8176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:28866, owner: t_8047.oklab, offset: 0x00d399f4, size: 142 bytes, params: 4, frame: 19 let value = a0.oklab(); const value2 = a1.oklab(); const value4 = value[0] + a2 * (value2[0] - value[0]); const value5 = value[1] + a2 * (value2[1] - value[1]); value = value[2] + a2 * (value2[2] - value[2]); const value6 = Object.create(Color_8057_28.prototype, {constructor: {value: Color_8057_28}}); const color_8057_28 = new Color_8057_28(value4, value5, value, 'oklab'); return color_8057_28 instanceof Object ? color_8057_28 : value6; } function _average_lrgb(a0, a1) { // fn#8178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:29164, owner: t_8047._average_lrgb, offset: 0x00d39a9e, size: 305 bytes, params: 3, frame: 25 var r8; var property; var value3; var _rgb; var value4; var length3; const length = a0.length; const items2 = [0, 0, 0, 0]; const length2 = a0.length; let value = 0; if (value < length2) { r8 = value; reducibleLoop1: while (true) { property = a0[r8]; value3 = a1[r8] / length; _rgb = property._rgb; property = items2[value]; items2[value] = property + pow(_rgb[value], 2) * value3; property = items2[1]; items2[1] = property + pow(_rgb[1], 2) * value3; property = items2[2]; items2[2] = property + pow(_rgb[2], 2) * value3; property = items2[3]; items2[3] = property + _rgb[3] * value3; value4 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; length3 = a0.length; if (value4 < length3) { r8 = value4; continue reducibleLoop1; } break reducibleLoop1; } } items2[value] = sqrt(items2[value]); items2[1] = sqrt(items2[1]); items2[2] = sqrt(items2[2]); reducibleJoin4: while (true) { if (items2[3] > 0.9999999) { items2[3] = 1; break reducibleJoin4; } break reducibleJoin4; } value = clip_rgb(items2); const value5 = Object.create(Color_8057_29.prototype, {constructor: {value: Color_8057_29}}); const color_8057_29 = new Color_8057_29(value); return color_8057_29 instanceof Object ? color_8057_29 : value5; } function scale(a0) { // fn#8179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:29460, owner: t_8047.scale, offset: 0x00d39bcf, size: 321 bytes, params: 2, frame: 13 const env0_1 = chroma$k_2('#ccc'); const env0_3 = [0, 1]; const env0_4 = []; const env0_5 = [0, 0]; const env0_7 = []; let env0_12 = {}; let closure = setColors; const tMapLightness = function(a0) { return a0; }; const tMapDomain = function(a0) { return a0; }; const scaleResetCache = function() { var object = {}; env0_12 = object; return object; }; closure(a0); closure = scaleF; closure.classes = classes; closure.domain = domain; closure.mode = mode; closure.range = function(a0, a1) { setColors(a0); return scaleF; }; closure.out = function(a0) { env0_8 = a0; return scaleF; }; closure.spread = spread; closure.correctLightness = correctLightness; closure.padding = padding; closure.colors = colors; closure.cache = cache_8204; closure.gamma = gamma; closure.nodata = nodata; return closure; } function blend(a0, a1, a2) { // fn#8207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32719, owner: t_8047.blend, offset: 0x00d3a8ed, size: 79 bytes, params: 4, frame: 14 if (blend[a2]) { return blend[a2](a0, a1); } const Error = global.Error; const value = 'unknown blend mode ' + a2; const value2 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(); throw error instanceof Object ? error : value2; } function blend_f(a0) { // fn#8208, owner: t_8047.blend_f, offset: 0x00d3a93c, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun8209; } function t_8047Each(a0) { // fn#8210, owner: t_8047.each, offset: 0x00d3a99b, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun8211; } function t_8047Analyze(a0, a1) { // fn#8220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:33769, owner: t_8047.analyze, offset: 0x00d3aafe, size: 188 bytes, params: 3, frame: 15 var r4; let value = a0; const env0_0 = a1; if (a1 !== undefined) { } const object2 = {}; let Number = global.Number; let MAX_VALUE = Number.MAX_VALUE; object2.min = MAX_VALUE; Number = global.Number; MAX_VALUE = Number.MAX_VALUE; object2.max = -1 * MAX_VALUE; object2.sum = 0; object2.values = []; object2.count = 0; if (type_8051_3(value) !== 'object') { r4 = value; } else { value = global.Object.values(value); r4 = value; } r4.forEach(_fun8221); object2.domain = [object2.min, object2.max]; object2.limits = limits_8222; return object2; } function limits(a0, a1, a2) { // fn#8223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:34156, owner: t_8047.limits, offset: 0x00d3ac94, size: 1375 bytes, params: 4, frame: 48 var r11; var r4; var r0; var r12; var r19; var r20; var r8; var r27; var r28; var r33; var r34; var r29; var r6; var r5; var r3; var value5; var value6; var push; var length; var Array; var prototype; var value16; var array; var value17; var value18; var value19; var items2; var value20; var value21; var value22; var property; var Number; var MAX_VALUE; var value23; var property2; var value24; var value25; var value26; var value27; var value28; var property3; var value29; var value30; var value31; var value32; var value33; var value34; var object2; var value35; var value36; var items3; var isNaN; var isNaN2; var indexOf; var value37; var value38; var value39; var value40; var value41; var value42; var value43; var Math; var LOG10E; var value44; var powBinding; var value45; var value46; let value = a0; const value2 = a1; const value3 = a2; const value4 = undefined; reducibleJoin2: while (true) { if (value4 !== value2) { r11 = value2; break reducibleJoin2; } value5 = 'equal'; r11 = value5; break reducibleJoin2; } reducibleJoin4: while (true) { if (value4 !== value3) { r4 = value3; break reducibleJoin4; } value6 = 7; r4 = value6; break reducibleJoin4; } reducibleJoin6: while (true) { if (type_8051_3(value) != 'array') { r0 = value; break reducibleJoin6; } value = analyze_8220(value); r0 = value; break reducibleJoin6; } const min = r0.min; const max = r0.max; value = r0.values.sort(function(a0, a1) { return a0 - a1; }); const value9 = 1; if (value9 === r4) { return [min, max]; } const items4 = []; const value10 = 0; reducibleJoin9: while (true) { if (r11.substr(value10, value9) !== 'c') { break reducibleJoin9; } push = items4.push; Reflect.apply(push, items4, [min]); push = items4.push; Reflect.apply(push, items4, [max]); break reducibleJoin9; } if (r11.substr(value10, value9) === 'e') { items4.push(min); if (value9 < r4) { r3 = value9; reducibleLoop61: while (true) { push = items4.push; value = r3 / r4; Reflect.apply(push, items4, [min + value * (max - min)]); value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value < r4) { r3 = value; continue reducibleLoop61; } break reducibleLoop61; } } items4.push(max); } else if (r11.substr(value10, value9) === 'l') { if (min <= value10) { throw new global.Error('Logarithmic scales are only possible for values > 0'); } Math = global.Math; LOG10E = Math.LOG10E; value = LOG10E * log(min); Math = global.Math; LOG10E = Math.LOG10E; value44 = LOG10E * log(max); items4.push(min); if (value9 < r4) { r5 = value9; reducibleLoop57: while (true) { push = items4.push; powBinding = pow; value45 = r5 / r4; Reflect.apply(push, items4, [powBinding(10, value + value45 * (value44 - value))]); value46 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1; if (value46 < r4) { r5 = value46; continue reducibleLoop57; } break reducibleLoop57; } } items4.push(max); } else if (r11.substr(value10, value9) === 'q') { items4.push(min); if (value9 < r4) { r6 = value9; reducibleLoop50: while (true) { length = value.length; value39 = (length - value9) * r6 / r4; value40 = floor(value39); if (value40 === value39) { push = items4.push; Reflect.apply(push, items4, [value[value40]]); } else { value41 = value39 - value40; push = items4.push; property = value[value40]; value42 = property * (value9 - value41); Reflect.apply(push, items4, [value42 + value[value40 + value9] * value41]); } value43 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; if (value43 < r4) { r6 = value43; continue reducibleLoop50; } break reducibleLoop50; } } items4.push(max); } else { reducibleJoin63: while (true) { if (r11.substr(value10, value9) !== 'k') { break reducibleJoin63; } length = value.length; Array = global.Array; prototype = Array.prototype; value16 = Object.create(prototype, {constructor: {value: Array}}); array = new Array(); value17 = array instanceof Object ? array : value16; Array = global.Array; prototype = Array.prototype; value18 = Object.create(prototype, {constructor: {value: Array}}); array = new Array(); value19 = array instanceof Object ? array : value18; items2 = []; push = items2.push; Reflect.apply(push, items2, [min]); if (value9 < r4) { r12 = value9; reducibleLoop14: while (true) { push = items2.push; value20 = r12 / r4; Reflect.apply(push, items2, [min + value20 * (max - min)]); value21 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1; if (value21 < r4) { r12 = value21; continue reducibleLoop14; } break reducibleLoop14; } } push = items2.push; Reflect.apply(push, items2, [max]); r19 = items2; r20 = value10; reducibleLoop16: while (true) { if (value10 < r4) { r8 = value10; reducibleLoop17: while (true) { value19[r8] = value10; value22 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value22 < r4) { r8 = value22; continue reducibleLoop17; } break reducibleLoop17; } } if (value10 < length) { r27 = value10; reducibleLoop19: while (true) { property = value[r27]; Number = global.Number; MAX_VALUE = Number.MAX_VALUE; if (value10 < r4) { r28 = value10; r33 = value4; r34 = MAX_VALUE; reducibleLoop20: while (true) { value23 = abs(r19[r28] - property); if (value23 < r34) { r33 = r28; r34 = value23; } property2 = value19[r33]; value19[r33] = typeof property2 === 'bigint' ? property2 + 1n : +property2 + 1; value17[r27] = r33; value24 = typeof r28 === 'bigint' ? r28 + 1n : +r28 + 1; if (value24 < r4) { r28 = value24; continue reducibleLoop20; } break reducibleLoop20; } } value25 = typeof r27 === 'bigint' ? r27 + 1n : +r27 + 1; if (value25 < length) { r27 = value25; continue reducibleLoop19; } break reducibleLoop19; } } Array = global.Array; prototype = Array.prototype; value26 = Object.create(prototype, {constructor: {value: Array}}); array = new Array(); value27 = array instanceof Object ? array : value26; if (value10 < r4) { r8 = value10; reducibleLoop24: while (true) { value27[r8] = null; value28 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value28 < r4) { r8 = value28; continue reducibleLoop24; } break reducibleLoop24; } } if (value10 < length) { r8 = value10; reducibleLoop26: while (true) { property = value17[r8]; if (value27[property] === null) { value27[property] = value[r8]; } else { property3 = value27[property]; value27[property] = property3 + value[r8]; } value29 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value29 < length) { r8 = value29; continue reducibleLoop26; } break reducibleLoop26; } } if (value10 < r4) { r8 = value10; reducibleLoop31: while (true) { property = value27[r8]; value27[r8] = property * (value9 / value19[r8]); value30 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value30 < r4) { r8 = value30; continue reducibleLoop31; } break reducibleLoop31; } } value31 = false; if (value10 < r4) { r29 = value10; reducibleLoop33: while (true) { property = value27[r29]; value32 = true; if (property !== r19[r29]) { r8 = value32; break reducibleLoop33; } value33 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1; if (value33 < r4) { r29 = value33; continue reducibleLoop33; } r8 = value31; break reducibleLoop33; } } else { r8 = value31; } value34 = typeof r20 === 'bigint' ? r20 + 1n : +r20 + 1; if (value34 > 200) { r8 = value31; } if (r8) { r19 = value27; r20 = value34; continue reducibleLoop16; } break reducibleLoop16; } object2 = {}; if (value10 < r4) { r8 = value10; reducibleLoop38: while (true) { object2[r8] = []; value35 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value35 < r4) { r8 = value35; continue reducibleLoop38; } break reducibleLoop38; } } if (value10 < length) { r8 = value10; reducibleLoop40: while (true) { property = object2[value17[r8]]; push = property.push; Reflect.apply(push, property, [value[r8]]); value36 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value36 < length) { r8 = value36; continue reducibleLoop40; } break reducibleLoop40; } } items3 = []; if (value10 < r4) { r8 = value10; reducibleLoop42: while (true) { push = items3.push; Reflect.apply(push, items3, [object2[r8][value10]]); push = items3.push; property = object2[r8]; length = object2[r8].length; Reflect.apply(push, items3, [property[length - value9]]); value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1; if (value < r4) { r8 = value; continue reducibleLoop42; } break reducibleLoop42; } } value = items3.sort(function(a0, a1) { return a0 - a1; }); push = items4.push; Reflect.apply(push, items4, [value[value10]]); length = value.length; if (!(value9 < length)) { break reducibleJoin63; } r8 = value9; reducibleLoop44: while (true) { property = value[r8]; isNaN = global.isNaN; isNaN2 = isNaN(property); reducibleJoin46: while (true) { if (isNaN2) { r6 = isNaN2; break reducibleJoin46; } indexOf = items4.indexOf; value37 = Reflect.apply(indexOf, items4, [property]) !== -1; r6 = value37; break reducibleJoin46; } reducibleJoin48: while (true) { if (r6) { break reducibleJoin48; } push = items4.push; Reflect.apply(push, items4, [property]); break reducibleJoin48; } value38 = r8 + 2; length = value.length; if (value38 < length) { r8 = value38; continue reducibleLoop44; } break reducibleJoin63; } } } return items4; } function hot() { // fn#8227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:36003, owner: t_8047.hot, offset: 0x00d3b258, size: 40 bytes, params: 1, frame: 11 return scale_2(['#000', '#f00', '#ff0', '#fff']).mode('rgb'); } function average(a0, a1, a2) { // fn#8228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:39929, owner: t_8047.average, offset: 0x00d3b280, size: 744 bytes, params: 4, frame: 29 var r7; var r1; var r10; var r16; var r5; var r17; var r4; var Array; var from; var Array2; var prototype; var array; var map; var property; var push; var isNaN; var charAt; var value7; var value8; var binding; var value9; var value10; var value11; var length3; var atan2Binding; var length5; let value = a1; const value2 = a2; var env0_0; var env0_1; reducibleJoin2: while (true) { if (value !== undefined) { r7 = value; break reducibleJoin2; } value = 'lrgb'; env0_0 = value; r7 = value; break reducibleJoin2; } reducibleJoin4: while (true) { if (value2 !== undefined) { r1 = value2; break reducibleJoin4; } value = null; env0_1 = value; r1 = value; break reducibleJoin4; } const length = a0.length; reducibleJoin6: while (true) { if (r1) { break reducibleJoin6; } Array = global.Array; from = Array.from; Array2 = global.Array; prototype = Array2.prototype; value = Object.create(prototype, {constructor: {value: Array2}}); array = new Array2(length); value = array instanceof Object ? array : value; value = Reflect.apply(from, Array, [value]); map = value.map; value = Reflect.apply(map, value, [function() { return 1; }]); env0_1 = value; r1 = value; break reducibleJoin6; } const env0_2 = length / r1.reduce(function(a0, a1) { return a0 + a1; }); r1.forEach(_fun8231); value = a0.map(_fun8232); if (r7 === 'lrgb') { return _average_lrgb(value, r1); } const value3 = value.shift(); const value4 = value3.get(r7); const items2 = []; const value5 = 0; let env0_5 = value5; let env0_6 = value5; if (value5 < value4.length) { r10 = value5; reducibleLoop8: while (true) { property = value4[r10]; r16 = property || value5; value4[r10] = r16 * r1[value5]; push = items2.push; isNaN = global.isNaN; reducibleJoin11: while (true) { if (isNaN(value4[r10])) { r5 = value5; break reducibleJoin11; } property = r1[value5]; r5 = property; break reducibleJoin11; } Reflect.apply(push, items2, [r5]); charAt = r7.charAt; reducibleJoin14: while (true) { if (Reflect.apply(charAt, r7, [r10]) !== 'h') { break reducibleJoin14; } isNaN = global.isNaN; if (isNaN(value4[r10])) { break reducibleJoin14; } value7 = value4[r10] / 180; value8 = value7 * PI; binding = env0_5; value9 = cos(value8); env0_5 = binding + value9 * r1[value5]; binding = env0_6; value10 = sin(value8); env0_6 = binding + value10 * r1[value5]; break reducibleJoin14; } value11 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length3 = value4.length; if (value11 < length3) { r10 = value11; continue reducibleLoop8; } break reducibleLoop8; } } let alpha = value3.alpha; let env0_7 = Reflect.apply(alpha, value3, []) * r1[value5]; value.forEach(_fun8233); if (value5 < value4.length) { r10 = value5; reducibleLoop16: while (true) { charAt = r7.charAt; if (Reflect.apply(charAt, r7, [r10]) === 'h') { atan2Binding = atan2; binding = env0_6; value = binding / items2[r10]; binding = env0_5; value = atan2Binding(value, binding / items2[r10]); value = value / PI * 180; if (value < value5) { r17 = value; reducibleLoop19: while (true) { value = r17 + 360; if (value < value5) { r17 = value; continue reducibleLoop19; } r16 = value; break reducibleLoop19; } } else { r16 = value; } if (r16 >= 360) { r17 = r16; reducibleLoop21: while (true) { value = r17 - 360; if (value >= 360) { r17 = value; continue reducibleLoop21; } r16 = value; break reducibleLoop21; } } value4[r10] = r16; } else { property = value4[r10]; value4[r10] = property / items2[r10]; } value = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length5 = value4.length; if (value < length5) { r10 = value; continue reducibleLoop16; } break reducibleLoop16; } } env0_7 /= length; const color_8057_29 = new Color_8057_29(value4); alpha = color_8057_29.alpha; reducibleJoin26: while (true) { if (env0_7 > 0.99999) { r4 = 1; break reducibleJoin26; } binding = env0_7; r4 = binding; break reducibleJoin26; } return Reflect.apply(alpha, color_8057_29, [r4, true]); } function t_8047Bezier(a0) { // fn#8234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40852, owner: t_8047.bezier, offset: 0x00d3b6e2, size: 34 bytes, params: 2, frame: 12 const value = bezier_body(a0); value.scale = scale_8250; return value; } function cubehelix(a0, a1, a2, a3, a4) { // fn#8251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42106, owner: t_8047.cubehelix, offset: 0x00d3bba3, size: 306 bytes, params: 6, frame: 13 var items; const env0_0 = a0; const env0_1 = a1; let env0_2 = a2; const env0_3 = a3; let env0_4 = a4; if (a0 !== undefined) { } if (env0_1 !== undefined) { } env0_2 = env0_2 === undefined ? 1 : env0_2; if (env0_3 !== undefined) { } env0_4 = env0_4 === undefined ? [0, 1] : env0_4; if (type(env0_4) === 'array') { var env0_5 = env0_4[1] - env0_4[0]; } else { items = [env0_4, env0_4]; } const closure = cubehelixF; closure.start = start_8253; closure.rotations = function(a0) { return a0 == null ? require : cubehelixF; }; closure.gamma = function(a0) { return a0 == null ? importAll : cubehelixF; }; closure.hue = hue; closure.lightness = lightness; closure.scale = function() { return chroma$k_4.scale(cubehelixF); }; closure.hue(env0_2); return closure; } function t_8047Contrast(a0, a1) { // fn#8260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:43079, owner: t_8047.contrast, offset: 0x00d3bfc4, size: 129 bytes, params: 3, frame: 12 var r0; let color_8057_32 = new Color_8057_32(a0); const value4 = new Color_8057_32(a1).luminance(); color_8057_32 = color_8057_32.luminance(); if (value4 > color_8057_32) { color_8057_32 = (value4 + 0.05) / (color_8057_32 + 0.05); r0 = color_8057_32; } else { color_8057_32 += 0.05; color_8057_32 /= value4 + 0.05; r0 = color_8057_32; } return r0; } function deltaE(a0, a1, a2, a3, a4) { // fn#8261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:43216, owner: t_8047.deltaE, offset: 0x00d3c045, size: 1139 bytes, params: 6, frame: 38 const value = a2; const value2 = a3; const value3 = a4; const r15 = value !== undefined ? value : 1; const r11 = value2 !== undefined ? value2 : 1; const r9 = value3 !== undefined ? value3 : 1; const closure = function(a0) { return 360 * a0 / (2 * PI); }; const closure2 = function(a0) { return 2 * PI * a0 / 360; }; let color_8057_33 = new Color_8057_33(a0); color_8057_33 = new Color_8057_33(a1); let Array = global.Array; const value8 = Array.from(color_8057_33.lab()); const property = value8[0]; const property2 = value8[1]; const property3 = value8[2]; Array = global.Array; const value9 = Array.from(color_8057_33.lab()); const property4 = value9[0]; const property5 = value9[1]; const property6 = value9[2]; const value10 = (property + property4) / 2; const value14 = (sqrt(pow(property2, 2) + pow(property3, 2)) + sqrt(pow(property5, 2) + pow(property6, 2))) / 2; const value18 = 1 + 0.5 * (1 - sqrt(pow(value14, 7) / (pow(value14, 7) + pow(25, 7)))); const value19 = property2 * value18; const value20 = property5 * value18; const value22 = sqrt(pow(value19, 2) + pow(property3, 2)); const value24 = sqrt(pow(value20, 2) + pow(property6, 2)); const value25 = (value22 + value24) / 2; const value26 = closure(atan2(property3, value19)); const value27 = closure(atan2(property6, value20)); const r25 = value26 >= 0 ? value26 : value26 + 360; const r24 = value27 >= 0 ? value27 : value27 + 360; const r22 = abs(r25 - r24) > 180 ? (r25 + r24 + 360) / 2 : (r25 + r24) / 2; const value34 = 0.17 * cos(closure2(r22 - 30)); const value36 = 0.24 * cos(closure2(2 * r22)); const value38 = 0.32 * cos(closure2(3 * r22 + 6)); const value40 = 0.2 * cos(closure2(4 * r22 - 63)); const value41 = r24 - r25; const value45 = 2 * sqrt(value22 * value24) * sin(closure2(abs(value41) <= 180 ? value41 : r24 <= r25 ? value41 + 360 : value41 - 360) / 2); const value46 = property4 - property; const value47 = value24 - value22; powBinding = pow; const value48 = value10 - 50; const value52 = 0.015 * powBinding(value48, 2) / sqrt(20 + pow(value48, 2)); const value53 = 1 + 0.045 * value25; const value55 = 1 + 0.015 * value25 * (1 - value34 + value36 + value38 - value40); return max(0, min(100, sqrt(pow(value46 / (r15 * (1 + value52)), 2) + pow(value47 / (r11 * value53), 2) + pow(value45 / (r9 * value55), 2) + -2 * sqrt(pow(value25, 7) / (pow(value25, 7) + pow(25, 7))) * sin(2 * closure2(30 * exp(-pow((r22 - 275) / 25, 2)))) * (value47 / (r11 * value53)) * (value45 / (r9 * value55))))); } function distance(a0, a1, a2) { // fn#8264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:44147, owner: t_8047.distance, offset: 0x00d3c4fa, size: 173 bytes, params: 4, frame: 21 var r0; var r5; var r11; var r10; var propertyName; var propertyName2; var property; var value6; var value7; const value = a2; let r2 = value !== undefined ? value : 'lab'; let color_8057_34 = new Color_8057_34(a0); const value4 = new Color_8057_34(a1).get(r2); color_8057_34 = color_8057_34.get(r2); const value5 = 0; const properties = Object.keys(value4); const properties2 = 0; const properties3 = properties.length; if (properties === undefined) { r2 = value5; } else { r0 = value5; r5 = properties2; while (true) { propertyName = properties[r5]; propertyName2 = r5 + 1; if (propertyName === undefined) { r2 = r0; break; } property = value4[propertyName]; if (property) { r11 = property; continue; } r11 = value5; continue; property = color_8057_34[propertyName]; if (property) { r10 = property; continue; } r10 = value5; continue; value6 = r11 - r10; value7 = r0 + value6 * value6; r0 = value7; r5 = propertyName2; } } const Math = global.Math; return Math.sqrt(r2); } function valid() { // fn#8265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:44347, owner: t_8047.valid, offset: 0x00d3c5a7, size: 115 bytes, params: 1, frame: 15 var r2; var value3; var Function; var prototype; var bind; var apply; var error; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { for (r2 = typeof value === 'bigint' ? value - 1n : +value - 1; true; r2 = value3) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break; } } } try { Function = global.Function; prototype = Function.prototype; bind = prototype.bind; apply = bind.apply; value = environment; value = [null].concat(items2); value = Reflect.apply(apply, bind, [Color_8057_35, value]); prototype = value.prototype; Object.create(prototype, {constructor: {value: value}}); new value(); } catch (error) { return false; } return true; } function _fun8054(a0) { // fn#8054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:742, offset: 0x00d351cb, size: 28 bytes, params: 2, frame: 2 return env0_0[0][a0] !== undefined; } function _fun8055(a0) { // fn#8055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:786, offset: 0x00d351e7, size: 22 bytes, params: 2, frame: 2 return env0_0[0][a0]; } function test_8122() { // fn#8122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:15599, offset: 0x00d37c44, size: 94 bytes, params: 1, frame: 15 var r2; var value3; const items2 = []; let value = arguments.length; value = typeof value === 'bigint' ? value : +value; if (value) { r2 = typeof value === 'bigint' ? value - 1n : +value - 1; reducibleLoop1: while (true) { items2[r2] = arguments[r2]; value = typeof r2 === 'bigint' ? r2 : +r2; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value3; continue reducibleLoop1; } break reducibleLoop1; } } value = environment.__proto__; const value5 = unpack(items2, env0_0); if (type(value5) === 'array') { reducibleJoin4: while (true) { if (value5.length === 3) { return env0_0; } break reducibleJoin4; } } } function _fun8133(a0, a1) { // fn#8133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:20265, offset: 0x00d3804a, size: 51 bytes, params: 3, frame: 13 var r1; var r0; var value3; let value = a0; if (a1 < 3) { if (env0_0 === false) { r1 = value; } else { value3 = environment.__proto__; value = round(value); r1 = value; } r0 = r1; } else { r0 = value; } return r0; } function luminanceTest(a0, a1) { // fn#8157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:25308, owner: t_8047.luminance.test, offset: 0x00d38e5a, size: 149 bytes, params: 3, frame: 18 var r1; var r0; var binding; var value5; let value = a0.interpolate(a1, 0.5, 'rgb'); const value2 = value.luminance(); const Math = global.Math; if (Math.abs(env0_0 - value2) < 0.0000001) { r0 = value; } else { binding = env0_1; value5 = typeof binding === 'bigint' ? binding : +binding; env0_1 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; if (value5) { if (value2 > env0_0) { value = luminanceTest(a0, value); r1 = value; } else { value = luminanceTest(value, a1); r1 = value; } r0 = r1; } else { r0 = value; } } return r0; } function setColors(a0) { // fn#8180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:29574, owner: t_8047.scale.setColors, offset: 0x00d39d10, size: 338 bytes, params: 2, frame: 17 var r3; var r1; var r0; var r4; var r2; var brewer; var toLowerCase; var property; var length; var slice; var value3; var value4; var value5; var binding; var push; var value6; let value = a0; reducibleJoin2: while (true) { if (value) { r3 = value; break reducibleJoin2; } r3 = ['#fff', '#000']; break reducibleJoin2; } reducibleJoin4: while (true) { if (r3) { value = environment.__proto__; value = type(r3); value = value === 'string'; r1 = value; break reducibleJoin4; } r1 = r3; break reducibleJoin4; } reducibleJoin6: while (true) { if (r1) { value = environment.__proto__; brewer = chroma$k_2.brewer; r1 = brewer; break reducibleJoin6; } break reducibleJoin6; } reducibleJoin8: while (true) { if (r1) { value = environment.__proto__; brewer = chroma$k_2.brewer; toLowerCase = r3.toLowerCase; property = brewer[Reflect.apply(toLowerCase, r3, [])]; r1 = property; break reducibleJoin8; } break reducibleJoin8; } reducibleJoin10: while (true) { if (r1) { value = environment.__proto__; brewer = chroma$k_2.brewer; toLowerCase = r3.toLowerCase; property = brewer[Reflect.apply(toLowerCase, r3, [])]; r0 = property; break reducibleJoin10; } r0 = r3; break reducibleJoin10; } value = environment.__proto__; reducibleJoin17: while (true) { if (type(r0) !== 'array') { break reducibleJoin17; } length = r0.length; reducibleJoin13: while (true) { if (length !== 1) { r4 = r0; break reducibleJoin13; } property = r0[0]; r4 = [property, r0[0]]; break reducibleJoin13; } slice = r4.slice; value3 = 0; value4 = Reflect.apply(slice, r4, [value3]); length = value4.length; if (value3 < length) { r4 = value3; reducibleLoop14: while (true) { value4[r4] = chroma$k_2(value4[r4]); value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1; length = value4.length; if (value5 < length) { r4 = value5; continue reducibleLoop14; } break reducibleLoop14; } } value = environment; env0_4.length = value3; length = value4.length; if (!(value3 < length)) { r0 = value4; break reducibleJoin17; } r2 = value3; reducibleLoop16: while (true) { binding = env0_4; push = binding.push; length = value4.length; Reflect.apply(push, binding, [r2 / (length - 1)]); value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; length = value4.length; if (value6 < length) { r2 = value6; continue reducibleLoop16; } r0 = value4; break reducibleJoin17; } } scaleResetCache(); return r0; } function getColor(a0, a1) { // fn#8183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:29964, owner: t_8047.scale.getColor, offset: 0x00d39e62, size: 704 bytes, params: 3, frame: 25 var r0; var r3; var r9; var r6; var r4; var r5; var value3; var value5; var length; var binding; var value6; var value7; var value8; var value9; var value10; var value11; var value12; var value13; var value14; var property; var value15; var value16; var Math; var min; var Math2; var max; var value17; var floor; var value18; var value19; var value20; var value21; var value22; var value23; var value24; var value25; var chroma$k_2Binding; var interpolate; var property2; var value26; let value = a0; const value2 = a1; reducibleJoin2: while (true) { if (value2 != null) { r0 = value2; break reducibleJoin2; } value3 = false; r0 = value3; break reducibleJoin2; } const isNaN = global.isNaN; const value4 = undefined; if (!isNaN(value)) { reducibleJoin40: while (true) { if (value !== null) { reducibleJoin17: while (true) { if (r0) { r4 = value; break reducibleJoin17; } value5 = environment; if (env0_6) { length = env0_6.length; if (length > 2) { value7 = 0; reducibleJoin16: while (true) { if (env0_6 != null) { length = env0_6.length; value8 = length - 1; reducibleJoin15: while (true) { if (!(value7 < value8)) { r6 = value7; break reducibleJoin15; } if (!(value >= env0_6[value7])) { r6 = value7; break reducibleJoin15; } r9 = value7; reducibleLoop13: while (true) { value9 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1; if (value9 < value8) { if (value >= env0_6[value9]) { r9 = value9; continue reducibleLoop13; } r6 = value9; break reducibleJoin15; } r6 = value9; break reducibleJoin15; } } value = r6 - 1; r3 = value; break reducibleJoin16; } r3 = value7; break reducibleJoin16; } length = env0_6.length; value = r3 / (length - 2); r4 = value; break reducibleJoin17; } } binding = env0_10; value6 = 1; reducibleJoin9: while (true) { if (binding === env0_9) { r3 = value6; break reducibleJoin9; } value -= env0_9; binding = env0_10; value /= binding - env0_9; r3 = value; break reducibleJoin9; } r4 = r3; break reducibleJoin17; } value = environment; value10 = tMapDomain(r4); reducibleJoin19: while (true) { if (r0) { r6 = value10; break reducibleJoin19; } value11 = tMapLightness(value10); r6 = value11; break reducibleJoin19; } reducibleJoin21: while (true) { if (env0_14 === 1) { r5 = r6; break reducibleJoin21; } value12 = environment.__proto__; value13 = pow(r6, env0_14); r5 = value13; break reducibleJoin21; } value14 = 0; property = env0_5[value14]; value15 = 1 - env0_5[value14]; value16 = property + r5 * (value15 - env0_5[1]); Math = global.Math; min = Math.min; Math2 = global.Math; max = Math2.max; value17 = Reflect.apply(min, Math, [1, Reflect.apply(max, Math2, [value14, value16])]); Math = global.Math; floor = Math.floor; value18 = Reflect.apply(floor, Math, [10000 * value17]); reducibleJoin39: while (true) { reducibleJoin23: while (true) { if (env0_13) { if (env0_12[value18]) { property = env0_12[value18]; r0 = property; break reducibleJoin39; } break reducibleJoin23; } break reducibleJoin23; } value19 = environment.__proto__; value20 = type(env0_7); if (value20 === 'array') { length = env0_4.length; if (value14 < length) { r9 = value14; reducibleLoop27: while (true) { property = env0_4[r9]; if (value17 <= property) { property = env0_7[r9]; r3 = property; break reducibleLoop27; } if (value17 >= property) { reducibleJoin30: while (true) { if (r9 === env0_4.length - 1) { property = env0_7[r9]; r3 = property; break reducibleLoop27; } break reducibleJoin30; } } if (value17 > property) { binding = env0_4; reducibleJoin32: while (true) { if (value17 < binding[r9 + 1]) { value24 = value17 - property; binding = env0_4; value25 = value24 / (binding[r9 + 1] - property); chroma$k_2Binding = chroma$k_2; interpolate = chroma$k_2Binding.interpolate; property = env0_7[r9]; binding = env0_7; property2 = binding[r9 + 1]; value26 = Reflect.apply(interpolate, chroma$k_2Binding, [property, property2, value25, env0_0]); r3 = value26; break reducibleLoop27; } break reducibleJoin32; } } value23 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1; length = env0_4.length; if (value23 < length) { r9 = value23; continue reducibleLoop27; } r3 = value4; break reducibleLoop27; } } else { r3 = value4; } } else { value21 = type(env0_7); reducibleJoin36: while (true) { if (value21 !== 'function') { r3 = value4; break reducibleJoin36; } value22 = env0_7(value17); r3 = value22; break reducibleJoin36; } } if (env0_13) { env0_12[value18] = r3; r0 = r3; break reducibleJoin39; } r0 = r3; break reducibleJoin39; } return r0; } break reducibleJoin40; } } return env0_1; } function scaleF(a0) { // fn#8185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:30659, owner: t_8047.scale.f, offset: 0x00d3a12d, size: 67 bytes, params: 2, frame: 13 const value = environment.__proto__; const value2 = chroma$k_2(getColor(a0)); return env0_8 && value2[env0_8] ? value2[env0_8]() : value2; } function classes(a0) { // fn#8186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:30730, owner: t_8047.scale.classes, offset: 0x00d3a170, size: 176 bytes, params: 2, frame: 16 var value; var value4; if (a0 != null) { value = environment.__proto__; if (type(a0) === 'array') { env0_6 = a0; [a0[0]][1] = a0[a0.length - 1]; } else { value4 = chroma$k_2.analyze(env0_3); env0_6 = a0 === 0 ? [value4.min, value4.max] : chroma$k_2.limits(value4, 'e', a0); } return scaleF; } return env0_6; } function domain(a0) { // fn#8187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:30894, owner: t_8047.scale.domain, offset: 0x00d3a220, size: 335 bytes, params: 2, frame: 18 var r2; var r4; var value2; var length; var binding; var push; var value3; var map; var value4; var every; var Array; var from; var value5; var property; var value6; var binding2; var value7; const env0_0 = a0; if (arguments.length) { value2 = 0; env0_9 = a0[value2]; length = a0.length; env0_10 = a0[length - 1]; env0_4 = []; length = env0_7.length; reducibleJoin11: while (true) { reducibleJoin6: while (true) { if (a0.length !== length) { if (!(value2 < length)) { break reducibleJoin6; } r2 = value2; reducibleLoop5: while (true) { binding = env0_4; push = binding.push; Reflect.apply(push, binding, [r2 / (length - 1)]); value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value3 < length) { r2 = value3; continue reducibleLoop5; } break reducibleJoin6; } } else { binding = env0_9; if (binding !== env0_10) { Array = global.Array; from = Array.from; value5 = Reflect.apply(from, Array, [a0]); length = value5.length; if (value2 < length) { r4 = value2; reducibleLoop10: while (true) { property = value5[r4]; binding = env0_4; push = binding.push; value6 = property - env0_9; binding2 = env0_10; Reflect.apply(push, binding, [value6 / (binding2 - env0_9)]); value7 = r4 + 1; length = value5.length; if (value7 < length) { r4 = value7; continue reducibleLoop10; } break reducibleJoin11; } binding = env0_9; env0_3 = [binding, env0_10]; return scaleF; } break reducibleJoin11; } if (!(value2 < length)) { break reducibleJoin6; } r2 = value2; reducibleLoop5: while (true) { binding = env0_4; push = binding.push; Reflect.apply(push, binding, [r2 / (length - 1)]); value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value3 < length) { r2 = value3; continue reducibleLoop5; } break reducibleJoin6; } } } length = a0.length; if (length > 2) { map = a0.map; var env0_1 = Reflect.apply(map, a0, [_fun8188]); map = a0.map; value4 = Reflect.apply(map, a0, [_fun8189]); var env0_2 = value4; every = value4.every; if (Reflect.apply(every, value4, [_fun8190])) { break reducibleJoin11; } domainTMapDomain = domainTMapDomain; break reducibleJoin11; } break reducibleJoin11; } binding = env0_9; env0_3 = [binding, env0_10]; return scaleF; } return env0_3; } function mode(a0) { // fn#8192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31432, owner: t_8047.scale.mode, offset: 0x00d3a45b, size: 40 bytes, params: 2, frame: 11 var r0; if (arguments.length) { env0_0 = a0; scaleResetCache(); r0 = scaleF; } else { r0 = env0_0; } return r0; } function scaleSpread(a0) { // fn#8195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31561, owner: t_8047.scale.spread, offset: 0x00d3a4aa, size: 30 bytes, params: 2, frame: 3 return arguments.length ? scaleF : env0_2; } function correctLightness(a0) { // fn#8196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31627, owner: t_8047.scale.correctLightness, offset: 0x00d3a4c8, size: 59 bytes, params: 2, frame: 11 let r1 = a0 ?? true; env0_11 = r1; scaleResetCache(); r1 = env0_11 ? correctLightnessTMapLightness : function(a0) { return a0; }; return scaleF; } function padding(a0) { // fn#8199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31962, owner: t_8047.scale.padding, offset: 0x00d3a628, size: 71 bytes, params: 2, frame: 13 var r2; var r0; var value2; const value = a0; if (value != null) { value2 = environment.__proto__; r2 = type(value) !== 'number' ? value : [value, value]; r0 = scaleF; } else { r0 = env0_5; } return r0; } function colors(a0, a1) { // fn#8200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32037, owner: t_8047.scale.colors, offset: 0x00d3a66f, size: 439 bytes, params: 3, frame: 24 var environment; var r0; var r3; var r14; var r4; var value2; var items2; var length; var binding; var value3; var push; var property; var value6; var value7; var value8; var value9; var value11; let value = a1; const env0_0 = a0; const r2 = arguments.length < 2 ? 'hex' : value; value = 0; if (value === arguments.length) { value = env0_7.slice(value); r3 = value; } else { value2 = 1; if (value2 === a0) { r3 = [scaleF(0.5)]; } else if (a0 > value2) { var env0_3Binding = env0_3[value2] - env0_3[value]; items2 = []; value11 = value < a0; r0 = value11 ? value < a0 : value > a0; if (r0) { r4 = value; while (true) { items2.push(r4); r4 = value11 ? typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1 : typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1; if (value11) { value = r4 < a0; r0 = value; } else { value = r4 > a0; r0 = value; } if (r0) { continue; } break; } } value = items2.map(_fun8201); r3 = value; } else { items2 = []; if (env0_6) { length = env0_6.length; if (length > 2) { length = env0_6.length; value3 = value2 <= length; r0 = value3 ? value2 < length : value2 > length; if (r0) { r3 = value2; while (true) { push = items2.push; binding = env0_6; property = binding[r3 - value2]; Reflect.apply(push, items2, [0.5 * (property + env0_6[r3])]); if (value3) { value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; r14 = value7; } else { value6 = typeof r3 === 'bigint' ? r3 - 1n : +r3 - 1; r14 = value6; } if (value3) { value9 = r14 < length; r0 = value9; } else { value8 = r14 > length; r0 = value8; } if (r0) { r3 = r14; continue; } r4 = items2; break; } } else { r4 = items2; } } else { r4 = env0_3Binding; } } else { r4 = env0_3Binding; } r3 = r4.map(function(a0) { return scaleF(a0); }); } } value = environment.__proto__; return chroma$k_2[r2] ? r3.map(function(a0) { return a0[require](); }) : r3; } function scaleCache(a0) { // fn#8204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32562, owner: t_8047.scale.cache, offset: 0x00d3a882, size: 31 bytes, params: 2, frame: 3 return a0 != null ? scaleF : env0_13; } function scaleGamma(a0) { // fn#8205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32608, owner: t_8047.scale.gamma, offset: 0x00d3a8a1, size: 31 bytes, params: 2, frame: 3 return a0 != null ? scaleF : env0_14; } function nodata(a0) { // fn#8206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32655, owner: t_8047.scale.nodata, offset: 0x00d3a8c0, size: 45 bytes, params: 2, frame: 12 var r0; var value; if (a0 != null) { value = environment.__proto__; value = chroma$k_2(a0); r0 = scaleF; } else { r0 = env0_1; } return r0; } function _fun8209(a0, a1) { // fn#8209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32841, offset: 0x00d3a94c, size: 79 bytes, params: 3, frame: 15 return chroma$k_3.rgb(env0_0(chroma$k_3(a1).rgb(), chroma$k_3(a0).rgb())); } function _fun8211([property, property, property], a1) { // fn#8211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32938, offset: 0x00d3a9ab, size: 83 bytes, params: 3, frame: 17 const items2 = []; const binding = env0_0; items2[0] = binding(property, a1[0]); items2[1] = binding(property, a1[1]); items2[2] = binding(property, a1[2]); return items2; } function _fun8221(a0) { // fn#8221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:33945, offset: 0x00d3abba, size: 187 bytes, params: 2, frame: 13 var binding; const value = a0; const r2 = require && type_8051_3(value) === 'object' ? value[require] : value; if (!(r2 == null || global.isNaN(r2))) { env0_1.values.push(r2); binding = env0_1; binding.sum = binding.sum + r2; if (r2 < env0_1.min) { env0_1.min = r2; } if (r2 > env0_1.max) { env0_1.max = r2; } binding = env0_1; binding.count = binding.count + 1; } } function analyzeLimits(a0, a1) { // fn#8222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:34118, owner: t_8047.analyze.limits, offset: 0x00d3ac75, size: 31 bytes, params: 3, frame: 15 return limits_2(env0_1, a0, a1); } function _fun8231(a0, a1) { // fn#8231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40132, offset: 0x00d3b568, size: 30 bytes, params: 3, frame: 4 importDefault[a1] = importDefault[a1] * env0_2; } function _fun8232(a0) { // fn#8232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40166, offset: 0x00d3b586, size: 32 bytes, params: 2, frame: 11 let value = environment.__proto__; value = Object.create(Color_8057_29.prototype, {constructor: {value: Color_8057_29}}); const color_8057_29 = new Color_8057_29(a0); return color_8057_29 instanceof Object ? color_8057_29 : value; } function _fun8233(a0, a1) { // fn#8233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40448, offset: 0x00d3b5a6, size: 316 bytes, params: 3, frame: 23 var r6; var isNaN; var property; var charAt; var property2; var value6; var value7; var value8; var value9; var value10; const value2 = a0.get(require); let binding = env0_7; env0_7 = binding + a0.alpha() * importDefault[a1 + 1]; let length = env0_3.length; const value4 = 0; if (value4 < length) { r6 = value4; while (true) { isNaN = global.isNaN; if (!isNaN(value2[r6])) { binding = env0_4; property = binding[r6]; binding[r6] = property + importDefault[a1 + 1]; charAt = require.charAt; if (Reflect.apply(charAt, require, [r6]) === 'h') { value6 = value2[r6] / 180; value7 = value6 * PI; binding = env0_5; value8 = cos(value7); env0_5 = binding + value8 * importDefault[a1 + 1]; binding = env0_6; value9 = sin(value7); env0_6 = binding + value9 * importDefault[a1 + 1]; break; } binding = env0_3; property = binding[r6]; property2 = value2[r6]; binding[r6] = property + property2 * importDefault[a1 + 1]; break; } value10 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = env0_3.length; if (value10 < length) { r6 = value10; continue; } break; } } } function bezier_body(a0) { // fn#8235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40879, owner: t_8047.bezier.body, offset: 0x00d3b704, size: 410 bytes, params: 2, frame: 22 var r2; var r6; var r12; var r13; var r0; var value2; var items2; var property; var value3; var value4; var value5; let value = a0.map(_fun8236); let length = value.length; if (length === 2) { value = value.map(function(a0) { return a0.lab(); }); var env0_0 = value[0]; var env0_1 = value[1]; return I_8238; } if (value.length === 3) { value = value.map(function(a0) { return a0.lab(); }); env0_0 = value[0]; env0_1 = value[1]; var env0_2 = value[2]; return I_8241; } if (value.length === 4) { value = value.map(function(a0) { return a0.lab(); }); env0_0 = value[0]; env0_1 = value[1]; env0_2 = value[2]; var env0_3 = value[3]; return I_8244; } length = value.length; if (length >= 5) { var env0_4 = value.map(function(a0) { return a0.lab(); }); length = value.length; value = 1; value2 = length - value; items2 = [1, 1]; if (value < value2) { r2 = value; r6 = items2; while (true) { items2 = [1]; length = r6.length; if (value <= length) { r12 = value; while (true) { property = r6[r12]; if (property) { r13 = property; } else { value3 = 0; r13 = value3; } items2[r12] = r13 + r6[r12 - value]; value4 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1; length = r6.length; if (value4 <= length) { r12 = value4; continue; } break; } } value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value5 < value2) { r2 = value5; r6 = items2; continue; } r0 = items2; break; } } r0 = I_8247; return r0; } const RangeError = global.RangeError; throw new RangeError('No point in running bezier with only one color.'); } function bezierScale() { // fn#8250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42053, owner: t_8047.bezier.scale, offset: 0x00d3bb8c, size: 23 bytes, params: 1, frame: 11 return scale(env0_0); } function cubehelixF(a0) { // fn#8252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42293, owner: t_8047.cubehelix.f, offset: 0x00d3bcd5, size: 319 bytes, params: 2, frame: 21 let value = environment.__proto__; const value5 = TWOPI * ((env0_0 + 120) / 360 + require * a0); const value7 = pow(env0_4[0] + env0_5 * a0, importAll); const value10 = (env0_6 !== 0 ? importDefault[0] + a0 * env0_6 : importDefault) * value7 * (1 - value7) / 2; const value11 = cos(value5); const value12 = sin(value5); const chroma$k_4Binding = chroma$k_4; const clip_rgbBinding = clip_rgb; value = -0.14861 * value11; value = value7 + value10 * (value + 1.78277 * value12); return chroma$k_4Binding(clip_rgbBinding([255 * value, 255 * (value7 + value10 * (-0.29227 * value11 - 0.90649 * value12)), 255 * (value7 + value10 * (1.97294 * value11)), 1])); } function cubehelixStart(a0) { // fn#8253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42518, owner: t_8047.cubehelix.start, offset: 0x00d3be14, size: 31 bytes, params: 2, frame: 2 return a0 == null ? env0_0 : cubehelixF; } function hue(a0) { // fn#8256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42658, owner: t_8047.cubehelix.hue, offset: 0x00d3be71, size: 106 bytes, params: 2, frame: 13 var r0; var value; var typeBinding; if (a0 == null) { r0 = importDefault; } else { value = environment.__proto__; typeBinding = type; env0_2 = a0; if (typeBinding(a0) === 'array') { if (importDefault[1] - importDefault[0] == 0) { env0_2 = importDefault[1]; } } r0 = cubehelixF; } return r0; } function lightness(a0) { // fn#8257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:42753, owner: t_8047.cubehelix.lightness, offset: 0x00d3bedb, size: 104 bytes, params: 2, frame: 12 var r0; var value; var items; if (a0 == null) { r0 = env0_4; } else { value = environment.__proto__; value = type(a0); if (value === 'array') { env0_4 = a0; env0_5 = a0[1] - a0[0]; } else { items = [a0, a0]; } r0 = cubehelixF; } return r0; } function _fun8189(a0) { // fn#8189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31195, offset: 0x00d3a38b, size: 32 bytes, params: 2, frame: 3 return (a0 - env1_9) / (env1_10 - env1_9); } function domainTMapDomain(a0) { // fn#8191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31274, owner: t_8047.scale.domain.tMapDomain, offset: 0x00d3a3c2, size: 153 bytes, params: 2, frame: 8 var r3; var r5; var value2; var binding; var property; var property2; let value = 0; if (!(a0 <= value)) { reducibleJoin5: while (true) { if (!(a0 >= 1)) { value2 = environment; if (a0 >= env0_2[1]) { r3 = value; reducibleLoop3: while (true) { value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; binding = env0_2; if (a0 >= binding[value + 1]) { r3 = value; continue reducibleLoop3; } r5 = value; break reducibleLoop3; } } else { r5 = value; } value = a0 - env0_2[r5]; binding = env0_2; property = binding[r5 + 1]; value /= property - env0_2[r5]; property = env0_1[r5]; binding = env0_1; property2 = binding[r5 + 1]; return property + value * (property2 - env0_1[r5]); } break reducibleJoin5; } } return a0; } function correctLightnessTMapLightness(a0) { // fn#8197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:31674, owner: t_8047.scale.correctLightness.tMapLightness, offset: 0x00d3a503, size: 293 bytes, params: 2, frame: 30 var r2; var r3; var r4; var r5; var r8; var r1; var r17; var r18; var r0; var value13; var value14; let value = a0; const getColorBinding = getColor; const value3 = 0; const colorBinding = getColorBinding(value3, true); let lab = colorBinding.lab; const property = Reflect.apply(lab, colorBinding, [])[value3]; const value5 = 1; const colorBinding2 = getColorBinding(value5, true); const property2 = colorBinding2.lab()[value3]; const value7 = property > property2; const colorBinding3 = getColorBinding(value, true); const property3 = colorBinding3.lab()[value3]; const value9 = property + (property2 - property) * value; const value10 = property3 - value9; let Math = global.Math; if (Math.abs(value10) > 0.01) { r2 = value5; r3 = value3; r4 = value10; r5 = value; r8 = 19; while (true) { r1 = value7 ? r4 * -1 : r4; if (r1 < value3) { value = r5 + 0.5 * (r2 - r5); r3 = r5; r17 = value; r18 = r2; } else { r17 = r5 + 0.5 * (r3 - r5); r18 = r5; } value = getColor(r17, true); lab = value.lab; value = Reflect.apply(lab, value, [])[value3] - value9; Math = global.Math; if (Math.abs(value) > 0.01) { value13 = typeof r8 === 'bigint' ? r8 : +r8; value14 = typeof value13 === 'bigint' ? value13 - 1n : +value13 - 1; if (value13 > value3) { r2 = r18; r4 = value; r5 = r17; r8 = value14; continue; } r0 = r17; break; } r0 = r17; break; } } else { r0 = value; } return r0; } function _fun8201(a0) { // fn#8201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:32304, offset: 0x00d3a826, size: 53 bytes, params: 2, frame: 13 return scaleF(env0_2 + a0 / (env0_0 - 1) * env0_3); } function _fun8236(a0) { // fn#8236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:40933, offset: 0x00d3b89e, size: 32 bytes, params: 2, frame: 11 let value = environment.__proto__.__proto__; value = Object.create(Color_8057_30.prototype, {constructor: {value: Color_8057_30}}); const color_8057_30 = new Color_8057_30(a0); return color_8057_30 instanceof Object ? color_8057_30 : value; } function I_8238(a0) { // fn#8238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41028, owner: t_8047.bezier.body.I, offset: 0x00d3b8cd, size: 65 bytes, params: 2, frame: 13 const env0_0 = a0; const value = [0, 1, 2].map(_fun8239); const value3 = Object.create(Color_8057_30.prototype, {constructor: {value: Color_8057_30}}); const color_8057_30 = new Color_8057_30(value, 'lab'); return color_8057_30 instanceof Object ? color_8057_30 : value3; } function I_8241(a0) { // fn#8241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41209, owner: t_8047.bezier.body.I, offset: 0x00d3b941, size: 65 bytes, params: 2, frame: 13 const env0_0 = a0; const value = [0, 1, 2].map(_fun8242); const value3 = Object.create(Color_8057_30.prototype, {constructor: {value: Color_8057_30}}); const color_8057_30 = new Color_8057_30(value, 'lab'); return color_8057_30 instanceof Object ? color_8057_30 : value3; } function I_8244(a0) { // fn#8244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41425, owner: t_8047.bezier.body.I, offset: 0x00d3b9df, size: 65 bytes, params: 2, frame: 13 const env0_0 = a0; const value = [0, 1, 2].map(_fun8245); const value3 = Object.create(Color_8057_30.prototype, {constructor: {value: Color_8057_30}}); const color_8057_30 = new Color_8057_30(value, 'lab'); return color_8057_30 instanceof Object ? color_8057_30 : value3; } function I_8247(a0) { // fn#8247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41860, owner: t_8047.bezier.body.I, offset: 0x00d3bab1, size: 76 bytes, params: 2, frame: 13 const env0_0 = a0; const env0_1 = 1 - a0; const value = [0, 1, 2].map(_fun8248); const value3 = Object.create(Color_8057_30.prototype, {constructor: {value: Color_8057_30}}); const color_8057_30 = new Color_8057_30(value, 'lab'); return color_8057_30 instanceof Object ? color_8057_30 : value3; } function _fun8239(a0) { // fn#8239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41061, offset: 0x00d3b90e, size: 51 bytes, params: 2, frame: 5 return env1_0[a0] + env0_0 * (env1_1[a0] - env1_0[a0]); } function _fun8242(a0) { // fn#8242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41242, offset: 0x00d3b982, size: 93 bytes, params: 2, frame: 7 const binding = env0_0; let value = 1 - binding; value = value * (1 - binding) * env1_0[a0]; return value + 2 * (1 - binding) * binding * env1_1[a0] + binding * binding * env1_2[a0]; } function _fun8245(a0) { // fn#8245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41458, offset: 0x00d3ba20, size: 145 bytes, params: 2, frame: 8 const binding = env0_0; let value = 1 - binding; value = value * (1 - binding) * (1 - binding) * env1_0[a0]; return value + 3 * (1 - binding) * (1 - binding) * binding * env1_1[a0] + 3 * (1 - binding) * binding * binding * env1_2[a0] + binding * binding * binding * env1_3[a0]; } function _fun8248(a0) { // fn#8248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41899, offset: 0x00d3bafd, size: 37 bytes, params: 2, frame: 13 const env0_0 = a0; return env1_4.reduce(_fun8249, 0); } function _fun8249(a0, a1, a2) { // fn#8249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:781:41928, offset: 0x00d3bb22, size: 106 bytes, params: 4, frame: 17 let value = environment.__proto__.__proto__; const property = env2_5[a2]; let Math = global.Math; value = property * Math.pow(env1_1, env2_6 - a2); Math = global.Math; value *= Math.pow(env1_0, a2); return a0 + value * a1[env0_0]; }