"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const appSettings_1 = require("./appSettings");
// override default options with query parameters if any
const urlSearchParams = new URLSearchParams(window.location.search);
for (const param of Object.keys(appSettings_1.DEFAULT_SETTINGS)) {
    if (urlSearchParams.has(param)) {
        try {
            const value = JSON.parse((_a = urlSearchParams.get(param)) !== null && _a !== void 0 ? _a : 'true');
            appSettings_1.DEFAULT_SETTINGS[param] = Boolean(value);
        }
        catch (error) {
            console.warn(`Unable to parse query parameter "${param}"`);
        }
    }
}
if (appSettings_1.DEFAULT_SETTINGS.disableBeforeInput) {
    // @ts-expect-error
    delete window.InputEvent.prototype.getTargetRanges;
}
//# sourceMappingURL=setupEnv.js.map