171 lines
7.7 KiB
JavaScript
171 lines
7.7 KiB
JavaScript
/* Metro module 4773; source: unknown; dependencies: [4731] */
|
|
import * as Module04731Module from './module-04731.js'; /* Metro dependency 4731 */
|
|
|
|
function _fun41251(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:6, offset: 0x0111989d, size: 537 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const toCompany = function(a0) {
|
|
var value = a0.toLowerCase();
|
|
if (value === 'appl') {
|
|
return 'Apple';
|
|
}
|
|
if (value === 'adbe') {
|
|
return 'Adobe';
|
|
}
|
|
if (value === 'msft') {
|
|
return 'Microsoft';
|
|
}
|
|
if (value === 'sunw') {
|
|
return 'Sun Microsystems';
|
|
}
|
|
if (value === 'sgi') {
|
|
return 'Silicon Graphics';
|
|
}
|
|
if (value === 'tgnt') {
|
|
return 'Taligent';
|
|
}
|
|
return a0;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {};
|
|
object[4] = {name: 'Preferred CMM type', value: value_41253, description: description_41254};
|
|
object[8] = {name: 'Profile Version', value: function(a0, a1) {
|
|
var value = a0.getUint8(a1);
|
|
value = value.toString(10);
|
|
value += '.';
|
|
value += (a0.getUint8(a1 + 1) >> 4).toString(10);
|
|
return value + '.' + (a0.getUint8(a1 + 1) % 16).toString(10);
|
|
}};
|
|
object[12] = {name: 'Profile/Device class', value: value_41256, description: description_41257};
|
|
object[16] = {name: 'Color Space', value: value_41258};
|
|
object[20] = {name: 'Connection Space', value: value_41259};
|
|
object[24] = {name: 'ICC Profile Date', value: value_41260};
|
|
object[36] = {name: 'ICC Signature', value: function({buffer}, a1) {
|
|
var value = buffer.slice(a1, a1 + 4);
|
|
buffer = global.String.fromCharCode;
|
|
var Uint8Array = global.Uint8Array;
|
|
value = new Uint8Array(value);
|
|
return buffer.apply(null, value);
|
|
}};
|
|
object[40] = {name: 'Primary Platform', value: value_41262, description: function(a0) {
|
|
return toCompany(a0);
|
|
}};
|
|
object[48] = {name: 'Device Manufacturer', value: value_41264, description: function(a0) {
|
|
return toCompany(a0);
|
|
}};
|
|
object[52] = {name: 'Device Model Number', value: value_41266};
|
|
object[64] = {name: 'Rendering Intent', value: function(a0, a1) {
|
|
return a0.getUint32(a1);
|
|
}, description: function(a0) {
|
|
if (a0 === 0) {
|
|
return 'Perceptual';
|
|
}
|
|
if (a0 === 1) {
|
|
return 'Relative Colorimetric';
|
|
}
|
|
if (a0 === 2) {
|
|
return 'Saturation';
|
|
}
|
|
if (a0 === 3) {
|
|
return 'Absolute Colorimetric';
|
|
}
|
|
return a0;
|
|
}};
|
|
object[80] = {name: 'Profile Creator', value: value_41269};
|
|
exports.iccTags = {desc: {name: 'ICC Description'}, cprt: {name: 'ICC Copyright'},
|
|
dmdd: {name: 'ICC Device Model Description'}, vued: {name: 'ICC Viewing Conditions Description'},
|
|
dmnd: {name: 'ICC Device Manufacturer for Display'}, tech: {name: 'Technology'}};
|
|
exports.iccProfile = object;
|
|
function value_41253(a0, a1) { // fn#41253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:134, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function description_41254(a0) { // fn#41254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:211, offset: 0x01119b5d, size: 29 bytes, params: 2, frame: 12
|
|
return a0 === null ? '' : toCompany(a0);
|
|
}
|
|
|
|
function value_41256(a0, a1) { // fn#41256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:471, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41258(a0, a1) { // fn#41258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:1106, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41259(a0, a1) { // fn#41259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:1206, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41262(a0, a1) { // fn#41262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:1738, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41264(a0, a1) { // fn#41264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:1898, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41266(a0, a1) { // fn#41266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:2058, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
function value_41269(a0, a1) { // fn#41269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:2426, offset: 0x01119b2d, size: 48 bytes, params: 3, frame: 15
|
|
return (Module04731Module).getStringFromDataView(a0, a1, 4);
|
|
}
|
|
|
|
}
|
|
|
|
function description_41257(a0) { // fn#41257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:548, offset: 0x01119bf1, size: 223 bytes, params: 2, frame: 10
|
|
const value = a0.toLowerCase();
|
|
if (value === 'scnr') {
|
|
return 'Input Device profile';
|
|
}
|
|
if (value === 'mntr') {
|
|
return 'Display Device profile';
|
|
}
|
|
if (value === 'prtr') {
|
|
return 'Output Device profile';
|
|
}
|
|
if (value === 'link') {
|
|
return 'DeviceLink profile';
|
|
}
|
|
if (value === 'abst') {
|
|
return 'Abstract profile';
|
|
}
|
|
if (value === 'spac') {
|
|
return 'ColorSpace profile';
|
|
}
|
|
if (value === 'nmcl') {
|
|
return 'NamedColor profile';
|
|
}
|
|
if (value === 'cenc') {
|
|
return 'ColorEncodingSpace profile';
|
|
}
|
|
if (value === 'mid ') {
|
|
return 'MultiplexIdentification profile';
|
|
}
|
|
if (value === 'mlnk') {
|
|
return 'MultiplexLink profile';
|
|
}
|
|
if (value === 'mvis') {
|
|
return 'MultiplexVisualization profile';
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function value_41260(a0, a1) { // fn#41260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4951:1306, offset: 0x01119cd0, size: 176 bytes, params: 3, frame: 22
|
|
let value = a0.getUint16(a1);
|
|
const value3 = a0.getUint16(a1 + 2) - 1;
|
|
const uint16 = a0.getUint16(a1 + 4);
|
|
const uint162 = a0.getUint16(a1 + 6);
|
|
const uint163 = a0.getUint16(a1 + 8);
|
|
const uint164 = a0.getUint16(a1 + 10);
|
|
const Date = global.Date;
|
|
const Date2 = global.Date;
|
|
value = Date2.UTC(value, value3, uint16, uint162, uint163, uint164);
|
|
const value8 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date(value);
|
|
return (date instanceof Object ? date : value8).toISOString();
|
|
}
|
|
|
|
global.__d(_fun41251, 4773, [4731]) /* metro module 4773, dependencies: [4731] */;
|