"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.searchForChrome = searchForChrome;
const chromeFinder = require('chrome-launcher/dist/chrome-finder');
const launchUtils = require('chrome-launcher/dist/utils');
const UNSTABLE_CHROME_CHANNELS = ['canary', 'dev', 'beta'];
function searchForChrome() {
    const chromePaths = chromeFinder[launchUtils.getPlatform()]();
    return chromePaths.find((chromePath) => {
        const lower = chromePath.toLowerCase();
        return !UNSTABLE_CHROME_CHANNELS.some((channel) => lower.includes(channel));
    });
}
