1295 lines
39 KiB
React
1295 lines
39 KiB
React
/* Metro module 82; source: unknown; dependencies: [57, 38] */
|
|
function _fun1485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:107:6, offset: 0x00c5e762, size: 108 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
exports.default = processFilter;
|
|
}
|
|
|
|
function _getFilterAmount(a0, a1) { // fn#1486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:107:106, offset: 0x00c5e7ce, size: 385 bytes, params: 3, frame: 18
|
|
var r3;
|
|
var r4;
|
|
var r1;
|
|
var RegExp;
|
|
var value4;
|
|
var regExp;
|
|
var isNaN;
|
|
var Number;
|
|
var value6;
|
|
var property;
|
|
let value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 === 'string') {
|
|
RegExp = global.RegExp;
|
|
value4 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
regExp = new RegExp(RegExp('([+-]?\\d*(\\.\\d+)?)([a-zA-Z%]+)?', 'g'));
|
|
value = (regExp instanceof Object ? regExp : value4).exec(value);
|
|
if (value) {
|
|
isNaN = global.isNaN;
|
|
Number = global.Number;
|
|
if (isNaN(Number(value[1]))) {
|
|
return undefined;
|
|
}
|
|
Number = global.Number;
|
|
value6 = Number(value[1]);
|
|
property = value[3];
|
|
r3 = value6;
|
|
r4 = property;
|
|
if (a0 === 'hueRotate') {
|
|
if (r3 === 0) {
|
|
return 0;
|
|
}
|
|
if (r4 === 'deg') {
|
|
if (r4 !== 'rad') {
|
|
r1 = r3;
|
|
} else {
|
|
value = 180 * r3;
|
|
value /= global.Math.PI;
|
|
r1 = value;
|
|
}
|
|
return r1;
|
|
}
|
|
if (r4 !== 'rad') {
|
|
return undefined;
|
|
}
|
|
if (r4 !== 'rad') {
|
|
r1 = r3;
|
|
} else {
|
|
value = 180 * r3;
|
|
value /= global.Math.PI;
|
|
r1 = value;
|
|
}
|
|
return r1;
|
|
}
|
|
if (a0 === 'blur') {
|
|
if (r4) {
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r3;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r3;
|
|
}
|
|
if (a0 === 'brightness') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'contrast') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'grayscale') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'invert') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'opacity') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'saturate') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'sepia') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
const value3 = undefined;
|
|
if (value2 === 'number') {
|
|
r3 = value;
|
|
r4 = value3;
|
|
if (a0 === 'hueRotate') {
|
|
if (r3 === 0) {
|
|
return 0;
|
|
}
|
|
if (r4 === 'deg') {
|
|
if (r4 !== 'rad') {
|
|
r1 = r3;
|
|
} else {
|
|
value = 180 * r3;
|
|
value /= global.Math.PI;
|
|
r1 = value;
|
|
}
|
|
return r1;
|
|
}
|
|
if (r4 !== 'rad') {
|
|
return undefined;
|
|
}
|
|
if (r4 !== 'rad') {
|
|
r1 = r3;
|
|
} else {
|
|
value = 180 * r3;
|
|
value /= global.Math.PI;
|
|
r1 = value;
|
|
}
|
|
return r1;
|
|
}
|
|
if (a0 === 'blur') {
|
|
if (r4) {
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r3;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r3;
|
|
}
|
|
if (a0 === 'brightness') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'contrast') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'grayscale') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'invert') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'opacity') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'saturate') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (a0 === 'sepia') {
|
|
if (r4) {
|
|
if (r4 === '%') {
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r4 !== 'px') {
|
|
return undefined;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
if (r3 < 0) {
|
|
return undefined;
|
|
}
|
|
return r4 !== '%' ? r3 : r3 / 100;
|
|
}
|
|
return undefined;
|
|
}
|
|
return value3;
|
|
}
|
|
|
|
function parseDropShadow(a0) { // fn#1487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:107:657, offset: 0x00c5e94f, size: 678 bytes, params: 2, frame: 35
|
|
var r2;
|
|
var r3;
|
|
var r6;
|
|
var r13;
|
|
var r14;
|
|
var r0;
|
|
var r20;
|
|
var r24;
|
|
var value2;
|
|
var value3;
|
|
var object2;
|
|
var value4;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var defaultImport;
|
|
var value6;
|
|
var value7;
|
|
var color;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var error;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var defaultImport2;
|
|
var value19;
|
|
var standardDeviation;
|
|
var parseLengthBinding;
|
|
var length;
|
|
var offsetY;
|
|
var length2;
|
|
var offsetX;
|
|
var length3;
|
|
let value = a0;
|
|
if (typeof value !== 'string') {
|
|
r20 = value;
|
|
} else {
|
|
value2 = undefined;
|
|
value3 = 0;
|
|
object2 = {'offsetX': 0, 'offsetY': 0};
|
|
value4 = false;
|
|
iterator = value.split(RegExp('\\s+(?![^(]*\\))', ''))[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = null;
|
|
r2 = value2;
|
|
r3 = value2;
|
|
r6 = iterator;
|
|
r13 = value3;
|
|
r14 = value4;
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === value2) {
|
|
if (value == r3) {
|
|
r0 = value;
|
|
} else if (value == r2) {
|
|
r0 = value;
|
|
} else {
|
|
object2.offsetX = r3;
|
|
object2.offsetY = r2;
|
|
r0 = object2;
|
|
}
|
|
}
|
|
r20 = r0;
|
|
}
|
|
object2 = {'offsetX': 0, 'offsetY': 0};
|
|
value = undefined;
|
|
let value17 = null;
|
|
let properties = Object.keys(r20);
|
|
let properties2 = 0;
|
|
let properties3 = properties.length;
|
|
if (properties === value) {
|
|
r2 = value;
|
|
r3 = value;
|
|
if (value17 == r3) {
|
|
r0 = value17;
|
|
} else if (value17 == r2) {
|
|
r0 = value17;
|
|
} else {
|
|
object2.offsetX = r3;
|
|
object2.offsetY = r2;
|
|
r0 = object2;
|
|
}
|
|
} else {
|
|
var r4 = value;
|
|
r6 = value;
|
|
var r16 = properties2;
|
|
loopExit46: while (true) {
|
|
propertyName = properties[r16];
|
|
propertyName2 = r16 + 1;
|
|
if (propertyName === value) {
|
|
r2 = r4;
|
|
r3 = r6;
|
|
if (value17 == r3) {
|
|
r0 = value17;
|
|
continue;
|
|
}
|
|
if (value17 == r2) {
|
|
r0 = value17;
|
|
continue;
|
|
}
|
|
object2.offsetX = r3;
|
|
object2.offsetY = r2;
|
|
r0 = object2;
|
|
return r0;
|
|
}
|
|
if (propertyName === 'offsetX') {
|
|
offsetX = r20.offsetX;
|
|
if (typeof offsetX === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
offsetX = r20.offsetX;
|
|
length3 = parseLengthBinding(offsetX);
|
|
r6 = length3;
|
|
} else {
|
|
offsetX = r20.offsetX;
|
|
r6 = offsetX;
|
|
}
|
|
if (value17 == r6) {
|
|
return value17;
|
|
}
|
|
r16 = propertyName2;
|
|
continue;
|
|
}
|
|
if (propertyName === 'offsetY') {
|
|
offsetY = r20.offsetY;
|
|
if (typeof offsetY === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
offsetY = r20.offsetY;
|
|
length2 = parseLengthBinding(offsetY);
|
|
r4 = length2;
|
|
} else {
|
|
offsetY = r20.offsetY;
|
|
r4 = offsetY;
|
|
}
|
|
if (value17 == r4) {
|
|
return value17;
|
|
}
|
|
r16 = propertyName2;
|
|
continue;
|
|
}
|
|
if (propertyName === 'standardDeviation') {
|
|
standardDeviation = r20.standardDeviation;
|
|
if (typeof standardDeviation === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
standardDeviation = r20.standardDeviation;
|
|
length = parseLengthBinding(standardDeviation);
|
|
r24 = length;
|
|
} else {
|
|
standardDeviation = r20.standardDeviation;
|
|
r24 = standardDeviation;
|
|
}
|
|
if (value17 == r24) {
|
|
return value17;
|
|
}
|
|
if (r24 < 0) {
|
|
return value17;
|
|
}
|
|
object2.standardDeviation = r24;
|
|
r16 = propertyName2;
|
|
} else {
|
|
if (propertyName !== 'color') {
|
|
break loopExit46;
|
|
}
|
|
defaultImport2 = importDefault(dependencyMap[1]);
|
|
color = r20.color;
|
|
value19 = defaultImport2(color);
|
|
if (value17 == value19) {
|
|
return value17;
|
|
}
|
|
object2.color = value19;
|
|
r16 = propertyName2;
|
|
}
|
|
}
|
|
return value17;
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
defaultImport = importDefault(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = defaultImport(item);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = value == value6;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value7) {
|
|
try {
|
|
value11 = value3 === r13;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value11) {
|
|
try {
|
|
value16 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r3 = item;
|
|
r13 = value16;
|
|
} else {
|
|
try {
|
|
value12 = r13 === 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value12) {
|
|
if (r14) {
|
|
item2.return();
|
|
r0 = value;
|
|
break reducibleLoop3;
|
|
}
|
|
try {
|
|
value15 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item;
|
|
r13 = value15;
|
|
} else {
|
|
try {
|
|
value13 = r13 === 2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value13) {
|
|
item2.return();
|
|
r0 = value;
|
|
break reducibleLoop3;
|
|
}
|
|
if (r14) {
|
|
item2.return();
|
|
r0 = value;
|
|
break reducibleLoop3;
|
|
}
|
|
try {
|
|
object2.standardDeviation = item;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value14 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r13 = value14;
|
|
}
|
|
}
|
|
} else {
|
|
try {
|
|
color = object2.color;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = value != color;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
item2.return();
|
|
r0 = value;
|
|
break reducibleLoop3;
|
|
}
|
|
try {
|
|
value9 = value == r3;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin16: while (true) {
|
|
if (value9) {
|
|
break reducibleJoin16;
|
|
}
|
|
value10 = true;
|
|
r14 = value10;
|
|
break reducibleJoin16;
|
|
}
|
|
try {
|
|
object2.color = item;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
r6 = item2;
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === value2) {
|
|
reducibleJoin44: while (true) {
|
|
if (value == r3) {
|
|
r0 = value;
|
|
break reducibleJoin44;
|
|
}
|
|
if (value == r2) {
|
|
r0 = value;
|
|
break reducibleJoin44;
|
|
}
|
|
object2.offsetX = r3;
|
|
object2.offsetY = r2;
|
|
r0 = object2;
|
|
break reducibleJoin44;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
r20 = r0;
|
|
object2 = {'offsetX': 0, 'offsetY': 0};
|
|
value = undefined;
|
|
value17 = null;
|
|
properties = Object.keys(r20);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === value) {
|
|
r2 = value;
|
|
r3 = value;
|
|
} else {
|
|
r4 = value;
|
|
r6 = value;
|
|
r16 = properties2;
|
|
reducibleLoop46: while (true) {
|
|
propertyName = properties[r16];
|
|
propertyName2 = r16 + 1;
|
|
if (propertyName === value) {
|
|
r2 = r4;
|
|
r3 = r6;
|
|
break reducibleLoop46;
|
|
}
|
|
if (propertyName === 'offsetX') {
|
|
offsetX = r20.offsetX;
|
|
if (typeof offsetX === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
offsetX = r20.offsetX;
|
|
length3 = parseLengthBinding(offsetX);
|
|
r6 = length3;
|
|
} else {
|
|
offsetX = r20.offsetX;
|
|
r6 = offsetX;
|
|
}
|
|
if (value17 == r6) {
|
|
return value17;
|
|
}
|
|
r16 = propertyName2;
|
|
continue reducibleLoop46;
|
|
}
|
|
if (propertyName === 'offsetY') {
|
|
offsetY = r20.offsetY;
|
|
if (typeof offsetY === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
offsetY = r20.offsetY;
|
|
length2 = parseLengthBinding(offsetY);
|
|
r4 = length2;
|
|
} else {
|
|
offsetY = r20.offsetY;
|
|
r4 = offsetY;
|
|
}
|
|
if (value17 == r4) {
|
|
return value17;
|
|
}
|
|
r16 = propertyName2;
|
|
continue reducibleLoop46;
|
|
}
|
|
if (propertyName === 'standardDeviation') {
|
|
standardDeviation = r20.standardDeviation;
|
|
if (typeof standardDeviation === 'string') {
|
|
parseLengthBinding = parseLength;
|
|
standardDeviation = r20.standardDeviation;
|
|
length = parseLengthBinding(standardDeviation);
|
|
r24 = length;
|
|
} else {
|
|
standardDeviation = r20.standardDeviation;
|
|
r24 = standardDeviation;
|
|
}
|
|
if (value17 == r24) {
|
|
return value17;
|
|
}
|
|
if (r24 < 0) {
|
|
return value17;
|
|
}
|
|
object2.standardDeviation = r24;
|
|
r16 = propertyName2;
|
|
continue reducibleLoop46;
|
|
}
|
|
if (propertyName !== 'color') {
|
|
return value17;
|
|
}
|
|
defaultImport2 = importDefault(dependencyMap[1]);
|
|
color = r20.color;
|
|
value19 = defaultImport2(color);
|
|
if (value17 == value19) {
|
|
return value17;
|
|
}
|
|
object2.color = value19;
|
|
r16 = propertyName2;
|
|
continue reducibleLoop46;
|
|
}
|
|
}
|
|
reducibleJoin75: while (true) {
|
|
if (value17 == r3) {
|
|
r0 = value17;
|
|
break reducibleJoin75;
|
|
}
|
|
if (value17 == r2) {
|
|
r0 = value17;
|
|
break reducibleJoin75;
|
|
}
|
|
object2.offsetX = r3;
|
|
object2.offsetY = r2;
|
|
r0 = object2;
|
|
break reducibleJoin75;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function processFilter(a0) { // fn#1489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:107:1907, offset: 0x00c5ec7b, size: 574 bytes, params: 2, frame: 32
|
|
var r2;
|
|
var r1;
|
|
var r16;
|
|
var r17;
|
|
var Array;
|
|
var isArray;
|
|
var TypeError;
|
|
var value2;
|
|
var typeError;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var binding;
|
|
var Object;
|
|
var entries;
|
|
var value3;
|
|
var property;
|
|
var value4;
|
|
var property2;
|
|
var value5;
|
|
var _getFilterAmountBinding;
|
|
var value6;
|
|
var value7;
|
|
var object3;
|
|
var push;
|
|
var parseDropShadowBinding;
|
|
var dropShadow;
|
|
var value8;
|
|
var object4;
|
|
var error;
|
|
var replace;
|
|
var regexp;
|
|
var exec;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var toLowerCase;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var dropShadow2;
|
|
var value16;
|
|
const items2 = [];
|
|
if (a0 == null) {
|
|
return items2;
|
|
}
|
|
let value = typeof a0;
|
|
reducibleJoin6: while (true) {
|
|
reducibleJoin53: while (true) {
|
|
if (value !== 'string') {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (!Reflect.apply(isArray, Array, [a0])) {
|
|
TypeError = global.TypeError;
|
|
value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
value += ' filter is not a string or array';
|
|
typeError = new TypeError(value);
|
|
value = typeError instanceof Object ? typeError : value2;
|
|
throw value;
|
|
}
|
|
iterator = a0[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment;
|
|
r2 = iterator;
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleJoin53;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
replace = a0.replace;
|
|
value = Reflect.apply(replace, a0, [RegExp('\\n', 'g'), ' ']);
|
|
regexp = RegExp('([\\w-]+)\\(([^()]*|\\([^()]*\\)|[^()]*\\([^()]*\\)[^()]*)\\)', 'g');
|
|
exec = regexp.exec;
|
|
value9 = Reflect.apply(exec, regexp, [value]);
|
|
value10 = environment;
|
|
value11 = 'hueRotate';
|
|
value12 = 'dropShadow';
|
|
if (!value9) {
|
|
break reducibleJoin53;
|
|
}
|
|
r1 = value9;
|
|
reducibleLoop43: while (true) {
|
|
property = r1[1];
|
|
toLowerCase = property.toLowerCase;
|
|
value13 = Reflect.apply(toLowerCase, property, []);
|
|
value14 = value13 === 'drop-shadow';
|
|
if (value14) {
|
|
dropShadow2 = parseDropShadow(r1[2]);
|
|
if (dropShadow2 == null) {
|
|
return [];
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [{dropShadow: dropShadow2}]);
|
|
} else {
|
|
reducibleJoin47: while (true) {
|
|
if (value14) {
|
|
r17 = value12;
|
|
break reducibleJoin47;
|
|
}
|
|
r16 = value13 === 'hue-rotate' ? value11 : value13;
|
|
r17 = r16;
|
|
break reducibleJoin47;
|
|
}
|
|
value15 = _getFilterAmount(r17, r1[2]);
|
|
if (value15 == null) {
|
|
return [];
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [{[r17]: value15}]);
|
|
}
|
|
exec = regexp.exec;
|
|
value16 = Reflect.apply(exec, regexp, [value]);
|
|
if (value16) {
|
|
r1 = value16;
|
|
continue reducibleLoop43;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
reducibleLoop6: while (true) {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Object = global.Object;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
entries = Object.entries;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(entries, Object, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value3[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = binding(property, 2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value4[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = value4[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = property === 'dropShadow';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value5) {
|
|
try {
|
|
parseDropShadowBinding = parseDropShadow;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
dropShadow = parseDropShadowBinding(property2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = dropShadow == null;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
item2.return();
|
|
return [];
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.dropShadow = dropShadow;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [object4]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
} else {
|
|
try {
|
|
_getFilterAmountBinding = _getFilterAmount;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = _getFilterAmountBinding(property, property2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = value6 == null;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value7) {
|
|
item2.return();
|
|
return [];
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3[property] = value6;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [object3]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
return items2;
|
|
}
|
|
continue reducibleLoop6;
|
|
}
|
|
}
|
|
|