"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.presetDeviceConfigs = void 0;
exports.resolveDeviceEmulation = resolveDeviceEmulation;
const mablApi_1 = require("../../mablApi");
exports.presetDeviceConfigs = {
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone15Plus]: {
        name: 'iPhone 15 Plus, 15 Pro Max [932x430]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone15Plus,
        screen: {
            horizontal: { width: 932, height: 430 },
            device_pixel_ratio: 3,
            vertical: { width: 430, height: 932 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.121 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone15]: {
        name: 'iPhone 15, 15 Pro [852x393]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone15,
        screen: {
            horizontal: { width: 852, height: 393 },
            device_pixel_ratio: 3,
            vertical: { width: 393, height: 852 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.121 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14ProMax]: {
        name: 'iPhone 14 Pro Max [932x430]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14ProMax,
        screen: {
            horizontal: { width: 932, height: 430 },
            device_pixel_ratio: 3,
            vertical: { width: 430, height: 932 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.47 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14Pro]: {
        name: 'iPhone 14 Pro [852x393]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14Pro,
        screen: {
            horizontal: { width: 852, height: 393 },
            device_pixel_ratio: 3,
            vertical: { width: 393, height: 852 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.47 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14Plus]: {
        name: 'iPhone 14 Plus [926x428]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14Plus,
        screen: {
            horizontal: { width: 926, height: 428 },
            device_pixel_ratio: 3,
            vertical: { width: 428, height: 926 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.47 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14]: {
        name: 'iPhone 14 [844x390]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone14,
        screen: {
            horizontal: { width: 844, height: 390 },
            device_pixel_ratio: 3,
            vertical: { width: 390, height: 844 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.47 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13ProMax]: {
        name: 'iPhone 13 Pro Max [926x428]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13ProMax,
        screen: {
            horizontal: { width: 926, height: 428 },
            device_pixel_ratio: 3,
            vertical: { width: 428, height: 926 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13]: {
        name: 'iPhone 13, 13 Pro [844x390]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13,
        screen: {
            horizontal: { width: 844, height: 390 },
            device_pixel_ratio: 3,
            vertical: { width: 390, height: 844 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13Mini]: {
        name: 'iPhone 13 mini [812x375]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone13Mini,
        screen: {
            horizontal: { width: 812, height: 372 },
            device_pixel_ratio: 3,
            vertical: { width: 375, height: 812 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone12ProMax]: {
        name: 'iPhone 12 Pro Max [926x428]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone12ProMax,
        screen: {
            horizontal: { width: 926, height: 428 },
            device_pixel_ratio: 3,
            vertical: { width: 428, height: 926 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone12]: {
        name: 'iPhone 12, 12 Pro [844x390]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone12,
        screen: {
            horizontal: { width: 844, height: 390 },
            device_pixel_ratio: 3,
            vertical: { width: 390, height: 844 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone11ProMax]: {
        name: 'iPhone 11 Pro Max, XS Max [896x414]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone11ProMax,
        screen: {
            horizontal: { width: 896, height: 414 },
            device_pixel_ratio: 3,
            vertical: { width: 414, height: 896 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IphoneX]: {
        name: 'iPhone X, XS, 11 Pro [812x375]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IphoneX,
        screen: {
            horizontal: { width: 812, height: 375 },
            device_pixel_ratio: 3,
            vertical: { width: 375, height: 812 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone11]: {
        name: 'iPhone 11, XR [896x414]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone11,
        screen: {
            horizontal: { width: 896, height: 414 },
            device_pixel_ratio: 2,
            vertical: { width: 414, height: 896 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadAir2020]: {
        name: 'iPad Air (2020) [1180x820]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadAir2020,
        screen: {
            horizontal: { width: 1180, height: 820 },
            device_pixel_ratio: 2,
            vertical: { width: 820, height: 1180 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadTenPointTwo]: {
        name: 'iPad 10.2" [1080x810]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadTenPointTwo,
        screen: {
            horizontal: { width: 1080, height: 810 },
            device_pixel_ratio: 2,
            vertical: { width: 810, height: 1080 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadPro]: {
        name: 'iPad Pro [1366x1024]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadPro,
        screen: {
            horizontal: { width: 1366, height: 1024 },
            device_pixel_ratio: 2,
            vertical: { width: 1024, height: 1366 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.NokiaN9]: {
        name: 'Nokia N9 [854x480]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.NokiaN9,
        screen: {
            horizontal: { width: 854, height: 480 },
            device_pixel_ratio: 1,
            vertical: { width: 480, height: 854 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyFold]: {
        name: 'Galaxy Fold [653x280]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyFold,
        screen: {
            horizontal: { width: 653, height: 280 },
            device_pixel_ratio: 3,
            vertical: { width: 280, height: 653 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS8]: {
        name: 'Galaxy S8, S8+, Note 8 [740x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS8,
        screen: {
            horizontal: { width: 740, height: 360 },
            device_pixel_ratio: 4,
            vertical: { width: 360, height: 740 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 7.0; SM-G892A Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS21]: {
        name: 'Galaxy S21 [800x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS21,
        screen: {
            horizontal: { width: 800, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 800 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 11; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS22]: {
        name: 'Galaxy S22 [780x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS22,
        screen: {
            horizontal: { width: 780, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 780 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-S901U1) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS23]: {
        name: 'Galaxy S23 [780x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS23,
        screen: {
            horizontal: { width: 780, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 780 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 13; SM-S911U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyTabS7]: {
        name: 'Galaxy Tab S7 [1280x800]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyTabS7,
        screen: {
            horizontal: { width: 1280, height: 800 },
            device_pixel_ratio: 2,
            vertical: { width: 800, height: 1280 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 11; SM-T870) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.114 Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.SurfaceDuo]: {
        name: 'Surface Duo [720x540]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.SurfaceDuo,
        screen: {
            horizontal: { width: 720, height: 540 },
            device_pixel_ratio: 2.5,
            vertical: { width: 540, height: 720 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Jiophone2]: {
        name: 'JioPhone 2 [320x240]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Jiophone2,
        screen: {
            horizontal: { width: 320, height: 240 },
            device_pixel_ratio: 1,
            vertical: { width: 240, height: 320 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Mobile; LYF/F300B/LYF-F300B-001-01-15-130718-i;Android; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel2Xl]: {
        name: 'Pixel 2 XL [823x411]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel2Xl,
        screen: {
            horizontal: { width: 823, height: 411 },
            device_pixel_ratio: 3.5,
            vertical: { width: 411, height: 823 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel2]: {
        name: 'Pixel 2 [731x411]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel2,
        screen: {
            horizontal: { width: 731, height: 411 },
            device_pixel_ratio: 2.625,
            vertical: { width: 411, height: 731 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel6]: {
        name: 'Pixel 6 [915x412]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Pixel6,
        screen: {
            horizontal: { width: 915, height: 412 },
            device_pixel_ratio: 2.625,
            vertical: { width: 412, height: 915 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 12; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.50 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MotoG4]: {
        name: 'Moto G4 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MotoG4,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone678Plus]: {
        name: 'iPhone 6/7/8 Plus [736x414]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone678Plus,
        screen: {
            horizontal: { width: 736, height: 414 },
            device_pixel_ratio: 3,
            vertical: { width: 414, height: 736 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone678]: {
        name: 'iPhone 6/7/8 [667x375]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone678,
        screen: {
            horizontal: { width: 667, height: 375 },
            device_pixel_ratio: 2,
            vertical: { width: 375, height: 667 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone5Se]: {
        name: 'iPhone 5/SE [568x320]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone5Se,
        screen: {
            horizontal: { width: 568, height: 320 },
            device_pixel_ratio: 2,
            vertical: { width: 320, height: 568 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone4]: {
        name: 'iPhone 4 [480x320]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Iphone4,
        screen: {
            horizontal: { width: 480, height: 320 },
            device_pixel_ratio: 2,
            vertical: { width: 320, height: 480 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadMini4]: {
        name: 'iPad Mini 4 [1024x768]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadMini4,
        screen: {
            horizontal: { width: 1024, height: 768 },
            device_pixel_ratio: 2,
            vertical: { width: 768, height: 1024 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadMini]: {
        name: 'iPad Mini [1024x768]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.IpadMini,
        screen: {
            horizontal: { width: 1024, height: 768 },
            device_pixel_ratio: 1,
            vertical: { width: 768, height: 1024 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Ipad]: {
        name: 'iPad [1024x768]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Ipad,
        screen: {
            horizontal: { width: 1024, height: 768 },
            device_pixel_ratio: 2,
            vertical: { width: 768, height: 1024 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS6]: {
        name: 'Galaxy S6, S7, S7 Edge [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS6,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS5]: {
        name: 'Galaxy S5 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyS5,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyNote3]: {
        name: 'Galaxy Note 3 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyNote3,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxySIii]: {
        name: 'Galaxy S3 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxySIii,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 2,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyNoteIi]: {
        name: 'Galaxy Note 2 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.GalaxyNoteIi,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 2,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; U; Android 4.1; en-us; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MicrosoftLumia950]: {
        name: 'Microsoft Lumia 950 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MicrosoftLumia950,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 4,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MicrosoftLumia550]: {
        name: 'Microsoft Lumia 550 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.MicrosoftLumia550,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 2,
            vertical: { width: 640, height: 360 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.NokiaLumia520]: {
        name: 'Nokia Lumia 520 [533x320]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.NokiaLumia520,
        screen: {
            horizontal: { width: 533, height: 320 },
            device_pixel_ratio: 1.5,
            vertical: { width: 320, height: 533 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LgOptimusL70]: {
        name: 'LG Optimus L70 [640x384]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LgOptimusL70,
        screen: {
            horizontal: { width: 640, height: 384 },
            device_pixel_ratio: 1.25,
            vertical: { width: 384, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.BlackberryZ30]: {
        name: 'BlackBerry Z30 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.BlackberryZ30,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 2,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.0.9.2372 Mobile Safari/537.10+',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.BlackberryPlaybook]: {
        name: 'BlackBerry PlayBook [1024x600]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.BlackberryPlaybook,
        screen: {
            horizontal: { width: 1024, height: 600 },
            device_pixel_ratio: 1,
            vertical: { width: 600, height: 1024 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML like Gecko) Version/7.2.1.0 Safari/536.2+',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus10]: {
        name: 'Nexus 10 [1280x800]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus10,
        screen: {
            horizontal: { width: 1280, height: 800 },
            device_pixel_ratio: 2,
            vertical: { width: 800, height: 1280 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus7]: {
        name: 'Nexus 7 [960x600]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus7,
        screen: {
            horizontal: { width: 960, height: 600 },
            device_pixel_ratio: 2,
            vertical: { width: 600, height: 960 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus6p]: {
        name: 'Nexus 6P [732x412]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus6p,
        screen: {
            horizontal: { width: 732, height: 412 },
            device_pixel_ratio: 3.5,
            vertical: { width: 412, height: 732 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus6]: {
        name: 'Nexus 6 [732x412]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus6,
        screen: {
            horizontal: { width: 732, height: 412 },
            device_pixel_ratio: 3.5,
            vertical: { width: 412, height: 732 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus5x]: {
        name: 'Nexus 5X [732x412]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus5x,
        screen: {
            horizontal: { width: 732, height: 412 },
            device_pixel_ratio: 2.625,
            vertical: { width: 412, height: 732 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus5]: {
        name: 'Nexus 5 [640x360]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus5,
        screen: {
            horizontal: { width: 640, height: 360 },
            device_pixel_ratio: 3,
            vertical: { width: 360, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus4]: {
        name: 'Nexus 4 [640x384]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.Nexus4,
        screen: {
            horizontal: { width: 640, height: 384 },
            device_pixel_ratio: 2,
            vertical: { width: 384, height: 640 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Phone,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.KindleFireHdx]: {
        name: 'Kindle Fire HDX [1280x800]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.KindleFireHdx,
        screen: {
            horizontal: { width: 1280, height: 800 },
            device_pixel_ratio: 2,
            vertical: { width: 800, height: 1280 },
        },
        capabilities: [
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch,
            mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Mobile,
        ],
        user_agent: 'Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true',
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Tablet,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithTouch]: {
        name: 'Laptop with touch [1280x950]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithTouch,
        screen: {
            horizontal: { width: 1280, height: 950 },
            device_pixel_ratio: 1,
            vertical: { width: 950, height: 1280 },
        },
        capabilities: [mablApi_1.DeviceEmulationConfiguration.CapabilitiesEnum.Touch],
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Notebook,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithHidpiScreen]: {
        name: 'Laptop with HiDPI screen [1440x900]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithHidpiScreen,
        screen: {
            horizontal: { width: 1440, height: 900 },
            device_pixel_ratio: 2,
            vertical: { width: 900, height: 1440 },
        },
        capabilities: [],
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Notebook,
    },
    [mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithMdpiScreen]: {
        name: 'Laptop with MDPI screen [1280x800]',
        preset_type: mablApi_1.DeviceEmulationConfiguration.PresetTypeEnum.LaptopWithMdpiScreen,
        screen: {
            horizontal: { width: 1280, height: 800 },
            device_pixel_ratio: 1,
            vertical: { width: 800, height: 1280 },
        },
        capabilities: [],
        type: mablApi_1.DeviceEmulationConfiguration.TypeEnum.Notebook,
    },
};
function resolveDeviceEmulation(devicePreset, deviceOrientation) {
    const knownConfig = exports.presetDeviceConfigs[devicePreset];
    const deviceConfig = knownConfig ?? {
        name: devicePreset,
        preset_type: devicePreset,
    };
    const validOrientations = new Set([
        mablApi_1.DeviceEmulation.OrientationEnum.PortraitPrimary,
        mablApi_1.DeviceEmulation.OrientationEnum.PortraitSecondary,
        mablApi_1.DeviceEmulation.OrientationEnum.LandscapePrimary,
        mablApi_1.DeviceEmulation.OrientationEnum.LandscapeSecondary,
    ]);
    const orientation = deviceOrientation && validOrientations.has(deviceOrientation)
        ? deviceOrientation
        : mablApi_1.DeviceEmulation.OrientationEnum.PortraitPrimary;
    return {
        device_config: deviceConfig,
        orientation,
    };
}
