238 lines
8.9 KiB
React
238 lines
8.9 KiB
React
/* Metro module 7782; source: unknown; dependencies: [31, 27, 7762, 7750] */
|
|
function _fun62261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:6, offset: 0x01b5b05e, size: 221 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(31) /* metro dependency 31 */;
|
|
const processColor = (require(27) /* metro dependency 27 */).processColor;
|
|
const env0_3 = RegExp('\\s+', '');
|
|
object = {type: 0, payload: processColor('black')};
|
|
exports.default = extractFeFlood;
|
|
exports.extractFilter = function(a0) {
|
|
return {x: a0.x, y: a0.y, width: a0.width, height: a0.height, result: a0.result};
|
|
};
|
|
exports.extractIn = function(a0) {
|
|
return a0.in ? {in1: a0.in} : {};
|
|
};
|
|
exports.extractFeBlend = function(a0) {
|
|
var object = {};
|
|
if (a0.in2) {
|
|
object.in2 = a0.in2;
|
|
}
|
|
if (a0.mode) {
|
|
object.mode = a0.mode;
|
|
}
|
|
return object;
|
|
};
|
|
exports.extractFeColorMatrix = extractFeColorMatrix;
|
|
exports.extractFeComposite = function(a0) {
|
|
var env0_0 = a0;
|
|
var object = {};
|
|
object.in1 = a0.in || '';
|
|
object.in2 = a0.in2 || '';
|
|
object.operator1 = a0.operator || 'over';
|
|
var env0_1 = object;
|
|
['k1', 'k2', 'k3', 'k4'].forEach(_fun62270);
|
|
return object;
|
|
};
|
|
exports.extractFeGaussianBlur = extractFeGaussianBlur;
|
|
exports.extractFeMerge = extractFeMerge;
|
|
}
|
|
|
|
function extractFeFlood({floodColor, floodOpacity}) { // fn#62262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:179, offset: 0x01b5b13b, size: 124 bytes, params: 2, frame: 16
|
|
const object2 = {};
|
|
object2.floodColor = floodColor == null ? env0_4 : floodColor || typeof floodColor === 'number' ? (importDefault(7762) /* metro dependency 7762 */)(floodColor) : env0_4;
|
|
if (floodOpacity != null) {
|
|
object2.floodOpacity = (importDefault(7750) /* metro dependency 7750 */)(floodOpacity);
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function extractFeColorMatrix(a0) { // fn#62266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:656, offset: 0x01b5b23e, size: 230 bytes, params: 2, frame: 16
|
|
var Array;
|
|
var isArray;
|
|
var value;
|
|
const object2 = {};
|
|
let values = a0.values;
|
|
if (values !== undefined) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
values = a0.values;
|
|
value = Reflect.apply(isArray, Array, [values]);
|
|
values = a0.values;
|
|
if (value) {
|
|
object2.values = values.map(function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (typeof value === 'number') {
|
|
r0 = value;
|
|
} else {
|
|
value = (0, global.parseFloat)(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
} else if (typeof values === 'number') {
|
|
object2.values = [a0.values];
|
|
} else if (typeof a0.values === 'string') {
|
|
value = a0.values.split(env0_3);
|
|
value = value.map(global.parseFloat);
|
|
object2.values = value.filter(_fun62268);
|
|
} else {
|
|
global.console.warn('Invalid value for FeColorMatrix `values` prop');
|
|
}
|
|
}
|
|
if (a0.type) {
|
|
object2.type = a0.type;
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function extractFeComposite(a0) { // fn#62269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1093, offset: 0x01b5b346, size: 96 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
const object2 = {};
|
|
object2.in1 = a0.in || '';
|
|
let in2 = a0.in2;
|
|
in2 = !in2 ? '' : in2;
|
|
object2.in2 = in2;
|
|
let operator = a0.operator;
|
|
operator = !operator ? 'over' : operator;
|
|
object2.operator1 = operator;
|
|
['k1', 'k2', 'k3', 'k4'].forEach(_fun62270);
|
|
return object2;
|
|
}
|
|
|
|
function extractFeGaussianBlur(a0) { // fn#62271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1305, offset: 0x01b5b3de, size: 392 bytes, params: 2, frame: 17
|
|
var r5;
|
|
var r4;
|
|
var r3;
|
|
var value;
|
|
var Number;
|
|
var value2;
|
|
const object2 = {};
|
|
const Array = global.Array;
|
|
const isArray = Array.isArray;
|
|
let stdDeviation = a0.stdDeviation;
|
|
if (Reflect.apply(isArray, Array, [stdDeviation])) {
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
value = 0;
|
|
object2.stdDeviationX = Number(stdDeviation[value]) || value;
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
object2.stdDeviationY = Number(stdDeviation[1]) || value;
|
|
} else {
|
|
stdDeviation = a0.stdDeviation;
|
|
if (typeof stdDeviation !== 'string') {
|
|
stdDeviation = a0.stdDeviation;
|
|
value = typeof stdDeviation === 'number';
|
|
if (value) {
|
|
r4 = value;
|
|
} else {
|
|
stdDeviation = a0.stdDeviation;
|
|
value = typeof stdDeviation === 'string';
|
|
if (value) {
|
|
stdDeviation = a0.stdDeviation;
|
|
r5 = !stdDeviation.match(env0_3);
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
r4 = r5;
|
|
}
|
|
if (r4) {
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
value = Number(stdDeviation);
|
|
r4 = value || 0;
|
|
object2.stdDeviationX = r4;
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
value = Number(stdDeviation);
|
|
r4 = value || 0;
|
|
object2.stdDeviationY = r4;
|
|
}
|
|
} else {
|
|
stdDeviation = a0.stdDeviation;
|
|
if (stdDeviation.match(env0_3)) {
|
|
value = a0.stdDeviation.split(env0_3);
|
|
Number = global.Number;
|
|
value2 = 0;
|
|
r3 = Number(value[value2]) || value2;
|
|
object2.stdDeviationX = r3;
|
|
Number = global.Number;
|
|
value = Number(value[1]);
|
|
r3 = value || value2;
|
|
object2.stdDeviationY = r3;
|
|
} else {
|
|
stdDeviation = a0.stdDeviation;
|
|
value = typeof stdDeviation === 'number';
|
|
if (value) {
|
|
r4 = value;
|
|
} else {
|
|
stdDeviation = a0.stdDeviation;
|
|
value = typeof stdDeviation === 'string';
|
|
if (value) {
|
|
stdDeviation = a0.stdDeviation;
|
|
r5 = !stdDeviation.match(env0_3);
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
r4 = r5;
|
|
}
|
|
if (r4) {
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
value = Number(stdDeviation);
|
|
r4 = value || 0;
|
|
object2.stdDeviationX = r4;
|
|
Number = global.Number;
|
|
stdDeviation = a0.stdDeviation;
|
|
value = Number(stdDeviation);
|
|
r4 = value || 0;
|
|
object2.stdDeviationY = r4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (a0.edgeMode) {
|
|
object2.edgeMode = a0.edgeMode;
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function extractFeMerge(a0, a1) { // fn#62272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1878, offset: 0x01b5b566, size: 129 bytes, params: 3, frame: 17
|
|
var r2;
|
|
var r6;
|
|
var props;
|
|
var property;
|
|
var push;
|
|
const env0_0 = a1;
|
|
const items2 = [];
|
|
const r4 = a0.children ? env0_2.Children.map(a0.children, _fun62273) : [];
|
|
const length = r4.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r2 = value;
|
|
while (true) {
|
|
props = r4[r2].props;
|
|
property = props.in;
|
|
push = items2.push;
|
|
r6 = property || '';
|
|
Reflect.apply(push, items2, [r6]);
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < length) {
|
|
r2 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return {nodes: items2};
|
|
}
|
|
|
|
function _fun62270(a0) { // fn#62270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1225, offset: 0x01b5b3a6, size: 56 bytes, params: 2, frame: 13
|
|
if (env0_0[a0] !== undefined) {
|
|
env0_1[a0] = global.Number(env0_0[a0]) || 0;
|
|
}
|
|
}
|
|
|