├── src ├── index.ts ├── constants.ts ├── presets.ts ├── data_files │ ├── headers-order.json │ ├── browser-helper-file.json │ └── input-network-definition.json ├── utils.ts └── header-generator.ts ├── tsconfig.eslint.json ├── .eslintrc ├── .editorconfig ├── tsconfig.json ├── test ├── tsconfig.json ├── presets.test.ts ├── browser-list.test.ts └── generation.test.ts ├── jest.config.ts ├── .github ├── scripts │ └── before-beta-release.js └── workflows │ ├── check.yml │ └── release.yml ├── docs ├── build-docs.js └── README.md ├── package.json ├── .gitignore ├── README.md └── LICENSE /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './header-generator'; 2 | export * as PRESETS from './presets'; 3 | -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "include": [ 4 | "src", 5 | "test", 6 | "jest.config.ts" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "@apify/ts" 4 | ], 5 | "parserOptions": { 6 | "project": "tsconfig.eslint.json" 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | end_of_line = lf 10 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@apify/tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "skipLibCheck": true, 6 | }, 7 | "include": [ 8 | "./src" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDirs": [ 5 | ".", 6 | "../src" 7 | ], 8 | "noEmit": true 9 | }, 10 | "include": [ 11 | ".", 12 | "../src/**/*" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- 1 | import type { Config } from '@jest/types'; 2 | 3 | export default async (): Promise => ({ 4 | verbose: true, 5 | preset: 'ts-jest', 6 | testEnvironment: 'node', 7 | testTimeout: 20_000, 8 | collectCoverage: false, // If true it messes the injection script and the browser is not able to execute it. 9 | maxWorkers: 3, 10 | globals: { 11 | 'ts-jest': { 12 | tsconfig: '/test/tsconfig.json', 13 | }, 14 | }, 15 | }); 16 | -------------------------------------------------------------------------------- /test/presets.test.ts: -------------------------------------------------------------------------------- 1 | import { HeaderGeneratorOptions } from '../src/header-generator'; 2 | import { HeaderGenerator, PRESETS } from '../src/index'; 3 | 4 | describe('presets', () => { 5 | const generator = new HeaderGenerator(); 6 | const presets = Object.entries(PRESETS); 7 | 8 | test.each(presets)('Should work with %s', (_name, config) => { 9 | const headers = generator.getHeaders(config as HeaderGeneratorOptions); 10 | expect(headers['user-agent']).toBeDefined(); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /test/browser-list.test.ts: -------------------------------------------------------------------------------- 1 | import browsersList from 'browserslist'; 2 | 3 | import { getBrowsersFromQuery } from '../src/utils'; 4 | 5 | describe('browserList generation', () => { 6 | test('Should work with simple query', () => { 7 | const browsers = getBrowsersFromQuery('last 2 firefox versions'); 8 | expect(browsers).toHaveLength(1); 9 | expect(browsers[0].name).toBe('firefox'); 10 | }); 11 | 12 | test('Should work with advanced query - aggregate versions', () => { 13 | const browsers = getBrowsersFromQuery('cover 99.5%'); 14 | const browserList = browsersList('cover 99.5%'); 15 | expect(browsers.length < browserList.length).toBe(true); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | export const SUPPORTED_BROWSERS = [ 2 | 'chrome', 3 | 'firefox', 4 | 'safari', 5 | 'edge', 6 | ] as const; 7 | export const SUPPORTED_OPERATING_SYSTEMS = ['windows', 'macos', 'linux', 'android', 'ios'] as const; 8 | export const SUPPORTED_DEVICES = ['desktop', 'mobile'] as const; 9 | export const SUPPORTED_HTTP_VERSIONS = ['1', '2'] as const; 10 | 11 | export const BROWSER_HTTP_NODE_NAME = '*BROWSER_HTTP' as const; 12 | export const OPERATING_SYSTEM_NODE_NAME = '*OPERATING_SYSTEM' as const; 13 | export const DEVICE_NODE_NAME = '*DEVICE' as const; 14 | export const MISSING_VALUE_DATASET_TOKEN = '*MISSING_VALUE*' as const; 15 | 16 | export const HTTP1_SEC_FETCH_ATTRIBUTES = { 17 | mode: 'Sec-Fetch-Mode', 18 | dest: 'Sec-Fetch-Dest', 19 | site: 'Sec-Fetch-Site', 20 | user: 'Sec-Fetch-User', 21 | } as const; 22 | 23 | export const HTTP2_SEC_FETCH_ATTRIBUTES = { 24 | mode: 'sec-fetch-mode', 25 | dest: 'sec-fetch-dest', 26 | site: 'sec-fetch-site', 27 | user: 'sec-fetch-user', 28 | } as const; 29 | -------------------------------------------------------------------------------- /.github/scripts/before-beta-release.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | const { execSync } = require('child_process'); 4 | 5 | const PKG_JSON_PATH = path.join(__dirname, '..', '..', 'package.json'); 6 | 7 | const pkgJson = require(PKG_JSON_PATH); 8 | 9 | const PACKAGE_NAME = pkgJson.name; 10 | const VERSION = pkgJson.version; 11 | 12 | const nextVersion = getNextVersion(VERSION); 13 | console.log(`before-deploy: Setting version to ${nextVersion}`); 14 | pkgJson.version = nextVersion; 15 | 16 | fs.writeFileSync(PKG_JSON_PATH, JSON.stringify(pkgJson, null, 2) + '\n'); 17 | 18 | function getNextVersion(version) { 19 | const versionString = execSync(`npm show ${PACKAGE_NAME} versions --json`, { encoding: 'utf8'}); 20 | const versions = JSON.parse(versionString); 21 | 22 | if (versions.some(v => v === VERSION)) { 23 | console.error(`before-deploy: A release with version ${VERSION} already exists. Please increment version accordingly.`); 24 | process.exit(1); 25 | } 26 | 27 | const prereleaseNumbers = versions 28 | .filter(v => (v.startsWith(VERSION) && v.includes('-'))) 29 | .map(v => Number(v.match(/\.(\d+)$/)[1])); 30 | const lastPrereleaseNumber = Math.max(-1, ...prereleaseNumbers); 31 | return `${version}-beta.${lastPrereleaseNumber + 1}` 32 | } 33 | -------------------------------------------------------------------------------- /src/presets.ts: -------------------------------------------------------------------------------- 1 | export const MODERN_DESKTOP = { 2 | browserListQuery: 'last 5 versions', 3 | }; 4 | 5 | export const MODERN_MOBILE = { 6 | ...MODERN_DESKTOP, 7 | devices: ['mobile'], 8 | }; 9 | 10 | export const MODERN_LINUX = { 11 | ...MODERN_DESKTOP, 12 | operatingSystems: ['linux'], 13 | }; 14 | 15 | export const MODERN_LINUX_FIREFOX = { 16 | browserListQuery: 'last 5 firefox versions', 17 | operatingSystems: ['linux'], 18 | }; 19 | 20 | export const MODERN_LINUX_CHROME = { 21 | browserListQuery: 'last 5 chrome versions', 22 | operatingSystems: ['linux'], 23 | }; 24 | 25 | export const MODERN_WINDOWS = { 26 | ...MODERN_DESKTOP, 27 | operatingSystems: ['windows'], 28 | }; 29 | 30 | export const MODERN_WINDOWS_FIREFOX = { 31 | browserListQuery: 'last 5 firefox versions', 32 | operatingSystems: ['windows'], 33 | }; 34 | 35 | export const MODERN_WINDOWS_CHROME = { 36 | browserListQuery: 'last 5 chrome versions', 37 | operatingSystems: ['windows'], 38 | }; 39 | 40 | export const MODERN_MACOS = { 41 | ...MODERN_DESKTOP, 42 | operatingSystems: ['macos'], 43 | }; 44 | 45 | export const MODERN_MACOS_FIREFOX = { 46 | browserListQuery: 'last 5 firefox versions', 47 | operatingSystems: ['macos'], 48 | }; 49 | 50 | export const MODERN_MACOS_CHROME = { 51 | browserListQuery: 'last 5 chrome versions', 52 | operatingSystems: ['macos'], 53 | }; 54 | 55 | export const MODERN_ANDROID = { 56 | ...MODERN_MOBILE, 57 | operatingSystems: ['android'], 58 | 59 | }; 60 | -------------------------------------------------------------------------------- /docs/build-docs.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs-extra'); 2 | const jsdoc2md = require('jsdoc-to-markdown'); // eslint-disable-line 3 | const path = require('path'); 4 | 5 | const TEMPLATE_PATH = path.join(__dirname, 'README.md'); 6 | const README_PATH = path.resolve(__dirname, '..', 'README.md'); 7 | const SRC_DIR = path.resolve(__dirname, '..', 'src'); 8 | 9 | const getRenderOptions = (template, data) => ({ 10 | template, 11 | data, 12 | 'name-format': true, 13 | separators: true, 14 | 'param-list-format': 'table', 15 | 'property-list-format': 'table', 16 | 'heading-depth': 3, 17 | }); 18 | 19 | const generateFinalMarkdown = (text) => { 20 | // Remove 'Kind' annotations. 21 | return text.replace(/\*\*Kind\*\*.*\n/g, ''); 22 | }; 23 | 24 | const main = async () => { 25 | const indexData = await jsdoc2md.getTemplateData({ 26 | files: [path.join(SRC_DIR, 'main.js')], 27 | }); 28 | const classData = await jsdoc2md.getTemplateData({ 29 | files: [ 30 | path.join(SRC_DIR, 'header-generator.js'), 31 | ], 32 | }); 33 | 34 | let templateData = indexData.concat(classData); 35 | 36 | const EMPTY = Symbol('empty'); 37 | /* reduce templateData to an array of class names */ 38 | templateData.forEach((identifier) => { 39 | // @hideconstructor does not work, so we nudge it 40 | if (identifier.hideconstructor) { 41 | const idx = templateData.findIndex((i) => i.id === `${identifier.name}()`); 42 | templateData[idx] = EMPTY; 43 | } 44 | }); 45 | 46 | templateData = templateData.filter((d) => d !== EMPTY); 47 | 48 | const template = await fs.readFile(TEMPLATE_PATH, 'utf8'); 49 | const output = jsdoc2md.renderSync(getRenderOptions(template, templateData)); 50 | const markdown = generateFinalMarkdown(output); 51 | await fs.writeFile(README_PATH, markdown); 52 | }; 53 | 54 | main().then(() => console.log('All docs built successfully.')); 55 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "header-generator", 3 | "version": "2.0.0", 4 | "description": "NodeJs package for generating browser-like headers.", 5 | "author": { 6 | "name": "Apify", 7 | "email": "support@apify.com", 8 | "url": "https://apify.com" 9 | }, 10 | "homepage": "https://github.com/apify/header-generator#readme", 11 | "license": "Apache-2.0", 12 | "engines": { 13 | "node": ">=15.10.0" 14 | }, 15 | "files": [ 16 | "dist" 17 | ], 18 | "main": "dist/index.js", 19 | "module": "dist/index.mjs", 20 | "types": "dist/index.d.ts", 21 | "exports": { 22 | ".": { 23 | "import": "./dist/index.mjs", 24 | "require": "./dist/index.js" 25 | } 26 | }, 27 | "dependencies": { 28 | "browserslist": "^4.19.1", 29 | "generative-bayesian-network": "0.1.0-beta.1", 30 | "ow": "^0.23.0", 31 | "tslib": "^2.3.1" 32 | }, 33 | "devDependencies": { 34 | "@apify/eslint-config-ts": "^0.1.4", 35 | "@apify/tsconfig": "^0.1.0", 36 | "@types/jest": "^27.0.2", 37 | "@typescript-eslint/eslint-plugin": "^4.32.0", 38 | "@typescript-eslint/parser": "^4.32.0", 39 | "eslint": "^7.0.0", 40 | "gen-esm-wrapper": "^1.1.3", 41 | "jest": "^27.2.5", 42 | "jest-circus": "^27.2.4", 43 | "jsdoc-to-markdown": "^7.0.0", 44 | "markdown-toc": "^1.2.0", 45 | "ts-jest": "^27.0.5", 46 | "ts-node": "^10.2.1", 47 | "typescript": "^4.4.3" 48 | }, 49 | "scripts": { 50 | "build": "rimraf dist && tsc", 51 | "postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs", 52 | "prepublishOnly": "npm run build", 53 | "lint": "eslint src test", 54 | "lint:fix": "eslint src test --fix", 55 | "test": "jest", 56 | "build-docs": "npm run build && npm run build-toc && node docs/build-docs.js", 57 | "build-toc": "markdown-toc docs/README.md -i" 58 | }, 59 | "bugs": { 60 | "url": "https://github.com/apify/header-generator/issues" 61 | }, 62 | "repository": { 63 | "type": "git", 64 | "url": "git+https://github.com/apify/header-generator.git" 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- 1 | # This workflow runs for every pull request to lint and test the proposed changes. 2 | 3 | name: Check 4 | 5 | on: 6 | pull_request: 7 | 8 | jobs: 9 | # NPM install is done in a separate job and cached to speed up the following jobs. 10 | build_and_test: 11 | name: Build & Test 12 | if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} 13 | runs-on: ${{ matrix.os }} 14 | 15 | strategy: 16 | matrix: 17 | os: [ubuntu-latest, windows-latest, macos-latest] 18 | node-version: [10, 12, 14] 19 | 20 | steps: 21 | - 22 | uses: actions/checkout@v2 23 | - 24 | name: Use Node.js ${{ matrix.node-version }} 25 | uses: actions/setup-node@v1 26 | with: 27 | node-version: ${{ matrix.node-version }} 28 | - 29 | name: Cache Node Modules 30 | if: ${{ matrix.node-version == 14 }} 31 | uses: actions/cache@v2 32 | with: 33 | path: | 34 | node_modules 35 | build 36 | key: cache-${{ github.run_id }}-v14 37 | - 38 | name: Install Dependencies 39 | run: npm install 40 | - 41 | name: Run Tests 42 | run: npm test 43 | 44 | lint: 45 | name: Lint 46 | needs: [build_and_test] 47 | runs-on: ubuntu-latest 48 | 49 | steps: 50 | - 51 | uses: actions/checkout@v2 52 | - 53 | name: Use Node.js 14 54 | uses: actions/setup-node@v1 55 | with: 56 | node-version: 14 57 | - 58 | name: Load Cache 59 | uses: actions/cache@v2 60 | with: 61 | path: | 62 | node_modules 63 | build 64 | key: cache-${{ github.run_id }}-v14 65 | - 66 | run: npm run lint 67 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | package-lock.json 106 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Header generator 2 | NodeJs package for generating browser-like headers. 3 | 4 | 5 | 6 | - [Installation](#installation) 7 | - [Usage](#usage) 8 | - [Presets](#presets) 9 | - [Result example](#result-example) 10 | - [API Reference](#api-reference) 11 | 12 | 13 | 14 | ## Installation 15 | Run the `npm install header-generator` command. No further setup is needed afterwards. 16 | ## Usage 17 | To use the generator, you need to create an instance of the `HeaderGenerator` class which is exported from this package. Constructor of this class accepts a `HeaderGeneratorOptions` object, which can be used to globally specify what kind of headers you are looking for: 18 | ```js 19 | const { HeaderGenerator } = require('header-generator'); 20 | let headerGenerator = new HeaderGenerator({ 21 | browsers: [ 22 | {name: "firefox", minVersion: 80}, 23 | {name: "chrome", minVersion: 87}, 24 | "safari" 25 | ], 26 | devices: [ 27 | "desktop" 28 | ], 29 | operatingSystems: [ 30 | "windows" 31 | ] 32 | }); 33 | ``` 34 | You can then get the headers using the `getHeaders` method, either with no argument, or with another `HeaderGeneratorOptions` object, this time specifying the options only for this call (overwriting the global options when in conflict) and using the global options specified beforehands for the unspecified options: 35 | ```js 36 | let headers = headersGenerator.getHeaders({ 37 | operatingSystems: [ 38 | "linux" 39 | ], 40 | locales: ["en-US", "en"] 41 | }); 42 | ``` 43 | This method always generates a random realistic set of headers, excluding the request dependant headers, which need to be filled in afterwards. Since the generation is randomized, multiple calls to this method with the same parameters can generate multiple different outputs. 44 | 45 | ## Presets 46 | Presets are setting templates for common use cases. It saves time writing the same configuration over and over. 47 | ```js 48 | const { HeaderGenerator, PRESETS } = require('header-generator'); 49 | let headerGenerator = new HeaderGenerator(PRESETS.MODERN_WINDOWS_CHROME); 50 | ``` 51 | 52 | This preset will fill the configuration for the latest five versions of chrome for windows desktops. Checkout the available presets list here @TODO: LINK. 53 | ## Result example 54 | A result that can be generated for the usage example above: 55 | ```json 56 | { 57 | "sec-ch-ua-mobile": "?0", 58 | "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36", 59 | "accept-encoding": "gzip, deflate, br", 60 | "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 61 | "upgrade-insecure-requests": "1", 62 | "accept-language": "en-US,en;0.9", 63 | "sec-fetch-site": "same-site", 64 | "sec-fetch-mode": "navigate", 65 | "sec-fetch-user": "?1", 66 | "sec-fetch-dest": "document" 67 | } 68 | ``` 69 | ## API Reference 70 | All public classes, methods and their parameters can be inspected in this API reference. 71 | 72 | {{>all-docs~}} 73 | 74 | -------------------------------------------------------------------------------- /src/data_files/headers-order.json: -------------------------------------------------------------------------------- 1 | { 2 | "safari": [ 3 | "cookie", 4 | "Cookie", 5 | "Connection", 6 | "sec-ch-ua", 7 | "sec-ch-ua-mobile", 8 | "upgrade-insecure-requests", 9 | "Upgrade-Insecure-Requests", 10 | "accept", 11 | "Accept", 12 | "accept-encoding", 13 | "Accept-Encoding", 14 | "user-agent", 15 | "User-Agent", 16 | "accept-language", 17 | "Accept-Language", 18 | "referer", 19 | "Referer", 20 | "sec-fetch-site", 21 | "sec-fetch-mode", 22 | "sec-fetch-user", 23 | "sec-fetch-dest", 24 | "Sec-Fetch-Mode", 25 | "Sec-Fetch-Dest", 26 | "Sec-Fetch-Site", 27 | "Sec-Fetch-User", 28 | "dnt", 29 | "DNT", 30 | "te" 31 | ], 32 | "chrome": [ 33 | "Connection", 34 | "sec-ch-ua", 35 | "sec-ch-ua-mobile", 36 | "upgrade-insecure-requests", 37 | "Upgrade-Insecure-Requests", 38 | "dnt", 39 | "DNT", 40 | "user-agent", 41 | "User-Agent", 42 | "accept", 43 | "Accept", 44 | "sec-fetch-site", 45 | "sec-fetch-mode", 46 | "sec-fetch-user", 47 | "sec-fetch-dest", 48 | "Sec-Fetch-Mode", 49 | "Sec-Fetch-Dest", 50 | "Sec-Fetch-Site", 51 | "Sec-Fetch-User", 52 | "referer", 53 | "Referer", 54 | "accept-encoding", 55 | "Accept-Encoding", 56 | "accept-language", 57 | "Accept-Language", 58 | "te", 59 | "cookie", 60 | "Cookie" 61 | ], 62 | "firefox": [ 63 | "sec-ch-ua", 64 | "sec-ch-ua-mobile", 65 | "user-agent", 66 | "User-Agent", 67 | "accept", 68 | "Accept", 69 | "accept-language", 70 | "Accept-Language", 71 | "accept-encoding", 72 | "Accept-Encoding", 73 | "dnt", 74 | "DNT", 75 | "referer", 76 | "Referer", 77 | "cookie", 78 | "Cookie", 79 | "Connection", 80 | "upgrade-insecure-requests", 81 | "Upgrade-Insecure-Requests", 82 | "te", 83 | "sec-fetch-dest", 84 | "sec-fetch-mode", 85 | "sec-fetch-site", 86 | "sec-fetch-user", 87 | "Sec-Fetch-Dest", 88 | "Sec-Fetch-Mode", 89 | "Sec-Fetch-Site", 90 | "Sec-Fetch-User" 91 | ], 92 | "edge": [ 93 | "Connection", 94 | "sec-ch-ua", 95 | "sec-ch-ua-mobile", 96 | "upgrade-insecure-requests", 97 | "Upgrade-Insecure-Requests", 98 | "dnt", 99 | "DNT", 100 | "user-agent", 101 | "User-Agent", 102 | "accept", 103 | "Accept", 104 | "sec-fetch-site", 105 | "sec-fetch-mode", 106 | "sec-fetch-user", 107 | "sec-fetch-dest", 108 | "Sec-Fetch-Mode", 109 | "Sec-Fetch-Dest", 110 | "Sec-Fetch-Site", 111 | "Sec-Fetch-User", 112 | "referer", 113 | "Referer", 114 | "accept-encoding", 115 | "Accept-Encoding", 116 | "accept-language", 117 | "Accept-Language", 118 | "cookie", 119 | "Cookie", 120 | "te" 121 | ] 122 | } 123 | -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- 1 | import browsersList from 'browserslist'; 2 | import { SUPPORTED_BROWSERS } from './constants'; 3 | import { BrowserName, BrowserSpecification } from './header-generator'; 4 | 5 | export const getUserAgent = (headers: Record): string | undefined => { 6 | for (const [header, value] of Object.entries(headers)) { 7 | if (header.toLowerCase() === 'user-agent') { 8 | return value; 9 | } 10 | } 11 | return undefined; 12 | }; 13 | 14 | export const getBrowser = (userAgent?: string): BrowserName | undefined => { 15 | if (!userAgent) { 16 | return; 17 | } 18 | 19 | let browser; 20 | if (userAgent.includes('Firefox')) { 21 | browser = 'firefox'; 22 | } else if (userAgent.includes('Chrome')) { 23 | browser = 'chrome'; 24 | } else { 25 | browser = 'safari'; 26 | } 27 | 28 | return browser as BrowserName; 29 | }; 30 | 31 | const getBrowsersWithVersions = (browserList: string[]): Record => { 32 | const browsersWithVersions: Record = {}; 33 | 34 | for (const browserDefinition of browserList) { 35 | const [browserSplit, versionString] = browserDefinition.split(' '); 36 | const browser = browserSplit as BrowserName; 37 | const version = parseInt(versionString, 10); 38 | if (!SUPPORTED_BROWSERS.includes(browser)) { 39 | // eslint-disable-next-line no-continue 40 | continue; 41 | } 42 | 43 | if (browsersWithVersions[browser]) { 44 | browsersWithVersions[browser].push(version); 45 | } else { 46 | browsersWithVersions[browser] = [version]; 47 | } 48 | } 49 | 50 | return browsersWithVersions; 51 | }; 52 | 53 | const getOptimizedVersionDistribution = (browsersWithVersions: Record): BrowserSpecification[] => { 54 | const finalOptimizedBrowsers: BrowserSpecification[] = []; 55 | 56 | Object.entries(browsersWithVersions).forEach(([browser, versions]) => { 57 | const sortedVersions = versions.sort((a, b) => a - b); 58 | let lowestVersionSoFar = sortedVersions[0]; 59 | 60 | sortedVersions.forEach((version, index) => { 61 | const nextVersion = sortedVersions[index + 1]; 62 | const isLast = index === sortedVersions.length - 1; 63 | const isNextVersionGap = nextVersion - version > 1; 64 | 65 | if (isNextVersionGap || isLast) { 66 | finalOptimizedBrowsers.push({ 67 | name: browser as BrowserName, 68 | minVersion: lowestVersionSoFar, 69 | maxVersion: version, 70 | }); 71 | lowestVersionSoFar = nextVersion; 72 | } 73 | }); 74 | }); 75 | return finalOptimizedBrowsers; 76 | }; 77 | 78 | export const getBrowsersFromQuery = (browserListQuery: string): BrowserSpecification[] => { 79 | const browserList = browsersList(browserListQuery); 80 | const browsersWithVersions = getBrowsersWithVersions(browserList); 81 | return getOptimizedVersionDistribution(browsersWithVersions); 82 | }; 83 | 84 | export const shuffleArray = (array: any[]): any[] => { 85 | for (let i = array.length - 1; i > 0; i--) { 86 | const j = Math.floor(Math.random() * (i + 1)); 87 | [array[i], array[j]] = [array[j], array[i]]; 88 | } 89 | 90 | return array; 91 | }; 92 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Check & Release 2 | 3 | on: 4 | # Push to master will deploy a beta version 5 | push: 6 | branches: 7 | - master 8 | # A release via GitHub releases will deploy a latest version 9 | release: 10 | types: [ published ] 11 | 12 | jobs: 13 | # NPM install is done in a separate job and cached to speed up the following jobs. 14 | build_and_test: 15 | name: Build & Test 16 | if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} 17 | runs-on: ${{ matrix.os }} 18 | 19 | strategy: 20 | matrix: 21 | os: [ubuntu-latest, windows-latest, macos-latest] 22 | node-version: [10, 12, 14] 23 | 24 | steps: 25 | - 26 | uses: actions/checkout@v2 27 | - 28 | name: Use Node.js ${{ matrix.node-version }} 29 | uses: actions/setup-node@v1 30 | with: 31 | node-version: ${{ matrix.node-version }} 32 | - 33 | name: Cache Node Modules 34 | if: ${{ matrix.node-version == 14 }} 35 | uses: actions/cache@v2 36 | with: 37 | path: | 38 | node_modules 39 | build 40 | key: cache-${{ github.run_id }}-v14 41 | - 42 | name: Install Dependencies 43 | run: npm install 44 | - 45 | name: Run Tests 46 | run: npm test 47 | 48 | lint: 49 | name: Lint 50 | needs: [build_and_test] 51 | runs-on: ubuntu-latest 52 | 53 | steps: 54 | - 55 | uses: actions/checkout@v2 56 | - 57 | name: Use Node.js 14 58 | uses: actions/setup-node@v1 59 | with: 60 | node-version: 14 61 | - 62 | name: Load Cache 63 | uses: actions/cache@v2 64 | with: 65 | path: | 66 | node_modules 67 | build 68 | key: cache-${{ github.run_id }}-v14 69 | - 70 | run: npm run lint 71 | 72 | 73 | # The deploy job is long but there are only 2 important parts. NPM publish 74 | # and triggering of docker image builds in the apify-actor-docker repo. 75 | deploy: 76 | name: Publish to NPM 77 | needs: [lint] 78 | runs-on: ubuntu-latest 79 | steps: 80 | - 81 | uses: actions/checkout@v2 82 | - 83 | uses: actions/setup-node@v1 84 | with: 85 | node-version: 14 86 | registry-url: https://registry.npmjs.org/ 87 | - 88 | name: Load Cache 89 | uses: actions/cache@v2 90 | with: 91 | path: | 92 | node_modules 93 | build 94 | key: cache-${{ github.run_id }}-v14 95 | - 96 | # Determine if this is a beta or latest release 97 | name: Set Release Tag 98 | run: echo "RELEASE_TAG=$(if [ ${{ github.event_name }} = release ]; then echo latest; else echo beta; fi)" >> $GITHUB_ENV 99 | - 100 | # Check version consistency and increment pre-release version number for beta only. 101 | name: Bump pre-release version 102 | if: env.RELEASE_TAG == 'beta' 103 | run: node ./.github/scripts/before-beta-release.js 104 | - 105 | name: Publish to NPM 106 | run: NODE_AUTH_TOKEN=${{secrets.NPM_TOKEN}} npm publish --tag ${{ env.RELEASE_TAG }} --access public 107 | - 108 | # Latest version is tagged by the release process so we only tag beta here. 109 | name: Tag Version 110 | if: env.RELEASE_TAG == 'beta' 111 | run: | 112 | git_tag=v`node -p "require('./package.json').version"` 113 | git tag $git_tag 114 | git push origin $git_tag 115 | -------------------------------------------------------------------------------- /src/data_files/browser-helper-file.json: -------------------------------------------------------------------------------- 1 | ["chrome/100.0.4896.60|2","firefox/97.0|2","chrome/87.0.4280.67|2","chrome/99.0.4844.51|2","firefox/98.0|2","chrome/99.0.4844.84|2","firefox/88.0|2","safari/605.1.15|2","chrome/100.0.4896.75|2","chrome/61.0.3163.128|2","chrome/99.0.4844.83|2","chrome/99.0.4844.88|2","safari/604.1|2","*MISSING_VALUE*|2","chrome/100.0.4896.58|2","chrome/100.0.4896.60|1","chrome/99.0.4844.74|2","edge/100.0.1185.29|1","edge/100.0.1185.29|2","chrome/98.0.4758.102|1","chrome/99.0.4844.84|1","chrome/97.0.4692.99|2","chrome/96.0.4664.110|2","chrome/92.0.4515.166|2","edge/99.0.1150.55|2","chrome/84.0.4147.125|2","chrome/79.0.3945.79|2","chrome/98.0.4758.109|2","firefox/95.0|2","chrome/76.0.3809.71|2","chrome/75.0.3770.142|2","chrome/90.0.4430.72|2","chrome/99.0.4844.82|2","chrome/98.0.4758.102|2","chrome/98.0.4758.82|2","chrome/96.0.4664.45|2","firefox/99.0|2","chrome/99.0.4844.73|2","chrome/99.0.4844.57|2","chrome/76.0.3809.38|2","firefox/81.0|1","chrome/98.0.4758.80|2","chrome/91.0.4472.114|2","firefox/87.0|2","chrome/98.0.4758.106|2","firefox/78.0|2","firefox/91.0|2","chrome/96.0.4664.45|1","chrome/94.0.4606.71|2","chrome/77.0.3865.75|2","chrome/71.0.3578.98|2","chrome/70.0.3538.102|2","chrome/100.0.4896.75|1","firefox/96.0|2","chrome/100.0.4896.79|2","chrome/98.0.4758.141|2","chrome/51.0.7009.1032|2","chrome/86.0.4240.75|2","chrome/91.0.4472.164|2","edge/100.0.1185.27|2","chrome/80.0.3987.106|2","chrome/102.0.4983.0|2","chrome/99.0.4844.58|2","chrome/81.0.4044.92|2","chrome/98.0.4758.109|1","chrome/80.0.3987.132|2","chrome/60.0.3112.90|2","chrome/83.0.4103.101|2","edge/95.0.1020.53|2","chrome/101.0.4951.15|2","edge/99.0.1150.52|2","chrome/92.0.4515.131|2","chrome/97.0.4692.98|2","chrome/90.0.4430.210|2","chrome/98.0.4758.101|2","chrome/95.0.4638.69|2","chrome/99.0.4844.82|1","chrome/87.0.4280.141|2","edge/99.0.1150.46|2","chrome/81.0.4044.138|2","chrome/98.0.4758.87|2","chrome/99.0.4844.94|2","chrome/98.0.4758.105|2","edge/99.0.1150.30|2","chrome/86.0.4240.198|2","firefox/84.0|2","firefox/98.0|1","chrome/98.0.4758.136|2","chrome/99.0.7113.93|2","chrome/94.0.4606.56|2","chrome/92.0.4515.107|2","chrome/83.0.4103.106|2","chrome/99.0.4844.51|1","chrome/94.0.4606.85|2","chrome/102.0.4972.0|2","chrome/91.0.4472.106|2","chrome/96.0.4664.93|2","edge/97.0.1072.76|2","chrome/88.0.4324.96|2","chrome/93.0.4577.82|2","chrome/86.0.4240.99|2","chrome/79.0.3945.116|1","chrome/98.0.4758.121|2","edge/99.0.1150.55|1","chrome/89.0.4389.82|2","chrome/73.0.3683.75|2","chrome/93.0.4577.0|2","edge/99.0.1150.39|2","chrome/98.0.4758.107|2","chrome/69.0.3497.100|2","chrome/92.0.4515.159|2","chrome/98.0.4758.132|2","chrome/98.0.4758.91|2","chrome/100.0.4896.54|2","chrome/87.0.4280.88|1","firefox/100.0|2","chrome/100.0.4896.46|2","chrome/79.0.3945.116|2","chrome/78.0.3904.96|2","firefox/56.0|2","chrome/95.0.4638.74|2","edge/18.19577|2","chrome/98.0.4695.0|2","chrome/91.0.4472.101|2","firefox/92.0|2","edge/98.0.1108.50|2","chrome/75.0.3765.0|2","chrome/87.0.4280.88|2","chrome/88.0.4324.93|2","edge/98.0.1108.62|2","firefox/74.0|2","chrome/101.0.4951.7|2","chrome/102.0.4962.0|2","chrome/101.0.4929.0|2","chrome/97.0.4692.71|2","chrome/97.0.4692.87|2","chrome/90.0.4430.93|2","chrome/96.0.4664.111|1","firefox/94.0|2","chrome/100.0.4896.30|2","chrome/97.0.4692.104|2","chrome/99.0.4844.74|1","edge/98.0.1108.43|1","edge/99.0.1150.36|2","chrome/101.0.4929.5|2","chrome/90.0.4430.212|2","chrome/91.0.4472.109|2","chrome/95.0.4638.54|2","chrome/98.0.4758.80|1","chrome/97.0.4692.99|1","chrome/89.0.4389.90|2","chrome/96.0.4664.104|2","chrome/99.0.4844.0|2","chrome/80.0.3987.163|2","chrome/90.0.4430.91|2","chrome/88.0.4324.96|1","firefox/90.0|2","edge/97.0.1072.62|2","chrome/99.0.4844.66|2","chrome/80.0.3987.0|2","chrome/87.0.4280.101|2","edge/98.0.1108.43|2","edge/99.0.1150.16|2","edge/99.0.1150.39|1","chrome/91.0.4472.77|2","chrome/81.0.4044.0|1","edge/101.0.1193.0|2","chrome/83.0.4103.97|2","chrome/93.0.4577.8|2","chrome/96.0.4664.174|2","chrome/49.0.7383.1298|2","chrome/92.0.4515.159|1","chrome/77.0.3865.116|2","edge/100.0.1185.7|2","chrome/89.0.4389.116|2","chrome/100.0.4878.0|2","chrome/94.0.4606.54|2","chrome/97.0.4692.102|2","chrome/83.0.4103.116|1","chrome/97.0.4692.71|1","chrome/74.0.3729.136|2","edge/98.0.1108.62|1","chrome/87.0.4280.66|2","edge/97.0.1072.55|2","chrome/99.0.4844.16|2","chrome/92.0.4515.105|2","firefox/93.0|2","edge/97.0.1072.69|2","chrome/74.0.3729.131|2","chrome/73.0.3683.103|2","chrome/96.0.4664.92|2","safari/604.1|1","chrome/99.0.4864.208|2","chrome/81.0.4044.113|2","chrome/91.0.4472.124|2","chrome/88.0.4324.150|2","chrome/96.0.4664.55|2","chrome/83.0.4103.116|2","chrome/96.0.4664.175|2","edge/99.0.1150.30|1","chrome/87.0.4280.144|2","chrome/98.0.4758.82|1","safari/602.1|2","chrome/98.0.4758.34|2","firefox/89.0|2","chrome/64.0.3282.137|2","chrome/98.0.4758.81|2","chrome/94.0.4606.61|2","chrome/88.0.4324.152|2","chrome/97.0.4692.70|2","chrome/94.0.4606.81|2","chrome/80.0.3987.99|1"] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # (DEPRECATED) Header generator 2 | 3 | --- 4 | 5 | **DEPRECATED** The `header-generator` package now lives in the [fingerprint-suite](https://github.com/apify/fingerprint-suite) repository. This repository is no longer actively maintained. 6 | 7 | --- 8 | 9 | NodeJs package for generating browser-like headers. 10 | 11 | 12 | 13 | - [Installation](#installation) 14 | - [Usage](#usage) 15 | - [Presets](#presets) 16 | - [Result example](#result-example) 17 | - [API Reference](#api-reference) 18 | 19 | 20 | 21 | ## Installation 22 | Run the `npm install header-generator` command. No further setup is needed afterwards. 23 | ## Usage 24 | To use the generator, you need to create an instance of the `HeaderGenerator` class which is exported from this package. Constructor of this class accepts a `HeaderGeneratorOptions` object, which can be used to globally specify what kind of headers you are looking for: 25 | ```js 26 | const { HeaderGenerator } = require('header-generator'); 27 | let headerGenerator = new HeaderGenerator({ 28 | browsers: [ 29 | {name: "firefox", minVersion: 80}, 30 | {name: "chrome", minVersion: 87}, 31 | "safari" 32 | ], 33 | devices: [ 34 | "desktop" 35 | ], 36 | operatingSystems: [ 37 | "windows" 38 | ] 39 | }); 40 | ``` 41 | You can then get the headers using the `getHeaders` method, either with no argument, or with another `HeaderGeneratorOptions` object, this time specifying the options only for this call (overwriting the global options when in conflict) and using the global options specified beforehands for the unspecified options: 42 | ```js 43 | let headers = headersGenerator.getHeaders({ 44 | operatingSystems: [ 45 | "linux" 46 | ], 47 | locales: ["en-US", "en"] 48 | }); 49 | ``` 50 | This method always generates a random realistic set of headers, excluding the request dependant headers, which need to be filled in afterwards. Since the generation is randomized, multiple calls to this method with the same parameters can generate multiple different outputs. 51 | 52 | ## Presets 53 | Presets are setting templates for common use cases. It saves time writing the same configuration over and over. 54 | ```js 55 | const { HeaderGenerator, PRESETS } = require('header-generator'); 56 | let headerGenerator = new HeaderGenerator(PRESETS.MODERN_WINDOWS_CHROME); 57 | ``` 58 | 59 | This preset will fill the configuration for the latest five versions of chrome for windows desktops. Checkout the available presets list [here](https://github.com/apify/header-generator/blob/master/src/presets.ts). 60 | ## Result example 61 | A result that can be generated for the usage example above: 62 | ```json 63 | { 64 | "sec-ch-ua-mobile": "?0", 65 | "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36", 66 | "accept-encoding": "gzip, deflate, br", 67 | "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 68 | "upgrade-insecure-requests": "1", 69 | "accept-language": "en-US,en;0.9", 70 | "sec-fetch-site": "same-site", 71 | "sec-fetch-mode": "navigate", 72 | "sec-fetch-user": "?1", 73 | "sec-fetch-dest": "document" 74 | } 75 | ``` 76 | ## API Reference 77 | All public classes, methods and their parameters can be inspected in this API reference. 78 | 79 | 80 | 81 | ### HeaderGenerator 82 | HeaderGenerator randomly generates realistic browser headers based on specified options. 83 | 84 | 85 | * [HeaderGenerator](#HeaderGenerator) 86 | * [`new HeaderGenerator(options)`](#new_HeaderGenerator_new) 87 | * [`.getHeaders(options, requestDependentHeaders)`](#HeaderGenerator+getHeaders) 88 | * [`.orderHeaders(headers, order)`](#HeaderGenerator+orderHeaders) 89 | 90 | 91 | * * * 92 | 93 | 94 | 95 | #### `new HeaderGenerator(options)` 96 | 97 | | Param | Type | Description | 98 | | --- | --- | --- | 99 | | options | [HeaderGeneratorOptions](#HeaderGeneratorOptions) | default header generation options used unless overridden | 100 | 101 | 102 | * * * 103 | 104 | 105 | 106 | #### `headerGenerator.getHeaders(options, requestDependentHeaders)` 107 | Generates a single set of ordered headers using a combination of the default options specified in the constructor 108 | and their possible overrides provided here. 109 | 110 | 111 | | Param | Type | Description | 112 | | --- | --- | --- | 113 | | options | [HeaderGeneratorOptions](#HeaderGeneratorOptions) | specifies options that should be overridden for this one call | 114 | | requestDependentHeaders | Object | specifies known values of headers dependent on the particular request | 115 | 116 | 117 | * * * 118 | 119 | 120 | 121 | #### `headerGenerator.orderHeaders(headers, order)` 122 | Returns a new object that contains ordered headers. 123 | 124 | 125 | | Param | Type | Description | 126 | | --- | --- | --- | 127 | | headers | object | specifies known values of headers dependent on the particular request | 128 | | order | Array.<string> | an array of ordered header names, optional (will be deducted from `user-agent`) | 129 | 130 | 131 | * * * 132 | 133 | 134 | 135 | ### `BrowserSpecification` 136 | 137 | | Param | Type | Description | 138 | | --- | --- | --- | 139 | | name | string | One of `chrome`, `firefox` and `safari`. | 140 | | minVersion | number | Minimal version of browser used. | 141 | | maxVersion | number | Maximal version of browser used. | 142 | | httpVersion | string | Http version to be used to generate headers (the headers differ depending on the version). Either 1 or 2. If none specified the httpVersion specified in `HeaderGeneratorOptions` is used. | 143 | 144 | 145 | * * * 146 | 147 | 148 | 149 | ### `HeaderGeneratorOptions` 150 | 151 | | Param | Type | Description | 152 | | --- | --- | --- | 153 | | browsers | Array.<(BrowserSpecification\|string)> | List of BrowserSpecifications to generate the headers for, or one of `chrome`, `firefox` and `safari`. | 154 | | browserListQuery | string | Browser generation query based on the real world data. For more info see the [query docs](https://github.com/browserslist/browserslist#full-list). If `browserListQuery` is passed the `browsers` array is ignored. | 155 | | operatingSystems | Array.<string> | List of operating systems to generate the headers for. The options are `windows`, `macos`, `linux`, `android` and `ios`. | 156 | | devices | Array.<string> | List of devices to generate the headers for. Options are `desktop` and `mobile`. | 157 | | locales | Array.<string> | List of at most 10 languages to include in the [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language) request header in the language format accepted by that header, for example `en`, `en-US` or `de`. | 158 | | httpVersion | string | Http version to be used to generate headers (the headers differ depending on the version). Can be either 1 or 2. Default value is 2. | 159 | 160 | 161 | * * * 162 | 163 | -------------------------------------------------------------------------------- /test/generation.test.ts: -------------------------------------------------------------------------------- 1 | import { inspect } from 'util'; 2 | import { HeaderGenerator } from '../src/index'; 3 | import headersOrder from '../src/data_files/headers-order.json'; 4 | import { getUserAgent, getBrowser } from '../src/utils'; 5 | import { HeaderGeneratorOptions } from '../src/header-generator'; 6 | 7 | function extractLocalesFromAcceptLanguageHeader(acceptLanguageHeader: string): string[] { 8 | const extractedLocales = []; 9 | const localesWithWeight = acceptLanguageHeader.split(','); 10 | for (const localeWithWeight of localesWithWeight) { 11 | const locale = localeWithWeight.split(';')[0].trim(); 12 | extractedLocales.push(locale); 13 | } 14 | 15 | return extractedLocales; 16 | } 17 | 18 | describe('Generation tests', () => { 19 | const headerGenerator = new HeaderGenerator({ 20 | httpVersion: '2', 21 | }); 22 | 23 | test('Generates headers basic', () => { 24 | const headers = headerGenerator.getHeaders(); 25 | // This gets the first user-agent header regardless of casing 26 | const userAgent = getUserAgent(headers); 27 | const browser = getBrowser(userAgent); 28 | 29 | expect(typeof headers).toBe('object'); 30 | 31 | const order = headersOrder[browser!]; 32 | 33 | // -1 is the index if an entry doesn't exist, so keep this by default 34 | let index = -1; 35 | for (const header of Object.keys(headers)) { 36 | const newIndex = order.indexOf(header); 37 | 38 | // Make the log readable via `inspect` 39 | const log = `${userAgent}\n${browser}\n${inspect(order)}\n${inspect(headers)}`; 40 | if (newIndex === -1) { 41 | // If the header isn't in the order list, throw an error 42 | throw new Error(`Missing entry in order array\n${log}`); 43 | } else if (newIndex < index) { 44 | // If the index of the header is earlier than the remembered index then throw an error. Example: 45 | // given order: 46 | // Connection = 0 47 | // connection = 1 48 | // User-Agent = 2 49 | // user-agent = 3 50 | // 51 | // headers: 52 | // User-Agent: ... (remembered index: -1, current index: 2) 53 | // Connection: ... (remembered index: 2, current index: 0) 54 | // 55 | // 0 < 2 so it will throw. 56 | throw new Error(`Header ${header} out of order\n${log}`); 57 | } 58 | 59 | index = newIndex; 60 | } 61 | }); 62 | 63 | test('Accepts custom headers', () => { 64 | const headers = headerGenerator.getHeaders({ 65 | httpVersion: '1', 66 | }, { 67 | 'x-custom': 'foobar', 68 | }); 69 | 70 | const keys = Object.keys(headers); 71 | expect(keys.indexOf('x-custom')).toBe(keys.length - 1); 72 | }); 73 | 74 | test('Orders headers', () => { 75 | const headers = { 76 | bar: 'foo', 77 | foo: 'bar', 78 | connection: 'keep-alive', 79 | }; 80 | 81 | const order = [ 82 | 'connection', 83 | 'foo', 84 | 'bar', 85 | ]; 86 | 87 | const generator = new HeaderGenerator(); 88 | const ordered = generator.orderHeaders(headers, order); 89 | expect(ordered).toEqual(headers); 90 | expect(Object.keys(ordered)).toEqual(order); 91 | }); 92 | 93 | test('Orders headers depending on user-agent', () => { 94 | const headers = { 95 | 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36', 96 | cookie: 'test=123', 97 | Connection: 'keep-alive', 98 | }; 99 | 100 | const generator = new HeaderGenerator(); 101 | const ordered = generator.orderHeaders(headers); 102 | expect(ordered).toEqual(headers); 103 | expect(Object.keys(ordered)).toEqual(['Connection', 'user-agent', 'cookie']); 104 | }); 105 | 106 | test('Orders headers works without user-agent', () => { 107 | const headers = { 108 | cookie: 'test=123', 109 | Connection: 'keep-alive', 110 | }; 111 | 112 | const generator = new HeaderGenerator(); 113 | const ordered = generator.orderHeaders(headers); 114 | expect(ordered).toEqual(headers); 115 | expect(Object.keys(ordered)).toEqual(Object.keys(headers)); 116 | }); 117 | 118 | test('Options from getHeaders override options from the constructor', () => { 119 | const headers = headerGenerator.getHeaders({ 120 | httpVersion: '1', 121 | }); 122 | expect('Accept-Language' in headers).toBeTruthy(); 123 | }); 124 | 125 | test('Generates headers with the requested locales', () => { 126 | const requestedLocales = ['en', 'es', 'en-GB']; 127 | const headers = headerGenerator.getHeaders({ 128 | httpVersion: '2', 129 | locales: requestedLocales, 130 | }); 131 | const extractedLocales = extractLocalesFromAcceptLanguageHeader(headers['accept-language']); 132 | expect(requestedLocales.sort()).toEqual(extractedLocales.sort()); 133 | }); 134 | 135 | test('Generates headers consistent with browsers input', () => { 136 | const headers = headerGenerator.getHeaders({ 137 | httpVersion: '2', 138 | browsers: [{ name: 'edge' }], 139 | }); 140 | expect(/edg/.test(headers['user-agent'].toLowerCase())).toBeTruthy(); 141 | }); 142 | 143 | test('Generates headers consistent with operating systems input', () => { 144 | const headers = headerGenerator.getHeaders({ 145 | httpVersion: '2', 146 | operatingSystems: ['linux'], 147 | }); 148 | expect(/linux/.test(headers['user-agent'].toLowerCase())).toBeTruthy(); 149 | }); 150 | 151 | test('Generates headers consistent with devices input', () => { 152 | const headers = headerGenerator.getHeaders({ 153 | httpVersion: '2', 154 | devices: ['mobile'], 155 | }); 156 | expect(/phone|android|mobile/.test(headers['user-agent'].toLowerCase())).toBeTruthy(); 157 | }); 158 | 159 | test('Throws an error when nothing can be generated', () => { 160 | try { 161 | headerGenerator.getHeaders({ 162 | browsers: [{ 163 | name: 'non-existing-browser', 164 | }], 165 | } as unknown as HeaderGeneratorOptions); 166 | fail("HeaderGenerator didn't throw an error when trying to generate headers for a nonexisting browser."); 167 | } catch (error) { 168 | expect(error) 169 | .toEqual( 170 | new Error('No headers based on this input can be generated. Please relax or change some of the requirements you specified.'), 171 | ); 172 | } 173 | }); 174 | 175 | test('Supports browserListQuery generation', () => { 176 | const headers = headerGenerator.getHeaders({ 177 | browserListQuery: 'last 15 firefox versions', 178 | httpVersion: '2', 179 | }); 180 | expect(headers['user-agent'].includes('Firefox')).toBeTruthy(); 181 | }); 182 | 183 | describe('Allow using strings instead of complex browser objects', () => { 184 | test('in constructor', () => { 185 | const generator = new HeaderGenerator({ 186 | browsers: ['chrome'], 187 | }); 188 | const headers = generator.getHeaders(); 189 | expect(headers['user-agent'].includes('Chrome')).toBe(true); 190 | }); 191 | 192 | test('in getHeaders', () => { 193 | const headers = headerGenerator.getHeaders({ 194 | browsers: ['firefox'], 195 | }); 196 | expect(headers['user-agent'].includes('Firefox')).toBe(true); 197 | }); 198 | }); 199 | }); 200 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/header-generator.ts: -------------------------------------------------------------------------------- 1 | // @ts-expect-error not a ts library 2 | import { BayesianNetwork } from 'generative-bayesian-network'; 3 | 4 | import ow from 'ow'; 5 | import { 6 | getBrowser, 7 | getUserAgent, 8 | getBrowsersFromQuery, 9 | shuffleArray, 10 | } from './utils'; 11 | 12 | import { 13 | SUPPORTED_BROWSERS, 14 | BROWSER_HTTP_NODE_NAME, 15 | MISSING_VALUE_DATASET_TOKEN, 16 | OPERATING_SYSTEM_NODE_NAME, 17 | DEVICE_NODE_NAME, 18 | SUPPORTED_OPERATING_SYSTEMS, 19 | SUPPORTED_DEVICES, 20 | SUPPORTED_HTTP_VERSIONS, 21 | HTTP1_SEC_FETCH_ATTRIBUTES, 22 | HTTP2_SEC_FETCH_ATTRIBUTES, 23 | } from './constants'; 24 | 25 | import headerNetworkDefinition from './data_files/header-network-definition.json'; 26 | 27 | import inputNetworkDefinition from './data_files/input-network-definition.json'; 28 | import headersOrder from './data_files/headers-order.json'; 29 | import uniqueBrowserStrings from './data_files/browser-helper-file.json'; 30 | 31 | const browserSpecificationShape = { 32 | name: ow.string, 33 | minVersion: ow.optional.number, 34 | maxVersion: ow.optional.number, 35 | httpVersion: ow.optional.string, 36 | }; 37 | 38 | export const headerGeneratorOptionsShape = { 39 | browsers: ow.optional.array.ofType(ow.any(ow.object.exactShape(browserSpecificationShape), ow.string)), 40 | operatingSystems: ow.optional.array.ofType(ow.string), 41 | devices: ow.optional.array.ofType(ow.string), 42 | locales: ow.optional.array.ofType(ow.string), 43 | httpVersion: ow.optional.string, 44 | browserListQuery: ow.optional.string, 45 | }; 46 | /** 47 | * @typedef BrowserSpecification 48 | * @param {string} name - One of `chrome`, `edge`, `firefox` and `safari`. 49 | * @param {number} minVersion - Minimal version of browser used. 50 | * @param {number} maxVersion - Maximal version of browser used. 51 | * @param {string} httpVersion - Http version to be used to generate headers (the headers differ depending on the version). 52 | * Either 1 or 2. If none specified the httpVersion specified in `HeaderGeneratorOptions` is used. 53 | */ 54 | 55 | export type HttpVersion = typeof SUPPORTED_HTTP_VERSIONS[number]; 56 | 57 | export type Device = typeof SUPPORTED_DEVICES[number]; 58 | 59 | export type OperatingSystem = typeof SUPPORTED_OPERATING_SYSTEMS[number]; 60 | 61 | export type BrowserName = typeof SUPPORTED_BROWSERS[number]; 62 | 63 | export interface BrowserSpecification { 64 | name: BrowserName ; 65 | minVersion?: number; 66 | maxVersion?: number; 67 | httpVersion?: HttpVersion; 68 | } 69 | 70 | export type BrowsersType = BrowserSpecification[] | BrowserName[]; 71 | 72 | export interface HeaderGeneratorOptions { 73 | browsers: BrowsersType; 74 | browserListQuery: string; 75 | operatingSystems: OperatingSystem[]; 76 | devices: Device[]; 77 | locales: string[]; 78 | httpVersion: HttpVersion; 79 | } 80 | 81 | export type HttpBrowserObject = { 82 | name: BrowserName | typeof MISSING_VALUE_DATASET_TOKEN; 83 | version: any[]; 84 | completeString: string; 85 | httpVersion: HttpVersion; 86 | } 87 | 88 | export type Headers = Record 89 | 90 | /** 91 | * @typedef HeaderGeneratorOptions 92 | * @param {Array} browsers - List of BrowserSpecifications to generate the headers for, 93 | * or one of `chrome`, `edge`, `firefox` and `safari`. 94 | * @param {string} browserListQuery - Browser generation query based on the real world data. 95 | * For more info see the [query docs](https://github.com/browserslist/browserslist#full-list). 96 | * If `browserListQuery` is passed the `browsers` array is ignored. 97 | * @param {Array} operatingSystems - List of operating systems to generate the headers for. 98 | * The options are `windows`, `macos`, `linux`, `android` and `ios`. 99 | * @param {Array} devices - List of devices to generate the headers for. Options are `desktop` and `mobile`. 100 | * @param {Array} locales - List of at most 10 languages to include in the 101 | * [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language) request header 102 | * in the language format accepted by that header, for example `en`, `en-US` or `de`. 103 | * @param {string} httpVersion - Http version to be used to generate headers (the headers differ depending on the version). 104 | * Can be either 1 or 2. Default value is 2. 105 | */ 106 | 107 | /** 108 | * HeaderGenerator randomly generates realistic browser headers based on specified options. 109 | */ 110 | export class HeaderGenerator { 111 | globalOptions: HeaderGeneratorOptions; 112 | 113 | browserListQuery: string | undefined; 114 | 115 | private inputGeneratorNetwork: any; 116 | 117 | private headerGeneratorNetwork: any; 118 | 119 | private uniqueBrowsers: HttpBrowserObject[]; 120 | 121 | /** 122 | * @param {HeaderGeneratorOptions} options - default header generation options used unless overridden 123 | */ 124 | constructor(options: Partial = {}) { 125 | ow(options, 'HeaderGeneratorOptions', ow.object.exactShape(headerGeneratorOptionsShape)); 126 | // Use a default setup when the necessary values are not provided 127 | const { 128 | browsers = SUPPORTED_BROWSERS, 129 | operatingSystems = SUPPORTED_OPERATING_SYSTEMS as unknown as OperatingSystem[], 130 | devices = [SUPPORTED_DEVICES[0]], 131 | locales = ['en-US'], 132 | httpVersion = '2', 133 | browserListQuery = '', 134 | } = options; 135 | this.globalOptions = { 136 | browsers: this._prepareBrowsersConfig(browsers as BrowsersType, browserListQuery, httpVersion), 137 | operatingSystems, 138 | devices, 139 | locales, 140 | httpVersion, 141 | browserListQuery, 142 | }; 143 | this.uniqueBrowsers = []; 144 | 145 | for (const browserString of uniqueBrowserStrings) { 146 | // There are headers without user agents in the datasets we used to configure the generator. They should be disregarded. 147 | if (browserString !== MISSING_VALUE_DATASET_TOKEN) { 148 | this.uniqueBrowsers.push(this._prepareHttpBrowserObject(browserString)); 149 | } 150 | } 151 | 152 | this.inputGeneratorNetwork = new BayesianNetwork(inputNetworkDefinition); 153 | this.headerGeneratorNetwork = new BayesianNetwork(headerNetworkDefinition); 154 | } 155 | 156 | /** 157 | * Generates a single set of ordered headers using a combination of the default options specified in the constructor 158 | * and their possible overrides provided here. 159 | * @param {HeaderGeneratorOptions} options - specifies options that should be overridden for this one call 160 | * @param {Object} requestDependentHeaders - specifies known values of headers dependent on the particular request 161 | */ 162 | getHeaders(options: Partial = {}, requestDependentHeaders: Headers = {}): Headers { 163 | ow(options, 'HeaderGeneratorOptions', ow.object.exactShape(headerGeneratorOptionsShape)); 164 | const headerOptions = { ...this.globalOptions, ...options }; 165 | const possibleAttributeValues = this._getPossibleAttributeValues(headerOptions); 166 | 167 | // Generate a sample of input attributes consistent with the data used to create the definition files if possible. 168 | const inputSample = this.inputGeneratorNetwork.generateConsistentSampleWhenPossible(possibleAttributeValues); 169 | 170 | if (!inputSample) { 171 | throw new Error('No headers based on this input can be generated. Please relax or change some of the requirements you specified.'); 172 | } 173 | 174 | // Generate the actual headers 175 | const generatedSample = this.headerGeneratorNetwork.generateSample(inputSample); 176 | 177 | // Manually fill the accept-language header with random ordering of the locales from input 178 | const generatedHttpAndBrowser = this._prepareHttpBrowserObject(generatedSample[BROWSER_HTTP_NODE_NAME]); 179 | let secFetchAttributeNames: typeof HTTP2_SEC_FETCH_ATTRIBUTES | typeof HTTP1_SEC_FETCH_ATTRIBUTES = HTTP2_SEC_FETCH_ATTRIBUTES; 180 | let acceptLanguageFieldName = 'accept-language'; 181 | if (generatedHttpAndBrowser.httpVersion !== '2') { 182 | acceptLanguageFieldName = 'Accept-Language'; 183 | secFetchAttributeNames = HTTP1_SEC_FETCH_ATTRIBUTES; 184 | } 185 | 186 | generatedSample[acceptLanguageFieldName] = this._getAcceptLanguageField(headerOptions.locales); 187 | 188 | const isChrome = generatedHttpAndBrowser.name === 'chrome'; 189 | const isFirefox = generatedHttpAndBrowser.name === 'firefox'; 190 | const isEdge = generatedHttpAndBrowser.name === 'edge'; 191 | 192 | const hasSecFetch = (isChrome && generatedHttpAndBrowser.version[0] >= 76) 193 | || (isFirefox && generatedHttpAndBrowser.version[0] >= 90) 194 | || (isEdge && generatedHttpAndBrowser.version[0] >= 79); 195 | 196 | // Add fixed headers if needed 197 | if (hasSecFetch) { 198 | generatedSample[secFetchAttributeNames.site] = 'same-site'; 199 | generatedSample[secFetchAttributeNames.mode] = 'navigate'; 200 | generatedSample[secFetchAttributeNames.user] = '?1'; 201 | generatedSample[secFetchAttributeNames.dest] = 'document'; 202 | } 203 | 204 | for (const attribute of Object.keys(generatedSample)) { 205 | if (attribute.startsWith('*') || generatedSample[attribute] === MISSING_VALUE_DATASET_TOKEN) delete generatedSample[attribute]; 206 | } 207 | 208 | // Order the headers in an order depending on the browser 209 | return this.orderHeaders({ 210 | ...generatedSample, 211 | ...requestDependentHeaders, 212 | }, (headersOrder as Record)[generatedHttpAndBrowser.name]); 213 | } 214 | 215 | /** 216 | * Returns a new object that contains ordered headers. 217 | * @param {object} headers - specifies known values of headers dependent on the particular request 218 | * @param {string[]} order - an array of ordered header names, optional (will be deducted from `user-agent`) 219 | */ 220 | orderHeaders(headers: Headers, order = this._getOrderFromUserAgent(headers)): Headers { 221 | const orderedSample: Headers = {}; 222 | 223 | for (const attribute of order) { 224 | if (attribute in headers) { 225 | orderedSample[attribute] = headers[attribute]; 226 | } 227 | } 228 | 229 | for (const attribute of Object.keys(headers)) { 230 | if (!order.includes(attribute)) { 231 | orderedSample[attribute] = headers[attribute]; 232 | } 233 | } 234 | 235 | return orderedSample; 236 | } 237 | 238 | private _prepareBrowsersConfig( 239 | browsers?: BrowsersType, 240 | browserListQuery?: string, 241 | httpVersion?: HttpVersion, 242 | ): BrowserSpecification[] { 243 | let finalBrowsers = browsers; 244 | 245 | if (browserListQuery) { 246 | finalBrowsers = getBrowsersFromQuery(browserListQuery); 247 | } 248 | 249 | return finalBrowsers!.map((browser) => { 250 | if (typeof browser === 'string') { 251 | return { name: browser, httpVersion }; 252 | } 253 | 254 | browser.httpVersion = httpVersion; 255 | return browser; 256 | }); 257 | } 258 | 259 | private _getBrowserHttpOptions(browsers: BrowserSpecification[]): string[] { 260 | const browserHttpOptions = []; 261 | for (const browser of browsers) { 262 | for (const browserOption of this.uniqueBrowsers) { 263 | if (browser.name === browserOption.name) { 264 | if ((!browser.minVersion || this._browserVersionIsLesserOrEquals([browser.minVersion], browserOption.version)) 265 | && (!browser.maxVersion || this._browserVersionIsLesserOrEquals(browserOption.version, [browser.maxVersion])) 266 | && browser.httpVersion === browserOption.httpVersion) { 267 | browserHttpOptions.push(browserOption.completeString); 268 | } 269 | } 270 | } 271 | } 272 | 273 | return browserHttpOptions; 274 | } 275 | 276 | private _getPossibleAttributeValues(headerOptions: Partial): Record { 277 | const { browsers: optionsBrowser, browserListQuery, httpVersion, operatingSystems } = headerOptions; 278 | const browsers = this._prepareBrowsersConfig(optionsBrowser, browserListQuery, httpVersion); 279 | 280 | // Find known browsers compatible with the input 281 | const browserHttpOptions = this._getBrowserHttpOptions(browsers); 282 | const possibleAttributeValues: Record = {}; 283 | 284 | possibleAttributeValues[BROWSER_HTTP_NODE_NAME] = browserHttpOptions; 285 | 286 | possibleAttributeValues[OPERATING_SYSTEM_NODE_NAME] = operatingSystems; 287 | 288 | if (headerOptions.devices) { 289 | possibleAttributeValues[DEVICE_NODE_NAME] = headerOptions.devices; 290 | } 291 | 292 | return possibleAttributeValues; 293 | } 294 | 295 | private _getAcceptLanguageField(localesFromOptions: HeaderGeneratorOptions['locales']): string { 296 | let locales = localesFromOptions; 297 | let highLevelLocales = []; 298 | for (const locale of locales) { 299 | if (!locale.includes('-')) { 300 | highLevelLocales.push(locale); 301 | } 302 | } 303 | 304 | for (const locale of locales) { 305 | if (!highLevelLocales.includes(locale)) { 306 | let highLevelEquivalentPresent = false; 307 | for (const highLevelLocale of highLevelLocales) { 308 | if (locale.includes(highLevelLocale)) { 309 | highLevelEquivalentPresent = true; 310 | break; 311 | } 312 | } 313 | if (!highLevelEquivalentPresent) highLevelLocales.push(locale); 314 | } 315 | } 316 | 317 | highLevelLocales = shuffleArray(highLevelLocales); 318 | locales = shuffleArray(locales); 319 | 320 | const localesInAddingOrder = []; 321 | 322 | for (const highLevelLocale of highLevelLocales) { 323 | for (const locale of locales) { 324 | if (locale.includes(highLevelLocale) && !highLevelLocales.includes(locale)) { 325 | localesInAddingOrder.push(locale); 326 | } 327 | } 328 | localesInAddingOrder.push(highLevelLocale); 329 | } 330 | 331 | let acceptLanguageFieldValue = localesInAddingOrder[0]; 332 | 333 | for (let x = 1; x < localesInAddingOrder.length; x++) { 334 | acceptLanguageFieldValue += `,${localesInAddingOrder[x]};q=${1 - x * 0.1}`; 335 | } 336 | return acceptLanguageFieldValue; 337 | } 338 | 339 | /** 340 | * Extract structured information about a browser and http version in the form of an object from httpBrowserString. 341 | * @param {string} httpBrowserString - a string containing the browser name, version and http version, such as "chrome/88.0.4324.182|2" 342 | * @private 343 | */ 344 | private _prepareHttpBrowserObject(httpBrowserString: string): HttpBrowserObject { 345 | const [browserString, httpVersion] = httpBrowserString.split('|'); 346 | let browserObject; 347 | 348 | if (browserString === MISSING_VALUE_DATASET_TOKEN) { 349 | browserObject = { name: MISSING_VALUE_DATASET_TOKEN }; 350 | } else { 351 | browserObject = this._prepareBrowserObject(browserString); 352 | } 353 | 354 | return { 355 | ...browserObject, 356 | httpVersion: httpVersion as HeaderGeneratorOptions['httpVersion'], 357 | completeString: httpBrowserString, 358 | } as HttpBrowserObject; 359 | } 360 | 361 | /** 362 | * Extract structured information about a browser in the form of an object from browserString. 363 | * @param {string} browserString - a string containing the browser name and version, such as "chrome/88.0.4324.182" 364 | * @private 365 | */ 366 | private _prepareBrowserObject(browserString: string): HttpBrowserObject { 367 | const nameVersionSplit = browserString.split('/'); 368 | const versionSplit = nameVersionSplit[1].split('.'); 369 | const preparedVersion = []; 370 | for (const versionPart of versionSplit) { 371 | preparedVersion.push(parseInt(versionPart, 10)); 372 | } 373 | 374 | return { 375 | name: nameVersionSplit[0], 376 | version: preparedVersion, 377 | completeString: browserString, 378 | } as HttpBrowserObject; 379 | } 380 | 381 | /** 382 | * @param {object} headers - non-normalized request headers 383 | * @returns {string[]} order 384 | * @private 385 | */ 386 | private _getOrderFromUserAgent(headers: Record) { 387 | const userAgent = getUserAgent(headers); 388 | const browser = getBrowser(userAgent); 389 | 390 | if (!browser) { 391 | return []; 392 | } 393 | 394 | return (headersOrder as Record)[browser]; 395 | } 396 | 397 | private _browserVersionIsLesserOrEquals(browserVersionL: number[], browserVersionR: number[]) { 398 | return browserVersionL[0] <= browserVersionR[0]; 399 | } 400 | } 401 | -------------------------------------------------------------------------------- /src/data_files/input-network-definition.json: -------------------------------------------------------------------------------- 1 | {"nodes":[{"name":"*DEVICE","parentNames":[],"possibleValues":["desktop","mobile"],"conditionalProbabilities":{"desktop":0.8887659660062356,"mobile":0.11123403399376446}},{"name":"*OPERATING_SYSTEM","parentNames":["*DEVICE"],"possibleValues":["windows","macos","android","linux","ios","*MISSING_VALUE*"],"conditionalProbabilities":{"deeper":{"desktop":{"windows":0.5258571913545321,"macos":0.4169967183433292,"linux":0.04956433178680548,"*MISSING_VALUE*":0.007581758515333258},"mobile":{"android":0.5650994575045208,"ios":0.4349005424954792}}}},{"name":"*BROWSER_HTTP","parentNames":["*OPERATING_SYSTEM","*DEVICE"],"possibleValues":["chrome/100.0.4896.60|2","firefox/97.0|2","chrome/87.0.4280.67|2","chrome/99.0.4844.51|2","firefox/98.0|2","chrome/99.0.4844.84|2","firefox/88.0|2","safari/605.1.15|2","chrome/100.0.4896.75|2","chrome/61.0.3163.128|2","chrome/99.0.4844.83|2","chrome/99.0.4844.88|2","safari/604.1|2","*MISSING_VALUE*|2","chrome/100.0.4896.58|2","chrome/100.0.4896.60|1","chrome/99.0.4844.74|2","edge/100.0.1185.29|1","edge/100.0.1185.29|2","chrome/98.0.4758.102|1","chrome/99.0.4844.84|1","chrome/97.0.4692.99|2","chrome/96.0.4664.110|2","chrome/92.0.4515.166|2","edge/99.0.1150.55|2","chrome/84.0.4147.125|2","chrome/79.0.3945.79|2","chrome/98.0.4758.109|2","firefox/95.0|2","chrome/76.0.3809.71|2","chrome/75.0.3770.142|2","chrome/90.0.4430.72|2","chrome/99.0.4844.82|2","chrome/98.0.4758.102|2","chrome/98.0.4758.82|2","chrome/96.0.4664.45|2","firefox/99.0|2","chrome/99.0.4844.73|2","chrome/99.0.4844.57|2","chrome/76.0.3809.38|2","firefox/81.0|1","chrome/98.0.4758.80|2","chrome/91.0.4472.114|2","firefox/87.0|2","chrome/98.0.4758.106|2","firefox/78.0|2","firefox/91.0|2","chrome/96.0.4664.45|1","chrome/94.0.4606.71|2","chrome/77.0.3865.75|2","chrome/71.0.3578.98|2","chrome/70.0.3538.102|2","chrome/100.0.4896.75|1","firefox/96.0|2","chrome/100.0.4896.79|2","chrome/98.0.4758.141|2","chrome/51.0.7009.1032|2","chrome/86.0.4240.75|2","chrome/91.0.4472.164|2","edge/100.0.1185.27|2","chrome/80.0.3987.106|2","chrome/102.0.4983.0|2","chrome/99.0.4844.58|2","chrome/81.0.4044.92|2","chrome/98.0.4758.109|1","chrome/80.0.3987.132|2","chrome/60.0.3112.90|2","chrome/83.0.4103.101|2","edge/95.0.1020.53|2","chrome/101.0.4951.15|2","edge/99.0.1150.52|2","chrome/92.0.4515.131|2","chrome/97.0.4692.98|2","chrome/90.0.4430.210|2","chrome/98.0.4758.101|2","chrome/95.0.4638.69|2","chrome/99.0.4844.82|1","chrome/87.0.4280.141|2","edge/99.0.1150.46|2","chrome/81.0.4044.138|2","chrome/98.0.4758.87|2","chrome/99.0.4844.94|2","chrome/98.0.4758.105|2","edge/99.0.1150.30|2","chrome/86.0.4240.198|2","firefox/84.0|2","firefox/98.0|1","chrome/98.0.4758.136|2","chrome/99.0.7113.93|2","chrome/94.0.4606.56|2","chrome/92.0.4515.107|2","chrome/83.0.4103.106|2","chrome/99.0.4844.51|1","chrome/94.0.4606.85|2","chrome/102.0.4972.0|2","chrome/91.0.4472.106|2","chrome/96.0.4664.93|2","edge/97.0.1072.76|2","chrome/88.0.4324.96|2","chrome/93.0.4577.82|2","chrome/86.0.4240.99|2","chrome/79.0.3945.116|1","chrome/98.0.4758.121|2","edge/99.0.1150.55|1","chrome/89.0.4389.82|2","chrome/73.0.3683.75|2","chrome/93.0.4577.0|2","edge/99.0.1150.39|2","chrome/98.0.4758.107|2","chrome/69.0.3497.100|2","chrome/92.0.4515.159|2","chrome/98.0.4758.132|2","chrome/98.0.4758.91|2","chrome/100.0.4896.54|2","chrome/87.0.4280.88|1","firefox/100.0|2","chrome/100.0.4896.46|2","chrome/79.0.3945.116|2","chrome/78.0.3904.96|2","firefox/56.0|2","chrome/95.0.4638.74|2","edge/18.19577|2","chrome/98.0.4695.0|2","chrome/91.0.4472.101|2","firefox/92.0|2","edge/98.0.1108.50|2","chrome/75.0.3765.0|2","chrome/87.0.4280.88|2","chrome/88.0.4324.93|2","edge/98.0.1108.62|2","firefox/74.0|2","chrome/101.0.4951.7|2","chrome/102.0.4962.0|2","chrome/101.0.4929.0|2","chrome/97.0.4692.71|2","chrome/97.0.4692.87|2","chrome/90.0.4430.93|2","chrome/96.0.4664.111|1","firefox/94.0|2","chrome/100.0.4896.30|2","chrome/97.0.4692.104|2","chrome/99.0.4844.74|1","edge/98.0.1108.43|1","edge/99.0.1150.36|2","chrome/101.0.4929.5|2","chrome/90.0.4430.212|2","chrome/91.0.4472.109|2","chrome/95.0.4638.54|2","chrome/98.0.4758.80|1","chrome/97.0.4692.99|1","chrome/89.0.4389.90|2","chrome/96.0.4664.104|2","chrome/99.0.4844.0|2","chrome/80.0.3987.163|2","chrome/90.0.4430.91|2","chrome/88.0.4324.96|1","firefox/90.0|2","edge/97.0.1072.62|2","chrome/99.0.4844.66|2","chrome/80.0.3987.0|2","chrome/87.0.4280.101|2","edge/98.0.1108.43|2","edge/99.0.1150.16|2","edge/99.0.1150.39|1","chrome/91.0.4472.77|2","chrome/81.0.4044.0|1","edge/101.0.1193.0|2","chrome/83.0.4103.97|2","chrome/93.0.4577.8|2","chrome/96.0.4664.174|2","chrome/49.0.7383.1298|2","chrome/92.0.4515.159|1","chrome/77.0.3865.116|2","edge/100.0.1185.7|2","chrome/89.0.4389.116|2","chrome/100.0.4878.0|2","chrome/94.0.4606.54|2","chrome/97.0.4692.102|2","chrome/83.0.4103.116|1","chrome/97.0.4692.71|1","chrome/74.0.3729.136|2","edge/98.0.1108.62|1","chrome/87.0.4280.66|2","edge/97.0.1072.55|2","chrome/99.0.4844.16|2","chrome/92.0.4515.105|2","firefox/93.0|2","edge/97.0.1072.69|2","chrome/74.0.3729.131|2","chrome/73.0.3683.103|2","chrome/96.0.4664.92|2","safari/604.1|1","chrome/99.0.4864.208|2","chrome/81.0.4044.113|2","chrome/91.0.4472.124|2","chrome/88.0.4324.150|2","chrome/96.0.4664.55|2","chrome/83.0.4103.116|2","chrome/96.0.4664.175|2","edge/99.0.1150.30|1","chrome/87.0.4280.144|2","chrome/98.0.4758.82|1","safari/602.1|2","chrome/98.0.4758.34|2","firefox/89.0|2","chrome/64.0.3282.137|2","chrome/98.0.4758.81|2","chrome/94.0.4606.61|2","chrome/88.0.4324.152|2","chrome/97.0.4692.70|2","chrome/94.0.4606.81|2","chrome/80.0.3987.99|1"],"conditionalProbabilities":{"deeper":{"windows":{"deeper":{"desktop":{"chrome/100.0.4896.60|2":0.11921669894555627,"firefox/97.0|2":0.0066709705186141595,"chrome/99.0.4844.51|2":0.3742199268345169,"firefox/98.0|2":0.08026683882074456,"chrome/99.0.4844.84|2":0.1411663438777706,"firefox/88.0|2":0.0010759629868732515,"chrome/100.0.4896.75|2":0.011190015063481816,"chrome/100.0.4896.60|1":0.003443081557994405,"edge/100.0.1185.29|1":0.001506348181622552,"edge/100.0.1185.29|2":0.011620400258231117,"chrome/98.0.4758.102|1":0.0017215407789972026,"chrome/99.0.4844.84|1":0.005810200129115558,"chrome/96.0.4664.110|2":0.0036582741553690553,"edge/99.0.1150.55|2":0.015493867010974823,"chrome/84.0.4147.125|2":0.005164622336991607,"chrome/79.0.3945.79|2":0.0012911555842479018,"chrome/98.0.4758.109|2":0.018936948568969228,"chrome/76.0.3809.71|2":0.0010759629868732515,"chrome/99.0.4844.82|2":0.018936948568969228,"chrome/98.0.4758.82|2":0.0032278889606197547,"chrome/97.0.4692.99|2":0.00688616311598881,"chrome/98.0.4758.102|2":0.01979771895846783,"firefox/81.0|1":0.00021519259737465033,"chrome/99.0.4844.74|2":0.03808908973531311,"firefox/87.0|2":0.00021519259737465033,"chrome/96.0.4664.45|1":0.00021519259737465033,"chrome/94.0.4606.71|2":0.00021519259737465033,"chrome/77.0.3865.75|2":0.00021519259737465033,"chrome/96.0.4664.45|2":0.0036582741553690553,"chrome/100.0.4896.75|1":0.00021519259737465033,"firefox/96.0|2":0.0025823111684958036,"firefox/99.0|2":0.003443081557994405,"chrome/80.0.3987.106|2":0.00043038519474930065,"firefox/91.0|2":0.004088659350118356,"chrome/98.0.4758.141|2":0.00021519259737465033,"chrome/81.0.4044.92|2":0.00043038519474930065,"chrome/80.0.3987.132|2":0.00021519259737465033,"chrome/60.0.3112.90|2":0.00043038519474930065,"edge/95.0.1020.53|2":0.00021519259737465033,"chrome/101.0.4951.15|2":0.0008607703894986013,"edge/99.0.1150.52|2":0.00043038519474930065,"chrome/102.0.4983.0|2":0.00021519259737465033,"chrome/99.0.4844.82|1":0.001506348181622552,"chrome/98.0.4758.105|2":0.00021519259737465033,"edge/99.0.1150.30|2":0.0006455777921239509,"chrome/86.0.4240.198|2":0.0010759629868732515,"firefox/84.0|2":0.00021519259737465033,"firefox/98.0|1":0.001506348181622552,"chrome/99.0.7113.93|2":0.00021519259737465033,"chrome/99.0.4844.51|1":0.015278674413600172,"chrome/102.0.4972.0|2":0.00021519259737465033,"chrome/93.0.4577.82|2":0.00021519259737465033,"chrome/98.0.4758.121|2":0.0010759629868732515,"edge/99.0.1150.55|1":0.0006455777921239509,"chrome/93.0.4577.0|2":0.00021519259737465033,"edge/99.0.1150.39|2":0.037228319345814505,"chrome/99.0.4844.88|2":0.00021519259737465033,"chrome/96.0.4664.93|2":0.00021519259737465033,"chrome/86.0.4240.75|2":0.00043038519474930065,"chrome/69.0.3497.100|2":0.00021519259737465033,"chrome/92.0.4515.159|2":0.0012911555842479018,"chrome/98.0.4758.132|2":0.00021519259737465033,"edge/99.0.1150.46|2":0.00021519259737465033,"firefox/56.0|2":0.00021519259737465033,"edge/18.19577|2":0.00021519259737465033,"chrome/95.0.4638.69|2":0.0010759629868732515,"edge/98.0.1108.50|2":0.0006455777921239509,"chrome/98.0.4758.80|2":0.003443081557994405,"chrome/92.0.4515.131|2":0.00021519259737465033,"chrome/100.0.4896.46|2":0.00021519259737465033,"edge/98.0.1108.62|2":0.00021519259737465033,"firefox/74.0|2":0.00043038519474930065,"chrome/102.0.4962.0|2":0.00021519259737465033,"firefox/94.0|2":0.00021519259737465033,"chrome/97.0.4692.104|2":0.0006455777921239509,"chrome/99.0.4844.74|1":0.0017215407789972026,"edge/98.0.1108.43|1":0.0008607703894986013,"edge/99.0.1150.36|2":0.0032278889606197547,"chrome/98.0.4758.80|1":0.00021519259737465033,"chrome/87.0.4280.141|2":0.00021519259737465033,"chrome/97.0.4692.99|1":0.00043038519474930065,"chrome/89.0.4389.90|2":0.00021519259737465033,"chrome/99.0.4844.0|2":0.00021519259737465033,"chrome/80.0.3987.163|2":0.00021519259737465033,"firefox/90.0|2":0.00043038519474930065,"edge/98.0.1108.43|2":0.00043038519474930065,"edge/99.0.1150.16|2":0.00021519259737465033,"edge/99.0.1150.39|1":0.0023671185711211535,"chrome/91.0.4472.77|2":0.00021519259737465033,"edge/101.0.1193.0|2":0.00021519259737465033,"chrome/87.0.4280.88|2":0.0010759629868732515,"chrome/96.0.4664.174|2":0.00043038519474930065,"chrome/92.0.4515.159|1":0.00021519259737465033,"chrome/100.0.4878.0|2":0.00021519259737465033,"chrome/94.0.4606.54|2":0.00043038519474930065,"chrome/83.0.4103.116|1":0.00021519259737465033,"chrome/97.0.4692.71|1":0.00021519259737465033,"chrome/71.0.3578.98|2":0.00021519259737465033,"chrome/90.0.4430.212|2":0.0006455777921239509,"edge/98.0.1108.62|1":0.00043038519474930065,"chrome/87.0.4280.66|2":0.00021519259737465033,"chrome/73.0.3683.103|2":0.00021519259737465033,"chrome/99.0.4864.208|2":0.00021519259737465033,"chrome/91.0.4472.124|2":0.00021519259737465033,"chrome/88.0.4324.150|2":0.0006455777921239509,"chrome/95.0.4638.54|2":0.00043038519474930065,"chrome/83.0.4103.116|2":0.0010759629868732515,"firefox/78.0|2":0.00021519259737465033,"edge/99.0.1150.30|1":0.00021519259737465033,"chrome/98.0.4758.82|1":0.00043038519474930065,"firefox/95.0|2":0.0006455777921239509,"chrome/97.0.4692.71|2":0.00021519259737465033,"chrome/98.0.4758.81|2":0.00021519259737465033}},"skip":{"chrome/100.0.4896.60|2":0.11921669894555627,"firefox/97.0|2":0.0066709705186141595,"chrome/99.0.4844.51|2":0.3742199268345169,"firefox/98.0|2":0.08026683882074456,"chrome/99.0.4844.84|2":0.1411663438777706,"firefox/88.0|2":0.0010759629868732515,"chrome/100.0.4896.75|2":0.011190015063481816,"chrome/100.0.4896.60|1":0.003443081557994405,"edge/100.0.1185.29|1":0.001506348181622552,"edge/100.0.1185.29|2":0.011620400258231117,"chrome/98.0.4758.102|1":0.0017215407789972026,"chrome/99.0.4844.84|1":0.005810200129115558,"chrome/96.0.4664.110|2":0.0036582741553690553,"edge/99.0.1150.55|2":0.015493867010974823,"chrome/84.0.4147.125|2":0.005164622336991607,"chrome/79.0.3945.79|2":0.0012911555842479018,"chrome/98.0.4758.109|2":0.018936948568969228,"chrome/76.0.3809.71|2":0.0010759629868732515,"chrome/99.0.4844.82|2":0.018936948568969228,"chrome/98.0.4758.82|2":0.0032278889606197547,"chrome/97.0.4692.99|2":0.00688616311598881,"chrome/98.0.4758.102|2":0.01979771895846783,"firefox/81.0|1":0.00021519259737465033,"chrome/99.0.4844.74|2":0.03808908973531311,"firefox/87.0|2":0.00021519259737465033,"chrome/96.0.4664.45|1":0.00021519259737465033,"chrome/94.0.4606.71|2":0.00021519259737465033,"chrome/77.0.3865.75|2":0.00021519259737465033,"chrome/96.0.4664.45|2":0.0036582741553690553,"chrome/100.0.4896.75|1":0.00021519259737465033,"firefox/96.0|2":0.0025823111684958036,"firefox/99.0|2":0.003443081557994405,"chrome/80.0.3987.106|2":0.00043038519474930065,"firefox/91.0|2":0.004088659350118356,"chrome/98.0.4758.141|2":0.00021519259737465033,"chrome/81.0.4044.92|2":0.00043038519474930065,"chrome/80.0.3987.132|2":0.00021519259737465033,"chrome/60.0.3112.90|2":0.00043038519474930065,"edge/95.0.1020.53|2":0.00021519259737465033,"chrome/101.0.4951.15|2":0.0008607703894986013,"edge/99.0.1150.52|2":0.00043038519474930065,"chrome/102.0.4983.0|2":0.00021519259737465033,"chrome/99.0.4844.82|1":0.001506348181622552,"chrome/98.0.4758.105|2":0.00021519259737465033,"edge/99.0.1150.30|2":0.0006455777921239509,"chrome/86.0.4240.198|2":0.0010759629868732515,"firefox/84.0|2":0.00021519259737465033,"firefox/98.0|1":0.001506348181622552,"chrome/99.0.7113.93|2":0.00021519259737465033,"chrome/99.0.4844.51|1":0.015278674413600172,"chrome/102.0.4972.0|2":0.00021519259737465033,"chrome/93.0.4577.82|2":0.00021519259737465033,"chrome/98.0.4758.121|2":0.0010759629868732515,"edge/99.0.1150.55|1":0.0006455777921239509,"chrome/93.0.4577.0|2":0.00021519259737465033,"edge/99.0.1150.39|2":0.037228319345814505,"chrome/99.0.4844.88|2":0.00021519259737465033,"chrome/96.0.4664.93|2":0.00021519259737465033,"chrome/86.0.4240.75|2":0.00043038519474930065,"chrome/69.0.3497.100|2":0.00021519259737465033,"chrome/92.0.4515.159|2":0.0012911555842479018,"chrome/98.0.4758.132|2":0.00021519259737465033,"edge/99.0.1150.46|2":0.00021519259737465033,"firefox/56.0|2":0.00021519259737465033,"edge/18.19577|2":0.00021519259737465033,"chrome/95.0.4638.69|2":0.0010759629868732515,"edge/98.0.1108.50|2":0.0006455777921239509,"chrome/98.0.4758.80|2":0.003443081557994405,"chrome/92.0.4515.131|2":0.00021519259737465033,"chrome/100.0.4896.46|2":0.00021519259737465033,"edge/98.0.1108.62|2":0.00021519259737465033,"firefox/74.0|2":0.00043038519474930065,"chrome/102.0.4962.0|2":0.00021519259737465033,"firefox/94.0|2":0.00021519259737465033,"chrome/97.0.4692.104|2":0.0006455777921239509,"chrome/99.0.4844.74|1":0.0017215407789972026,"edge/98.0.1108.43|1":0.0008607703894986013,"edge/99.0.1150.36|2":0.0032278889606197547,"chrome/98.0.4758.80|1":0.00021519259737465033,"chrome/87.0.4280.141|2":0.00021519259737465033,"chrome/97.0.4692.99|1":0.00043038519474930065,"chrome/89.0.4389.90|2":0.00021519259737465033,"chrome/99.0.4844.0|2":0.00021519259737465033,"chrome/80.0.3987.163|2":0.00021519259737465033,"firefox/90.0|2":0.00043038519474930065,"edge/98.0.1108.43|2":0.00043038519474930065,"edge/99.0.1150.16|2":0.00021519259737465033,"edge/99.0.1150.39|1":0.0023671185711211535,"chrome/91.0.4472.77|2":0.00021519259737465033,"edge/101.0.1193.0|2":0.00021519259737465033,"chrome/87.0.4280.88|2":0.0010759629868732515,"chrome/96.0.4664.174|2":0.00043038519474930065,"chrome/92.0.4515.159|1":0.00021519259737465033,"chrome/100.0.4878.0|2":0.00021519259737465033,"chrome/94.0.4606.54|2":0.00043038519474930065,"chrome/83.0.4103.116|1":0.00021519259737465033,"chrome/97.0.4692.71|1":0.00021519259737465033,"chrome/71.0.3578.98|2":0.00021519259737465033,"chrome/90.0.4430.212|2":0.0006455777921239509,"edge/98.0.1108.62|1":0.00043038519474930065,"chrome/87.0.4280.66|2":0.00021519259737465033,"chrome/73.0.3683.103|2":0.00021519259737465033,"chrome/99.0.4864.208|2":0.00021519259737465033,"chrome/91.0.4472.124|2":0.00021519259737465033,"chrome/88.0.4324.150|2":0.0006455777921239509,"chrome/95.0.4638.54|2":0.00043038519474930065,"chrome/83.0.4103.116|2":0.0010759629868732515,"firefox/78.0|2":0.00021519259737465033,"edge/99.0.1150.30|1":0.00021519259737465033,"chrome/98.0.4758.82|1":0.00043038519474930065,"firefox/95.0|2":0.0006455777921239509,"chrome/97.0.4692.71|2":0.00021519259737465033,"chrome/98.0.4758.81|2":0.00021519259737465033}},"macos":{"deeper":{"desktop":{"chrome/87.0.4280.67|2":0.1327001356852103,"safari/605.1.15|2":0.1400271370420624,"chrome/100.0.4896.75|2":0.0027137042062415195,"chrome/100.0.4896.60|2":0.07544097693351424,"chrome/99.0.4844.83|2":0.03229308005427409,"chrome/99.0.4844.84|2":0.11207598371777476,"chrome/99.0.4844.74|2":0.01818181818181818,"chrome/99.0.4844.51|2":0.23364993215739485,"firefox/98.0|2":0.029579375848032566,"chrome/75.0.3770.142|2":0.018453188602442334,"chrome/98.0.4758.102|2":0.017367706919945727,"chrome/96.0.4664.45|2":0.000542740841248304,"firefox/99.0|2":0.0037991858887381274,"chrome/98.0.4758.109|2":0.035278154681139755,"chrome/98.0.4758.80|2":0.004341926729986432,"edge/100.0.1185.29|2":0.0008141112618724559,"chrome/71.0.3578.98|2":0.032021709633649934,"chrome/70.0.3538.102|2":0.007327001356852103,"chrome/100.0.4896.60|1":0.000542740841248304,"chrome/98.0.4758.141|2":0.001085481682496608,"chrome/97.0.4692.99|2":0.006512890094979647,"chrome/86.0.4240.75|2":0.056716417910447764,"chrome/96.0.4664.110|2":0.0024423337856173677,"chrome/102.0.4983.0|2":0.000271370420624152,"edge/99.0.1150.55|2":0.0008141112618724559,"chrome/98.0.4758.109|1":0.000271370420624152,"firefox/78.0|2":0.000542740841248304,"chrome/94.0.4606.71|2":0.0013568521031207597,"chrome/80.0.3987.132|2":0.000271370420624152,"edge/97.0.1072.76|2":0.000542740841248304,"firefox/97.0|2":0.007598371777476255,"chrome/98.0.4758.136|2":0.001085481682496608,"chrome/91.0.4472.114|2":0.000271370420624152,"chrome/87.0.4280.88|1":0.000542740841248304,"chrome/87.0.4280.88|2":0.000271370420624152,"*MISSING_VALUE*|2":0.000542740841248304,"chrome/98.0.4758.132|2":0.000271370420624152,"chrome/99.0.4844.88|2":0.000542740841248304,"chrome/101.0.4929.0|2":0.0032564450474898234,"chrome/97.0.4692.71|2":0.002170963364993216,"chrome/100.0.4896.30|2":0.000271370420624152,"edge/99.0.1150.39|2":0.0016282225237449117,"firefox/84.0|2":0.000271370420624152,"chrome/101.0.4929.5|2":0.000271370420624152,"chrome/90.0.4430.212|2":0.000271370420624152,"chrome/81.0.4044.92|2":0.000271370420624152,"chrome/95.0.4638.54|2":0.000271370420624152,"chrome/98.0.4758.121|2":0.0016282225237449117,"edge/99.0.1150.36|2":0.001085481682496608,"firefox/96.0|2":0.0008141112618724559,"edge/98.0.1108.62|2":0.001085481682496608,"edge/97.0.1072.62|2":0.000271370420624152,"chrome/80.0.3987.0|2":0.000542740841248304,"chrome/83.0.4103.97|2":0.000542740841248304,"chrome/99.0.4844.51|1":0.000542740841248304,"edge/100.0.1185.7|2":0.000271370420624152,"chrome/93.0.4577.82|2":0.000271370420624152,"chrome/92.0.4515.131|2":0.000271370420624152,"chrome/92.0.4515.107|2":0.000271370420624152,"edge/97.0.1072.55|2":0.000271370420624152,"chrome/99.0.4844.16|2":0.000271370420624152,"edge/97.0.1072.69|2":0.000271370420624152,"chrome/95.0.4638.69|2":0.001085481682496608,"chrome/74.0.3729.131|2":0.000271370420624152,"chrome/96.0.4664.55|2":0.000542740841248304,"chrome/96.0.4664.175|2":0.000542740841248304,"firefox/89.0|2":0.000542740841248304,"chrome/89.0.4389.90|2":0.000271370420624152,"chrome/94.0.4606.81|2":0.000542740841248304}},"skip":{"chrome/87.0.4280.67|2":0.1327001356852103,"safari/605.1.15|2":0.1400271370420624,"chrome/100.0.4896.75|2":0.0027137042062415195,"chrome/100.0.4896.60|2":0.07544097693351424,"chrome/99.0.4844.83|2":0.03229308005427409,"chrome/99.0.4844.84|2":0.11207598371777476,"chrome/99.0.4844.74|2":0.01818181818181818,"chrome/99.0.4844.51|2":0.23364993215739485,"firefox/98.0|2":0.029579375848032566,"chrome/75.0.3770.142|2":0.018453188602442334,"chrome/98.0.4758.102|2":0.017367706919945727,"chrome/96.0.4664.45|2":0.000542740841248304,"firefox/99.0|2":0.0037991858887381274,"chrome/98.0.4758.109|2":0.035278154681139755,"chrome/98.0.4758.80|2":0.004341926729986432,"edge/100.0.1185.29|2":0.0008141112618724559,"chrome/71.0.3578.98|2":0.032021709633649934,"chrome/70.0.3538.102|2":0.007327001356852103,"chrome/100.0.4896.60|1":0.000542740841248304,"chrome/98.0.4758.141|2":0.001085481682496608,"chrome/97.0.4692.99|2":0.006512890094979647,"chrome/86.0.4240.75|2":0.056716417910447764,"chrome/96.0.4664.110|2":0.0024423337856173677,"chrome/102.0.4983.0|2":0.000271370420624152,"edge/99.0.1150.55|2":0.0008141112618724559,"chrome/98.0.4758.109|1":0.000271370420624152,"firefox/78.0|2":0.000542740841248304,"chrome/94.0.4606.71|2":0.0013568521031207597,"chrome/80.0.3987.132|2":0.000271370420624152,"edge/97.0.1072.76|2":0.000542740841248304,"firefox/97.0|2":0.007598371777476255,"chrome/98.0.4758.136|2":0.001085481682496608,"chrome/91.0.4472.114|2":0.000271370420624152,"chrome/87.0.4280.88|1":0.000542740841248304,"chrome/87.0.4280.88|2":0.000271370420624152,"*MISSING_VALUE*|2":0.000542740841248304,"chrome/98.0.4758.132|2":0.000271370420624152,"chrome/99.0.4844.88|2":0.000542740841248304,"chrome/101.0.4929.0|2":0.0032564450474898234,"chrome/97.0.4692.71|2":0.002170963364993216,"chrome/100.0.4896.30|2":0.000271370420624152,"edge/99.0.1150.39|2":0.0016282225237449117,"firefox/84.0|2":0.000271370420624152,"chrome/101.0.4929.5|2":0.000271370420624152,"chrome/90.0.4430.212|2":0.000271370420624152,"chrome/81.0.4044.92|2":0.000271370420624152,"chrome/95.0.4638.54|2":0.000271370420624152,"chrome/98.0.4758.121|2":0.0016282225237449117,"edge/99.0.1150.36|2":0.001085481682496608,"firefox/96.0|2":0.0008141112618724559,"edge/98.0.1108.62|2":0.001085481682496608,"edge/97.0.1072.62|2":0.000271370420624152,"chrome/80.0.3987.0|2":0.000542740841248304,"chrome/83.0.4103.97|2":0.000542740841248304,"chrome/99.0.4844.51|1":0.000542740841248304,"edge/100.0.1185.7|2":0.000271370420624152,"chrome/93.0.4577.82|2":0.000271370420624152,"chrome/92.0.4515.131|2":0.000271370420624152,"chrome/92.0.4515.107|2":0.000271370420624152,"edge/97.0.1072.55|2":0.000271370420624152,"chrome/99.0.4844.16|2":0.000271370420624152,"edge/97.0.1072.69|2":0.000271370420624152,"chrome/95.0.4638.69|2":0.001085481682496608,"chrome/74.0.3729.131|2":0.000271370420624152,"chrome/96.0.4664.55|2":0.000542740841248304,"chrome/96.0.4664.175|2":0.000542740841248304,"firefox/89.0|2":0.000542740841248304,"chrome/89.0.4389.90|2":0.000271370420624152,"chrome/94.0.4606.81|2":0.000542740841248304}},"android":{"deeper":{"mobile":{"chrome/61.0.3163.128|2":0.0016,"chrome/99.0.4844.88|2":0.0848,"chrome/100.0.4896.58|2":0.1664,"chrome/92.0.4515.166|2":0.032,"chrome/99.0.4844.73|2":0.072,"chrome/100.0.4896.79|2":0.0016,"chrome/51.0.7009.1032|2":0.0016,"firefox/99.0|2":0.0016,"edge/100.0.1185.27|2":0.0016,"chrome/99.0.4844.58|2":0.3536,"chrome/83.0.4103.101|2":0.0064,"edge/99.0.1150.55|2":0.0032,"chrome/97.0.4692.98|2":0.0112,"chrome/90.0.4430.210|2":0.008,"chrome/98.0.4758.101|2":0.0288,"chrome/81.0.4044.138|2":0.0112,"chrome/98.0.4758.87|2":0.0208,"chrome/98.0.4758.136|2":0.0016,"chrome/94.0.4606.56|2":0.0016,"chrome/83.0.4103.106|2":0.0032,"chrome/94.0.4606.85|2":0.0048,"chrome/100.0.4896.60|2":0.0032,"firefox/98.0|2":0.0288,"chrome/86.0.4240.99|2":0.0048,"chrome/79.0.3945.116|1":0.0112,"chrome/94.0.4606.71|2":0.0048,"chrome/87.0.4280.141|2":0.008,"chrome/100.0.4896.46|2":0.0016,"chrome/79.0.3945.116|2":0.0016,"chrome/78.0.3904.96|2":0.0016,"chrome/95.0.4638.74|2":0.0048,"chrome/98.0.4695.0|2":0.0016,"chrome/91.0.4472.101|2":0.0032,"chrome/75.0.3765.0|2":0.0032,"chrome/88.0.4324.93|2":0.0016,"chrome/97.0.4692.87|2":0.0304,"chrome/91.0.4472.109|2":0.0016,"chrome/96.0.4664.104|2":0.0144,"chrome/90.0.4430.91|2":0.0016,"chrome/88.0.4324.96|1":0.0064,"chrome/99.0.4844.66|2":0.0016,"chrome/87.0.4280.101|2":0.0016,"chrome/93.0.4577.8|2":0.0032,"chrome/49.0.7383.1298|2":0.0016,"chrome/77.0.3865.116|2":0.0016,"chrome/89.0.4389.116|2":0.0016,"chrome/96.0.4664.45|1":0.0016,"chrome/74.0.3729.136|2":0.0016,"firefox/93.0|2":0.0016,"chrome/96.0.4664.92|2":0.0064,"chrome/93.0.4577.82|2":0.0064,"edge/99.0.1150.39|2":0.0032,"firefox/97.0|2":0.0032,"chrome/99.0.4844.51|2":0.0032,"chrome/98.0.4758.34|2":0.0016,"chrome/64.0.3282.137|2":0.0016,"chrome/92.0.4515.131|2":0.0016,"chrome/88.0.4324.152|2":0.0016,"chrome/97.0.4692.70|2":0.0016,"chrome/80.0.3987.99|1":0.0016}},"skip":{"chrome/61.0.3163.128|2":0.0016,"chrome/99.0.4844.88|2":0.0848,"chrome/100.0.4896.58|2":0.1664,"chrome/92.0.4515.166|2":0.032,"chrome/99.0.4844.73|2":0.072,"chrome/100.0.4896.79|2":0.0016,"chrome/51.0.7009.1032|2":0.0016,"firefox/99.0|2":0.0016,"edge/100.0.1185.27|2":0.0016,"chrome/99.0.4844.58|2":0.3536,"chrome/83.0.4103.101|2":0.0064,"edge/99.0.1150.55|2":0.0032,"chrome/97.0.4692.98|2":0.0112,"chrome/90.0.4430.210|2":0.008,"chrome/98.0.4758.101|2":0.0288,"chrome/81.0.4044.138|2":0.0112,"chrome/98.0.4758.87|2":0.0208,"chrome/98.0.4758.136|2":0.0016,"chrome/94.0.4606.56|2":0.0016,"chrome/83.0.4103.106|2":0.0032,"chrome/94.0.4606.85|2":0.0048,"chrome/100.0.4896.60|2":0.0032,"firefox/98.0|2":0.0288,"chrome/86.0.4240.99|2":0.0048,"chrome/79.0.3945.116|1":0.0112,"chrome/94.0.4606.71|2":0.0048,"chrome/87.0.4280.141|2":0.008,"chrome/100.0.4896.46|2":0.0016,"chrome/79.0.3945.116|2":0.0016,"chrome/78.0.3904.96|2":0.0016,"chrome/95.0.4638.74|2":0.0048,"chrome/98.0.4695.0|2":0.0016,"chrome/91.0.4472.101|2":0.0032,"chrome/75.0.3765.0|2":0.0032,"chrome/88.0.4324.93|2":0.0016,"chrome/97.0.4692.87|2":0.0304,"chrome/91.0.4472.109|2":0.0016,"chrome/96.0.4664.104|2":0.0144,"chrome/90.0.4430.91|2":0.0016,"chrome/88.0.4324.96|1":0.0064,"chrome/99.0.4844.66|2":0.0016,"chrome/87.0.4280.101|2":0.0016,"chrome/93.0.4577.8|2":0.0032,"chrome/49.0.7383.1298|2":0.0016,"chrome/77.0.3865.116|2":0.0016,"chrome/89.0.4389.116|2":0.0016,"chrome/96.0.4664.45|1":0.0016,"chrome/74.0.3729.136|2":0.0016,"firefox/93.0|2":0.0016,"chrome/96.0.4664.92|2":0.0064,"chrome/93.0.4577.82|2":0.0064,"edge/99.0.1150.39|2":0.0032,"firefox/97.0|2":0.0032,"chrome/99.0.4844.51|2":0.0032,"chrome/98.0.4758.34|2":0.0016,"chrome/64.0.3282.137|2":0.0016,"chrome/92.0.4515.131|2":0.0016,"chrome/88.0.4324.152|2":0.0016,"chrome/97.0.4692.70|2":0.0016,"chrome/80.0.3987.99|1":0.0016}},"linux":{"deeper":{"desktop":{"chrome/99.0.4844.51|2":0.20319634703196346,"firefox/98.0|2":0.17579908675799086,"chrome/99.0.4844.84|2":0.0410958904109589,"chrome/97.0.4692.99|2":0.02511415525114155,"chrome/99.0.4844.74|2":0.0273972602739726,"firefox/95.0|2":0.04337899543378995,"chrome/90.0.4430.72|2":0.00228310502283105,"chrome/98.0.4758.102|2":0.05251141552511415,"chrome/91.0.4472.114|2":0.0182648401826484,"chrome/100.0.4896.60|2":0.0639269406392694,"firefox/78.0|2":0.0182648401826484,"chrome/96.0.4664.45|2":0.01141552511415525,"firefox/91.0|2":0.01141552511415525,"chrome/98.0.4758.80|2":0.04337899543378995,"chrome/100.0.4896.75|2":0.00228310502283105,"chrome/99.0.4844.82|2":0.0136986301369863,"firefox/87.0|2":0.0045662100456621,"chrome/91.0.4472.164|2":0.01598173515981735,"firefox/96.0|2":0.01141552511415525,"chrome/92.0.4515.131|2":0.00684931506849315,"chrome/95.0.4638.69|2":0.0136986301369863,"chrome/98.0.4758.109|2":0.00228310502283105,"chrome/87.0.4280.141|2":0.00228310502283105,"edge/99.0.1150.46|2":0.00228310502283105,"chrome/92.0.4515.107|2":0.0045662100456621,"chrome/99.0.4844.88|2":0.0045662100456621,"chrome/91.0.4472.106|2":0.00228310502283105,"chrome/96.0.4664.93|2":0.00228310502283105,"chrome/88.0.4324.96|2":0.0045662100456621,"chrome/89.0.4389.82|2":0.00228310502283105,"chrome/73.0.3683.75|2":0.00228310502283105,"chrome/100.0.4896.58|2":0.01141552511415525,"chrome/99.0.4844.94|2":0.00228310502283105,"chrome/92.0.4515.166|2":0.0045662100456621,"firefox/100.0|2":0.0045662100456621,"firefox/97.0|2":0.0365296803652968,"edge/100.0.1185.29|2":0.00228310502283105,"firefox/92.0|2":0.00684931506849315,"chrome/91.0.4472.101|2":0.0045662100456621,"firefox/88.0|2":0.00684931506849315,"chrome/90.0.4430.93|2":0.0045662100456621,"chrome/99.0.4844.73|2":0.00228310502283105,"chrome/99.0.4844.58|2":0.01598173515981735,"chrome/97.0.4692.71|2":0.01598173515981735,"chrome/81.0.4044.0|1":0.00684931506849315,"chrome/96.0.4664.110|2":0.0045662100456621,"chrome/98.0.4758.101|2":0.00228310502283105,"chrome/92.0.4515.105|2":0.00228310502283105,"chrome/93.0.4577.82|2":0.00684931506849315,"chrome/97.0.4692.99|1":0.00228310502283105,"firefox/99.0|2":0.00228310502283105,"chrome/81.0.4044.113|2":0.00228310502283105,"edge/99.0.1150.39|2":0.00228310502283105,"chrome/87.0.4280.144|2":0.00228310502283105,"chrome/98.0.4758.82|2":0.00228310502283105,"chrome/94.0.4606.61|2":0.00228310502283105,"firefox/94.0|2":0.0045662100456621,"chrome/89.0.4389.90|2":0.00228310502283105}},"skip":{"chrome/99.0.4844.51|2":0.20319634703196346,"firefox/98.0|2":0.17579908675799086,"chrome/99.0.4844.84|2":0.0410958904109589,"chrome/97.0.4692.99|2":0.02511415525114155,"chrome/99.0.4844.74|2":0.0273972602739726,"firefox/95.0|2":0.04337899543378995,"chrome/90.0.4430.72|2":0.00228310502283105,"chrome/98.0.4758.102|2":0.05251141552511415,"chrome/91.0.4472.114|2":0.0182648401826484,"chrome/100.0.4896.60|2":0.0639269406392694,"firefox/78.0|2":0.0182648401826484,"chrome/96.0.4664.45|2":0.01141552511415525,"firefox/91.0|2":0.01141552511415525,"chrome/98.0.4758.80|2":0.04337899543378995,"chrome/100.0.4896.75|2":0.00228310502283105,"chrome/99.0.4844.82|2":0.0136986301369863,"firefox/87.0|2":0.0045662100456621,"chrome/91.0.4472.164|2":0.01598173515981735,"firefox/96.0|2":0.01141552511415525,"chrome/92.0.4515.131|2":0.00684931506849315,"chrome/95.0.4638.69|2":0.0136986301369863,"chrome/98.0.4758.109|2":0.00228310502283105,"chrome/87.0.4280.141|2":0.00228310502283105,"edge/99.0.1150.46|2":0.00228310502283105,"chrome/92.0.4515.107|2":0.0045662100456621,"chrome/99.0.4844.88|2":0.0045662100456621,"chrome/91.0.4472.106|2":0.00228310502283105,"chrome/96.0.4664.93|2":0.00228310502283105,"chrome/88.0.4324.96|2":0.0045662100456621,"chrome/89.0.4389.82|2":0.00228310502283105,"chrome/73.0.3683.75|2":0.00228310502283105,"chrome/100.0.4896.58|2":0.01141552511415525,"chrome/99.0.4844.94|2":0.00228310502283105,"chrome/92.0.4515.166|2":0.0045662100456621,"firefox/100.0|2":0.0045662100456621,"firefox/97.0|2":0.0365296803652968,"edge/100.0.1185.29|2":0.00228310502283105,"firefox/92.0|2":0.00684931506849315,"chrome/91.0.4472.101|2":0.0045662100456621,"firefox/88.0|2":0.00684931506849315,"chrome/90.0.4430.93|2":0.0045662100456621,"chrome/99.0.4844.73|2":0.00228310502283105,"chrome/99.0.4844.58|2":0.01598173515981735,"chrome/97.0.4692.71|2":0.01598173515981735,"chrome/81.0.4044.0|1":0.00684931506849315,"chrome/96.0.4664.110|2":0.0045662100456621,"chrome/98.0.4758.101|2":0.00228310502283105,"chrome/92.0.4515.105|2":0.00228310502283105,"chrome/93.0.4577.82|2":0.00684931506849315,"chrome/97.0.4692.99|1":0.00228310502283105,"firefox/99.0|2":0.00228310502283105,"chrome/81.0.4044.113|2":0.00228310502283105,"edge/99.0.1150.39|2":0.00228310502283105,"chrome/87.0.4280.144|2":0.00228310502283105,"chrome/98.0.4758.82|2":0.00228310502283105,"chrome/94.0.4606.61|2":0.00228310502283105,"firefox/94.0|2":0.0045662100456621,"chrome/89.0.4389.90|2":0.00228310502283105}},"ios":{"deeper":{"mobile":{"safari/604.1|2":0.9355509355509356,"*MISSING_VALUE*|2":0.02494802494802495,"safari/605.1.15|2":0.031185031185031187,"safari/604.1|1":0.002079002079002079,"safari/602.1|2":0.006237006237006237}},"skip":{"safari/604.1|2":0.9355509355509356,"*MISSING_VALUE*|2":0.02494802494802495,"safari/605.1.15|2":0.031185031185031187,"safari/604.1|1":0.002079002079002079,"safari/602.1|2":0.006237006237006237}},"*MISSING_VALUE*":{"deeper":{"desktop":{"*MISSING_VALUE*|2":0.40298507462686567,"chrome/99.0.4844.57|2":0.11940298507462686,"chrome/76.0.3809.38|2":0.014925373134328358,"chrome/98.0.4758.106|2":0.029850746268656716,"chrome/99.0.4844.94|2":0.1044776119402985,"chrome/98.0.4758.107|2":0.23880597014925373,"chrome/98.0.4758.91|2":0.029850746268656716,"chrome/100.0.4896.54|2":0.014925373134328358,"chrome/101.0.4951.7|2":0.014925373134328358,"chrome/96.0.4664.111|1":0.014925373134328358,"chrome/97.0.4692.102|2":0.014925373134328358}},"skip":{"*MISSING_VALUE*|2":0.40298507462686567,"chrome/99.0.4844.57|2":0.11940298507462686,"chrome/76.0.3809.38|2":0.014925373134328358,"chrome/98.0.4758.106|2":0.029850746268656716,"chrome/99.0.4844.94|2":0.1044776119402985,"chrome/98.0.4758.107|2":0.23880597014925373,"chrome/98.0.4758.91|2":0.029850746268656716,"chrome/100.0.4896.54|2":0.014925373134328358,"chrome/101.0.4951.7|2":0.014925373134328358,"chrome/96.0.4664.111|1":0.014925373134328358,"chrome/97.0.4692.102|2":0.014925373134328358}}}}},{"name":"*HTTP_VERSION","parentNames":["*BROWSER_HTTP"],"possibleValues":["_2.0_","_1.1_"],"conditionalProbabilities":{"deeper":{"chrome/100.0.4896.60|2":{"_2.0_":1},"firefox/97.0|2":{"_2.0_":1},"chrome/87.0.4280.67|2":{"_2.0_":1},"chrome/99.0.4844.51|2":{"_2.0_":1},"firefox/98.0|2":{"_2.0_":1},"chrome/99.0.4844.84|2":{"_2.0_":1},"firefox/88.0|2":{"_2.0_":1},"safari/605.1.15|2":{"_2.0_":1},"chrome/100.0.4896.75|2":{"_2.0_":1},"chrome/61.0.3163.128|2":{"_2.0_":1},"chrome/99.0.4844.83|2":{"_2.0_":1},"chrome/99.0.4844.88|2":{"_2.0_":1},"safari/604.1|2":{"_2.0_":1},"*MISSING_VALUE*|2":{"_2.0_":1},"chrome/100.0.4896.58|2":{"_2.0_":1},"chrome/100.0.4896.60|1":{"_1.1_":1},"chrome/99.0.4844.74|2":{"_2.0_":1},"edge/100.0.1185.29|1":{"_1.1_":1},"edge/100.0.1185.29|2":{"_2.0_":1},"chrome/98.0.4758.102|1":{"_1.1_":1},"chrome/99.0.4844.84|1":{"_1.1_":1},"chrome/97.0.4692.99|2":{"_2.0_":1},"chrome/96.0.4664.110|2":{"_2.0_":1},"chrome/92.0.4515.166|2":{"_2.0_":1},"edge/99.0.1150.55|2":{"_2.0_":1},"chrome/84.0.4147.125|2":{"_2.0_":1},"chrome/79.0.3945.79|2":{"_2.0_":1},"chrome/98.0.4758.109|2":{"_2.0_":1},"firefox/95.0|2":{"_2.0_":1},"chrome/76.0.3809.71|2":{"_2.0_":1},"chrome/75.0.3770.142|2":{"_2.0_":1},"chrome/90.0.4430.72|2":{"_2.0_":1},"chrome/99.0.4844.82|2":{"_2.0_":1},"chrome/98.0.4758.102|2":{"_2.0_":1},"chrome/98.0.4758.82|2":{"_2.0_":1},"chrome/96.0.4664.45|2":{"_2.0_":1},"firefox/99.0|2":{"_2.0_":1},"chrome/99.0.4844.73|2":{"_2.0_":1},"chrome/99.0.4844.57|2":{"_2.0_":1},"chrome/76.0.3809.38|2":{"_2.0_":1},"firefox/81.0|1":{"_1.1_":1},"chrome/98.0.4758.80|2":{"_2.0_":1},"chrome/91.0.4472.114|2":{"_2.0_":1},"firefox/87.0|2":{"_2.0_":1},"chrome/98.0.4758.106|2":{"_2.0_":1},"firefox/78.0|2":{"_2.0_":1},"firefox/91.0|2":{"_2.0_":1},"chrome/96.0.4664.45|1":{"_1.1_":1},"chrome/94.0.4606.71|2":{"_2.0_":1},"chrome/77.0.3865.75|2":{"_2.0_":1},"chrome/71.0.3578.98|2":{"_2.0_":1},"chrome/70.0.3538.102|2":{"_2.0_":1},"chrome/100.0.4896.75|1":{"_1.1_":1},"firefox/96.0|2":{"_2.0_":1},"chrome/100.0.4896.79|2":{"_2.0_":1},"chrome/98.0.4758.141|2":{"_2.0_":1},"chrome/51.0.7009.1032|2":{"_2.0_":1},"chrome/86.0.4240.75|2":{"_2.0_":1},"chrome/91.0.4472.164|2":{"_2.0_":1},"edge/100.0.1185.27|2":{"_2.0_":1},"chrome/80.0.3987.106|2":{"_2.0_":1},"chrome/102.0.4983.0|2":{"_2.0_":1},"chrome/99.0.4844.58|2":{"_2.0_":1},"chrome/81.0.4044.92|2":{"_2.0_":1},"chrome/98.0.4758.109|1":{"_1.1_":1},"chrome/80.0.3987.132|2":{"_2.0_":1},"chrome/60.0.3112.90|2":{"_2.0_":1},"chrome/83.0.4103.101|2":{"_2.0_":1},"edge/95.0.1020.53|2":{"_2.0_":1},"chrome/101.0.4951.15|2":{"_2.0_":1},"edge/99.0.1150.52|2":{"_2.0_":1},"chrome/92.0.4515.131|2":{"_2.0_":1},"chrome/97.0.4692.98|2":{"_2.0_":1},"chrome/90.0.4430.210|2":{"_2.0_":1},"chrome/98.0.4758.101|2":{"_2.0_":1},"chrome/95.0.4638.69|2":{"_2.0_":1},"chrome/99.0.4844.82|1":{"_1.1_":1},"chrome/87.0.4280.141|2":{"_2.0_":1},"edge/99.0.1150.46|2":{"_2.0_":1},"chrome/81.0.4044.138|2":{"_2.0_":1},"chrome/98.0.4758.87|2":{"_2.0_":1},"chrome/99.0.4844.94|2":{"_2.0_":1},"chrome/98.0.4758.105|2":{"_2.0_":1},"edge/99.0.1150.30|2":{"_2.0_":1},"chrome/86.0.4240.198|2":{"_2.0_":1},"firefox/84.0|2":{"_2.0_":1},"firefox/98.0|1":{"_1.1_":1},"chrome/98.0.4758.136|2":{"_2.0_":1},"chrome/99.0.7113.93|2":{"_2.0_":1},"chrome/94.0.4606.56|2":{"_2.0_":1},"chrome/92.0.4515.107|2":{"_2.0_":1},"chrome/83.0.4103.106|2":{"_2.0_":1},"chrome/99.0.4844.51|1":{"_1.1_":1},"chrome/94.0.4606.85|2":{"_2.0_":1},"chrome/102.0.4972.0|2":{"_2.0_":1},"chrome/91.0.4472.106|2":{"_2.0_":1},"chrome/96.0.4664.93|2":{"_2.0_":1},"edge/97.0.1072.76|2":{"_2.0_":1},"chrome/88.0.4324.96|2":{"_2.0_":1},"chrome/93.0.4577.82|2":{"_2.0_":1},"chrome/86.0.4240.99|2":{"_2.0_":1},"chrome/79.0.3945.116|1":{"_1.1_":1},"chrome/98.0.4758.121|2":{"_2.0_":1},"edge/99.0.1150.55|1":{"_1.1_":1},"chrome/89.0.4389.82|2":{"_2.0_":1},"chrome/73.0.3683.75|2":{"_2.0_":1},"chrome/93.0.4577.0|2":{"_2.0_":1},"edge/99.0.1150.39|2":{"_2.0_":1},"chrome/98.0.4758.107|2":{"_2.0_":1},"chrome/69.0.3497.100|2":{"_2.0_":1},"chrome/92.0.4515.159|2":{"_2.0_":1},"chrome/98.0.4758.132|2":{"_2.0_":1},"chrome/98.0.4758.91|2":{"_2.0_":1},"chrome/100.0.4896.54|2":{"_2.0_":1},"chrome/87.0.4280.88|1":{"_1.1_":1},"firefox/100.0|2":{"_2.0_":1},"chrome/100.0.4896.46|2":{"_2.0_":1},"chrome/79.0.3945.116|2":{"_2.0_":1},"chrome/78.0.3904.96|2":{"_2.0_":1},"firefox/56.0|2":{"_2.0_":1},"chrome/95.0.4638.74|2":{"_2.0_":1},"edge/18.19577|2":{"_2.0_":1},"chrome/98.0.4695.0|2":{"_2.0_":1},"chrome/91.0.4472.101|2":{"_2.0_":1},"firefox/92.0|2":{"_2.0_":1},"edge/98.0.1108.50|2":{"_2.0_":1},"chrome/75.0.3765.0|2":{"_2.0_":1},"chrome/87.0.4280.88|2":{"_2.0_":1},"chrome/88.0.4324.93|2":{"_2.0_":1},"edge/98.0.1108.62|2":{"_2.0_":1},"firefox/74.0|2":{"_2.0_":1},"chrome/101.0.4951.7|2":{"_2.0_":1},"chrome/102.0.4962.0|2":{"_2.0_":1},"chrome/101.0.4929.0|2":{"_2.0_":1},"chrome/97.0.4692.71|2":{"_2.0_":1},"chrome/97.0.4692.87|2":{"_2.0_":1},"chrome/90.0.4430.93|2":{"_2.0_":1},"chrome/96.0.4664.111|1":{"_1.1_":1},"firefox/94.0|2":{"_2.0_":1},"chrome/100.0.4896.30|2":{"_2.0_":1},"chrome/97.0.4692.104|2":{"_2.0_":1},"chrome/99.0.4844.74|1":{"_1.1_":1},"edge/98.0.1108.43|1":{"_1.1_":1},"edge/99.0.1150.36|2":{"_2.0_":1},"chrome/101.0.4929.5|2":{"_2.0_":1},"chrome/90.0.4430.212|2":{"_2.0_":1},"chrome/91.0.4472.109|2":{"_2.0_":1},"chrome/95.0.4638.54|2":{"_2.0_":1},"chrome/98.0.4758.80|1":{"_1.1_":1},"chrome/97.0.4692.99|1":{"_1.1_":1},"chrome/89.0.4389.90|2":{"_2.0_":1},"chrome/96.0.4664.104|2":{"_2.0_":1},"chrome/99.0.4844.0|2":{"_2.0_":1},"chrome/80.0.3987.163|2":{"_2.0_":1},"chrome/90.0.4430.91|2":{"_2.0_":1},"chrome/88.0.4324.96|1":{"_1.1_":1},"firefox/90.0|2":{"_2.0_":1},"edge/97.0.1072.62|2":{"_2.0_":1},"chrome/99.0.4844.66|2":{"_2.0_":1},"chrome/80.0.3987.0|2":{"_2.0_":1},"chrome/87.0.4280.101|2":{"_2.0_":1},"edge/98.0.1108.43|2":{"_2.0_":1},"edge/99.0.1150.16|2":{"_2.0_":1},"edge/99.0.1150.39|1":{"_1.1_":1},"chrome/91.0.4472.77|2":{"_2.0_":1},"chrome/81.0.4044.0|1":{"_1.1_":1},"edge/101.0.1193.0|2":{"_2.0_":1},"chrome/83.0.4103.97|2":{"_2.0_":1},"chrome/93.0.4577.8|2":{"_2.0_":1},"chrome/96.0.4664.174|2":{"_2.0_":1},"chrome/49.0.7383.1298|2":{"_2.0_":1},"chrome/92.0.4515.159|1":{"_1.1_":1},"chrome/77.0.3865.116|2":{"_2.0_":1},"edge/100.0.1185.7|2":{"_2.0_":1},"chrome/89.0.4389.116|2":{"_2.0_":1},"chrome/100.0.4878.0|2":{"_2.0_":1},"chrome/94.0.4606.54|2":{"_2.0_":1},"chrome/97.0.4692.102|2":{"_2.0_":1},"chrome/83.0.4103.116|1":{"_1.1_":1},"chrome/97.0.4692.71|1":{"_1.1_":1},"chrome/74.0.3729.136|2":{"_2.0_":1},"edge/98.0.1108.62|1":{"_1.1_":1},"chrome/87.0.4280.66|2":{"_2.0_":1},"edge/97.0.1072.55|2":{"_2.0_":1},"chrome/99.0.4844.16|2":{"_2.0_":1},"chrome/92.0.4515.105|2":{"_2.0_":1},"firefox/93.0|2":{"_2.0_":1},"edge/97.0.1072.69|2":{"_2.0_":1},"chrome/74.0.3729.131|2":{"_2.0_":1},"chrome/73.0.3683.103|2":{"_2.0_":1},"chrome/96.0.4664.92|2":{"_2.0_":1},"safari/604.1|1":{"_1.1_":1},"chrome/99.0.4864.208|2":{"_2.0_":1},"chrome/81.0.4044.113|2":{"_2.0_":1},"chrome/91.0.4472.124|2":{"_2.0_":1},"chrome/88.0.4324.150|2":{"_2.0_":1},"chrome/96.0.4664.55|2":{"_2.0_":1},"chrome/83.0.4103.116|2":{"_2.0_":1},"chrome/96.0.4664.175|2":{"_2.0_":1},"edge/99.0.1150.30|1":{"_1.1_":1},"chrome/87.0.4280.144|2":{"_2.0_":1},"chrome/98.0.4758.82|1":{"_1.1_":1},"safari/602.1|2":{"_2.0_":1},"chrome/98.0.4758.34|2":{"_2.0_":1},"firefox/89.0|2":{"_2.0_":1},"chrome/64.0.3282.137|2":{"_2.0_":1},"chrome/98.0.4758.81|2":{"_2.0_":1},"chrome/94.0.4606.61|2":{"_2.0_":1},"chrome/88.0.4324.152|2":{"_2.0_":1},"chrome/97.0.4692.70|2":{"_2.0_":1},"chrome/94.0.4606.81|2":{"_2.0_":1},"chrome/80.0.3987.99|1":{"_1.1_":1}}}},{"name":"*BROWSER","parentNames":["*BROWSER_HTTP"],"possibleValues":["chrome/100.0.4896.60","firefox/97.0","chrome/87.0.4280.67","chrome/99.0.4844.51","firefox/98.0","chrome/99.0.4844.84","firefox/88.0","safari/605.1.15","chrome/100.0.4896.75","chrome/61.0.3163.128","chrome/99.0.4844.83","chrome/99.0.4844.88","safari/604.1","*MISSING_VALUE*","chrome/100.0.4896.58","chrome/99.0.4844.74","edge/100.0.1185.29","chrome/98.0.4758.102","chrome/97.0.4692.99","chrome/96.0.4664.110","chrome/92.0.4515.166","edge/99.0.1150.55","chrome/84.0.4147.125","chrome/79.0.3945.79","chrome/98.0.4758.109","firefox/95.0","chrome/76.0.3809.71","chrome/75.0.3770.142","chrome/90.0.4430.72","chrome/99.0.4844.82","chrome/98.0.4758.82","chrome/96.0.4664.45","firefox/99.0","chrome/99.0.4844.73","chrome/99.0.4844.57","chrome/76.0.3809.38","firefox/81.0","chrome/98.0.4758.80","chrome/91.0.4472.114","firefox/87.0","chrome/98.0.4758.106","firefox/78.0","firefox/91.0","chrome/94.0.4606.71","chrome/77.0.3865.75","chrome/71.0.3578.98","chrome/70.0.3538.102","firefox/96.0","chrome/100.0.4896.79","chrome/98.0.4758.141","chrome/51.0.7009.1032","chrome/86.0.4240.75","chrome/91.0.4472.164","edge/100.0.1185.27","chrome/80.0.3987.106","chrome/102.0.4983.0","chrome/99.0.4844.58","chrome/81.0.4044.92","chrome/80.0.3987.132","chrome/60.0.3112.90","chrome/83.0.4103.101","edge/95.0.1020.53","chrome/101.0.4951.15","edge/99.0.1150.52","chrome/92.0.4515.131","chrome/97.0.4692.98","chrome/90.0.4430.210","chrome/98.0.4758.101","chrome/95.0.4638.69","chrome/87.0.4280.141","edge/99.0.1150.46","chrome/81.0.4044.138","chrome/98.0.4758.87","chrome/99.0.4844.94","chrome/98.0.4758.105","edge/99.0.1150.30","chrome/86.0.4240.198","firefox/84.0","chrome/98.0.4758.136","chrome/99.0.7113.93","chrome/94.0.4606.56","chrome/92.0.4515.107","chrome/83.0.4103.106","chrome/94.0.4606.85","chrome/102.0.4972.0","chrome/91.0.4472.106","chrome/96.0.4664.93","edge/97.0.1072.76","chrome/88.0.4324.96","chrome/93.0.4577.82","chrome/86.0.4240.99","chrome/79.0.3945.116","chrome/98.0.4758.121","chrome/89.0.4389.82","chrome/73.0.3683.75","chrome/93.0.4577.0","edge/99.0.1150.39","chrome/98.0.4758.107","chrome/69.0.3497.100","chrome/92.0.4515.159","chrome/98.0.4758.132","chrome/98.0.4758.91","chrome/100.0.4896.54","chrome/87.0.4280.88","firefox/100.0","chrome/100.0.4896.46","chrome/78.0.3904.96","firefox/56.0","chrome/95.0.4638.74","edge/18.19577","chrome/98.0.4695.0","chrome/91.0.4472.101","firefox/92.0","edge/98.0.1108.50","chrome/75.0.3765.0","chrome/88.0.4324.93","edge/98.0.1108.62","firefox/74.0","chrome/101.0.4951.7","chrome/102.0.4962.0","chrome/101.0.4929.0","chrome/97.0.4692.71","chrome/97.0.4692.87","chrome/90.0.4430.93","chrome/96.0.4664.111","firefox/94.0","chrome/100.0.4896.30","chrome/97.0.4692.104","edge/98.0.1108.43","edge/99.0.1150.36","chrome/101.0.4929.5","chrome/90.0.4430.212","chrome/91.0.4472.109","chrome/95.0.4638.54","chrome/89.0.4389.90","chrome/96.0.4664.104","chrome/99.0.4844.0","chrome/80.0.3987.163","chrome/90.0.4430.91","firefox/90.0","edge/97.0.1072.62","chrome/99.0.4844.66","chrome/80.0.3987.0","chrome/87.0.4280.101","edge/99.0.1150.16","chrome/91.0.4472.77","chrome/81.0.4044.0","edge/101.0.1193.0","chrome/83.0.4103.97","chrome/93.0.4577.8","chrome/96.0.4664.174","chrome/49.0.7383.1298","chrome/77.0.3865.116","edge/100.0.1185.7","chrome/89.0.4389.116","chrome/100.0.4878.0","chrome/94.0.4606.54","chrome/97.0.4692.102","chrome/83.0.4103.116","chrome/74.0.3729.136","chrome/87.0.4280.66","edge/97.0.1072.55","chrome/99.0.4844.16","chrome/92.0.4515.105","firefox/93.0","edge/97.0.1072.69","chrome/74.0.3729.131","chrome/73.0.3683.103","chrome/96.0.4664.92","chrome/99.0.4864.208","chrome/81.0.4044.113","chrome/91.0.4472.124","chrome/88.0.4324.150","chrome/96.0.4664.55","chrome/96.0.4664.175","chrome/87.0.4280.144","safari/602.1","chrome/98.0.4758.34","firefox/89.0","chrome/64.0.3282.137","chrome/98.0.4758.81","chrome/94.0.4606.61","chrome/88.0.4324.152","chrome/97.0.4692.70","chrome/94.0.4606.81","chrome/80.0.3987.99"],"conditionalProbabilities":{"deeper":{"chrome/100.0.4896.60|2":{"chrome/100.0.4896.60":1},"firefox/97.0|2":{"firefox/97.0":1},"chrome/87.0.4280.67|2":{"chrome/87.0.4280.67":1},"chrome/99.0.4844.51|2":{"chrome/99.0.4844.51":1},"firefox/98.0|2":{"firefox/98.0":1},"chrome/99.0.4844.84|2":{"chrome/99.0.4844.84":1},"firefox/88.0|2":{"firefox/88.0":1},"safari/605.1.15|2":{"safari/605.1.15":1},"chrome/100.0.4896.75|2":{"chrome/100.0.4896.75":1},"chrome/61.0.3163.128|2":{"chrome/61.0.3163.128":1},"chrome/99.0.4844.83|2":{"chrome/99.0.4844.83":1},"chrome/99.0.4844.88|2":{"chrome/99.0.4844.88":1},"safari/604.1|2":{"safari/604.1":1},"*MISSING_VALUE*|2":{"*MISSING_VALUE*":1},"chrome/100.0.4896.58|2":{"chrome/100.0.4896.58":1},"chrome/100.0.4896.60|1":{"chrome/100.0.4896.60":1},"chrome/99.0.4844.74|2":{"chrome/99.0.4844.74":1},"edge/100.0.1185.29|1":{"edge/100.0.1185.29":1},"edge/100.0.1185.29|2":{"edge/100.0.1185.29":1},"chrome/98.0.4758.102|1":{"chrome/98.0.4758.102":1},"chrome/99.0.4844.84|1":{"chrome/99.0.4844.84":1},"chrome/97.0.4692.99|2":{"chrome/97.0.4692.99":1},"chrome/96.0.4664.110|2":{"chrome/96.0.4664.110":1},"chrome/92.0.4515.166|2":{"chrome/92.0.4515.166":1},"edge/99.0.1150.55|2":{"edge/99.0.1150.55":1},"chrome/84.0.4147.125|2":{"chrome/84.0.4147.125":1},"chrome/79.0.3945.79|2":{"chrome/79.0.3945.79":1},"chrome/98.0.4758.109|2":{"chrome/98.0.4758.109":1},"firefox/95.0|2":{"firefox/95.0":1},"chrome/76.0.3809.71|2":{"chrome/76.0.3809.71":1},"chrome/75.0.3770.142|2":{"chrome/75.0.3770.142":1},"chrome/90.0.4430.72|2":{"chrome/90.0.4430.72":1},"chrome/99.0.4844.82|2":{"chrome/99.0.4844.82":1},"chrome/98.0.4758.102|2":{"chrome/98.0.4758.102":1},"chrome/98.0.4758.82|2":{"chrome/98.0.4758.82":1},"chrome/96.0.4664.45|2":{"chrome/96.0.4664.45":1},"firefox/99.0|2":{"firefox/99.0":1},"chrome/99.0.4844.73|2":{"chrome/99.0.4844.73":1},"chrome/99.0.4844.57|2":{"chrome/99.0.4844.57":1},"chrome/76.0.3809.38|2":{"chrome/76.0.3809.38":1},"firefox/81.0|1":{"firefox/81.0":1},"chrome/98.0.4758.80|2":{"chrome/98.0.4758.80":1},"chrome/91.0.4472.114|2":{"chrome/91.0.4472.114":1},"firefox/87.0|2":{"firefox/87.0":1},"chrome/98.0.4758.106|2":{"chrome/98.0.4758.106":1},"firefox/78.0|2":{"firefox/78.0":1},"firefox/91.0|2":{"firefox/91.0":1},"chrome/96.0.4664.45|1":{"chrome/96.0.4664.45":1},"chrome/94.0.4606.71|2":{"chrome/94.0.4606.71":1},"chrome/77.0.3865.75|2":{"chrome/77.0.3865.75":1},"chrome/71.0.3578.98|2":{"chrome/71.0.3578.98":1},"chrome/70.0.3538.102|2":{"chrome/70.0.3538.102":1},"chrome/100.0.4896.75|1":{"chrome/100.0.4896.75":1},"firefox/96.0|2":{"firefox/96.0":1},"chrome/100.0.4896.79|2":{"chrome/100.0.4896.79":1},"chrome/98.0.4758.141|2":{"chrome/98.0.4758.141":1},"chrome/51.0.7009.1032|2":{"chrome/51.0.7009.1032":1},"chrome/86.0.4240.75|2":{"chrome/86.0.4240.75":1},"chrome/91.0.4472.164|2":{"chrome/91.0.4472.164":1},"edge/100.0.1185.27|2":{"edge/100.0.1185.27":1},"chrome/80.0.3987.106|2":{"chrome/80.0.3987.106":1},"chrome/102.0.4983.0|2":{"chrome/102.0.4983.0":1},"chrome/99.0.4844.58|2":{"chrome/99.0.4844.58":1},"chrome/81.0.4044.92|2":{"chrome/81.0.4044.92":1},"chrome/98.0.4758.109|1":{"chrome/98.0.4758.109":1},"chrome/80.0.3987.132|2":{"chrome/80.0.3987.132":1},"chrome/60.0.3112.90|2":{"chrome/60.0.3112.90":1},"chrome/83.0.4103.101|2":{"chrome/83.0.4103.101":1},"edge/95.0.1020.53|2":{"edge/95.0.1020.53":1},"chrome/101.0.4951.15|2":{"chrome/101.0.4951.15":1},"edge/99.0.1150.52|2":{"edge/99.0.1150.52":1},"chrome/92.0.4515.131|2":{"chrome/92.0.4515.131":1},"chrome/97.0.4692.98|2":{"chrome/97.0.4692.98":1},"chrome/90.0.4430.210|2":{"chrome/90.0.4430.210":1},"chrome/98.0.4758.101|2":{"chrome/98.0.4758.101":1},"chrome/95.0.4638.69|2":{"chrome/95.0.4638.69":1},"chrome/99.0.4844.82|1":{"chrome/99.0.4844.82":1},"chrome/87.0.4280.141|2":{"chrome/87.0.4280.141":1},"edge/99.0.1150.46|2":{"edge/99.0.1150.46":1},"chrome/81.0.4044.138|2":{"chrome/81.0.4044.138":1},"chrome/98.0.4758.87|2":{"chrome/98.0.4758.87":1},"chrome/99.0.4844.94|2":{"chrome/99.0.4844.94":1},"chrome/98.0.4758.105|2":{"chrome/98.0.4758.105":1},"edge/99.0.1150.30|2":{"edge/99.0.1150.30":1},"chrome/86.0.4240.198|2":{"chrome/86.0.4240.198":1},"firefox/84.0|2":{"firefox/84.0":1},"firefox/98.0|1":{"firefox/98.0":1},"chrome/98.0.4758.136|2":{"chrome/98.0.4758.136":1},"chrome/99.0.7113.93|2":{"chrome/99.0.7113.93":1},"chrome/94.0.4606.56|2":{"chrome/94.0.4606.56":1},"chrome/92.0.4515.107|2":{"chrome/92.0.4515.107":1},"chrome/83.0.4103.106|2":{"chrome/83.0.4103.106":1},"chrome/99.0.4844.51|1":{"chrome/99.0.4844.51":1},"chrome/94.0.4606.85|2":{"chrome/94.0.4606.85":1},"chrome/102.0.4972.0|2":{"chrome/102.0.4972.0":1},"chrome/91.0.4472.106|2":{"chrome/91.0.4472.106":1},"chrome/96.0.4664.93|2":{"chrome/96.0.4664.93":1},"edge/97.0.1072.76|2":{"edge/97.0.1072.76":1},"chrome/88.0.4324.96|2":{"chrome/88.0.4324.96":1},"chrome/93.0.4577.82|2":{"chrome/93.0.4577.82":1},"chrome/86.0.4240.99|2":{"chrome/86.0.4240.99":1},"chrome/79.0.3945.116|1":{"chrome/79.0.3945.116":1},"chrome/98.0.4758.121|2":{"chrome/98.0.4758.121":1},"edge/99.0.1150.55|1":{"edge/99.0.1150.55":1},"chrome/89.0.4389.82|2":{"chrome/89.0.4389.82":1},"chrome/73.0.3683.75|2":{"chrome/73.0.3683.75":1},"chrome/93.0.4577.0|2":{"chrome/93.0.4577.0":1},"edge/99.0.1150.39|2":{"edge/99.0.1150.39":1},"chrome/98.0.4758.107|2":{"chrome/98.0.4758.107":1},"chrome/69.0.3497.100|2":{"chrome/69.0.3497.100":1},"chrome/92.0.4515.159|2":{"chrome/92.0.4515.159":1},"chrome/98.0.4758.132|2":{"chrome/98.0.4758.132":1},"chrome/98.0.4758.91|2":{"chrome/98.0.4758.91":1},"chrome/100.0.4896.54|2":{"chrome/100.0.4896.54":1},"chrome/87.0.4280.88|1":{"chrome/87.0.4280.88":1},"firefox/100.0|2":{"firefox/100.0":1},"chrome/100.0.4896.46|2":{"chrome/100.0.4896.46":1},"chrome/79.0.3945.116|2":{"chrome/79.0.3945.116":1},"chrome/78.0.3904.96|2":{"chrome/78.0.3904.96":1},"firefox/56.0|2":{"firefox/56.0":1},"chrome/95.0.4638.74|2":{"chrome/95.0.4638.74":1},"edge/18.19577|2":{"edge/18.19577":1},"chrome/98.0.4695.0|2":{"chrome/98.0.4695.0":1},"chrome/91.0.4472.101|2":{"chrome/91.0.4472.101":1},"firefox/92.0|2":{"firefox/92.0":1},"edge/98.0.1108.50|2":{"edge/98.0.1108.50":1},"chrome/75.0.3765.0|2":{"chrome/75.0.3765.0":1},"chrome/87.0.4280.88|2":{"chrome/87.0.4280.88":1},"chrome/88.0.4324.93|2":{"chrome/88.0.4324.93":1},"edge/98.0.1108.62|2":{"edge/98.0.1108.62":1},"firefox/74.0|2":{"firefox/74.0":1},"chrome/101.0.4951.7|2":{"chrome/101.0.4951.7":1},"chrome/102.0.4962.0|2":{"chrome/102.0.4962.0":1},"chrome/101.0.4929.0|2":{"chrome/101.0.4929.0":1},"chrome/97.0.4692.71|2":{"chrome/97.0.4692.71":1},"chrome/97.0.4692.87|2":{"chrome/97.0.4692.87":1},"chrome/90.0.4430.93|2":{"chrome/90.0.4430.93":1},"chrome/96.0.4664.111|1":{"chrome/96.0.4664.111":1},"firefox/94.0|2":{"firefox/94.0":1},"chrome/100.0.4896.30|2":{"chrome/100.0.4896.30":1},"chrome/97.0.4692.104|2":{"chrome/97.0.4692.104":1},"chrome/99.0.4844.74|1":{"chrome/99.0.4844.74":1},"edge/98.0.1108.43|1":{"edge/98.0.1108.43":1},"edge/99.0.1150.36|2":{"edge/99.0.1150.36":1},"chrome/101.0.4929.5|2":{"chrome/101.0.4929.5":1},"chrome/90.0.4430.212|2":{"chrome/90.0.4430.212":1},"chrome/91.0.4472.109|2":{"chrome/91.0.4472.109":1},"chrome/95.0.4638.54|2":{"chrome/95.0.4638.54":1},"chrome/98.0.4758.80|1":{"chrome/98.0.4758.80":1},"chrome/97.0.4692.99|1":{"chrome/97.0.4692.99":1},"chrome/89.0.4389.90|2":{"chrome/89.0.4389.90":1},"chrome/96.0.4664.104|2":{"chrome/96.0.4664.104":1},"chrome/99.0.4844.0|2":{"chrome/99.0.4844.0":1},"chrome/80.0.3987.163|2":{"chrome/80.0.3987.163":1},"chrome/90.0.4430.91|2":{"chrome/90.0.4430.91":1},"chrome/88.0.4324.96|1":{"chrome/88.0.4324.96":1},"firefox/90.0|2":{"firefox/90.0":1},"edge/97.0.1072.62|2":{"edge/97.0.1072.62":1},"chrome/99.0.4844.66|2":{"chrome/99.0.4844.66":1},"chrome/80.0.3987.0|2":{"chrome/80.0.3987.0":1},"chrome/87.0.4280.101|2":{"chrome/87.0.4280.101":1},"edge/98.0.1108.43|2":{"edge/98.0.1108.43":1},"edge/99.0.1150.16|2":{"edge/99.0.1150.16":1},"edge/99.0.1150.39|1":{"edge/99.0.1150.39":1},"chrome/91.0.4472.77|2":{"chrome/91.0.4472.77":1},"chrome/81.0.4044.0|1":{"chrome/81.0.4044.0":1},"edge/101.0.1193.0|2":{"edge/101.0.1193.0":1},"chrome/83.0.4103.97|2":{"chrome/83.0.4103.97":1},"chrome/93.0.4577.8|2":{"chrome/93.0.4577.8":1},"chrome/96.0.4664.174|2":{"chrome/96.0.4664.174":1},"chrome/49.0.7383.1298|2":{"chrome/49.0.7383.1298":1},"chrome/92.0.4515.159|1":{"chrome/92.0.4515.159":1},"chrome/77.0.3865.116|2":{"chrome/77.0.3865.116":1},"edge/100.0.1185.7|2":{"edge/100.0.1185.7":1},"chrome/89.0.4389.116|2":{"chrome/89.0.4389.116":1},"chrome/100.0.4878.0|2":{"chrome/100.0.4878.0":1},"chrome/94.0.4606.54|2":{"chrome/94.0.4606.54":1},"chrome/97.0.4692.102|2":{"chrome/97.0.4692.102":1},"chrome/83.0.4103.116|1":{"chrome/83.0.4103.116":1},"chrome/97.0.4692.71|1":{"chrome/97.0.4692.71":1},"chrome/74.0.3729.136|2":{"chrome/74.0.3729.136":1},"edge/98.0.1108.62|1":{"edge/98.0.1108.62":1},"chrome/87.0.4280.66|2":{"chrome/87.0.4280.66":1},"edge/97.0.1072.55|2":{"edge/97.0.1072.55":1},"chrome/99.0.4844.16|2":{"chrome/99.0.4844.16":1},"chrome/92.0.4515.105|2":{"chrome/92.0.4515.105":1},"firefox/93.0|2":{"firefox/93.0":1},"edge/97.0.1072.69|2":{"edge/97.0.1072.69":1},"chrome/74.0.3729.131|2":{"chrome/74.0.3729.131":1},"chrome/73.0.3683.103|2":{"chrome/73.0.3683.103":1},"chrome/96.0.4664.92|2":{"chrome/96.0.4664.92":1},"safari/604.1|1":{"safari/604.1":1},"chrome/99.0.4864.208|2":{"chrome/99.0.4864.208":1},"chrome/81.0.4044.113|2":{"chrome/81.0.4044.113":1},"chrome/91.0.4472.124|2":{"chrome/91.0.4472.124":1},"chrome/88.0.4324.150|2":{"chrome/88.0.4324.150":1},"chrome/96.0.4664.55|2":{"chrome/96.0.4664.55":1},"chrome/83.0.4103.116|2":{"chrome/83.0.4103.116":1},"chrome/96.0.4664.175|2":{"chrome/96.0.4664.175":1},"edge/99.0.1150.30|1":{"edge/99.0.1150.30":1},"chrome/87.0.4280.144|2":{"chrome/87.0.4280.144":1},"chrome/98.0.4758.82|1":{"chrome/98.0.4758.82":1},"safari/602.1|2":{"safari/602.1":1},"chrome/98.0.4758.34|2":{"chrome/98.0.4758.34":1},"firefox/89.0|2":{"firefox/89.0":1},"chrome/64.0.3282.137|2":{"chrome/64.0.3282.137":1},"chrome/98.0.4758.81|2":{"chrome/98.0.4758.81":1},"chrome/94.0.4606.61|2":{"chrome/94.0.4606.61":1},"chrome/88.0.4324.152|2":{"chrome/88.0.4324.152":1},"chrome/97.0.4692.70|2":{"chrome/97.0.4692.70":1},"chrome/94.0.4606.81|2":{"chrome/94.0.4606.81":1},"chrome/80.0.3987.99|1":{"chrome/80.0.3987.99":1}}}}]} --------------------------------------------------------------------------------